winemac: Return 0 from ToUnicodeEx() for a key release.
[wine.git] / configure
bloba82ab7f374cc6626f72ef80f7fde26483eb77eed
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 FREETYPEINCL
654 FREETYPELIBS
655 ft_devel
656 LCMSLIBS
657 RESOLVLIBS
658 GPHOTO2INCL
659 GPHOTO2LIBS
660 gphoto2port_devel
661 gphoto2_devel
662 SANEINCL
663 sane_devel
664 GNUTLSINCL
665 HALINCL
666 DBUSINCL
667 XSLTINCL
668 XML2INCL
669 XML2LIBS
670 X_EXTRA_LIBS
671 X_LIBS
672 X_PRE_LIBS
673 X_CFLAGS
674 XMKMF
675 LIBPTHREAD
676 CROSSTARGET
677 CROSSCC
678 CROSSTEST_DISABLE
679 PRELINK
680 CARBONLIB
681 QUICKTIMELIB
682 LIBOPENCL
683 FRAMEWORK_OPENAL
684 COREAUDIO
685 SECURITYLIB
686 DISKARBITRATIONLIB
687 LDEXECFLAGS
688 CORESERVICESLIB
689 APPLICATIONSERVICESLIB
690 IOKITLIB
691 COREFOUNDATIONLIB
692 LIBWINE_RULES
693 SOCKETLIBS
694 DLLWRAP
695 DLLTOOL
696 ac_ct_READELF
697 READELF
699 LDRPATH_LOCAL
700 LDRPATH_INSTALL
701 IMPLIBEXT
702 LDDLLFLAGS
703 DLLFLAGS
704 DLLEXT
706 OPENGL_LIBS
707 XLIB
708 MAINTAINER_MODE
709 MSGFMT
710 ICOTOOL
711 CONVERT
712 RSVG
713 PKG_CONFIG
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'
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
905 htmldir='${docdir}'
906 dvidir='${docdir}'
907 pdfdir='${docdir}'
908 psdir='${docdir}'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
913 ac_prev=
914 ac_dashdash=
915 for ac_option
917 # If the previous option needs an argument, assign it.
918 if test -n "$ac_prev"; then
919 eval $ac_prev=\$ac_option
920 ac_prev=
921 continue
924 case $ac_option in
925 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926 *=) ac_optarg= ;;
927 *) ac_optarg=yes ;;
928 esac
930 # Accept the important Cygnus configure options, so we can diagnose typos.
932 case $ac_dashdash$ac_option in
934 ac_dashdash=yes ;;
936 -bindir | --bindir | --bindi | --bind | --bin | --bi)
937 ac_prev=bindir ;;
938 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939 bindir=$ac_optarg ;;
941 -build | --build | --buil | --bui | --bu)
942 ac_prev=build_alias ;;
943 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944 build_alias=$ac_optarg ;;
946 -cache-file | --cache-file | --cache-fil | --cache-fi \
947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948 ac_prev=cache_file ;;
949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951 cache_file=$ac_optarg ;;
953 --config-cache | -C)
954 cache_file=config.cache ;;
956 -datadir | --datadir | --datadi | --datad)
957 ac_prev=datadir ;;
958 -datadir=* | --datadir=* | --datadi=* | --datad=*)
959 datadir=$ac_optarg ;;
961 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962 | --dataroo | --dataro | --datar)
963 ac_prev=datarootdir ;;
964 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966 datarootdir=$ac_optarg ;;
968 -disable-* | --disable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=no ;;
984 -docdir | --docdir | --docdi | --doc | --do)
985 ac_prev=docdir ;;
986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 docdir=$ac_optarg ;;
989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 ac_prev=dvidir ;;
991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 dvidir=$ac_optarg ;;
994 -enable-* | --enable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: $ac_useropt"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=\$ac_optarg ;;
1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1013 ac_prev=exec_prefix ;;
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
1017 exec_prefix=$ac_optarg ;;
1019 -gas | --gas | --ga | --g)
1020 # Obsolete; use --with-gas.
1021 with_gas=yes ;;
1023 -help | --help | --hel | --he | -h)
1024 ac_init_help=long ;;
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026 ac_init_help=recursive ;;
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028 ac_init_help=short ;;
1030 -host | --host | --hos | --ho)
1031 ac_prev=host_alias ;;
1032 -host=* | --host=* | --hos=* | --ho=*)
1033 host_alias=$ac_optarg ;;
1035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 ac_prev=htmldir ;;
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 | --ht=*)
1039 htmldir=$ac_optarg ;;
1041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1043 ac_prev=includedir ;;
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
1046 includedir=$ac_optarg ;;
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 ac_prev=infodir ;;
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051 infodir=$ac_optarg ;;
1053 -libdir | --libdir | --libdi | --libd)
1054 ac_prev=libdir ;;
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056 libdir=$ac_optarg ;;
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1060 ac_prev=libexecdir ;;
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
1063 libexecdir=$ac_optarg ;;
1065 -localedir | --localedir | --localedi | --localed | --locale)
1066 ac_prev=localedir ;;
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068 localedir=$ac_optarg ;;
1070 -localstatedir | --localstatedir | --localstatedi | --localstated \
1071 | --localstate | --localstat | --localsta | --localst | --locals)
1072 ac_prev=localstatedir ;;
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075 localstatedir=$ac_optarg ;;
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 ac_prev=mandir ;;
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080 mandir=$ac_optarg ;;
1082 -nfp | --nfp | --nf)
1083 # Obsolete; use --without-fp.
1084 with_fp=no ;;
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087 | --no-cr | --no-c | -n)
1088 no_create=yes ;;
1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 no_recursion=yes ;;
1094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1097 ac_prev=oldincludedir ;;
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101 oldincludedir=$ac_optarg ;;
1103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 ac_prev=prefix ;;
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106 prefix=$ac_optarg ;;
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1110 ac_prev=program_prefix ;;
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113 program_prefix=$ac_optarg ;;
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1117 ac_prev=program_suffix ;;
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120 program_suffix=$ac_optarg ;;
1122 -program-transform-name | --program-transform-name \
1123 | --program-transform-nam | --program-transform-na \
1124 | --program-transform-n | --program-transform- \
1125 | --program-transform | --program-transfor \
1126 | --program-transfo | --program-transf \
1127 | --program-trans | --program-tran \
1128 | --progr-tra | --program-tr | --program-t)
1129 ac_prev=program_transform_name ;;
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
1137 program_transform_name=$ac_optarg ;;
1139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 ac_prev=pdfdir ;;
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142 pdfdir=$ac_optarg ;;
1144 -psdir | --psdir | --psdi | --psd | --ps)
1145 ac_prev=psdir ;;
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 psdir=$ac_optarg ;;
1149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1151 silent=yes ;;
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 ac_prev=sbindir ;;
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 | --sbi=* | --sb=*)
1157 sbindir=$ac_optarg ;;
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1162 | --sha | --sh)
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 | --sha=* | --sh=*)
1168 sharedstatedir=$ac_optarg ;;
1170 -site | --site | --sit)
1171 ac_prev=site ;;
1172 -site=* | --site=* | --sit=*)
1173 site=$ac_optarg ;;
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 ac_prev=srcdir ;;
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 verbose=yes ;;
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1198 -with-* | --with-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=\$ac_optarg ;;
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=no ;;
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1248 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249 Try \`$0 --help' for more information"
1252 *=*)
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 case $ac_envvar in #(
1256 '' | [0-9]* | *[!_$as_cr_alnum]* )
1257 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1258 esac
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1263 # FIXME: should be removed in autoconf 3.0.
1264 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1270 esac
1271 done
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 as_fn_error $? "missing argument to $ac_option"
1278 if test -n "$ac_unrecognized_opts"; then
1279 case $enable_option_checking in
1280 no) ;;
1281 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283 esac
1286 # Check all directory arguments for consistency.
1287 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir
1292 eval ac_val=\$$ac_var
1293 # Remove trailing slashes.
1294 case $ac_val in
1295 */ )
1296 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297 eval $ac_var=\$ac_val;;
1298 esac
1299 # Be sure to have absolute directory names.
1300 case $ac_val in
1301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303 esac
1304 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305 done
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1310 build=$build_alias
1311 host=$host_alias
1312 target=$target_alias
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 elif test "x$build_alias" != "x$host_alias"; then
1319 cross_compiling=yes
1323 ac_tool_prefix=
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326 test "$silent" = yes && exec 6>/dev/null
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332 as_fn_error $? "working directory cannot be determined"
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 as_fn_error $? "pwd does not report name of working directory"
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339 ac_srcdir_defaulted=yes
1340 # Try the directory containing this script, then the parent directory.
1341 ac_confdir=`$as_dirname -- "$as_myself" ||
1342 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$as_myself" : 'X\(//\)[^/]' \| \
1344 X"$as_myself" : 'X\(//\)$' \| \
1345 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346 $as_echo X"$as_myself" |
1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 s//\1/
1351 /^X\(\/\/\)[^/].*/{
1352 s//\1/
1355 /^X\(\/\/\)$/{
1356 s//\1/
1359 /^X\(\/\).*/{
1360 s//\1/
1363 s/.*/./; q'`
1364 srcdir=$ac_confdir
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 srcdir=..
1368 else
1369 ac_srcdir_defaulted=no
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378 pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 srcdir=.
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1397 # Report the --help message.
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1402 cat <<_ACEOF
1403 \`configure' configures Wine 1.5.29 to adapt to many kinds of systems.
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1410 Defaults for the options are specified in brackets.
1412 Configuration:
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking ...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 [PREFIX]
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1434 For better control, use the options below.
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1456 _ACEOF
1458 cat <<\_ACEOF
1460 X features:
1461 --x-includes=DIR X include files are in DIR
1462 --x-libraries=DIR X library files are in DIR
1464 System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 _ACEOF
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of Wine 1.5.29:";;
1473 esac
1474 cat <<\_ACEOF
1476 Optional Features:
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --disable-win16 do not include Win16 support
1481 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1482 binaries)
1483 --disable-tests do not build the regression tests
1484 --enable-maintainer-mode
1485 enable maintainer-specific build rules
1486 --disable-largefile omit support for large files
1488 Optional Packages:
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --without-alsa do not use the Alsa sound support
1492 --without-capi do not use CAPI (ISDN support)
1493 --without-cms do not use CMS (color management support)
1494 --without-coreaudio do not use the CoreAudio sound support
1495 --without-cups do not use CUPS
1496 --without-curses do not use (n)curses
1497 --without-dbus do not use DBus (dynamic device support)
1498 --without-fontconfig do not use fontconfig
1499 --without-freetype do not use the FreeType library
1500 --without-gettext do not use gettext
1501 --with-gettextpo use the GetTextPO library to rebuild po files
1502 --without-gphoto do not use gphoto (Digital Camera support)
1503 --without-glu do not use the GLU library
1504 --without-gnutls do not use GnuTLS (schannel support)
1505 --without-gsm do not use libgsm (GSM 06.10 codec support)
1506 --without-gstreamer do not use GStreamer (codecs support)
1507 --without-hal do not use HAL (dynamic device support)
1508 --without-jpeg do not use JPEG
1509 --without-ldap do not use LDAP
1510 --without-mpg123 do not use the mpg123 library
1511 --without-openal do not use OpenAL
1512 --without-opencl do not use OpenCL
1513 --without-opengl do not use OpenGL
1514 --without-osmesa do not use the OSMesa library
1515 --without-oss do not use the OSS sound support
1516 --without-png do not use PNG
1517 --without-pthread do not use the pthread library
1518 --without-sane do not use SANE (scanner support)
1519 --without-tiff do not use TIFF
1520 --without-v4l do not use v4l1 (v4l support)
1521 --without-xcomposite do not use the Xcomposite extension
1522 --without-xcursor do not use the Xcursor extension
1523 --without-xinerama do not use Xinerama (multi-monitor support)
1524 --without-xinput do not use the Xinput extension
1525 --without-xinput2 do not use the Xinput 2 extension
1526 --without-xml do not use XML
1527 --without-xrandr do not use Xrandr (resolution changes)
1528 --without-xrender do not use the Xrender extension
1529 --without-xshape do not use the Xshape extension
1530 --without-xshm do not use XShm (shared memory extension)
1531 --without-xslt do not use XSLT
1532 --without-xxf86vm do not use XFree video mode extension
1533 --without-zlib do not use Zlib (data compression)
1534 --with-wine-tools=DIR use Wine tools from directory DIR
1535 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1536 --with-x use the X Window System
1538 Some influential environment variables:
1539 CC C compiler command
1540 CFLAGS C compiler flags
1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1542 nonstandard directory <lib dir>
1543 LIBS libraries to pass to the linker, e.g. -l<library>
1544 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1545 you have headers in a nonstandard directory <include dir>
1546 CXX C++ compiler command
1547 CXXFLAGS C++ compiler flags
1548 CPP C preprocessor
1549 XMKMF Path to xmkmf, Makefile generator for X Window System
1551 Use these variables to override the choices made by `configure' or to help
1552 it to find libraries and programs with nonstandard names/locations.
1554 Report bugs to <wine-devel@winehq.org>.
1555 Wine home page: <http://www.winehq.org>.
1556 _ACEOF
1557 ac_status=$?
1560 if test "$ac_init_help" = "recursive"; then
1561 # If there are subdirs, report their specific --help.
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563 test -d "$ac_dir" ||
1564 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1565 continue
1566 ac_builddir=.
1568 case "$ac_dir" in
1569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1572 # A ".." for each directory in $ac_dir_suffix.
1573 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1574 case $ac_top_builddir_sub in
1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577 esac ;;
1578 esac
1579 ac_abs_top_builddir=$ac_pwd
1580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581 # for backward compatibility:
1582 ac_top_builddir=$ac_top_build_prefix
1584 case $srcdir in
1585 .) # We are building in place.
1586 ac_srcdir=.
1587 ac_top_srcdir=$ac_top_builddir_sub
1588 ac_abs_top_srcdir=$ac_pwd ;;
1589 [\\/]* | ?:[\\/]* ) # Absolute name.
1590 ac_srcdir=$srcdir$ac_dir_suffix;
1591 ac_top_srcdir=$srcdir
1592 ac_abs_top_srcdir=$srcdir ;;
1593 *) # Relative name.
1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595 ac_top_srcdir=$ac_top_build_prefix$srcdir
1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1597 esac
1598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600 cd "$ac_dir" || { ac_status=$?; continue; }
1601 # Check for guested configure.
1602 if test -f "$ac_srcdir/configure.gnu"; then
1603 echo &&
1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1605 elif test -f "$ac_srcdir/configure"; then
1606 echo &&
1607 $SHELL "$ac_srcdir/configure" --help=recursive
1608 else
1609 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1610 fi || ac_status=$?
1611 cd "$ac_pwd" || { ac_status=$?; break; }
1612 done
1615 test -n "$ac_init_help" && exit $ac_status
1616 if $ac_init_version; then
1617 cat <<\_ACEOF
1618 Wine configure 1.5.29
1619 generated by GNU Autoconf 2.69
1621 Copyright (C) 2012 Free Software Foundation, Inc.
1622 This configure script is free software; the Free Software Foundation
1623 gives unlimited permission to copy, distribute and modify it.
1624 _ACEOF
1625 exit
1628 ## ------------------------ ##
1629 ## Autoconf initialization. ##
1630 ## ------------------------ ##
1632 # ac_fn_c_try_compile LINENO
1633 # --------------------------
1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_compile ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext
1639 if { { ac_try="$ac_compile"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.$ac_objext; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1663 ac_retval=1
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1668 } # ac_fn_c_try_compile
1670 # ac_fn_cxx_try_compile LINENO
1671 # ----------------------------
1672 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_cxx_try_compile ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext
1677 if { { ac_try="$ac_compile"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_compile") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_cxx_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest.$ac_objext; then :
1696 ac_retval=0
1697 else
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1701 ac_retval=1
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1706 } # ac_fn_cxx_try_compile
1708 # ac_fn_c_try_link LINENO
1709 # -----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_link ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext conftest$ac_exeext
1715 if { { ac_try="$ac_link"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest$ac_exeext && {
1734 test "$cross_compiling" = yes ||
1735 test -x conftest$ac_exeext
1736 }; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 ac_retval=1
1744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1746 # interfere with the next link command; also delete a directory that is
1747 # left behind by Apple's compiler. We do this before executing the actions.
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1752 } # ac_fn_c_try_link
1754 # ac_fn_c_try_cpp LINENO
1755 # ----------------------
1756 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_cpp ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { { ac_try="$ac_cpp conftest.$ac_ext"
1761 case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } > conftest.i && {
1776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 }; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1784 ac_retval=1
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1789 } # ac_fn_c_try_cpp
1791 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1792 # -------------------------------------------------------
1793 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1794 # the include files in INCLUDES and setting the cache variable VAR
1795 # accordingly.
1796 ac_fn_c_check_header_mongrel ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if eval \${$3+:} false; then :
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1805 eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808 else
1809 # Is the header compilable?
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1811 $as_echo_n "checking $2 usability... " >&6; }
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818 ac_header_compiler=yes
1819 else
1820 ac_header_compiler=no
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1824 $as_echo "$ac_header_compiler" >&6; }
1826 # Is the header present?
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1828 $as_echo_n "checking $2 presence... " >&6; }
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 #include <$2>
1832 _ACEOF
1833 if ac_fn_c_try_cpp "$LINENO"; then :
1834 ac_header_preproc=yes
1835 else
1836 ac_header_preproc=no
1838 rm -f conftest.err conftest.i conftest.$ac_ext
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1840 $as_echo "$ac_header_preproc" >&6; }
1842 # So? What about this header?
1843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1844 yes:no: )
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1846 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850 no:yes:* )
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1852 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1854 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1856 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1858 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1860 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861 ( $as_echo "## ------------------------------------ ##
1862 ## Report this to wine-devel@winehq.org ##
1863 ## ------------------------------------ ##"
1864 ) | sed "s/^/$as_me: WARNING: /" >&2
1866 esac
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1871 else
1872 eval "$3=\$ac_header_compiler"
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 } # ac_fn_c_check_header_mongrel
1882 # ac_fn_c_try_run LINENO
1883 # ----------------------
1884 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885 # that executables *can* be run.
1886 ac_fn_c_try_run ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_link"
1890 case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>&5
1897 ac_status=$?
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1900 { { case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_try") 2>&5
1907 ac_status=$?
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; }; }; then :
1910 ac_retval=0
1911 else
1912 $as_echo "$as_me: program exited with status $ac_status" >&5
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1916 ac_retval=$ac_status
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 as_fn_set_status $ac_retval
1922 } # ac_fn_c_try_run
1924 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists and can be compiled using the include files in
1927 # INCLUDES, setting the cache variable VAR accordingly.
1928 ac_fn_c_check_header_compile ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if eval \${$3+:} false; then :
1934 $as_echo_n "(cached) " >&6
1935 else
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1939 #include <$2>
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 eval "$3=yes"
1943 else
1944 eval "$3=no"
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 eval ac_res=\$$3
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 } # ac_fn_c_check_header_compile
1955 # ac_fn_c_check_func LINENO FUNC VAR
1956 # ----------------------------------
1957 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1958 ac_fn_c_check_func ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if eval \${$3+:} false; then :
1964 $as_echo_n "(cached) " >&6
1965 else
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1970 #define $2 innocuous_$2
1972 /* System header to define __stub macros and hopefully few prototypes,
1973 which can conflict with char $2 (); below.
1974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1975 <limits.h> exists even on freestanding compilers. */
1977 #ifdef __STDC__
1978 # include <limits.h>
1979 #else
1980 # include <assert.h>
1981 #endif
1983 #undef $2
1985 /* Override any GCC internal prototype to avoid an error.
1986 Use char because int might match the return type of a GCC
1987 builtin and then its argument prototype would still apply. */
1988 #ifdef __cplusplus
1989 extern "C"
1990 #endif
1991 char $2 ();
1992 /* The GNU C library defines this for functions which it implements
1993 to always fail with ENOSYS. Some functions are actually named
1994 something starting with __ and the normal name is an alias. */
1995 #if defined __stub_$2 || defined __stub___$2
1996 choke me
1997 #endif
2000 main ()
2002 return $2 ();
2004 return 0;
2006 _ACEOF
2007 if ac_fn_c_try_link "$LINENO"; then :
2008 eval "$3=yes"
2009 else
2010 eval "$3=no"
2012 rm -f core conftest.err conftest.$ac_objext \
2013 conftest$ac_exeext conftest.$ac_ext
2015 eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020 } # ac_fn_c_check_func
2022 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2023 # ----------------------------------------------------
2024 # Tries to find if the field MEMBER exists in type AGGR, after including
2025 # INCLUDES, setting cache variable VAR accordingly.
2026 ac_fn_c_check_member ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2030 $as_echo_n "checking for $2.$3... " >&6; }
2031 if eval \${$4+:} false; then :
2032 $as_echo_n "(cached) " >&6
2033 else
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 main ()
2040 static $2 ac_aggr;
2041 if (ac_aggr.$3)
2042 return 0;
2044 return 0;
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 eval "$4=yes"
2049 else
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2054 main ()
2056 static $2 ac_aggr;
2057 if (sizeof ac_aggr.$3)
2058 return 0;
2060 return 0;
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 eval "$4=yes"
2065 else
2066 eval "$4=no"
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 eval ac_res=\$$4
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 } # ac_fn_c_check_member
2079 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2080 # -------------------------------------------
2081 # Tests whether TYPE exists after having included INCLUDES, setting cache
2082 # variable VAR accordingly.
2083 ac_fn_c_check_type ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if eval \${$3+:} false; then :
2089 $as_echo_n "(cached) " >&6
2090 else
2091 eval "$3=no"
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2096 main ()
2098 if (sizeof ($2))
2099 return 0;
2101 return 0;
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2109 main ()
2111 if (sizeof (($2)))
2112 return 0;
2114 return 0;
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2119 else
2120 eval "$3=yes"
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 eval ac_res=\$$3
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131 } # ac_fn_c_check_type
2132 cat >config.log <<_ACEOF
2133 This file contains any messages produced by compilers while
2134 running configure, to aid debugging if configure makes a mistake.
2136 It was created by Wine $as_me 1.5.29, which was
2137 generated by GNU Autoconf 2.69. Invocation command line was
2139 $ $0 $@
2141 _ACEOF
2142 exec 5>>config.log
2144 cat <<_ASUNAME
2145 ## --------- ##
2146 ## Platform. ##
2147 ## --------- ##
2149 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2150 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2151 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2152 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2153 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2155 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2156 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2158 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2159 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2160 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2161 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2162 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2163 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2164 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2166 _ASUNAME
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 $as_echo "PATH: $as_dir"
2174 done
2175 IFS=$as_save_IFS
2177 } >&5
2179 cat >&5 <<_ACEOF
2182 ## ----------- ##
2183 ## Core tests. ##
2184 ## ----------- ##
2186 _ACEOF
2189 # Keep a trace of the command line.
2190 # Strip out --no-create and --no-recursion so they do not pile up.
2191 # Strip out --silent because we don't want to record it for future runs.
2192 # Also quote any args containing shell meta-characters.
2193 # Make two passes to allow for proper duplicate-argument suppression.
2194 ac_configure_args=
2195 ac_configure_args0=
2196 ac_configure_args1=
2197 ac_must_keep_next=false
2198 for ac_pass in 1 2
2200 for ac_arg
2202 case $ac_arg in
2203 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2205 | -silent | --silent | --silen | --sile | --sil)
2206 continue ;;
2207 *\'*)
2208 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2209 esac
2210 case $ac_pass in
2211 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2213 as_fn_append ac_configure_args1 " '$ac_arg'"
2214 if test $ac_must_keep_next = true; then
2215 ac_must_keep_next=false # Got value, back to normal.
2216 else
2217 case $ac_arg in
2218 *=* | --config-cache | -C | -disable-* | --disable-* \
2219 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2220 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2221 | -with-* | --with-* | -without-* | --without-* | --x)
2222 case "$ac_configure_args0 " in
2223 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2224 esac
2226 -* ) ac_must_keep_next=true ;;
2227 esac
2229 as_fn_append ac_configure_args " '$ac_arg'"
2231 esac
2232 done
2233 done
2234 { ac_configure_args0=; unset ac_configure_args0;}
2235 { ac_configure_args1=; unset ac_configure_args1;}
2237 # When interrupted or exit'd, cleanup temporary files, and complete
2238 # config.log. We remove comments because anyway the quotes in there
2239 # would cause problems or look ugly.
2240 # WARNING: Use '\'' to represent an apostrophe within the trap.
2241 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2242 trap 'exit_status=$?
2243 # Save into config.log some information that might help in debugging.
2245 echo
2247 $as_echo "## ---------------- ##
2248 ## Cache variables. ##
2249 ## ---------------- ##"
2250 echo
2251 # The following way of writing the cache mishandles newlines in values,
2253 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2254 eval ac_val=\$$ac_var
2255 case $ac_val in #(
2256 *${as_nl}*)
2257 case $ac_var in #(
2258 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2259 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2260 esac
2261 case $ac_var in #(
2262 _ | IFS | as_nl) ;; #(
2263 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2264 *) { eval $ac_var=; unset $ac_var;} ;;
2265 esac ;;
2266 esac
2267 done
2268 (set) 2>&1 |
2269 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2270 *${as_nl}ac_space=\ *)
2271 sed -n \
2272 "s/'\''/'\''\\\\'\'''\''/g;
2273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2274 ;; #(
2276 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2278 esac |
2279 sort
2281 echo
2283 $as_echo "## ----------------- ##
2284 ## Output variables. ##
2285 ## ----------------- ##"
2286 echo
2287 for ac_var in $ac_subst_vars
2289 eval ac_val=\$$ac_var
2290 case $ac_val in
2291 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2292 esac
2293 $as_echo "$ac_var='\''$ac_val'\''"
2294 done | sort
2295 echo
2297 if test -n "$ac_subst_files"; then
2298 $as_echo "## ------------------- ##
2299 ## File substitutions. ##
2300 ## ------------------- ##"
2301 echo
2302 for ac_var in $ac_subst_files
2304 eval ac_val=\$$ac_var
2305 case $ac_val in
2306 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2307 esac
2308 $as_echo "$ac_var='\''$ac_val'\''"
2309 done | sort
2310 echo
2313 if test -s confdefs.h; then
2314 $as_echo "## ----------- ##
2315 ## confdefs.h. ##
2316 ## ----------- ##"
2317 echo
2318 cat confdefs.h
2319 echo
2321 test "$ac_signal" != 0 &&
2322 $as_echo "$as_me: caught signal $ac_signal"
2323 $as_echo "$as_me: exit $exit_status"
2324 } >&5
2325 rm -f core *.core core.conftest.* &&
2326 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2327 exit $exit_status
2329 for ac_signal in 1 2 13 15; do
2330 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2331 done
2332 ac_signal=0
2334 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2335 rm -f -r conftest* confdefs.h
2337 $as_echo "/* confdefs.h */" > confdefs.h
2339 # Predefined preprocessor variables.
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_NAME "$PACKAGE_NAME"
2343 _ACEOF
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2347 _ACEOF
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2351 _ACEOF
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_STRING "$PACKAGE_STRING"
2355 _ACEOF
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2359 _ACEOF
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_URL "$PACKAGE_URL"
2363 _ACEOF
2366 # Let the site file select an alternate cache file if it wants to.
2367 # Prefer an explicitly selected file to automatically selected ones.
2368 ac_site_file1=NONE
2369 ac_site_file2=NONE
2370 if test -n "$CONFIG_SITE"; then
2371 # We do not want a PATH search for config.site.
2372 case $CONFIG_SITE in #((
2373 -*) ac_site_file1=./$CONFIG_SITE;;
2374 */*) ac_site_file1=$CONFIG_SITE;;
2375 *) ac_site_file1=./$CONFIG_SITE;;
2376 esac
2377 elif test "x$prefix" != xNONE; then
2378 ac_site_file1=$prefix/share/config.site
2379 ac_site_file2=$prefix/etc/config.site
2380 else
2381 ac_site_file1=$ac_default_prefix/share/config.site
2382 ac_site_file2=$ac_default_prefix/etc/config.site
2384 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2386 test "x$ac_site_file" = xNONE && continue
2387 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2389 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2390 sed 's/^/| /' "$ac_site_file" >&5
2391 . "$ac_site_file" \
2392 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2394 as_fn_error $? "failed to load site script $ac_site_file
2395 See \`config.log' for more details" "$LINENO" 5; }
2397 done
2399 if test -r "$cache_file"; then
2400 # Some versions of bash will fail to source /dev/null (special files
2401 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2402 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2404 $as_echo "$as_me: loading cache $cache_file" >&6;}
2405 case $cache_file in
2406 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2407 *) . "./$cache_file";;
2408 esac
2410 else
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2412 $as_echo "$as_me: creating cache $cache_file" >&6;}
2413 >$cache_file
2416 # Check that the precious variables saved in the cache have kept the same
2417 # value.
2418 ac_cache_corrupted=false
2419 for ac_var in $ac_precious_vars; do
2420 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2421 eval ac_new_set=\$ac_env_${ac_var}_set
2422 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2423 eval ac_new_val=\$ac_env_${ac_var}_value
2424 case $ac_old_set,$ac_new_set in
2425 set,)
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2427 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2428 ac_cache_corrupted=: ;;
2429 ,set)
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2431 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2432 ac_cache_corrupted=: ;;
2433 ,);;
2435 if test "x$ac_old_val" != "x$ac_new_val"; then
2436 # differences in whitespace do not lead to failure.
2437 ac_old_val_w=`echo x $ac_old_val`
2438 ac_new_val_w=`echo x $ac_new_val`
2439 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2441 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2442 ac_cache_corrupted=:
2443 else
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2445 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2446 eval $ac_var=\$ac_old_val
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2449 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2451 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2452 fi;;
2453 esac
2454 # Pass precious variables to config.status.
2455 if test "$ac_new_set" = set; then
2456 case $ac_new_val in
2457 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2458 *) ac_arg=$ac_var=$ac_new_val ;;
2459 esac
2460 case " $ac_configure_args " in
2461 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2462 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2463 esac
2465 done
2466 if $ac_cache_corrupted; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2470 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2471 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2473 ## -------------------- ##
2474 ## Main body of script. ##
2475 ## -------------------- ##
2477 ac_ext=c
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485 ac_config_headers="$ac_config_headers include/config.h"
2487 ac_aux_dir=
2488 for ac_dir in tools "$srcdir"/tools; do
2489 if test -f "$ac_dir/install-sh"; then
2490 ac_aux_dir=$ac_dir
2491 ac_install_sh="$ac_aux_dir/install-sh -c"
2492 break
2493 elif test -f "$ac_dir/install.sh"; then
2494 ac_aux_dir=$ac_dir
2495 ac_install_sh="$ac_aux_dir/install.sh -c"
2496 break
2497 elif test -f "$ac_dir/shtool"; then
2498 ac_aux_dir=$ac_dir
2499 ac_install_sh="$ac_aux_dir/shtool install -c"
2500 break
2502 done
2503 if test -z "$ac_aux_dir"; then
2504 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2507 # These three variables are undocumented and unsupported,
2508 # and are intended to be withdrawn in a future Autoconf release.
2509 # They can cause serious problems if a builder's source tree is in a directory
2510 # whose full name contains unusual characters.
2511 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2512 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2513 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2519 # Check whether --enable-win16 was given.
2520 if test "${enable_win16+set}" = set; then :
2521 enableval=$enable_win16;
2524 # Check whether --enable-win64 was given.
2525 if test "${enable_win64+set}" = set; then :
2526 enableval=$enable_win64;
2529 # Check whether --enable-tests was given.
2530 if test "${enable_tests+set}" = set; then :
2531 enableval=$enable_tests;
2534 # Check whether --enable-maintainer-mode was given.
2535 if test "${enable_maintainer_mode+set}" = set; then :
2536 enableval=$enable_maintainer_mode;
2541 # Check whether --with-alsa was given.
2542 if test "${with_alsa+set}" = set; then :
2543 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2547 # Check whether --with-capi was given.
2548 if test "${with_capi+set}" = set; then :
2549 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2553 # Check whether --with-cms was given.
2554 if test "${with_cms+set}" = set; then :
2555 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2559 # Check whether --with-coreaudio was given.
2560 if test "${with_coreaudio+set}" = set; then :
2561 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2565 # Check whether --with-cups was given.
2566 if test "${with_cups+set}" = set; then :
2567 withval=$with_cups;
2571 # Check whether --with-curses was given.
2572 if test "${with_curses+set}" = set; then :
2573 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2577 # Check whether --with-dbus was given.
2578 if test "${with_dbus+set}" = set; then :
2579 withval=$with_dbus;
2583 # Check whether --with-fontconfig was given.
2584 if test "${with_fontconfig+set}" = set; then :
2585 withval=$with_fontconfig;
2589 # Check whether --with-freetype was given.
2590 if test "${with_freetype+set}" = set; then :
2591 withval=$with_freetype;
2595 # Check whether --with-gettext was given.
2596 if test "${with_gettext+set}" = set; then :
2597 withval=$with_gettext;
2601 # Check whether --with-gettextpo was given.
2602 if test "${with_gettextpo+set}" = set; then :
2603 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2607 # Check whether --with-gphoto was given.
2608 if test "${with_gphoto+set}" = set; then :
2609 withval=$with_gphoto;
2613 # Check whether --with-glu was given.
2614 if test "${with_glu+set}" = set; then :
2615 withval=$with_glu;
2619 # Check whether --with-gnutls was given.
2620 if test "${with_gnutls+set}" = set; then :
2621 withval=$with_gnutls;
2625 # Check whether --with-gsm was given.
2626 if test "${with_gsm+set}" = set; then :
2627 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2631 # Check whether --with-gstreamer was given.
2632 if test "${with_gstreamer+set}" = set; then :
2633 withval=$with_gstreamer;
2637 # Check whether --with-hal was given.
2638 if test "${with_hal+set}" = set; then :
2639 withval=$with_hal;
2643 # Check whether --with-jpeg was given.
2644 if test "${with_jpeg+set}" = set; then :
2645 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2649 # Check whether --with-ldap was given.
2650 if test "${with_ldap+set}" = set; then :
2651 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2655 # Check whether --with-mpg123 was given.
2656 if test "${with_mpg123+set}" = set; then :
2657 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2661 # Check whether --with-openal was given.
2662 if test "${with_openal+set}" = set; then :
2663 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2667 # Check whether --with-opencl was given.
2668 if test "${with_opencl+set}" = set; then :
2669 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2673 # Check whether --with-opengl was given.
2674 if test "${with_opengl+set}" = set; then :
2675 withval=$with_opengl;
2679 # Check whether --with-osmesa was given.
2680 if test "${with_osmesa+set}" = set; then :
2681 withval=$with_osmesa;
2685 # Check whether --with-oss was given.
2686 if test "${with_oss+set}" = set; then :
2687 withval=$with_oss;
2691 # Check whether --with-png was given.
2692 if test "${with_png+set}" = set; then :
2693 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2697 # Check whether --with-pthread was given.
2698 if test "${with_pthread+set}" = set; then :
2699 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2703 # Check whether --with-sane was given.
2704 if test "${with_sane+set}" = set; then :
2705 withval=$with_sane;
2709 # Check whether --with-tiff was given.
2710 if test "${with_tiff+set}" = set; then :
2711 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2715 # Check whether --with-v4l was given.
2716 if test "${with_v4l+set}" = set; then :
2717 withval=$with_v4l;
2721 # Check whether --with-xcomposite was given.
2722 if test "${with_xcomposite+set}" = set; then :
2723 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2727 # Check whether --with-xcursor was given.
2728 if test "${with_xcursor+set}" = set; then :
2729 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2733 # Check whether --with-xinerama was given.
2734 if test "${with_xinerama+set}" = set; then :
2735 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2739 # Check whether --with-xinput was given.
2740 if test "${with_xinput+set}" = set; then :
2741 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2745 # Check whether --with-xinput2 was given.
2746 if test "${with_xinput2+set}" = set; then :
2747 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2751 # Check whether --with-xml was given.
2752 if test "${with_xml+set}" = set; then :
2753 withval=$with_xml;
2757 # Check whether --with-xrandr was given.
2758 if test "${with_xrandr+set}" = set; then :
2759 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2763 # Check whether --with-xrender was given.
2764 if test "${with_xrender+set}" = set; then :
2765 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2769 # Check whether --with-xshape was given.
2770 if test "${with_xshape+set}" = set; then :
2771 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2775 # Check whether --with-xshm was given.
2776 if test "${with_xshm+set}" = set; then :
2777 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2781 # Check whether --with-xslt was given.
2782 if test "${with_xslt+set}" = set; then :
2783 withval=$with_xslt;
2787 # Check whether --with-xxf86vm was given.
2788 if test "${with_xxf86vm+set}" = set; then :
2789 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
2793 # Check whether --with-zlib was given.
2794 if test "${with_zlib+set}" = set; then :
2795 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2800 # Check whether --with-wine-tools was given.
2801 if test "${with_wine_tools+set}" = set; then :
2802 withval=$with_wine_tools;
2806 # Check whether --with-wine64 was given.
2807 if test "${with_wine64+set}" = set; then :
2808 withval=$with_wine64;
2812 # Make sure we can run config.sub.
2813 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2814 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2817 $as_echo_n "checking build system type... " >&6; }
2818 if ${ac_cv_build+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 ac_build_alias=$build_alias
2822 test "x$ac_build_alias" = x &&
2823 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2824 test "x$ac_build_alias" = x &&
2825 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2826 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2827 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2831 $as_echo "$ac_cv_build" >&6; }
2832 case $ac_cv_build in
2833 *-*-*) ;;
2834 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2835 esac
2836 build=$ac_cv_build
2837 ac_save_IFS=$IFS; IFS='-'
2838 set x $ac_cv_build
2839 shift
2840 build_cpu=$1
2841 build_vendor=$2
2842 shift; shift
2843 # Remember, the first character of IFS is used to create $*,
2844 # except with old shells:
2845 build_os=$*
2846 IFS=$ac_save_IFS
2847 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2851 $as_echo_n "checking host system type... " >&6; }
2852 if ${ac_cv_host+:} false; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 if test "x$host_alias" = x; then
2856 ac_cv_host=$ac_cv_build
2857 else
2858 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2859 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2864 $as_echo "$ac_cv_host" >&6; }
2865 case $ac_cv_host in
2866 *-*-*) ;;
2867 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2868 esac
2869 host=$ac_cv_host
2870 ac_save_IFS=$IFS; IFS='-'
2871 set x $ac_cv_host
2872 shift
2873 host_cpu=$1
2874 host_vendor=$2
2875 shift; shift
2876 # Remember, the first character of IFS is used to create $*,
2877 # except with old shells:
2878 host_os=$*
2879 IFS=$ac_save_IFS
2880 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2884 case "$srcdir" in
2885 .) ;;
2886 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2887 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2888 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2889 fi ;;
2890 esac
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2894 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2895 set x ${MAKE-make}
2896 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2897 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 cat >conftest.make <<\_ACEOF
2901 SHELL = /bin/sh
2902 all:
2903 @echo '@@@%%%=$(MAKE)=@@@%%%'
2904 _ACEOF
2905 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2906 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2907 *@@@%%%=?*=@@@%%%*)
2908 eval ac_cv_prog_make_${ac_make}_set=yes;;
2910 eval ac_cv_prog_make_${ac_make}_set=no;;
2911 esac
2912 rm -f conftest.make
2914 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2916 $as_echo "yes" >&6; }
2917 SET_MAKE=
2918 else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2921 SET_MAKE="MAKE=${MAKE-make}"
2924 ac_ext=c
2925 ac_cpp='$CPP $CPPFLAGS'
2926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2929 if test -n "$ac_tool_prefix"; then
2930 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2931 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_CC+:} false; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2951 done
2952 done
2953 IFS=$as_save_IFS
2957 CC=$ac_cv_prog_CC
2958 if test -n "$CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2968 if test -z "$ac_cv_prog_CC"; then
2969 ac_ct_CC=$CC
2970 # Extract the first word of "gcc", so it can be a program name with args.
2971 set dummy gcc; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2975 $as_echo_n "(cached) " >&6
2976 else
2977 if test -n "$ac_ct_CC"; then
2978 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_ac_ct_CC="gcc"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2991 done
2992 done
2993 IFS=$as_save_IFS
2997 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2998 if test -n "$ac_ct_CC"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3000 $as_echo "$ac_ct_CC" >&6; }
3001 else
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3006 if test "x$ac_ct_CC" = x; then
3007 CC=""
3008 else
3009 case $cross_compiling:$ac_tool_warned in
3010 yes:)
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3013 ac_tool_warned=yes ;;
3014 esac
3015 CC=$ac_ct_CC
3017 else
3018 CC="$ac_cv_prog_CC"
3021 if test -z "$CC"; then
3022 if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3024 set dummy ${ac_tool_prefix}cc; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_CC="${ac_tool_prefix}cc"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3044 done
3045 done
3046 IFS=$as_save_IFS
3050 CC=$ac_cv_prog_CC
3051 if test -n "$CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3053 $as_echo "$CC" >&6; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3062 if test -z "$CC"; then
3063 # Extract the first word of "cc", so it can be a program name with args.
3064 set dummy cc; ac_word=$2
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if ${ac_cv_prog_CC+:} false; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 else
3073 ac_prog_rejected=no
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3082 ac_prog_rejected=yes
3083 continue
3085 ac_cv_prog_CC="cc"
3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 break 2
3089 done
3090 done
3091 IFS=$as_save_IFS
3093 if test $ac_prog_rejected = yes; then
3094 # We found a bogon in the path, so make sure we never use it.
3095 set dummy $ac_cv_prog_CC
3096 shift
3097 if test $# != 0; then
3098 # We chose a different compiler from the bogus one.
3099 # However, it has the same basename, so the bogon will be chosen
3100 # first if we set CC to just the basename; use the full file name.
3101 shift
3102 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3107 CC=$ac_cv_prog_CC
3108 if test -n "$CC"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3110 $as_echo "$CC" >&6; }
3111 else
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3118 if test -z "$CC"; then
3119 if test -n "$ac_tool_prefix"; then
3120 for ac_prog in cl.exe
3122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if ${ac_cv_prog_CC+:} false; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 if test -n "$CC"; then
3130 ac_cv_prog_CC="$CC" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 break 2
3143 done
3144 done
3145 IFS=$as_save_IFS
3149 CC=$ac_cv_prog_CC
3150 if test -n "$CC"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3152 $as_echo "$CC" >&6; }
3153 else
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3159 test -n "$CC" && break
3160 done
3162 if test -z "$CC"; then
3163 ac_ct_CC=$CC
3164 for ac_prog in cl.exe
3166 # Extract the first word of "$ac_prog", so it can be a program name with args.
3167 set dummy $ac_prog; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3171 $as_echo_n "(cached) " >&6
3172 else
3173 if test -n "$ac_ct_CC"; then
3174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_ac_ct_CC="$ac_prog"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3187 done
3188 done
3189 IFS=$as_save_IFS
3193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3194 if test -n "$ac_ct_CC"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3196 $as_echo "$ac_ct_CC" >&6; }
3197 else
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3203 test -n "$ac_ct_CC" && break
3204 done
3206 if test "x$ac_ct_CC" = x; then
3207 CC=""
3208 else
3209 case $cross_compiling:$ac_tool_warned in
3210 yes:)
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3213 ac_tool_warned=yes ;;
3214 esac
3215 CC=$ac_ct_CC
3222 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3224 as_fn_error $? "no acceptable C compiler found in \$PATH
3225 See \`config.log' for more details" "$LINENO" 5; }
3227 # Provide some information about the compiler.
3228 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3229 set X $ac_compile
3230 ac_compiler=$2
3231 for ac_option in --version -v -V -qversion; do
3232 { { ac_try="$ac_compiler $ac_option >&5"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 $as_echo "$ac_try_echo"; } >&5
3239 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3240 ac_status=$?
3241 if test -s conftest.err; then
3242 sed '10a\
3243 ... rest of stderr output deleted ...
3244 10q' conftest.err >conftest.er1
3245 cat conftest.er1 >&5
3247 rm -f conftest.er1 conftest.err
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }
3250 done
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3256 main ()
3260 return 0;
3262 _ACEOF
3263 ac_clean_files_save=$ac_clean_files
3264 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3265 # Try to create an executable without -o first, disregard a.out.
3266 # It will help us diagnose broken compilers, and finding out an intuition
3267 # of exeext.
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3269 $as_echo_n "checking whether the C compiler works... " >&6; }
3270 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3272 # The possible output files:
3273 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3275 ac_rmfiles=
3276 for ac_file in $ac_files
3278 case $ac_file in
3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3280 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3281 esac
3282 done
3283 rm -f $ac_rmfiles
3285 if { { ac_try="$ac_link_default"
3286 case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289 esac
3290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291 $as_echo "$ac_try_echo"; } >&5
3292 (eval "$ac_link_default") 2>&5
3293 ac_status=$?
3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295 test $ac_status = 0; }; then :
3296 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3297 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3298 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3299 # so that the user can short-circuit this test for compilers unknown to
3300 # Autoconf.
3301 for ac_file in $ac_files ''
3303 test -f "$ac_file" || continue
3304 case $ac_file in
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3307 [ab].out )
3308 # We found the default executable, but exeext='' is most
3309 # certainly right.
3310 break;;
3311 *.* )
3312 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3313 then :; else
3314 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3316 # We set ac_cv_exeext here because the later test for it is not
3317 # safe: cross compilers may not add the suffix if given an `-o'
3318 # argument, so we may need to know it at that point already.
3319 # Even if this section looks crufty: it has the advantage of
3320 # actually working.
3321 break;;
3323 break;;
3324 esac
3325 done
3326 test "$ac_cv_exeext" = no && ac_cv_exeext=
3328 else
3329 ac_file=''
3331 if test -z "$ac_file"; then :
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 $as_echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339 as_fn_error 77 "C compiler cannot create executables
3340 See \`config.log' for more details" "$LINENO" 5; }
3341 else
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343 $as_echo "yes" >&6; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3346 $as_echo_n "checking for C compiler default output file name... " >&6; }
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3348 $as_echo "$ac_file" >&6; }
3349 ac_exeext=$ac_cv_exeext
3351 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3352 ac_clean_files=$ac_clean_files_save
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3354 $as_echo_n "checking for suffix of executables... " >&6; }
3355 if { { ac_try="$ac_link"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_link") 2>&5
3363 ac_status=$?
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }; then :
3366 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3367 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3368 # work properly (i.e., refer to `conftest.exe'), while it won't with
3369 # `rm'.
3370 for ac_file in conftest.exe conftest conftest.*; do
3371 test -f "$ac_file" || continue
3372 case $ac_file in
3373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3374 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3375 break;;
3376 * ) break;;
3377 esac
3378 done
3379 else
3380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3383 See \`config.log' for more details" "$LINENO" 5; }
3385 rm -f conftest conftest$ac_cv_exeext
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3387 $as_echo "$ac_cv_exeext" >&6; }
3389 rm -f conftest.$ac_ext
3390 EXEEXT=$ac_cv_exeext
3391 ac_exeext=$EXEEXT
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h. */
3394 #include <stdio.h>
3396 main ()
3398 FILE *f = fopen ("conftest.out", "w");
3399 return ferror (f) || fclose (f) != 0;
3402 return 0;
3404 _ACEOF
3405 ac_clean_files="$ac_clean_files conftest.out"
3406 # Check that the compiler produces executables we can run. If not, either
3407 # the compiler is broken, or we cross compile.
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3409 $as_echo_n "checking whether we are cross compiling... " >&6; }
3410 if test "$cross_compiling" != yes; then
3411 { { ac_try="$ac_link"
3412 case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 $as_echo "$ac_try_echo"; } >&5
3418 (eval "$ac_link") 2>&5
3419 ac_status=$?
3420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421 test $ac_status = 0; }
3422 if { ac_try='./conftest$ac_cv_exeext'
3423 { { case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428 $as_echo "$ac_try_echo"; } >&5
3429 (eval "$ac_try") 2>&5
3430 ac_status=$?
3431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432 test $ac_status = 0; }; }; then
3433 cross_compiling=no
3434 else
3435 if test "$cross_compiling" = maybe; then
3436 cross_compiling=yes
3437 else
3438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440 as_fn_error $? "cannot run C compiled programs.
3441 If you meant to cross compile, use \`--host'.
3442 See \`config.log' for more details" "$LINENO" 5; }
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3447 $as_echo "$cross_compiling" >&6; }
3449 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3450 ac_clean_files=$ac_clean_files_save
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3452 $as_echo_n "checking for suffix of object files... " >&6; }
3453 if ${ac_cv_objext+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3460 main ()
3464 return 0;
3466 _ACEOF
3467 rm -f conftest.o conftest.obj
3468 if { { ac_try="$ac_compile"
3469 case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472 esac
3473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474 $as_echo "$ac_try_echo"; } >&5
3475 (eval "$ac_compile") 2>&5
3476 ac_status=$?
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }; then :
3479 for ac_file in conftest.o conftest.obj conftest.*; do
3480 test -f "$ac_file" || continue;
3481 case $ac_file in
3482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3483 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3484 break;;
3485 esac
3486 done
3487 else
3488 $as_echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493 as_fn_error $? "cannot compute suffix of object files: cannot compile
3494 See \`config.log' for more details" "$LINENO" 5; }
3496 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3499 $as_echo "$ac_cv_objext" >&6; }
3500 OBJEXT=$ac_cv_objext
3501 ac_objext=$OBJEXT
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3503 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3504 if ${ac_cv_c_compiler_gnu+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3511 main ()
3513 #ifndef __GNUC__
3514 choke me
3515 #endif
3518 return 0;
3520 _ACEOF
3521 if ac_fn_c_try_compile "$LINENO"; then :
3522 ac_compiler_gnu=yes
3523 else
3524 ac_compiler_gnu=no
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3531 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3532 if test $ac_compiler_gnu = yes; then
3533 GCC=yes
3534 else
3535 GCC=
3537 ac_test_CFLAGS=${CFLAGS+set}
3538 ac_save_CFLAGS=$CFLAGS
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3540 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3541 if ${ac_cv_prog_cc_g+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 ac_save_c_werror_flag=$ac_c_werror_flag
3545 ac_c_werror_flag=yes
3546 ac_cv_prog_cc_g=no
3547 CFLAGS="-g"
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3552 main ()
3556 return 0;
3558 _ACEOF
3559 if ac_fn_c_try_compile "$LINENO"; then :
3560 ac_cv_prog_cc_g=yes
3561 else
3562 CFLAGS=""
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3567 main ()
3571 return 0;
3573 _ACEOF
3574 if ac_fn_c_try_compile "$LINENO"; then :
3576 else
3577 ac_c_werror_flag=$ac_save_c_werror_flag
3578 CFLAGS="-g"
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3583 main ()
3587 return 0;
3589 _ACEOF
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591 ac_cv_prog_cc_g=yes
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 ac_c_werror_flag=$ac_save_c_werror_flag
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3601 $as_echo "$ac_cv_prog_cc_g" >&6; }
3602 if test "$ac_test_CFLAGS" = set; then
3603 CFLAGS=$ac_save_CFLAGS
3604 elif test $ac_cv_prog_cc_g = yes; then
3605 if test "$GCC" = yes; then
3606 CFLAGS="-g -O2"
3607 else
3608 CFLAGS="-g"
3610 else
3611 if test "$GCC" = yes; then
3612 CFLAGS="-O2"
3613 else
3614 CFLAGS=
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3618 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3619 if ${ac_cv_prog_cc_c89+:} false; then :
3620 $as_echo_n "(cached) " >&6
3621 else
3622 ac_cv_prog_cc_c89=no
3623 ac_save_CC=$CC
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3626 #include <stdarg.h>
3627 #include <stdio.h>
3628 struct stat;
3629 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3630 struct buf { int x; };
3631 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3632 static char *e (p, i)
3633 char **p;
3634 int i;
3636 return p[i];
3638 static char *f (char * (*g) (char **, int), char **p, ...)
3640 char *s;
3641 va_list v;
3642 va_start (v,p);
3643 s = g (p, va_arg (v,int));
3644 va_end (v);
3645 return s;
3648 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3649 function prototypes and stuff, but not '\xHH' hex character constants.
3650 These don't provoke an error unfortunately, instead are silently treated
3651 as 'x'. The following induces an error, until -std is added to get
3652 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3653 array size at least. It's necessary to write '\x00'==0 to get something
3654 that's true only with -std. */
3655 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3657 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3658 inside strings and character constants. */
3659 #define FOO(x) 'x'
3660 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3662 int test (int i, double x);
3663 struct s1 {int (*f) (int a);};
3664 struct s2 {int (*f) (double a);};
3665 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3666 int argc;
3667 char **argv;
3669 main ()
3671 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3673 return 0;
3675 _ACEOF
3676 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3677 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3679 CC="$ac_save_CC $ac_arg"
3680 if ac_fn_c_try_compile "$LINENO"; then :
3681 ac_cv_prog_cc_c89=$ac_arg
3683 rm -f core conftest.err conftest.$ac_objext
3684 test "x$ac_cv_prog_cc_c89" != "xno" && break
3685 done
3686 rm -f conftest.$ac_ext
3687 CC=$ac_save_CC
3690 # AC_CACHE_VAL
3691 case "x$ac_cv_prog_cc_c89" in
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3694 $as_echo "none needed" >&6; } ;;
3695 xno)
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3697 $as_echo "unsupported" >&6; } ;;
3699 CC="$CC $ac_cv_prog_cc_c89"
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3701 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3702 esac
3703 if test "x$ac_cv_prog_cc_c89" != xno; then :
3707 ac_ext=c
3708 ac_cpp='$CPP $CPPFLAGS'
3709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713 ac_ext=cpp
3714 ac_cpp='$CXXCPP $CPPFLAGS'
3715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3718 if test -z "$CXX"; then
3719 if test -n "$CCC"; then
3720 CXX=$CCC
3721 else
3722 if test -n "$ac_tool_prefix"; then
3723 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728 $as_echo_n "checking for $ac_word... " >&6; }
3729 if ${ac_cv_prog_CXX+:} false; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 if test -n "$CXX"; then
3733 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3742 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3746 done
3747 done
3748 IFS=$as_save_IFS
3752 CXX=$ac_cv_prog_CXX
3753 if test -n "$CXX"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3755 $as_echo "$CXX" >&6; }
3756 else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3762 test -n "$CXX" && break
3763 done
3765 if test -z "$CXX"; then
3766 ac_ct_CXX=$CXX
3767 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3769 # Extract the first word of "$ac_prog", so it can be a program name with args.
3770 set dummy $ac_prog; ac_word=$2
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3772 $as_echo_n "checking for $ac_word... " >&6; }
3773 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -n "$ac_ct_CXX"; then
3777 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786 ac_cv_prog_ac_ct_CXX="$ac_prog"
3787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 break 2
3790 done
3791 done
3792 IFS=$as_save_IFS
3796 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3797 if test -n "$ac_ct_CXX"; then
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3799 $as_echo "$ac_ct_CXX" >&6; }
3800 else
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802 $as_echo "no" >&6; }
3806 test -n "$ac_ct_CXX" && break
3807 done
3809 if test "x$ac_ct_CXX" = x; then
3810 CXX="g++"
3811 else
3812 case $cross_compiling:$ac_tool_warned in
3813 yes:)
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3816 ac_tool_warned=yes ;;
3817 esac
3818 CXX=$ac_ct_CXX
3824 # Provide some information about the compiler.
3825 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3826 set X $ac_compile
3827 ac_compiler=$2
3828 for ac_option in --version -v -V -qversion; do
3829 { { ac_try="$ac_compiler $ac_option >&5"
3830 case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833 esac
3834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835 $as_echo "$ac_try_echo"; } >&5
3836 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3837 ac_status=$?
3838 if test -s conftest.err; then
3839 sed '10a\
3840 ... rest of stderr output deleted ...
3841 10q' conftest.err >conftest.er1
3842 cat conftest.er1 >&5
3844 rm -f conftest.er1 conftest.err
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }
3847 done
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3850 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3851 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3858 main ()
3860 #ifndef __GNUC__
3861 choke me
3862 #endif
3865 return 0;
3867 _ACEOF
3868 if ac_fn_cxx_try_compile "$LINENO"; then :
3869 ac_compiler_gnu=yes
3870 else
3871 ac_compiler_gnu=no
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3878 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3879 if test $ac_compiler_gnu = yes; then
3880 GXX=yes
3881 else
3882 GXX=
3884 ac_test_CXXFLAGS=${CXXFLAGS+set}
3885 ac_save_CXXFLAGS=$CXXFLAGS
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3887 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3888 if ${ac_cv_prog_cxx_g+:} false; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3892 ac_cxx_werror_flag=yes
3893 ac_cv_prog_cxx_g=no
3894 CXXFLAGS="-g"
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3899 main ()
3903 return 0;
3905 _ACEOF
3906 if ac_fn_cxx_try_compile "$LINENO"; then :
3907 ac_cv_prog_cxx_g=yes
3908 else
3909 CXXFLAGS=""
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3914 main ()
3918 return 0;
3920 _ACEOF
3921 if ac_fn_cxx_try_compile "$LINENO"; then :
3923 else
3924 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3925 CXXFLAGS="-g"
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3930 main ()
3934 return 0;
3936 _ACEOF
3937 if ac_fn_cxx_try_compile "$LINENO"; then :
3938 ac_cv_prog_cxx_g=yes
3940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3948 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3949 if test "$ac_test_CXXFLAGS" = set; then
3950 CXXFLAGS=$ac_save_CXXFLAGS
3951 elif test $ac_cv_prog_cxx_g = yes; then
3952 if test "$GXX" = yes; then
3953 CXXFLAGS="-g -O2"
3954 else
3955 CXXFLAGS="-g"
3957 else
3958 if test "$GXX" = yes; then
3959 CXXFLAGS="-O2"
3960 else
3961 CXXFLAGS=
3964 ac_ext=c
3965 ac_cpp='$CPP $CPPFLAGS'
3966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970 if test -n "$ac_tool_prefix"; then
3971 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3972 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3974 $as_echo_n "checking for $ac_word... " >&6; }
3975 if ${ac_cv_prog_CPPBIN+:} false; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 if test -n "$CPPBIN"; then
3979 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3980 else
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3992 done
3993 done
3994 IFS=$as_save_IFS
3998 CPPBIN=$ac_cv_prog_CPPBIN
3999 if test -n "$CPPBIN"; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4001 $as_echo "$CPPBIN" >&6; }
4002 else
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4009 if test -z "$ac_cv_prog_CPPBIN"; then
4010 ac_ct_CPPBIN=$CPPBIN
4011 # Extract the first word of "cpp", so it can be a program name with args.
4012 set dummy cpp; ac_word=$2
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014 $as_echo_n "checking for $ac_word... " >&6; }
4015 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 if test -n "$ac_ct_CPPBIN"; then
4019 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4020 else
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4024 IFS=$as_save_IFS
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028 ac_cv_prog_ac_ct_CPPBIN="cpp"
4029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 break 2
4032 done
4033 done
4034 IFS=$as_save_IFS
4038 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4039 if test -n "$ac_ct_CPPBIN"; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4041 $as_echo "$ac_ct_CPPBIN" >&6; }
4042 else
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4047 if test "x$ac_ct_CPPBIN" = x; then
4048 CPPBIN="cpp"
4049 else
4050 case $cross_compiling:$ac_tool_warned in
4051 yes:)
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4054 ac_tool_warned=yes ;;
4055 esac
4056 CPPBIN=$ac_ct_CPPBIN
4058 else
4059 CPPBIN="$ac_cv_prog_CPPBIN"
4063 cat >>confdefs.h <<_ACEOF
4064 #define EXEEXT "$ac_exeext"
4065 _ACEOF
4068 case $host in
4069 *-darwin*)
4070 if test "x$enable_win64" = "xyes"
4071 then
4072 CC="$CC -m64"
4073 CXX="$CXX -m64"
4074 host_cpu="x86_64"
4075 notice_platform="64-bit "
4076 TARGETFLAGS="-m64"
4078 else
4079 CC="$CC -m32"
4080 CXX="$CXX -m32"
4081 host_cpu="i386"
4082 notice_platform="32-bit "
4083 TARGETFLAGS="-m32"
4085 enable_win16=${enable_win16:-yes}
4087 with_fontconfig=${with_fontconfig:-no}
4089 x86_64*)
4090 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4091 then
4092 CC="$CC -m32"
4093 CXX="$CXX -m32"
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4095 $as_echo_n "checking whether $CC works... " >&6; }
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4101 main ()
4105 return 0;
4107 _ACEOF
4108 if ac_fn_c_try_link "$LINENO"; then :
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4110 $as_echo "yes" >&6; }
4111 else
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4114 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4116 rm -f core conftest.err conftest.$ac_objext \
4117 conftest$ac_exeext conftest.$ac_ext
4118 host_cpu="i386"
4119 notice_platform="32-bit "
4120 TARGETFLAGS="-m32"
4122 enable_win16=${enable_win16:-yes}
4123 else
4124 if test "x${GCC}" = "xyes"
4125 then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4127 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130 #include <stdarg.h>
4132 main ()
4134 void func(__builtin_ms_va_list *args);
4136 return 0;
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4141 $as_echo "yes" >&6; }
4142 else
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4145 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 TARGETFLAGS="-m64"
4153 arm*)
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4155 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4158 int ac_test(int i) { return i; }
4160 main ()
4162 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4164 return 0;
4166 _ACEOF
4167 if ac_fn_c_try_link "$LINENO"; then :
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4169 $as_echo "yes" >&6; }
4170 else
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4175 rm -f core conftest.err conftest.$ac_objext \
4176 conftest$ac_exeext conftest.$ac_ext
4177 CFLAGS="$CFLAGS -marm"
4179 *-mingw32*|*-cygwin*)
4180 enable_win16=${enable_win16:-no}
4181 CFLAGS="$CFLAGS -D_WIN32"
4183 i[3456789]86*)
4184 enable_win16=${enable_win16:-yes}
4186 esac
4188 enable_win16=${enable_win16:-no}
4189 enable_win64=${enable_win64:-no}
4191 enable_winetest=${enable_winetest:-$enable_tests}
4193 if test -n "$with_wine64"
4194 then
4195 if test "x$enable_win64" = "xyes"
4196 then
4197 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4198 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4200 WOW64_DISABLE=\#
4202 enable_fonts=${enable_fonts:-no}
4203 enable_server=${enable_server:-no}
4204 enable_tools=${enable_tools:-no}
4205 elif test "x$enable_win64" = "xyes"
4206 then
4207 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4211 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4212 if ${wine_cv_toolsdir+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 wine_cv_toolsdir="$with_wine_tools"
4216 if test -z "$with_wine_tools"; then
4217 if test "$cross_compiling" = "yes"; then
4218 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4219 elif test -n "$with_wine64"; then
4220 wine_cv_toolsdir="$with_wine64"
4223 if test -z "$wine_cv_toolsdir"; then
4224 wine_cv_toolsdir="\$(top_builddir)"
4225 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4226 case "$wine_cv_toolsdir" in
4227 /*) ;;
4228 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4229 esac
4230 else
4231 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4235 $as_echo "$wine_cv_toolsdir" >&6; }
4236 TOOLSDIR=$wine_cv_toolsdir
4238 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4239 then
4240 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4244 for ac_prog in flex
4246 # Extract the first word of "$ac_prog", so it can be a program name with args.
4247 set dummy $ac_prog; ac_word=$2
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4249 $as_echo_n "checking for $ac_word... " >&6; }
4250 if ${ac_cv_prog_FLEX+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 if test -n "$FLEX"; then
4254 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4255 else
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4263 ac_cv_prog_FLEX="$ac_prog"
4264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 break 2
4267 done
4268 done
4269 IFS=$as_save_IFS
4273 FLEX=$ac_cv_prog_FLEX
4274 if test -n "$FLEX"; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4276 $as_echo "$FLEX" >&6; }
4277 else
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 $as_echo "no" >&6; }
4283 test -n "$FLEX" && break
4284 done
4285 test -n "$FLEX" || FLEX="none"
4287 if test "$FLEX" = "none"
4288 then
4289 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4292 $as_echo_n "checking whether flex is recent enough... " >&6; }
4293 cat >conftest.l <<EOF
4294 %top{
4295 #include "prediluvian.h"
4299 if $FLEX -t conftest.l >/dev/null 2>&5
4300 then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4302 $as_echo "yes" >&6; }
4303 else
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4306 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4309 for ac_prog in bison
4311 # Extract the first word of "$ac_prog", so it can be a program name with args.
4312 set dummy $ac_prog; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if ${ac_cv_prog_BISON+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if test -n "$BISON"; then
4319 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_prog_BISON="$ac_prog"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4332 done
4333 done
4334 IFS=$as_save_IFS
4338 BISON=$ac_cv_prog_BISON
4339 if test -n "$BISON"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4341 $as_echo "$BISON" >&6; }
4342 else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 $as_echo "no" >&6; }
4348 test -n "$BISON" && break
4349 done
4350 test -n "$BISON" || BISON="none"
4352 if test "$BISON" = "none"
4353 then
4354 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4357 if test -n "$ac_tool_prefix"; then
4358 for ac_prog in ar gar
4360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4363 $as_echo_n "checking for $ac_word... " >&6; }
4364 if ${ac_cv_prog_AR+:} false; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 if test -n "$AR"; then
4368 ac_cv_prog_AR="$AR" # Let the user override the test.
4369 else
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4377 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 break 2
4381 done
4382 done
4383 IFS=$as_save_IFS
4387 AR=$ac_cv_prog_AR
4388 if test -n "$AR"; then
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4390 $as_echo "$AR" >&6; }
4391 else
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4393 $as_echo "no" >&6; }
4397 test -n "$AR" && break
4398 done
4400 if test -z "$AR"; then
4401 ac_ct_AR=$AR
4402 for ac_prog in ar gar
4404 # Extract the first word of "$ac_prog", so it can be a program name with args.
4405 set dummy $ac_prog; ac_word=$2
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407 $as_echo_n "checking for $ac_word... " >&6; }
4408 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 if test -n "$ac_ct_AR"; then
4412 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4413 else
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421 ac_cv_prog_ac_ct_AR="$ac_prog"
4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4425 done
4426 done
4427 IFS=$as_save_IFS
4431 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4432 if test -n "$ac_ct_AR"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4434 $as_echo "$ac_ct_AR" >&6; }
4435 else
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4441 test -n "$ac_ct_AR" && break
4442 done
4444 if test "x$ac_ct_AR" = x; then
4445 AR="ar"
4446 else
4447 case $cross_compiling:$ac_tool_warned in
4448 yes:)
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4451 ac_tool_warned=yes ;;
4452 esac
4453 AR=$ac_ct_AR
4457 ARFLAGS=rc
4459 if test -n "$ac_tool_prefix"; then
4460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 $as_echo_n "checking for $ac_word... " >&6; }
4464 if ${ac_cv_prog_RANLIB+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test -n "$RANLIB"; then
4468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4469 else
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4481 done
4482 done
4483 IFS=$as_save_IFS
4487 RANLIB=$ac_cv_prog_RANLIB
4488 if test -n "$RANLIB"; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4490 $as_echo "$RANLIB" >&6; }
4491 else
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 $as_echo "no" >&6; }
4498 if test -z "$ac_cv_prog_RANLIB"; then
4499 ac_ct_RANLIB=$RANLIB
4500 # Extract the first word of "ranlib", so it can be a program name with args.
4501 set dummy ranlib; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4505 $as_echo_n "(cached) " >&6
4506 else
4507 if test -n "$ac_ct_RANLIB"; then
4508 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4509 else
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_prog_ac_ct_RANLIB="ranlib"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4521 done
4522 done
4523 IFS=$as_save_IFS
4527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4528 if test -n "$ac_ct_RANLIB"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4530 $as_echo "$ac_ct_RANLIB" >&6; }
4531 else
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4536 if test "x$ac_ct_RANLIB" = x; then
4537 RANLIB=":"
4538 else
4539 case $cross_compiling:$ac_tool_warned in
4540 yes:)
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4543 ac_tool_warned=yes ;;
4544 esac
4545 RANLIB=$ac_ct_RANLIB
4547 else
4548 RANLIB="$ac_cv_prog_RANLIB"
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4552 $as_echo_n "checking whether ln -s works... " >&6; }
4553 LN_S=$as_ln_s
4554 if test "$LN_S" = "ln -s"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4556 $as_echo "yes" >&6; }
4557 else
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4559 $as_echo "no, using $LN_S" >&6; }
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4563 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4564 if ${ac_cv_path_GREP+:} false; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -z "$GREP"; then
4568 ac_path_GREP_found=false
4569 # Loop through the user's path and test for each of PROGNAME-LIST
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_prog in grep ggrep; do
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4578 as_fn_executable_p "$ac_path_GREP" || continue
4579 # Check for GNU ac_path_GREP and select it if it is found.
4580 # Check for GNU $ac_path_GREP
4581 case `"$ac_path_GREP" --version 2>&1` in
4582 *GNU*)
4583 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4585 ac_count=0
4586 $as_echo_n 0123456789 >"conftest.in"
4587 while :
4589 cat "conftest.in" "conftest.in" >"conftest.tmp"
4590 mv "conftest.tmp" "conftest.in"
4591 cp "conftest.in" "conftest.nl"
4592 $as_echo 'GREP' >> "conftest.nl"
4593 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4594 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4595 as_fn_arith $ac_count + 1 && ac_count=$as_val
4596 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4597 # Best one so far, save it but keep looking for a better one
4598 ac_cv_path_GREP="$ac_path_GREP"
4599 ac_path_GREP_max=$ac_count
4601 # 10*(2^10) chars as input seems more than enough
4602 test $ac_count -gt 10 && break
4603 done
4604 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4605 esac
4607 $ac_path_GREP_found && break 3
4608 done
4609 done
4610 done
4611 IFS=$as_save_IFS
4612 if test -z "$ac_cv_path_GREP"; then
4613 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4615 else
4616 ac_cv_path_GREP=$GREP
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4621 $as_echo "$ac_cv_path_GREP" >&6; }
4622 GREP="$ac_cv_path_GREP"
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4626 $as_echo_n "checking for egrep... " >&6; }
4627 if ${ac_cv_path_EGREP+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4631 then ac_cv_path_EGREP="$GREP -E"
4632 else
4633 if test -z "$EGREP"; then
4634 ac_path_EGREP_found=false
4635 # Loop through the user's path and test for each of PROGNAME-LIST
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
4641 for ac_prog in egrep; do
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4644 as_fn_executable_p "$ac_path_EGREP" || continue
4645 # Check for GNU ac_path_EGREP and select it if it is found.
4646 # Check for GNU $ac_path_EGREP
4647 case `"$ac_path_EGREP" --version 2>&1` in
4648 *GNU*)
4649 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4651 ac_count=0
4652 $as_echo_n 0123456789 >"conftest.in"
4653 while :
4655 cat "conftest.in" "conftest.in" >"conftest.tmp"
4656 mv "conftest.tmp" "conftest.in"
4657 cp "conftest.in" "conftest.nl"
4658 $as_echo 'EGREP' >> "conftest.nl"
4659 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4661 as_fn_arith $ac_count + 1 && ac_count=$as_val
4662 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4663 # Best one so far, save it but keep looking for a better one
4664 ac_cv_path_EGREP="$ac_path_EGREP"
4665 ac_path_EGREP_max=$ac_count
4667 # 10*(2^10) chars as input seems more than enough
4668 test $ac_count -gt 10 && break
4669 done
4670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4671 esac
4673 $ac_path_EGREP_found && break 3
4674 done
4675 done
4676 done
4677 IFS=$as_save_IFS
4678 if test -z "$ac_cv_path_EGREP"; then
4679 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4681 else
4682 ac_cv_path_EGREP=$EGREP
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4688 $as_echo "$ac_cv_path_EGREP" >&6; }
4689 EGREP="$ac_cv_path_EGREP"
4692 # Extract the first word of "ldconfig", so it can be a program name with args.
4693 set dummy ldconfig; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if ${ac_cv_path_LDCONFIG+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 case $LDCONFIG in
4700 [\\/]* | ?:[\\/]*)
4701 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in /sbin /usr/sbin $PATH
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4711 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4715 done
4716 done
4717 IFS=$as_save_IFS
4719 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4721 esac
4723 LDCONFIG=$ac_cv_path_LDCONFIG
4724 if test -n "$LDCONFIG"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4726 $as_echo "$LDCONFIG" >&6; }
4727 else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4733 # Find a good install program. We prefer a C program (faster),
4734 # so one script is as good as another. But avoid the broken or
4735 # incompatible versions:
4736 # SysV /etc/install, /usr/sbin/install
4737 # SunOS /usr/etc/install
4738 # IRIX /sbin/install
4739 # AIX /bin/install
4740 # AmigaOS /C/install, which installs bootblocks on floppy discs
4741 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4742 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4743 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4744 # OS/2's system install, which has a completely different semantic
4745 # ./install, which can be erroneously created by make from ./install.sh.
4746 # Reject install programs that cannot install multiple files.
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4748 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4749 if test -z "$INSTALL"; then
4750 if ${ac_cv_path_install+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 # Account for people who put trailing slashes in PATH elements.
4759 case $as_dir/ in #((
4760 ./ | .// | /[cC]/* | \
4761 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4762 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4763 /usr/ucb/* ) ;;
4765 # OSF1 and SCO ODT 3.0 have their own names for install.
4766 # Don't use installbsd from OSF since it installs stuff as root
4767 # by default.
4768 for ac_prog in ginstall scoinst install; do
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4771 if test $ac_prog = install &&
4772 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4773 # AIX install. It has an incompatible calling convention.
4775 elif test $ac_prog = install &&
4776 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4777 # program-specific install script used by HP pwplus--don't use.
4779 else
4780 rm -rf conftest.one conftest.two conftest.dir
4781 echo one > conftest.one
4782 echo two > conftest.two
4783 mkdir conftest.dir
4784 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4785 test -s conftest.one && test -s conftest.two &&
4786 test -s conftest.dir/conftest.one &&
4787 test -s conftest.dir/conftest.two
4788 then
4789 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4790 break 3
4794 done
4795 done
4797 esac
4799 done
4800 IFS=$as_save_IFS
4802 rm -rf conftest.one conftest.two conftest.dir
4805 if test "${ac_cv_path_install+set}" = set; then
4806 INSTALL=$ac_cv_path_install
4807 else
4808 # As a last resort, use the slow shell script. Don't cache a
4809 # value for INSTALL within a source directory, because that will
4810 # break other packages using the cache if that directory is
4811 # removed, or if the value is a relative name.
4812 INSTALL=$ac_install_sh
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4816 $as_echo "$INSTALL" >&6; }
4818 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4819 # It thinks the first close brace ends the variable substitution.
4820 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4822 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4824 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4826 case "$INSTALL" in
4827 [\\/$]* | ?:[\\/]* ) ;;
4828 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4829 esac
4831 for ac_prog in lclint lint
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if ${ac_cv_prog_LINT+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 if test -n "$LINT"; then
4841 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_LINT="$ac_prog"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4854 done
4855 done
4856 IFS=$as_save_IFS
4860 LINT=$ac_cv_prog_LINT
4861 if test -n "$LINT"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4863 $as_echo "$LINT" >&6; }
4864 else
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4870 test -n "$LINT" && break
4871 done
4873 if test "$LINT" = "lint"
4874 then
4875 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4879 for ac_prog in fontforge
4881 # Extract the first word of "$ac_prog", so it can be a program name with args.
4882 set dummy $ac_prog; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if ${ac_cv_prog_FONTFORGE+:} false; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 if test -n "$FONTFORGE"; then
4889 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4890 else
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898 ac_cv_prog_FONTFORGE="$ac_prog"
4899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 break 2
4902 done
4903 done
4904 IFS=$as_save_IFS
4908 FONTFORGE=$ac_cv_prog_FONTFORGE
4909 if test -n "$FONTFORGE"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4911 $as_echo "$FONTFORGE" >&6; }
4912 else
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4918 test -n "$FONTFORGE" && break
4919 done
4920 test -n "$FONTFORGE" || FONTFORGE="false"
4922 for ac_prog in pkg-config
4924 # Extract the first word of "$ac_prog", so it can be a program name with args.
4925 set dummy $ac_prog; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$PKG_CONFIG"; then
4932 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_PKG_CONFIG="$ac_prog"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4947 IFS=$as_save_IFS
4951 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4952 if test -n "$PKG_CONFIG"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4954 $as_echo "$PKG_CONFIG" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4961 test -n "$PKG_CONFIG" && break
4962 done
4963 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4965 for ac_prog in rsvg
4967 # Extract the first word of "$ac_prog", so it can be a program name with args.
4968 set dummy $ac_prog; ac_word=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if ${ac_cv_prog_RSVG+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -n "$RSVG"; then
4975 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_RSVG="$ac_prog"
4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4988 done
4989 done
4990 IFS=$as_save_IFS
4994 RSVG=$ac_cv_prog_RSVG
4995 if test -n "$RSVG"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4997 $as_echo "$RSVG" >&6; }
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5004 test -n "$RSVG" && break
5005 done
5006 test -n "$RSVG" || RSVG="false"
5008 for ac_prog in convert
5010 # Extract the first word of "$ac_prog", so it can be a program name with args.
5011 set dummy $ac_prog; ac_word=$2
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if ${ac_cv_prog_CONVERT+:} false; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 if test -n "$CONVERT"; then
5018 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5019 else
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027 ac_cv_prog_CONVERT="$ac_prog"
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5031 done
5032 done
5033 IFS=$as_save_IFS
5037 CONVERT=$ac_cv_prog_CONVERT
5038 if test -n "$CONVERT"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5040 $as_echo "$CONVERT" >&6; }
5041 else
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5047 test -n "$CONVERT" && break
5048 done
5049 test -n "$CONVERT" || CONVERT="false"
5051 for ac_prog in icotool
5053 # Extract the first word of "$ac_prog", so it can be a program name with args.
5054 set dummy $ac_prog; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_prog_ICOTOOL+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 if test -n "$ICOTOOL"; then
5061 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5062 else
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070 ac_cv_prog_ICOTOOL="$ac_prog"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 break 2
5074 done
5075 done
5076 IFS=$as_save_IFS
5080 ICOTOOL=$ac_cv_prog_ICOTOOL
5081 if test -n "$ICOTOOL"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5083 $as_echo "$ICOTOOL" >&6; }
5084 else
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5090 test -n "$ICOTOOL" && break
5091 done
5092 test -n "$ICOTOOL" || ICOTOOL="false"
5094 for ac_prog in msgfmt
5096 # Extract the first word of "$ac_prog", so it can be a program name with args.
5097 set dummy $ac_prog; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_prog_MSGFMT+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -n "$MSGFMT"; then
5104 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113 ac_cv_prog_MSGFMT="$ac_prog"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5117 done
5118 done
5119 IFS=$as_save_IFS
5123 MSGFMT=$ac_cv_prog_MSGFMT
5124 if test -n "$MSGFMT"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5126 $as_echo "$MSGFMT" >&6; }
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5133 test -n "$MSGFMT" && break
5134 done
5135 test -n "$MSGFMT" || MSGFMT="false"
5138 if test "x$enable_maintainer_mode" != "xyes"
5139 then
5140 MAINTAINER_MODE=\#
5142 else
5143 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5144 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5146 if test "$CONVERT" = false
5147 then
5148 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5151 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5152 convert_version=`convert --version | head -n1`
5153 if test "x$convert_version" != "x"
5154 then
5155 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5156 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5157 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5158 then
5159 CONVERT=false
5162 if test "$CONVERT" = false
5163 then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5165 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5166 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5167 else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5169 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5173 if test "$ICOTOOL" = false
5174 then
5175 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5178 $as_echo_n "checking for recent enough icotool... " >&6; }
5179 icotool_version=`icotool --version | head -n1`
5180 if test "x$icotool_version" != "x"
5181 then
5182 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5183 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5184 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5185 then
5186 ICOTOOL=false
5187 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5190 if test "$ICOTOOL" = false
5191 then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5193 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5194 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5195 else
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5197 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5201 with_gettext=yes
5202 with_gettextpo=yes
5203 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5206 test "x$with_gettext" != xno || MSGFMT=false
5207 if test "$MSGFMT" != "false"
5208 then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5210 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5211 cat >conftest.po <<EOF
5212 # comment
5213 msgctxt "ctxt"
5214 msgid "id"
5215 msgstr "str"
5217 if $MSGFMT -o /dev/null conftest.po 2>&5
5218 then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5220 $as_echo "yes" >&6; }
5221 else
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5224 MSGFMT=false
5227 if test "$MSGFMT" = false; then :
5228 case "x$with_gettext" in
5229 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5230 xno) ;;
5231 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5232 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5233 esac
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5238 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5239 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 ac_check_lib_save_LIBS=$LIBS
5243 LIBS="-li386 $LIBS"
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5247 /* Override any GCC internal prototype to avoid an error.
5248 Use char because int might match the return type of a GCC
5249 builtin and then its argument prototype would still apply. */
5250 #ifdef __cplusplus
5251 extern "C"
5252 #endif
5253 char i386_set_ldt ();
5255 main ()
5257 return i386_set_ldt ();
5259 return 0;
5261 _ACEOF
5262 if ac_fn_c_try_link "$LINENO"; then :
5263 ac_cv_lib_i386_i386_set_ldt=yes
5264 else
5265 ac_cv_lib_i386_i386_set_ldt=no
5267 rm -f core conftest.err conftest.$ac_objext \
5268 conftest$ac_exeext conftest.$ac_ext
5269 LIBS=$ac_check_lib_save_LIBS
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5272 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5273 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5274 cat >>confdefs.h <<_ACEOF
5275 #define HAVE_LIBI386 1
5276 _ACEOF
5278 LIBS="-li386 $LIBS"
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5283 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5284 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 ac_check_lib_save_LIBS=$LIBS
5288 LIBS="-lossaudio $LIBS"
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5292 /* Override any GCC internal prototype to avoid an error.
5293 Use char because int might match the return type of a GCC
5294 builtin and then its argument prototype would still apply. */
5295 #ifdef __cplusplus
5296 extern "C"
5297 #endif
5298 char _oss_ioctl ();
5300 main ()
5302 return _oss_ioctl ();
5304 return 0;
5306 _ACEOF
5307 if ac_fn_c_try_link "$LINENO"; then :
5308 ac_cv_lib_ossaudio__oss_ioctl=yes
5309 else
5310 ac_cv_lib_ossaudio__oss_ioctl=no
5312 rm -f core conftest.err conftest.$ac_objext \
5313 conftest$ac_exeext conftest.$ac_ext
5314 LIBS=$ac_check_lib_save_LIBS
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5317 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5318 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5319 cat >>confdefs.h <<_ACEOF
5320 #define HAVE_LIBOSSAUDIO 1
5321 _ACEOF
5323 LIBS="-lossaudio $LIBS"
5328 XLIB=""
5330 OPENGL_LIBS=""
5334 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5336 # Check whether --enable-largefile was given.
5337 if test "${enable_largefile+set}" = set; then :
5338 enableval=$enable_largefile;
5341 if test "$enable_largefile" != no; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5344 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5345 if ${ac_cv_sys_largefile_CC+:} false; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 ac_cv_sys_largefile_CC=no
5349 if test "$GCC" != yes; then
5350 ac_save_CC=$CC
5351 while :; do
5352 # IRIX 6.2 and later do not support large files by default,
5353 # so use the C compiler's -n32 option if that helps.
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356 #include <sys/types.h>
5357 /* Check that off_t can represent 2**63 - 1 correctly.
5358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5359 since some C++ compilers masquerading as C compilers
5360 incorrectly reject 9223372036854775807. */
5361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5363 && LARGE_OFF_T % 2147483647 == 1)
5364 ? 1 : -1];
5366 main ()
5370 return 0;
5372 _ACEOF
5373 if ac_fn_c_try_compile "$LINENO"; then :
5374 break
5376 rm -f core conftest.err conftest.$ac_objext
5377 CC="$CC -n32"
5378 if ac_fn_c_try_compile "$LINENO"; then :
5379 ac_cv_sys_largefile_CC=' -n32'; break
5381 rm -f core conftest.err conftest.$ac_objext
5382 break
5383 done
5384 CC=$ac_save_CC
5385 rm -f conftest.$ac_ext
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5389 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5390 if test "$ac_cv_sys_largefile_CC" != no; then
5391 CC=$CC$ac_cv_sys_largefile_CC
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5395 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5396 if ${ac_cv_sys_file_offset_bits+:} false; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 while :; do
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 #include <sys/types.h>
5403 /* Check that off_t can represent 2**63 - 1 correctly.
5404 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5405 since some C++ compilers masquerading as C compilers
5406 incorrectly reject 9223372036854775807. */
5407 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5408 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5409 && LARGE_OFF_T % 2147483647 == 1)
5410 ? 1 : -1];
5412 main ()
5416 return 0;
5418 _ACEOF
5419 if ac_fn_c_try_compile "$LINENO"; then :
5420 ac_cv_sys_file_offset_bits=no; break
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 #define _FILE_OFFSET_BITS 64
5426 #include <sys/types.h>
5427 /* Check that off_t can represent 2**63 - 1 correctly.
5428 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5429 since some C++ compilers masquerading as C compilers
5430 incorrectly reject 9223372036854775807. */
5431 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5432 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5433 && LARGE_OFF_T % 2147483647 == 1)
5434 ? 1 : -1];
5436 main ()
5440 return 0;
5442 _ACEOF
5443 if ac_fn_c_try_compile "$LINENO"; then :
5444 ac_cv_sys_file_offset_bits=64; break
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 ac_cv_sys_file_offset_bits=unknown
5448 break
5449 done
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5452 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5453 case $ac_cv_sys_file_offset_bits in #(
5454 no | unknown) ;;
5456 cat >>confdefs.h <<_ACEOF
5457 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5458 _ACEOF
5460 esac
5461 rm -rf conftest*
5462 if test $ac_cv_sys_file_offset_bits = unknown; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5464 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5465 if ${ac_cv_sys_large_files+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 while :; do
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <sys/types.h>
5472 /* Check that off_t can represent 2**63 - 1 correctly.
5473 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5474 since some C++ compilers masquerading as C compilers
5475 incorrectly reject 9223372036854775807. */
5476 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5477 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5478 && LARGE_OFF_T % 2147483647 == 1)
5479 ? 1 : -1];
5481 main ()
5485 return 0;
5487 _ACEOF
5488 if ac_fn_c_try_compile "$LINENO"; then :
5489 ac_cv_sys_large_files=no; break
5491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 #define _LARGE_FILES 1
5495 #include <sys/types.h>
5496 /* Check that off_t can represent 2**63 - 1 correctly.
5497 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5498 since some C++ compilers masquerading as C compilers
5499 incorrectly reject 9223372036854775807. */
5500 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5501 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5502 && LARGE_OFF_T % 2147483647 == 1)
5503 ? 1 : -1];
5505 main ()
5509 return 0;
5511 _ACEOF
5512 if ac_fn_c_try_compile "$LINENO"; then :
5513 ac_cv_sys_large_files=1; break
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 ac_cv_sys_large_files=unknown
5517 break
5518 done
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5521 $as_echo "$ac_cv_sys_large_files" >&6; }
5522 case $ac_cv_sys_large_files in #(
5523 no | unknown) ;;
5525 cat >>confdefs.h <<_ACEOF
5526 #define _LARGE_FILES $ac_cv_sys_large_files
5527 _ACEOF
5529 esac
5530 rm -rf conftest*
5537 ac_ext=c
5538 ac_cpp='$CPP $CPPFLAGS'
5539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5543 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5544 # On Suns, sometimes $CPP names a directory.
5545 if test -n "$CPP" && test -d "$CPP"; then
5546 CPP=
5548 if test -z "$CPP"; then
5549 if ${ac_cv_prog_CPP+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 # Double quotes because CPP needs to be expanded
5553 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5555 ac_preproc_ok=false
5556 for ac_c_preproc_warn_flag in '' yes
5558 # Use a header file that comes with gcc, so configuring glibc
5559 # with a fresh cross-compiler works.
5560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5561 # <limits.h> exists even on freestanding compilers.
5562 # On the NeXT, cc -E runs the code through the compiler's parser,
5563 # not just through cpp. "Syntax error" is here to catch this case.
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 #ifdef __STDC__
5567 # include <limits.h>
5568 #else
5569 # include <assert.h>
5570 #endif
5571 Syntax error
5572 _ACEOF
5573 if ac_fn_c_try_cpp "$LINENO"; then :
5575 else
5576 # Broken: fails on valid input.
5577 continue
5579 rm -f conftest.err conftest.i conftest.$ac_ext
5581 # OK, works on sane cases. Now check whether nonexistent headers
5582 # can be detected and how.
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 #include <ac_nonexistent.h>
5586 _ACEOF
5587 if ac_fn_c_try_cpp "$LINENO"; then :
5588 # Broken: success on invalid input.
5589 continue
5590 else
5591 # Passes both tests.
5592 ac_preproc_ok=:
5593 break
5595 rm -f conftest.err conftest.i conftest.$ac_ext
5597 done
5598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5599 rm -f conftest.i conftest.err conftest.$ac_ext
5600 if $ac_preproc_ok; then :
5601 break
5604 done
5605 ac_cv_prog_CPP=$CPP
5608 CPP=$ac_cv_prog_CPP
5609 else
5610 ac_cv_prog_CPP=$CPP
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5613 $as_echo "$CPP" >&6; }
5614 ac_preproc_ok=false
5615 for ac_c_preproc_warn_flag in '' yes
5617 # Use a header file that comes with gcc, so configuring glibc
5618 # with a fresh cross-compiler works.
5619 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5620 # <limits.h> exists even on freestanding compilers.
5621 # On the NeXT, cc -E runs the code through the compiler's parser,
5622 # not just through cpp. "Syntax error" is here to catch this case.
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 #ifdef __STDC__
5626 # include <limits.h>
5627 #else
5628 # include <assert.h>
5629 #endif
5630 Syntax error
5631 _ACEOF
5632 if ac_fn_c_try_cpp "$LINENO"; then :
5634 else
5635 # Broken: fails on valid input.
5636 continue
5638 rm -f conftest.err conftest.i conftest.$ac_ext
5640 # OK, works on sane cases. Now check whether nonexistent headers
5641 # can be detected and how.
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <ac_nonexistent.h>
5645 _ACEOF
5646 if ac_fn_c_try_cpp "$LINENO"; then :
5647 # Broken: success on invalid input.
5648 continue
5649 else
5650 # Passes both tests.
5651 ac_preproc_ok=:
5652 break
5654 rm -f conftest.err conftest.i conftest.$ac_ext
5656 done
5657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5658 rm -f conftest.i conftest.err conftest.$ac_ext
5659 if $ac_preproc_ok; then :
5661 else
5662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5664 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5665 See \`config.log' for more details" "$LINENO" 5; }
5668 ac_ext=c
5669 ac_cpp='$CPP $CPPFLAGS'
5670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5676 $as_echo_n "checking for ANSI C header files... " >&6; }
5677 if ${ac_cv_header_stdc+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #include <stdlib.h>
5683 #include <stdarg.h>
5684 #include <string.h>
5685 #include <float.h>
5688 main ()
5692 return 0;
5694 _ACEOF
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696 ac_cv_header_stdc=yes
5697 else
5698 ac_cv_header_stdc=no
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 if test $ac_cv_header_stdc = yes; then
5703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5706 #include <string.h>
5708 _ACEOF
5709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5710 $EGREP "memchr" >/dev/null 2>&1; then :
5712 else
5713 ac_cv_header_stdc=no
5715 rm -f conftest*
5719 if test $ac_cv_header_stdc = yes; then
5720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 #include <stdlib.h>
5725 _ACEOF
5726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5727 $EGREP "free" >/dev/null 2>&1; then :
5729 else
5730 ac_cv_header_stdc=no
5732 rm -f conftest*
5736 if test $ac_cv_header_stdc = yes; then
5737 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5738 if test "$cross_compiling" = yes; then :
5740 else
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 #include <ctype.h>
5744 #include <stdlib.h>
5745 #if ((' ' & 0x0FF) == 0x020)
5746 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5747 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5748 #else
5749 # define ISLOWER(c) \
5750 (('a' <= (c) && (c) <= 'i') \
5751 || ('j' <= (c) && (c) <= 'r') \
5752 || ('s' <= (c) && (c) <= 'z'))
5753 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5754 #endif
5756 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5758 main ()
5760 int i;
5761 for (i = 0; i < 256; i++)
5762 if (XOR (islower (i), ISLOWER (i))
5763 || toupper (i) != TOUPPER (i))
5764 return 2;
5765 return 0;
5767 _ACEOF
5768 if ac_fn_c_try_run "$LINENO"; then :
5770 else
5771 ac_cv_header_stdc=no
5773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5774 conftest.$ac_objext conftest.beam conftest.$ac_ext
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5780 $as_echo "$ac_cv_header_stdc" >&6; }
5781 if test $ac_cv_header_stdc = yes; then
5783 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5787 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5788 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5789 inttypes.h stdint.h unistd.h
5790 do :
5791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5792 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5794 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5795 cat >>confdefs.h <<_ACEOF
5796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5797 _ACEOF
5801 done
5804 for ac_header in \
5805 AL/al.h \
5806 ApplicationServices/ApplicationServices.h \
5807 AudioToolbox/AudioConverter.h \
5808 AudioUnit/AudioUnit.h \
5809 AudioUnit/AudioComponent.h \
5810 CL/cl.h \
5811 Carbon/Carbon.h \
5812 CoreAudio/CoreAudio.h \
5813 CoreServices/CoreServices.h \
5814 DiskArbitration/DiskArbitration.h \
5815 IOKit/IOKitLib.h \
5816 IOKit/hid/IOHIDLib.h \
5817 OpenAL/al.h \
5818 OpenCL/opencl.h \
5819 QuickTime/ImageCompression.h \
5820 Security/Security.h \
5821 alias.h \
5822 alsa/asoundlib.h \
5823 arpa/inet.h \
5824 arpa/nameser.h \
5825 asm/types.h \
5826 capi20.h \
5827 curses.h \
5828 direct.h \
5829 dirent.h \
5830 dlfcn.h \
5831 elf.h \
5832 float.h \
5833 fnmatch.h \
5834 fontconfig/fontconfig.h \
5835 getopt.h \
5836 gettext-po.h \
5837 grp.h \
5838 gsm.h \
5839 gsm/gsm.h \
5840 ieeefp.h \
5841 inet/mib2.h \
5842 io.h \
5843 jpeglib.h \
5844 kstat.h \
5845 lber.h \
5846 lcms.h \
5847 lcms/lcms.h \
5848 ldap.h \
5849 link.h \
5850 linux/cdrom.h \
5851 linux/compiler.h \
5852 linux/filter.h \
5853 linux/hdreg.h \
5854 linux/input.h \
5855 linux/ioctl.h \
5856 linux/joystick.h \
5857 linux/major.h \
5858 linux/param.h \
5859 linux/serial.h \
5860 linux/types.h \
5861 linux/ucdrom.h \
5862 lwp.h \
5863 mach-o/nlist.h \
5864 mach-o/loader.h \
5865 mach/mach.h \
5866 mach/machine.h \
5867 machine/cpu.h \
5868 machine/limits.h \
5869 machine/sysarch.h \
5870 mntent.h \
5871 mpg123.h \
5872 ncurses.h \
5873 netdb.h \
5874 netinet/in.h \
5875 netinet/in_systm.h \
5876 netinet/tcp.h \
5877 netinet/tcp_fsm.h \
5878 png.h \
5879 poll.h \
5880 port.h \
5881 process.h \
5882 pthread.h \
5883 pwd.h \
5884 sched.h \
5885 scsi/scsi.h \
5886 scsi/scsi_ioctl.h \
5887 scsi/sg.h \
5888 stdbool.h \
5889 stdint.h \
5890 stropts.h \
5891 sys/asoundlib.h \
5892 sys/attr.h \
5893 sys/cdio.h \
5894 sys/elf32.h \
5895 sys/epoll.h \
5896 sys/event.h \
5897 sys/exec_elf.h \
5898 sys/filio.h \
5899 sys/inotify.h \
5900 sys/ioctl.h \
5901 sys/ipc.h \
5902 sys/limits.h \
5903 sys/link.h \
5904 sys/mman.h \
5905 sys/modem.h \
5906 sys/msg.h \
5907 sys/mtio.h \
5908 sys/param.h \
5909 sys/poll.h \
5910 sys/prctl.h \
5911 sys/protosw.h \
5912 sys/ptrace.h \
5913 sys/resource.h \
5914 sys/scsiio.h \
5915 sys/shm.h \
5916 sys/signal.h \
5917 sys/socket.h \
5918 sys/socketvar.h \
5919 sys/sockio.h \
5920 sys/statvfs.h \
5921 sys/strtio.h \
5922 sys/syscall.h \
5923 sys/tihdr.h \
5924 sys/time.h \
5925 sys/timeout.h \
5926 sys/times.h \
5927 sys/uio.h \
5928 sys/utsname.h \
5929 sys/vm86.h \
5930 sys/wait.h \
5931 syscall.h \
5932 termios.h \
5933 tiffio.h \
5934 unistd.h \
5935 utime.h \
5936 valgrind/memcheck.h \
5937 valgrind/valgrind.h \
5938 zlib.h
5940 do :
5941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5942 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5943 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5944 cat >>confdefs.h <<_ACEOF
5945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5946 _ACEOF
5950 done
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5953 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5954 if ${ac_cv_header_stat_broken+:} false; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5959 #include <sys/types.h>
5960 #include <sys/stat.h>
5962 #if defined S_ISBLK && defined S_IFDIR
5963 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5964 #endif
5966 #if defined S_ISBLK && defined S_IFCHR
5967 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5968 #endif
5970 #if defined S_ISLNK && defined S_IFREG
5971 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5972 #endif
5974 #if defined S_ISSOCK && defined S_IFREG
5975 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5976 #endif
5978 _ACEOF
5979 if ac_fn_c_try_compile "$LINENO"; then :
5980 ac_cv_header_stat_broken=no
5981 else
5982 ac_cv_header_stat_broken=yes
5984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5987 $as_echo "$ac_cv_header_stat_broken" >&6; }
5988 if test $ac_cv_header_stat_broken = yes; then
5990 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5996 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5997 do :
5998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5999 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6000 #ifdef HAVE_SYS_PARAM_H
6001 # include <sys/param.h>
6002 #endif
6004 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6005 cat >>confdefs.h <<_ACEOF
6006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6007 _ACEOF
6011 done
6014 for ac_header in \
6015 netinet/ip.h \
6016 net/if.h \
6017 net/if_arp.h \
6018 net/if_dl.h \
6019 net/if_types.h \
6020 net/route.h \
6021 netinet/if_ether.h \
6022 netinet/if_inarp.h \
6023 netinet/in_pcb.h \
6024 netinet/ip_icmp.h \
6025 netinet/ip_var.h \
6026 netinet/udp.h \
6027 netipx/ipx.h \
6028 sys/un.h \
6030 do :
6031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6032 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6033 #ifdef HAVE_SYS_SOCKET_H
6034 # include <sys/socket.h>
6035 #endif
6036 #ifdef HAVE_SYS_SOCKETVAR_H
6037 # include <sys/socketvar.h>
6038 #endif
6039 #ifdef HAVE_NET_ROUTE_H
6040 # include <net/route.h>
6041 #endif
6042 #ifdef HAVE_NETINET_IN_H
6043 # include <netinet/in.h>
6044 #endif
6045 #ifdef HAVE_NETINET_IN_SYSTM_H
6046 # include <netinet/in_systm.h>
6047 #endif
6048 #ifdef HAVE_NET_IF_H
6049 # include <net/if.h>
6050 #endif
6051 #ifdef HAVE_NETINET_IP_H
6052 # include <netinet/ip.h>
6053 #endif
6055 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6056 cat >>confdefs.h <<_ACEOF
6057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6058 _ACEOF
6062 done
6065 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6066 do :
6067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6068 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6069 #ifdef HAVE_ALIAS_H
6070 # include <alias.h>
6071 #endif
6072 #ifdef HAVE_SYS_SOCKET_H
6073 # include <sys/socket.h>
6074 #endif
6075 #ifdef HAVE_SYS_SOCKETVAR_H
6076 # include <sys/socketvar.h>
6077 #endif
6078 #ifdef HAVE_SYS_TIMEOUT_H
6079 # include <sys/timeout.h>
6080 #endif
6081 #ifdef HAVE_NETINET_IN_H
6082 # include <netinet/in.h>
6083 #endif
6084 #ifdef HAVE_NETINET_IN_SYSTM_H
6085 # include <netinet/in_systm.h>
6086 #endif
6087 #ifdef HAVE_NETINET_IP_H
6088 # include <netinet/ip.h>
6089 #endif
6090 #ifdef HAVE_NETINET_IP_VAR_H
6091 # include <netinet/ip_var.h>
6092 #endif
6093 #ifdef HAVE_NETINET_IP_ICMP_H
6094 # include <netinet/ip_icmp.h>
6095 #endif
6096 #ifdef HAVE_NETINET_UDP_H
6097 # include <netinet/udp.h>
6098 #endif
6099 #ifdef HAVE_NETINET_TCP_H
6100 # include <netinet/tcp.h>
6101 #endif
6102 #ifdef HAVE_NETINET_TCP_TIMER_H
6103 #include <netinet/tcp_timer.h>
6104 #endif
6106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6107 cat >>confdefs.h <<_ACEOF
6108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6109 _ACEOF
6113 done
6116 for ac_header in linux/ipx.h linux/irda.h
6117 do :
6118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6119 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6120 #ifdef HAVE_ASM_TYPES_H
6121 # include <asm/types.h>
6122 #endif
6123 #ifdef HAVE_SYS_SOCKET_H
6124 # include <sys/socket.h>
6125 #endif
6126 #ifdef HAVE_LINUX_TYPES_H
6127 # include <linux/types.h>
6128 #endif
6130 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6131 cat >>confdefs.h <<_ACEOF
6132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6133 _ACEOF
6137 done
6140 for ac_header in mach-o/dyld_images.h
6141 do :
6142 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6143 # include <stdbool.h>
6144 #endif
6145 #ifdef HAVE_STDINT_H
6146 # include <stdint.h>
6147 #endif
6149 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6150 cat >>confdefs.h <<_ACEOF
6151 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6152 _ACEOF
6156 done
6159 for ac_header in resolv.h
6160 do :
6161 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6162 #ifdef HAVE_SYS_SOCKET_H
6163 # include <sys/socket.h>
6164 #endif
6165 #ifdef HAVE_NETINET_IN_H
6166 # include <netinet/in.h>
6167 #endif
6168 #ifdef HAVE_ARPA_NAMESER_H
6169 # include <arpa/nameser.h>
6170 #endif
6172 if test "x$ac_cv_header_resolv_h" = xyes; then :
6173 cat >>confdefs.h <<_ACEOF
6174 #define HAVE_RESOLV_H 1
6175 _ACEOF
6179 done
6182 for ac_header in ifaddrs.h
6183 do :
6184 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6186 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6187 cat >>confdefs.h <<_ACEOF
6188 #define HAVE_IFADDRS_H 1
6189 _ACEOF
6193 done
6196 for ac_header in ucontext.h
6197 do :
6198 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6200 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6201 cat >>confdefs.h <<_ACEOF
6202 #define HAVE_UCONTEXT_H 1
6203 _ACEOF
6207 done
6210 for ac_header in sys/thr.h
6211 do :
6212 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6213 #ifdef HAVE_UCONTEXT_H
6214 #include <ucontext.h>
6215 #endif
6217 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6218 cat >>confdefs.h <<_ACEOF
6219 #define HAVE_SYS_THR_H 1
6220 _ACEOF
6224 done
6227 for ac_header in pthread_np.h
6228 do :
6229 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6230 #include <pthread.h>
6231 #endif
6233 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6234 cat >>confdefs.h <<_ACEOF
6235 #define HAVE_PTHREAD_NP_H 1
6236 _ACEOF
6240 done
6243 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6244 do :
6245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6246 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6247 #include <sys/time.h>
6248 #endif
6249 #include <sys/types.h>
6250 #ifdef HAVE_ASM_TYPES_H
6251 #include <asm/types.h>
6252 #endif
6254 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6255 cat >>confdefs.h <<_ACEOF
6256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6257 _ACEOF
6261 done
6264 for ac_header in linux/capi.h
6265 do :
6266 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6268 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6269 cat >>confdefs.h <<_ACEOF
6270 #define HAVE_LINUX_CAPI_H 1
6271 _ACEOF
6275 done
6279 DLLEXT=""
6281 DLLFLAGS="-D_REENTRANT"
6283 LDDLLFLAGS=""
6285 IMPLIBEXT="def"
6287 LDRPATH_INSTALL=""
6289 LDRPATH_LOCAL=""
6291 LIBEXT="so"
6292 STATIC_IMPLIBEXT="def.a"
6293 # Extract the first word of "ldd", so it can be a program name with args.
6294 set dummy ldd; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if ${ac_cv_path_LDD+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 case $LDD in
6301 [\\/]* | ?:[\\/]*)
6302 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 as_dummy="/sbin:/usr/sbin:$PATH"
6307 for as_dir in $as_dummy
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6317 done
6318 done
6319 IFS=$as_save_IFS
6321 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6323 esac
6325 LDD=$ac_cv_path_LDD
6326 if test -n "$LDD"; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6328 $as_echo "$LDD" >&6; }
6329 else
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6335 if test -n "$ac_tool_prefix"; then
6336 for ac_prog in readelf
6338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if ${ac_cv_prog_READELF+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 if test -n "$READELF"; then
6346 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6347 else
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6355 ac_cv_prog_READELF="$ac_tool_prefix$ac_prog"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 break 2
6359 done
6360 done
6361 IFS=$as_save_IFS
6365 READELF=$ac_cv_prog_READELF
6366 if test -n "$READELF"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6368 $as_echo "$READELF" >&6; }
6369 else
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371 $as_echo "no" >&6; }
6375 test -n "$READELF" && break
6376 done
6378 if test -z "$READELF"; then
6379 ac_ct_READELF=$READELF
6380 for ac_prog in readelf
6382 # Extract the first word of "$ac_prog", so it can be a program name with args.
6383 set dummy $ac_prog; ac_word=$2
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6385 $as_echo_n "checking for $ac_word... " >&6; }
6386 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389 if test -n "$ac_ct_READELF"; then
6390 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399 ac_cv_prog_ac_ct_READELF="$ac_prog"
6400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 break 2
6403 done
6404 done
6405 IFS=$as_save_IFS
6409 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6410 if test -n "$ac_ct_READELF"; then
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6412 $as_echo "$ac_ct_READELF" >&6; }
6413 else
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6419 test -n "$ac_ct_READELF" && break
6420 done
6422 if test "x$ac_ct_READELF" = x; then
6423 READELF="true"
6424 else
6425 case $cross_compiling:$ac_tool_warned in
6426 yes:)
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6429 ac_tool_warned=yes ;;
6430 esac
6431 READELF=$ac_ct_READELF
6436 case $host_os in
6437 cygwin*|mingw32*)
6438 if test -n "$ac_tool_prefix"; then
6439 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6440 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_DLLTOOL+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$DLLTOOL"; then
6447 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6460 done
6461 done
6462 IFS=$as_save_IFS
6466 DLLTOOL=$ac_cv_prog_DLLTOOL
6467 if test -n "$DLLTOOL"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6469 $as_echo "$DLLTOOL" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6477 if test -z "$ac_cv_prog_DLLTOOL"; then
6478 ac_ct_DLLTOOL=$DLLTOOL
6479 # Extract the first word of "dlltool", so it can be a program name with args.
6480 set dummy dlltool; ac_word=$2
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 if test -n "$ac_ct_DLLTOOL"; then
6487 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6492 IFS=$as_save_IFS
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 break 2
6500 done
6501 done
6502 IFS=$as_save_IFS
6506 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6507 if test -n "$ac_ct_DLLTOOL"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6509 $as_echo "$ac_ct_DLLTOOL" >&6; }
6510 else
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6515 if test "x$ac_ct_DLLTOOL" = x; then
6516 DLLTOOL="false"
6517 else
6518 case $cross_compiling:$ac_tool_warned in
6519 yes:)
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6523 esac
6524 DLLTOOL=$ac_ct_DLLTOOL
6526 else
6527 DLLTOOL="$ac_cv_prog_DLLTOOL"
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if ${ac_cv_prog_DLLWRAP+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 if test -n "$DLLWRAP"; then
6539 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6552 done
6553 done
6554 IFS=$as_save_IFS
6558 DLLWRAP=$ac_cv_prog_DLLWRAP
6559 if test -n "$DLLWRAP"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6561 $as_echo "$DLLWRAP" >&6; }
6562 else
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6569 if test -z "$ac_cv_prog_DLLWRAP"; then
6570 ac_ct_DLLWRAP=$DLLWRAP
6571 # Extract the first word of "dllwrap", so it can be a program name with args.
6572 set dummy dllwrap; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 if test -n "$ac_ct_DLLWRAP"; then
6579 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6592 done
6593 done
6594 IFS=$as_save_IFS
6598 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6599 if test -n "$ac_ct_DLLWRAP"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6601 $as_echo "$ac_ct_DLLWRAP" >&6; }
6602 else
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6607 if test "x$ac_ct_DLLWRAP" = x; then
6608 DLLWRAP="false"
6609 else
6610 case $cross_compiling:$ac_tool_warned in
6611 yes:)
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6615 esac
6616 DLLWRAP=$ac_ct_DLLWRAP
6618 else
6619 DLLWRAP="$ac_cv_prog_DLLWRAP"
6622 if test "$DLLWRAP" = "false"; then
6623 as_fn_error $? "dllwrap is needed to build a dll for Windows" "$LINENO" 5
6625 LIBEXT="dll"
6626 IMPLIBEXT="a"
6627 STATIC_IMPLIBEXT="a"
6628 enable_iphlpapi=${enable_iphlpapi:-no}
6629 enable_kernel32=${enable_kernel32:-no}
6630 enable_msvcrt=${enable_msvcrt:-no}
6631 enable_ntdll=${enable_ntdll:-no}
6632 enable_ws2_32=${enable_ws2_32:-no}
6633 enable_loader=${enable_loader:-no}
6634 enable_server=${enable_server:-no}
6635 with_x=${with_x:-no}
6636 with_pthread=${with_pthread:-no}
6638 crtlibs=""
6639 case $host_os in
6640 mingw32*)
6641 crtlibs="-lmsvcrt"
6642 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
6644 esac
6646 LIBWINE_RULES="
6647 all: libwine.dll libwine.a
6649 libwine.a: wine.def
6650 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
6652 libwine.dll: \$(OBJS) wine.def Makefile.in
6653 \$(DLLWRAP) --def \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
6655 install install-lib:: libwine.dll \$(DESTDIR)\$(libdir) dummy
6656 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
6658 install install-dev:: libwine.a \$(DESTDIR)\$(libdir) dummy
6659 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
6661 uninstall::
6662 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
6664 clean::
6665 \$(RM) libwine.dll version.c
6670 darwin*|macosx*)
6671 DLLEXT=".so"
6672 LIBEXT="dylib"
6673 DLLFLAGS="$DLLFLAGS -fPIC"
6674 LDDLLFLAGS="-bundle -multiply_defined suppress"
6675 LIBWINE_LDFLAGS="-multiply_defined suppress"
6676 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6677 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
6678 COREFOUNDATIONLIB="-framework CoreFoundation"
6680 IOKITLIB="-framework IOKit -framework CoreFoundation"
6682 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6684 CORESERVICESLIB="-framework CoreServices"
6686 case $host_os in
6687 darwin11*)
6688 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"
6691 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6693 esac
6694 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6695 then
6696 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6699 if test "$ac_cv_header_Security_Security_h" = "yes"
6700 then
6701 SECURITYLIB="-framework Security -framework CoreFoundation"
6703 ac_save_LIBS="$LIBS"
6704 LIBS="$LIBS $SECURITYLIB"
6705 for ac_func in SSLCopyPeerCertificates
6706 do :
6707 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6708 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6709 cat >>confdefs.h <<_ACEOF
6710 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6711 _ACEOF
6714 done
6716 LIBS="$ac_save_LIBS"
6717 with_gnutls=${with_gnutls:-no}
6719 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6720 then
6721 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6722 then
6723 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6725 else
6726 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6729 ac_save_LIBS="$LIBS"
6730 LIBS="$LIBS $COREAUDIO"
6731 for ac_func in AUGraphAddNode
6732 do :
6733 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6734 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6735 cat >>confdefs.h <<_ACEOF
6736 #define HAVE_AUGRAPHADDNODE 1
6737 _ACEOF
6740 done
6742 LIBS="$ac_save_LIBS"
6744 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6745 then
6746 FRAMEWORK_OPENAL="-framework OpenAL"
6749 cat >>confdefs.h <<_ACEOF
6750 #define HAVE_OPENAL 1
6751 _ACEOF
6753 ac_cv_lib_openal=yes
6755 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6756 then
6757 LIBOPENCL="-framework OpenCL"
6759 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6761 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6762 then
6763 ac_save_LIBS="$LIBS"
6764 LIBS="$LIBS $IOKITLIB"
6765 for ac_func in IOHIDManagerCreate
6766 do :
6767 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6768 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6769 cat >>confdefs.h <<_ACEOF
6770 #define HAVE_IOHIDMANAGERCREATE 1
6771 _ACEOF
6774 done
6776 LIBS="$ac_save_LIBS"
6778 case $host_cpu in
6779 *powerpc*)
6780 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6781 esac
6782 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6783 then
6784 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6786 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6787 else
6788 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6790 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6791 then
6792 CARBONLIB="-framework Carbon"
6796 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
6797 then
6798 ac_save_LIBS="$LIBS"
6799 LIBS="$LIBS $APPLICATIONSERVICESLIB"
6800 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
6801 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
6802 enable_winemac_drv=${enable_winemac_drv:-yes}
6805 LIBS="$ac_save_LIBS"
6808 if test "x$enable_win16" = "xyes"
6809 then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6811 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6812 if test "$cross_compiling" = yes; then :
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6814 $as_echo "cross-compiling, assuming yes" >&6; }
6815 else
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 asm(".text\n"
6819 "bad:\tnop;nop\n"
6820 "good:\tnop;nop\n\t"
6821 ".globl _testfunc\n"
6822 "_testfunc:\tcallw good");
6823 extern void testfunc();
6825 main ()
6827 unsigned short *p = (unsigned short *)testfunc;
6828 return p[0] != 0xe866 || p[1] != 0xfffa
6830 return 0;
6832 _ACEOF
6833 if ac_fn_c_try_run "$LINENO"; then :
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6835 $as_echo "yes" >&6; }
6836 else
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6839 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
6841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6842 conftest.$ac_objext conftest.beam conftest.$ac_ext
6847 LIBWINE_RULES="
6848 all: libwine.dylib
6850 libwine.\$(VERSION).dylib: \$(OBJS) \$(RELPATH) Makefile.in
6851 \$(CC) -dynamiclib -install_name @rpath/libwine.\$(SOVERSION).dylib -Wl,-rpath,@loader_path/ -compatibility_version \$(SOVERSION) -current_version \$(VERSION) \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
6853 libwine.\$(SOVERSION).dylib: libwine.\$(VERSION).dylib
6854 \$(RM) \$@ && \$(LN_S) libwine.\$(VERSION).dylib \$@
6856 libwine.dylib: libwine.\$(SOVERSION).dylib
6857 \$(RM) \$@ && \$(LN_S) libwine.\$(SOVERSION).dylib \$@
6859 install install-lib:: libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir) dummy
6860 \$(INSTALL_PROGRAM) libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir)/libwine.\$(VERSION).dylib
6861 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.\$(SOVERSION).dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6863 install install-dev:: \$(DESTDIR)\$(libdir) dummy
6864 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.dylib
6866 uninstall::
6867 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6869 clean::
6870 \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib version.c
6875 linux-android*)
6876 DLLFLAGS="$DLLFLAGS -fPIC"
6877 DLLEXT=".so"
6878 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6880 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6881 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883 else
6884 ac_wine_try_cflags_saved=$CFLAGS
6885 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 int main(int argc, char **argv) { return 0; }
6889 _ACEOF
6890 if ac_fn_c_try_link "$LINENO"; then :
6891 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6892 else
6893 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6895 rm -f core conftest.err conftest.$ac_objext \
6896 conftest$ac_exeext conftest.$ac_ext
6897 CFLAGS=$ac_wine_try_cflags_saved
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6900 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6901 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6902 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6904 { $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
6905 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6906 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 ac_wine_try_cflags_saved=$CFLAGS
6910 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913 int main(int argc, char **argv) { return 0; }
6914 _ACEOF
6915 if ac_fn_c_try_link "$LINENO"; then :
6916 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6917 else
6918 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6920 rm -f core conftest.err conftest.$ac_objext \
6921 conftest$ac_exeext conftest.$ac_ext
6922 CFLAGS=$ac_wine_try_cflags_saved
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6925 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6926 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6927 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6930 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6931 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 ac_wine_try_cflags_saved=$CFLAGS
6935 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6938 int main(int argc, char **argv) { return 0; }
6939 _ACEOF
6940 if ac_fn_c_try_link "$LINENO"; then :
6941 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6942 else
6943 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6945 rm -f core conftest.err conftest.$ac_objext \
6946 conftest$ac_exeext conftest.$ac_ext
6947 CFLAGS=$ac_wine_try_cflags_saved
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6950 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6951 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6952 LDEXECFLAGS="-Wl,--export-dynamic"
6955 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6957 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6958 if eval \${$as_ac_var+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 ac_wine_try_cflags_saved=$CFLAGS
6962 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965 int main(int argc, char **argv) { return 0; }
6966 _ACEOF
6967 if ac_fn_c_try_link "$LINENO"; then :
6968 eval "$as_ac_var=yes"
6969 else
6970 eval "$as_ac_var=no"
6972 rm -f core conftest.err conftest.$ac_objext \
6973 conftest$ac_exeext conftest.$ac_ext
6974 CFLAGS=$ac_wine_try_cflags_saved
6976 eval ac_res=\$$as_ac_var
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6978 $as_echo "$ac_res" >&6; }
6979 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6980 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6981 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6982 else
6983 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6985 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6986 if eval \${$as_ac_var+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 ac_wine_try_cflags_saved=$CFLAGS
6990 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6993 int main(int argc, char **argv) { return 0; }
6994 _ACEOF
6995 if ac_fn_c_try_link "$LINENO"; then :
6996 eval "$as_ac_var=yes"
6997 else
6998 eval "$as_ac_var=no"
7000 rm -f core conftest.err conftest.$ac_objext \
7001 conftest$ac_exeext conftest.$ac_ext
7002 CFLAGS=$ac_wine_try_cflags_saved
7004 eval ac_res=\$$as_ac_var
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7006 $as_echo "$ac_res" >&6; }
7007 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7008 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7009 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7014 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7015 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7016 $as_echo_n "(cached) " >&6
7017 else
7018 ac_wine_try_cflags_saved=$CFLAGS
7019 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7022 int main(int argc, char **argv) { return 0; }
7023 _ACEOF
7024 if ac_fn_c_try_link "$LINENO"; then :
7025 ac_cv_cflags__Wl___enable_new_dtags=yes
7026 else
7027 ac_cv_cflags__Wl___enable_new_dtags=no
7029 rm -f core conftest.err conftest.$ac_objext \
7030 conftest$ac_exeext conftest.$ac_ext
7031 CFLAGS=$ac_wine_try_cflags_saved
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7034 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7035 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7036 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7039 case $host_cpu in
7040 *i[3456789]86* | x86_64)
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7042 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7043 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7046 ac_wine_try_cflags_saved=$CFLAGS
7047 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7050 int main(int argc, char **argv) { return 0; }
7051 _ACEOF
7052 if ac_fn_c_try_link "$LINENO"; then :
7053 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7054 else
7055 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7057 rm -f core conftest.err conftest.$ac_objext \
7058 conftest$ac_exeext conftest.$ac_ext
7059 CFLAGS=$ac_wine_try_cflags_saved
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7062 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7063 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7064 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
7067 esac
7069 LIBWINE_RULES="
7070 all: libwine.so
7072 libwine.so: \$(OBJS) Makefile.in
7073 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7075 install install-lib:: libwine.so \$(DESTDIR)\$(libdir) dummy
7076 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
7078 uninstall::
7079 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
7081 clean::
7082 \$(RM) libwine.so version.c
7088 DLLFLAGS="$DLLFLAGS -fPIC"
7089 DLLEXT=".so"
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
7091 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
7092 if ${ac_cv_c_dll_gnuelf+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 ac_wine_try_cflags_saved=$CFLAGS
7096 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 void myfunc() {}
7100 _ACEOF
7101 if ac_fn_c_try_link "$LINENO"; then :
7102 ac_cv_c_dll_gnuelf="yes"
7103 else
7104 ac_cv_c_dll_gnuelf="no"
7106 rm -f core conftest.err conftest.$ac_objext \
7107 conftest$ac_exeext conftest.$ac_ext
7108 CFLAGS=$ac_wine_try_cflags_saved
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
7111 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
7112 if test "$ac_cv_c_dll_gnuelf" = "yes"
7113 then
7114 LDSHARED="\$(CC) -shared"
7115 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
7117 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
7118 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
7119 $as_echo_n "(cached) " >&6
7120 else
7121 ac_wine_try_cflags_saved=$CFLAGS
7122 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125 int main(int argc, char **argv) { return 0; }
7126 _ACEOF
7127 if ac_fn_c_try_link "$LINENO"; then :
7128 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
7129 else
7130 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
7132 rm -f core conftest.err conftest.$ac_objext \
7133 conftest$ac_exeext conftest.$ac_ext
7134 CFLAGS=$ac_wine_try_cflags_saved
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
7137 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
7138 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
7139 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.\$(SOVERSION)"
7140 else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
7142 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
7143 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 ac_wine_try_cflags_saved=$CFLAGS
7147 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 int main(int argc, char **argv) { return 0; }
7151 _ACEOF
7152 if ac_fn_c_try_link "$LINENO"; then :
7153 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
7154 else
7155 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
7157 rm -f core conftest.err conftest.$ac_objext \
7158 conftest$ac_exeext conftest.$ac_ext
7159 CFLAGS=$ac_wine_try_cflags_saved
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
7162 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
7163 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
7164 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.\$(SOVERSION)"
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
7169 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
7170 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 ac_wine_try_cflags_saved=$CFLAGS
7174 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 int main(int argc, char **argv) { return 0; }
7178 _ACEOF
7179 if ac_fn_c_try_link "$LINENO"; then :
7180 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
7181 else
7182 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
7184 rm -f core conftest.err conftest.$ac_objext \
7185 conftest$ac_exeext conftest.$ac_ext
7186 CFLAGS=$ac_wine_try_cflags_saved
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
7189 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
7190 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
7191 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
7194 { $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
7195 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
7196 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 ac_wine_try_cflags_saved=$CFLAGS
7200 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7203 int main(int argc, char **argv) { return 0; }
7204 _ACEOF
7205 if ac_fn_c_try_link "$LINENO"; then :
7206 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
7207 else
7208 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
7210 rm -f core conftest.err conftest.$ac_objext \
7211 conftest$ac_exeext conftest.$ac_ext
7212 CFLAGS=$ac_wine_try_cflags_saved
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
7215 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
7216 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
7217 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
7220 echo '{ global: *; };' >conftest.map
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
7222 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
7223 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 ac_wine_try_cflags_saved=$CFLAGS
7227 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 int main(int argc, char **argv) { return 0; }
7231 _ACEOF
7232 if ac_fn_c_try_link "$LINENO"; then :
7233 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
7234 else
7235 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
7237 rm -f core conftest.err conftest.$ac_objext \
7238 conftest$ac_exeext conftest.$ac_ext
7239 CFLAGS=$ac_wine_try_cflags_saved
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
7242 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
7243 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
7244 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
7246 rm -f conftest.map
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7249 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7250 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 ac_wine_try_cflags_saved=$CFLAGS
7254 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257 int main(int argc, char **argv) { return 0; }
7258 _ACEOF
7259 if ac_fn_c_try_link "$LINENO"; then :
7260 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7261 else
7262 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7264 rm -f core conftest.err conftest.$ac_objext \
7265 conftest$ac_exeext conftest.$ac_ext
7266 CFLAGS=$ac_wine_try_cflags_saved
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7269 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7270 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7271 LDEXECFLAGS="-Wl,--export-dynamic"
7275 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7277 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7278 if eval \${$as_ac_var+:} false; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7281 ac_wine_try_cflags_saved=$CFLAGS
7282 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7285 int main(int argc, char **argv) { return 0; }
7286 _ACEOF
7287 if ac_fn_c_try_link "$LINENO"; then :
7288 eval "$as_ac_var=yes"
7289 else
7290 eval "$as_ac_var=no"
7292 rm -f core conftest.err conftest.$ac_objext \
7293 conftest$ac_exeext conftest.$ac_ext
7294 CFLAGS=$ac_wine_try_cflags_saved
7296 eval ac_res=\$$as_ac_var
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7298 $as_echo "$ac_res" >&6; }
7299 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7300 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7301 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7302 else
7303 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7305 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7306 if eval \${$as_ac_var+:} false; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 ac_wine_try_cflags_saved=$CFLAGS
7310 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313 int main(int argc, char **argv) { return 0; }
7314 _ACEOF
7315 if ac_fn_c_try_link "$LINENO"; then :
7316 eval "$as_ac_var=yes"
7317 else
7318 eval "$as_ac_var=no"
7320 rm -f core conftest.err conftest.$ac_objext \
7321 conftest$ac_exeext conftest.$ac_ext
7322 CFLAGS=$ac_wine_try_cflags_saved
7324 eval ac_res=\$$as_ac_var
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7326 $as_echo "$ac_res" >&6; }
7327 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7328 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7329 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7334 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7335 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337 else
7338 ac_wine_try_cflags_saved=$CFLAGS
7339 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7342 int main(int argc, char **argv) { return 0; }
7343 _ACEOF
7344 if ac_fn_c_try_link "$LINENO"; then :
7345 ac_cv_cflags__Wl___enable_new_dtags=yes
7346 else
7347 ac_cv_cflags__Wl___enable_new_dtags=no
7349 rm -f core conftest.err conftest.$ac_objext \
7350 conftest$ac_exeext conftest.$ac_ext
7351 CFLAGS=$ac_wine_try_cflags_saved
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7354 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7355 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7356 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7359 case $host_cpu in
7360 *i[3456789]86* | x86_64)
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7362 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7363 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7364 $as_echo_n "(cached) " >&6
7365 else
7366 ac_wine_try_cflags_saved=$CFLAGS
7367 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7370 int main(int argc, char **argv) { return 0; }
7371 _ACEOF
7372 if ac_fn_c_try_link "$LINENO"; then :
7373 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7374 else
7375 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7377 rm -f core conftest.err conftest.$ac_objext \
7378 conftest$ac_exeext conftest.$ac_ext
7379 CFLAGS=$ac_wine_try_cflags_saved
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7382 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7383 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7384 case $host_os in
7385 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7386 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7387 esac
7390 # Extract the first word of "prelink", so it can be a program name with args.
7391 set dummy prelink; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_path_PRELINK+:} false; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 case $PRELINK in
7398 [\\/]* | ?:[\\/]*)
7399 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in /sbin /usr/sbin $PATH
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7413 done
7414 done
7415 IFS=$as_save_IFS
7417 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7419 esac
7421 PRELINK=$ac_cv_path_PRELINK
7422 if test -n "$PRELINK"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7424 $as_echo "$PRELINK" >&6; }
7425 else
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7431 if test "x$PRELINK" = xfalse
7432 then
7433 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7436 esac
7438 else
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7440 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7441 if ${ac_cv_c_dll_unixware+:} false; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 ac_wine_try_cflags_saved=$CFLAGS
7445 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7448 void myfunc() {}
7449 _ACEOF
7450 if ac_fn_c_try_link "$LINENO"; then :
7451 ac_cv_c_dll_unixware="yes"
7452 else
7453 ac_cv_c_dll_unixware="no"
7455 rm -f core conftest.err conftest.$ac_objext \
7456 conftest$ac_exeext conftest.$ac_ext
7457 CFLAGS=$ac_wine_try_cflags_saved
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7460 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7461 if test "$ac_cv_c_dll_unixware" = "yes"
7462 then
7463 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.\$(SOVERSION)"
7464 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7467 LIBWINE_RULES="
7468 all: libwine.so
7470 libwine.so.\$(VERSION): \$(OBJS) wine.map Makefile.in
7471 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7473 libwine.so.\$(SOVERSION): libwine.so.\$(VERSION)
7474 \$(RM) \$@ && \$(LN_S) libwine.so.\$(VERSION) \$@
7476 libwine.so: libwine.so.\$(SOVERSION)
7477 \$(RM) \$@ && \$(LN_S) libwine.so.\$(SOVERSION) \$@
7479 install install-lib:: libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir) dummy
7480 \$(INSTALL_PROGRAM) libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir)/libwine.so.\$(VERSION)
7481 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.\$(SOVERSION) && \$(LN_S) libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7483 install install-dev:: \$(DESTDIR)\$(libdir) dummy
7484 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.\$(VERSION) libwine.so
7486 uninstall::
7487 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7489 clean::
7490 \$(RM) libwine.so.\$(SOVERSION) libwine.so.\$(VERSION) version.c
7494 esac
7496 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7497 enable_winemac_drv=${enable_winemac_drv:-no}
7499 CROSSTEST_DISABLE=\#
7501 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7502 then
7503 case "$host_cpu" in
7504 i[3456789]86*)
7505 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
7506 mingw32-gcc" ;;
7507 x86_64)
7508 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 " ;;
7510 ac_prefix_list="" ;;
7511 esac
7512 for ac_prog in $ac_prefix_list
7514 # Extract the first word of "$ac_prog", so it can be a program name with args.
7515 set dummy $ac_prog; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_CROSSCC+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 if test -n "$CROSSCC"; then
7522 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_CROSSCC="$ac_prog"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7535 done
7536 done
7537 IFS=$as_save_IFS
7541 CROSSCC=$ac_cv_prog_CROSSCC
7542 if test -n "$CROSSCC"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7544 $as_echo "$CROSSCC" >&6; }
7545 else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7551 test -n "$CROSSCC" && break
7552 done
7553 test -n "$CROSSCC" || CROSSCC="false"
7555 if test "$CROSSCC" != "false"
7556 then
7557 ac_save_CC="$CC"
7558 CC="$CROSSCC"
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7560 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7565 main ()
7569 return 0;
7571 _ACEOF
7572 if ac_fn_c_try_compile "$LINENO"; then :
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7574 $as_echo "yes" >&6; }
7575 set x $CROSSCC
7576 shift
7577 target=""
7578 while test $# -ge 1
7580 case "$1" in
7581 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7582 esac
7583 shift
7584 done
7585 if test -n "$target"
7586 then
7587 CROSSTEST_DISABLE=""
7588 CROSSTARGET="$target"
7591 else
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7596 CC="$ac_save_CC"
7601 if test "$ac_cv_header_pthread_h" = "yes"
7602 then
7603 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
7604 if test "x$ac_cv_func_pthread_create" = xyes; then :
7606 else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7608 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7609 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 ac_check_lib_save_LIBS=$LIBS
7613 LIBS="-lpthread $LIBS"
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7617 /* Override any GCC internal prototype to avoid an error.
7618 Use char because int might match the return type of a GCC
7619 builtin and then its argument prototype would still apply. */
7620 #ifdef __cplusplus
7621 extern "C"
7622 #endif
7623 char pthread_create ();
7625 main ()
7627 return pthread_create ();
7629 return 0;
7631 _ACEOF
7632 if ac_fn_c_try_link "$LINENO"; then :
7633 ac_cv_lib_pthread_pthread_create=yes
7634 else
7635 ac_cv_lib_pthread_pthread_create=no
7637 rm -f core conftest.err conftest.$ac_objext \
7638 conftest$ac_exeext conftest.$ac_ext
7639 LIBS=$ac_check_lib_save_LIBS
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7642 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7643 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7644 LIBPTHREAD="-lpthread"
7651 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
7652 case "x$with_pthread" in
7653 xno) ;;
7654 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7655 Wine cannot support threads without libpthread.
7656 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7657 esac
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7662 $as_echo_n "checking for X... " >&6; }
7665 # Check whether --with-x was given.
7666 if test "${with_x+set}" = set; then :
7667 withval=$with_x;
7670 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7671 if test "x$with_x" = xno; then
7672 # The user explicitly disabled X.
7673 have_x=disabled
7674 else
7675 case $x_includes,$x_libraries in #(
7676 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7677 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 # One or both of the vars are not set, and there is no cached value.
7681 ac_x_includes=no ac_x_libraries=no
7682 rm -f -r conftest.dir
7683 if mkdir conftest.dir; then
7684 cd conftest.dir
7685 cat >Imakefile <<'_ACEOF'
7686 incroot:
7687 @echo incroot='${INCROOT}'
7688 usrlibdir:
7689 @echo usrlibdir='${USRLIBDIR}'
7690 libdir:
7691 @echo libdir='${LIBDIR}'
7692 _ACEOF
7693 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7694 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7695 for ac_var in incroot usrlibdir libdir; do
7696 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7697 done
7698 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7699 for ac_extension in a so sl dylib la dll; do
7700 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7701 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7702 ac_im_usrlibdir=$ac_im_libdir; break
7704 done
7705 # Screen out bogus values from the imake configuration. They are
7706 # bogus both because they are the default anyway, and because
7707 # using them would break gcc on systems where it needs fixed includes.
7708 case $ac_im_incroot in
7709 /usr/include) ac_x_includes= ;;
7710 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7711 esac
7712 case $ac_im_usrlibdir in
7713 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7714 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7715 esac
7717 cd ..
7718 rm -f -r conftest.dir
7721 # Standard set of common directories for X headers.
7722 # Check X11 before X11Rn because it is often a symlink to the current release.
7723 ac_x_header_dirs='
7724 /usr/X11/include
7725 /usr/X11R7/include
7726 /usr/X11R6/include
7727 /usr/X11R5/include
7728 /usr/X11R4/include
7730 /usr/include/X11
7731 /usr/include/X11R7
7732 /usr/include/X11R6
7733 /usr/include/X11R5
7734 /usr/include/X11R4
7736 /usr/local/X11/include
7737 /usr/local/X11R7/include
7738 /usr/local/X11R6/include
7739 /usr/local/X11R5/include
7740 /usr/local/X11R4/include
7742 /usr/local/include/X11
7743 /usr/local/include/X11R7
7744 /usr/local/include/X11R6
7745 /usr/local/include/X11R5
7746 /usr/local/include/X11R4
7748 /usr/X386/include
7749 /usr/x386/include
7750 /usr/XFree86/include/X11
7752 /usr/include
7753 /usr/local/include
7754 /usr/unsupported/include
7755 /usr/athena/include
7756 /usr/local/x11r5/include
7757 /usr/lpp/Xamples/include
7759 /usr/openwin/include
7760 /usr/openwin/share/include'
7762 if test "$ac_x_includes" = no; then
7763 # Guess where to find include files, by looking for Xlib.h.
7764 # First, try using that file with no special directory specified.
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767 #include <X11/Xlib.h>
7768 _ACEOF
7769 if ac_fn_c_try_cpp "$LINENO"; then :
7770 # We can compile using X headers with no special include directory.
7771 ac_x_includes=
7772 else
7773 for ac_dir in $ac_x_header_dirs; do
7774 if test -r "$ac_dir/X11/Xlib.h"; then
7775 ac_x_includes=$ac_dir
7776 break
7778 done
7780 rm -f conftest.err conftest.i conftest.$ac_ext
7781 fi # $ac_x_includes = no
7783 if test "$ac_x_libraries" = no; then
7784 # Check for the libraries.
7785 # See if we find them without any special options.
7786 # Don't add to $LIBS permanently.
7787 ac_save_LIBS=$LIBS
7788 LIBS="-lX11 $LIBS"
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791 #include <X11/Xlib.h>
7793 main ()
7795 XrmInitialize ()
7797 return 0;
7799 _ACEOF
7800 if ac_fn_c_try_link "$LINENO"; then :
7801 LIBS=$ac_save_LIBS
7802 # We can link X programs with no special library path.
7803 ac_x_libraries=
7804 else
7805 LIBS=$ac_save_LIBS
7806 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7808 # Don't even attempt the hair of trying to link an X program!
7809 for ac_extension in a so sl dylib la dll; do
7810 if test -r "$ac_dir/libX11.$ac_extension"; then
7811 ac_x_libraries=$ac_dir
7812 break 2
7814 done
7815 done
7817 rm -f core conftest.err conftest.$ac_objext \
7818 conftest$ac_exeext conftest.$ac_ext
7819 fi # $ac_x_libraries = no
7821 case $ac_x_includes,$ac_x_libraries in #(
7822 no,* | *,no | *\'*)
7823 # Didn't find X, or a directory has "'" in its name.
7824 ac_cv_have_x="have_x=no";; #(
7826 # Record where we found X for the cache.
7827 ac_cv_have_x="have_x=yes\
7828 ac_x_includes='$ac_x_includes'\
7829 ac_x_libraries='$ac_x_libraries'"
7830 esac
7832 ;; #(
7833 *) have_x=yes;;
7834 esac
7835 eval "$ac_cv_have_x"
7836 fi # $with_x != no
7838 if test "$have_x" != yes; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7840 $as_echo "$have_x" >&6; }
7841 no_x=yes
7842 else
7843 # If each of the values was on the command line, it overrides each guess.
7844 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7845 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7846 # Update the cache value to reflect the command line values.
7847 ac_cv_have_x="have_x=yes\
7848 ac_x_includes='$x_includes'\
7849 ac_x_libraries='$x_libraries'"
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7851 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7854 if test "$no_x" = yes; then
7855 # Not all programs may use this symbol, but it does not hurt to define it.
7857 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7859 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7860 else
7861 if test -n "$x_includes"; then
7862 X_CFLAGS="$X_CFLAGS -I$x_includes"
7865 # It would also be nice to do this for all -L options, not just this one.
7866 if test -n "$x_libraries"; then
7867 X_LIBS="$X_LIBS -L$x_libraries"
7868 # For Solaris; some versions of Sun CC require a space after -R and
7869 # others require no space. Words are not sufficient . . . .
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7871 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7872 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7873 ac_xsave_c_werror_flag=$ac_c_werror_flag
7874 ac_c_werror_flag=yes
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7879 main ()
7883 return 0;
7885 _ACEOF
7886 if ac_fn_c_try_link "$LINENO"; then :
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7889 X_LIBS="$X_LIBS -R$x_libraries"
7890 else
7891 LIBS="$ac_xsave_LIBS -R $x_libraries"
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7896 main ()
7900 return 0;
7902 _ACEOF
7903 if ac_fn_c_try_link "$LINENO"; then :
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7905 $as_echo "yes" >&6; }
7906 X_LIBS="$X_LIBS -R $x_libraries"
7907 else
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7909 $as_echo "neither works" >&6; }
7911 rm -f core conftest.err conftest.$ac_objext \
7912 conftest$ac_exeext conftest.$ac_ext
7914 rm -f core conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7916 ac_c_werror_flag=$ac_xsave_c_werror_flag
7917 LIBS=$ac_xsave_LIBS
7920 # Check for system-dependent libraries X programs must link with.
7921 # Do this before checking for the system-independent R6 libraries
7922 # (-lICE), since we may need -lsocket or whatever for X linking.
7924 if test "$ISC" = yes; then
7925 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7926 else
7927 # Martyn Johnson says this is needed for Ultrix, if the X
7928 # libraries were built with DECnet support. And Karl Berry says
7929 # the Alpha needs dnet_stub (dnet does not exist).
7930 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7934 /* Override any GCC internal prototype to avoid an error.
7935 Use char because int might match the return type of a GCC
7936 builtin and then its argument prototype would still apply. */
7937 #ifdef __cplusplus
7938 extern "C"
7939 #endif
7940 char XOpenDisplay ();
7942 main ()
7944 return XOpenDisplay ();
7946 return 0;
7948 _ACEOF
7949 if ac_fn_c_try_link "$LINENO"; then :
7951 else
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7953 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7954 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 ac_check_lib_save_LIBS=$LIBS
7958 LIBS="-ldnet $LIBS"
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7962 /* Override any GCC internal prototype to avoid an error.
7963 Use char because int might match the return type of a GCC
7964 builtin and then its argument prototype would still apply. */
7965 #ifdef __cplusplus
7966 extern "C"
7967 #endif
7968 char dnet_ntoa ();
7970 main ()
7972 return dnet_ntoa ();
7974 return 0;
7976 _ACEOF
7977 if ac_fn_c_try_link "$LINENO"; then :
7978 ac_cv_lib_dnet_dnet_ntoa=yes
7979 else
7980 ac_cv_lib_dnet_dnet_ntoa=no
7982 rm -f core conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext conftest.$ac_ext
7984 LIBS=$ac_check_lib_save_LIBS
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7987 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7988 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7989 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7992 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7994 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7995 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 ac_check_lib_save_LIBS=$LIBS
7999 LIBS="-ldnet_stub $LIBS"
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8003 /* Override any GCC internal prototype to avoid an error.
8004 Use char because int might match the return type of a GCC
8005 builtin and then its argument prototype would still apply. */
8006 #ifdef __cplusplus
8007 extern "C"
8008 #endif
8009 char dnet_ntoa ();
8011 main ()
8013 return dnet_ntoa ();
8015 return 0;
8017 _ACEOF
8018 if ac_fn_c_try_link "$LINENO"; then :
8019 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8020 else
8021 ac_cv_lib_dnet_stub_dnet_ntoa=no
8023 rm -f core conftest.err conftest.$ac_objext \
8024 conftest$ac_exeext conftest.$ac_ext
8025 LIBS=$ac_check_lib_save_LIBS
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8028 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8029 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8030 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8035 rm -f core conftest.err conftest.$ac_objext \
8036 conftest$ac_exeext conftest.$ac_ext
8037 LIBS="$ac_xsave_LIBS"
8039 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8040 # to get the SysV transport functions.
8041 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8042 # needs -lnsl.
8043 # The nsl library prevents programs from opening the X display
8044 # on Irix 5.2, according to T.E. Dickey.
8045 # The functions gethostbyname, getservbyname, and inet_addr are
8046 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8047 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8048 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8052 if test $ac_cv_func_gethostbyname = no; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8054 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8055 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 ac_check_lib_save_LIBS=$LIBS
8059 LIBS="-lnsl $LIBS"
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8063 /* Override any GCC internal prototype to avoid an error.
8064 Use char because int might match the return type of a GCC
8065 builtin and then its argument prototype would still apply. */
8066 #ifdef __cplusplus
8067 extern "C"
8068 #endif
8069 char gethostbyname ();
8071 main ()
8073 return gethostbyname ();
8075 return 0;
8077 _ACEOF
8078 if ac_fn_c_try_link "$LINENO"; then :
8079 ac_cv_lib_nsl_gethostbyname=yes
8080 else
8081 ac_cv_lib_nsl_gethostbyname=no
8083 rm -f core conftest.err conftest.$ac_objext \
8084 conftest$ac_exeext conftest.$ac_ext
8085 LIBS=$ac_check_lib_save_LIBS
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8088 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8089 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8090 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8093 if test $ac_cv_lib_nsl_gethostbyname = no; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8095 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8096 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8097 $as_echo_n "(cached) " >&6
8098 else
8099 ac_check_lib_save_LIBS=$LIBS
8100 LIBS="-lbsd $LIBS"
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8104 /* Override any GCC internal prototype to avoid an error.
8105 Use char because int might match the return type of a GCC
8106 builtin and then its argument prototype would still apply. */
8107 #ifdef __cplusplus
8108 extern "C"
8109 #endif
8110 char gethostbyname ();
8112 main ()
8114 return gethostbyname ();
8116 return 0;
8118 _ACEOF
8119 if ac_fn_c_try_link "$LINENO"; then :
8120 ac_cv_lib_bsd_gethostbyname=yes
8121 else
8122 ac_cv_lib_bsd_gethostbyname=no
8124 rm -f core conftest.err conftest.$ac_objext \
8125 conftest$ac_exeext conftest.$ac_ext
8126 LIBS=$ac_check_lib_save_LIBS
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8129 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8130 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8131 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8137 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8138 # socket/setsockopt and other routines are undefined under SCO ODT
8139 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8140 # on later versions), says Simon Leinen: it contains gethostby*
8141 # variants that don't use the name server (or something). -lsocket
8142 # must be given before -lnsl if both are needed. We assume that
8143 # if connect needs -lnsl, so does gethostbyname.
8144 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8145 if test "x$ac_cv_func_connect" = xyes; then :
8149 if test $ac_cv_func_connect = no; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8151 $as_echo_n "checking for connect in -lsocket... " >&6; }
8152 if ${ac_cv_lib_socket_connect+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 ac_check_lib_save_LIBS=$LIBS
8156 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8160 /* Override any GCC internal prototype to avoid an error.
8161 Use char because int might match the return type of a GCC
8162 builtin and then its argument prototype would still apply. */
8163 #ifdef __cplusplus
8164 extern "C"
8165 #endif
8166 char connect ();
8168 main ()
8170 return connect ();
8172 return 0;
8174 _ACEOF
8175 if ac_fn_c_try_link "$LINENO"; then :
8176 ac_cv_lib_socket_connect=yes
8177 else
8178 ac_cv_lib_socket_connect=no
8180 rm -f core conftest.err conftest.$ac_objext \
8181 conftest$ac_exeext conftest.$ac_ext
8182 LIBS=$ac_check_lib_save_LIBS
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8185 $as_echo "$ac_cv_lib_socket_connect" >&6; }
8186 if test "x$ac_cv_lib_socket_connect" = xyes; then :
8187 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8192 # Guillermo Gomez says -lposix is necessary on A/UX.
8193 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8194 if test "x$ac_cv_func_remove" = xyes; then :
8198 if test $ac_cv_func_remove = no; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8200 $as_echo_n "checking for remove in -lposix... " >&6; }
8201 if ${ac_cv_lib_posix_remove+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 ac_check_lib_save_LIBS=$LIBS
8205 LIBS="-lposix $LIBS"
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8209 /* Override any GCC internal prototype to avoid an error.
8210 Use char because int might match the return type of a GCC
8211 builtin and then its argument prototype would still apply. */
8212 #ifdef __cplusplus
8213 extern "C"
8214 #endif
8215 char remove ();
8217 main ()
8219 return remove ();
8221 return 0;
8223 _ACEOF
8224 if ac_fn_c_try_link "$LINENO"; then :
8225 ac_cv_lib_posix_remove=yes
8226 else
8227 ac_cv_lib_posix_remove=no
8229 rm -f core conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
8231 LIBS=$ac_check_lib_save_LIBS
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8234 $as_echo "$ac_cv_lib_posix_remove" >&6; }
8235 if test "x$ac_cv_lib_posix_remove" = xyes; then :
8236 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8241 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8242 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8243 if test "x$ac_cv_func_shmat" = xyes; then :
8247 if test $ac_cv_func_shmat = no; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8249 $as_echo_n "checking for shmat in -lipc... " >&6; }
8250 if ${ac_cv_lib_ipc_shmat+:} false; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 ac_check_lib_save_LIBS=$LIBS
8254 LIBS="-lipc $LIBS"
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8258 /* Override any GCC internal prototype to avoid an error.
8259 Use char because int might match the return type of a GCC
8260 builtin and then its argument prototype would still apply. */
8261 #ifdef __cplusplus
8262 extern "C"
8263 #endif
8264 char shmat ();
8266 main ()
8268 return shmat ();
8270 return 0;
8272 _ACEOF
8273 if ac_fn_c_try_link "$LINENO"; then :
8274 ac_cv_lib_ipc_shmat=yes
8275 else
8276 ac_cv_lib_ipc_shmat=no
8278 rm -f core conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8280 LIBS=$ac_check_lib_save_LIBS
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8283 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8284 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8285 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8291 # Check for libraries that X11R6 Xt/Xaw programs need.
8292 ac_save_LDFLAGS=$LDFLAGS
8293 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8294 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8295 # check for ICE first), but we must link in the order -lSM -lICE or
8296 # we get undefined symbols. So assume we have SM if we have ICE.
8297 # These have to be linked with before -lX11, unlike the other
8298 # libraries we check for below, so use a different variable.
8299 # John Interrante, Karl Berry
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8301 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8302 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 ac_check_lib_save_LIBS=$LIBS
8306 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8310 /* Override any GCC internal prototype to avoid an error.
8311 Use char because int might match the return type of a GCC
8312 builtin and then its argument prototype would still apply. */
8313 #ifdef __cplusplus
8314 extern "C"
8315 #endif
8316 char IceConnectionNumber ();
8318 main ()
8320 return IceConnectionNumber ();
8322 return 0;
8324 _ACEOF
8325 if ac_fn_c_try_link "$LINENO"; then :
8326 ac_cv_lib_ICE_IceConnectionNumber=yes
8327 else
8328 ac_cv_lib_ICE_IceConnectionNumber=no
8330 rm -f core conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext conftest.$ac_ext
8332 LIBS=$ac_check_lib_save_LIBS
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8335 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8336 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8337 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8340 LDFLAGS=$ac_save_LDFLAGS
8345 if test "$have_x" = "yes"
8346 then
8347 XLIB="-lX11"
8348 ac_save_CPPFLAGS="$CPPFLAGS"
8349 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
8352 $as_echo_n "checking for -lX11... " >&6; }
8353 if ${ac_cv_lib_soname_X11+:} false; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 ac_check_soname_save_LIBS=$LIBS
8357 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8361 /* Override any GCC internal prototype to avoid an error.
8362 Use char because int might match the return type of a GCC
8363 builtin and then its argument prototype would still apply. */
8364 #ifdef __cplusplus
8365 extern "C"
8366 #endif
8367 char XCreateWindow ();
8369 main ()
8371 return XCreateWindow ();
8373 return 0;
8375 _ACEOF
8376 if ac_fn_c_try_link "$LINENO"; then :
8377 case "$LIBEXT" in
8378 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8379 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'` ;;
8380 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8381 if test "x$ac_cv_lib_soname_X11" = x; then :
8382 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8383 fi ;;
8384 esac
8386 rm -f core conftest.err conftest.$ac_objext \
8387 conftest$ac_exeext conftest.$ac_ext
8388 LIBS=$ac_check_soname_save_LIBS
8390 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8392 $as_echo "not found" >&6; }
8394 else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8396 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8398 cat >>confdefs.h <<_ACEOF
8399 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8400 _ACEOF
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8405 $as_echo_n "checking for -lXext... " >&6; }
8406 if ${ac_cv_lib_soname_Xext+:} false; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 ac_check_soname_save_LIBS=$LIBS
8410 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8414 /* Override any GCC internal prototype to avoid an error.
8415 Use char because int might match the return type of a GCC
8416 builtin and then its argument prototype would still apply. */
8417 #ifdef __cplusplus
8418 extern "C"
8419 #endif
8420 char XextCreateExtension ();
8422 main ()
8424 return XextCreateExtension ();
8426 return 0;
8428 _ACEOF
8429 if ac_fn_c_try_link "$LINENO"; then :
8430 case "$LIBEXT" in
8431 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8432 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'` ;;
8433 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8434 if test "x$ac_cv_lib_soname_Xext" = x; then :
8435 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8436 fi ;;
8437 esac
8439 rm -f core conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8441 LIBS=$ac_check_soname_save_LIBS
8443 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8445 $as_echo "not found" >&6; }
8447 else
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8449 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8451 cat >>confdefs.h <<_ACEOF
8452 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8453 _ACEOF
8455 XLIB="-lXext $XLIB"
8458 for ac_header in X11/Xlib.h \
8459 X11/XKBlib.h \
8460 X11/Xutil.h \
8461 X11/Xcursor/Xcursor.h \
8462 X11/extensions/shape.h \
8463 X11/extensions/XInput.h \
8464 X11/extensions/XInput2.h \
8465 X11/extensions/XShm.h \
8466 X11/extensions/Xcomposite.h \
8467 X11/extensions/Xinerama.h \
8468 X11/extensions/Xrandr.h \
8469 X11/extensions/Xrender.h \
8470 X11/extensions/xf86vmode.h \
8471 X11/extensions/xf86vmproto.h
8472 do :
8473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8474 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8475 # include <X11/Xlib.h>
8476 #endif
8477 #ifdef HAVE_X11_XUTIL_H
8478 # include <X11/Xutil.h>
8479 #endif
8481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8482 cat >>confdefs.h <<_ACEOF
8483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8484 _ACEOF
8488 done
8491 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8492 then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8494 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8495 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 ac_check_lib_save_LIBS=$LIBS
8499 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8503 /* Override any GCC internal prototype to avoid an error.
8504 Use char because int might match the return type of a GCC
8505 builtin and then its argument prototype would still apply. */
8506 #ifdef __cplusplus
8507 extern "C"
8508 #endif
8509 char XkbQueryExtension ();
8511 main ()
8513 return XkbQueryExtension ();
8515 return 0;
8517 _ACEOF
8518 if ac_fn_c_try_link "$LINENO"; then :
8519 ac_cv_lib_X11_XkbQueryExtension=yes
8520 else
8521 ac_cv_lib_X11_XkbQueryExtension=no
8523 rm -f core conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
8525 LIBS=$ac_check_lib_save_LIBS
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8528 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8529 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8531 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8537 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8538 then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8540 $as_echo_n "checking for -lXcursor... " >&6; }
8541 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 ac_check_soname_save_LIBS=$LIBS
8545 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8549 /* Override any GCC internal prototype to avoid an error.
8550 Use char because int might match the return type of a GCC
8551 builtin and then its argument prototype would still apply. */
8552 #ifdef __cplusplus
8553 extern "C"
8554 #endif
8555 char XcursorImageLoadCursor ();
8557 main ()
8559 return XcursorImageLoadCursor ();
8561 return 0;
8563 _ACEOF
8564 if ac_fn_c_try_link "$LINENO"; then :
8565 case "$LIBEXT" in
8566 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8567 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'` ;;
8568 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8569 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
8570 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8571 fi ;;
8572 esac
8574 rm -f core conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8576 LIBS=$ac_check_soname_save_LIBS
8578 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8580 $as_echo "not found" >&6; }
8582 else
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8584 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8586 cat >>confdefs.h <<_ACEOF
8587 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8588 _ACEOF
8593 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8594 case "x$with_xcursor" in
8595 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8596 xno) ;;
8597 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8598 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8599 esac
8602 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8603 then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8605 $as_echo_n "checking for -lXi... " >&6; }
8606 if ${ac_cv_lib_soname_Xi+:} false; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 ac_check_soname_save_LIBS=$LIBS
8610 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8614 /* Override any GCC internal prototype to avoid an error.
8615 Use char because int might match the return type of a GCC
8616 builtin and then its argument prototype would still apply. */
8617 #ifdef __cplusplus
8618 extern "C"
8619 #endif
8620 char XOpenDevice ();
8622 main ()
8624 return XOpenDevice ();
8626 return 0;
8628 _ACEOF
8629 if ac_fn_c_try_link "$LINENO"; then :
8630 case "$LIBEXT" in
8631 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8632 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'` ;;
8633 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8634 if test "x$ac_cv_lib_soname_Xi" = x; then :
8635 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8636 fi ;;
8637 esac
8639 rm -f core conftest.err conftest.$ac_objext \
8640 conftest$ac_exeext conftest.$ac_ext
8641 LIBS=$ac_check_soname_save_LIBS
8643 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8645 $as_echo "not found" >&6; }
8647 else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8649 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8651 cat >>confdefs.h <<_ACEOF
8652 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8653 _ACEOF
8658 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8659 case "x$with_xinput" in
8660 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8661 xno) ;;
8662 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8663 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8664 esac
8667 if test "x$ac_cv_lib_soname_Xi" != x
8668 then
8669 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8670 case "x$with_xinput2" in
8671 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8672 xno) ;;
8673 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8674 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8675 esac
8679 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8680 then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8682 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8683 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8684 $as_echo_n "(cached) " >&6
8685 else
8686 ac_check_lib_save_LIBS=$LIBS
8687 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8691 /* Override any GCC internal prototype to avoid an error.
8692 Use char because int might match the return type of a GCC
8693 builtin and then its argument prototype would still apply. */
8694 #ifdef __cplusplus
8695 extern "C"
8696 #endif
8697 char XShmQueryExtension ();
8699 main ()
8701 return XShmQueryExtension ();
8703 return 0;
8705 _ACEOF
8706 if ac_fn_c_try_link "$LINENO"; then :
8707 ac_cv_lib_Xext_XShmQueryExtension=yes
8708 else
8709 ac_cv_lib_Xext_XShmQueryExtension=no
8711 rm -f core conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8713 LIBS=$ac_check_lib_save_LIBS
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8716 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8717 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8719 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8724 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8725 case "x$with_xshm" in
8726 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8727 xno) ;;
8728 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8729 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8730 esac
8733 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8734 then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8736 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8737 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 ac_check_lib_save_LIBS=$LIBS
8741 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8745 /* Override any GCC internal prototype to avoid an error.
8746 Use char because int might match the return type of a GCC
8747 builtin and then its argument prototype would still apply. */
8748 #ifdef __cplusplus
8749 extern "C"
8750 #endif
8751 char XShapeQueryExtension ();
8753 main ()
8755 return XShapeQueryExtension ();
8757 return 0;
8759 _ACEOF
8760 if ac_fn_c_try_link "$LINENO"; then :
8761 ac_cv_lib_Xext_XShapeQueryExtension=yes
8762 else
8763 ac_cv_lib_Xext_XShapeQueryExtension=no
8765 rm -f core conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
8767 LIBS=$ac_check_lib_save_LIBS
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8770 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8771 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8773 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8778 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8779 case "x$with_xshape" in
8780 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8781 xno) ;;
8782 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8783 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8784 esac
8787 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8788 then
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8790 $as_echo_n "checking for -lXxf86vm... " >&6; }
8791 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 ac_check_soname_save_LIBS=$LIBS
8795 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8799 /* Override any GCC internal prototype to avoid an error.
8800 Use char because int might match the return type of a GCC
8801 builtin and then its argument prototype would still apply. */
8802 #ifdef __cplusplus
8803 extern "C"
8804 #endif
8805 char XF86VidModeQueryExtension ();
8807 main ()
8809 return XF86VidModeQueryExtension ();
8811 return 0;
8813 _ACEOF
8814 if ac_fn_c_try_link "$LINENO"; then :
8815 case "$LIBEXT" in
8816 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8817 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'` ;;
8818 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8819 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
8820 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8821 fi ;;
8822 esac
8824 rm -f core conftest.err conftest.$ac_objext \
8825 conftest$ac_exeext conftest.$ac_ext
8826 LIBS=$ac_check_soname_save_LIBS
8828 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8830 $as_echo "not found" >&6; }
8832 else
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8834 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8836 cat >>confdefs.h <<_ACEOF
8837 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8838 _ACEOF
8843 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8844 case "x$with_xxf86vm" in
8845 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8846 xno) ;;
8847 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8848 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8849 esac
8852 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"
8853 then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8855 $as_echo_n "checking for -lXrender... " >&6; }
8856 if ${ac_cv_lib_soname_Xrender+:} false; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8859 ac_check_soname_save_LIBS=$LIBS
8860 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8864 /* Override any GCC internal prototype to avoid an error.
8865 Use char because int might match the return type of a GCC
8866 builtin and then its argument prototype would still apply. */
8867 #ifdef __cplusplus
8868 extern "C"
8869 #endif
8870 char XRenderQueryExtension ();
8872 main ()
8874 return XRenderQueryExtension ();
8876 return 0;
8878 _ACEOF
8879 if ac_fn_c_try_link "$LINENO"; then :
8880 case "$LIBEXT" in
8881 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8882 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'` ;;
8883 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8884 if test "x$ac_cv_lib_soname_Xrender" = x; then :
8885 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8886 fi ;;
8887 esac
8889 rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8891 LIBS=$ac_check_soname_save_LIBS
8893 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8895 $as_echo "not found" >&6; }
8897 else
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8899 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8901 cat >>confdefs.h <<_ACEOF
8902 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8903 _ACEOF
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8906 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8907 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 ac_check_lib_save_LIBS=$LIBS
8911 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8915 /* Override any GCC internal prototype to avoid an error.
8916 Use char because int might match the return type of a GCC
8917 builtin and then its argument prototype would still apply. */
8918 #ifdef __cplusplus
8919 extern "C"
8920 #endif
8921 char XRenderSetPictureTransform ();
8923 main ()
8925 return XRenderSetPictureTransform ();
8927 return 0;
8929 _ACEOF
8930 if ac_fn_c_try_link "$LINENO"; then :
8931 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8932 else
8933 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8935 rm -f core conftest.err conftest.$ac_objext \
8936 conftest$ac_exeext conftest.$ac_ext
8937 LIBS=$ac_check_lib_save_LIBS
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8940 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8941 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8943 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8948 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8949 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 ac_check_lib_save_LIBS=$LIBS
8953 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8957 /* Override any GCC internal prototype to avoid an error.
8958 Use char because int might match the return type of a GCC
8959 builtin and then its argument prototype would still apply. */
8960 #ifdef __cplusplus
8961 extern "C"
8962 #endif
8963 char XRenderCreateLinearGradient ();
8965 main ()
8967 return XRenderCreateLinearGradient ();
8969 return 0;
8971 _ACEOF
8972 if ac_fn_c_try_link "$LINENO"; then :
8973 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8974 else
8975 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8977 rm -f core conftest.err conftest.$ac_objext \
8978 conftest$ac_exeext conftest.$ac_ext
8979 LIBS=$ac_check_lib_save_LIBS
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8982 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8983 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8985 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8992 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8993 case "x$with_xrender" in
8994 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8995 xno) ;;
8996 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8997 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8998 esac
9001 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
9002 then
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9005 #include <X11/Xlib.h>
9006 #include <X11/extensions/Xrandr.h>
9008 main ()
9010 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
9012 return 0;
9014 _ACEOF
9015 if ac_fn_c_try_compile "$LINENO"; then :
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9017 $as_echo_n "checking for -lXrandr... " >&6; }
9018 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9019 $as_echo_n "(cached) " >&6
9020 else
9021 ac_check_soname_save_LIBS=$LIBS
9022 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9026 /* Override any GCC internal prototype to avoid an error.
9027 Use char because int might match the return type of a GCC
9028 builtin and then its argument prototype would still apply. */
9029 #ifdef __cplusplus
9030 extern "C"
9031 #endif
9032 char XRRQueryExtension ();
9034 main ()
9036 return XRRQueryExtension ();
9038 return 0;
9040 _ACEOF
9041 if ac_fn_c_try_link "$LINENO"; then :
9042 case "$LIBEXT" in
9043 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9044 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'` ;;
9045 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9046 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
9047 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9048 fi ;;
9049 esac
9051 rm -f core conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
9053 LIBS=$ac_check_soname_save_LIBS
9055 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9057 $as_echo "not found" >&6; }
9059 else
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9061 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
9063 cat >>confdefs.h <<_ACEOF
9064 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
9065 _ACEOF
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069 #include <X11/Xlib.h>
9070 #include <X11/extensions/Xrandr.h>
9072 main ()
9074 static typeof(XRRGetScreenResources) *f; if (f) return 0;
9076 return 0;
9078 _ACEOF
9079 if ac_fn_c_try_compile "$LINENO"; then :
9081 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
9084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9089 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9090 case "x$with_xrandr" in
9091 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
9092 xno) ;;
9093 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
9094 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
9095 esac
9098 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
9099 then
9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9102 #include <X11/Xlib.h>
9103 #include <X11/extensions/Xinerama.h>
9105 main ()
9107 static typeof(XineramaQueryScreens) * func; if (func) return 0;
9109 return 0;
9111 _ACEOF
9112 if ac_fn_c_try_compile "$LINENO"; then :
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
9114 $as_echo_n "checking for -lXinerama... " >&6; }
9115 if ${ac_cv_lib_soname_Xinerama+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 ac_check_soname_save_LIBS=$LIBS
9119 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9123 /* Override any GCC internal prototype to avoid an error.
9124 Use char because int might match the return type of a GCC
9125 builtin and then its argument prototype would still apply. */
9126 #ifdef __cplusplus
9127 extern "C"
9128 #endif
9129 char XineramaQueryScreens ();
9131 main ()
9133 return XineramaQueryScreens ();
9135 return 0;
9137 _ACEOF
9138 if ac_fn_c_try_link "$LINENO"; then :
9139 case "$LIBEXT" in
9140 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9141 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'` ;;
9142 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9143 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
9144 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9145 fi ;;
9146 esac
9148 rm -f core conftest.err conftest.$ac_objext \
9149 conftest$ac_exeext conftest.$ac_ext
9150 LIBS=$ac_check_soname_save_LIBS
9152 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9154 $as_echo "not found" >&6; }
9156 else
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
9158 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
9160 cat >>confdefs.h <<_ACEOF
9161 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
9162 _ACEOF
9167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9169 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9170 case "x$with_xinerama" in
9171 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
9172 xno) ;;
9173 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
9174 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
9175 esac
9178 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
9179 then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
9181 $as_echo_n "checking for -lXcomposite... " >&6; }
9182 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 ac_check_soname_save_LIBS=$LIBS
9186 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9190 /* Override any GCC internal prototype to avoid an error.
9191 Use char because int might match the return type of a GCC
9192 builtin and then its argument prototype would still apply. */
9193 #ifdef __cplusplus
9194 extern "C"
9195 #endif
9196 char XCompositeRedirectWindow ();
9198 main ()
9200 return XCompositeRedirectWindow ();
9202 return 0;
9204 _ACEOF
9205 if ac_fn_c_try_link "$LINENO"; then :
9206 case "$LIBEXT" in
9207 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9208 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'` ;;
9209 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9210 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
9211 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9212 fi ;;
9213 esac
9215 rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217 LIBS=$ac_check_soname_save_LIBS
9219 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9221 $as_echo "not found" >&6; }
9223 else
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
9225 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
9227 cat >>confdefs.h <<_ACEOF
9228 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
9229 _ACEOF
9234 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9235 case "x$with_xcomposite" in
9236 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
9237 xno) ;;
9238 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
9239 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
9240 esac
9243 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
9244 #include <X11/Xlib.h>
9245 #endif
9247 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
9249 cat >>confdefs.h <<_ACEOF
9250 #define HAVE_XICCALLBACK_CALLBACK 1
9251 _ACEOF
9255 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
9256 #include <X11/Xlib.h>
9257 #endif
9259 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
9261 cat >>confdefs.h <<_ACEOF
9262 #define HAVE_XEVENT_XCOOKIE 1
9263 _ACEOF
9270 opengl_msg=""
9271 if test "x$with_opengl" != "xno"
9272 then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9274 $as_echo_n "checking for -lGL... " >&6; }
9275 if ${ac_cv_lib_soname_GL+:} false; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 ac_check_soname_save_LIBS=$LIBS
9279 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9283 /* Override any GCC internal prototype to avoid an error.
9284 Use char because int might match the return type of a GCC
9285 builtin and then its argument prototype would still apply. */
9286 #ifdef __cplusplus
9287 extern "C"
9288 #endif
9289 char glXCreateContext ();
9291 main ()
9293 return glXCreateContext ();
9295 return 0;
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"; then :
9299 case "$LIBEXT" in
9300 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9301 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'` ;;
9302 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9303 if test "x$ac_cv_lib_soname_GL" = x; then :
9304 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9305 fi ;;
9306 esac
9308 rm -f core conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
9310 LIBS=$ac_check_soname_save_LIBS
9312 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9314 $as_echo "not found" >&6; }
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9316 $as_echo_n "checking for -lGL... " >&6; }
9317 if ${ac_cv_lib_soname_GL+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 ac_check_soname_save_LIBS=$LIBS
9321 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"
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9325 /* Override any GCC internal prototype to avoid an error.
9326 Use char because int might match the return type of a GCC
9327 builtin and then its argument prototype would still apply. */
9328 #ifdef __cplusplus
9329 extern "C"
9330 #endif
9331 char glXCreateContext ();
9333 main ()
9335 return glXCreateContext ();
9337 return 0;
9339 _ACEOF
9340 if ac_fn_c_try_link "$LINENO"; then :
9341 case "$LIBEXT" in
9342 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9343 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'` ;;
9344 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9345 if test "x$ac_cv_lib_soname_GL" = x; then :
9346 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9347 fi ;;
9348 esac
9350 rm -f core conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9352 LIBS=$ac_check_soname_save_LIBS
9354 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9356 $as_echo "not found" >&6; }
9357 if test -f /usr/X11R6/lib/libGL.a
9358 then
9359 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
9360 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
9361 else
9362 opengl_msg="No OpenGL library found on this system."
9364 else
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9366 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9368 cat >>confdefs.h <<_ACEOF
9369 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9370 _ACEOF
9372 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"
9374 else
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9376 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9378 cat >>confdefs.h <<_ACEOF
9379 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9380 _ACEOF
9382 OPENGL_LIBS="-lGL"
9384 if test "x$with_glu" != "xno"
9385 then
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
9387 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
9388 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
9389 $as_echo_n "(cached) " >&6
9390 else
9391 ac_check_lib_save_LIBS=$LIBS
9392 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9396 /* Override any GCC internal prototype to avoid an error.
9397 Use char because int might match the return type of a GCC
9398 builtin and then its argument prototype would still apply. */
9399 #ifdef __cplusplus
9400 extern "C"
9401 #endif
9402 char gluLookAt ();
9404 main ()
9406 return gluLookAt ();
9408 return 0;
9410 _ACEOF
9411 if ac_fn_c_try_link "$LINENO"; then :
9412 ac_cv_lib_GLU_gluLookAt=yes
9413 else
9414 ac_cv_lib_GLU_gluLookAt=no
9416 rm -f core conftest.err conftest.$ac_objext \
9417 conftest$ac_exeext conftest.$ac_ext
9418 LIBS=$ac_check_lib_save_LIBS
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
9421 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
9422 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
9426 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
9427 case "x$with_glu" in
9428 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9429 xno) ;;
9430 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9431 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9432 esac
9436 if test "x$with_osmesa" != "xno"
9437 then
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
9439 $as_echo_n "checking for -lOSMesa... " >&6; }
9440 if ${ac_cv_lib_soname_OSMesa+:} false; then :
9441 $as_echo_n "(cached) " >&6
9442 else
9443 ac_check_soname_save_LIBS=$LIBS
9444 LIBS="-lOSMesa $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9448 /* Override any GCC internal prototype to avoid an error.
9449 Use char because int might match the return type of a GCC
9450 builtin and then its argument prototype would still apply. */
9451 #ifdef __cplusplus
9452 extern "C"
9453 #endif
9454 char glAccum ();
9456 main ()
9458 return glAccum ();
9460 return 0;
9462 _ACEOF
9463 if ac_fn_c_try_link "$LINENO"; then :
9464 case "$LIBEXT" in
9465 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9466 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'` ;;
9467 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9468 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
9469 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9470 fi ;;
9471 esac
9473 rm -f core conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9475 LIBS=$ac_check_soname_save_LIBS
9477 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9479 $as_echo "not found" >&6; }
9481 else
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
9483 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
9485 cat >>confdefs.h <<_ACEOF
9486 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
9487 _ACEOF
9491 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9492 case "x$with_osmesa" in
9493 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
9494 xno) ;;
9495 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
9496 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
9497 esac
9501 if test -n "$opengl_msg"; then :
9502 case "x$with_opengl" in
9503 x) as_fn_append wine_warnings "|$opengl_msg
9504 OpenGL and Direct3D won't be supported." ;;
9505 xno) ;;
9506 *) as_fn_error $? "$opengl_msg
9507 OpenGL and Direct3D won't be supported.
9508 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9509 esac
9512 CPPFLAGS="$ac_save_CPPFLAGS"
9513 else
9514 XLIB=""
9515 X_CFLAGS=""
9516 X_LIBS=""
9517 enable_winex11_drv=${enable_winex11_drv:-no}
9519 if test "x$XLIB" = "x"; then :
9520 case "x$with_x" in
9521 xno) ;;
9522 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9523 without X support, which probably isn't what you want. You will need
9524 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9525 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9526 esac
9529 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
9531 if test "$ac_cv_header_CL_cl_h" = "yes"
9532 then
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9534 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9535 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 ac_check_lib_save_LIBS=$LIBS
9539 LIBS="-lOpenCL $LIBS"
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9543 /* Override any GCC internal prototype to avoid an error.
9544 Use char because int might match the return type of a GCC
9545 builtin and then its argument prototype would still apply. */
9546 #ifdef __cplusplus
9547 extern "C"
9548 #endif
9549 char clGetPlatformInfo ();
9551 main ()
9553 return clGetPlatformInfo ();
9555 return 0;
9557 _ACEOF
9558 if ac_fn_c_try_link "$LINENO"; then :
9559 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9560 else
9561 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9563 rm -f core conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext conftest.$ac_ext
9565 LIBS=$ac_check_lib_save_LIBS
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9568 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9569 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9570 LIBOPENCL="-lOpenCL"
9575 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9576 case "x$with_opencl" in
9577 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9578 xno) ;;
9579 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9580 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9581 esac
9583 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9586 XML2LIBS=""
9588 XML2INCL=""
9590 XSLTINCL=""
9592 if test "x$with_xml" != "xno"
9593 then
9594 ac_save_CPPFLAGS="$CPPFLAGS"
9595 if test "$PKG_CONFIG" != "false"
9596 then
9597 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9598 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9599 else
9600 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9601 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9603 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9604 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9605 do :
9606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9607 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9608 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9609 cat >>confdefs.h <<_ACEOF
9610 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9611 _ACEOF
9615 done
9617 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"
9618 then
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9620 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9621 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9622 $as_echo_n "(cached) " >&6
9623 else
9624 ac_check_lib_save_LIBS=$LIBS
9625 LIBS="-lxml2 $ac_xml_libs $LIBS"
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9629 /* Override any GCC internal prototype to avoid an error.
9630 Use char because int might match the return type of a GCC
9631 builtin and then its argument prototype would still apply. */
9632 #ifdef __cplusplus
9633 extern "C"
9634 #endif
9635 char xmlParseMemory ();
9637 main ()
9639 return xmlParseMemory ();
9641 return 0;
9643 _ACEOF
9644 if ac_fn_c_try_link "$LINENO"; then :
9645 ac_cv_lib_xml2_xmlParseMemory=yes
9646 else
9647 ac_cv_lib_xml2_xmlParseMemory=no
9649 rm -f core conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext conftest.$ac_ext
9651 LIBS=$ac_check_lib_save_LIBS
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9654 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9655 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9657 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9659 XML2LIBS="$ac_xml_libs"
9660 XML2INCL="$ac_xml_cflags"
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9664 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9665 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 ac_check_lib_save_LIBS=$LIBS
9669 LIBS="-lxml2 $ac_xml_libs $LIBS"
9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9673 /* Override any GCC internal prototype to avoid an error.
9674 Use char because int might match the return type of a GCC
9675 builtin and then its argument prototype would still apply. */
9676 #ifdef __cplusplus
9677 extern "C"
9678 #endif
9679 char xmlReadMemory ();
9681 main ()
9683 return xmlReadMemory ();
9685 return 0;
9687 _ACEOF
9688 if ac_fn_c_try_link "$LINENO"; then :
9689 ac_cv_lib_xml2_xmlReadMemory=yes
9690 else
9691 ac_cv_lib_xml2_xmlReadMemory=no
9693 rm -f core conftest.err conftest.$ac_objext \
9694 conftest$ac_exeext conftest.$ac_ext
9695 LIBS=$ac_check_lib_save_LIBS
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9698 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9699 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9701 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9706 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9707 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 ac_check_lib_save_LIBS=$LIBS
9711 LIBS="-lxml2 $ac_xml_libs $LIBS"
9712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h. */
9715 /* Override any GCC internal prototype to avoid an error.
9716 Use char because int might match the return type of a GCC
9717 builtin and then its argument prototype would still apply. */
9718 #ifdef __cplusplus
9719 extern "C"
9720 #endif
9721 char xmlNewDocPI ();
9723 main ()
9725 return xmlNewDocPI ();
9727 return 0;
9729 _ACEOF
9730 if ac_fn_c_try_link "$LINENO"; then :
9731 ac_cv_lib_xml2_xmlNewDocPI=yes
9732 else
9733 ac_cv_lib_xml2_xmlNewDocPI=no
9735 rm -f core conftest.err conftest.$ac_objext \
9736 conftest$ac_exeext conftest.$ac_ext
9737 LIBS=$ac_check_lib_save_LIBS
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9740 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9741 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9743 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9748 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9749 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9750 $as_echo_n "(cached) " >&6
9751 else
9752 ac_check_lib_save_LIBS=$LIBS
9753 LIBS="-lxml2 $ac_xml_libs $LIBS"
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9757 /* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
9760 #ifdef __cplusplus
9761 extern "C"
9762 #endif
9763 char xmlSchemaSetParserStructuredErrors ();
9765 main ()
9767 return xmlSchemaSetParserStructuredErrors ();
9769 return 0;
9771 _ACEOF
9772 if ac_fn_c_try_link "$LINENO"; then :
9773 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9774 else
9775 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9777 rm -f core conftest.err conftest.$ac_objext \
9778 conftest$ac_exeext conftest.$ac_ext
9779 LIBS=$ac_check_lib_save_LIBS
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9782 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9783 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9785 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9790 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9791 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 ac_check_lib_save_LIBS=$LIBS
9795 LIBS="-lxml2 $ac_xml_libs $LIBS"
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9799 /* Override any GCC internal prototype to avoid an error.
9800 Use char because int might match the return type of a GCC
9801 builtin and then its argument prototype would still apply. */
9802 #ifdef __cplusplus
9803 extern "C"
9804 #endif
9805 char xmlSchemaSetValidStructuredErrors ();
9807 main ()
9809 return xmlSchemaSetValidStructuredErrors ();
9811 return 0;
9813 _ACEOF
9814 if ac_fn_c_try_link "$LINENO"; then :
9815 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9816 else
9817 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9819 rm -f core conftest.err conftest.$ac_objext \
9820 conftest$ac_exeext conftest.$ac_ext
9821 LIBS=$ac_check_lib_save_LIBS
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9824 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9825 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9827 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9832 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9833 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9834 $as_echo_n "(cached) " >&6
9835 else
9836 ac_check_lib_save_LIBS=$LIBS
9837 LIBS="-lxml2 $ac_xml_libs $LIBS"
9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9841 /* Override any GCC internal prototype to avoid an error.
9842 Use char because int might match the return type of a GCC
9843 builtin and then its argument prototype would still apply. */
9844 #ifdef __cplusplus
9845 extern "C"
9846 #endif
9847 char xmlFirstElementChild ();
9849 main ()
9851 return xmlFirstElementChild ();
9853 return 0;
9855 _ACEOF
9856 if ac_fn_c_try_link "$LINENO"; then :
9857 ac_cv_lib_xml2_xmlFirstElementChild=yes
9858 else
9859 ac_cv_lib_xml2_xmlFirstElementChild=no
9861 rm -f core conftest.err conftest.$ac_objext \
9862 conftest$ac_exeext conftest.$ac_ext
9863 LIBS=$ac_check_lib_save_LIBS
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9866 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9867 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9869 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9873 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9875 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9877 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9882 CPPFLAGS="$ac_save_CPPFLAGS"
9884 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9885 case "x$with_xml" in
9886 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9887 xno) ;;
9888 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9889 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9890 esac
9893 if test "x$with_xslt" != "xno"
9894 then
9895 if test "$PKG_CONFIG" != "false"
9896 then
9897 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9898 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9899 else
9900 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9901 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9903 ac_save_CPPFLAGS="$CPPFLAGS"
9904 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9905 for ac_header in libxslt/pattern.h libxslt/transform.h
9906 do :
9907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9908 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9909 # include <libxslt/pattern.h>
9910 #endif
9912 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9913 cat >>confdefs.h <<_ACEOF
9914 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9915 _ACEOF
9919 done
9921 CPPFLAGS="$ac_save_CPPFLAGS"
9922 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9923 then
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9925 $as_echo_n "checking for -lxslt... " >&6; }
9926 if ${ac_cv_lib_soname_xslt+:} false; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 ac_check_soname_save_LIBS=$LIBS
9930 LIBS="-lxslt $ac_xslt_libs $LIBS"
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9934 /* Override any GCC internal prototype to avoid an error.
9935 Use char because int might match the return type of a GCC
9936 builtin and then its argument prototype would still apply. */
9937 #ifdef __cplusplus
9938 extern "C"
9939 #endif
9940 char xsltCompilePattern ();
9942 main ()
9944 return xsltCompilePattern ();
9946 return 0;
9948 _ACEOF
9949 if ac_fn_c_try_link "$LINENO"; then :
9950 case "$LIBEXT" in
9951 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9952 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'` ;;
9953 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9954 if test "x$ac_cv_lib_soname_xslt" = x; then :
9955 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9956 fi ;;
9957 esac
9959 rm -f core conftest.err conftest.$ac_objext \
9960 conftest$ac_exeext conftest.$ac_ext
9961 LIBS=$ac_check_soname_save_LIBS
9963 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9965 $as_echo "not found" >&6; }
9967 else
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9969 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9971 cat >>confdefs.h <<_ACEOF
9972 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9973 _ACEOF
9975 XSLTINCL="$ac_xslt_cflags"
9979 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9980 case "x$with_xslt" in
9981 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9982 xno) ;;
9983 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9984 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9985 esac
9988 if test "x$with_dbus" != "xno"
9989 then
9990 ac_save_CPPFLAGS="$CPPFLAGS"
9991 if test "$PKG_CONFIG" != "false"
9992 then
9993 ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9994 ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9995 CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9997 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9998 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10000 $as_echo_n "checking for -ldbus-1... " >&6; }
10001 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10002 $as_echo_n "(cached) " >&6
10003 else
10004 ac_check_soname_save_LIBS=$LIBS
10005 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
10006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h. */
10009 /* Override any GCC internal prototype to avoid an error.
10010 Use char because int might match the return type of a GCC
10011 builtin and then its argument prototype would still apply. */
10012 #ifdef __cplusplus
10013 extern "C"
10014 #endif
10015 char dbus_connection_close ();
10017 main ()
10019 return dbus_connection_close ();
10021 return 0;
10023 _ACEOF
10024 if ac_fn_c_try_link "$LINENO"; then :
10025 case "$LIBEXT" in
10026 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10027 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'` ;;
10028 *) 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'`
10029 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10030 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10031 fi ;;
10032 esac
10034 rm -f core conftest.err conftest.$ac_objext \
10035 conftest$ac_exeext conftest.$ac_ext
10036 LIBS=$ac_check_soname_save_LIBS
10038 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10040 $as_echo "not found" >&6; }
10042 else
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10044 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10046 cat >>confdefs.h <<_ACEOF
10047 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10048 _ACEOF
10050 DBUSINCL="$ac_dbus_cflags"
10056 CPPFLAGS="$ac_save_CPPFLAGS"
10058 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
10059 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10060 case "x$with_dbus" in
10061 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
10062 xno) ;;
10063 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
10064 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
10065 esac
10068 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
10069 then
10070 ac_save_CPPFLAGS="$CPPFLAGS"
10071 if test "$PKG_CONFIG" != "false"
10072 then
10073 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
10074 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
10075 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
10077 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
10078 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
10080 $as_echo_n "checking for -lhal... " >&6; }
10081 if ${ac_cv_lib_soname_hal+:} false; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 ac_check_soname_save_LIBS=$LIBS
10085 LIBS="-lhal $ac_hal_libs $LIBS"
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10089 /* Override any GCC internal prototype to avoid an error.
10090 Use char because int might match the return type of a GCC
10091 builtin and then its argument prototype would still apply. */
10092 #ifdef __cplusplus
10093 extern "C"
10094 #endif
10095 char libhal_ctx_new ();
10097 main ()
10099 return libhal_ctx_new ();
10101 return 0;
10103 _ACEOF
10104 if ac_fn_c_try_link "$LINENO"; then :
10105 case "$LIBEXT" in
10106 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10107 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'` ;;
10108 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10109 if test "x$ac_cv_lib_soname_hal" = x; then :
10110 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10111 fi ;;
10112 esac
10114 rm -f core conftest.err conftest.$ac_objext \
10115 conftest$ac_exeext conftest.$ac_ext
10116 LIBS=$ac_check_soname_save_LIBS
10118 if test "x$ac_cv_lib_soname_hal" = "x"; then :
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10120 $as_echo "not found" >&6; }
10122 else
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
10124 $as_echo "$ac_cv_lib_soname_hal" >&6; }
10126 cat >>confdefs.h <<_ACEOF
10127 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
10128 _ACEOF
10130 HALINCL="$ac_hal_cflags"
10136 CPPFLAGS="$ac_save_CPPFLAGS"
10137 if test "x$ac_cv_lib_soname_hal" = "x" -a \
10138 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10139 case "x$with_hal" in
10140 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
10141 xno) ;;
10142 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
10143 This is an error since --with-hal was requested." "$LINENO" 5 ;;
10144 esac
10148 if test "x$with_gnutls" != "xno"
10149 then
10150 ac_save_CPPFLAGS="$CPPFLAGS"
10151 if test "$PKG_CONFIG" != "false"
10152 then
10153 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
10154 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
10155 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
10157 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
10158 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10161 #include <gnutls/gnutls.h>
10163 main ()
10165 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
10167 return 0;
10169 _ACEOF
10170 if ac_fn_c_try_compile "$LINENO"; then :
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
10172 $as_echo_n "checking for -lgnutls... " >&6; }
10173 if ${ac_cv_lib_soname_gnutls+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 ac_check_soname_save_LIBS=$LIBS
10177 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10181 /* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
10184 #ifdef __cplusplus
10185 extern "C"
10186 #endif
10187 char gnutls_global_init ();
10189 main ()
10191 return gnutls_global_init ();
10193 return 0;
10195 _ACEOF
10196 if ac_fn_c_try_link "$LINENO"; then :
10197 case "$LIBEXT" in
10198 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10199 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'` ;;
10200 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10201 if test "x$ac_cv_lib_soname_gnutls" = x; then :
10202 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10203 fi ;;
10204 esac
10206 rm -f core conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
10208 LIBS=$ac_check_soname_save_LIBS
10210 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10212 $as_echo "not found" >&6; }
10214 else
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
10216 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
10218 cat >>confdefs.h <<_ACEOF
10219 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
10220 _ACEOF
10222 GNUTLSINCL="$ac_gnutls_cflags"
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 CPPFLAGS="$ac_save_CPPFLAGS"
10232 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10233 case "x$with_gnutls" in
10234 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
10235 xno) ;;
10236 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
10237 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
10238 esac
10241 CURSESLIBS=""
10242 if test "$ac_cv_header_ncurses_h" = "yes"
10243 then
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
10245 $as_echo_n "checking for -lncurses... " >&6; }
10246 if ${ac_cv_lib_soname_ncurses+:} false; then :
10247 $as_echo_n "(cached) " >&6
10248 else
10249 ac_check_soname_save_LIBS=$LIBS
10250 LIBS="-lncurses $LIBS"
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10254 /* Override any GCC internal prototype to avoid an error.
10255 Use char because int might match the return type of a GCC
10256 builtin and then its argument prototype would still apply. */
10257 #ifdef __cplusplus
10258 extern "C"
10259 #endif
10260 char waddch ();
10262 main ()
10264 return waddch ();
10266 return 0;
10268 _ACEOF
10269 if ac_fn_c_try_link "$LINENO"; then :
10270 case "$LIBEXT" in
10271 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10272 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'` ;;
10273 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10274 if test "x$ac_cv_lib_soname_ncurses" = x; then :
10275 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10276 fi ;;
10277 esac
10279 rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281 LIBS=$ac_check_soname_save_LIBS
10283 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10285 $as_echo "not found" >&6; }
10287 else
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
10289 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
10291 cat >>confdefs.h <<_ACEOF
10292 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
10293 _ACEOF
10295 CURSESLIBS="-lncurses"
10297 elif test "$ac_cv_header_curses_h" = "yes"
10298 then
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
10300 $as_echo_n "checking for -lcurses... " >&6; }
10301 if ${ac_cv_lib_soname_curses+:} false; then :
10302 $as_echo_n "(cached) " >&6
10303 else
10304 ac_check_soname_save_LIBS=$LIBS
10305 LIBS="-lcurses $LIBS"
10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10307 /* end confdefs.h. */
10309 /* Override any GCC internal prototype to avoid an error.
10310 Use char because int might match the return type of a GCC
10311 builtin and then its argument prototype would still apply. */
10312 #ifdef __cplusplus
10313 extern "C"
10314 #endif
10315 char waddch ();
10317 main ()
10319 return waddch ();
10321 return 0;
10323 _ACEOF
10324 if ac_fn_c_try_link "$LINENO"; then :
10325 case "$LIBEXT" in
10326 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10327 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'` ;;
10328 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10329 if test "x$ac_cv_lib_soname_curses" = x; then :
10330 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10331 fi ;;
10332 esac
10334 rm -f core conftest.err conftest.$ac_objext \
10335 conftest$ac_exeext conftest.$ac_ext
10336 LIBS=$ac_check_soname_save_LIBS
10338 if test "x$ac_cv_lib_soname_curses" = "x"; then :
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10340 $as_echo "not found" >&6; }
10342 else
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
10344 $as_echo "$ac_cv_lib_soname_curses" >&6; }
10346 cat >>confdefs.h <<_ACEOF
10347 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
10348 _ACEOF
10350 CURSESLIBS="-lcurses"
10353 ac_save_LIBS="$LIBS"
10354 LIBS="$LIBS $CURSESLIBS"
10355 for ac_func in mousemask
10356 do :
10357 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
10358 if test "x$ac_cv_func_mousemask" = xyes; then :
10359 cat >>confdefs.h <<_ACEOF
10360 #define HAVE_MOUSEMASK 1
10361 _ACEOF
10364 done
10366 LIBS="$ac_save_LIBS"
10367 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
10368 case "x$with_curses" in
10369 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
10370 xno) ;;
10371 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
10372 This is an error since --with-curses was requested." "$LINENO" 5 ;;
10373 esac
10376 if test "x$with_sane" != "xno"
10377 then
10378 ac_save_CPPFLAGS="$CPPFLAGS"
10379 # Extract the first word of "sane-config", so it can be a program name with args.
10380 set dummy sane-config; ac_word=$2
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10382 $as_echo_n "checking for $ac_word... " >&6; }
10383 if ${ac_cv_prog_sane_devel+:} false; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 if test -n "$sane_devel"; then
10387 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
10388 else
10389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390 for as_dir in $PATH
10392 IFS=$as_save_IFS
10393 test -z "$as_dir" && as_dir=.
10394 for ac_exec_ext in '' $ac_executable_extensions; do
10395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10396 ac_cv_prog_sane_devel="sane-config"
10397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10398 break 2
10400 done
10401 done
10402 IFS=$as_save_IFS
10404 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
10407 sane_devel=$ac_cv_prog_sane_devel
10408 if test -n "$sane_devel"; then
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
10410 $as_echo "$sane_devel" >&6; }
10411 else
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413 $as_echo "no" >&6; }
10417 if test "$sane_devel" != "no"
10418 then
10419 ac_sane_incl="`$sane_devel --cflags`"
10420 ac_sane_libs="`$sane_devel --ldflags`"
10421 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
10423 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10424 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10426 $as_echo_n "checking for -lsane... " >&6; }
10427 if ${ac_cv_lib_soname_sane+:} false; then :
10428 $as_echo_n "(cached) " >&6
10429 else
10430 ac_check_soname_save_LIBS=$LIBS
10431 LIBS="-lsane $ac_sane_libs $LIBS"
10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10435 /* Override any GCC internal prototype to avoid an error.
10436 Use char because int might match the return type of a GCC
10437 builtin and then its argument prototype would still apply. */
10438 #ifdef __cplusplus
10439 extern "C"
10440 #endif
10441 char sane_init ();
10443 main ()
10445 return sane_init ();
10447 return 0;
10449 _ACEOF
10450 if ac_fn_c_try_link "$LINENO"; then :
10451 case "$LIBEXT" in
10452 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10453 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'` ;;
10454 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10455 if test "x$ac_cv_lib_soname_sane" = x; then :
10456 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10457 fi ;;
10458 esac
10460 rm -f core conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10462 LIBS=$ac_check_soname_save_LIBS
10464 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10466 $as_echo "not found" >&6; }
10468 else
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10470 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10472 cat >>confdefs.h <<_ACEOF
10473 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10474 _ACEOF
10476 SANEINCL="$ac_sane_incl"
10482 CPPFLAGS="$ac_save_CPPFLAGS"
10484 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10485 case "x$with_sane" in
10486 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10487 xno) ;;
10488 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10489 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10490 esac
10493 if test "x$with_v4l" != "xno"
10494 then
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10496 $as_echo_n "checking for -lv4l1... " >&6; }
10497 if ${ac_cv_lib_soname_v4l1+:} false; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10500 ac_check_soname_save_LIBS=$LIBS
10501 LIBS="-lv4l1 $LIBS"
10502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10505 /* Override any GCC internal prototype to avoid an error.
10506 Use char because int might match the return type of a GCC
10507 builtin and then its argument prototype would still apply. */
10508 #ifdef __cplusplus
10509 extern "C"
10510 #endif
10511 char v4l1_open ();
10513 main ()
10515 return v4l1_open ();
10517 return 0;
10519 _ACEOF
10520 if ac_fn_c_try_link "$LINENO"; then :
10521 case "$LIBEXT" in
10522 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10523 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'` ;;
10524 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10525 if test "x$ac_cv_lib_soname_v4l1" = x; then :
10526 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10527 fi ;;
10528 esac
10530 rm -f core conftest.err conftest.$ac_objext \
10531 conftest$ac_exeext conftest.$ac_ext
10532 LIBS=$ac_check_soname_save_LIBS
10534 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10536 $as_echo "not found" >&6; }
10538 else
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10540 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10542 cat >>confdefs.h <<_ACEOF
10543 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10544 _ACEOF
10549 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10550 case "x$with_v4l" in
10551 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10552 xno) ;;
10553 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10554 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10555 esac
10558 if test "x$with_gphoto" != "xno"
10559 then
10560 ac_save_CPPFLAGS="$CPPFLAGS"
10561 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10562 set dummy gphoto2-config; ac_word=$2
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564 $as_echo_n "checking for $ac_word... " >&6; }
10565 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10566 $as_echo_n "(cached) " >&6
10567 else
10568 if test -n "$gphoto2_devel"; then
10569 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10570 else
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in $PATH
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10578 ac_cv_prog_gphoto2_devel="gphoto2-config"
10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10582 done
10583 done
10584 IFS=$as_save_IFS
10586 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10589 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10590 if test -n "$gphoto2_devel"; then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10592 $as_echo "$gphoto2_devel" >&6; }
10593 else
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595 $as_echo "no" >&6; }
10599 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10600 set dummy gphoto2-port-config; ac_word=$2
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10602 $as_echo_n "checking for $ac_word... " >&6; }
10603 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10604 $as_echo_n "(cached) " >&6
10605 else
10606 if test -n "$gphoto2port_devel"; then
10607 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10608 else
10609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610 for as_dir in $PATH
10612 IFS=$as_save_IFS
10613 test -z "$as_dir" && as_dir=.
10614 for ac_exec_ext in '' $ac_executable_extensions; do
10615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10616 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10618 break 2
10620 done
10621 done
10622 IFS=$as_save_IFS
10624 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10627 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10628 if test -n "$gphoto2port_devel"; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10630 $as_echo "$gphoto2port_devel" >&6; }
10631 else
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; }
10637 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10638 then
10639 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10640 ac_gphoto2_libs=""
10641 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10643 case "$i" in
10644 -L/usr/lib|-L/usr/lib64) ;;
10645 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10646 esac
10647 done
10648 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10650 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10651 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10652 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10654 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10655 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10656 $as_echo_n "(cached) " >&6
10657 else
10658 ac_check_lib_save_LIBS=$LIBS
10659 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10666 #ifdef __cplusplus
10667 extern "C"
10668 #endif
10669 char gp_camera_new ();
10671 main ()
10673 return gp_camera_new ();
10675 return 0;
10677 _ACEOF
10678 if ac_fn_c_try_link "$LINENO"; then :
10679 ac_cv_lib_gphoto2_gp_camera_new=yes
10680 else
10681 ac_cv_lib_gphoto2_gp_camera_new=no
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10685 LIBS=$ac_check_lib_save_LIBS
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10688 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10689 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10691 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10693 GPHOTO2LIBS="$ac_gphoto2_libs"
10695 GPHOTO2INCL="$ac_gphoto2_incl"
10702 CPPFLAGS="$ac_save_CPPFLAGS"
10704 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10705 case "x$with_gphoto" in
10706 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10707 xno) ;;
10708 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10709 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10710 esac
10714 if test "$ac_cv_header_resolv_h" = "yes"
10715 then
10716 ac_save_LIBS="$LIBS"
10717 for lib in '' -lresolv
10719 LIBS="$lib $ac_save_LIBS"
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722 #ifdef HAVE_NETINET_IN_H
10723 #include <netinet/in.h>
10724 #endif
10725 #include <resolv.h>
10727 main ()
10729 res_query("foo",ns_c_in,0,0,0);
10731 return 0;
10733 _ACEOF
10734 if ac_fn_c_try_link "$LINENO"; then :
10736 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10738 RESOLVLIBS="$lib"
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 if test "${RESOLVLIBS+set}" = set; then
10744 break
10746 done
10747 LIBS="$ac_save_LIBS"
10750 LCMSLIBS=""
10752 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10753 then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10755 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10756 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 ac_check_lib_save_LIBS=$LIBS
10760 LIBS="-llcms $LIBS"
10761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10762 /* end confdefs.h. */
10764 /* Override any GCC internal prototype to avoid an error.
10765 Use char because int might match the return type of a GCC
10766 builtin and then its argument prototype would still apply. */
10767 #ifdef __cplusplus
10768 extern "C"
10769 #endif
10770 char cmsOpenProfileFromFile ();
10772 main ()
10774 return cmsOpenProfileFromFile ();
10776 return 0;
10778 _ACEOF
10779 if ac_fn_c_try_link "$LINENO"; then :
10780 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10781 else
10782 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10784 rm -f core conftest.err conftest.$ac_objext \
10785 conftest$ac_exeext conftest.$ac_ext
10786 LIBS=$ac_check_lib_save_LIBS
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10789 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10790 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10792 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10794 LCMSLIBS="-llcms"
10798 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10799 case "x$with_cms" in
10800 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10801 xno) ;;
10802 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10803 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10804 esac
10807 if test "x$with_freetype" != "xno"
10808 then
10809 if test "$PKG_CONFIG" != "false"
10810 then
10811 ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
10812 ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
10813 else
10814 for ac_prog in freetype-config freetype2-config
10816 # Extract the first word of "$ac_prog", so it can be a program name with args.
10817 set dummy $ac_prog; ac_word=$2
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819 $as_echo_n "checking for $ac_word... " >&6; }
10820 if ${ac_cv_prog_ft_devel+:} false; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 if test -n "$ft_devel"; then
10824 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10825 else
10826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827 for as_dir in $PATH
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10833 ac_cv_prog_ft_devel="$ac_prog"
10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10835 break 2
10837 done
10838 done
10839 IFS=$as_save_IFS
10843 ft_devel=$ac_cv_prog_ft_devel
10844 if test -n "$ft_devel"; then
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10846 $as_echo "$ft_devel" >&6; }
10847 else
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849 $as_echo "no" >&6; }
10853 test -n "$ft_devel" && break
10854 done
10855 test -n "$ft_devel" || ft_devel="no"
10857 if test "$ft_devel" != "no"
10858 then
10859 ac_freetype_incl=`$ft_devel --cflags`
10860 ac_freetype_libs=`$ft_devel --libs`
10863 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10865 $as_echo_n "checking for -lfreetype... " >&6; }
10866 if ${ac_cv_lib_soname_freetype+:} false; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10869 ac_check_soname_save_LIBS=$LIBS
10870 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 char FT_Init_FreeType ();
10882 main ()
10884 return FT_Init_FreeType ();
10886 return 0;
10888 _ACEOF
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 case "$LIBEXT" in
10891 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10892 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'` ;;
10893 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10894 if test "x$ac_cv_lib_soname_freetype" = x; then :
10895 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10896 fi ;;
10897 esac
10899 rm -f core conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext conftest.$ac_ext
10901 LIBS=$ac_check_soname_save_LIBS
10903 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10905 $as_echo "not found" >&6; }
10906 ft_lib=no
10907 else
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10909 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10911 cat >>confdefs.h <<_ACEOF
10912 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10913 _ACEOF
10915 ft_lib=yes
10917 if test "$ft_lib" = "yes"
10918 then
10919 ac_save_CPPFLAGS="$CPPFLAGS"
10920 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10921 for ac_header in ft2build.h \
10922 freetype/freetype.h \
10923 freetype/ftglyph.h \
10924 freetype/fttypes.h \
10925 freetype/tttables.h \
10926 freetype/ftsnames.h \
10927 freetype/ttnameid.h \
10928 freetype/ftoutln.h \
10929 freetype/ftwinfnt.h \
10930 freetype/ftmodapi.h \
10931 freetype/ftlcdfil.h
10932 do :
10933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10934 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10935 # include <ft2build.h>
10936 #endif
10938 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10939 cat >>confdefs.h <<_ACEOF
10940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10941 _ACEOF
10945 done
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10949 #include <ft2build.h>
10950 #include <freetype/fttrigon.h>
10951 _ACEOF
10952 if ac_fn_c_try_cpp "$LINENO"; then :
10954 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10956 wine_cv_fttrigon=yes
10957 else
10958 wine_cv_fttrigon=no
10960 rm -f conftest.err conftest.i conftest.$ac_ext
10961 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10963 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10965 cat >>confdefs.h <<_ACEOF
10966 #define HAVE_FT_TRUETYPEENGINETYPE 1
10967 _ACEOF
10972 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10973 then
10975 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10977 FREETYPELIBS="$ac_freetype_libs"
10979 FREETYPEINCL="$ac_freetype_incl"
10984 if test "x$FREETYPELIBS" = "x"; then :
10985 case "x$with_freetype" in
10986 xno) ;;
10987 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10988 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10989 esac
10991 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10994 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10995 if ${ac_cv_c_ppdev+:} false; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11000 #ifdef HAVE_SYS_IOCTL_H
11001 # include <sys/ioctl.h>
11002 #endif
11003 #include <linux/ppdev.h>
11005 main ()
11007 ioctl (1,PPCLAIM,0)
11009 return 0;
11011 _ACEOF
11012 if ac_fn_c_try_compile "$LINENO"; then :
11013 ac_cv_c_ppdev="yes"
11014 else
11015 ac_cv_c_ppdev="no"
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11020 $as_echo "$ac_cv_c_ppdev" >&6; }
11021 if test "$ac_cv_c_ppdev" = "yes"
11022 then
11024 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11028 ac_wine_check_funcs_save_LIBS="$LIBS"
11029 LIBS="$LIBS $LIBPTHREAD"
11030 for ac_func in \
11031 pthread_attr_get_np \
11032 pthread_getattr_np \
11033 pthread_getthreadid_np \
11034 pthread_get_stackaddr_np \
11035 pthread_get_stacksize_np
11036 do :
11037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11039 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11040 cat >>confdefs.h <<_ACEOF
11041 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11042 _ACEOF
11045 done
11047 LIBS="$ac_wine_check_funcs_save_LIBS"
11049 if test "$ac_cv_header_zlib_h" = "yes"
11050 then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11052 $as_echo_n "checking for inflate in -lz... " >&6; }
11053 if ${ac_cv_lib_z_inflate+:} false; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056 ac_check_lib_save_LIBS=$LIBS
11057 LIBS="-lz $LIBS"
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11061 /* Override any GCC internal prototype to avoid an error.
11062 Use char because int might match the return type of a GCC
11063 builtin and then its argument prototype would still apply. */
11064 #ifdef __cplusplus
11065 extern "C"
11066 #endif
11067 char inflate ();
11069 main ()
11071 return inflate ();
11073 return 0;
11075 _ACEOF
11076 if ac_fn_c_try_link "$LINENO"; then :
11077 ac_cv_lib_z_inflate=yes
11078 else
11079 ac_cv_lib_z_inflate=no
11081 rm -f core conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11083 LIBS=$ac_check_lib_save_LIBS
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11086 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11087 if test "x$ac_cv_lib_z_inflate" = xyes; then :
11089 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11091 ZLIB="-lz"
11096 if test "x$ZLIB" = "x"; then :
11097 case "x$with_zlib" in
11098 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
11099 xno) ;;
11100 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
11101 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
11102 esac
11105 if test "x$enable_tools" != xno
11106 then
11107 if test "$ac_cv_header_gettext_po_h" = "yes"
11108 then
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
11110 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
11111 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
11112 $as_echo_n "(cached) " >&6
11113 else
11114 ac_check_lib_save_LIBS=$LIBS
11115 LIBS="-lgettextpo $LIBS"
11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11119 /* Override any GCC internal prototype to avoid an error.
11120 Use char because int might match the return type of a GCC
11121 builtin and then its argument prototype would still apply. */
11122 #ifdef __cplusplus
11123 extern "C"
11124 #endif
11125 char po_message_msgctxt ();
11127 main ()
11129 return po_message_msgctxt ();
11131 return 0;
11133 _ACEOF
11134 if ac_fn_c_try_link "$LINENO"; then :
11135 ac_cv_lib_gettextpo_po_message_msgctxt=yes
11136 else
11137 ac_cv_lib_gettextpo_po_message_msgctxt=no
11139 rm -f core conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext conftest.$ac_ext
11141 LIBS=$ac_check_lib_save_LIBS
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
11144 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
11145 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
11147 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
11149 LIBGETTEXTPO="-lgettextpo"
11154 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
11155 case "x$with_gettextpo" in
11156 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
11157 xno) ;;
11158 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
11159 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
11160 esac
11164 if test "x$with_gstreamer" != "xno"
11165 then
11166 ac_save_CPPFLAGS="$CPPFLAGS"
11167 if test "$PKG_CONFIG" != "false"; then
11168 ac_gst_incl=""
11169 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
11171 case "$i" in
11172 -I*) ac_gst_incl="$ac_gst_incl $i";;
11173 esac
11174 done
11175 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
11176 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
11177 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
11178 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
11179 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
11180 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
11182 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
11183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184 /* end confdefs.h. */
11185 #include <gst/app/gstappsink.h>
11187 main ()
11189 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
11191 return 0;
11193 _ACEOF
11194 if ac_fn_c_try_compile "$LINENO"; then :
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11196 $as_echo "yes" >&6; }
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
11198 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
11199 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
11200 $as_echo_n "(cached) " >&6
11201 else
11202 ac_check_lib_save_LIBS=$LIBS
11203 LIBS="-lgstreamer-0.10 $LIBS"
11204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h. */
11207 /* Override any GCC internal prototype to avoid an error.
11208 Use char because int might match the return type of a GCC
11209 builtin and then its argument prototype would still apply. */
11210 #ifdef __cplusplus
11211 extern "C"
11212 #endif
11213 char gst_pad_get_caps_reffed ();
11215 main ()
11217 return gst_pad_get_caps_reffed ();
11219 return 0;
11221 _ACEOF
11222 if ac_fn_c_try_link "$LINENO"; then :
11223 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
11224 else
11225 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
11227 rm -f core conftest.err conftest.$ac_objext \
11228 conftest$ac_exeext conftest.$ac_ext
11229 LIBS=$ac_check_lib_save_LIBS
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
11232 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
11233 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
11235 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
11236 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
11237 $as_echo_n "(cached) " >&6
11238 else
11239 ac_check_lib_save_LIBS=$LIBS
11240 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
11241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h. */
11244 /* Override any GCC internal prototype to avoid an error.
11245 Use char because int might match the return type of a GCC
11246 builtin and then its argument prototype would still apply. */
11247 #ifdef __cplusplus
11248 extern "C"
11249 #endif
11250 char gst_app_buffer_new ();
11252 main ()
11254 return gst_app_buffer_new ();
11256 return 0;
11258 _ACEOF
11259 if ac_fn_c_try_link "$LINENO"; then :
11260 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
11261 else
11262 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
11264 rm -f core conftest.err conftest.$ac_objext \
11265 conftest$ac_exeext conftest.$ac_ext
11266 LIBS=$ac_check_lib_save_LIBS
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
11269 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
11270 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
11271 GSTREAMER_LIBS="$ac_gst_libs"
11273 GSTREAMER_INCL="$ac_gst_incl"
11279 else
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281 $as_echo "no" >&6; }
11283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11291 CPPFLAGS="$ac_save_CPPFLAGS"
11293 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
11294 case "x$with_gstreamer" in
11295 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
11296 xno) ;;
11297 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
11298 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
11299 esac
11301 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
11303 ALSALIBS=""
11305 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11306 then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
11308 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
11309 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 ac_check_lib_save_LIBS=$LIBS
11313 LIBS="-lasound $LIBS"
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11317 /* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
11320 #ifdef __cplusplus
11321 extern "C"
11322 #endif
11323 char snd_pcm_hw_params_get_access_mask ();
11325 main ()
11327 return snd_pcm_hw_params_get_access_mask ();
11329 return 0;
11331 _ACEOF
11332 if ac_fn_c_try_link "$LINENO"; then :
11333 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
11334 else
11335 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
11337 rm -f core conftest.err conftest.$ac_objext \
11338 conftest$ac_exeext conftest.$ac_ext
11339 LIBS=$ac_check_lib_save_LIBS
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11342 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11343 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11346 #ifdef HAVE_ALSA_ASOUNDLIB_H
11347 #include <alsa/asoundlib.h>
11348 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11349 #include <sys/asoundlib.h>
11350 #endif
11352 main ()
11354 snd_pcm_hw_params_get_access_mask(NULL, NULL)
11356 return 0;
11358 _ACEOF
11359 if ac_fn_c_try_compile "$LINENO"; then :
11360 ALSALIBS="-lasound"
11362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11367 if test "x$with_oss" != xno
11368 then
11369 ac_save_CPPFLAGS="$CPPFLAGS"
11370 if test -f /etc/oss.conf
11371 then
11372 . /etc/oss.conf
11374 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11375 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11376 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11377 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11378 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11380 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11382 cat >>confdefs.h <<_ACEOF
11383 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11384 _ACEOF
11386 OSS4INCL="$ac_oss_incl"
11393 CPPFLAGS="$ac_save_CPPFLAGS"
11394 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11395 then
11396 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11401 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11402 then
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11404 $as_echo_n "checking for -lcapi20... " >&6; }
11405 if ${ac_cv_lib_soname_capi20+:} false; then :
11406 $as_echo_n "(cached) " >&6
11407 else
11408 ac_check_soname_save_LIBS=$LIBS
11409 LIBS="-lcapi20 $LIBS"
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11416 #ifdef __cplusplus
11417 extern "C"
11418 #endif
11419 char capi20_register ();
11421 main ()
11423 return capi20_register ();
11425 return 0;
11427 _ACEOF
11428 if ac_fn_c_try_link "$LINENO"; then :
11429 case "$LIBEXT" in
11430 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11431 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'` ;;
11432 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11433 if test "x$ac_cv_lib_soname_capi20" = x; then :
11434 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11435 fi ;;
11436 esac
11438 rm -f core conftest.err conftest.$ac_objext \
11439 conftest$ac_exeext conftest.$ac_ext
11440 LIBS=$ac_check_soname_save_LIBS
11442 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11444 $as_echo "not found" >&6; }
11446 else
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11448 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11450 cat >>confdefs.h <<_ACEOF
11451 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11452 _ACEOF
11457 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11458 case "x$with_capi" in
11459 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11460 xno) ;;
11461 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11462 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11463 esac
11466 CUPSINCL=""
11468 if test "x$with_cups" != "xno"
11469 then
11470 ac_save_CPPFLAGS="$CPPFLAGS"
11471 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11472 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11473 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11474 for ac_header in cups/cups.h
11475 do :
11476 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11477 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11478 cat >>confdefs.h <<_ACEOF
11479 #define HAVE_CUPS_CUPS_H 1
11480 _ACEOF
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11482 $as_echo_n "checking for -lcups... " >&6; }
11483 if ${ac_cv_lib_soname_cups+:} false; then :
11484 $as_echo_n "(cached) " >&6
11485 else
11486 ac_check_soname_save_LIBS=$LIBS
11487 LIBS="-lcups $ac_cups_libs $LIBS"
11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h. */
11491 /* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494 #ifdef __cplusplus
11495 extern "C"
11496 #endif
11497 char cupsGetDefault ();
11499 main ()
11501 return cupsGetDefault ();
11503 return 0;
11505 _ACEOF
11506 if ac_fn_c_try_link "$LINENO"; then :
11507 case "$LIBEXT" in
11508 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11509 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'` ;;
11510 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11511 if test "x$ac_cv_lib_soname_cups" = x; then :
11512 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11513 fi ;;
11514 esac
11516 rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518 LIBS=$ac_check_soname_save_LIBS
11520 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11522 $as_echo "not found" >&6; }
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11526 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11528 cat >>confdefs.h <<_ACEOF
11529 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11530 _ACEOF
11532 CUPSINCL="$ac_cups_cflags"
11536 done
11538 CPPFLAGS="$ac_save_CPPFLAGS"
11540 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11541 case "x$with_cups" in
11542 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11543 xno) ;;
11544 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11545 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11546 esac
11549 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11550 then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11552 $as_echo_n "checking for -lfontconfig... " >&6; }
11553 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11554 $as_echo_n "(cached) " >&6
11555 else
11556 ac_check_soname_save_LIBS=$LIBS
11557 LIBS="-lfontconfig $LIBS"
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11561 /* Override any GCC internal prototype to avoid an error.
11562 Use char because int might match the return type of a GCC
11563 builtin and then its argument prototype would still apply. */
11564 #ifdef __cplusplus
11565 extern "C"
11566 #endif
11567 char FcInit ();
11569 main ()
11571 return FcInit ();
11573 return 0;
11575 _ACEOF
11576 if ac_fn_c_try_link "$LINENO"; then :
11577 case "$LIBEXT" in
11578 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11579 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'` ;;
11580 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11581 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11582 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11583 fi ;;
11584 esac
11586 rm -f core conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11588 LIBS=$ac_check_soname_save_LIBS
11590 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11592 $as_echo "not found" >&6; }
11594 else
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11596 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11598 cat >>confdefs.h <<_ACEOF
11599 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11600 _ACEOF
11604 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11605 then
11606 ac_save_CPPFLAGS="$CPPFLAGS"
11607 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11608 $as_unset ac_cv_header_fontconfig_fontconfig_h
11609 for ac_header in fontconfig/fontconfig.h
11610 do :
11611 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11612 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11613 cat >>confdefs.h <<_ACEOF
11614 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11615 _ACEOF
11619 done
11621 CPPFLAGS="$ac_save_CPPFLAGS"
11622 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11623 then
11624 FONTCONFIGINCL="$X_CFLAGS"
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11627 $as_echo_n "checking for -lfontconfig... " >&6; }
11628 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 ac_check_soname_save_LIBS=$LIBS
11632 LIBS="-lfontconfig $X_LIBS $LIBS"
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11636 /* Override any GCC internal prototype to avoid an error.
11637 Use char because int might match the return type of a GCC
11638 builtin and then its argument prototype would still apply. */
11639 #ifdef __cplusplus
11640 extern "C"
11641 #endif
11642 char FcInit ();
11644 main ()
11646 return FcInit ();
11648 return 0;
11650 _ACEOF
11651 if ac_fn_c_try_link "$LINENO"; then :
11652 case "$LIBEXT" in
11653 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11654 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'` ;;
11655 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11656 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11657 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11658 fi ;;
11659 esac
11661 rm -f core conftest.err conftest.$ac_objext \
11662 conftest$ac_exeext conftest.$ac_ext
11663 LIBS=$ac_check_soname_save_LIBS
11665 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11667 $as_echo "not found" >&6; }
11669 else
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11671 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11673 cat >>confdefs.h <<_ACEOF
11674 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11675 _ACEOF
11681 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11682 case "x$with_fontconfig" in
11683 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11684 xno) ;;
11685 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11686 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11687 esac
11690 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11691 then
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11693 $as_echo_n "checking for -lgsm... " >&6; }
11694 if ${ac_cv_lib_soname_gsm+:} false; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 ac_check_soname_save_LIBS=$LIBS
11698 LIBS="-lgsm $LIBS"
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11702 /* Override any GCC internal prototype to avoid an error.
11703 Use char because int might match the return type of a GCC
11704 builtin and then its argument prototype would still apply. */
11705 #ifdef __cplusplus
11706 extern "C"
11707 #endif
11708 char gsm_create ();
11710 main ()
11712 return gsm_create ();
11714 return 0;
11716 _ACEOF
11717 if ac_fn_c_try_link "$LINENO"; then :
11718 case "$LIBEXT" in
11719 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11720 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'` ;;
11721 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11722 if test "x$ac_cv_lib_soname_gsm" = x; then :
11723 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11724 fi ;;
11725 esac
11727 rm -f core conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
11729 LIBS=$ac_check_soname_save_LIBS
11731 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11733 $as_echo "not found" >&6; }
11735 else
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11737 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11739 cat >>confdefs.h <<_ACEOF
11740 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11741 _ACEOF
11746 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11747 case "x$with_gsm" in
11748 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11749 xno) ;;
11750 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11751 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11752 esac
11755 if test "$ac_cv_header_jpeglib_h" = "yes"
11756 then
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11758 $as_echo_n "checking for -ljpeg... " >&6; }
11759 if ${ac_cv_lib_soname_jpeg+:} false; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 ac_check_soname_save_LIBS=$LIBS
11763 LIBS="-ljpeg $LIBS"
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11767 /* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11770 #ifdef __cplusplus
11771 extern "C"
11772 #endif
11773 char jpeg_start_decompress ();
11775 main ()
11777 return jpeg_start_decompress ();
11779 return 0;
11781 _ACEOF
11782 if ac_fn_c_try_link "$LINENO"; then :
11783 case "$LIBEXT" in
11784 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11785 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'` ;;
11786 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11787 if test "x$ac_cv_lib_soname_jpeg" = x; then :
11788 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11789 fi ;;
11790 esac
11792 rm -f core conftest.err conftest.$ac_objext \
11793 conftest$ac_exeext conftest.$ac_ext
11794 LIBS=$ac_check_soname_save_LIBS
11796 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11798 $as_echo "not found" >&6; }
11800 else
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11802 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11804 cat >>confdefs.h <<_ACEOF
11805 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11806 _ACEOF
11811 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11812 case "x$with_jpeg" in
11813 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11814 xno) ;;
11815 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11816 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11817 esac
11820 if test "$ac_cv_header_png_h" = "yes"
11821 then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11823 $as_echo_n "checking for -lpng... " >&6; }
11824 if ${ac_cv_lib_soname_png+:} false; then :
11825 $as_echo_n "(cached) " >&6
11826 else
11827 ac_check_soname_save_LIBS=$LIBS
11828 LIBS="-lpng -lm -lz $LIBS"
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11832 /* Override any GCC internal prototype to avoid an error.
11833 Use char because int might match the return type of a GCC
11834 builtin and then its argument prototype would still apply. */
11835 #ifdef __cplusplus
11836 extern "C"
11837 #endif
11838 char png_create_read_struct ();
11840 main ()
11842 return png_create_read_struct ();
11844 return 0;
11846 _ACEOF
11847 if ac_fn_c_try_link "$LINENO"; then :
11848 case "$LIBEXT" in
11849 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11850 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'` ;;
11851 *) 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'`
11852 if test "x$ac_cv_lib_soname_png" = x; then :
11853 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11854 fi ;;
11855 esac
11857 rm -f core conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11859 LIBS=$ac_check_soname_save_LIBS
11861 if test "x$ac_cv_lib_soname_png" = "x"; then :
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11863 $as_echo "not found" >&6; }
11865 else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11867 $as_echo "$ac_cv_lib_soname_png" >&6; }
11869 cat >>confdefs.h <<_ACEOF
11870 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11871 _ACEOF
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11876 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11877 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 ac_check_lib_save_LIBS=$LIBS
11881 LIBS="-lpng -lm -lz $LIBS"
11882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11885 /* Override any GCC internal prototype to avoid an error.
11886 Use char because int might match the return type of a GCC
11887 builtin and then its argument prototype would still apply. */
11888 #ifdef __cplusplus
11889 extern "C"
11890 #endif
11891 char png_set_expand_gray_1_2_4_to_8 ();
11893 main ()
11895 return png_set_expand_gray_1_2_4_to_8 ();
11897 return 0;
11899 _ACEOF
11900 if ac_fn_c_try_link "$LINENO"; then :
11901 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11902 else
11903 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11905 rm -f core conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907 LIBS=$ac_check_lib_save_LIBS
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11910 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11911 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11913 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11918 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11919 then
11920 ac_save_CPPFLAGS="$CPPFLAGS"
11921 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11922 $as_unset ac_cv_header_png_h
11923 for ac_header in png.h
11924 do :
11925 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11926 if test "x$ac_cv_header_png_h" = xyes; then :
11927 cat >>confdefs.h <<_ACEOF
11928 #define HAVE_PNG_H 1
11929 _ACEOF
11933 done
11935 CPPFLAGS="$ac_save_CPPFLAGS"
11936 if test "$ac_cv_header_png_h" = "yes"
11937 then
11938 PNGINCL="$X_CFLAGS"
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11941 $as_echo_n "checking for -lpng... " >&6; }
11942 if ${ac_cv_lib_soname_png+:} false; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 ac_check_soname_save_LIBS=$LIBS
11946 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11950 /* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 char png_create_read_struct ();
11958 main ()
11960 return png_create_read_struct ();
11962 return 0;
11964 _ACEOF
11965 if ac_fn_c_try_link "$LINENO"; then :
11966 case "$LIBEXT" in
11967 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11968 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'` ;;
11969 *) 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'`
11970 if test "x$ac_cv_lib_soname_png" = x; then :
11971 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11972 fi ;;
11973 esac
11975 rm -f core conftest.err conftest.$ac_objext \
11976 conftest$ac_exeext conftest.$ac_ext
11977 LIBS=$ac_check_soname_save_LIBS
11979 if test "x$ac_cv_lib_soname_png" = "x"; then :
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11981 $as_echo "not found" >&6; }
11983 else
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11985 $as_echo "$ac_cv_lib_soname_png" >&6; }
11987 cat >>confdefs.h <<_ACEOF
11988 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11989 _ACEOF
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11994 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11995 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11996 $as_echo_n "(cached) " >&6
11997 else
11998 ac_check_lib_save_LIBS=$LIBS
11999 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12003 /* Override any GCC internal prototype to avoid an error.
12004 Use char because int might match the return type of a GCC
12005 builtin and then its argument prototype would still apply. */
12006 #ifdef __cplusplus
12007 extern "C"
12008 #endif
12009 char png_set_expand_gray_1_2_4_to_8 ();
12011 main ()
12013 return png_set_expand_gray_1_2_4_to_8 ();
12015 return 0;
12017 _ACEOF
12018 if ac_fn_c_try_link "$LINENO"; then :
12019 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
12020 else
12021 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
12023 rm -f core conftest.err conftest.$ac_objext \
12024 conftest$ac_exeext conftest.$ac_ext
12025 LIBS=$ac_check_lib_save_LIBS
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
12028 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
12029 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
12030 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12036 if test "x$ac_cv_lib_soname_png" = "x"; then :
12037 case "x$with_png" in
12038 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12039 xno) ;;
12040 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12041 This is an error since --with-png was requested." "$LINENO" 5 ;;
12042 esac
12045 if test "$ac_cv_header_tiffio_h" = "yes"
12046 then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12048 $as_echo_n "checking for -ltiff... " >&6; }
12049 if ${ac_cv_lib_soname_tiff+:} false; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 ac_check_soname_save_LIBS=$LIBS
12053 LIBS="-ltiff $LIBS"
12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055 /* end confdefs.h. */
12057 /* Override any GCC internal prototype to avoid an error.
12058 Use char because int might match the return type of a GCC
12059 builtin and then its argument prototype would still apply. */
12060 #ifdef __cplusplus
12061 extern "C"
12062 #endif
12063 char TIFFClientOpen ();
12065 main ()
12067 return TIFFClientOpen ();
12069 return 0;
12071 _ACEOF
12072 if ac_fn_c_try_link "$LINENO"; then :
12073 case "$LIBEXT" in
12074 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12075 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'` ;;
12076 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12077 if test "x$ac_cv_lib_soname_tiff" = x; then :
12078 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12079 fi ;;
12080 esac
12082 rm -f core conftest.err conftest.$ac_objext \
12083 conftest$ac_exeext conftest.$ac_ext
12084 LIBS=$ac_check_soname_save_LIBS
12086 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12088 $as_echo "not found" >&6; }
12090 else
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
12092 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
12094 cat >>confdefs.h <<_ACEOF
12095 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
12096 _ACEOF
12101 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12102 case "x$with_tiff" in
12103 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
12104 xno) ;;
12105 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
12106 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
12107 esac
12110 if test "$ac_cv_header_mpg123_h" = "yes"
12111 then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
12113 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
12114 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
12115 $as_echo_n "(cached) " >&6
12116 else
12117 ac_check_lib_save_LIBS=$LIBS
12118 LIBS="-lmpg123 $LIBS"
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12122 /* Override any GCC internal prototype to avoid an error.
12123 Use char because int might match the return type of a GCC
12124 builtin and then its argument prototype would still apply. */
12125 #ifdef __cplusplus
12126 extern "C"
12127 #endif
12128 char mpg123_feed ();
12130 main ()
12132 return mpg123_feed ();
12134 return 0;
12136 _ACEOF
12137 if ac_fn_c_try_link "$LINENO"; then :
12138 ac_cv_lib_mpg123_mpg123_feed=yes
12139 else
12140 ac_cv_lib_mpg123_mpg123_feed=no
12142 rm -f core conftest.err conftest.$ac_objext \
12143 conftest$ac_exeext conftest.$ac_ext
12144 LIBS=$ac_check_lib_save_LIBS
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
12147 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
12148 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
12149 LIBMPG123="-lmpg123"
12154 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
12155 case "x$with_mpg123" in
12156 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
12157 xno) ;;
12158 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
12159 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
12160 esac
12162 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}
12164 if test "$ac_cv_header_AL_al_h" = "yes"
12165 then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
12167 $as_echo_n "checking for -lopenal... " >&6; }
12168 if ${ac_cv_lib_soname_openal+:} false; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171 ac_check_soname_save_LIBS=$LIBS
12172 LIBS="-lopenal $LIBS"
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h. */
12176 /* Override any GCC internal prototype to avoid an error.
12177 Use char because int might match the return type of a GCC
12178 builtin and then its argument prototype would still apply. */
12179 #ifdef __cplusplus
12180 extern "C"
12181 #endif
12182 char alGetSource3i ();
12184 main ()
12186 return alGetSource3i ();
12188 return 0;
12190 _ACEOF
12191 if ac_fn_c_try_link "$LINENO"; then :
12192 case "$LIBEXT" in
12193 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12194 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'` ;;
12195 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12196 if test "x$ac_cv_lib_soname_openal" = x; then :
12197 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12198 fi ;;
12199 esac
12201 rm -f core conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_soname_save_LIBS
12205 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12207 $as_echo "not found" >&6; }
12209 else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12211 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12213 cat >>confdefs.h <<_ACEOF
12214 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12215 _ACEOF
12217 LIBOPENAL="-lopenal"
12219 ac_cv_lib_openal=yes
12221 cat >>confdefs.h <<_ACEOF
12222 #define HAVE_OPENAL 1
12223 _ACEOF
12227 if test "x$ac_cv_lib_openal" != xyes; then :
12228 case "x$with_openal" in
12229 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12230 xno) ;;
12231 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12232 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12233 esac
12235 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12237 if test "$ac_cv_header_kstat_h" = "yes"
12238 then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12240 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12241 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12242 $as_echo_n "(cached) " >&6
12243 else
12244 ac_check_lib_save_LIBS=$LIBS
12245 LIBS="-lkstat $LIBS"
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12249 /* Override any GCC internal prototype to avoid an error.
12250 Use char because int might match the return type of a GCC
12251 builtin and then its argument prototype would still apply. */
12252 #ifdef __cplusplus
12253 extern "C"
12254 #endif
12255 char kstat_open ();
12257 main ()
12259 return kstat_open ();
12261 return 0;
12263 _ACEOF
12264 if ac_fn_c_try_link "$LINENO"; then :
12265 ac_cv_lib_kstat_kstat_open=yes
12266 else
12267 ac_cv_lib_kstat_kstat_open=no
12269 rm -f core conftest.err conftest.$ac_objext \
12270 conftest$ac_exeext conftest.$ac_ext
12271 LIBS=$ac_check_lib_save_LIBS
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12274 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12275 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12277 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12279 LIBKSTAT="-lkstat"
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12286 $as_echo_n "checking for -lodbc... " >&6; }
12287 if ${ac_cv_lib_soname_odbc+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 ac_check_soname_save_LIBS=$LIBS
12291 LIBS="-lodbc $LIBS"
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12295 /* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12298 #ifdef __cplusplus
12299 extern "C"
12300 #endif
12301 char SQLConnect ();
12303 main ()
12305 return SQLConnect ();
12307 return 0;
12309 _ACEOF
12310 if ac_fn_c_try_link "$LINENO"; then :
12311 case "$LIBEXT" in
12312 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12313 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'` ;;
12314 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12315 if test "x$ac_cv_lib_soname_odbc" = x; then :
12316 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12317 fi ;;
12318 esac
12320 rm -f core conftest.err conftest.$ac_objext \
12321 conftest$ac_exeext conftest.$ac_ext
12322 LIBS=$ac_check_soname_save_LIBS
12324 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12326 $as_echo "not found" >&6; }
12327 cat >>confdefs.h <<_ACEOF
12328 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12329 _ACEOF
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12333 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12335 cat >>confdefs.h <<_ACEOF
12336 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12337 _ACEOF
12342 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12343 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12344 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12345 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12347 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
12348 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12349 "x$with_alsa$with_coreaudio$with_oss" != xnonono
12350 then
12351 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12355 EXTRACFLAGS=""
12357 if test "x${GCC}" = "xyes"
12358 then
12359 EXTRACFLAGS="-Wall -pipe"
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12362 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12363 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 if test "$cross_compiling" = yes; then :
12367 ac_cv_c_gcc_strength_bug="yes"
12368 else
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12371 int L[4] = {0,1,2,3};
12373 main ()
12375 static int Array[3];
12376 unsigned int B = 3;
12377 int i;
12378 for(i=0; i<B; i++) Array[i] = i - 3;
12379 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12380 L[i] = 4;
12381 return (Array[1] != -2 || L[2] != 3)
12383 return 0;
12385 _ACEOF
12386 if ac_fn_c_try_run "$LINENO"; then :
12387 ac_cv_c_gcc_strength_bug="no"
12388 else
12389 ac_cv_c_gcc_strength_bug="yes"
12391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12392 conftest.$ac_objext conftest.beam conftest.$ac_ext
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12397 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12398 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12399 then
12400 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12404 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12405 if ${ac_cv_cflags__fno_builtin+:} false; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 ac_wine_try_cflags_saved=$CFLAGS
12409 CFLAGS="$CFLAGS -fno-builtin"
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12412 int main(int argc, char **argv) { return 0; }
12413 _ACEOF
12414 if ac_fn_c_try_link "$LINENO"; then :
12415 ac_cv_cflags__fno_builtin=yes
12416 else
12417 ac_cv_cflags__fno_builtin=no
12419 rm -f core conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
12421 CFLAGS=$ac_wine_try_cflags_saved
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12424 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12425 if test $ac_cv_cflags__fno_builtin = yes; then :
12426 BUILTINFLAG="-fno-builtin"
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12430 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12431 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 ac_wine_try_cflags_saved=$CFLAGS
12435 CFLAGS="$CFLAGS -fno-strict-aliasing"
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12438 int main(int argc, char **argv) { return 0; }
12439 _ACEOF
12440 if ac_fn_c_try_link "$LINENO"; then :
12441 ac_cv_cflags__fno_strict_aliasing=yes
12442 else
12443 ac_cv_cflags__fno_strict_aliasing=no
12445 rm -f core conftest.err conftest.$ac_objext \
12446 conftest$ac_exeext conftest.$ac_ext
12447 CFLAGS=$ac_wine_try_cflags_saved
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12450 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12451 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12452 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12455 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12456 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 ac_wine_try_cflags_saved=$CFLAGS
12460 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12463 int main(int argc, char **argv) { return 0; }
12464 _ACEOF
12465 if ac_fn_c_try_link "$LINENO"; then :
12466 ac_cv_cflags__Wdeclaration_after_statement=yes
12467 else
12468 ac_cv_cflags__Wdeclaration_after_statement=no
12470 rm -f core conftest.err conftest.$ac_objext \
12471 conftest$ac_exeext conftest.$ac_ext
12472 CFLAGS=$ac_wine_try_cflags_saved
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12475 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12476 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12477 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12480 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12481 if ${ac_cv_cflags__Wempty_body+:} false; then :
12482 $as_echo_n "(cached) " >&6
12483 else
12484 ac_wine_try_cflags_saved=$CFLAGS
12485 CFLAGS="$CFLAGS -Wempty-body"
12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h. */
12488 int main(int argc, char **argv) { return 0; }
12489 _ACEOF
12490 if ac_fn_c_try_link "$LINENO"; then :
12491 ac_cv_cflags__Wempty_body=yes
12492 else
12493 ac_cv_cflags__Wempty_body=no
12495 rm -f core conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12497 CFLAGS=$ac_wine_try_cflags_saved
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12500 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12501 if test $ac_cv_cflags__Wempty_body = yes; then :
12502 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12505 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12506 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12507 $as_echo_n "(cached) " >&6
12508 else
12509 ac_wine_try_cflags_saved=$CFLAGS
12510 CFLAGS="$CFLAGS -Wignored-qualifiers"
12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512 /* end confdefs.h. */
12513 int main(int argc, char **argv) { return 0; }
12514 _ACEOF
12515 if ac_fn_c_try_link "$LINENO"; then :
12516 ac_cv_cflags__Wignored_qualifiers=yes
12517 else
12518 ac_cv_cflags__Wignored_qualifiers=no
12520 rm -f core conftest.err conftest.$ac_objext \
12521 conftest$ac_exeext conftest.$ac_ext
12522 CFLAGS=$ac_wine_try_cflags_saved
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12525 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12526 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12527 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12530 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12531 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12532 $as_echo_n "(cached) " >&6
12533 else
12534 ac_wine_try_cflags_saved=$CFLAGS
12535 CFLAGS="$CFLAGS -Wstrict-prototypes"
12536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 /* end confdefs.h. */
12538 int main(int argc, char **argv) { return 0; }
12539 _ACEOF
12540 if ac_fn_c_try_link "$LINENO"; then :
12541 ac_cv_cflags__Wstrict_prototypes=yes
12542 else
12543 ac_cv_cflags__Wstrict_prototypes=no
12545 rm -f core conftest.err conftest.$ac_objext \
12546 conftest$ac_exeext conftest.$ac_ext
12547 CFLAGS=$ac_wine_try_cflags_saved
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12550 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12551 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12552 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12555 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12556 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12557 $as_echo_n "(cached) " >&6
12558 else
12559 ac_wine_try_cflags_saved=$CFLAGS
12560 CFLAGS="$CFLAGS -Wtype-limits"
12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h. */
12563 int main(int argc, char **argv) { return 0; }
12564 _ACEOF
12565 if ac_fn_c_try_link "$LINENO"; then :
12566 ac_cv_cflags__Wtype_limits=yes
12567 else
12568 ac_cv_cflags__Wtype_limits=no
12570 rm -f core conftest.err conftest.$ac_objext \
12571 conftest$ac_exeext conftest.$ac_ext
12572 CFLAGS=$ac_wine_try_cflags_saved
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12575 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12576 if test $ac_cv_cflags__Wtype_limits = yes; then :
12577 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12580 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12581 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 ac_wine_try_cflags_saved=$CFLAGS
12585 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h. */
12588 int main(int argc, char **argv) { return 0; }
12589 _ACEOF
12590 if ac_fn_c_try_link "$LINENO"; then :
12591 ac_cv_cflags__Wunused_but_set_parameter=yes
12592 else
12593 ac_cv_cflags__Wunused_but_set_parameter=no
12595 rm -f core conftest.err conftest.$ac_objext \
12596 conftest$ac_exeext conftest.$ac_ext
12597 CFLAGS=$ac_wine_try_cflags_saved
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12600 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12601 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12602 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12605 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12606 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 ac_wine_try_cflags_saved=$CFLAGS
12610 CFLAGS="$CFLAGS -Wwrite-strings"
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12613 int main(int argc, char **argv) { return 0; }
12614 _ACEOF
12615 if ac_fn_c_try_link "$LINENO"; then :
12616 ac_cv_cflags__Wwrite_strings=yes
12617 else
12618 ac_cv_cflags__Wwrite_strings=no
12620 rm -f core conftest.err conftest.$ac_objext \
12621 conftest$ac_exeext conftest.$ac_ext
12622 CFLAGS=$ac_wine_try_cflags_saved
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12625 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12626 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12627 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12630 for ac_flag in $CFLAGS; do
12631 case $ac_flag in
12632 -g) case $host_os in
12633 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
12634 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
12635 if ${ac_cv_cflags__gstabsp+:} false; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 ac_wine_try_cflags_saved=$CFLAGS
12639 CFLAGS="$CFLAGS -gstabs+"
12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642 int main(int argc, char **argv) { return 0; }
12643 _ACEOF
12644 if ac_fn_c_try_link "$LINENO"; then :
12645 ac_cv_cflags__gstabsp=yes
12646 else
12647 ac_cv_cflags__gstabsp=no
12649 rm -f core conftest.err conftest.$ac_objext \
12650 conftest$ac_exeext conftest.$ac_ext
12651 CFLAGS=$ac_wine_try_cflags_saved
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
12654 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
12655 if test $ac_cv_cflags__gstabsp = yes; then :
12656 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12657 fi ;;
12658 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
12659 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
12660 if ${ac_cv_cflags__gdwarf_2+:} false; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 ac_wine_try_cflags_saved=$CFLAGS
12664 CFLAGS="$CFLAGS -gdwarf-2"
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667 int main(int argc, char **argv) { return 0; }
12668 _ACEOF
12669 if ac_fn_c_try_link "$LINENO"; then :
12670 ac_cv_cflags__gdwarf_2=yes
12671 else
12672 ac_cv_cflags__gdwarf_2=no
12674 rm -f core conftest.err conftest.$ac_objext \
12675 conftest$ac_exeext conftest.$ac_ext
12676 CFLAGS=$ac_wine_try_cflags_saved
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
12679 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
12680 if test $ac_cv_cflags__gdwarf_2 = yes; then :
12681 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
12684 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
12685 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
12686 $as_echo_n "(cached) " >&6
12687 else
12688 ac_wine_try_cflags_saved=$CFLAGS
12689 CFLAGS="$CFLAGS -gstrict-dwarf"
12690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12691 /* end confdefs.h. */
12692 int main(int argc, char **argv) { return 0; }
12693 _ACEOF
12694 if ac_fn_c_try_link "$LINENO"; then :
12695 ac_cv_cflags__gstrict_dwarf=yes
12696 else
12697 ac_cv_cflags__gstrict_dwarf=no
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 CFLAGS=$ac_wine_try_cflags_saved
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
12704 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
12705 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
12706 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
12707 fi ;;
12708 esac ;;
12709 esac
12710 done
12712 case $host_cpu in
12713 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12714 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12715 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 ac_wine_try_cflags_saved=$CFLAGS
12719 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12722 int main(int argc, char **argv) { return 0; }
12723 _ACEOF
12724 if ac_fn_c_try_link "$LINENO"; then :
12725 ac_cv_cflags__fno_omit_frame_pointer=yes
12726 else
12727 ac_cv_cflags__fno_omit_frame_pointer=no
12729 rm -f core conftest.err conftest.$ac_objext \
12730 conftest$ac_exeext conftest.$ac_ext
12731 CFLAGS=$ac_wine_try_cflags_saved
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12734 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12735 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12736 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12737 fi ;;
12738 esac
12740 case $host in
12741 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12742 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12743 if ${ac_cv_cflags__Wno_format+:} false; then :
12744 $as_echo_n "(cached) " >&6
12745 else
12746 ac_wine_try_cflags_saved=$CFLAGS
12747 CFLAGS="$CFLAGS -Wno-format"
12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h. */
12750 int main(int argc, char **argv) { return 0; }
12751 _ACEOF
12752 if ac_fn_c_try_link "$LINENO"; then :
12753 ac_cv_cflags__Wno_format=yes
12754 else
12755 ac_cv_cflags__Wno_format=no
12757 rm -f core conftest.err conftest.$ac_objext \
12758 conftest$ac_exeext conftest.$ac_ext
12759 CFLAGS=$ac_wine_try_cflags_saved
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12762 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12763 if test $ac_cv_cflags__Wno_format = yes; then :
12764 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12765 fi ;;
12766 esac
12768 saved_CFLAGS="$CFLAGS"
12769 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12771 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12772 if ${ac_cv_c_string_h_warnings+:} 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 ()
12783 return 0;
12785 _ACEOF
12786 if ac_fn_c_try_compile "$LINENO"; then :
12787 ac_cv_c_string_h_warnings=no
12788 else
12789 ac_cv_c_string_h_warnings=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_string_h_warnings" >&5
12794 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12795 CFLAGS="$saved_CFLAGS"
12796 if test "$ac_cv_c_string_h_warnings" = "no"
12797 then
12798 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12801 saved_CFLAGS="$CFLAGS"
12802 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12804 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12805 if ${ac_cv_c_logicalop_noisy+:} false; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810 #include <string.h>
12812 main ()
12814 char*f(const char *h,char n) {return strchr(h,n);}
12816 return 0;
12818 _ACEOF
12819 if ac_fn_c_try_compile "$LINENO"; then :
12820 ac_cv_c_logicalop_noisy=no
12821 else
12822 ac_cv_c_logicalop_noisy=yes
12824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12827 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12828 CFLAGS="$saved_CFLAGS"
12829 if test "$ac_cv_c_logicalop_noisy" = "no"
12830 then
12831 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12834 if test "x$enable_maintainer_mode" = "xyes"
12835 then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12837 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12838 if ${ac_cv_cflags__Werror+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 ac_wine_try_cflags_saved=$CFLAGS
12842 CFLAGS="$CFLAGS -Werror"
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12845 int main(int argc, char **argv) { return 0; }
12846 _ACEOF
12847 if ac_fn_c_try_link "$LINENO"; then :
12848 ac_cv_cflags__Werror=yes
12849 else
12850 ac_cv_cflags__Werror=no
12852 rm -f core conftest.err conftest.$ac_objext \
12853 conftest$ac_exeext conftest.$ac_ext
12854 CFLAGS=$ac_wine_try_cflags_saved
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12857 $as_echo "$ac_cv_cflags__Werror" >&6; }
12858 if test $ac_cv_cflags__Werror = yes; then :
12859 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12863 saved_CFLAGS="$CFLAGS"
12864 CFLAGS="$CFLAGS -Werror"
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12866 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12867 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12868 $as_echo_n "(cached) " >&6
12869 else
12870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12871 /* end confdefs.h. */
12872 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12874 main ()
12878 return 0;
12880 _ACEOF
12881 if ac_fn_c_try_compile "$LINENO"; then :
12882 ac_cv_have_ms_hook_prologue="yes"
12883 else
12884 ac_cv_have_ms_hook_prologue="no"
12886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12889 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12890 CFLAGS="$saved_CFLAGS"
12891 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12892 then
12894 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12896 else
12897 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12904 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12905 if ${ac_cv_c_fortify_enabled+:} false; then :
12906 $as_echo_n "(cached) " >&6
12907 else
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12910 #include <string.h>
12912 main ()
12914 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12915 #error Fortify enabled
12916 #endif
12918 return 0;
12920 _ACEOF
12921 if ac_fn_c_try_compile "$LINENO"; then :
12922 ac_cv_c_fortify_enabled=no
12923 else
12924 ac_cv_c_fortify_enabled=yes
12926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12929 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12930 if test "$ac_cv_c_fortify_enabled" = yes
12931 then
12932 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12937 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12938 if ${ac_cv_c_extern_prefix+:} false; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12943 extern int ac_test;
12945 main ()
12947 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12949 return 0;
12951 _ACEOF
12952 if ac_fn_c_try_link "$LINENO"; then :
12953 ac_cv_c_extern_prefix="yes"
12954 else
12955 ac_cv_c_extern_prefix="no"
12957 rm -f core conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12961 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12963 case $host_cpu in
12964 *i[3456789]86*)
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12966 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12967 if ${ac_cv_c_stdcall_suffix+:} false; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12972 #ifndef _MSC_VER
12973 #define __stdcall __attribute__((__stdcall__))
12974 #endif
12975 int __stdcall ac_test(int i) { return i; }
12977 main ()
12979 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12981 return 0;
12983 _ACEOF
12984 if ac_fn_c_try_link "$LINENO"; then :
12985 ac_cv_c_stdcall_suffix="yes"
12986 else
12987 ac_cv_c_stdcall_suffix="no"
12989 rm -f core conftest.err conftest.$ac_objext \
12990 conftest$ac_exeext conftest.$ac_ext
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12993 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12994 *) ac_cv_c_stdcall_suffix="no" ;;
12995 esac
12998 if test "$ac_cv_c_extern_prefix" = "yes"
12999 then
13000 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
13002 asm_name_prefix="_"
13003 else
13004 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
13006 asm_name_prefix=""
13010 if test "$ac_cv_c_stdcall_suffix" = "yes"
13011 then
13012 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
13014 else
13015 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
13021 $as_echo_n "checking how to define a function in assembly code... " >&6; }
13022 if ${ac_cv_asm_func_def+:} false; then :
13023 $as_echo_n "(cached) " >&6
13024 else
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13029 main ()
13031 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
13033 return 0;
13035 _ACEOF
13036 if ac_fn_c_try_link "$LINENO"; then :
13037 ac_cv_asm_func_def=".def"
13038 else
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13043 main ()
13045 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
13047 return 0;
13049 _ACEOF
13050 if ac_fn_c_try_link "$LINENO"; then :
13051 ac_cv_asm_func_def=".type @function"
13052 else
13053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054 /* end confdefs.h. */
13057 main ()
13059 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
13061 return 0;
13063 _ACEOF
13064 if ac_fn_c_try_link "$LINENO"; then :
13065 ac_cv_asm_func_def=".type 2"
13066 else
13067 ac_cv_asm_func_def="unknown"
13069 rm -f core conftest.err conftest.$ac_objext \
13070 conftest$ac_exeext conftest.$ac_ext
13072 rm -f core conftest.err conftest.$ac_objext \
13073 conftest$ac_exeext conftest.$ac_ext
13075 rm -f core conftest.err conftest.$ac_objext \
13076 conftest$ac_exeext conftest.$ac_ext
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
13079 $as_echo "$ac_cv_asm_func_def" >&6; }
13082 case "$ac_cv_asm_func_def" in
13083 ".def")
13084 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
13086 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
13087 ".type @function")
13088 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
13090 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
13091 ".type 2")
13092 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
13094 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
13096 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
13098 asm_func_header="" ;;
13099 esac
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
13102 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
13103 if ${ac_cv_c_asm_outside_funcs+:} false; then :
13104 $as_echo_n "(cached) " >&6
13105 else
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108 asm(".text\n\t.long 0");
13110 main ()
13114 return 0;
13116 _ACEOF
13117 if ac_fn_c_try_compile "$LINENO"; then :
13118 ac_cv_c_asm_outside_funcs="yes"
13119 else
13120 ac_cv_c_asm_outside_funcs="no"
13122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
13125 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
13128 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
13129 if ${ac_cv_c_dot_previous+:} false; then :
13130 $as_echo_n "(cached) " >&6
13131 else
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13136 main ()
13138 asm(".text\nac_test:\t.long 0\n\t.previous");
13140 return 0;
13142 _ACEOF
13143 if ac_fn_c_try_link "$LINENO"; then :
13144 ac_cv_c_dot_previous="yes"
13145 else
13146 ac_cv_c_dot_previous="no"
13148 rm -f core conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
13152 $as_echo "$ac_cv_c_dot_previous" >&6; }
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
13155 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
13156 if ${ac_cv_c_cfi_support+:} false; then :
13157 $as_echo_n "(cached) " >&6
13158 else
13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13161 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
13163 main ()
13167 return 0;
13169 _ACEOF
13170 if ac_fn_c_try_compile "$LINENO"; then :
13171 ac_cv_c_cfi_support="yes"
13172 else
13173 ac_cv_c_cfi_support="no"
13175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
13178 $as_echo "$ac_cv_c_cfi_support" >&6; }
13180 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
13181 asm_func_trailer=""
13182 if test "$ac_cv_c_dot_previous" = "yes"
13183 then
13184 asm_func_trailer="\\n\\t.previous"
13186 if test "$ac_cv_c_cfi_support" = "yes"
13187 then
13188 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
13189 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
13191 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
13193 UNWINDFLAGS=-fasynchronous-unwind-tables
13195 else
13196 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
13200 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
13203 if test "$ac_cv_c_asm_outside_funcs" = "yes"
13204 then
13205 cat >>confdefs.h <<_ACEOF
13206 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
13207 _ACEOF
13209 else
13210 cat >>confdefs.h <<_ACEOF
13211 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
13212 _ACEOF
13216 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
13219 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
13223 LDPATH=""
13225 case $build_os in
13226 cygwin*|mingw32*)
13227 TOOLSEXT=".exe"
13229 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
13231 darwin*|macosx*)
13234 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
13236 esac
13238 MAIN_BINARY="wine"
13240 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
13242 case $host_os in
13243 linux*)
13244 case $host_cpu in
13245 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
13247 x86_64*) EXTRA_BINARIES="wine64-preloader"
13249 esac
13251 esac
13254 ac_save_CFLAGS="$CFLAGS"
13255 CFLAGS="$CFLAGS $BUILTINFLAG"
13256 for ac_func in \
13257 _finite \
13258 _isnan \
13259 _pclose \
13260 _popen \
13261 _snprintf \
13262 _spawnvp \
13263 _strdup \
13264 _stricmp \
13265 _strnicmp \
13266 _strtoi64 \
13267 _strtoui64 \
13268 _vsnprintf \
13269 asctime_r \
13270 chsize \
13271 dlopen \
13272 epoll_create \
13273 ffs \
13274 finite \
13275 fnmatch \
13276 fork \
13277 fpclass \
13278 fstatfs \
13279 fstatvfs \
13280 ftruncate \
13281 futimens \
13282 futimes \
13283 futimesat \
13284 getattrlist \
13285 getdirentries \
13286 getopt_long_only \
13287 getpwuid \
13288 gettimeofday \
13289 getuid \
13290 kqueue \
13291 lstat \
13292 memmove \
13293 mmap \
13294 pclose \
13295 pipe2 \
13296 poll \
13297 popen \
13298 port_create \
13299 prctl \
13300 pread \
13301 pwrite \
13302 readdir \
13303 readlink \
13304 sched_yield \
13305 select \
13306 setproctitle \
13307 setrlimit \
13308 settimeofday \
13309 sigaltstack \
13310 sigprocmask \
13311 snprintf \
13312 statfs \
13313 statvfs \
13314 strcasecmp \
13315 strdup \
13316 strerror \
13317 strncasecmp \
13318 strtold \
13319 strtoll \
13320 strtoull \
13321 symlink \
13322 tcgetattr \
13323 thr_kill2 \
13324 timegm \
13325 usleep \
13326 vsnprintf
13328 do :
13329 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13330 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13331 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13332 cat >>confdefs.h <<_ACEOF
13333 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13334 _ACEOF
13337 done
13339 CFLAGS="$ac_save_CFLAGS"
13341 if test "$ac_cv_func_dlopen" = no
13342 then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13344 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13345 if ${ac_cv_lib_dl_dlopen+:} false; then :
13346 $as_echo_n "(cached) " >&6
13347 else
13348 ac_check_lib_save_LIBS=$LIBS
13349 LIBS="-ldl $LIBS"
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13353 /* Override any GCC internal prototype to avoid an error.
13354 Use char because int might match the return type of a GCC
13355 builtin and then its argument prototype would still apply. */
13356 #ifdef __cplusplus
13357 extern "C"
13358 #endif
13359 char dlopen ();
13361 main ()
13363 return dlopen ();
13365 return 0;
13367 _ACEOF
13368 if ac_fn_c_try_link "$LINENO"; then :
13369 ac_cv_lib_dl_dlopen=yes
13370 else
13371 ac_cv_lib_dl_dlopen=no
13373 rm -f core conftest.err conftest.$ac_objext \
13374 conftest$ac_exeext conftest.$ac_ext
13375 LIBS=$ac_check_lib_save_LIBS
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13378 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13379 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13380 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13381 LIBDL="-ldl"
13386 ac_wine_check_funcs_save_LIBS="$LIBS"
13387 LIBS="$LIBS $LIBDL"
13388 for ac_func in dladdr
13389 do :
13390 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13391 if test "x$ac_cv_func_dladdr" = xyes; then :
13392 cat >>confdefs.h <<_ACEOF
13393 #define HAVE_DLADDR 1
13394 _ACEOF
13397 done
13399 LIBS="$ac_wine_check_funcs_save_LIBS"
13401 if test "$ac_cv_func_poll" = no
13402 then
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13404 $as_echo_n "checking for poll in -lpoll... " >&6; }
13405 if ${ac_cv_lib_poll_poll+:} false; then :
13406 $as_echo_n "(cached) " >&6
13407 else
13408 ac_check_lib_save_LIBS=$LIBS
13409 LIBS="-lpoll $LIBS"
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13413 /* Override any GCC internal prototype to avoid an error.
13414 Use char because int might match the return type of a GCC
13415 builtin and then its argument prototype would still apply. */
13416 #ifdef __cplusplus
13417 extern "C"
13418 #endif
13419 char poll ();
13421 main ()
13423 return poll ();
13425 return 0;
13427 _ACEOF
13428 if ac_fn_c_try_link "$LINENO"; then :
13429 ac_cv_lib_poll_poll=yes
13430 else
13431 ac_cv_lib_poll_poll=no
13433 rm -f core conftest.err conftest.$ac_objext \
13434 conftest$ac_exeext conftest.$ac_ext
13435 LIBS=$ac_check_lib_save_LIBS
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13438 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13439 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13440 $as_echo "#define HAVE_POLL 1" >>confdefs.h
13441 LIBPOLL="-lpoll"
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13448 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13449 if ${ac_cv_search_gethostbyname+:} false; then :
13450 $as_echo_n "(cached) " >&6
13451 else
13452 ac_func_search_save_LIBS=$LIBS
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13456 /* Override any GCC internal prototype to avoid an error.
13457 Use char because int might match the return type of a GCC
13458 builtin and then its argument prototype would still apply. */
13459 #ifdef __cplusplus
13460 extern "C"
13461 #endif
13462 char gethostbyname ();
13464 main ()
13466 return gethostbyname ();
13468 return 0;
13470 _ACEOF
13471 for ac_lib in '' nsl; do
13472 if test -z "$ac_lib"; then
13473 ac_res="none required"
13474 else
13475 ac_res=-l$ac_lib
13476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13478 if ac_fn_c_try_link "$LINENO"; then :
13479 ac_cv_search_gethostbyname=$ac_res
13481 rm -f core conftest.err conftest.$ac_objext \
13482 conftest$ac_exeext
13483 if ${ac_cv_search_gethostbyname+:} false; then :
13484 break
13486 done
13487 if ${ac_cv_search_gethostbyname+:} false; then :
13489 else
13490 ac_cv_search_gethostbyname=no
13492 rm conftest.$ac_ext
13493 LIBS=$ac_func_search_save_LIBS
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13496 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13497 ac_res=$ac_cv_search_gethostbyname
13498 if test "$ac_res" != no; then :
13499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13505 $as_echo_n "checking for library containing connect... " >&6; }
13506 if ${ac_cv_search_connect+:} false; then :
13507 $as_echo_n "(cached) " >&6
13508 else
13509 ac_func_search_save_LIBS=$LIBS
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13513 /* Override any GCC internal prototype to avoid an error.
13514 Use char because int might match the return type of a GCC
13515 builtin and then its argument prototype would still apply. */
13516 #ifdef __cplusplus
13517 extern "C"
13518 #endif
13519 char connect ();
13521 main ()
13523 return connect ();
13525 return 0;
13527 _ACEOF
13528 for ac_lib in '' socket; do
13529 if test -z "$ac_lib"; then
13530 ac_res="none required"
13531 else
13532 ac_res=-l$ac_lib
13533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13535 if ac_fn_c_try_link "$LINENO"; then :
13536 ac_cv_search_connect=$ac_res
13538 rm -f core conftest.err conftest.$ac_objext \
13539 conftest$ac_exeext
13540 if ${ac_cv_search_connect+:} false; then :
13541 break
13543 done
13544 if ${ac_cv_search_connect+:} false; then :
13546 else
13547 ac_cv_search_connect=no
13549 rm conftest.$ac_ext
13550 LIBS=$ac_func_search_save_LIBS
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13553 $as_echo "$ac_cv_search_connect" >&6; }
13554 ac_res=$ac_cv_search_connect
13555 if test "$ac_res" != no; then :
13556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13562 $as_echo_n "checking for library containing inet_aton... " >&6; }
13563 if ${ac_cv_search_inet_aton+:} false; then :
13564 $as_echo_n "(cached) " >&6
13565 else
13566 ac_func_search_save_LIBS=$LIBS
13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h. */
13570 /* Override any GCC internal prototype to avoid an error.
13571 Use char because int might match the return type of a GCC
13572 builtin and then its argument prototype would still apply. */
13573 #ifdef __cplusplus
13574 extern "C"
13575 #endif
13576 char inet_aton ();
13578 main ()
13580 return inet_aton ();
13582 return 0;
13584 _ACEOF
13585 for ac_lib in '' resolv; do
13586 if test -z "$ac_lib"; then
13587 ac_res="none required"
13588 else
13589 ac_res=-l$ac_lib
13590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13592 if ac_fn_c_try_link "$LINENO"; then :
13593 ac_cv_search_inet_aton=$ac_res
13595 rm -f core conftest.err conftest.$ac_objext \
13596 conftest$ac_exeext
13597 if ${ac_cv_search_inet_aton+:} false; then :
13598 break
13600 done
13601 if ${ac_cv_search_inet_aton+:} false; then :
13603 else
13604 ac_cv_search_inet_aton=no
13606 rm conftest.$ac_ext
13607 LIBS=$ac_func_search_save_LIBS
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13610 $as_echo "$ac_cv_search_inet_aton" >&6; }
13611 ac_res=$ac_cv_search_inet_aton
13612 if test "$ac_res" != no; then :
13613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13618 for ac_func in \
13619 getaddrinfo \
13620 getnameinfo \
13621 getnetbyname \
13622 getprotobyname \
13623 getprotobynumber \
13624 getservbyport \
13625 inet_network \
13626 inet_ntop \
13627 inet_pton \
13628 sendmsg \
13629 socketpair \
13631 do :
13632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13633 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13634 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13635 cat >>confdefs.h <<_ACEOF
13636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13637 _ACEOF
13640 done
13643 ac_save_LIBS=$LIBS
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13645 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13646 if ${ac_cv_search_clock_gettime+:} false; then :
13647 $as_echo_n "(cached) " >&6
13648 else
13649 ac_func_search_save_LIBS=$LIBS
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13653 /* Override any GCC internal prototype to avoid an error.
13654 Use char because int might match the return type of a GCC
13655 builtin and then its argument prototype would still apply. */
13656 #ifdef __cplusplus
13657 extern "C"
13658 #endif
13659 char clock_gettime ();
13661 main ()
13663 return clock_gettime ();
13665 return 0;
13667 _ACEOF
13668 for ac_lib in '' rt; do
13669 if test -z "$ac_lib"; then
13670 ac_res="none required"
13671 else
13672 ac_res=-l$ac_lib
13673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13675 if ac_fn_c_try_link "$LINENO"; then :
13676 ac_cv_search_clock_gettime=$ac_res
13678 rm -f core conftest.err conftest.$ac_objext \
13679 conftest$ac_exeext
13680 if ${ac_cv_search_clock_gettime+:} false; then :
13681 break
13683 done
13684 if ${ac_cv_search_clock_gettime+:} false; then :
13686 else
13687 ac_cv_search_clock_gettime=no
13689 rm conftest.$ac_ext
13690 LIBS=$ac_func_search_save_LIBS
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13693 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13694 ac_res=$ac_cv_search_clock_gettime
13695 if test "$ac_res" != no; then :
13696 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13698 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13700 test "$ac_res" = "none required" || LIBRT="$ac_res"
13704 LIBS=$ac_save_LIBS
13706 LDAPLIBS=""
13708 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13709 then
13710 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13712 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13714 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13715 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13716 $as_echo_n "(cached) " >&6
13717 else
13718 ac_check_lib_save_LIBS=$LIBS
13719 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13723 /* Override any GCC internal prototype to avoid an error.
13724 Use char because int might match the return type of a GCC
13725 builtin and then its argument prototype would still apply. */
13726 #ifdef __cplusplus
13727 extern "C"
13728 #endif
13729 char ldap_initialize ();
13731 main ()
13733 return ldap_initialize ();
13735 return 0;
13737 _ACEOF
13738 if ac_fn_c_try_link "$LINENO"; then :
13739 ac_cv_lib_ldap_r_ldap_initialize=yes
13740 else
13741 ac_cv_lib_ldap_r_ldap_initialize=no
13743 rm -f core conftest.err conftest.$ac_objext \
13744 conftest$ac_exeext conftest.$ac_ext
13745 LIBS=$ac_check_lib_save_LIBS
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13748 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13749 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13751 $as_echo_n "checking for ber_init in -llber... " >&6; }
13752 if ${ac_cv_lib_lber_ber_init+:} false; then :
13753 $as_echo_n "(cached) " >&6
13754 else
13755 ac_check_lib_save_LIBS=$LIBS
13756 LIBS="-llber $LIBPTHREAD $LIBS"
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13760 /* Override any GCC internal prototype to avoid an error.
13761 Use char because int might match the return type of a GCC
13762 builtin and then its argument prototype would still apply. */
13763 #ifdef __cplusplus
13764 extern "C"
13765 #endif
13766 char ber_init ();
13768 main ()
13770 return ber_init ();
13772 return 0;
13774 _ACEOF
13775 if ac_fn_c_try_link "$LINENO"; then :
13776 ac_cv_lib_lber_ber_init=yes
13777 else
13778 ac_cv_lib_lber_ber_init=no
13780 rm -f core conftest.err conftest.$ac_objext \
13781 conftest$ac_exeext conftest.$ac_ext
13782 LIBS=$ac_check_lib_save_LIBS
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13785 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13786 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13788 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13790 LDAPLIBS="-lldap_r -llber"
13797 ac_wine_check_funcs_save_LIBS="$LIBS"
13798 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13799 for ac_func in \
13800 ldap_count_references \
13801 ldap_first_reference \
13802 ldap_next_reference \
13803 ldap_parse_reference \
13804 ldap_parse_sort_control \
13805 ldap_parse_sortresponse_control \
13806 ldap_parse_vlv_control \
13807 ldap_parse_vlvresponse_control
13808 do :
13809 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13810 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13811 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13812 cat >>confdefs.h <<_ACEOF
13813 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13814 _ACEOF
13817 done
13819 LIBS="$ac_wine_check_funcs_save_LIBS"
13821 if test "x$LDAPLIBS" = "x"; then :
13822 case "x$with_ldap" in
13823 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13824 xno) ;;
13825 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13826 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13827 esac
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13831 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13832 if ${wine_cv_one_arg_mkdir+:} false; then :
13833 $as_echo_n "(cached) " >&6
13834 else
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13837 #include <sys/stat.h>
13839 main ()
13841 mkdir("foo");
13843 return 0;
13845 _ACEOF
13846 if ac_fn_c_try_compile "$LINENO"; then :
13847 wine_cv_one_arg_mkdir=yes
13848 else
13849 wine_cv_one_arg_mkdir=no
13851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13854 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13855 if test "$wine_cv_one_arg_mkdir" = "yes"
13856 then
13858 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13863 $as_echo_n "checking for sched_setaffinity... " >&6; }
13864 if ${wine_cv_have_sched_setaffinity+:} false; then :
13865 $as_echo_n "(cached) " >&6
13866 else
13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13869 #define _GNU_SOURCE
13870 #include <sched.h>
13872 main ()
13874 sched_setaffinity(0, 0, 0);
13876 return 0;
13878 _ACEOF
13879 if ac_fn_c_try_link "$LINENO"; then :
13880 wine_cv_have_sched_setaffinity=yes
13881 else
13882 wine_cv_have_sched_setaffinity=no
13884 rm -f core conftest.err conftest.$ac_objext \
13885 conftest$ac_exeext conftest.$ac_ext
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13888 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13889 if test "$wine_cv_have_sched_setaffinity" = "yes"
13890 then
13892 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
13897 $as_echo_n "checking for fallocate... " >&6; }
13898 if ${wine_cv_have_fallocate+:} false; then :
13899 $as_echo_n "(cached) " >&6
13900 else
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13903 #define _GNU_SOURCE
13904 #include <fcntl.h>
13906 main ()
13908 fallocate(-1, 0, 0, 0);
13910 return 0;
13912 _ACEOF
13913 if ac_fn_c_try_link "$LINENO"; then :
13914 wine_cv_have_fallocate=yes
13915 else
13916 wine_cv_have_fallocate=no
13918 rm -f core conftest.err conftest.$ac_objext \
13919 conftest$ac_exeext conftest.$ac_ext
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
13922 $as_echo "$wine_cv_have_fallocate" >&6; }
13923 if test "$wine_cv_have_fallocate" = "yes"
13924 then
13926 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13932 $as_echo_n "checking for inline... " >&6; }
13933 if ${ac_cv_c_inline+:} false; then :
13934 $as_echo_n "(cached) " >&6
13935 else
13936 ac_cv_c_inline=no
13937 for ac_kw in inline __inline__ __inline; do
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13940 #ifndef __cplusplus
13941 typedef int foo_t;
13942 static $ac_kw foo_t static_foo () {return 0; }
13943 $ac_kw foo_t foo () {return 0; }
13944 #endif
13946 _ACEOF
13947 if ac_fn_c_try_compile "$LINENO"; then :
13948 ac_cv_c_inline=$ac_kw
13950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13951 test "$ac_cv_c_inline" != no && break
13952 done
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13956 $as_echo "$ac_cv_c_inline" >&6; }
13958 case $ac_cv_c_inline in
13959 inline | yes) ;;
13961 case $ac_cv_c_inline in
13962 no) ac_val=;;
13963 *) ac_val=$ac_cv_c_inline;;
13964 esac
13965 cat >>confdefs.h <<_ACEOF
13966 #ifndef __cplusplus
13967 #define inline $ac_val
13968 #endif
13969 _ACEOF
13971 esac
13973 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13974 if test "x$ac_cv_type_mode_t" = xyes; then :
13976 cat >>confdefs.h <<_ACEOF
13977 #define HAVE_MODE_T 1
13978 _ACEOF
13982 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13983 if test "x$ac_cv_type_off_t" = xyes; then :
13985 cat >>confdefs.h <<_ACEOF
13986 #define HAVE_OFF_T 1
13987 _ACEOF
13991 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13992 if test "x$ac_cv_type_pid_t" = xyes; then :
13994 cat >>confdefs.h <<_ACEOF
13995 #define HAVE_PID_T 1
13996 _ACEOF
14000 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14001 if test "x$ac_cv_type_size_t" = xyes; then :
14003 cat >>confdefs.h <<_ACEOF
14004 #define HAVE_SIZE_T 1
14005 _ACEOF
14009 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14010 if test "x$ac_cv_type_ssize_t" = xyes; then :
14012 cat >>confdefs.h <<_ACEOF
14013 #define HAVE_SSIZE_T 1
14014 _ACEOF
14018 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14019 if test "x$ac_cv_type_long_long" = xyes; then :
14021 cat >>confdefs.h <<_ACEOF
14022 #define HAVE_LONG_LONG 1
14023 _ACEOF
14027 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
14028 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
14030 cat >>confdefs.h <<_ACEOF
14031 #define HAVE_FSBLKCNT_T 1
14032 _ACEOF
14036 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
14037 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
14039 cat >>confdefs.h <<_ACEOF
14040 #define HAVE_FSFILCNT_T 1
14041 _ACEOF
14046 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
14047 #include <signal.h>
14049 if test "x$ac_cv_type_sigset_t" = xyes; then :
14051 cat >>confdefs.h <<_ACEOF
14052 #define HAVE_SIGSET_T 1
14053 _ACEOF
14058 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
14060 if test "x$ac_cv_type_request_sense" = xyes; then :
14062 cat >>confdefs.h <<_ACEOF
14063 #define HAVE_REQUEST_SENSE 1
14064 _ACEOF
14070 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
14071 #ifdef HAVE_SYS_SOCKET_H
14072 #include <sys/socket.h>
14073 #endif
14074 #ifdef HAVE_SYS_SOCKETVAR_H
14075 #include <sys/socketvar.h>
14076 #endif
14077 #ifdef HAVE_NET_ROUTE_H
14078 #include <net/route.h>
14079 #endif
14080 #ifdef HAVE_NETINET_IN_H
14081 #include <netinet/in.h>
14082 #endif
14083 #ifdef HAVE_NETINET_IN_SYSTM_H
14084 #include <netinet/in_systm.h>
14085 #endif
14086 #ifdef HAVE_NETINET_IP_H
14087 #include <netinet/ip.h>
14088 #endif
14089 #ifdef HAVE_NETINET_IN_PCB_H
14090 #include <netinet/in_pcb.h>
14091 #endif
14093 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
14095 cat >>confdefs.h <<_ACEOF
14096 #define HAVE_STRUCT_XINPGEN 1
14097 _ACEOF
14103 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
14104 #include <linux/input.h>
14105 #endif
14107 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
14109 cat >>confdefs.h <<_ACEOF
14110 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
14111 _ACEOF
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
14118 $as_echo_n "checking for sigaddset... " >&6; }
14119 if ${wine_cv_have_sigaddset+:} false; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14124 #include <signal.h>
14126 main ()
14128 sigset_t set; sigaddset(&set,SIGTERM);
14130 return 0;
14132 _ACEOF
14133 if ac_fn_c_try_link "$LINENO"; then :
14134 wine_cv_have_sigaddset=yes
14135 else
14136 wine_cv_have_sigaddset=no
14138 rm -f core conftest.err conftest.$ac_objext \
14139 conftest$ac_exeext conftest.$ac_ext
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
14142 $as_echo "$wine_cv_have_sigaddset" >&6; }
14143 if test "$wine_cv_have_sigaddset" = "yes"
14144 then
14146 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14152 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
14153 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
14154 $as_echo_n "(cached) " >&6
14155 else
14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157 /* end confdefs.h. */
14158 #include <netdb.h>
14160 main ()
14163 char *name=0;
14164 struct hostent he;
14165 struct hostent *result;
14166 char *buf=0;
14167 int bufsize=0;
14168 int errnr;
14169 char *addr=0;
14170 int addrlen=0;
14171 int addrtype=0;
14172 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14173 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14176 return 0;
14178 _ACEOF
14179 if ac_fn_c_try_link "$LINENO"; then :
14180 wine_cv_linux_gethostbyname_r_6=yes
14181 else
14182 wine_cv_linux_gethostbyname_r_6=no
14185 rm -f core conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
14190 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
14191 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14192 then
14194 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
14198 if test "$ac_cv_header_linux_joystick_h" = "yes"
14199 then
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14201 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
14202 if ${wine_cv_linux_joystick_22_api+:} false; then :
14203 $as_echo_n "(cached) " >&6
14204 else
14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206 /* end confdefs.h. */
14208 #include <sys/ioctl.h>
14209 #include <sys/types.h>
14210 #include <linux/joystick.h>
14212 struct js_event blub;
14213 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14214 #error "no 2.2 header"
14215 #endif
14218 main ()
14220 /*empty*/
14222 return 0;
14224 _ACEOF
14225 if ac_fn_c_try_compile "$LINENO"; then :
14226 wine_cv_linux_joystick_22_api=yes
14227 else
14228 wine_cv_linux_joystick_22_api=no
14230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
14234 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
14235 if test "$wine_cv_linux_joystick_22_api" = "yes"
14236 then
14238 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
14244 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
14245 #ifdef HAVE_SYS_PARAM_H
14246 # include <sys/param.h>
14247 #endif
14248 #ifdef HAVE_SYS_MOUNT_H
14249 # include <sys/mount.h>
14250 #endif
14251 #ifdef HAVE_SYS_VFS_H
14252 # include <sys/vfs.h>
14253 #endif
14254 #ifdef HAVE_SYS_STATFS_H
14255 # include <sys/statfs.h>
14256 #endif
14258 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
14260 cat >>confdefs.h <<_ACEOF
14261 #define HAVE_STRUCT_STATFS_F_BFREE 1
14262 _ACEOF
14266 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
14267 #ifdef HAVE_SYS_PARAM_H
14268 # include <sys/param.h>
14269 #endif
14270 #ifdef HAVE_SYS_MOUNT_H
14271 # include <sys/mount.h>
14272 #endif
14273 #ifdef HAVE_SYS_VFS_H
14274 # include <sys/vfs.h>
14275 #endif
14276 #ifdef HAVE_SYS_STATFS_H
14277 # include <sys/statfs.h>
14278 #endif
14280 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
14282 cat >>confdefs.h <<_ACEOF
14283 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
14284 _ACEOF
14288 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
14289 #ifdef HAVE_SYS_PARAM_H
14290 # include <sys/param.h>
14291 #endif
14292 #ifdef HAVE_SYS_MOUNT_H
14293 # include <sys/mount.h>
14294 #endif
14295 #ifdef HAVE_SYS_VFS_H
14296 # include <sys/vfs.h>
14297 #endif
14298 #ifdef HAVE_SYS_STATFS_H
14299 # include <sys/statfs.h>
14300 #endif
14302 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
14304 cat >>confdefs.h <<_ACEOF
14305 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
14306 _ACEOF
14310 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
14311 #ifdef HAVE_SYS_PARAM_H
14312 # include <sys/param.h>
14313 #endif
14314 #ifdef HAVE_SYS_MOUNT_H
14315 # include <sys/mount.h>
14316 #endif
14317 #ifdef HAVE_SYS_VFS_H
14318 # include <sys/vfs.h>
14319 #endif
14320 #ifdef HAVE_SYS_STATFS_H
14321 # include <sys/statfs.h>
14322 #endif
14324 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
14326 cat >>confdefs.h <<_ACEOF
14327 #define HAVE_STRUCT_STATFS_F_FFREE 1
14328 _ACEOF
14332 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
14333 #ifdef HAVE_SYS_PARAM_H
14334 # include <sys/param.h>
14335 #endif
14336 #ifdef HAVE_SYS_MOUNT_H
14337 # include <sys/mount.h>
14338 #endif
14339 #ifdef HAVE_SYS_VFS_H
14340 # include <sys/vfs.h>
14341 #endif
14342 #ifdef HAVE_SYS_STATFS_H
14343 # include <sys/statfs.h>
14344 #endif
14346 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
14348 cat >>confdefs.h <<_ACEOF
14349 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
14350 _ACEOF
14354 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
14355 #ifdef HAVE_SYS_PARAM_H
14356 # include <sys/param.h>
14357 #endif
14358 #ifdef HAVE_SYS_MOUNT_H
14359 # include <sys/mount.h>
14360 #endif
14361 #ifdef HAVE_SYS_VFS_H
14362 # include <sys/vfs.h>
14363 #endif
14364 #ifdef HAVE_SYS_STATFS_H
14365 # include <sys/statfs.h>
14366 #endif
14368 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
14370 cat >>confdefs.h <<_ACEOF
14371 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
14372 _ACEOF
14378 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
14379 #include <sys/statvfs.h>
14380 #endif
14382 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
14384 cat >>confdefs.h <<_ACEOF
14385 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
14386 _ACEOF
14392 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
14393 #include <dirent.h>
14394 #endif
14396 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
14398 cat >>confdefs.h <<_ACEOF
14399 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
14400 _ACEOF
14406 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
14407 #ifdef HAVE_SYS_SOCKET_H
14408 # include <sys/socket.h>
14409 #endif
14410 #ifdef HAVE_SYS_UN_H
14411 # include <sys/un.h>
14412 #endif
14414 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
14416 cat >>confdefs.h <<_ACEOF
14417 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
14418 _ACEOF
14422 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14423 #ifdef HAVE_SYS_SOCKET_H
14424 # include <sys/socket.h>
14425 #endif
14426 #ifdef HAVE_SYS_UN_H
14427 # include <sys/un.h>
14428 #endif
14430 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14432 cat >>confdefs.h <<_ACEOF
14433 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14434 _ACEOF
14438 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14439 #ifdef HAVE_SYS_SOCKET_H
14440 # include <sys/socket.h>
14441 #endif
14442 #ifdef HAVE_SYS_UN_H
14443 # include <sys/un.h>
14444 #endif
14446 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14448 cat >>confdefs.h <<_ACEOF
14449 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14450 _ACEOF
14456 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14457 #ifdef HAVE_SCSI_SG_H
14458 #include <scsi/sg.h>
14459 #endif
14461 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14463 cat >>confdefs.h <<_ACEOF
14464 #define HAVE_SCSIREQ_T_CMD 1
14465 _ACEOF
14469 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>
14470 #ifdef HAVE_SCSI_SG_H
14471 #include <scsi/sg.h>
14472 #endif
14474 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14476 cat >>confdefs.h <<_ACEOF
14477 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14478 _ACEOF
14484 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14486 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14488 cat >>confdefs.h <<_ACEOF
14489 #define HAVE_SIGINFO_T_SI_FD 1
14490 _ACEOF
14496 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14497 #ifdef HAVE_SYS_MTIO_H
14498 #include <sys/mtio.h>
14499 #endif
14501 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14503 cat >>confdefs.h <<_ACEOF
14504 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14505 _ACEOF
14509 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14510 #ifdef HAVE_SYS_MTIO_H
14511 #include <sys/mtio.h>
14512 #endif
14514 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14516 cat >>confdefs.h <<_ACEOF
14517 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14518 _ACEOF
14522 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14523 #ifdef HAVE_SYS_MTIO_H
14524 #include <sys/mtio.h>
14525 #endif
14527 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14529 cat >>confdefs.h <<_ACEOF
14530 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14531 _ACEOF
14537 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14538 #include <getopt.h>
14539 #endif
14541 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14543 cat >>confdefs.h <<_ACEOF
14544 #define HAVE_STRUCT_OPTION_NAME 1
14545 _ACEOF
14551 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14552 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14554 cat >>confdefs.h <<_ACEOF
14555 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14556 _ACEOF
14560 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14561 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14563 cat >>confdefs.h <<_ACEOF
14564 #define HAVE_STRUCT_STAT_ST_MTIM 1
14565 _ACEOF
14569 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
14570 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
14572 cat >>confdefs.h <<_ACEOF
14573 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
14574 _ACEOF
14578 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14579 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14581 cat >>confdefs.h <<_ACEOF
14582 #define HAVE_STRUCT_STAT_ST_CTIM 1
14583 _ACEOF
14587 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
14588 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
14590 cat >>confdefs.h <<_ACEOF
14591 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
14592 _ACEOF
14596 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14597 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14599 cat >>confdefs.h <<_ACEOF
14600 #define HAVE_STRUCT_STAT_ST_ATIM 1
14601 _ACEOF
14605 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
14606 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
14608 cat >>confdefs.h <<_ACEOF
14609 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
14610 _ACEOF
14614 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
14615 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
14617 cat >>confdefs.h <<_ACEOF
14618 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
14619 _ACEOF
14623 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
14624 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
14626 cat >>confdefs.h <<_ACEOF
14627 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
14628 _ACEOF
14632 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
14633 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
14635 cat >>confdefs.h <<_ACEOF
14636 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
14637 _ACEOF
14641 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
14642 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
14644 cat >>confdefs.h <<_ACEOF
14645 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
14646 _ACEOF
14650 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
14651 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
14653 cat >>confdefs.h <<_ACEOF
14654 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
14655 _ACEOF
14661 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
14662 #include <sys/types.h>
14663 #endif
14664 #ifdef HAVE_NETINET_IN_H
14665 #include <netinet/in.h>
14666 #endif
14668 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14670 cat >>confdefs.h <<_ACEOF
14671 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14672 _ACEOF
14678 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14679 #include <sys/types.h>
14680 #endif
14681 #ifdef HAVE_NETINET_IN_H
14682 # include <netinet/in.h>
14683 #endif
14684 #ifdef HAVE_ARPA_NAMESER_H
14685 # include <arpa/nameser.h>
14686 #endif
14688 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14690 cat >>confdefs.h <<_ACEOF
14691 #define HAVE_NS_MSG__MSG_PTR 1
14692 _ACEOF
14698 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
14699 #include <sys/types.h>
14700 #endif
14701 #ifdef HAVE_NETINET_IP_H
14702 #include <netinet/ip.h>
14703 #endif
14704 #ifdef HAVE_NETINET_IP_ICMP_H
14705 #include <netinet/ip_icmp.h>
14706 #endif
14707 #ifdef HAVE_NETINET_ICMP_VAR_H
14708 #include <netinet/icmp_var.h>
14709 #endif
14711 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
14713 cat >>confdefs.h <<_ACEOF
14714 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
14715 _ACEOF
14721 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14722 #include <sys/types.h>
14723 #endif
14724 #ifdef HAVE_ALIAS_H
14725 #include <alias.h>
14726 #endif
14727 #ifdef HAVE_SYS_SOCKET_H
14728 #include <sys/socket.h>
14729 #endif
14730 #ifdef HAVE_SYS_SOCKETVAR_H
14731 #include <sys/socketvar.h>
14732 #endif
14733 #ifdef HAVE_SYS_TIMEOUT_H
14734 #include <sys/timeout.h>
14735 #endif
14736 #ifdef HAVE_NETINET_IN_H
14737 #include <netinet/in.h>
14738 #endif
14739 #ifdef HAVE_NETINET_IN_SYSTM_H
14740 #include <netinet/in_systm.h>
14741 #endif
14742 #ifdef HAVE_NETINET_IP_H
14743 #include <netinet/ip.h>
14744 #endif
14745 #ifdef HAVE_NETINET_IP_VAR_H
14746 #include <netinet/ip_var.h>
14747 #endif
14748 #ifdef HAVE_NETINET_IP_ICMP_H
14749 #include <netinet/ip_icmp.h>
14750 #endif
14751 #ifdef HAVE_NETINET_ICMP_VAR_H
14752 #include <netinet/icmp_var.h>
14753 #endif
14755 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14757 cat >>confdefs.h <<_ACEOF
14758 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14759 _ACEOF
14765 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
14766 #include <sys/types.h>
14767 #endif
14768 #ifdef HAVE_SYS_SOCKETVAR_H
14769 #include <sys/socketvar.h>
14770 #endif
14771 #ifdef HAVE_NETINET_IN_H
14772 #include <netinet/in.h>
14773 #endif
14774 #ifdef HAVE_NETINET_IP_VAR_H
14775 #include <netinet/ip_var.h>
14776 #endif
14778 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
14780 cat >>confdefs.h <<_ACEOF
14781 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
14782 _ACEOF
14788 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
14789 #include <netinet/ip_var.h>
14790 #endif
14792 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
14794 cat >>confdefs.h <<_ACEOF
14795 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
14796 _ACEOF
14802 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
14803 #include <sys/types.h>
14804 #endif
14805 #ifdef HAVE_SYS_SOCKETVAR_H
14806 #include <sys/socketvar.h>
14807 #endif
14808 #ifdef HAVE_NETINET_IN_H
14809 #include <netinet/in.h>
14810 #endif
14811 #ifdef HAVE_NETINET_TCP_H
14812 #include <netinet/tcp.h>
14813 #endif
14814 #ifdef HAVE_NETINET_TCP_VAR_H
14815 #include <netinet/tcp_var.h>
14816 #endif
14818 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
14820 cat >>confdefs.h <<_ACEOF
14821 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
14822 _ACEOF
14828 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
14829 #include <netinet/tcp_var.h>
14830 #endif
14832 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
14834 cat >>confdefs.h <<_ACEOF
14835 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
14836 _ACEOF
14842 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
14843 #include <sys/types.h>
14844 #endif
14845 #ifdef HAVE_NETINET_IN_H
14846 #include <netinet/in.h>
14847 #endif
14848 #ifdef HAVE_NETINET_IP_VAR_H
14849 #include <netinet/ip_var.h>
14850 #endif
14851 #ifdef HAVE_NETINET_UDP_H
14852 #include <netinet/udp.h>
14853 #endif
14854 #ifdef HAVE_NETINET_UDP_VAR_H
14855 #include <netinet/udp_var.h>
14856 #endif
14858 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
14860 cat >>confdefs.h <<_ACEOF
14861 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
14862 _ACEOF
14868 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14869 #include <sys/types.h>
14870 #endif
14871 #ifdef HAVE_NET_IF_H
14872 # include <net/if.h>
14873 #endif
14875 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14877 cat >>confdefs.h <<_ACEOF
14878 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14879 _ACEOF
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14886 $as_echo_n "checking for timezone variable... " >&6; }
14887 if ${ac_cv_have_timezone+:} false; then :
14888 $as_echo_n "(cached) " >&6
14889 else
14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14892 #include <time.h>
14894 main ()
14896 timezone = 1
14898 return 0;
14900 _ACEOF
14901 if ac_fn_c_try_link "$LINENO"; then :
14902 ac_cv_have_timezone="yes"
14903 else
14904 ac_cv_have_timezone="no"
14906 rm -f core conftest.err conftest.$ac_objext \
14907 conftest$ac_exeext conftest.$ac_ext
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14910 $as_echo "$ac_cv_have_timezone" >&6; }
14911 if test "$ac_cv_have_timezone" = "yes"
14912 then
14914 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14918 $as_echo_n "checking for daylight variable... " >&6; }
14919 if ${ac_cv_have_daylight+:} false; then :
14920 $as_echo_n "(cached) " >&6
14921 else
14922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14923 /* end confdefs.h. */
14924 #include <time.h>
14926 main ()
14928 daylight = 1
14930 return 0;
14932 _ACEOF
14933 if ac_fn_c_try_link "$LINENO"; then :
14934 ac_cv_have_daylight="yes"
14935 else
14936 ac_cv_have_daylight="no"
14938 rm -f core conftest.err conftest.$ac_objext \
14939 conftest$ac_exeext conftest.$ac_ext
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14942 $as_echo "$ac_cv_have_daylight" >&6; }
14943 if test "$ac_cv_have_daylight" = "yes"
14944 then
14946 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14950 ac_save_LIBS="$LIBS"
14951 LIBS="$LIBS -lm"
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14953 $as_echo_n "checking for isinf... " >&6; }
14954 if ${ac_cv_have_isinf+:} 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 isinf(f)
14965 return 0;
14967 _ACEOF
14968 if ac_fn_c_try_link "$LINENO"; then :
14969 ac_cv_have_isinf="yes"
14970 else
14971 ac_cv_have_isinf="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_isinf" >&5
14977 $as_echo "$ac_cv_have_isinf" >&6; }
14978 if test "$ac_cv_have_isinf" = "yes"
14979 then
14981 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14986 $as_echo_n "checking for isnan... " >&6; }
14987 if ${ac_cv_have_isnan+:} false; then :
14988 $as_echo_n "(cached) " >&6
14989 else
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h. */
14992 #include <math.h>
14994 main ()
14996 float f = 0.0; return isnan(f)
14998 return 0;
15000 _ACEOF
15001 if ac_fn_c_try_link "$LINENO"; then :
15002 ac_cv_have_isnan="yes"
15003 else
15004 ac_cv_have_isnan="no"
15006 rm -f core conftest.err conftest.$ac_objext \
15007 conftest$ac_exeext conftest.$ac_ext
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
15010 $as_echo "$ac_cv_have_isnan" >&6; }
15011 if test "$ac_cv_have_isnan" = "yes"
15012 then
15014 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
15017 LIBS="$ac_save_LIBS"
15020 case $host_cpu in
15021 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
15022 $as_echo_n "checking whether we need to define __i386__... " >&6; }
15023 if ${ac_cv_cpp_def___i386__+:} false; then :
15024 $as_echo_n "(cached) " >&6
15025 else
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15028 #ifndef __i386__
15030 #endif
15031 _ACEOF
15032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15033 $EGREP "yes" >/dev/null 2>&1; then :
15034 ac_cv_cpp_def___i386__=yes
15035 else
15036 ac_cv_cpp_def___i386__=no
15038 rm -f conftest*
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
15042 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
15043 if test $ac_cv_cpp_def___i386__ = yes; then :
15044 CFLAGS="$CFLAGS -D__i386__"
15045 LINTFLAGS="$LINTFLAGS -D__i386__"
15046 fi ;;
15047 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
15048 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
15049 if ${ac_cv_cpp_def___x86_64__+:} false; then :
15050 $as_echo_n "(cached) " >&6
15051 else
15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053 /* end confdefs.h. */
15054 #ifndef __x86_64__
15056 #endif
15057 _ACEOF
15058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15059 $EGREP "yes" >/dev/null 2>&1; then :
15060 ac_cv_cpp_def___x86_64__=yes
15061 else
15062 ac_cv_cpp_def___x86_64__=no
15064 rm -f conftest*
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
15068 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
15069 if test $ac_cv_cpp_def___x86_64__ = yes; then :
15070 CFLAGS="$CFLAGS -D__x86_64__"
15071 LINTFLAGS="$LINTFLAGS -D__x86_64__"
15072 fi ;;
15073 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
15074 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
15075 if ${ac_cv_cpp_def___sparc64__+:} false; then :
15076 $as_echo_n "(cached) " >&6
15077 else
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15080 #ifndef __sparc64__
15082 #endif
15083 _ACEOF
15084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15085 $EGREP "yes" >/dev/null 2>&1; then :
15086 ac_cv_cpp_def___sparc64__=yes
15087 else
15088 ac_cv_cpp_def___sparc64__=no
15090 rm -f conftest*
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
15094 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
15095 if test $ac_cv_cpp_def___sparc64__ = yes; then :
15096 CFLAGS="$CFLAGS -D__sparc64__"
15097 LINTFLAGS="$LINTFLAGS -D__sparc64__"
15098 fi ;;
15099 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
15100 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
15101 if ${ac_cv_cpp_def___sparc__+:} false; then :
15102 $as_echo_n "(cached) " >&6
15103 else
15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15106 #ifndef __sparc__
15108 #endif
15109 _ACEOF
15110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15111 $EGREP "yes" >/dev/null 2>&1; then :
15112 ac_cv_cpp_def___sparc__=yes
15113 else
15114 ac_cv_cpp_def___sparc__=no
15116 rm -f conftest*
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
15120 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
15121 if test $ac_cv_cpp_def___sparc__ = yes; then :
15122 CFLAGS="$CFLAGS -D__sparc__"
15123 LINTFLAGS="$LINTFLAGS -D__sparc__"
15124 fi ;;
15125 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
15126 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
15127 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
15128 $as_echo_n "(cached) " >&6
15129 else
15130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15131 /* end confdefs.h. */
15132 #ifndef __powerpc64__
15134 #endif
15135 _ACEOF
15136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15137 $EGREP "yes" >/dev/null 2>&1; then :
15138 ac_cv_cpp_def___powerpc64__=yes
15139 else
15140 ac_cv_cpp_def___powerpc64__=no
15142 rm -f conftest*
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
15146 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
15147 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
15148 CFLAGS="$CFLAGS -D__powerpc64__"
15149 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
15150 fi ;;
15151 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
15152 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
15153 if ${ac_cv_cpp_def___powerpc__+:} false; then :
15154 $as_echo_n "(cached) " >&6
15155 else
15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h. */
15158 #ifndef __powerpc__
15160 #endif
15161 _ACEOF
15162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15163 $EGREP "yes" >/dev/null 2>&1; then :
15164 ac_cv_cpp_def___powerpc__=yes
15165 else
15166 ac_cv_cpp_def___powerpc__=no
15168 rm -f conftest*
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
15172 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
15173 if test $ac_cv_cpp_def___powerpc__ = yes; then :
15174 CFLAGS="$CFLAGS -D__powerpc__"
15175 LINTFLAGS="$LINTFLAGS -D__powerpc__"
15176 fi ;;
15177 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
15178 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
15179 if ${ac_cv_cpp_def___aarch64__+:} false; then :
15180 $as_echo_n "(cached) " >&6
15181 else
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15184 #ifndef __aarch64__
15186 #endif
15187 _ACEOF
15188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15189 $EGREP "yes" >/dev/null 2>&1; then :
15190 ac_cv_cpp_def___aarch64__=yes
15191 else
15192 ac_cv_cpp_def___aarch64__=no
15194 rm -f conftest*
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
15198 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
15199 if test $ac_cv_cpp_def___aarch64__ = yes; then :
15200 CFLAGS="$CFLAGS -D__aarch64__"
15201 LINTFLAGS="$LINTFLAGS -D__aarch64__"
15202 fi ;;
15203 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
15204 $as_echo_n "checking whether we need to define __arm__... " >&6; }
15205 if ${ac_cv_cpp_def___arm__+:} false; then :
15206 $as_echo_n "(cached) " >&6
15207 else
15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15209 /* end confdefs.h. */
15210 #ifndef __arm__
15212 #endif
15213 _ACEOF
15214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15215 $EGREP "yes" >/dev/null 2>&1; then :
15216 ac_cv_cpp_def___arm__=yes
15217 else
15218 ac_cv_cpp_def___arm__=no
15220 rm -f conftest*
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
15224 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
15225 if test $ac_cv_cpp_def___arm__ = yes; then :
15226 CFLAGS="$CFLAGS -D__arm__"
15227 LINTFLAGS="$LINTFLAGS -D__arm__"
15228 fi ;;
15229 esac
15231 case $host_vendor in
15232 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
15233 $as_echo_n "checking whether we need to define __sun__... " >&6; }
15234 if ${ac_cv_cpp_def___sun__+:} false; then :
15235 $as_echo_n "(cached) " >&6
15236 else
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239 #ifndef __sun__
15241 #endif
15242 _ACEOF
15243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15244 $EGREP "yes" >/dev/null 2>&1; then :
15245 ac_cv_cpp_def___sun__=yes
15246 else
15247 ac_cv_cpp_def___sun__=no
15249 rm -f conftest*
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
15253 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
15254 if test $ac_cv_cpp_def___sun__ = yes; then :
15255 CFLAGS="$CFLAGS -D__sun__"
15256 LINTFLAGS="$LINTFLAGS -D__sun__"
15257 fi ;;
15258 esac
15264 ac_config_commands="$ac_config_commands include/stamp-h"
15267 ALL_MAKEFILE_DEPENDS="
15268 # Rules automatically generated by configure
15270 .INIT: Makefile
15271 .MAKEFILEDEPS:
15272 all: Makefile
15273 Makefile: Makefile.in Make.vars.in Make.rules config.status
15274 @./config.status Make.tmp Makefile"
15276 ALL_POT_FILES=""
15277 ALL_TEST_RESOURCES=""
15280 wine_fn_append_file ()
15282 as_fn_append $1 " \\$as_nl $2"
15285 wine_fn_append_rule ()
15287 as_fn_append $1 "$as_nl$2"
15290 wine_fn_has_flag ()
15292 expr ",$2," : ".*,$1,.*" >/dev/null
15295 wine_fn_all_dir_rules ()
15297 ac_dir=$1
15298 ac_alldeps=$2
15299 ac_makedep="\$(MAKEDEP)"
15300 ac_input=Make.vars.in:$ac_dir/Makefile.in
15301 if test $ac_dir != tools
15302 then
15303 ac_alldeps="$2 $ac_makedep"
15304 else
15305 ac_alldeps="$2 include/config.h"
15307 case $2 in
15308 *.in) ac_input=$ac_input:$2 ;;
15309 *) ac_makedep="$2 $ac_makedep" ;;
15310 esac
15312 wine_fn_append_file ALL_DIRS $ac_dir
15313 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15314 "__clean__: $ac_dir/__clean__
15315 .PHONY: $ac_dir/__clean__
15316 $ac_dir/__clean__: $ac_dir/Makefile
15317 @cd $ac_dir && \$(MAKE) clean
15318 \$(RM) $ac_dir/Makefile
15319 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
15320 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
15321 depend: $ac_dir/__depend__
15322 .PHONY: $ac_dir/__depend__
15323 $ac_dir/__depend__: $ac_makedep dummy
15324 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
15327 wine_fn_pot_rules ()
15329 ac_dir=$1
15330 ac_flags=$2
15332 test "x$with_gettextpo" = xyes || return
15334 if wine_fn_has_flag mc $ac_flags
15335 then
15336 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
15337 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15338 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
15339 @cd $ac_dir && \$(MAKE) msg.pot
15340 $ac_dir/msg.pot: tools/wmc include"
15342 if wine_fn_has_flag po $ac_flags
15343 then
15344 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
15345 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15346 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
15347 @cd $ac_dir && \$(MAKE) rsrc.pot
15348 $ac_dir/rsrc.pot: tools/wrc include"
15352 wine_fn_config_makefile ()
15354 ac_dir=$1
15355 ac_enable=$2
15356 ac_flags=$3
15357 ac_rules=$4
15358 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15359 return 0
15362 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
15363 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15364 "all: $ac_dir
15365 .PHONY: $ac_dir
15366 $ac_dir: $ac_dir/Makefile dummy
15367 @cd $ac_dir && \$(MAKE)"
15369 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
15371 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15372 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15373 $ac_dir/__install__:: $ac_dir
15374 @cd $ac_dir && \$(MAKE) install
15375 $ac_dir/__uninstall__:: $ac_dir/Makefile
15376 @cd $ac_dir && \$(MAKE) uninstall
15377 install:: $ac_dir/__install__
15378 __uninstall__: $ac_dir/__uninstall__"
15380 if wine_fn_has_flag install-lib $ac_flags
15381 then
15382 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15383 ".PHONY: $ac_dir/__install-lib__
15384 $ac_dir/__install-lib__:: $ac_dir
15385 @cd $ac_dir && \$(MAKE) install-lib
15386 install-lib:: $ac_dir/__install-lib__"
15389 if wine_fn_has_flag install-dev $ac_flags
15390 then
15391 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15392 ".PHONY: $ac_dir/__install-dev
15393 $ac_dir/__install-dev__:: $ac_dir
15394 @cd $ac_dir && \$(MAKE) install-dev
15395 install-dev:: $ac_dir/__install-dev__"
15399 wine_fn_config_lib ()
15401 ac_name=$1
15402 ac_flags=$2
15403 ac_dir=dlls/$ac_name
15404 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
15406 if wine_fn_has_flag install-dev $ac_flags
15407 then :
15408 else
15409 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15410 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15411 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
15412 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15413 $ac_dir/__uninstall__::
15414 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15415 install install-dev:: $ac_dir/__install__
15416 __uninstall__: $ac_dir/__uninstall__"
15419 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
15420 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
15423 wine_fn_config_dll ()
15425 ac_name=$1
15426 ac_dir=dlls/$ac_name
15427 ac_enable=$2
15428 ac_flags=$3
15429 ac_implib=${4:-$ac_name}
15430 ac_file=$ac_dir/lib$ac_implib
15431 ac_dll=$ac_name
15432 ac_deps="tools/widl tools/winebuild tools/winegcc include"
15433 ac_implibflags=""
15435 case $ac_name in
15436 *16) ac_implibflags=" -m16" ;;
15437 *.*) ;;
15438 *) ac_dll=$ac_dll.dll ;;
15439 esac
15441 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
15443 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15444 test "$ac_enable" != enable_win16 || return 0
15445 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
15446 else
15447 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15448 "$ac_dir: __builddeps__
15449 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
15450 @cd $ac_dir && \$(MAKE) \$@"
15452 if wine_fn_has_flag install-lib $ac_flags
15453 then :
15454 else
15455 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15456 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
15457 install install-lib:: $ac_dir/__install-lib__
15458 __uninstall__: $ac_dir/__uninstall__"
15459 if test -n "$DLLEXT"
15460 then
15461 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15462 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15463 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
15464 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
15465 $ac_dir/__uninstall__::
15466 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
15467 else
15468 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15469 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15470 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
15471 $ac_dir/__uninstall__::
15472 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
15476 wine_fn_pot_rules $ac_dir $ac_flags
15479 if wine_fn_has_flag staticimplib $ac_flags
15480 then
15481 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15482 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
15483 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
15484 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
15485 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
15486 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
15487 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
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__"
15496 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
15497 then
15498 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15499 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
15500 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
15501 $ac_dir/__uninstall__::
15502 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
15505 if test "x$CROSSTEST_DISABLE" = x
15506 then
15507 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15508 "__builddeps__: $ac_file.cross.a
15509 $ac_file.cross.a: $ac_dir/Makefile dummy
15510 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
15513 elif wine_fn_has_flag implib $ac_flags
15514 then
15515 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15516 "__builddeps__: $ac_file.$IMPLIBEXT
15517 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15518 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15519 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15520 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15521 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15522 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15523 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15524 $ac_dir/__uninstall__::
15525 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15526 install install-dev:: $ac_dir/__install-dev__
15527 __uninstall__: $ac_dir/__uninstall__"
15528 if test "x$CROSSTEST_DISABLE" = x
15529 then
15530 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15531 "__builddeps__: $ac_file.cross.a
15532 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15533 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
15536 if test "$ac_name" != "$ac_implib"
15537 then
15538 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15539 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
15540 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
15541 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
15542 clean::
15543 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
15544 if test "x$CROSSTEST_DISABLE" = x
15545 then
15546 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15547 "__builddeps__: dlls/lib$ac_implib.cross.a
15548 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
15549 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
15555 wine_fn_config_program ()
15557 ac_name=$1
15558 ac_dir=programs/$ac_name
15559 ac_enable=$2
15560 ac_flags=$3
15561 ac_program=$ac_name
15563 case $ac_name in
15564 *.*) ;;
15565 *) ac_program=$ac_program.exe ;;
15566 esac
15568 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
15570 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15572 else
15573 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15574 "$ac_dir: __builddeps__"
15576 wine_fn_pot_rules $ac_dir $ac_flags
15578 wine_fn_has_flag install $ac_flags || return
15579 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15580 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15581 install install-lib:: $ac_dir/__install__
15582 __uninstall__: $ac_dir/__uninstall__"
15584 if test -n "$DLLEXT"
15585 then
15586 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15587 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15588 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
15589 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
15590 $ac_dir/__uninstall__::
15591 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
15593 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
15594 then
15595 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15596 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
15597 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
15598 $ac_dir/__uninstall__::
15599 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
15601 else
15602 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15603 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15604 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
15605 $ac_dir/__uninstall__::
15606 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
15609 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
15610 then
15611 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15612 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
15613 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
15614 $ac_dir/__uninstall__::
15615 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
15620 wine_fn_config_test ()
15622 ac_dir=$1
15623 ac_name=$2
15624 ac_flags=$3
15625 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
15626 wine_fn_all_dir_rules $ac_dir Maketest.rules
15628 if test "x$enable_tests" = xno; then :
15630 else
15631 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15632 "all: $ac_dir
15633 .PHONY: $ac_dir
15634 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
15635 @cd $ac_dir && \$(MAKE)
15636 programs/winetest: $ac_dir
15637 check test: $ac_dir/__test__
15638 .PHONY: $ac_dir/__test__
15639 $ac_dir/__test__: dummy
15640 @cd $ac_dir && \$(MAKE) test
15641 testclean::
15642 \$(RM) $ac_dir/*.ok"
15644 if test "x$CROSSTEST_DISABLE" = x
15645 then
15646 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15647 "crosstest: $ac_dir/__crosstest__
15648 .PHONY: $ac_dir/__crosstest__
15649 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
15650 @cd $ac_dir && \$(MAKE) crosstest"
15655 wine_fn_config_tool ()
15657 ac_dir=$1
15658 ac_flags=$2
15659 if test "x$enable_tools" = xno; then :
15660 return 0
15663 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
15665 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
15666 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
15667 case $ac_dir in
15668 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
15669 esac
15672 wine_fn_config_makerules ()
15674 ac_rules=$1
15675 ac_deps=$2
15676 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15677 "$ac_rules: $ac_rules.in $ac_deps config.status
15678 @./config.status $ac_rules
15679 distclean::
15680 \$(RM) $ac_rules"
15683 wine_fn_config_symlink ()
15685 ac_link=$1
15686 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15687 "$ac_link:
15688 @./config.status $ac_link
15689 distclean::
15690 \$(RM) $ac_link"
15693 if test "x$CROSSTEST_DISABLE" != x
15694 then
15695 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15696 "crosstest:
15697 @echo \"crosstest is not supported (mingw not installed?)\" && false"
15699 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
15700 wine_fn_config_symlink dlls/shell32/AUTHORS
15701 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
15702 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
15703 if test "x$enable_fonts" != xno; then
15704 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
15705 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
15707 if test "x$enable_fonts" != xno; then
15708 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
15709 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
15711 if test "x$enable_fonts" != xno; then
15712 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
15713 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
15715 if test "x$enable_fonts" != xno; then
15716 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
15717 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
15719 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
15720 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
15721 if test "x$enable_tools" != xno; then
15722 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
15723 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
15725 ac_config_links="$ac_config_links wine:tools/winewrapper"
15726 wine_fn_config_symlink wine
15727 if test "x$enable_win64" != xno; then
15728 ac_config_links="$ac_config_links wine64:tools/winewrapper"
15729 wine_fn_config_symlink wine64
15732 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
15734 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
15736 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
15738 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
15740 ac_config_commands="$ac_config_commands dlls/user32/resources"
15742 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
15744 ac_config_commands="$ac_config_commands include/wine"
15747 wine_fn_config_makerules Make.rules
15748 MAKE_RULES=Make.rules
15749 ac_config_files="$ac_config_files Make.rules"
15751 wine_fn_config_makerules Maketest.rules Make.rules
15752 MAKE_TEST_RULES=Maketest.rules
15753 ac_config_files="$ac_config_files Maketest.rules"
15755 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15756 MAKE_DLL_RULES=dlls/Makedll.rules
15757 ac_config_files="$ac_config_files dlls/Makedll.rules"
15759 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15760 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15761 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15763 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15764 MAKE_PROG_RULES=programs/Makeprog.rules
15765 ac_config_files="$ac_config_files programs/Makeprog.rules"
15768 wine_fn_config_dll acledit enable_acledit
15769 wine_fn_config_dll aclui enable_aclui implib
15770 wine_fn_config_dll activeds enable_activeds implib
15771 wine_fn_config_dll actxprxy enable_actxprxy
15772 wine_fn_config_lib adsiid
15773 wine_fn_config_dll advapi32 enable_advapi32 implib
15774 wine_fn_config_test dlls/advapi32/tests advapi32_test
15775 wine_fn_config_dll advpack enable_advpack implib
15776 wine_fn_config_test dlls/advpack/tests advpack_test
15777 wine_fn_config_dll amstream enable_amstream
15778 wine_fn_config_test dlls/amstream/tests amstream_test
15779 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
15780 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
15781 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
15782 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
15783 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
15784 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
15785 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
15786 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
15787 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
15788 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
15789 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
15790 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
15791 wine_fn_config_dll apphelp enable_apphelp
15792 wine_fn_config_test dlls/apphelp/tests apphelp_test
15793 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15794 wine_fn_config_dll atl enable_atl implib
15795 wine_fn_config_test dlls/atl/tests atl_test
15796 wine_fn_config_dll atl100 enable_atl100 implib
15797 wine_fn_config_test dlls/atl100/tests atl100_test
15798 wine_fn_config_dll atl80 enable_atl80 implib
15799 wine_fn_config_test dlls/atl80/tests atl80_test
15800 wine_fn_config_dll authz enable_authz
15801 wine_fn_config_dll avicap32 enable_avicap32 implib
15802 wine_fn_config_dll avifil32 enable_avifil32 implib,po
15803 wine_fn_config_test dlls/avifil32/tests avifil32_test
15804 wine_fn_config_dll avifile.dll16 enable_win16
15805 wine_fn_config_dll avrt enable_avrt implib
15806 wine_fn_config_dll bcrypt enable_bcrypt
15807 wine_fn_config_dll browseui enable_browseui po
15808 wine_fn_config_test dlls/browseui/tests browseui_test
15809 wine_fn_config_dll cabinet enable_cabinet implib
15810 wine_fn_config_test dlls/cabinet/tests cabinet_test
15811 wine_fn_config_dll capi2032 enable_capi2032 implib
15812 wine_fn_config_dll cards enable_cards implib
15813 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15814 wine_fn_config_dll clusapi enable_clusapi implib
15815 wine_fn_config_dll comcat enable_comcat
15816 wine_fn_config_test dlls/comcat/tests comcat_test
15817 wine_fn_config_dll comctl32 enable_comctl32 implib,po
15818 wine_fn_config_test dlls/comctl32/tests comctl32_test
15819 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
15820 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15821 wine_fn_config_dll comm.drv16 enable_win16
15822 wine_fn_config_dll commdlg.dll16 enable_win16
15823 wine_fn_config_dll compobj.dll16 enable_win16
15824 wine_fn_config_dll compstui enable_compstui implib
15825 wine_fn_config_dll credui enable_credui implib,po
15826 wine_fn_config_test dlls/credui/tests credui_test
15827 wine_fn_config_dll crtdll enable_crtdll implib
15828 wine_fn_config_dll crypt32 enable_crypt32 implib,po
15829 wine_fn_config_test dlls/crypt32/tests crypt32_test
15830 wine_fn_config_dll cryptdlg enable_cryptdlg po
15831 wine_fn_config_dll cryptdll enable_cryptdll implib
15832 wine_fn_config_dll cryptnet enable_cryptnet implib
15833 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15834 wine_fn_config_dll cryptui enable_cryptui implib,po
15835 wine_fn_config_test dlls/cryptui/tests cryptui_test
15836 wine_fn_config_dll ctapi32 enable_ctapi32
15837 wine_fn_config_dll ctl3d.dll16 enable_win16
15838 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15839 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15840 wine_fn_config_dll d3d10 enable_d3d10 implib
15841 wine_fn_config_test dlls/d3d10/tests d3d10_test
15842 wine_fn_config_dll d3d10core enable_d3d10core implib
15843 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15844 wine_fn_config_dll d3d11 enable_d3d11
15845 wine_fn_config_dll d3d8 enable_d3d8 implib
15846 wine_fn_config_test dlls/d3d8/tests d3d8_test
15847 wine_fn_config_dll d3d9 enable_d3d9 implib
15848 wine_fn_config_test dlls/d3d9/tests d3d9_test
15849 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15850 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15851 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15852 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15853 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15854 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15855 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15856 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15857 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15858 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15859 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15860 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15861 wine_fn_config_dll d3dim enable_d3dim implib
15862 wine_fn_config_dll d3drm enable_d3drm implib
15863 wine_fn_config_test dlls/d3drm/tests d3drm_test
15864 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15865 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15866 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15867 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15868 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15869 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15870 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15871 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15872 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15873 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15874 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15875 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15876 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15877 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15878 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15879 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15880 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15881 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15882 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15883 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15884 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15885 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15886 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15887 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15888 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15889 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15890 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15891 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15892 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15893 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15894 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15895 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15896 wine_fn_config_dll d3dxof enable_d3dxof implib
15897 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15898 wine_fn_config_dll dbgeng enable_dbgeng implib
15899 wine_fn_config_dll dbghelp enable_dbghelp implib
15900 wine_fn_config_dll dciman32 enable_dciman32 implib
15901 wine_fn_config_dll ddeml.dll16 enable_win16
15902 wine_fn_config_dll ddraw enable_ddraw implib
15903 wine_fn_config_test dlls/ddraw/tests ddraw_test
15904 wine_fn_config_dll ddrawex enable_ddrawex
15905 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15906 wine_fn_config_dll devenum enable_devenum po
15907 wine_fn_config_test dlls/devenum/tests devenum_test
15908 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15909 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15910 wine_fn_config_test dlls/dinput/tests dinput_test
15911 wine_fn_config_dll dinput8 enable_dinput8 implib
15912 wine_fn_config_test dlls/dinput8/tests dinput8_test
15913 wine_fn_config_dll dispdib.dll16 enable_win16
15914 wine_fn_config_dll dispex enable_dispex
15915 wine_fn_config_test dlls/dispex/tests dispex_test
15916 wine_fn_config_dll display.drv16 enable_win16
15917 wine_fn_config_dll dmband enable_dmband
15918 wine_fn_config_test dlls/dmband/tests dmband_test
15919 wine_fn_config_dll dmcompos enable_dmcompos
15920 wine_fn_config_dll dmime enable_dmime
15921 wine_fn_config_test dlls/dmime/tests dmime_test
15922 wine_fn_config_dll dmloader enable_dmloader
15923 wine_fn_config_test dlls/dmloader/tests dmloader_test
15924 wine_fn_config_dll dmscript enable_dmscript
15925 wine_fn_config_dll dmstyle enable_dmstyle
15926 wine_fn_config_dll dmsynth enable_dmsynth
15927 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
15928 wine_fn_config_dll dmusic enable_dmusic
15929 wine_fn_config_test dlls/dmusic/tests dmusic_test
15930 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15931 wine_fn_config_dll dnsapi enable_dnsapi implib
15932 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15933 wine_fn_config_dll dplay enable_dplay implib
15934 wine_fn_config_dll dplayx enable_dplayx implib
15935 wine_fn_config_test dlls/dplayx/tests dplayx_test
15936 wine_fn_config_dll dpnaddr enable_dpnaddr
15937 wine_fn_config_dll dpnet enable_dpnet implib
15938 wine_fn_config_test dlls/dpnet/tests dpnet_test
15939 wine_fn_config_dll dpnhpast enable_dpnhpast
15940 wine_fn_config_dll dpnlobby enable_dpnlobby
15941 wine_fn_config_dll dpwsockx enable_dpwsockx
15942 wine_fn_config_dll drmclien enable_drmclien
15943 wine_fn_config_dll dsound enable_dsound implib
15944 wine_fn_config_test dlls/dsound/tests dsound_test
15945 wine_fn_config_dll dssenh enable_dssenh
15946 wine_fn_config_test dlls/dssenh/tests dssenh_test
15947 wine_fn_config_dll dswave enable_dswave
15948 wine_fn_config_dll dwmapi enable_dwmapi implib
15949 wine_fn_config_dll dwrite enable_dwrite implib
15950 wine_fn_config_test dlls/dwrite/tests dwrite_test
15951 wine_fn_config_dll dxdiagn enable_dxdiagn po
15952 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15953 wine_fn_config_lib dxerr8
15954 wine_fn_config_lib dxerr9
15955 wine_fn_config_dll dxgi enable_dxgi implib
15956 wine_fn_config_test dlls/dxgi/tests dxgi_test
15957 wine_fn_config_lib dxguid
15958 wine_fn_config_dll explorerframe enable_explorerframe
15959 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15960 wine_fn_config_dll faultrep enable_faultrep implib
15961 wine_fn_config_test dlls/faultrep/tests faultrep_test
15962 wine_fn_config_dll fltlib enable_fltlib
15963 wine_fn_config_dll fusion enable_fusion
15964 wine_fn_config_test dlls/fusion/tests fusion_test
15965 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15966 wine_fn_config_dll gameux enable_gameux
15967 wine_fn_config_test dlls/gameux/tests gameux_test
15968 wine_fn_config_dll gdi.exe16 enable_win16
15969 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15970 wine_fn_config_test dlls/gdi32/tests gdi32_test
15971 wine_fn_config_dll gdiplus enable_gdiplus implib
15972 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15973 wine_fn_config_dll glu32 enable_glu32 implib
15974 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15975 wine_fn_config_dll gpkcsp enable_gpkcsp
15976 wine_fn_config_dll hal enable_hal
15977 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx implib,po htmlhelp
15978 wine_fn_config_dll hid enable_hid implib
15979 wine_fn_config_dll hlink enable_hlink implib
15980 wine_fn_config_test dlls/hlink/tests hlink_test
15981 wine_fn_config_dll hnetcfg enable_hnetcfg
15982 wine_fn_config_dll httpapi enable_httpapi
15983 wine_fn_config_dll iccvid enable_iccvid po
15984 wine_fn_config_dll icmp enable_icmp
15985 wine_fn_config_dll ieframe enable_ieframe implib,po
15986 wine_fn_config_test dlls/ieframe/tests ieframe_test
15987 wine_fn_config_dll ifsmgr.vxd enable_win16
15988 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15989 wine_fn_config_dll imagehlp enable_imagehlp implib
15990 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15991 wine_fn_config_dll imm.dll16 enable_win16
15992 wine_fn_config_dll imm32 enable_imm32 implib
15993 wine_fn_config_test dlls/imm32/tests imm32_test
15994 wine_fn_config_dll inetcomm enable_inetcomm implib
15995 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15996 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15997 wine_fn_config_dll inetmib1 enable_inetmib1
15998 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15999 wine_fn_config_dll infosoft enable_infosoft
16000 wine_fn_config_test dlls/infosoft/tests infosoft_test
16001 wine_fn_config_dll initpki enable_initpki
16002 wine_fn_config_dll inkobj enable_inkobj
16003 wine_fn_config_dll inseng enable_inseng
16004 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16005 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16006 wine_fn_config_dll itircl enable_itircl
16007 wine_fn_config_dll itss enable_itss
16008 wine_fn_config_test dlls/itss/tests itss_test
16009 wine_fn_config_dll joy.cpl enable_joy_cpl po
16010 wine_fn_config_dll jscript enable_jscript po
16011 wine_fn_config_test dlls/jscript/tests jscript_test
16012 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
16013 wine_fn_config_test dlls/kernel32/tests kernel32_test
16014 wine_fn_config_dll keyboard.drv16 enable_win16
16015 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16016 wine_fn_config_dll ktmw32 enable_ktmw32
16017 wine_fn_config_dll loadperf enable_loadperf implib
16018 wine_fn_config_dll localspl enable_localspl po
16019 wine_fn_config_test dlls/localspl/tests localspl_test
16020 wine_fn_config_dll localui enable_localui po
16021 wine_fn_config_test dlls/localui/tests localui_test
16022 wine_fn_config_dll lz32 enable_lz32 implib
16023 wine_fn_config_test dlls/lz32/tests lz32_test
16024 wine_fn_config_dll lzexpand.dll16 enable_win16
16025 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16026 wine_fn_config_test dlls/mapi32/tests mapi32_test
16027 wine_fn_config_dll mapistub enable_mapistub
16028 wine_fn_config_dll mciavi32 enable_mciavi32
16029 wine_fn_config_dll mcicda enable_mcicda
16030 wine_fn_config_dll mciqtz32 enable_mciqtz32
16031 wine_fn_config_dll mciseq enable_mciseq
16032 wine_fn_config_dll mciwave enable_mciwave
16033 wine_fn_config_dll mgmtapi enable_mgmtapi
16034 wine_fn_config_dll midimap enable_midimap
16035 wine_fn_config_dll mlang enable_mlang implib
16036 wine_fn_config_test dlls/mlang/tests mlang_test
16037 wine_fn_config_dll mmcndmgr enable_mmcndmgr
16038 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16039 wine_fn_config_dll mmdevapi enable_mmdevapi
16040 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16041 wine_fn_config_dll mmdevldr.vxd enable_win16
16042 wine_fn_config_dll mmsystem.dll16 enable_win16
16043 wine_fn_config_dll monodebg.vxd enable_win16
16044 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16045 wine_fn_config_dll mouse.drv16 enable_win16
16046 wine_fn_config_dll mpr enable_mpr implib,po
16047 wine_fn_config_test dlls/mpr/tests mpr_test
16048 wine_fn_config_dll mprapi enable_mprapi implib
16049 wine_fn_config_dll msacm.dll16 enable_win16
16050 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16051 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16052 wine_fn_config_test dlls/msacm32/tests msacm32_test
16053 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16054 wine_fn_config_dll mscat32 enable_mscat32
16055 wine_fn_config_dll mscms enable_mscms implib
16056 wine_fn_config_test dlls/mscms/tests mscms_test
16057 wine_fn_config_dll mscoree enable_mscoree
16058 wine_fn_config_test dlls/mscoree/tests mscoree_test
16059 wine_fn_config_dll msctf enable_msctf
16060 wine_fn_config_test dlls/msctf/tests msctf_test
16061 wine_fn_config_dll msdaps enable_msdaps
16062 wine_fn_config_dll msdmo enable_msdmo implib
16063 wine_fn_config_dll msftedit enable_msftedit
16064 wine_fn_config_dll msg711.acm enable_msg711_acm
16065 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16066 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
16067 wine_fn_config_dll mshtml enable_mshtml implib,po
16068 wine_fn_config_test dlls/mshtml/tests mshtml_test
16069 wine_fn_config_dll msi enable_msi implib,po
16070 wine_fn_config_test dlls/msi/tests msi_test
16071 wine_fn_config_dll msident enable_msident
16072 wine_fn_config_dll msimg32 enable_msimg32 implib
16073 wine_fn_config_dll msimsg enable_msimsg
16074 wine_fn_config_dll msimtf enable_msimtf
16075 wine_fn_config_dll msisip enable_msisip
16076 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16077 wine_fn_config_dll msls31 enable_msls31
16078 wine_fn_config_dll msnet32 enable_msnet32
16079 wine_fn_config_dll mspatcha enable_mspatcha
16080 wine_fn_config_dll msrle32 enable_msrle32 po
16081 wine_fn_config_dll mssign32 enable_mssign32
16082 wine_fn_config_dll mssip32 enable_mssip32
16083 wine_fn_config_dll mstask enable_mstask
16084 wine_fn_config_test dlls/mstask/tests mstask_test
16085 wine_fn_config_dll msvcirt enable_msvcirt
16086 wine_fn_config_dll msvcm80 enable_msvcm80
16087 wine_fn_config_dll msvcm90 enable_msvcm90
16088 wine_fn_config_dll msvcp100 enable_msvcp100
16089 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16090 wine_fn_config_dll msvcp110 enable_msvcp110
16091 wine_fn_config_dll msvcp60 enable_msvcp60
16092 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16093 wine_fn_config_dll msvcp70 enable_msvcp70
16094 wine_fn_config_dll msvcp71 enable_msvcp71
16095 wine_fn_config_dll msvcp80 enable_msvcp80
16096 wine_fn_config_dll msvcp90 enable_msvcp90
16097 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16098 wine_fn_config_dll msvcr100 enable_msvcr100
16099 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16100 wine_fn_config_dll msvcr110 enable_msvcr110
16101 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16102 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16103 wine_fn_config_dll msvcr80 enable_msvcr80
16104 wine_fn_config_dll msvcr90 enable_msvcr90
16105 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16106 wine_fn_config_dll msvcrt enable_msvcrt implib
16107 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16108 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16109 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16110 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16111 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16112 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16113 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16114 wine_fn_config_dll msvidc32 enable_msvidc32 po
16115 wine_fn_config_dll msvideo.dll16 enable_win16
16116 wine_fn_config_dll mswsock enable_mswsock implib
16117 wine_fn_config_dll msxml enable_msxml
16118 wine_fn_config_dll msxml2 enable_msxml2
16119 wine_fn_config_dll msxml3 enable_msxml3
16120 wine_fn_config_test dlls/msxml3/tests msxml3_test
16121 wine_fn_config_dll msxml4 enable_msxml4
16122 wine_fn_config_dll msxml6 enable_msxml6
16123 wine_fn_config_dll nddeapi enable_nddeapi implib
16124 wine_fn_config_dll netapi32 enable_netapi32 implib
16125 wine_fn_config_test dlls/netapi32/tests netapi32_test
16126 wine_fn_config_dll newdev enable_newdev implib
16127 wine_fn_config_dll normaliz enable_normaliz implib
16128 wine_fn_config_dll npmshtml enable_npmshtml
16129 wine_fn_config_dll ntdll enable_ntdll implib
16130 wine_fn_config_test dlls/ntdll/tests ntdll_test
16131 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16132 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16133 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16134 wine_fn_config_dll ntprint enable_ntprint
16135 wine_fn_config_test dlls/ntprint/tests ntprint_test
16136 wine_fn_config_dll objsel enable_objsel
16137 wine_fn_config_dll odbc32 enable_odbc32 implib
16138 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16139 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16140 wine_fn_config_dll odbccu32 enable_odbccu32
16141 wine_fn_config_dll ole2.dll16 enable_win16
16142 wine_fn_config_dll ole2conv.dll16 enable_win16
16143 wine_fn_config_dll ole2disp.dll16 enable_win16
16144 wine_fn_config_dll ole2nls.dll16 enable_win16
16145 wine_fn_config_dll ole2prox.dll16 enable_win16
16146 wine_fn_config_dll ole2thk.dll16 enable_win16
16147 wine_fn_config_dll ole32 enable_ole32 implib
16148 wine_fn_config_test dlls/ole32/tests ole32_test
16149 wine_fn_config_dll oleacc enable_oleacc implib,po
16150 wine_fn_config_test dlls/oleacc/tests oleacc_test
16151 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
16152 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
16153 wine_fn_config_dll olecli.dll16 enable_win16
16154 wine_fn_config_dll olecli32 enable_olecli32 implib
16155 wine_fn_config_dll oledb32 enable_oledb32
16156 wine_fn_config_test dlls/oledb32/tests oledb32_test
16157 wine_fn_config_dll oledlg enable_oledlg implib,po
16158 wine_fn_config_dll olepro32 enable_olepro32 implib
16159 wine_fn_config_dll olesvr.dll16 enable_win16
16160 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16161 wine_fn_config_dll olethk32 enable_olethk32
16162 wine_fn_config_dll openal32 enable_openal32
16163 wine_fn_config_dll opencl enable_opencl
16164 wine_fn_config_dll opengl32 enable_opengl32 implib
16165 wine_fn_config_test dlls/opengl32/tests opengl32_test
16166 wine_fn_config_dll pdh enable_pdh implib
16167 wine_fn_config_test dlls/pdh/tests pdh_test
16168 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16169 wine_fn_config_dll pidgen enable_pidgen
16170 wine_fn_config_dll powrprof enable_powrprof implib
16171 wine_fn_config_dll printui enable_printui
16172 wine_fn_config_dll propsys enable_propsys implib
16173 wine_fn_config_test dlls/propsys/tests propsys_test
16174 wine_fn_config_dll psapi enable_psapi implib
16175 wine_fn_config_test dlls/psapi/tests psapi_test
16176 wine_fn_config_dll pstorec enable_pstorec
16177 wine_fn_config_dll qcap enable_qcap
16178 wine_fn_config_dll qedit enable_qedit
16179 wine_fn_config_test dlls/qedit/tests qedit_test
16180 wine_fn_config_dll qmgr enable_qmgr
16181 wine_fn_config_test dlls/qmgr/tests qmgr_test
16182 wine_fn_config_dll qmgrprxy enable_qmgrprxy
16183 wine_fn_config_dll quartz enable_quartz implib
16184 wine_fn_config_test dlls/quartz/tests quartz_test
16185 wine_fn_config_dll query enable_query
16186 wine_fn_config_dll rasapi16.dll16 enable_win16
16187 wine_fn_config_dll rasapi32 enable_rasapi32 implib
16188 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
16189 wine_fn_config_dll rasdlg enable_rasdlg implib
16190 wine_fn_config_dll regapi enable_regapi
16191 wine_fn_config_dll resutils enable_resutils implib
16192 wine_fn_config_dll riched20 enable_riched20 implib
16193 wine_fn_config_test dlls/riched20/tests riched20_test
16194 wine_fn_config_dll riched32 enable_riched32
16195 wine_fn_config_test dlls/riched32/tests riched32_test
16196 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
16197 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
16198 wine_fn_config_dll rsabase enable_rsabase
16199 wine_fn_config_dll rsaenh enable_rsaenh implib
16200 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
16201 wine_fn_config_dll rstrtmgr enable_rstrtmgr
16202 wine_fn_config_dll rtutils enable_rtutils implib
16203 wine_fn_config_dll samlib enable_samlib
16204 wine_fn_config_dll sane.ds enable_sane_ds po
16205 wine_fn_config_dll scarddlg enable_scarddlg
16206 wine_fn_config_dll sccbase enable_sccbase
16207 wine_fn_config_dll schannel enable_schannel
16208 wine_fn_config_test dlls/schannel/tests schannel_test
16209 wine_fn_config_dll scrrun enable_scrrun
16210 wine_fn_config_test dlls/scrrun/tests scrrun_test
16211 wine_fn_config_dll scsiport.sys enable_scsiport_sys
16212 wine_fn_config_dll secur32 enable_secur32 implib
16213 wine_fn_config_test dlls/secur32/tests secur32_test
16214 wine_fn_config_dll security enable_security
16215 wine_fn_config_dll sensapi enable_sensapi implib
16216 wine_fn_config_dll serialui enable_serialui implib,po
16217 wine_fn_config_test dlls/serialui/tests serialui_test
16218 wine_fn_config_dll setupapi enable_setupapi implib,po
16219 wine_fn_config_test dlls/setupapi/tests setupapi_test
16220 wine_fn_config_dll setupx.dll16 enable_win16
16221 wine_fn_config_dll sfc enable_sfc implib
16222 wine_fn_config_dll sfc_os enable_sfc_os implib
16223 wine_fn_config_dll shdoclc enable_shdoclc po
16224 wine_fn_config_dll shdocvw enable_shdocvw implib
16225 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
16226 wine_fn_config_dll shell.dll16 enable_win16
16227 wine_fn_config_dll shell32 enable_shell32 implib,po
16228 wine_fn_config_test dlls/shell32/tests shell32_test
16229 wine_fn_config_dll shfolder enable_shfolder implib
16230 wine_fn_config_dll shlwapi enable_shlwapi implib,po
16231 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
16232 wine_fn_config_dll slbcsp enable_slbcsp
16233 wine_fn_config_dll slc enable_slc implib
16234 wine_fn_config_dll snmpapi enable_snmpapi implib
16235 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
16236 wine_fn_config_dll softpub enable_softpub
16237 wine_fn_config_dll sound.drv16 enable_win16
16238 wine_fn_config_dll spoolss enable_spoolss implib
16239 wine_fn_config_test dlls/spoolss/tests spoolss_test
16240 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
16241 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
16242 wine_fn_config_dll sti enable_sti implib
16243 wine_fn_config_test dlls/sti/tests sti_test
16244 wine_fn_config_dll storage.dll16 enable_win16
16245 wine_fn_config_dll stress.dll16 enable_win16
16246 wine_fn_config_lib strmbase
16247 wine_fn_config_lib strmiids
16248 wine_fn_config_dll svrapi enable_svrapi
16249 wine_fn_config_dll sxs enable_sxs implib
16250 wine_fn_config_test dlls/sxs/tests sxs_test
16251 wine_fn_config_dll system.drv16 enable_win16
16252 wine_fn_config_dll t2embed enable_t2embed
16253 wine_fn_config_dll tapi32 enable_tapi32 implib
16254 wine_fn_config_dll toolhelp.dll16 enable_win16
16255 wine_fn_config_dll traffic enable_traffic
16256 wine_fn_config_dll twain.dll16 enable_win16
16257 wine_fn_config_dll twain_32 enable_twain_32
16258 wine_fn_config_test dlls/twain_32/tests twain_32_test
16259 wine_fn_config_dll typelib.dll16 enable_win16
16260 wine_fn_config_dll unicows enable_unicows implib
16261 wine_fn_config_dll updspapi enable_updspapi
16262 wine_fn_config_dll url enable_url implib
16263 wine_fn_config_dll urlmon enable_urlmon implib,po
16264 wine_fn_config_test dlls/urlmon/tests urlmon_test
16265 wine_fn_config_dll usbd.sys enable_usbd_sys implib
16266 wine_fn_config_dll user.exe16 enable_win16
16267 wine_fn_config_dll user32 enable_user32 implib,po
16268 wine_fn_config_test dlls/user32/tests user32_test
16269 wine_fn_config_dll userenv enable_userenv implib
16270 wine_fn_config_test dlls/userenv/tests userenv_test
16271 wine_fn_config_dll usp10 enable_usp10 implib
16272 wine_fn_config_test dlls/usp10/tests usp10_test
16273 wine_fn_config_lib uuid
16274 wine_fn_config_dll uxtheme enable_uxtheme implib
16275 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
16276 wine_fn_config_dll vbscript enable_vbscript
16277 wine_fn_config_test dlls/vbscript/tests vbscript_test
16278 wine_fn_config_dll vcomp enable_vcomp
16279 wine_fn_config_dll vcomp100 enable_vcomp100
16280 wine_fn_config_dll vcomp90 enable_vcomp90
16281 wine_fn_config_dll vdhcp.vxd enable_win16
16282 wine_fn_config_dll vdmdbg enable_vdmdbg implib
16283 wine_fn_config_dll ver.dll16 enable_win16
16284 wine_fn_config_dll version enable_version implib
16285 wine_fn_config_test dlls/version/tests version_test
16286 wine_fn_config_dll vmm.vxd enable_win16
16287 wine_fn_config_dll vnbt.vxd enable_win16
16288 wine_fn_config_dll vnetbios.vxd enable_win16
16289 wine_fn_config_dll vtdapi.vxd enable_win16
16290 wine_fn_config_dll vwin32.vxd enable_win16
16291 wine_fn_config_dll w32skrnl enable_win16
16292 wine_fn_config_dll w32sys.dll16 enable_win16
16293 wine_fn_config_dll wbemprox enable_wbemprox
16294 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
16295 wine_fn_config_dll webservices enable_webservices implib
16296 wine_fn_config_dll wer enable_wer implib
16297 wine_fn_config_test dlls/wer/tests wer_test
16298 wine_fn_config_dll wevtapi enable_wevtapi
16299 wine_fn_config_dll wiaservc enable_wiaservc
16300 wine_fn_config_dll win32s16.dll16 enable_win16
16301 wine_fn_config_dll win87em.dll16 enable_win16
16302 wine_fn_config_dll winaspi.dll16 enable_win16
16303 wine_fn_config_dll windebug.dll16 enable_win16
16304 wine_fn_config_dll windowscodecs enable_windowscodecs implib
16305 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
16306 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
16307 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
16308 wine_fn_config_dll winealsa.drv enable_winealsa_drv
16309 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
16310 wine_fn_config_lib winecrt0
16311 wine_fn_config_dll wined3d enable_wined3d implib
16312 wine_fn_config_dll winegstreamer enable_winegstreamer
16313 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
16314 wine_fn_config_dll winemac.drv enable_winemac_drv
16315 wine_fn_config_dll winemapi enable_winemapi
16316 wine_fn_config_dll winemp3.acm enable_winemp3_acm
16317 wine_fn_config_dll wineoss.drv enable_wineoss_drv
16318 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
16319 wine_fn_config_dll wineps16.drv16 enable_win16
16320 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
16321 wine_fn_config_dll winex11.drv enable_winex11_drv
16322 wine_fn_config_dll wing.dll16 enable_win16
16323 wine_fn_config_dll wing32 enable_wing32
16324 wine_fn_config_dll winhttp enable_winhttp implib
16325 wine_fn_config_test dlls/winhttp/tests winhttp_test
16326 wine_fn_config_dll wininet enable_wininet implib,po
16327 wine_fn_config_test dlls/wininet/tests wininet_test
16328 wine_fn_config_dll winmm enable_winmm implib,po
16329 wine_fn_config_test dlls/winmm/tests winmm_test
16330 wine_fn_config_dll winnls.dll16 enable_win16
16331 wine_fn_config_dll winnls32 enable_winnls32 implib
16332 wine_fn_config_dll winscard enable_winscard implib
16333 wine_fn_config_dll winsock.dll16 enable_win16
16334 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
16335 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
16336 wine_fn_config_dll winsta enable_winsta
16337 wine_fn_config_dll wintab.dll16 enable_win16
16338 wine_fn_config_dll wintab32 enable_wintab32 implib
16339 wine_fn_config_test dlls/wintab32/tests wintab32_test
16340 wine_fn_config_dll wintrust enable_wintrust implib
16341 wine_fn_config_test dlls/wintrust/tests wintrust_test
16342 wine_fn_config_dll wlanapi enable_wlanapi
16343 wine_fn_config_dll wldap32 enable_wldap32 implib,po
16344 wine_fn_config_test dlls/wldap32/tests wldap32_test
16345 wine_fn_config_dll wmi enable_wmi
16346 wine_fn_config_dll wmiutils enable_wmiutils
16347 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
16348 wine_fn_config_dll wmvcore enable_wmvcore
16349 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
16350 wine_fn_config_dll wow32 enable_win16 implib
16351 wine_fn_config_dll ws2_32 enable_ws2_32 implib
16352 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
16353 wine_fn_config_dll wshom.ocx enable_wshom_ocx
16354 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
16355 wine_fn_config_dll wsnmp32 enable_wsnmp32
16356 wine_fn_config_dll wsock32 enable_wsock32 implib
16357 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
16358 wine_fn_config_dll wuapi enable_wuapi
16359 wine_fn_config_dll wuaueng enable_wuaueng
16360 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
16361 wine_fn_config_dll xinput1_1 enable_xinput1_1
16362 wine_fn_config_dll xinput1_2 enable_xinput1_2
16363 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
16364 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
16365 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
16366 wine_fn_config_dll xmllite enable_xmllite
16367 wine_fn_config_test dlls/xmllite/tests xmllite_test
16368 wine_fn_config_dll xolehlp enable_xolehlp
16369 wine_fn_config_dll xpsprint enable_xpsprint
16370 wine_fn_config_dll xpssvcs enable_xpssvcs
16371 wine_fn_config_makefile documentation enable_documentation
16372 wine_fn_config_makefile fonts enable_fonts install-lib
16373 wine_fn_config_makefile include enable_include install-dev
16374 wine_fn_config_makefile libs/port enable_libs_port
16375 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
16376 wine_fn_config_makefile libs/wpp enable_libs_wpp
16377 wine_fn_config_makefile loader enable_loader install-lib,manpage
16378 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
16379 wine_fn_config_program attrib enable_attrib install,po
16380 wine_fn_config_program cabarc enable_cabarc install
16381 wine_fn_config_program cacls enable_cacls install
16382 wine_fn_config_program clock enable_clock install,po
16383 wine_fn_config_program cmd enable_cmd install,po
16384 wine_fn_config_test programs/cmd/tests cmd.exe_test
16385 wine_fn_config_program conhost enable_conhost install
16386 wine_fn_config_program control enable_control install
16387 wine_fn_config_program cscript enable_cscript install
16388 wine_fn_config_program dxdiag enable_dxdiag install,po
16389 wine_fn_config_program eject enable_eject install
16390 wine_fn_config_program expand enable_expand install
16391 wine_fn_config_program explorer enable_explorer install,po
16392 wine_fn_config_program extrac32 enable_extrac32 install
16393 wine_fn_config_program findstr enable_findstr install
16394 wine_fn_config_program hh enable_hh install
16395 wine_fn_config_program hostname enable_hostname install,po
16396 wine_fn_config_program icinfo enable_icinfo install
16397 wine_fn_config_program iexplore enable_iexplore install
16398 wine_fn_config_program ipconfig enable_ipconfig install,po
16399 wine_fn_config_program lodctr enable_lodctr install
16400 wine_fn_config_program mofcomp enable_mofcomp install
16401 wine_fn_config_program mshta enable_mshta install
16402 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
16403 wine_fn_config_program net enable_net install,po
16404 wine_fn_config_program netsh enable_netsh install
16405 wine_fn_config_program netstat enable_netstat install,po
16406 wine_fn_config_program ngen enable_ngen install
16407 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
16408 wine_fn_config_program oleview enable_oleview install,po
16409 wine_fn_config_program ping enable_ping install
16410 wine_fn_config_program plugplay enable_plugplay install
16411 wine_fn_config_program presentationfontcache enable_presentationfontcache install
16412 wine_fn_config_program progman enable_progman install,po
16413 wine_fn_config_program reg enable_reg install,po
16414 wine_fn_config_program regasm enable_regasm install
16415 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
16416 wine_fn_config_test programs/regedit/tests regedit.exe_test
16417 wine_fn_config_program regsvcs enable_regsvcs install
16418 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
16419 wine_fn_config_program rpcss enable_rpcss install
16420 wine_fn_config_program rundll.exe16 enable_win16 install
16421 wine_fn_config_program rundll32 enable_rundll32 install
16422 wine_fn_config_program sc enable_sc install
16423 wine_fn_config_program schtasks enable_schtasks install
16424 wine_fn_config_program secedit enable_secedit install
16425 wine_fn_config_program servicemodelreg enable_servicemodelreg install
16426 wine_fn_config_program services enable_services install
16427 wine_fn_config_test programs/services/tests services.exe_test
16428 wine_fn_config_program spoolsv enable_spoolsv install
16429 wine_fn_config_program start enable_start install,po
16430 wine_fn_config_program svchost enable_svchost install
16431 wine_fn_config_program taskkill enable_taskkill install,po
16432 wine_fn_config_program taskmgr enable_taskmgr install,po
16433 wine_fn_config_program termsv enable_termsv install
16434 wine_fn_config_program uninstaller enable_uninstaller install,po
16435 wine_fn_config_program unlodctr enable_unlodctr install
16436 wine_fn_config_program view enable_view install,po
16437 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
16438 wine_fn_config_program winebrowser enable_winebrowser install
16439 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
16440 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
16441 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
16442 wine_fn_config_program winedevice enable_winedevice install
16443 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
16444 wine_fn_config_program winemenubuilder enable_winemenubuilder install
16445 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
16446 wine_fn_config_program winemsibuilder enable_winemsibuilder install
16447 wine_fn_config_program winepath enable_winepath install,installbin,manpage
16448 wine_fn_config_program winetest enable_winetest
16449 wine_fn_config_program winevdm enable_win16 install
16450 wine_fn_config_program winhelp.exe16 enable_win16 install
16451 wine_fn_config_program winhlp32 enable_winhlp32 install,po
16452 wine_fn_config_program winoldap.mod16 enable_win16 install
16453 wine_fn_config_program winver enable_winver install
16454 wine_fn_config_program wmic enable_wmic install,po
16455 wine_fn_config_program wordpad enable_wordpad install,po
16456 wine_fn_config_program write enable_write install,po
16457 wine_fn_config_program wscript enable_wscript install
16458 wine_fn_config_test programs/wscript/tests wscript.exe_test
16459 wine_fn_config_program wusa enable_wusa install
16460 wine_fn_config_program xcopy enable_xcopy install,po
16461 wine_fn_config_makefile server enable_server install-lib,manpage
16462 wine_fn_config_tool tools install-dev,install-lib,manpage
16463 wine_fn_config_tool tools/widl install-dev,manpage
16464 wine_fn_config_tool tools/winebuild install-dev,manpage
16465 wine_fn_config_tool tools/winedump install-dev,manpage
16466 wine_fn_config_tool tools/winegcc install-dev,manpage
16467 wine_fn_config_tool tools/wmc install-dev,manpage
16468 wine_fn_config_tool tools/wrc install-dev,manpage
16470 LINGUAS="\
16471 ar \
16472 bg \
16473 ca \
16474 cs \
16475 da \
16476 de \
16477 el \
16478 en \
16479 en_US \
16480 eo \
16481 es \
16482 fa \
16483 fi \
16484 fr \
16485 he \
16486 hi \
16487 hu \
16488 it \
16489 ja \
16490 ko \
16491 lt \
16492 ml \
16493 nb_NO \
16494 nl \
16495 or \
16496 pa \
16497 pl \
16498 pt_BR \
16499 pt_PT \
16500 rm \
16501 ro \
16502 ru \
16503 sk \
16504 sl \
16505 sr_RS@cyrillic \
16506 sr_RS@latin \
16507 sv \
16508 te \
16509 th \
16510 tr \
16511 uk \
16512 wa \
16513 zh_CN \
16514 zh_TW"
16518 ac_config_commands="$ac_config_commands Makefile"
16521 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
16525 if test "x$enable_maintainer_mode" = xyes
16526 then
16527 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
16528 cd \$(srcdir) && autoconf --warnings=all
16529 \$(srcdir)/include/config.h.in: include/stamp-h.in
16530 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
16531 cd \$(srcdir) && autoheader --warnings=all
16532 @echo timestamp > \$@"
16535 if test "x$with_gettextpo" = xyes
16536 then
16537 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
16538 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
16539 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
16540 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
16541 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
16542 msgcat -o \$@ \$(ALL_POT_FILES)"
16545 if test "$MSGFMT" != false
16546 then
16547 PORCFLAGS="--po-dir=\$(top_builddir)/po"
16549 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
16550 else
16551 LINGUAS=
16554 if test "x$enable_tools" != xno
16555 then
16556 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
16557 clean:: __clean__
16558 \$(RM) tools/makedep\$(EXEEXT)"
16561 if test -n "$with_wine64"
16562 then
16563 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
16564 fonts server tools:
16565 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
16566 $with_wine64/loader/wine:
16567 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
16568 $with_wine64/loader/wine-preloader:
16569 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
16570 clean::
16571 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
16574 cat >confcache <<\_ACEOF
16575 # This file is a shell script that caches the results of configure
16576 # tests run on this system so they can be shared between configure
16577 # scripts and configure runs, see configure's option --config-cache.
16578 # It is not useful on other systems. If it contains results you don't
16579 # want to keep, you may remove or edit it.
16581 # config.status only pays attention to the cache file if you give it
16582 # the --recheck option to rerun configure.
16584 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16585 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16586 # following values.
16588 _ACEOF
16590 # The following way of writing the cache mishandles newlines in values,
16591 # but we know of no workaround that is simple, portable, and efficient.
16592 # So, we kill variables containing newlines.
16593 # Ultrix sh set writes to stderr and can't be redirected directly,
16594 # and sets the high bit in the cache file unless we assign to the vars.
16596 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16597 eval ac_val=\$$ac_var
16598 case $ac_val in #(
16599 *${as_nl}*)
16600 case $ac_var in #(
16601 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16602 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16603 esac
16604 case $ac_var in #(
16605 _ | IFS | as_nl) ;; #(
16606 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16607 *) { eval $ac_var=; unset $ac_var;} ;;
16608 esac ;;
16609 esac
16610 done
16612 (set) 2>&1 |
16613 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16614 *${as_nl}ac_space=\ *)
16615 # `set' does not quote correctly, so add quotes: double-quote
16616 # substitution turns \\\\ into \\, and sed turns \\ into \.
16617 sed -n \
16618 "s/'/'\\\\''/g;
16619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16620 ;; #(
16622 # `set' quotes correctly as required by POSIX, so do not add quotes.
16623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16625 esac |
16626 sort
16628 sed '
16629 /^ac_cv_env_/b end
16630 t clear
16631 :clear
16632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16633 t end
16634 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16635 :end' >>confcache
16636 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16637 if test -w "$cache_file"; then
16638 if test "x$cache_file" != "x/dev/null"; then
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16640 $as_echo "$as_me: updating cache $cache_file" >&6;}
16641 if test ! -f "$cache_file" || test -h "$cache_file"; then
16642 cat confcache >"$cache_file"
16643 else
16644 case $cache_file in #(
16645 */* | ?:*)
16646 mv -f confcache "$cache_file"$$ &&
16647 mv -f "$cache_file"$$ "$cache_file" ;; #(
16649 mv -f confcache "$cache_file" ;;
16650 esac
16653 else
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16655 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16658 rm -f confcache
16660 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16661 # Let make expand exec_prefix.
16662 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16664 DEFS=-DHAVE_CONFIG_H
16666 ac_libobjs=
16667 ac_ltlibobjs=
16669 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16670 # 1. Remove the extension, and $U if already installed.
16671 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16672 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16673 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16674 # will be set to the directory where LIBOBJS objects are built.
16675 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16676 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16677 done
16678 LIBOBJS=$ac_libobjs
16680 LTLIBOBJS=$ac_ltlibobjs
16684 : "${CONFIG_STATUS=./config.status}"
16685 ac_write_fail=0
16686 ac_clean_files_save=$ac_clean_files
16687 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16689 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16690 as_write_fail=0
16691 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16692 #! $SHELL
16693 # Generated by $as_me.
16694 # Run this file to recreate the current configuration.
16695 # Compiler output produced by configure, useful for debugging
16696 # configure, is in config.log if it exists.
16698 debug=false
16699 ac_cs_recheck=false
16700 ac_cs_silent=false
16702 SHELL=\${CONFIG_SHELL-$SHELL}
16703 export SHELL
16704 _ASEOF
16705 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16706 ## -------------------- ##
16707 ## M4sh Initialization. ##
16708 ## -------------------- ##
16710 # Be more Bourne compatible
16711 DUALCASE=1; export DUALCASE # for MKS sh
16712 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16713 emulate sh
16714 NULLCMD=:
16715 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16716 # is contrary to our usage. Disable this feature.
16717 alias -g '${1+"$@"}'='"$@"'
16718 setopt NO_GLOB_SUBST
16719 else
16720 case `(set -o) 2>/dev/null` in #(
16721 *posix*) :
16722 set -o posix ;; #(
16723 *) :
16725 esac
16729 as_nl='
16731 export as_nl
16732 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16733 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16734 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16735 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16736 # Prefer a ksh shell builtin over an external printf program on Solaris,
16737 # but without wasting forks for bash or zsh.
16738 if test -z "$BASH_VERSION$ZSH_VERSION" \
16739 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16740 as_echo='print -r --'
16741 as_echo_n='print -rn --'
16742 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16743 as_echo='printf %s\n'
16744 as_echo_n='printf %s'
16745 else
16746 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16747 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16748 as_echo_n='/usr/ucb/echo -n'
16749 else
16750 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16751 as_echo_n_body='eval
16752 arg=$1;
16753 case $arg in #(
16754 *"$as_nl"*)
16755 expr "X$arg" : "X\\(.*\\)$as_nl";
16756 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16757 esac;
16758 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16760 export as_echo_n_body
16761 as_echo_n='sh -c $as_echo_n_body as_echo'
16763 export as_echo_body
16764 as_echo='sh -c $as_echo_body as_echo'
16767 # The user is always right.
16768 if test "${PATH_SEPARATOR+set}" != set; then
16769 PATH_SEPARATOR=:
16770 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16771 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16772 PATH_SEPARATOR=';'
16777 # IFS
16778 # We need space, tab and new line, in precisely that order. Quoting is
16779 # there to prevent editors from complaining about space-tab.
16780 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16781 # splitting by setting IFS to empty value.)
16782 IFS=" "" $as_nl"
16784 # Find who we are. Look in the path if we contain no directory separator.
16785 as_myself=
16786 case $0 in #((
16787 *[\\/]* ) as_myself=$0 ;;
16788 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16789 for as_dir in $PATH
16791 IFS=$as_save_IFS
16792 test -z "$as_dir" && as_dir=.
16793 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16794 done
16795 IFS=$as_save_IFS
16798 esac
16799 # We did not find ourselves, most probably we were run as `sh COMMAND'
16800 # in which case we are not to be found in the path.
16801 if test "x$as_myself" = x; then
16802 as_myself=$0
16804 if test ! -f "$as_myself"; then
16805 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16806 exit 1
16809 # Unset variables that we do not need and which cause bugs (e.g. in
16810 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16811 # suppresses any "Segmentation fault" message there. '((' could
16812 # trigger a bug in pdksh 5.2.14.
16813 for as_var in BASH_ENV ENV MAIL MAILPATH
16814 do eval test x\${$as_var+set} = xset \
16815 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16816 done
16817 PS1='$ '
16818 PS2='> '
16819 PS4='+ '
16821 # NLS nuisances.
16822 LC_ALL=C
16823 export LC_ALL
16824 LANGUAGE=C
16825 export LANGUAGE
16827 # CDPATH.
16828 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16831 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16832 # ----------------------------------------
16833 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16834 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16835 # script with STATUS, using 1 if that was 0.
16836 as_fn_error ()
16838 as_status=$1; test $as_status -eq 0 && as_status=1
16839 if test "$4"; then
16840 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16841 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16843 $as_echo "$as_me: error: $2" >&2
16844 as_fn_exit $as_status
16845 } # as_fn_error
16848 # as_fn_set_status STATUS
16849 # -----------------------
16850 # Set $? to STATUS, without forking.
16851 as_fn_set_status ()
16853 return $1
16854 } # as_fn_set_status
16856 # as_fn_exit STATUS
16857 # -----------------
16858 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16859 as_fn_exit ()
16861 set +e
16862 as_fn_set_status $1
16863 exit $1
16864 } # as_fn_exit
16866 # as_fn_unset VAR
16867 # ---------------
16868 # Portably unset VAR.
16869 as_fn_unset ()
16871 { eval $1=; unset $1;}
16873 as_unset=as_fn_unset
16874 # as_fn_append VAR VALUE
16875 # ----------------------
16876 # Append the text in VALUE to the end of the definition contained in VAR. Take
16877 # advantage of any shell optimizations that allow amortized linear growth over
16878 # repeated appends, instead of the typical quadratic growth present in naive
16879 # implementations.
16880 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16881 eval 'as_fn_append ()
16883 eval $1+=\$2
16885 else
16886 as_fn_append ()
16888 eval $1=\$$1\$2
16890 fi # as_fn_append
16892 # as_fn_arith ARG...
16893 # ------------------
16894 # Perform arithmetic evaluation on the ARGs, and store the result in the
16895 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16896 # must be portable across $(()) and expr.
16897 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16898 eval 'as_fn_arith ()
16900 as_val=$(( $* ))
16902 else
16903 as_fn_arith ()
16905 as_val=`expr "$@" || test $? -eq 1`
16907 fi # as_fn_arith
16910 if expr a : '\(a\)' >/dev/null 2>&1 &&
16911 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16912 as_expr=expr
16913 else
16914 as_expr=false
16917 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16918 as_basename=basename
16919 else
16920 as_basename=false
16923 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16924 as_dirname=dirname
16925 else
16926 as_dirname=false
16929 as_me=`$as_basename -- "$0" ||
16930 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16931 X"$0" : 'X\(//\)$' \| \
16932 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16933 $as_echo X/"$0" |
16934 sed '/^.*\/\([^/][^/]*\)\/*$/{
16935 s//\1/
16938 /^X\/\(\/\/\)$/{
16939 s//\1/
16942 /^X\/\(\/\).*/{
16943 s//\1/
16946 s/.*/./; q'`
16948 # Avoid depending upon Character Ranges.
16949 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16950 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16951 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16952 as_cr_digits='0123456789'
16953 as_cr_alnum=$as_cr_Letters$as_cr_digits
16955 ECHO_C= ECHO_N= ECHO_T=
16956 case `echo -n x` in #(((((
16957 -n*)
16958 case `echo 'xy\c'` in
16959 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16960 xy) ECHO_C='\c';;
16961 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16962 ECHO_T=' ';;
16963 esac;;
16965 ECHO_N='-n';;
16966 esac
16968 rm -f conf$$ conf$$.exe conf$$.file
16969 if test -d conf$$.dir; then
16970 rm -f conf$$.dir/conf$$.file
16971 else
16972 rm -f conf$$.dir
16973 mkdir conf$$.dir 2>/dev/null
16975 if (echo >conf$$.file) 2>/dev/null; then
16976 if ln -s conf$$.file conf$$ 2>/dev/null; then
16977 as_ln_s='ln -s'
16978 # ... but there are two gotchas:
16979 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16980 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16981 # In both cases, we have to default to `cp -pR'.
16982 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16983 as_ln_s='cp -pR'
16984 elif ln conf$$.file conf$$ 2>/dev/null; then
16985 as_ln_s=ln
16986 else
16987 as_ln_s='cp -pR'
16989 else
16990 as_ln_s='cp -pR'
16992 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16993 rmdir conf$$.dir 2>/dev/null
16996 # as_fn_mkdir_p
16997 # -------------
16998 # Create "$as_dir" as a directory, including parents if necessary.
16999 as_fn_mkdir_p ()
17002 case $as_dir in #(
17003 -*) as_dir=./$as_dir;;
17004 esac
17005 test -d "$as_dir" || eval $as_mkdir_p || {
17006 as_dirs=
17007 while :; do
17008 case $as_dir in #(
17009 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17010 *) as_qdir=$as_dir;;
17011 esac
17012 as_dirs="'$as_qdir' $as_dirs"
17013 as_dir=`$as_dirname -- "$as_dir" ||
17014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17015 X"$as_dir" : 'X\(//\)[^/]' \| \
17016 X"$as_dir" : 'X\(//\)$' \| \
17017 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17018 $as_echo X"$as_dir" |
17019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17020 s//\1/
17023 /^X\(\/\/\)[^/].*/{
17024 s//\1/
17027 /^X\(\/\/\)$/{
17028 s//\1/
17031 /^X\(\/\).*/{
17032 s//\1/
17035 s/.*/./; q'`
17036 test -d "$as_dir" && break
17037 done
17038 test -z "$as_dirs" || eval "mkdir $as_dirs"
17039 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17042 } # as_fn_mkdir_p
17043 if mkdir -p . 2>/dev/null; then
17044 as_mkdir_p='mkdir -p "$as_dir"'
17045 else
17046 test -d ./-p && rmdir ./-p
17047 as_mkdir_p=false
17051 # as_fn_executable_p FILE
17052 # -----------------------
17053 # Test if FILE is an executable regular file.
17054 as_fn_executable_p ()
17056 test -f "$1" && test -x "$1"
17057 } # as_fn_executable_p
17058 as_test_x='test -x'
17059 as_executable_p=as_fn_executable_p
17061 # Sed expression to map a string onto a valid CPP name.
17062 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17064 # Sed expression to map a string onto a valid variable name.
17065 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17068 exec 6>&1
17069 ## ----------------------------------- ##
17070 ## Main body of $CONFIG_STATUS script. ##
17071 ## ----------------------------------- ##
17072 _ASEOF
17073 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17076 # Save the log message, to keep $0 and so on meaningful, and to
17077 # report actual input values of CONFIG_FILES etc. instead of their
17078 # values after options handling.
17079 ac_log="
17080 This file was extended by Wine $as_me 1.5.29, which was
17081 generated by GNU Autoconf 2.69. Invocation command line was
17083 CONFIG_FILES = $CONFIG_FILES
17084 CONFIG_HEADERS = $CONFIG_HEADERS
17085 CONFIG_LINKS = $CONFIG_LINKS
17086 CONFIG_COMMANDS = $CONFIG_COMMANDS
17087 $ $0 $@
17089 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17092 _ACEOF
17094 case $ac_config_files in *"
17095 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17096 esac
17098 case $ac_config_headers in *"
17099 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17100 esac
17103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17104 # Files that config.status was made for.
17105 config_files="$ac_config_files"
17106 config_headers="$ac_config_headers"
17107 config_links="$ac_config_links"
17108 config_commands="$ac_config_commands"
17110 _ACEOF
17112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17113 ac_cs_usage="\
17114 \`$as_me' instantiates files and other configuration actions
17115 from templates according to the current configuration. Unless the files
17116 and actions are specified as TAGs, all are instantiated by default.
17118 Usage: $0 [OPTION]... [TAG]...
17120 -h, --help print this help, then exit
17121 -V, --version print version number and configuration settings, then exit
17122 --config print configuration, then exit
17123 -q, --quiet, --silent
17124 do not print progress messages
17125 -d, --debug don't remove temporary files
17126 --recheck update $as_me by reconfiguring in the same conditions
17127 --file=FILE[:TEMPLATE]
17128 instantiate the configuration file FILE
17129 --header=FILE[:TEMPLATE]
17130 instantiate the configuration header FILE
17132 Configuration files:
17133 $config_files
17135 Configuration headers:
17136 $config_headers
17138 Configuration links:
17139 $config_links
17141 Configuration commands:
17142 $config_commands
17144 Report bugs to <wine-devel@winehq.org>.
17145 Wine home page: <http://www.winehq.org>."
17147 _ACEOF
17148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17149 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17150 ac_cs_version="\\
17151 Wine config.status 1.5.29
17152 configured by $0, generated by GNU Autoconf 2.69,
17153 with options \\"\$ac_cs_config\\"
17155 Copyright (C) 2012 Free Software Foundation, Inc.
17156 This config.status script is free software; the Free Software Foundation
17157 gives unlimited permission to copy, distribute and modify it."
17159 ac_pwd='$ac_pwd'
17160 srcdir='$srcdir'
17161 INSTALL='$INSTALL'
17162 test -n "\$AWK" || AWK=awk
17163 _ACEOF
17165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17166 # The default lists apply if the user does not specify any file.
17167 ac_need_defaults=:
17168 while test $# != 0
17170 case $1 in
17171 --*=?*)
17172 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17173 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17174 ac_shift=:
17176 --*=)
17177 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17178 ac_optarg=
17179 ac_shift=:
17182 ac_option=$1
17183 ac_optarg=$2
17184 ac_shift=shift
17186 esac
17188 case $ac_option in
17189 # Handling of the options.
17190 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17191 ac_cs_recheck=: ;;
17192 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17193 $as_echo "$ac_cs_version"; exit ;;
17194 --config | --confi | --conf | --con | --co | --c )
17195 $as_echo "$ac_cs_config"; exit ;;
17196 --debug | --debu | --deb | --de | --d | -d )
17197 debug=: ;;
17198 --file | --fil | --fi | --f )
17199 $ac_shift
17200 case $ac_optarg in
17201 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17202 '') as_fn_error $? "missing file argument" ;;
17203 esac
17204 as_fn_append CONFIG_FILES " '$ac_optarg'"
17205 ac_need_defaults=false;;
17206 --header | --heade | --head | --hea )
17207 $ac_shift
17208 case $ac_optarg in
17209 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17210 esac
17211 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17212 ac_need_defaults=false;;
17213 --he | --h)
17214 # Conflict between --help and --header
17215 as_fn_error $? "ambiguous option: \`$1'
17216 Try \`$0 --help' for more information.";;
17217 --help | --hel | -h )
17218 $as_echo "$ac_cs_usage"; exit ;;
17219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17220 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17221 ac_cs_silent=: ;;
17223 # This is an error.
17224 -*) as_fn_error $? "unrecognized option: \`$1'
17225 Try \`$0 --help' for more information." ;;
17227 *) as_fn_append ac_config_targets " $1"
17228 ac_need_defaults=false ;;
17230 esac
17231 shift
17232 done
17234 ac_configure_extra_args=
17236 if $ac_cs_silent; then
17237 exec 6>/dev/null
17238 ac_configure_extra_args="$ac_configure_extra_args --silent"
17241 _ACEOF
17242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17243 if \$ac_cs_recheck; then
17244 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17245 shift
17246 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17247 CONFIG_SHELL='$SHELL'
17248 export CONFIG_SHELL
17249 exec "\$@"
17252 _ACEOF
17253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17254 exec 5>>config.log
17256 echo
17257 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17258 ## Running $as_me. ##
17259 _ASBOX
17260 $as_echo "$ac_log"
17261 } >&5
17263 _ACEOF
17264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17266 # INIT-COMMANDS
17268 wine_fn_output_makefile ()
17270 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
17271 $ALL_MAKEFILE_DEPENDS
17272 _WINE_EOF
17273 as_fn_error $? "could not create Makefile" "$LINENO" 5
17276 _ACEOF
17278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17280 # Handling of arguments.
17281 for ac_config_target in $ac_config_targets
17283 case $ac_config_target in
17284 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17285 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
17286 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
17287 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
17288 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
17289 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
17290 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
17291 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
17292 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
17293 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
17294 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
17295 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
17296 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
17297 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
17298 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
17299 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
17300 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
17301 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
17302 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17303 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17304 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
17305 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17306 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
17307 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17308 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
17309 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
17311 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17312 esac
17313 done
17316 # If the user did not use the arguments to specify the items to instantiate,
17317 # then the envvar interface is used. Set only those that are not.
17318 # We use the long form for the default assignment because of an extremely
17319 # bizarre bug on SunOS 4.1.3.
17320 if $ac_need_defaults; then
17321 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17322 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17323 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17324 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17327 # Have a temporary directory for convenience. Make it in the build tree
17328 # simply because there is no reason against having it here, and in addition,
17329 # creating and moving files from /tmp can sometimes cause problems.
17330 # Hook for its removal unless debugging.
17331 # Note that there is a small window in which the directory will not be cleaned:
17332 # after its creation but before its name has been assigned to `$tmp'.
17333 $debug ||
17335 tmp= ac_tmp=
17336 trap 'exit_status=$?
17337 : "${ac_tmp:=$tmp}"
17338 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17340 trap 'as_fn_exit 1' 1 2 13 15
17342 # Create a (secure) tmp directory for tmp files.
17345 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17346 test -d "$tmp"
17347 } ||
17349 tmp=./conf$$-$RANDOM
17350 (umask 077 && mkdir "$tmp")
17351 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17352 ac_tmp=$tmp
17354 # Set up the scripts for CONFIG_FILES section.
17355 # No need to generate them if there are no CONFIG_FILES.
17356 # This happens for instance with `./config.status config.h'.
17357 if test -n "$CONFIG_FILES"; then
17359 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17360 ac_cs_awk_getline=:
17361 ac_cs_awk_pipe_init=
17362 ac_cs_awk_read_file='
17363 while ((getline aline < (F[key])) > 0)
17364 print(aline)
17365 close(F[key])'
17366 ac_cs_awk_pipe_fini=
17367 else
17368 ac_cs_awk_getline=false
17369 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17370 ac_cs_awk_read_file='
17371 print "|#_!!_#|"
17372 print "cat " F[key] " &&"
17373 '$ac_cs_awk_pipe_init
17374 # The final `:' finishes the AND list.
17375 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17377 ac_cr=`echo X | tr X '\015'`
17378 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17379 # But we know of no other shell where ac_cr would be empty at this
17380 # point, so we can use a bashism as a fallback.
17381 if test "x$ac_cr" = x; then
17382 eval ac_cr=\$\'\\r\'
17384 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17385 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17386 ac_cs_awk_cr='\\r'
17387 else
17388 ac_cs_awk_cr=$ac_cr
17391 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17392 _ACEOF
17394 # Create commands to substitute file output variables.
17396 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17397 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17398 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17399 echo "_ACAWK" &&
17400 echo "_ACEOF"
17401 } >conf$$files.sh &&
17402 . ./conf$$files.sh ||
17403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17404 rm -f conf$$files.sh
17407 echo "cat >conf$$subs.awk <<_ACEOF" &&
17408 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17409 echo "_ACEOF"
17410 } >conf$$subs.sh ||
17411 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17412 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17413 ac_delim='%!_!# '
17414 for ac_last_try in false false false false false :; do
17415 . ./conf$$subs.sh ||
17416 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17418 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17419 if test $ac_delim_n = $ac_delim_num; then
17420 break
17421 elif $ac_last_try; then
17422 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17423 else
17424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17426 done
17427 rm -f conf$$subs.sh
17429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17430 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17431 _ACEOF
17432 sed -n '
17434 s/^/S["/; s/!.*/"]=/
17437 s/^[^!]*!//
17438 :repl
17439 t repl
17440 s/'"$ac_delim"'$//
17441 t delim
17444 s/\(.\{148\}\)..*/\1/
17445 t more1
17446 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17449 b repl
17450 :more1
17451 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17454 s/.\{148\}//
17455 t nl
17456 :delim
17458 s/\(.\{148\}\)..*/\1/
17459 t more2
17460 s/["\\]/\\&/g; s/^/"/; s/$/"/
17463 :more2
17464 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17467 s/.\{148\}//
17468 t delim
17469 ' <conf$$subs.awk | sed '
17470 /^[^""]/{
17472 s/\n//
17474 ' >>$CONFIG_STATUS || ac_write_fail=1
17475 rm -f conf$$subs.awk
17476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17477 _ACAWK
17478 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17479 for (key in S) S_is_set[key] = 1
17480 FS = "\a"
17481 \$ac_cs_awk_pipe_init
17484 line = $ 0
17485 nfields = split(line, field, "@")
17486 substed = 0
17487 len = length(field[1])
17488 for (i = 2; i < nfields; i++) {
17489 key = field[i]
17490 keylen = length(key)
17491 if (S_is_set[key]) {
17492 value = S[key]
17493 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17494 len += length(value) + length(field[++i])
17495 substed = 1
17496 } else
17497 len += 1 + keylen
17499 if (nfields == 3 && !substed) {
17500 key = field[2]
17501 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17502 \$ac_cs_awk_read_file
17503 next
17506 print line
17508 \$ac_cs_awk_pipe_fini
17509 _ACAWK
17510 _ACEOF
17511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17512 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17513 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17514 else
17516 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17517 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17518 _ACEOF
17520 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17521 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17522 # trailing colons and then remove the whole line if VPATH becomes empty
17523 # (actually we leave an empty line to preserve line numbers).
17524 if test "x$srcdir" = x.; then
17525 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17527 s///
17528 s/^/:/
17529 s/[ ]*$/:/
17530 s/:\$(srcdir):/:/g
17531 s/:\${srcdir}:/:/g
17532 s/:@srcdir@:/:/g
17533 s/^:*//
17534 s/:*$//
17536 s/\(=[ ]*\).*/\1/
17538 s/\n//
17539 s/^[^=]*=[ ]*$//
17543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17544 fi # test -n "$CONFIG_FILES"
17546 # Set up the scripts for CONFIG_HEADERS section.
17547 # No need to generate them if there are no CONFIG_HEADERS.
17548 # This happens for instance with `./config.status Makefile'.
17549 if test -n "$CONFIG_HEADERS"; then
17550 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17551 BEGIN {
17552 _ACEOF
17554 # Transform confdefs.h into an awk script `defines.awk', embedded as
17555 # here-document in config.status, that substitutes the proper values into
17556 # config.h.in to produce config.h.
17558 # Create a delimiter string that does not exist in confdefs.h, to ease
17559 # handling of long lines.
17560 ac_delim='%!_!# '
17561 for ac_last_try in false false :; do
17562 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17563 if test -z "$ac_tt"; then
17564 break
17565 elif $ac_last_try; then
17566 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17567 else
17568 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17570 done
17572 # For the awk script, D is an array of macro values keyed by name,
17573 # likewise P contains macro parameters if any. Preserve backslash
17574 # newline sequences.
17576 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17577 sed -n '
17578 s/.\{148\}/&'"$ac_delim"'/g
17579 t rset
17580 :rset
17581 s/^[ ]*#[ ]*define[ ][ ]*/ /
17582 t def
17584 :def
17585 s/\\$//
17586 t bsnl
17587 s/["\\]/\\&/g
17588 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17589 D["\1"]=" \3"/p
17590 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17592 :bsnl
17593 s/["\\]/\\&/g
17594 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17595 D["\1"]=" \3\\\\\\n"\\/p
17596 t cont
17597 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17598 t cont
17600 :cont
17602 s/.\{148\}/&'"$ac_delim"'/g
17603 t clear
17604 :clear
17605 s/\\$//
17606 t bsnlc
17607 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17609 :bsnlc
17610 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17611 b cont
17612 ' <confdefs.h | sed '
17613 s/'"$ac_delim"'/"\\\
17614 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17617 for (key in D) D_is_set[key] = 1
17618 FS = "\a"
17620 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17621 line = \$ 0
17622 split(line, arg, " ")
17623 if (arg[1] == "#") {
17624 defundef = arg[2]
17625 mac1 = arg[3]
17626 } else {
17627 defundef = substr(arg[1], 2)
17628 mac1 = arg[2]
17630 split(mac1, mac2, "(") #)
17631 macro = mac2[1]
17632 prefix = substr(line, 1, index(line, defundef) - 1)
17633 if (D_is_set[macro]) {
17634 # Preserve the white space surrounding the "#".
17635 print prefix "define", macro P[macro] D[macro]
17636 next
17637 } else {
17638 # Replace #undef with comments. This is necessary, for example,
17639 # in the case of _POSIX_SOURCE, which is predefined and required
17640 # on some systems where configure will not decide to define it.
17641 if (defundef == "undef") {
17642 print "/*", prefix defundef, macro, "*/"
17643 next
17647 { print }
17648 _ACAWK
17649 _ACEOF
17650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17651 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17652 fi # test -n "$CONFIG_HEADERS"
17655 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17656 shift
17657 for ac_tag
17659 case $ac_tag in
17660 :[FHLC]) ac_mode=$ac_tag; continue;;
17661 esac
17662 case $ac_mode$ac_tag in
17663 :[FHL]*:*);;
17664 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17665 :[FH]-) ac_tag=-:-;;
17666 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17667 esac
17668 ac_save_IFS=$IFS
17669 IFS=:
17670 set x $ac_tag
17671 IFS=$ac_save_IFS
17672 shift
17673 ac_file=$1
17674 shift
17676 case $ac_mode in
17677 :L) ac_source=$1;;
17678 :[FH])
17679 ac_file_inputs=
17680 for ac_f
17682 case $ac_f in
17683 -) ac_f="$ac_tmp/stdin";;
17684 *) # Look for the file first in the build tree, then in the source tree
17685 # (if the path is not absolute). The absolute path cannot be DOS-style,
17686 # because $ac_f cannot contain `:'.
17687 test -f "$ac_f" ||
17688 case $ac_f in
17689 [\\/$]*) false;;
17690 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17691 esac ||
17692 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17693 esac
17694 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17695 as_fn_append ac_file_inputs " '$ac_f'"
17696 done
17698 # Let's still pretend it is `configure' which instantiates (i.e., don't
17699 # use $as_me), people would be surprised to read:
17700 # /* config.h. Generated by config.status. */
17701 configure_input='Generated from '`
17702 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17703 `' by configure.'
17704 if test x"$ac_file" != x-; then
17705 configure_input="$ac_file. $configure_input"
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17707 $as_echo "$as_me: creating $ac_file" >&6;}
17709 # Neutralize special characters interpreted by sed in replacement strings.
17710 case $configure_input in #(
17711 *\&* | *\|* | *\\* )
17712 ac_sed_conf_input=`$as_echo "$configure_input" |
17713 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17714 *) ac_sed_conf_input=$configure_input;;
17715 esac
17717 case $ac_tag in
17718 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17719 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17720 esac
17722 esac
17724 ac_dir=`$as_dirname -- "$ac_file" ||
17725 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17726 X"$ac_file" : 'X\(//\)[^/]' \| \
17727 X"$ac_file" : 'X\(//\)$' \| \
17728 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17729 $as_echo X"$ac_file" |
17730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17731 s//\1/
17734 /^X\(\/\/\)[^/].*/{
17735 s//\1/
17738 /^X\(\/\/\)$/{
17739 s//\1/
17742 /^X\(\/\).*/{
17743 s//\1/
17746 s/.*/./; q'`
17747 as_dir="$ac_dir"; as_fn_mkdir_p
17748 ac_builddir=.
17750 case "$ac_dir" in
17751 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17753 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17754 # A ".." for each directory in $ac_dir_suffix.
17755 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17756 case $ac_top_builddir_sub in
17757 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17758 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17759 esac ;;
17760 esac
17761 ac_abs_top_builddir=$ac_pwd
17762 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17763 # for backward compatibility:
17764 ac_top_builddir=$ac_top_build_prefix
17766 case $srcdir in
17767 .) # We are building in place.
17768 ac_srcdir=.
17769 ac_top_srcdir=$ac_top_builddir_sub
17770 ac_abs_top_srcdir=$ac_pwd ;;
17771 [\\/]* | ?:[\\/]* ) # Absolute name.
17772 ac_srcdir=$srcdir$ac_dir_suffix;
17773 ac_top_srcdir=$srcdir
17774 ac_abs_top_srcdir=$srcdir ;;
17775 *) # Relative name.
17776 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17777 ac_top_srcdir=$ac_top_build_prefix$srcdir
17778 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17779 esac
17780 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17783 case $ac_mode in
17786 # CONFIG_FILE
17789 case $INSTALL in
17790 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17791 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17792 esac
17793 _ACEOF
17795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17796 # If the template does not know about datarootdir, expand it.
17797 # FIXME: This hack should be removed a few years after 2.60.
17798 ac_datarootdir_hack=; ac_datarootdir_seen=
17799 ac_sed_dataroot='
17800 /datarootdir/ {
17804 /@datadir@/p
17805 /@docdir@/p
17806 /@infodir@/p
17807 /@localedir@/p
17808 /@mandir@/p'
17809 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17810 *datarootdir*) ac_datarootdir_seen=yes;;
17811 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17813 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17814 _ACEOF
17815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17816 ac_datarootdir_hack='
17817 s&@datadir@&$datadir&g
17818 s&@docdir@&$docdir&g
17819 s&@infodir@&$infodir&g
17820 s&@localedir@&$localedir&g
17821 s&@mandir@&$mandir&g
17822 s&\\\${datarootdir}&$datarootdir&g' ;;
17823 esac
17824 _ACEOF
17826 # Neutralize VPATH when `$srcdir' = `.'.
17827 # Shell code in configure.ac might set extrasub.
17828 # FIXME: do we really want to maintain this feature?
17829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17830 ac_sed_extra="$ac_vpsub
17831 $extrasub
17832 _ACEOF
17833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17835 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17836 s|@configure_input@|$ac_sed_conf_input|;t t
17837 s&@top_builddir@&$ac_top_builddir_sub&;t t
17838 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17839 s&@srcdir@&$ac_srcdir&;t t
17840 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17841 s&@top_srcdir@&$ac_top_srcdir&;t t
17842 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17843 s&@builddir@&$ac_builddir&;t t
17844 s&@abs_builddir@&$ac_abs_builddir&;t t
17845 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17846 s&@INSTALL@&$ac_INSTALL&;t t
17847 $ac_datarootdir_hack
17849 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17850 if $ac_cs_awk_getline; then
17851 $AWK -f "$ac_tmp/subs.awk"
17852 else
17853 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17854 fi \
17855 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17857 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17858 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17859 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17860 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17862 which seems to be undefined. Please make sure it is defined" >&5
17863 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17864 which seems to be undefined. Please make sure it is defined" >&2;}
17866 rm -f "$ac_tmp/stdin"
17867 case $ac_file in
17868 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17869 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17870 esac \
17871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17875 # CONFIG_HEADER
17877 if test x"$ac_file" != x-; then
17879 $as_echo "/* $configure_input */" \
17880 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17881 } >"$ac_tmp/config.h" \
17882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17883 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17885 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17886 else
17887 rm -f "$ac_file"
17888 mv "$ac_tmp/config.h" "$ac_file" \
17889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17891 else
17892 $as_echo "/* $configure_input */" \
17893 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17894 || as_fn_error $? "could not create -" "$LINENO" 5
17899 # CONFIG_LINK
17902 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17904 else
17905 # Prefer the file from the source tree if names are identical.
17906 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17907 ac_source=$srcdir/$ac_source
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17911 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17913 if test ! -r "$ac_source"; then
17914 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17916 rm -f "$ac_file"
17918 # Try a relative symlink, then a hard link, then a copy.
17919 case $ac_source in
17920 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17921 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17922 esac
17923 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17924 ln "$ac_source" "$ac_file" 2>/dev/null ||
17925 cp -p "$ac_source" "$ac_file" ||
17926 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17929 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17930 $as_echo "$as_me: executing $ac_file commands" >&6;}
17932 esac
17935 case $ac_file$ac_mode in
17936 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17937 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17938 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17939 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17940 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17941 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17942 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17943 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17944 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17945 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17946 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17947 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17948 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17949 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17950 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17951 "Makefile":C) wine_fn_output_makefile Makefile ;;
17953 esac
17954 done # for ac_tag
17957 as_fn_exit 0
17958 _ACEOF
17959 ac_clean_files=$ac_clean_files_save
17961 test $ac_write_fail = 0 ||
17962 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17965 # configure is writing to config.log, and then calls config.status.
17966 # config.status does its own redirection, appending to config.log.
17967 # Unfortunately, on DOS this fails, as config.log is still kept open
17968 # by configure, so config.status won't be able to write to it; its
17969 # output is simply discarded. So we exec the FD to /dev/null,
17970 # effectively closing config.log, so it can be properly (re)opened and
17971 # appended to by config.status. When coming back to configure, we
17972 # need to make the FD available again.
17973 if test "$no_create" != yes; then
17974 ac_cs_success=:
17975 ac_config_status_args=
17976 test "$silent" = yes &&
17977 ac_config_status_args="$ac_config_status_args --quiet"
17978 exec 5>/dev/null
17979 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17980 exec 5>>config.log
17981 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17982 # would make configure fail if this is the last instruction.
17983 $ac_cs_success || as_fn_exit 1
17985 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17987 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17991 if test "$no_create" = "yes"
17992 then
17993 exit 0
17996 ac_save_IFS="$IFS"
17997 if test "x$wine_notices != "x; then
17998 echo >&6
17999 IFS="|"
18000 for msg in $wine_notices; do
18001 IFS="$ac_save_IFS"
18002 if test -n "$msg"; then
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18004 $as_echo "$as_me: $msg" >&6;}
18006 done
18008 IFS="|"
18009 for msg in $wine_warnings; do
18010 IFS="$ac_save_IFS"
18011 if test -n "$msg"; then
18012 echo >&2
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18014 $as_echo "$as_me: WARNING: $msg" >&2;}
18016 done
18017 IFS="$ac_save_IFS"
18019 echo "
18020 $as_me: Finished. Do '${ac_make}' to compile Wine.
18021 " >&6