msvcrt: Return per-thread information also in lc_codepage_func and lc_handle_func.
[wine.git] / configure
blob573bb96e54dca622aa3901ca3ead9fa09550ed0e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.10.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: wine-devel@winehq.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='Wine'
582 PACKAGE_TARNAME='wine'
583 PACKAGE_VERSION='1.7.10'
584 PACKAGE_STRING='Wine 1.7.10'
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 LDAPLIBS
630 LIBRT
631 LIBPOLL
632 LIBDL
633 TOOLSEXT
634 UNWINDFLAGS
635 BUILTINFLAG
636 EXTRACFLAGS
637 LIBPROCSTAT
638 LIBKSTAT
639 LIBOPENAL
640 MPG123_LIBS
641 MPG123_CFLAGS
642 TIFF_LIBS
643 TIFF_CFLAGS
644 PNG_LIBS
645 PNG_CFLAGS
646 JPEG_LIBS
647 JPEG_CFLAGS
648 FONTCONFIGINCL
649 CUPSINCL
650 CAPI20_LIBS
651 CAPI20_CFLAGS
652 OSS4INCL
653 ALSALIBS
654 GSTREAMER_LIBS
655 GSTREAMER_CFLAGS
656 LIBGETTEXTPO
657 ZLIB
658 FREETYPE_LIBS
659 FREETYPE_CFLAGS
660 LCMS2_LIBS
661 LCMS2_CFLAGS
662 RESOLVLIBS
663 GPHOTO2_PORT_LIBS
664 GPHOTO2_PORT_CFLAGS
665 GPHOTO2_LIBS
666 GPHOTO2_CFLAGS
667 SANE_LIBS
668 SANE_CFLAGS
669 GNUTLS_LIBS
670 GNUTLS_CFLAGS
671 HAL_LIBS
672 HAL_CFLAGS
673 DBUS_LIBS
674 DBUS_CFLAGS
675 XSLT_LIBS
676 XSLT_CFLAGS
677 XML2_LIBS
678 XML2_CFLAGS
679 X_EXTRA_LIBS
680 X_LIBS
681 X_PRE_LIBS
682 X_CFLAGS
683 XMKMF
684 LIBPTHREAD
685 CROSSCC
686 CROSSTARGET
687 PRELINK
688 CARBONLIB
689 QUICKTIMELIB
690 LIBOPENCL
691 FRAMEWORK_OPENAL
692 COREAUDIO
693 SECURITYLIB
694 DISKARBITRATIONLIB
695 APPKITLIB
696 CORESERVICESLIB
697 APPLICATIONSERVICESLIB
698 FORCEFEEDBACKLIB
699 IOKITLIB
700 COREFOUNDATIONLIB
701 LIBWINE_RULES
702 SOCKETLIBS
703 DLLTOOL
704 LOADER_RULES
705 ALL_TEST_RESOURCES
706 READELF
708 LDRPATH_LOCAL
709 LDRPATH_INSTALL
710 DLLFLAGS
711 DLLPREFIX
712 dlldir
714 OPENGL_LIBS
715 XLIB
716 ICOTOOL
717 CONVERT
718 RSVG
719 FONTFORGE
720 PKG_CONFIG
721 MSGFMT
722 LDCONFIG
723 MKDIR_P
724 EGREP
725 GREP
726 LN_S
727 RANLIB
728 ARFLAGS
729 STRIP
730 ac_ct_AR
732 BISON
733 FLEX
734 TOOLSDIR
735 TARGETFLAGS
736 CPPBIN
737 ac_ct_CXX
738 CXXFLAGS
740 OBJEXT
741 EXEEXT
742 ac_ct_CC
743 CPPFLAGS
744 LDFLAGS
745 CFLAGS
747 SET_MAKE
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files='MAKE_RULES'
795 ac_user_opts='
796 enable_option_checking
797 enable_win16
798 enable_win64
799 enable_tests
800 enable_maintainer_mode
801 with_alsa
802 with_capi
803 with_cms
804 with_coreaudio
805 with_cups
806 with_curses
807 with_dbus
808 with_fontconfig
809 with_freetype
810 with_gettext
811 with_gettextpo
812 with_gphoto
813 with_glu
814 with_gnutls
815 with_gsm
816 with_gstreamer
817 with_hal
818 with_jpeg
819 with_ldap
820 with_mpg123
821 with_netapi
822 with_openal
823 with_opencl
824 with_opengl
825 with_osmesa
826 with_oss
827 with_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
849 enable_acledit
850 enable_aclui
851 enable_activeds
852 enable_actxprxy
853 enable_advapi32
854 enable_advpack
855 enable_amstream
856 enable_api_ms_win_core_debug_l1_1_1
857 enable_api_ms_win_core_errorhandling_l1_1_1
858 enable_api_ms_win_core_interlocked_l1_2_0
859 enable_api_ms_win_core_localregistry_l1_1_0
860 enable_api_ms_win_core_processthreads_l1_1_0
861 enable_api_ms_win_core_processthreads_l1_1_1
862 enable_api_ms_win_core_profile_l1_1_0
863 enable_api_ms_win_core_string_l1_1_0
864 enable_api_ms_win_core_sysinfo_l1_2_0
865 enable_api_ms_win_core_util_l1_1_0
866 enable_api_ms_win_core_winrt_error_l1_1_0
867 enable_api_ms_win_core_winrt_string_l1_1_0
868 enable_api_ms_win_downlevel_advapi32_l1_1_0
869 enable_api_ms_win_downlevel_advapi32_l2_1_0
870 enable_api_ms_win_downlevel_normaliz_l1_1_0
871 enable_api_ms_win_downlevel_ole32_l1_1_0
872 enable_api_ms_win_downlevel_shell32_l1_1_0
873 enable_api_ms_win_downlevel_shlwapi_l1_1_0
874 enable_api_ms_win_downlevel_shlwapi_l2_1_0
875 enable_api_ms_win_downlevel_user32_l1_1_0
876 enable_api_ms_win_downlevel_version_l1_1_0
877 enable_api_ms_win_security_base_l1_1_0
878 enable_apphelp
879 enable_appwiz_cpl
880 enable_atl
881 enable_atl100
882 enable_atl110
883 enable_atl80
884 enable_atl90
885 enable_authz
886 enable_avicap32
887 enable_avifil32
888 enable_avrt
889 enable_bcrypt
890 enable_browseui
891 enable_cabinet
892 enable_capi2032
893 enable_cards
894 enable_cfgmgr32
895 enable_clusapi
896 enable_comcat
897 enable_comctl32
898 enable_comdlg32
899 enable_compstui
900 enable_comsvcs
901 enable_credui
902 enable_crtdll
903 enable_crypt32
904 enable_cryptdlg
905 enable_cryptdll
906 enable_cryptnet
907 enable_cryptui
908 enable_ctapi32
909 enable_ctl3d32
910 enable_d3d10
911 enable_d3d10core
912 enable_d3d11
913 enable_d3d8
914 enable_d3d9
915 enable_d3dcompiler_33
916 enable_d3dcompiler_34
917 enable_d3dcompiler_35
918 enable_d3dcompiler_36
919 enable_d3dcompiler_37
920 enable_d3dcompiler_38
921 enable_d3dcompiler_39
922 enable_d3dcompiler_40
923 enable_d3dcompiler_41
924 enable_d3dcompiler_42
925 enable_d3dcompiler_43
926 enable_d3dim
927 enable_d3drm
928 enable_d3dx10_33
929 enable_d3dx10_34
930 enable_d3dx10_35
931 enable_d3dx10_36
932 enable_d3dx10_37
933 enable_d3dx10_38
934 enable_d3dx10_39
935 enable_d3dx10_40
936 enable_d3dx10_41
937 enable_d3dx10_42
938 enable_d3dx10_43
939 enable_d3dx11_42
940 enable_d3dx11_43
941 enable_d3dx9_24
942 enable_d3dx9_25
943 enable_d3dx9_26
944 enable_d3dx9_27
945 enable_d3dx9_28
946 enable_d3dx9_29
947 enable_d3dx9_30
948 enable_d3dx9_31
949 enable_d3dx9_32
950 enable_d3dx9_33
951 enable_d3dx9_34
952 enable_d3dx9_35
953 enable_d3dx9_36
954 enable_d3dx9_37
955 enable_d3dx9_38
956 enable_d3dx9_39
957 enable_d3dx9_40
958 enable_d3dx9_41
959 enable_d3dx9_42
960 enable_d3dx9_43
961 enable_d3dxof
962 enable_dbgeng
963 enable_dbghelp
964 enable_dciman32
965 enable_ddraw
966 enable_ddrawex
967 enable_devenum
968 enable_dhcpcsvc
969 enable_difxapi
970 enable_dinput
971 enable_dinput8
972 enable_dispex
973 enable_dmband
974 enable_dmcompos
975 enable_dmime
976 enable_dmloader
977 enable_dmscript
978 enable_dmstyle
979 enable_dmsynth
980 enable_dmusic
981 enable_dmusic32
982 enable_dnsapi
983 enable_dplay
984 enable_dplayx
985 enable_dpnaddr
986 enable_dpnet
987 enable_dpnhpast
988 enable_dpnlobby
989 enable_dpwsockx
990 enable_drmclien
991 enable_dsound
992 enable_dssenh
993 enable_dswave
994 enable_dwmapi
995 enable_dwrite
996 enable_dxdiagn
997 enable_dxgi
998 enable_explorerframe
999 enable_faultrep
1000 enable_fltlib
1001 enable_fusion
1002 enable_fwpuclnt
1003 enable_gameux
1004 enable_gdi32
1005 enable_gdiplus
1006 enable_glu32
1007 enable_gphoto2_ds
1008 enable_gpkcsp
1009 enable_hal
1010 enable_hhctrl_ocx
1011 enable_hid
1012 enable_hlink
1013 enable_hnetcfg
1014 enable_httpapi
1015 enable_iccvid
1016 enable_icmp
1017 enable_ieframe
1018 enable_imaadp32_acm
1019 enable_imagehlp
1020 enable_imm32
1021 enable_inetcomm
1022 enable_inetcpl_cpl
1023 enable_inetmib1
1024 enable_infosoft
1025 enable_initpki
1026 enable_inkobj
1027 enable_inseng
1028 enable_iphlpapi
1029 enable_itircl
1030 enable_itss
1031 enable_joy_cpl
1032 enable_jscript
1033 enable_kernel32
1034 enable_ktmw32
1035 enable_loadperf
1036 enable_localspl
1037 enable_localui
1038 enable_lz32
1039 enable_mapi32
1040 enable_mapistub
1041 enable_mciavi32
1042 enable_mcicda
1043 enable_mciqtz32
1044 enable_mciseq
1045 enable_mciwave
1046 enable_mgmtapi
1047 enable_midimap
1048 enable_mlang
1049 enable_mmcndmgr
1050 enable_mmdevapi
1051 enable_mountmgr_sys
1052 enable_mpr
1053 enable_mprapi
1054 enable_msacm32_drv
1055 enable_msacm32
1056 enable_msadp32_acm
1057 enable_mscat32
1058 enable_mscms
1059 enable_mscoree
1060 enable_msctf
1061 enable_msdaps
1062 enable_msdmo
1063 enable_msftedit
1064 enable_msg711_acm
1065 enable_msgsm32_acm
1066 enable_mshtml_tlb
1067 enable_mshtml
1068 enable_msi
1069 enable_msident
1070 enable_msimg32
1071 enable_msimsg
1072 enable_msimtf
1073 enable_msisip
1074 enable_msisys_ocx
1075 enable_msls31
1076 enable_msnet32
1077 enable_mspatcha
1078 enable_msrle32
1079 enable_mssign32
1080 enable_mssip32
1081 enable_mstask
1082 enable_msvcirt
1083 enable_msvcm80
1084 enable_msvcm90
1085 enable_msvcp100
1086 enable_msvcp110
1087 enable_msvcp60
1088 enable_msvcp70
1089 enable_msvcp71
1090 enable_msvcp80
1091 enable_msvcp90
1092 enable_msvcr100
1093 enable_msvcr110
1094 enable_msvcr70
1095 enable_msvcr71
1096 enable_msvcr80
1097 enable_msvcr90
1098 enable_msvcrt
1099 enable_msvcrt20
1100 enable_msvcrt40
1101 enable_msvcrtd
1102 enable_msvfw32
1103 enable_msvidc32
1104 enable_mswsock
1105 enable_msxml
1106 enable_msxml2
1107 enable_msxml3
1108 enable_msxml4
1109 enable_msxml6
1110 enable_nddeapi
1111 enable_netapi32
1112 enable_netcfgx
1113 enable_newdev
1114 enable_normaliz
1115 enable_npmshtml
1116 enable_ntdll
1117 enable_ntdsapi
1118 enable_ntoskrnl_exe
1119 enable_ntprint
1120 enable_objsel
1121 enable_odbc32
1122 enable_odbccp32
1123 enable_odbccu32
1124 enable_ole32
1125 enable_oleacc
1126 enable_oleaut32
1127 enable_olecli32
1128 enable_oledb32
1129 enable_oledlg
1130 enable_olepro32
1131 enable_olesvr32
1132 enable_olethk32
1133 enable_openal32
1134 enable_opencl
1135 enable_opengl32
1136 enable_pdh
1137 enable_photometadatahandler
1138 enable_pidgen
1139 enable_powrprof
1140 enable_printui
1141 enable_propsys
1142 enable_psapi
1143 enable_pstorec
1144 enable_qcap
1145 enable_qedit
1146 enable_qmgr
1147 enable_qmgrprxy
1148 enable_quartz
1149 enable_query
1150 enable_rasapi32
1151 enable_rasdlg
1152 enable_regapi
1153 enable_resutils
1154 enable_riched20
1155 enable_riched32
1156 enable_rpcrt4
1157 enable_rsabase
1158 enable_rsaenh
1159 enable_rstrtmgr
1160 enable_rtutils
1161 enable_samlib
1162 enable_sane_ds
1163 enable_scarddlg
1164 enable_sccbase
1165 enable_schannel
1166 enable_scrrun
1167 enable_scsiport_sys
1168 enable_secur32
1169 enable_security
1170 enable_sensapi
1171 enable_serialui
1172 enable_setupapi
1173 enable_sfc
1174 enable_sfc_os
1175 enable_shdoclc
1176 enable_shdocvw
1177 enable_shell32
1178 enable_shfolder
1179 enable_shlwapi
1180 enable_slbcsp
1181 enable_slc
1182 enable_snmpapi
1183 enable_softpub
1184 enable_spoolss
1185 enable_stdole2_tlb
1186 enable_stdole32_tlb
1187 enable_sti
1188 enable_svrapi
1189 enable_sxs
1190 enable_t2embed
1191 enable_tapi32
1192 enable_taskschd
1193 enable_traffic
1194 enable_twain_32
1195 enable_unicows
1196 enable_updspapi
1197 enable_url
1198 enable_urlmon
1199 enable_usbd_sys
1200 enable_user32
1201 enable_userenv
1202 enable_usp10
1203 enable_uxtheme
1204 enable_vbscript
1205 enable_vcomp
1206 enable_vcomp100
1207 enable_vcomp90
1208 enable_vdmdbg
1209 enable_version
1210 enable_wbemdisp
1211 enable_wbemprox
1212 enable_webservices
1213 enable_wer
1214 enable_wevtapi
1215 enable_wiaservc
1216 enable_windowscodecs
1217 enable_windowscodecsext
1218 enable_winealsa_drv
1219 enable_winecoreaudio_drv
1220 enable_wined3d
1221 enable_winegstreamer
1222 enable_winejoystick_drv
1223 enable_winemac_drv
1224 enable_winemapi
1225 enable_winemp3_acm
1226 enable_wineoss_drv
1227 enable_wineps_drv
1228 enable_wineqtdecoder
1229 enable_winex11_drv
1230 enable_wing32
1231 enable_winhttp
1232 enable_wininet
1233 enable_winmm
1234 enable_winnls32
1235 enable_winscard
1236 enable_winspool_drv
1237 enable_winsta
1238 enable_wintab32
1239 enable_wintrust
1240 enable_wlanapi
1241 enable_wldap32
1242 enable_wmi
1243 enable_wmiutils
1244 enable_wmvcore
1245 enable_wnaspi32
1246 enable_ws2_32
1247 enable_wshom_ocx
1248 enable_wsnmp32
1249 enable_wsock32
1250 enable_wtsapi32
1251 enable_wuapi
1252 enable_wuaueng
1253 enable_xapofx1_1
1254 enable_xinput1_1
1255 enable_xinput1_2
1256 enable_xinput1_3
1257 enable_xinput1_4
1258 enable_xinput9_1_0
1259 enable_xmllite
1260 enable_xolehlp
1261 enable_xpsprint
1262 enable_xpssvcs
1263 enable_documentation
1264 enable_fonts
1265 enable_include
1266 enable_libs_port
1267 enable_libs_wine
1268 enable_libs_wpp
1269 enable_loader
1270 enable_arp
1271 enable_aspnet_regiis
1272 enable_attrib
1273 enable_cabarc
1274 enable_cacls
1275 enable_clock
1276 enable_cmd
1277 enable_conhost
1278 enable_control
1279 enable_cscript
1280 enable_dxdiag
1281 enable_eject
1282 enable_expand
1283 enable_explorer
1284 enable_extrac32
1285 enable_findstr
1286 enable_hh
1287 enable_hostname
1288 enable_icinfo
1289 enable_iexplore
1290 enable_ipconfig
1291 enable_lodctr
1292 enable_mofcomp
1293 enable_mshta
1294 enable_msiexec
1295 enable_net
1296 enable_netsh
1297 enable_netstat
1298 enable_ngen
1299 enable_notepad
1300 enable_oleview
1301 enable_ping
1302 enable_plugplay
1303 enable_presentationfontcache
1304 enable_progman
1305 enable_reg
1306 enable_regasm
1307 enable_regedit
1308 enable_regsvcs
1309 enable_regsvr32
1310 enable_rpcss
1311 enable_rundll32
1312 enable_sc
1313 enable_schtasks
1314 enable_secedit
1315 enable_servicemodelreg
1316 enable_services
1317 enable_spoolsv
1318 enable_start
1319 enable_svchost
1320 enable_taskkill
1321 enable_tasklist
1322 enable_taskmgr
1323 enable_termsv
1324 enable_uninstaller
1325 enable_unlodctr
1326 enable_view
1327 enable_wineboot
1328 enable_winebrowser
1329 enable_winecfg
1330 enable_wineconsole
1331 enable_winedbg
1332 enable_winedevice
1333 enable_winefile
1334 enable_winemenubuilder
1335 enable_winemine
1336 enable_winemsibuilder
1337 enable_winepath
1338 enable_winetest
1339 enable_winhlp32
1340 enable_winver
1341 enable_wmic
1342 enable_wordpad
1343 enable_write
1344 enable_wscript
1345 enable_wusa
1346 enable_xcopy
1347 enable_server
1348 enable_tools
1350 ac_precious_vars='build_alias
1351 host_alias
1352 target_alias
1354 CFLAGS
1355 LDFLAGS
1356 LIBS
1357 CPPFLAGS
1359 CXXFLAGS
1362 XMKMF
1363 XML2_CFLAGS
1364 XML2_LIBS
1365 XSLT_CFLAGS
1366 XSLT_LIBS
1367 DBUS_CFLAGS
1368 DBUS_LIBS
1369 HAL_CFLAGS
1370 HAL_LIBS
1371 GNUTLS_CFLAGS
1372 GNUTLS_LIBS
1373 SANE_CFLAGS
1374 SANE_LIBS
1375 GPHOTO2_CFLAGS
1376 GPHOTO2_LIBS
1377 GPHOTO2_PORT_CFLAGS
1378 GPHOTO2_PORT_LIBS
1379 LCMS2_CFLAGS
1380 LCMS2_LIBS
1381 FREETYPE_CFLAGS
1382 FREETYPE_LIBS
1383 GSTREAMER_CFLAGS
1384 GSTREAMER_LIBS
1385 CAPI20_CFLAGS
1386 CAPI20_LIBS
1387 JPEG_CFLAGS
1388 JPEG_LIBS
1389 PNG_CFLAGS
1390 PNG_LIBS
1391 TIFF_CFLAGS
1392 TIFF_LIBS
1393 MPG123_CFLAGS
1394 MPG123_LIBS'
1397 # Initialize some variables set by options.
1398 ac_init_help=
1399 ac_init_version=false
1400 ac_unrecognized_opts=
1401 ac_unrecognized_sep=
1402 # The variables have the same names as the options, with
1403 # dashes changed to underlines.
1404 cache_file=/dev/null
1405 exec_prefix=NONE
1406 no_create=
1407 no_recursion=
1408 prefix=NONE
1409 program_prefix=NONE
1410 program_suffix=NONE
1411 program_transform_name=s,x,x,
1412 silent=
1413 site=
1414 srcdir=
1415 verbose=
1416 x_includes=NONE
1417 x_libraries=NONE
1419 # Installation directory options.
1420 # These are left unexpanded so users can "make install exec_prefix=/foo"
1421 # and all the variables that are supposed to be based on exec_prefix
1422 # by default will actually change.
1423 # Use braces instead of parens because sh, perl, etc. also accept them.
1424 # (The list follows the same order as the GNU Coding Standards.)
1425 bindir='${exec_prefix}/bin'
1426 sbindir='${exec_prefix}/sbin'
1427 libexecdir='${exec_prefix}/libexec'
1428 datarootdir='${prefix}/share'
1429 datadir='${datarootdir}'
1430 sysconfdir='${prefix}/etc'
1431 sharedstatedir='${prefix}/com'
1432 localstatedir='${prefix}/var'
1433 includedir='${prefix}/include'
1434 oldincludedir='/usr/include'
1435 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1436 infodir='${datarootdir}/info'
1437 htmldir='${docdir}'
1438 dvidir='${docdir}'
1439 pdfdir='${docdir}'
1440 psdir='${docdir}'
1441 libdir='${exec_prefix}/lib'
1442 localedir='${datarootdir}/locale'
1443 mandir='${datarootdir}/man'
1445 ac_prev=
1446 ac_dashdash=
1447 for ac_option
1449 # If the previous option needs an argument, assign it.
1450 if test -n "$ac_prev"; then
1451 eval $ac_prev=\$ac_option
1452 ac_prev=
1453 continue
1456 case $ac_option in
1457 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1458 *=) ac_optarg= ;;
1459 *) ac_optarg=yes ;;
1460 esac
1462 # Accept the important Cygnus configure options, so we can diagnose typos.
1464 case $ac_dashdash$ac_option in
1466 ac_dashdash=yes ;;
1468 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1469 ac_prev=bindir ;;
1470 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1471 bindir=$ac_optarg ;;
1473 -build | --build | --buil | --bui | --bu)
1474 ac_prev=build_alias ;;
1475 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1476 build_alias=$ac_optarg ;;
1478 -cache-file | --cache-file | --cache-fil | --cache-fi \
1479 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1480 ac_prev=cache_file ;;
1481 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1482 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1483 cache_file=$ac_optarg ;;
1485 --config-cache | -C)
1486 cache_file=config.cache ;;
1488 -datadir | --datadir | --datadi | --datad)
1489 ac_prev=datadir ;;
1490 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1491 datadir=$ac_optarg ;;
1493 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1494 | --dataroo | --dataro | --datar)
1495 ac_prev=datarootdir ;;
1496 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1497 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1498 datarootdir=$ac_optarg ;;
1500 -disable-* | --disable-*)
1501 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1502 # Reject names that are not valid shell variable names.
1503 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1504 as_fn_error $? "invalid feature name: $ac_useropt"
1505 ac_useropt_orig=$ac_useropt
1506 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1507 case $ac_user_opts in
1509 "enable_$ac_useropt"
1510 "*) ;;
1511 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1512 ac_unrecognized_sep=', ';;
1513 esac
1514 eval enable_$ac_useropt=no ;;
1516 -docdir | --docdir | --docdi | --doc | --do)
1517 ac_prev=docdir ;;
1518 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1519 docdir=$ac_optarg ;;
1521 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1522 ac_prev=dvidir ;;
1523 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1524 dvidir=$ac_optarg ;;
1526 -enable-* | --enable-*)
1527 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1528 # Reject names that are not valid shell variable names.
1529 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1530 as_fn_error $? "invalid feature name: $ac_useropt"
1531 ac_useropt_orig=$ac_useropt
1532 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1533 case $ac_user_opts in
1535 "enable_$ac_useropt"
1536 "*) ;;
1537 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1538 ac_unrecognized_sep=', ';;
1539 esac
1540 eval enable_$ac_useropt=\$ac_optarg ;;
1542 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1543 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1544 | --exec | --exe | --ex)
1545 ac_prev=exec_prefix ;;
1546 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1547 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1548 | --exec=* | --exe=* | --ex=*)
1549 exec_prefix=$ac_optarg ;;
1551 -gas | --gas | --ga | --g)
1552 # Obsolete; use --with-gas.
1553 with_gas=yes ;;
1555 -help | --help | --hel | --he | -h)
1556 ac_init_help=long ;;
1557 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1558 ac_init_help=recursive ;;
1559 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1560 ac_init_help=short ;;
1562 -host | --host | --hos | --ho)
1563 ac_prev=host_alias ;;
1564 -host=* | --host=* | --hos=* | --ho=*)
1565 host_alias=$ac_optarg ;;
1567 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1568 ac_prev=htmldir ;;
1569 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1570 | --ht=*)
1571 htmldir=$ac_optarg ;;
1573 -includedir | --includedir | --includedi | --included | --include \
1574 | --includ | --inclu | --incl | --inc)
1575 ac_prev=includedir ;;
1576 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1577 | --includ=* | --inclu=* | --incl=* | --inc=*)
1578 includedir=$ac_optarg ;;
1580 -infodir | --infodir | --infodi | --infod | --info | --inf)
1581 ac_prev=infodir ;;
1582 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1583 infodir=$ac_optarg ;;
1585 -libdir | --libdir | --libdi | --libd)
1586 ac_prev=libdir ;;
1587 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1588 libdir=$ac_optarg ;;
1590 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1591 | --libexe | --libex | --libe)
1592 ac_prev=libexecdir ;;
1593 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1594 | --libexe=* | --libex=* | --libe=*)
1595 libexecdir=$ac_optarg ;;
1597 -localedir | --localedir | --localedi | --localed | --locale)
1598 ac_prev=localedir ;;
1599 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1600 localedir=$ac_optarg ;;
1602 -localstatedir | --localstatedir | --localstatedi | --localstated \
1603 | --localstate | --localstat | --localsta | --localst | --locals)
1604 ac_prev=localstatedir ;;
1605 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1606 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1607 localstatedir=$ac_optarg ;;
1609 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1610 ac_prev=mandir ;;
1611 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1612 mandir=$ac_optarg ;;
1614 -nfp | --nfp | --nf)
1615 # Obsolete; use --without-fp.
1616 with_fp=no ;;
1618 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1619 | --no-cr | --no-c | -n)
1620 no_create=yes ;;
1622 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1623 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1624 no_recursion=yes ;;
1626 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1627 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1628 | --oldin | --oldi | --old | --ol | --o)
1629 ac_prev=oldincludedir ;;
1630 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1631 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1632 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1633 oldincludedir=$ac_optarg ;;
1635 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1636 ac_prev=prefix ;;
1637 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1638 prefix=$ac_optarg ;;
1640 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1641 | --program-pre | --program-pr | --program-p)
1642 ac_prev=program_prefix ;;
1643 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1644 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1645 program_prefix=$ac_optarg ;;
1647 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1648 | --program-suf | --program-su | --program-s)
1649 ac_prev=program_suffix ;;
1650 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1651 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1652 program_suffix=$ac_optarg ;;
1654 -program-transform-name | --program-transform-name \
1655 | --program-transform-nam | --program-transform-na \
1656 | --program-transform-n | --program-transform- \
1657 | --program-transform | --program-transfor \
1658 | --program-transfo | --program-transf \
1659 | --program-trans | --program-tran \
1660 | --progr-tra | --program-tr | --program-t)
1661 ac_prev=program_transform_name ;;
1662 -program-transform-name=* | --program-transform-name=* \
1663 | --program-transform-nam=* | --program-transform-na=* \
1664 | --program-transform-n=* | --program-transform-=* \
1665 | --program-transform=* | --program-transfor=* \
1666 | --program-transfo=* | --program-transf=* \
1667 | --program-trans=* | --program-tran=* \
1668 | --progr-tra=* | --program-tr=* | --program-t=*)
1669 program_transform_name=$ac_optarg ;;
1671 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1672 ac_prev=pdfdir ;;
1673 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1674 pdfdir=$ac_optarg ;;
1676 -psdir | --psdir | --psdi | --psd | --ps)
1677 ac_prev=psdir ;;
1678 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1679 psdir=$ac_optarg ;;
1681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1682 | -silent | --silent | --silen | --sile | --sil)
1683 silent=yes ;;
1685 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1686 ac_prev=sbindir ;;
1687 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1688 | --sbi=* | --sb=*)
1689 sbindir=$ac_optarg ;;
1691 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1692 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1693 | --sharedst | --shareds | --shared | --share | --shar \
1694 | --sha | --sh)
1695 ac_prev=sharedstatedir ;;
1696 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1697 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1698 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1699 | --sha=* | --sh=*)
1700 sharedstatedir=$ac_optarg ;;
1702 -site | --site | --sit)
1703 ac_prev=site ;;
1704 -site=* | --site=* | --sit=*)
1705 site=$ac_optarg ;;
1707 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1708 ac_prev=srcdir ;;
1709 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1710 srcdir=$ac_optarg ;;
1712 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1713 | --syscon | --sysco | --sysc | --sys | --sy)
1714 ac_prev=sysconfdir ;;
1715 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1716 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1717 sysconfdir=$ac_optarg ;;
1719 -target | --target | --targe | --targ | --tar | --ta | --t)
1720 ac_prev=target_alias ;;
1721 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1722 target_alias=$ac_optarg ;;
1724 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1725 verbose=yes ;;
1727 -version | --version | --versio | --versi | --vers | -V)
1728 ac_init_version=: ;;
1730 -with-* | --with-*)
1731 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1732 # Reject names that are not valid shell variable names.
1733 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1734 as_fn_error $? "invalid package name: $ac_useropt"
1735 ac_useropt_orig=$ac_useropt
1736 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1737 case $ac_user_opts in
1739 "with_$ac_useropt"
1740 "*) ;;
1741 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1742 ac_unrecognized_sep=', ';;
1743 esac
1744 eval with_$ac_useropt=\$ac_optarg ;;
1746 -without-* | --without-*)
1747 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1748 # Reject names that are not valid shell variable names.
1749 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1750 as_fn_error $? "invalid package name: $ac_useropt"
1751 ac_useropt_orig=$ac_useropt
1752 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1753 case $ac_user_opts in
1755 "with_$ac_useropt"
1756 "*) ;;
1757 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1758 ac_unrecognized_sep=', ';;
1759 esac
1760 eval with_$ac_useropt=no ;;
1762 --x)
1763 # Obsolete; use --with-x.
1764 with_x=yes ;;
1766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1767 | --x-incl | --x-inc | --x-in | --x-i)
1768 ac_prev=x_includes ;;
1769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1771 x_includes=$ac_optarg ;;
1773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1775 ac_prev=x_libraries ;;
1776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1778 x_libraries=$ac_optarg ;;
1780 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1781 Try \`$0 --help' for more information"
1784 *=*)
1785 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1786 # Reject names that are not valid shell variable names.
1787 case $ac_envvar in #(
1788 '' | [0-9]* | *[!_$as_cr_alnum]* )
1789 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1790 esac
1791 eval $ac_envvar=\$ac_optarg
1792 export $ac_envvar ;;
1795 # FIXME: should be removed in autoconf 3.0.
1796 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1797 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1798 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1799 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1802 esac
1803 done
1805 if test -n "$ac_prev"; then
1806 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1807 as_fn_error $? "missing argument to $ac_option"
1810 if test -n "$ac_unrecognized_opts"; then
1811 case $enable_option_checking in
1812 no) ;;
1813 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1814 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1815 esac
1818 # Check all directory arguments for consistency.
1819 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1820 datadir sysconfdir sharedstatedir localstatedir includedir \
1821 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1822 libdir localedir mandir
1824 eval ac_val=\$$ac_var
1825 # Remove trailing slashes.
1826 case $ac_val in
1827 */ )
1828 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1829 eval $ac_var=\$ac_val;;
1830 esac
1831 # Be sure to have absolute directory names.
1832 case $ac_val in
1833 [\\/$]* | ?:[\\/]* ) continue;;
1834 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1835 esac
1836 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1837 done
1839 # There might be people who depend on the old broken behavior: `$host'
1840 # used to hold the argument of --host etc.
1841 # FIXME: To remove some day.
1842 build=$build_alias
1843 host=$host_alias
1844 target=$target_alias
1846 # FIXME: To remove some day.
1847 if test "x$host_alias" != x; then
1848 if test "x$build_alias" = x; then
1849 cross_compiling=maybe
1850 elif test "x$build_alias" != "x$host_alias"; then
1851 cross_compiling=yes
1855 ac_tool_prefix=
1856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1858 test "$silent" = yes && exec 6>/dev/null
1861 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1862 ac_ls_di=`ls -di .` &&
1863 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1864 as_fn_error $? "working directory cannot be determined"
1865 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1866 as_fn_error $? "pwd does not report name of working directory"
1869 # Find the source files, if location was not specified.
1870 if test -z "$srcdir"; then
1871 ac_srcdir_defaulted=yes
1872 # Try the directory containing this script, then the parent directory.
1873 ac_confdir=`$as_dirname -- "$as_myself" ||
1874 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1875 X"$as_myself" : 'X\(//\)[^/]' \| \
1876 X"$as_myself" : 'X\(//\)$' \| \
1877 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1878 $as_echo X"$as_myself" |
1879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1880 s//\1/
1883 /^X\(\/\/\)[^/].*/{
1884 s//\1/
1887 /^X\(\/\/\)$/{
1888 s//\1/
1891 /^X\(\/\).*/{
1892 s//\1/
1895 s/.*/./; q'`
1896 srcdir=$ac_confdir
1897 if test ! -r "$srcdir/$ac_unique_file"; then
1898 srcdir=..
1900 else
1901 ac_srcdir_defaulted=no
1903 if test ! -r "$srcdir/$ac_unique_file"; then
1904 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1905 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1907 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1908 ac_abs_confdir=`(
1909 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1910 pwd)`
1911 # When building in place, set srcdir=.
1912 if test "$ac_abs_confdir" = "$ac_pwd"; then
1913 srcdir=.
1915 # Remove unnecessary trailing slashes from srcdir.
1916 # Double slashes in file names in object file debugging info
1917 # mess up M-x gdb in Emacs.
1918 case $srcdir in
1919 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1920 esac
1921 for ac_var in $ac_precious_vars; do
1922 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1923 eval ac_env_${ac_var}_value=\$${ac_var}
1924 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1925 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1926 done
1929 # Report the --help message.
1931 if test "$ac_init_help" = "long"; then
1932 # Omit some internal or obsolete options to make the list less imposing.
1933 # This message is too long to be a string in the A/UX 3.1 sh.
1934 cat <<_ACEOF
1935 \`configure' configures Wine 1.7.10 to adapt to many kinds of systems.
1937 Usage: $0 [OPTION]... [VAR=VALUE]...
1939 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1940 VAR=VALUE. See below for descriptions of some of the useful variables.
1942 Defaults for the options are specified in brackets.
1944 Configuration:
1945 -h, --help display this help and exit
1946 --help=short display options specific to this package
1947 --help=recursive display the short help of all the included packages
1948 -V, --version display version information and exit
1949 -q, --quiet, --silent do not print \`checking ...' messages
1950 --cache-file=FILE cache test results in FILE [disabled]
1951 -C, --config-cache alias for \`--cache-file=config.cache'
1952 -n, --no-create do not create output files
1953 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1955 Installation directories:
1956 --prefix=PREFIX install architecture-independent files in PREFIX
1957 [$ac_default_prefix]
1958 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1959 [PREFIX]
1961 By default, \`make install' will install all the files in
1962 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1963 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1964 for instance \`--prefix=\$HOME'.
1966 For better control, use the options below.
1968 Fine tuning of the installation directories:
1969 --bindir=DIR user executables [EPREFIX/bin]
1970 --sbindir=DIR system admin executables [EPREFIX/sbin]
1971 --libexecdir=DIR program executables [EPREFIX/libexec]
1972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1975 --libdir=DIR object code libraries [EPREFIX/lib]
1976 --includedir=DIR C header files [PREFIX/include]
1977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1978 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1979 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1980 --infodir=DIR info documentation [DATAROOTDIR/info]
1981 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1982 --mandir=DIR man documentation [DATAROOTDIR/man]
1983 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1984 --htmldir=DIR html documentation [DOCDIR]
1985 --dvidir=DIR dvi documentation [DOCDIR]
1986 --pdfdir=DIR pdf documentation [DOCDIR]
1987 --psdir=DIR ps documentation [DOCDIR]
1988 _ACEOF
1990 cat <<\_ACEOF
1992 X features:
1993 --x-includes=DIR X include files are in DIR
1994 --x-libraries=DIR X library files are in DIR
1996 System types:
1997 --build=BUILD configure for building on BUILD [guessed]
1998 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1999 _ACEOF
2002 if test -n "$ac_init_help"; then
2003 case $ac_init_help in
2004 short | recursive ) echo "Configuration of Wine 1.7.10:";;
2005 esac
2006 cat <<\_ACEOF
2008 Optional Features:
2009 --disable-option-checking ignore unrecognized --enable/--with options
2010 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2011 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2012 --disable-win16 do not include Win16 support
2013 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
2014 binaries)
2015 --disable-tests do not build the regression tests
2016 --enable-maintainer-mode
2017 enable maintainer-specific build rules
2018 --disable-largefile omit support for large files
2020 Optional Packages:
2021 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2022 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2023 --without-alsa do not use the Alsa sound support
2024 --without-capi do not use CAPI (ISDN support)
2025 --without-cms do not use CMS (color management support)
2026 --without-coreaudio do not use the CoreAudio sound support
2027 --without-cups do not use CUPS
2028 --without-curses do not use (n)curses
2029 --without-dbus do not use DBus (dynamic device support)
2030 --without-fontconfig do not use fontconfig
2031 --without-freetype do not use the FreeType library
2032 --without-gettext do not use gettext
2033 --with-gettextpo use the GetTextPO library to rebuild po files
2034 --without-gphoto do not use gphoto (Digital Camera support)
2035 --without-glu do not use the GLU library
2036 --without-gnutls do not use GnuTLS (schannel support)
2037 --without-gsm do not use libgsm (GSM 06.10 codec support)
2038 --without-gstreamer do not use GStreamer (codecs support)
2039 --without-hal do not use HAL (dynamic device support)
2040 --without-jpeg do not use JPEG
2041 --without-ldap do not use LDAP
2042 --without-mpg123 do not use the mpg123 library
2043 --without-netapi do not use the Samba NetAPI library
2044 --without-openal do not use OpenAL
2045 --without-opencl do not use OpenCL
2046 --without-opengl do not use OpenGL
2047 --without-osmesa do not use the OSMesa library
2048 --without-oss do not use the OSS sound support
2049 --without-png do not use PNG
2050 --without-pthread do not use the pthread library
2051 --without-sane do not use SANE (scanner support)
2052 --without-tiff do not use TIFF
2053 --without-v4l do not use v4l1 (v4l support)
2054 --without-xcomposite do not use the Xcomposite extension
2055 --without-xcursor do not use the Xcursor extension
2056 --without-xinerama do not use Xinerama (multi-monitor support)
2057 --without-xinput do not use the Xinput extension
2058 --without-xinput2 do not use the Xinput 2 extension
2059 --without-xml do not use XML
2060 --without-xrandr do not use Xrandr (resolution changes)
2061 --without-xrender do not use the Xrender extension
2062 --without-xshape do not use the Xshape extension
2063 --without-xshm do not use XShm (shared memory extension)
2064 --without-xslt do not use XSLT
2065 --without-xxf86vm do not use XFree video mode extension
2066 --without-zlib do not use Zlib (data compression)
2067 --with-wine-tools=DIR use Wine tools from directory DIR
2068 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
2069 --with-x use the X Window System
2071 Some influential environment variables:
2072 CC C compiler command
2073 CFLAGS C compiler flags
2074 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2075 nonstandard directory <lib dir>
2076 LIBS libraries to pass to the linker, e.g. -l<library>
2077 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2078 you have headers in a nonstandard directory <include dir>
2079 CXX C++ compiler command
2080 CXXFLAGS C++ compiler flags
2081 CPP C preprocessor
2082 XMKMF Path to xmkmf, Makefile generator for X Window System
2083 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
2084 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
2085 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
2086 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
2087 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
2088 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
2089 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
2090 HAL_LIBS Linker flags for hal, overriding pkg-config
2091 GNUTLS_CFLAGS
2092 C compiler flags for gnutls, overriding pkg-config
2093 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
2094 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
2095 SANE_LIBS Linker flags for libsane, overriding pkg-config
2096 GPHOTO2_CFLAGS
2097 C compiler flags for libgphoto2, overriding pkg-config
2098 GPHOTO2_LIBS
2099 Linker flags for libgphoto2, overriding pkg-config
2100 GPHOTO2_PORT_CFLAGS
2101 C compiler flags for libgphoto2_port, overriding pkg-config
2102 GPHOTO2_PORT_LIBS
2103 Linker flags for libgphoto2_port, overriding pkg-config
2104 LCMS2_CFLAGS
2105 C compiler flags for lcms2, overriding pkg-config
2106 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
2107 FREETYPE_CFLAGS
2108 C compiler flags for freetype2, overriding pkg-config
2109 FREETYPE_LIBS
2110 Linker flags for freetype2, overriding pkg-config
2111 GSTREAMER_CFLAGS
2112 C compiler flags for gstreamer-app-0.10, overriding pkg-config
2113 GSTREAMER_LIBS
2114 Linker flags for gstreamer-app-0.10, overriding pkg-config
2115 CAPI20_CFLAGS
2116 C compiler flags for capi20, overriding pkg-config
2117 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
2118 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
2119 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
2120 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
2121 PNG_LIBS Linker flags for libpng, overriding pkg-config
2122 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
2123 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
2124 MPG123_CFLAGS
2125 C compiler flags for libmpg123, overriding pkg-config
2126 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
2128 Use these variables to override the choices made by `configure' or to help
2129 it to find libraries and programs with nonstandard names/locations.
2131 Report bugs to <wine-devel@winehq.org>.
2132 Wine home page: <http://www.winehq.org>.
2133 _ACEOF
2134 ac_status=$?
2137 if test "$ac_init_help" = "recursive"; then
2138 # If there are subdirs, report their specific --help.
2139 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2140 test -d "$ac_dir" ||
2141 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2142 continue
2143 ac_builddir=.
2145 case "$ac_dir" in
2146 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2148 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2149 # A ".." for each directory in $ac_dir_suffix.
2150 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2151 case $ac_top_builddir_sub in
2152 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2153 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2154 esac ;;
2155 esac
2156 ac_abs_top_builddir=$ac_pwd
2157 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2158 # for backward compatibility:
2159 ac_top_builddir=$ac_top_build_prefix
2161 case $srcdir in
2162 .) # We are building in place.
2163 ac_srcdir=.
2164 ac_top_srcdir=$ac_top_builddir_sub
2165 ac_abs_top_srcdir=$ac_pwd ;;
2166 [\\/]* | ?:[\\/]* ) # Absolute name.
2167 ac_srcdir=$srcdir$ac_dir_suffix;
2168 ac_top_srcdir=$srcdir
2169 ac_abs_top_srcdir=$srcdir ;;
2170 *) # Relative name.
2171 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2172 ac_top_srcdir=$ac_top_build_prefix$srcdir
2173 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2174 esac
2175 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2177 cd "$ac_dir" || { ac_status=$?; continue; }
2178 # Check for guested configure.
2179 if test -f "$ac_srcdir/configure.gnu"; then
2180 echo &&
2181 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2182 elif test -f "$ac_srcdir/configure"; then
2183 echo &&
2184 $SHELL "$ac_srcdir/configure" --help=recursive
2185 else
2186 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2187 fi || ac_status=$?
2188 cd "$ac_pwd" || { ac_status=$?; break; }
2189 done
2192 test -n "$ac_init_help" && exit $ac_status
2193 if $ac_init_version; then
2194 cat <<\_ACEOF
2195 Wine configure 1.7.10
2196 generated by GNU Autoconf 2.69
2198 Copyright (C) 2012 Free Software Foundation, Inc.
2199 This configure script is free software; the Free Software Foundation
2200 gives unlimited permission to copy, distribute and modify it.
2201 _ACEOF
2202 exit
2205 ## ------------------------ ##
2206 ## Autoconf initialization. ##
2207 ## ------------------------ ##
2209 # ac_fn_c_try_compile LINENO
2210 # --------------------------
2211 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2212 ac_fn_c_try_compile ()
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 rm -f conftest.$ac_objext
2216 if { { ac_try="$ac_compile"
2217 case "(($ac_try" in
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2220 esac
2221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2222 $as_echo "$ac_try_echo"; } >&5
2223 (eval "$ac_compile") 2>conftest.err
2224 ac_status=$?
2225 if test -s conftest.err; then
2226 grep -v '^ *+' conftest.err >conftest.er1
2227 cat conftest.er1 >&5
2228 mv -f conftest.er1 conftest.err
2230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2231 test $ac_status = 0; } && {
2232 test -z "$ac_c_werror_flag" ||
2233 test ! -s conftest.err
2234 } && test -s conftest.$ac_objext; then :
2235 ac_retval=0
2236 else
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2240 ac_retval=1
2242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243 as_fn_set_status $ac_retval
2245 } # ac_fn_c_try_compile
2247 # ac_fn_cxx_try_compile LINENO
2248 # ----------------------------
2249 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2250 ac_fn_cxx_try_compile ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 rm -f conftest.$ac_objext
2254 if { { ac_try="$ac_compile"
2255 case "(($ac_try" in
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2258 esac
2259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2260 $as_echo "$ac_try_echo"; } >&5
2261 (eval "$ac_compile") 2>conftest.err
2262 ac_status=$?
2263 if test -s conftest.err; then
2264 grep -v '^ *+' conftest.err >conftest.er1
2265 cat conftest.er1 >&5
2266 mv -f conftest.er1 conftest.err
2268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; } && {
2270 test -z "$ac_cxx_werror_flag" ||
2271 test ! -s conftest.err
2272 } && test -s conftest.$ac_objext; then :
2273 ac_retval=0
2274 else
2275 $as_echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2278 ac_retval=1
2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281 as_fn_set_status $ac_retval
2283 } # ac_fn_cxx_try_compile
2285 # ac_fn_c_try_link LINENO
2286 # -----------------------
2287 # Try to link conftest.$ac_ext, and return whether this succeeded.
2288 ac_fn_c_try_link ()
2290 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291 rm -f conftest.$ac_objext conftest$ac_exeext
2292 if { { ac_try="$ac_link"
2293 case "(($ac_try" in
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2296 esac
2297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2298 $as_echo "$ac_try_echo"; } >&5
2299 (eval "$ac_link") 2>conftest.err
2300 ac_status=$?
2301 if test -s conftest.err; then
2302 grep -v '^ *+' conftest.err >conftest.er1
2303 cat conftest.er1 >&5
2304 mv -f conftest.er1 conftest.err
2306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307 test $ac_status = 0; } && {
2308 test -z "$ac_c_werror_flag" ||
2309 test ! -s conftest.err
2310 } && test -s conftest$ac_exeext && {
2311 test "$cross_compiling" = yes ||
2312 test -x conftest$ac_exeext
2313 }; then :
2314 ac_retval=0
2315 else
2316 $as_echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2319 ac_retval=1
2321 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2322 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2323 # interfere with the next link command; also delete a directory that is
2324 # left behind by Apple's compiler. We do this before executing the actions.
2325 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2326 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327 as_fn_set_status $ac_retval
2329 } # ac_fn_c_try_link
2331 # ac_fn_c_try_cpp LINENO
2332 # ----------------------
2333 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2334 ac_fn_c_try_cpp ()
2336 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337 if { { ac_try="$ac_cpp conftest.$ac_ext"
2338 case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341 esac
2342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343 $as_echo "$ac_try_echo"; } >&5
2344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2345 ac_status=$?
2346 if test -s conftest.err; then
2347 grep -v '^ *+' conftest.err >conftest.er1
2348 cat conftest.er1 >&5
2349 mv -f conftest.er1 conftest.err
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } > conftest.i && {
2353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2354 test ! -s conftest.err
2355 }; then :
2356 ac_retval=0
2357 else
2358 $as_echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2361 ac_retval=1
2363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364 as_fn_set_status $ac_retval
2366 } # ac_fn_c_try_cpp
2368 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2369 # -------------------------------------------------------
2370 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2371 # the include files in INCLUDES and setting the cache variable VAR
2372 # accordingly.
2373 ac_fn_c_check_header_mongrel ()
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 if eval \${$3+:} false; then :
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2378 $as_echo_n "checking for $2... " >&6; }
2379 if eval \${$3+:} false; then :
2380 $as_echo_n "(cached) " >&6
2382 eval ac_res=\$$3
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384 $as_echo "$ac_res" >&6; }
2385 else
2386 # Is the header compilable?
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2388 $as_echo_n "checking $2 usability... " >&6; }
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2392 #include <$2>
2393 _ACEOF
2394 if ac_fn_c_try_compile "$LINENO"; then :
2395 ac_header_compiler=yes
2396 else
2397 ac_header_compiler=no
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2401 $as_echo "$ac_header_compiler" >&6; }
2403 # Is the header present?
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2405 $as_echo_n "checking $2 presence... " >&6; }
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2408 #include <$2>
2409 _ACEOF
2410 if ac_fn_c_try_cpp "$LINENO"; then :
2411 ac_header_preproc=yes
2412 else
2413 ac_header_preproc=no
2415 rm -f conftest.err conftest.i conftest.$ac_ext
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2417 $as_echo "$ac_header_preproc" >&6; }
2419 # So? What about this header?
2420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2421 yes:no: )
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2423 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2425 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2427 no:yes:* )
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2429 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2431 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2433 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2435 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2437 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2438 ( $as_echo "## ------------------------------------ ##
2439 ## Report this to wine-devel@winehq.org ##
2440 ## ------------------------------------ ##"
2441 ) | sed "s/^/$as_me: WARNING: /" >&2
2443 esac
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2445 $as_echo_n "checking for $2... " >&6; }
2446 if eval \${$3+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 eval "$3=\$ac_header_compiler"
2451 eval ac_res=\$$3
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2453 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2457 } # ac_fn_c_check_header_mongrel
2459 # ac_fn_c_try_run LINENO
2460 # ----------------------
2461 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2462 # that executables *can* be run.
2463 ac_fn_c_try_run ()
2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466 if { { ac_try="$ac_link"
2467 case "(($ac_try" in
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2470 esac
2471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2472 $as_echo "$ac_try_echo"; } >&5
2473 (eval "$ac_link") 2>&5
2474 ac_status=$?
2475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2476 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2477 { { case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480 esac
2481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2482 $as_echo "$ac_try_echo"; } >&5
2483 (eval "$ac_try") 2>&5
2484 ac_status=$?
2485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2486 test $ac_status = 0; }; }; then :
2487 ac_retval=0
2488 else
2489 $as_echo "$as_me: program exited with status $ac_status" >&5
2490 $as_echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2493 ac_retval=$ac_status
2495 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2496 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2497 as_fn_set_status $ac_retval
2499 } # ac_fn_c_try_run
2501 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2502 # -------------------------------------------------------
2503 # Tests whether HEADER exists and can be compiled using the include files in
2504 # INCLUDES, setting the cache variable VAR accordingly.
2505 ac_fn_c_check_header_compile ()
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2509 $as_echo_n "checking for $2... " >&6; }
2510 if eval \${$3+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2516 #include <$2>
2517 _ACEOF
2518 if ac_fn_c_try_compile "$LINENO"; then :
2519 eval "$3=yes"
2520 else
2521 eval "$3=no"
2523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 eval ac_res=\$$3
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527 $as_echo "$ac_res" >&6; }
2528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2530 } # ac_fn_c_check_header_compile
2532 # ac_fn_c_check_func LINENO FUNC VAR
2533 # ----------------------------------
2534 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2535 ac_fn_c_check_func ()
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539 $as_echo_n "checking for $2... " >&6; }
2540 if eval \${$3+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2545 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2547 #define $2 innocuous_$2
2549 /* System header to define __stub macros and hopefully few prototypes,
2550 which can conflict with char $2 (); below.
2551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2552 <limits.h> exists even on freestanding compilers. */
2554 #ifdef __STDC__
2555 # include <limits.h>
2556 #else
2557 # include <assert.h>
2558 #endif
2560 #undef $2
2562 /* Override any GCC internal prototype to avoid an error.
2563 Use char because int might match the return type of a GCC
2564 builtin and then its argument prototype would still apply. */
2565 #ifdef __cplusplus
2566 extern "C"
2567 #endif
2568 char $2 ();
2569 /* The GNU C library defines this for functions which it implements
2570 to always fail with ENOSYS. Some functions are actually named
2571 something starting with __ and the normal name is an alias. */
2572 #if defined __stub_$2 || defined __stub___$2
2573 choke me
2574 #endif
2577 main ()
2579 return $2 ();
2581 return 0;
2583 _ACEOF
2584 if ac_fn_c_try_link "$LINENO"; then :
2585 eval "$3=yes"
2586 else
2587 eval "$3=no"
2589 rm -f core conftest.err conftest.$ac_objext \
2590 conftest$ac_exeext conftest.$ac_ext
2592 eval ac_res=\$$3
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594 $as_echo "$ac_res" >&6; }
2595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2597 } # ac_fn_c_check_func
2599 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2600 # ----------------------------------------------------
2601 # Tries to find if the field MEMBER exists in type AGGR, after including
2602 # INCLUDES, setting cache variable VAR accordingly.
2603 ac_fn_c_check_member ()
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2607 $as_echo_n "checking for $2.$3... " >&6; }
2608 if eval \${$4+:} false; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612 /* end confdefs.h. */
2615 main ()
2617 static $2 ac_aggr;
2618 if (ac_aggr.$3)
2619 return 0;
2621 return 0;
2623 _ACEOF
2624 if ac_fn_c_try_compile "$LINENO"; then :
2625 eval "$4=yes"
2626 else
2627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628 /* end confdefs.h. */
2631 main ()
2633 static $2 ac_aggr;
2634 if (sizeof ac_aggr.$3)
2635 return 0;
2637 return 0;
2639 _ACEOF
2640 if ac_fn_c_try_compile "$LINENO"; then :
2641 eval "$4=yes"
2642 else
2643 eval "$4=no"
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 eval ac_res=\$$4
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2651 $as_echo "$ac_res" >&6; }
2652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2654 } # ac_fn_c_check_member
2656 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2657 # -------------------------------------------
2658 # Tests whether TYPE exists after having included INCLUDES, setting cache
2659 # variable VAR accordingly.
2660 ac_fn_c_check_type ()
2662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2664 $as_echo_n "checking for $2... " >&6; }
2665 if eval \${$3+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 eval "$3=no"
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h. */
2673 main ()
2675 if (sizeof ($2))
2676 return 0;
2678 return 0;
2680 _ACEOF
2681 if ac_fn_c_try_compile "$LINENO"; then :
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2686 main ()
2688 if (sizeof (($2)))
2689 return 0;
2691 return 0;
2693 _ACEOF
2694 if ac_fn_c_try_compile "$LINENO"; then :
2696 else
2697 eval "$3=yes"
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 eval ac_res=\$$3
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2705 $as_echo "$ac_res" >&6; }
2706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2708 } # ac_fn_c_check_type
2709 cat >config.log <<_ACEOF
2710 This file contains any messages produced by compilers while
2711 running configure, to aid debugging if configure makes a mistake.
2713 It was created by Wine $as_me 1.7.10, which was
2714 generated by GNU Autoconf 2.69. Invocation command line was
2716 $ $0 $@
2718 _ACEOF
2719 exec 5>>config.log
2721 cat <<_ASUNAME
2722 ## --------- ##
2723 ## Platform. ##
2724 ## --------- ##
2726 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2727 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2728 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2729 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2730 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2732 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2733 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2735 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2736 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2737 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2738 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2739 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2740 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2741 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2743 _ASUNAME
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 $as_echo "PATH: $as_dir"
2751 done
2752 IFS=$as_save_IFS
2754 } >&5
2756 cat >&5 <<_ACEOF
2759 ## ----------- ##
2760 ## Core tests. ##
2761 ## ----------- ##
2763 _ACEOF
2766 # Keep a trace of the command line.
2767 # Strip out --no-create and --no-recursion so they do not pile up.
2768 # Strip out --silent because we don't want to record it for future runs.
2769 # Also quote any args containing shell meta-characters.
2770 # Make two passes to allow for proper duplicate-argument suppression.
2771 ac_configure_args=
2772 ac_configure_args0=
2773 ac_configure_args1=
2774 ac_must_keep_next=false
2775 for ac_pass in 1 2
2777 for ac_arg
2779 case $ac_arg in
2780 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2782 | -silent | --silent | --silen | --sile | --sil)
2783 continue ;;
2784 *\'*)
2785 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2786 esac
2787 case $ac_pass in
2788 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2790 as_fn_append ac_configure_args1 " '$ac_arg'"
2791 if test $ac_must_keep_next = true; then
2792 ac_must_keep_next=false # Got value, back to normal.
2793 else
2794 case $ac_arg in
2795 *=* | --config-cache | -C | -disable-* | --disable-* \
2796 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2797 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2798 | -with-* | --with-* | -without-* | --without-* | --x)
2799 case "$ac_configure_args0 " in
2800 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2801 esac
2803 -* ) ac_must_keep_next=true ;;
2804 esac
2806 as_fn_append ac_configure_args " '$ac_arg'"
2808 esac
2809 done
2810 done
2811 { ac_configure_args0=; unset ac_configure_args0;}
2812 { ac_configure_args1=; unset ac_configure_args1;}
2814 # When interrupted or exit'd, cleanup temporary files, and complete
2815 # config.log. We remove comments because anyway the quotes in there
2816 # would cause problems or look ugly.
2817 # WARNING: Use '\'' to represent an apostrophe within the trap.
2818 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2819 trap 'exit_status=$?
2820 # Save into config.log some information that might help in debugging.
2822 echo
2824 $as_echo "## ---------------- ##
2825 ## Cache variables. ##
2826 ## ---------------- ##"
2827 echo
2828 # The following way of writing the cache mishandles newlines in values,
2830 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2831 eval ac_val=\$$ac_var
2832 case $ac_val in #(
2833 *${as_nl}*)
2834 case $ac_var in #(
2835 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2836 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2837 esac
2838 case $ac_var in #(
2839 _ | IFS | as_nl) ;; #(
2840 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2841 *) { eval $ac_var=; unset $ac_var;} ;;
2842 esac ;;
2843 esac
2844 done
2845 (set) 2>&1 |
2846 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2847 *${as_nl}ac_space=\ *)
2848 sed -n \
2849 "s/'\''/'\''\\\\'\'''\''/g;
2850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2851 ;; #(
2853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2855 esac |
2856 sort
2858 echo
2860 $as_echo "## ----------------- ##
2861 ## Output variables. ##
2862 ## ----------------- ##"
2863 echo
2864 for ac_var in $ac_subst_vars
2866 eval ac_val=\$$ac_var
2867 case $ac_val in
2868 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2869 esac
2870 $as_echo "$ac_var='\''$ac_val'\''"
2871 done | sort
2872 echo
2874 if test -n "$ac_subst_files"; then
2875 $as_echo "## ------------------- ##
2876 ## File substitutions. ##
2877 ## ------------------- ##"
2878 echo
2879 for ac_var in $ac_subst_files
2881 eval ac_val=\$$ac_var
2882 case $ac_val in
2883 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2884 esac
2885 $as_echo "$ac_var='\''$ac_val'\''"
2886 done | sort
2887 echo
2890 if test -s confdefs.h; then
2891 $as_echo "## ----------- ##
2892 ## confdefs.h. ##
2893 ## ----------- ##"
2894 echo
2895 cat confdefs.h
2896 echo
2898 test "$ac_signal" != 0 &&
2899 $as_echo "$as_me: caught signal $ac_signal"
2900 $as_echo "$as_me: exit $exit_status"
2901 } >&5
2902 rm -f core *.core core.conftest.* &&
2903 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2904 exit $exit_status
2906 for ac_signal in 1 2 13 15; do
2907 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2908 done
2909 ac_signal=0
2911 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2912 rm -f -r conftest* confdefs.h
2914 $as_echo "/* confdefs.h */" > confdefs.h
2916 # Predefined preprocessor variables.
2918 cat >>confdefs.h <<_ACEOF
2919 #define PACKAGE_NAME "$PACKAGE_NAME"
2920 _ACEOF
2922 cat >>confdefs.h <<_ACEOF
2923 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2924 _ACEOF
2926 cat >>confdefs.h <<_ACEOF
2927 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2928 _ACEOF
2930 cat >>confdefs.h <<_ACEOF
2931 #define PACKAGE_STRING "$PACKAGE_STRING"
2932 _ACEOF
2934 cat >>confdefs.h <<_ACEOF
2935 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2936 _ACEOF
2938 cat >>confdefs.h <<_ACEOF
2939 #define PACKAGE_URL "$PACKAGE_URL"
2940 _ACEOF
2943 # Let the site file select an alternate cache file if it wants to.
2944 # Prefer an explicitly selected file to automatically selected ones.
2945 ac_site_file1=NONE
2946 ac_site_file2=NONE
2947 if test -n "$CONFIG_SITE"; then
2948 # We do not want a PATH search for config.site.
2949 case $CONFIG_SITE in #((
2950 -*) ac_site_file1=./$CONFIG_SITE;;
2951 */*) ac_site_file1=$CONFIG_SITE;;
2952 *) ac_site_file1=./$CONFIG_SITE;;
2953 esac
2954 elif test "x$prefix" != xNONE; then
2955 ac_site_file1=$prefix/share/config.site
2956 ac_site_file2=$prefix/etc/config.site
2957 else
2958 ac_site_file1=$ac_default_prefix/share/config.site
2959 ac_site_file2=$ac_default_prefix/etc/config.site
2961 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2963 test "x$ac_site_file" = xNONE && continue
2964 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2966 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2967 sed 's/^/| /' "$ac_site_file" >&5
2968 . "$ac_site_file" \
2969 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971 as_fn_error $? "failed to load site script $ac_site_file
2972 See \`config.log' for more details" "$LINENO" 5; }
2974 done
2976 if test -r "$cache_file"; then
2977 # Some versions of bash will fail to source /dev/null (special files
2978 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2979 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2981 $as_echo "$as_me: loading cache $cache_file" >&6;}
2982 case $cache_file in
2983 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2984 *) . "./$cache_file";;
2985 esac
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2989 $as_echo "$as_me: creating cache $cache_file" >&6;}
2990 >$cache_file
2993 # Check that the precious variables saved in the cache have kept the same
2994 # value.
2995 ac_cache_corrupted=false
2996 for ac_var in $ac_precious_vars; do
2997 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2998 eval ac_new_set=\$ac_env_${ac_var}_set
2999 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3000 eval ac_new_val=\$ac_env_${ac_var}_value
3001 case $ac_old_set,$ac_new_set in
3002 set,)
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3004 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3005 ac_cache_corrupted=: ;;
3006 ,set)
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3008 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3009 ac_cache_corrupted=: ;;
3010 ,);;
3012 if test "x$ac_old_val" != "x$ac_new_val"; then
3013 # differences in whitespace do not lead to failure.
3014 ac_old_val_w=`echo x $ac_old_val`
3015 ac_new_val_w=`echo x $ac_new_val`
3016 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3018 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3019 ac_cache_corrupted=:
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3022 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3023 eval $ac_var=\$ac_old_val
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3026 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3028 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3029 fi;;
3030 esac
3031 # Pass precious variables to config.status.
3032 if test "$ac_new_set" = set; then
3033 case $ac_new_val in
3034 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3035 *) ac_arg=$ac_var=$ac_new_val ;;
3036 esac
3037 case " $ac_configure_args " in
3038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3039 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3040 esac
3042 done
3043 if $ac_cache_corrupted; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3047 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3048 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3050 ## -------------------- ##
3051 ## Main body of script. ##
3052 ## -------------------- ##
3054 ac_ext=c
3055 ac_cpp='$CPP $CPPFLAGS'
3056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062 ac_config_headers="$ac_config_headers include/config.h"
3064 ac_aux_dir=
3065 for ac_dir in tools "$srcdir"/tools; do
3066 if test -f "$ac_dir/install-sh"; then
3067 ac_aux_dir=$ac_dir
3068 ac_install_sh="$ac_aux_dir/install-sh -c"
3069 break
3070 elif test -f "$ac_dir/install.sh"; then
3071 ac_aux_dir=$ac_dir
3072 ac_install_sh="$ac_aux_dir/install.sh -c"
3073 break
3074 elif test -f "$ac_dir/shtool"; then
3075 ac_aux_dir=$ac_dir
3076 ac_install_sh="$ac_aux_dir/shtool install -c"
3077 break
3079 done
3080 if test -z "$ac_aux_dir"; then
3081 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3084 # These three variables are undocumented and unsupported,
3085 # and are intended to be withdrawn in a future Autoconf release.
3086 # They can cause serious problems if a builder's source tree is in a directory
3087 # whose full name contains unusual characters.
3088 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3089 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3090 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3094 libwine_version="1.0"
3098 # Check whether --enable-win16 was given.
3099 if test "${enable_win16+set}" = set; then :
3100 enableval=$enable_win16;
3103 # Check whether --enable-win64 was given.
3104 if test "${enable_win64+set}" = set; then :
3105 enableval=$enable_win64;
3108 # Check whether --enable-tests was given.
3109 if test "${enable_tests+set}" = set; then :
3110 enableval=$enable_tests;
3113 # Check whether --enable-maintainer-mode was given.
3114 if test "${enable_maintainer_mode+set}" = set; then :
3115 enableval=$enable_maintainer_mode;
3120 # Check whether --with-alsa was given.
3121 if test "${with_alsa+set}" = set; then :
3122 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
3126 # Check whether --with-capi was given.
3127 if test "${with_capi+set}" = set; then :
3128 withval=$with_capi;
3132 # Check whether --with-cms was given.
3133 if test "${with_cms+set}" = set; then :
3134 withval=$with_cms;
3138 # Check whether --with-coreaudio was given.
3139 if test "${with_coreaudio+set}" = set; then :
3140 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
3144 # Check whether --with-cups was given.
3145 if test "${with_cups+set}" = set; then :
3146 withval=$with_cups;
3150 # Check whether --with-curses was given.
3151 if test "${with_curses+set}" = set; then :
3152 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
3156 # Check whether --with-dbus was given.
3157 if test "${with_dbus+set}" = set; then :
3158 withval=$with_dbus;
3162 # Check whether --with-fontconfig was given.
3163 if test "${with_fontconfig+set}" = set; then :
3164 withval=$with_fontconfig;
3168 # Check whether --with-freetype was given.
3169 if test "${with_freetype+set}" = set; then :
3170 withval=$with_freetype;
3174 # Check whether --with-gettext was given.
3175 if test "${with_gettext+set}" = set; then :
3176 withval=$with_gettext;
3180 # Check whether --with-gettextpo was given.
3181 if test "${with_gettextpo+set}" = set; then :
3182 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
3186 # Check whether --with-gphoto was given.
3187 if test "${with_gphoto+set}" = set; then :
3188 withval=$with_gphoto;
3192 # Check whether --with-glu was given.
3193 if test "${with_glu+set}" = set; then :
3194 withval=$with_glu;
3198 # Check whether --with-gnutls was given.
3199 if test "${with_gnutls+set}" = set; then :
3200 withval=$with_gnutls;
3204 # Check whether --with-gsm was given.
3205 if test "${with_gsm+set}" = set; then :
3206 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
3210 # Check whether --with-gstreamer was given.
3211 if test "${with_gstreamer+set}" = set; then :
3212 withval=$with_gstreamer;
3216 # Check whether --with-hal was given.
3217 if test "${with_hal+set}" = set; then :
3218 withval=$with_hal;
3222 # Check whether --with-jpeg was given.
3223 if test "${with_jpeg+set}" = set; then :
3224 withval=$with_jpeg;
3228 # Check whether --with-ldap was given.
3229 if test "${with_ldap+set}" = set; then :
3230 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
3234 # Check whether --with-mpg123 was given.
3235 if test "${with_mpg123+set}" = set; then :
3236 withval=$with_mpg123;
3240 # Check whether --with-netapi was given.
3241 if test "${with_netapi+set}" = set; then :
3242 withval=$with_netapi;
3246 # Check whether --with-openal was given.
3247 if test "${with_openal+set}" = set; then :
3248 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
3252 # Check whether --with-opencl was given.
3253 if test "${with_opencl+set}" = set; then :
3254 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
3258 # Check whether --with-opengl was given.
3259 if test "${with_opengl+set}" = set; then :
3260 withval=$with_opengl;
3264 # Check whether --with-osmesa was given.
3265 if test "${with_osmesa+set}" = set; then :
3266 withval=$with_osmesa;
3270 # Check whether --with-oss was given.
3271 if test "${with_oss+set}" = set; then :
3272 withval=$with_oss;
3276 # Check whether --with-png was given.
3277 if test "${with_png+set}" = set; then :
3278 withval=$with_png;
3282 # Check whether --with-pthread was given.
3283 if test "${with_pthread+set}" = set; then :
3284 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
3288 # Check whether --with-sane was given.
3289 if test "${with_sane+set}" = set; then :
3290 withval=$with_sane;
3294 # Check whether --with-tiff was given.
3295 if test "${with_tiff+set}" = set; then :
3296 withval=$with_tiff;
3300 # Check whether --with-v4l was given.
3301 if test "${with_v4l+set}" = set; then :
3302 withval=$with_v4l;
3306 # Check whether --with-xcomposite was given.
3307 if test "${with_xcomposite+set}" = set; then :
3308 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
3312 # Check whether --with-xcursor was given.
3313 if test "${with_xcursor+set}" = set; then :
3314 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
3318 # Check whether --with-xinerama was given.
3319 if test "${with_xinerama+set}" = set; then :
3320 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
3324 # Check whether --with-xinput was given.
3325 if test "${with_xinput+set}" = set; then :
3326 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
3330 # Check whether --with-xinput2 was given.
3331 if test "${with_xinput2+set}" = set; then :
3332 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
3336 # Check whether --with-xml was given.
3337 if test "${with_xml+set}" = set; then :
3338 withval=$with_xml;
3342 # Check whether --with-xrandr was given.
3343 if test "${with_xrandr+set}" = set; then :
3344 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
3348 # Check whether --with-xrender was given.
3349 if test "${with_xrender+set}" = set; then :
3350 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
3354 # Check whether --with-xshape was given.
3355 if test "${with_xshape+set}" = set; then :
3356 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
3360 # Check whether --with-xshm was given.
3361 if test "${with_xshm+set}" = set; then :
3362 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
3366 # Check whether --with-xslt was given.
3367 if test "${with_xslt+set}" = set; then :
3368 withval=$with_xslt;
3372 # Check whether --with-xxf86vm was given.
3373 if test "${with_xxf86vm+set}" = set; then :
3374 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
3378 # Check whether --with-zlib was given.
3379 if test "${with_zlib+set}" = set; then :
3380 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
3385 # Check whether --with-wine-tools was given.
3386 if test "${with_wine_tools+set}" = set; then :
3387 withval=$with_wine_tools;
3391 # Check whether --with-wine64 was given.
3392 if test "${with_wine64+set}" = set; then :
3393 withval=$with_wine64;
3397 # Make sure we can run config.sub.
3398 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3399 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3402 $as_echo_n "checking build system type... " >&6; }
3403 if ${ac_cv_build+:} false; then :
3404 $as_echo_n "(cached) " >&6
3405 else
3406 ac_build_alias=$build_alias
3407 test "x$ac_build_alias" = x &&
3408 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3409 test "x$ac_build_alias" = x &&
3410 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3416 $as_echo "$ac_cv_build" >&6; }
3417 case $ac_cv_build in
3418 *-*-*) ;;
3419 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3420 esac
3421 build=$ac_cv_build
3422 ac_save_IFS=$IFS; IFS='-'
3423 set x $ac_cv_build
3424 shift
3425 build_cpu=$1
3426 build_vendor=$2
3427 shift; shift
3428 # Remember, the first character of IFS is used to create $*,
3429 # except with old shells:
3430 build_os=$*
3431 IFS=$ac_save_IFS
3432 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3436 $as_echo_n "checking host system type... " >&6; }
3437 if ${ac_cv_host+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 if test "x$host_alias" = x; then
3441 ac_cv_host=$ac_cv_build
3442 else
3443 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3444 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3449 $as_echo "$ac_cv_host" >&6; }
3450 case $ac_cv_host in
3451 *-*-*) ;;
3452 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3453 esac
3454 host=$ac_cv_host
3455 ac_save_IFS=$IFS; IFS='-'
3456 set x $ac_cv_host
3457 shift
3458 host_cpu=$1
3459 host_vendor=$2
3460 shift; shift
3461 # Remember, the first character of IFS is used to create $*,
3462 # except with old shells:
3463 host_os=$*
3464 IFS=$ac_save_IFS
3465 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3469 case "$srcdir" in
3470 .) ;;
3471 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
3472 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
3473 You need to run 'make distclean' in the source tree first." "$LINENO" 5
3474 fi ;;
3475 esac
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3479 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3480 set x ${MAKE-make}
3481 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3482 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 cat >conftest.make <<\_ACEOF
3486 SHELL = /bin/sh
3487 all:
3488 @echo '@@@%%%=$(MAKE)=@@@%%%'
3489 _ACEOF
3490 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3491 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3492 *@@@%%%=?*=@@@%%%*)
3493 eval ac_cv_prog_make_${ac_make}_set=yes;;
3495 eval ac_cv_prog_make_${ac_make}_set=no;;
3496 esac
3497 rm -f conftest.make
3499 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501 $as_echo "yes" >&6; }
3502 SET_MAKE=
3503 else
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3506 SET_MAKE="MAKE=${MAKE-make}"
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if ${ac_cv_prog_CC+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 if test -n "$CC"; then
3523 ac_cv_prog_CC="$CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3536 done
3537 done
3538 IFS=$as_save_IFS
3542 CC=$ac_cv_prog_CC
3543 if test -n "$CC"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3545 $as_echo "$CC" >&6; }
3546 else
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3553 if test -z "$ac_cv_prog_CC"; then
3554 ac_ct_CC=$CC
3555 # Extract the first word of "gcc", so it can be a program name with args.
3556 set dummy gcc; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -n "$ac_ct_CC"; then
3563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3572 ac_cv_prog_ac_ct_CC="gcc"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3576 done
3577 done
3578 IFS=$as_save_IFS
3582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3583 if test -n "$ac_ct_CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3585 $as_echo "$ac_ct_CC" >&6; }
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3591 if test "x$ac_ct_CC" = x; then
3592 CC=""
3593 else
3594 case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3599 esac
3600 CC=$ac_ct_CC
3602 else
3603 CC="$ac_cv_prog_CC"
3606 if test -z "$CC"; then
3607 if test -n "$ac_tool_prefix"; then
3608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3609 set dummy ${ac_tool_prefix}cc; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if ${ac_cv_prog_CC+:} false; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3625 ac_cv_prog_CC="${ac_tool_prefix}cc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3629 done
3630 done
3631 IFS=$as_save_IFS
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3647 if test -z "$CC"; then
3648 # Extract the first word of "cc", so it can be a program name with args.
3649 set dummy cc; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if ${ac_cv_prog_CC+:} false; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC="$CC" # Let the user override the test.
3657 else
3658 ac_prog_rejected=no
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3667 ac_prog_rejected=yes
3668 continue
3670 ac_cv_prog_CC="cc"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3674 done
3675 done
3676 IFS=$as_save_IFS
3678 if test $ac_prog_rejected = yes; then
3679 # We found a bogon in the path, so make sure we never use it.
3680 set dummy $ac_cv_prog_CC
3681 shift
3682 if test $# != 0; then
3683 # We chose a different compiler from the bogus one.
3684 # However, it has the same basename, so the bogon will be chosen
3685 # first if we set CC to just the basename; use the full file name.
3686 shift
3687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3692 CC=$ac_cv_prog_CC
3693 if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3696 else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3703 if test -z "$CC"; then
3704 if test -n "$ac_tool_prefix"; then
3705 for ac_prog in cl.exe
3707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if ${ac_cv_prog_CC+:} false; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC="$CC" # Let the user override the test.
3716 else
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 break 2
3728 done
3729 done
3730 IFS=$as_save_IFS
3734 CC=$ac_cv_prog_CC
3735 if test -n "$CC"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 $as_echo "$CC" >&6; }
3738 else
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3744 test -n "$CC" && break
3745 done
3747 if test -z "$CC"; then
3748 ac_ct_CC=$CC
3749 for ac_prog in cl.exe
3751 # Extract the first word of "$ac_prog", so it can be a program name with args.
3752 set dummy $ac_prog; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 if test -n "$ac_ct_CC"; then
3759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768 ac_cv_prog_ac_ct_CC="$ac_prog"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 break 2
3772 done
3773 done
3774 IFS=$as_save_IFS
3778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3779 if test -n "$ac_ct_CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3781 $as_echo "$ac_ct_CC" >&6; }
3782 else
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3788 test -n "$ac_ct_CC" && break
3789 done
3791 if test "x$ac_ct_CC" = x; then
3792 CC=""
3793 else
3794 case $cross_compiling:$ac_tool_warned in
3795 yes:)
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3798 ac_tool_warned=yes ;;
3799 esac
3800 CC=$ac_ct_CC
3807 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error $? "no acceptable C compiler found in \$PATH
3810 See \`config.log' for more details" "$LINENO" 5; }
3812 # Provide some information about the compiler.
3813 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3814 set X $ac_compile
3815 ac_compiler=$2
3816 for ac_option in --version -v -V -qversion; do
3817 { { ac_try="$ac_compiler $ac_option >&5"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3825 ac_status=$?
3826 if test -s conftest.err; then
3827 sed '10a\
3828 ... rest of stderr output deleted ...
3829 10q' conftest.err >conftest.er1
3830 cat conftest.er1 >&5
3832 rm -f conftest.er1 conftest.err
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }
3835 done
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3841 main ()
3845 return 0;
3847 _ACEOF
3848 ac_clean_files_save=$ac_clean_files
3849 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3850 # Try to create an executable without -o first, disregard a.out.
3851 # It will help us diagnose broken compilers, and finding out an intuition
3852 # of exeext.
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3854 $as_echo_n "checking whether the C compiler works... " >&6; }
3855 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3857 # The possible output files:
3858 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3860 ac_rmfiles=
3861 for ac_file in $ac_files
3863 case $ac_file in
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3865 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3866 esac
3867 done
3868 rm -f $ac_rmfiles
3870 if { { ac_try="$ac_link_default"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_link_default") 2>&5
3878 ac_status=$?
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; then :
3881 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3882 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3883 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3884 # so that the user can short-circuit this test for compilers unknown to
3885 # Autoconf.
3886 for ac_file in $ac_files ''
3888 test -f "$ac_file" || continue
3889 case $ac_file in
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3892 [ab].out )
3893 # We found the default executable, but exeext='' is most
3894 # certainly right.
3895 break;;
3896 *.* )
3897 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3898 then :; else
3899 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3901 # We set ac_cv_exeext here because the later test for it is not
3902 # safe: cross compilers may not add the suffix if given an `-o'
3903 # argument, so we may need to know it at that point already.
3904 # Even if this section looks crufty: it has the advantage of
3905 # actually working.
3906 break;;
3908 break;;
3909 esac
3910 done
3911 test "$ac_cv_exeext" = no && ac_cv_exeext=
3913 else
3914 ac_file=''
3916 if test -z "$ac_file"; then :
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3919 $as_echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3924 as_fn_error 77 "C compiler cannot create executables
3925 See \`config.log' for more details" "$LINENO" 5; }
3926 else
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3928 $as_echo "yes" >&6; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3931 $as_echo_n "checking for C compiler default output file name... " >&6; }
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3933 $as_echo "$ac_file" >&6; }
3934 ac_exeext=$ac_cv_exeext
3936 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3937 ac_clean_files=$ac_clean_files_save
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3939 $as_echo_n "checking for suffix of executables... " >&6; }
3940 if { { ac_try="$ac_link"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3948 ac_status=$?
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }; then :
3951 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3952 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3953 # work properly (i.e., refer to `conftest.exe'), while it won't with
3954 # `rm'.
3955 for ac_file in conftest.exe conftest conftest.*; do
3956 test -f "$ac_file" || continue
3957 case $ac_file in
3958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3959 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960 break;;
3961 * ) break;;
3962 esac
3963 done
3964 else
3965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3967 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3968 See \`config.log' for more details" "$LINENO" 5; }
3970 rm -f conftest conftest$ac_cv_exeext
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3972 $as_echo "$ac_cv_exeext" >&6; }
3974 rm -f conftest.$ac_ext
3975 EXEEXT=$ac_cv_exeext
3976 ac_exeext=$EXEEXT
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3979 #include <stdio.h>
3981 main ()
3983 FILE *f = fopen ("conftest.out", "w");
3984 return ferror (f) || fclose (f) != 0;
3987 return 0;
3989 _ACEOF
3990 ac_clean_files="$ac_clean_files conftest.out"
3991 # Check that the compiler produces executables we can run. If not, either
3992 # the compiler is broken, or we cross compile.
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3994 $as_echo_n "checking whether we are cross compiling... " >&6; }
3995 if test "$cross_compiling" != yes; then
3996 { { ac_try="$ac_link"
3997 case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000 esac
4001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4002 $as_echo "$ac_try_echo"; } >&5
4003 (eval "$ac_link") 2>&5
4004 ac_status=$?
4005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4006 test $ac_status = 0; }
4007 if { ac_try='./conftest$ac_cv_exeext'
4008 { { case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_try") 2>&5
4015 ac_status=$?
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; }; then
4018 cross_compiling=no
4019 else
4020 if test "$cross_compiling" = maybe; then
4021 cross_compiling=yes
4022 else
4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error $? "cannot run C compiled programs.
4026 If you meant to cross compile, use \`--host'.
4027 See \`config.log' for more details" "$LINENO" 5; }
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4032 $as_echo "$cross_compiling" >&6; }
4034 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4035 ac_clean_files=$ac_clean_files_save
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4037 $as_echo_n "checking for suffix of object files... " >&6; }
4038 if ${ac_cv_objext+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4045 main ()
4049 return 0;
4051 _ACEOF
4052 rm -f conftest.o conftest.obj
4053 if { { ac_try="$ac_compile"
4054 case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059 $as_echo "$ac_try_echo"; } >&5
4060 (eval "$ac_compile") 2>&5
4061 ac_status=$?
4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063 test $ac_status = 0; }; then :
4064 for ac_file in conftest.o conftest.obj conftest.*; do
4065 test -f "$ac_file" || continue;
4066 case $ac_file in
4067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4068 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4069 break;;
4070 esac
4071 done
4072 else
4073 $as_echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4078 as_fn_error $? "cannot compute suffix of object files: cannot compile
4079 See \`config.log' for more details" "$LINENO" 5; }
4081 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4084 $as_echo "$ac_cv_objext" >&6; }
4085 OBJEXT=$ac_cv_objext
4086 ac_objext=$OBJEXT
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4088 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4089 if ${ac_cv_c_compiler_gnu+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4096 main ()
4098 #ifndef __GNUC__
4099 choke me
4100 #endif
4103 return 0;
4105 _ACEOF
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_compiler_gnu=yes
4108 else
4109 ac_compiler_gnu=no
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4116 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4117 if test $ac_compiler_gnu = yes; then
4118 GCC=yes
4119 else
4120 GCC=
4122 ac_test_CFLAGS=${CFLAGS+set}
4123 ac_save_CFLAGS=$CFLAGS
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4125 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4126 if ${ac_cv_prog_cc_g+:} false; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 ac_save_c_werror_flag=$ac_c_werror_flag
4130 ac_c_werror_flag=yes
4131 ac_cv_prog_cc_g=no
4132 CFLAGS="-g"
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4137 main ()
4141 return 0;
4143 _ACEOF
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_cv_prog_cc_g=yes
4146 else
4147 CFLAGS=""
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4152 main ()
4156 return 0;
4158 _ACEOF
4159 if ac_fn_c_try_compile "$LINENO"; then :
4161 else
4162 ac_c_werror_flag=$ac_save_c_werror_flag
4163 CFLAGS="-g"
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4168 main ()
4172 return 0;
4174 _ACEOF
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176 ac_cv_prog_cc_g=yes
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 ac_c_werror_flag=$ac_save_c_werror_flag
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4186 $as_echo "$ac_cv_prog_cc_g" >&6; }
4187 if test "$ac_test_CFLAGS" = set; then
4188 CFLAGS=$ac_save_CFLAGS
4189 elif test $ac_cv_prog_cc_g = yes; then
4190 if test "$GCC" = yes; then
4191 CFLAGS="-g -O2"
4192 else
4193 CFLAGS="-g"
4195 else
4196 if test "$GCC" = yes; then
4197 CFLAGS="-O2"
4198 else
4199 CFLAGS=
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4203 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4204 if ${ac_cv_prog_cc_c89+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 ac_cv_prog_cc_c89=no
4208 ac_save_CC=$CC
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211 #include <stdarg.h>
4212 #include <stdio.h>
4213 struct stat;
4214 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4215 struct buf { int x; };
4216 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4217 static char *e (p, i)
4218 char **p;
4219 int i;
4221 return p[i];
4223 static char *f (char * (*g) (char **, int), char **p, ...)
4225 char *s;
4226 va_list v;
4227 va_start (v,p);
4228 s = g (p, va_arg (v,int));
4229 va_end (v);
4230 return s;
4233 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4234 function prototypes and stuff, but not '\xHH' hex character constants.
4235 These don't provoke an error unfortunately, instead are silently treated
4236 as 'x'. The following induces an error, until -std is added to get
4237 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4238 array size at least. It's necessary to write '\x00'==0 to get something
4239 that's true only with -std. */
4240 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4242 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4243 inside strings and character constants. */
4244 #define FOO(x) 'x'
4245 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4247 int test (int i, double x);
4248 struct s1 {int (*f) (int a);};
4249 struct s2 {int (*f) (double a);};
4250 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4251 int argc;
4252 char **argv;
4254 main ()
4256 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4258 return 0;
4260 _ACEOF
4261 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4262 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4264 CC="$ac_save_CC $ac_arg"
4265 if ac_fn_c_try_compile "$LINENO"; then :
4266 ac_cv_prog_cc_c89=$ac_arg
4268 rm -f core conftest.err conftest.$ac_objext
4269 test "x$ac_cv_prog_cc_c89" != "xno" && break
4270 done
4271 rm -f conftest.$ac_ext
4272 CC=$ac_save_CC
4275 # AC_CACHE_VAL
4276 case "x$ac_cv_prog_cc_c89" in
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4279 $as_echo "none needed" >&6; } ;;
4280 xno)
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4282 $as_echo "unsupported" >&6; } ;;
4284 CC="$CC $ac_cv_prog_cc_c89"
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4286 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4287 esac
4288 if test "x$ac_cv_prog_cc_c89" != xno; then :
4292 ac_ext=c
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298 ac_ext=cpp
4299 ac_cpp='$CXXCPP $CPPFLAGS'
4300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4303 if test -z "$CXX"; then
4304 if test -n "$CCC"; then
4305 CXX=$CCC
4306 else
4307 if test -n "$ac_tool_prefix"; then
4308 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if ${ac_cv_prog_CXX+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 if test -n "$CXX"; then
4318 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4331 done
4332 done
4333 IFS=$as_save_IFS
4337 CXX=$ac_cv_prog_CXX
4338 if test -n "$CXX"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4340 $as_echo "$CXX" >&6; }
4341 else
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4347 test -n "$CXX" && break
4348 done
4350 if test -z "$CXX"; then
4351 ac_ct_CXX=$CXX
4352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4354 # Extract the first word of "$ac_prog", so it can be a program name with args.
4355 set dummy $ac_prog; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 if test -n "$ac_ct_CXX"; then
4362 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_ac_ct_CXX="$ac_prog"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4375 done
4376 done
4377 IFS=$as_save_IFS
4381 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4382 if test -n "$ac_ct_CXX"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4384 $as_echo "$ac_ct_CXX" >&6; }
4385 else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4391 test -n "$ac_ct_CXX" && break
4392 done
4394 if test "x$ac_ct_CXX" = x; then
4395 CXX="g++"
4396 else
4397 case $cross_compiling:$ac_tool_warned in
4398 yes:)
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4401 ac_tool_warned=yes ;;
4402 esac
4403 CXX=$ac_ct_CXX
4409 # Provide some information about the compiler.
4410 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4411 set X $ac_compile
4412 ac_compiler=$2
4413 for ac_option in --version -v -V -qversion; do
4414 { { ac_try="$ac_compiler $ac_option >&5"
4415 case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4418 esac
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4422 ac_status=$?
4423 if test -s conftest.err; then
4424 sed '10a\
4425 ... rest of stderr output deleted ...
4426 10q' conftest.err >conftest.er1
4427 cat conftest.er1 >&5
4429 rm -f conftest.er1 conftest.err
4430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4431 test $ac_status = 0; }
4432 done
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4435 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4436 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4443 main ()
4445 #ifndef __GNUC__
4446 choke me
4447 #endif
4450 return 0;
4452 _ACEOF
4453 if ac_fn_cxx_try_compile "$LINENO"; then :
4454 ac_compiler_gnu=yes
4455 else
4456 ac_compiler_gnu=no
4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4459 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4463 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4464 if test $ac_compiler_gnu = yes; then
4465 GXX=yes
4466 else
4467 GXX=
4469 ac_test_CXXFLAGS=${CXXFLAGS+set}
4470 ac_save_CXXFLAGS=$CXXFLAGS
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4472 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4473 if ${ac_cv_prog_cxx_g+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4477 ac_cxx_werror_flag=yes
4478 ac_cv_prog_cxx_g=no
4479 CXXFLAGS="-g"
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4484 main ()
4488 return 0;
4490 _ACEOF
4491 if ac_fn_cxx_try_compile "$LINENO"; then :
4492 ac_cv_prog_cxx_g=yes
4493 else
4494 CXXFLAGS=""
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4499 main ()
4503 return 0;
4505 _ACEOF
4506 if ac_fn_cxx_try_compile "$LINENO"; then :
4508 else
4509 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4510 CXXFLAGS="-g"
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4515 main ()
4519 return 0;
4521 _ACEOF
4522 if ac_fn_cxx_try_compile "$LINENO"; then :
4523 ac_cv_prog_cxx_g=yes
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4533 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4534 if test "$ac_test_CXXFLAGS" = set; then
4535 CXXFLAGS=$ac_save_CXXFLAGS
4536 elif test $ac_cv_prog_cxx_g = yes; then
4537 if test "$GXX" = yes; then
4538 CXXFLAGS="-g -O2"
4539 else
4540 CXXFLAGS="-g"
4542 else
4543 if test "$GXX" = yes; then
4544 CXXFLAGS="-O2"
4545 else
4546 CXXFLAGS=
4549 ac_ext=c
4550 ac_cpp='$CPP $CPPFLAGS'
4551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4555 if test -n "$ac_tool_prefix"; then
4556 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4557 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559 $as_echo_n "checking for $ac_word... " >&6; }
4560 if ${ac_cv_prog_CPPBIN+:} false; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 if test -n "$CPPBIN"; then
4564 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4577 done
4578 done
4579 IFS=$as_save_IFS
4583 CPPBIN=$ac_cv_prog_CPPBIN
4584 if test -n "$CPPBIN"; then
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4586 $as_echo "$CPPBIN" >&6; }
4587 else
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 $as_echo "no" >&6; }
4594 if test -z "$ac_cv_prog_CPPBIN"; then
4595 ac_ct_CPPBIN=$CPPBIN
4596 # Extract the first word of "cpp", so it can be a program name with args.
4597 set dummy cpp; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test -n "$ac_ct_CPPBIN"; then
4604 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_ac_ct_CPPBIN="cpp"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4617 done
4618 done
4619 IFS=$as_save_IFS
4623 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4624 if test -n "$ac_ct_CPPBIN"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4626 $as_echo "$ac_ct_CPPBIN" >&6; }
4627 else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4632 if test "x$ac_ct_CPPBIN" = x; then
4633 CPPBIN="cpp"
4634 else
4635 case $cross_compiling:$ac_tool_warned in
4636 yes:)
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4639 ac_tool_warned=yes ;;
4640 esac
4641 CPPBIN=$ac_ct_CPPBIN
4643 else
4644 CPPBIN="$ac_cv_prog_CPPBIN"
4648 cat >>confdefs.h <<_ACEOF
4649 #define EXEEXT "$ac_exeext"
4650 _ACEOF
4653 case $host in
4654 *-darwin*)
4655 if test "x$enable_win64" = "xyes"
4656 then
4657 CC="$CC -m64"
4658 CXX="$CXX -m64"
4659 host_cpu="x86_64"
4660 notice_platform="64-bit "
4661 TARGETFLAGS="-m64"
4663 else
4664 CC="$CC -m32"
4665 CXX="$CXX -m32"
4666 host_cpu="i386"
4667 notice_platform="32-bit "
4668 TARGETFLAGS="-m32"
4670 enable_win16=${enable_win16:-yes}
4672 with_fontconfig=${with_fontconfig:-no}
4674 x86_64*)
4675 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4676 then
4677 CC="$CC -m32"
4678 CXX="$CXX -m32"
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4680 $as_echo_n "checking whether $CC works... " >&6; }
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4686 main ()
4690 return 0;
4692 _ACEOF
4693 if ac_fn_c_try_link "$LINENO"; then :
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4695 $as_echo "yes" >&6; }
4696 else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4699 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4701 rm -f core conftest.err conftest.$ac_objext \
4702 conftest$ac_exeext conftest.$ac_ext
4703 host_cpu="i386"
4704 notice_platform="32-bit "
4705 TARGETFLAGS="-m32"
4707 enable_win16=${enable_win16:-yes}
4708 else
4709 if test "x${GCC}" = "xyes"
4710 then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4712 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4715 #include <stdarg.h>
4717 main ()
4719 void func(__builtin_ms_va_list *args);
4721 return 0;
4723 _ACEOF
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4726 $as_echo "yes" >&6; }
4727 else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4730 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 TARGETFLAGS="-m64"
4738 arm*)
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4740 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743 int ac_test(int i) { return i; }
4745 main ()
4747 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4749 return 0;
4751 _ACEOF
4752 if ac_fn_c_try_link "$LINENO"; then :
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4754 $as_echo "yes" >&6; }
4755 else
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4758 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4760 rm -f core conftest.err conftest.$ac_objext \
4761 conftest$ac_exeext conftest.$ac_ext
4762 CFLAGS="$CFLAGS -marm"
4764 *-mingw32*|*-cygwin*)
4765 enable_win16=${enable_win16:-no}
4766 CFLAGS="$CFLAGS -D_WIN32"
4768 i[3456789]86*)
4769 enable_win16=${enable_win16:-yes}
4771 esac
4773 enable_win16=${enable_win16:-no}
4774 enable_win64=${enable_win64:-no}
4776 enable_winetest=${enable_winetest:-$enable_tests}
4778 if test -n "$with_wine64"
4779 then
4780 if test "x$enable_win64" = "xyes"
4781 then
4782 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4783 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4785 enable_fonts=${enable_fonts:-no}
4786 enable_server=${enable_server:-no}
4787 elif test "x$enable_win64" = "xyes"
4788 then
4789 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4793 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4794 if ${wine_cv_toolsdir+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 wine_cv_toolsdir="$with_wine_tools"
4798 if test -z "$with_wine_tools"; then
4799 if test "$cross_compiling" = "yes"; then
4800 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4801 elif test -n "$with_wine64"; then
4802 wine_cv_toolsdir="$with_wine64"
4805 if test -z "$wine_cv_toolsdir"; then
4806 wine_cv_toolsdir="\$(top_builddir)"
4807 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4808 case "$wine_cv_toolsdir" in
4809 /*) ;;
4810 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4811 esac
4812 enable_tools=${enable_tools:-no}
4813 else
4814 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4818 $as_echo "$wine_cv_toolsdir" >&6; }
4819 TOOLSDIR=$wine_cv_toolsdir
4821 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4822 then
4823 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4827 for ac_prog in flex
4829 # Extract the first word of "$ac_prog", so it can be a program name with args.
4830 set dummy $ac_prog; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if ${ac_cv_prog_FLEX+:} false; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 if test -n "$FLEX"; then
4837 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4842 IFS=$as_save_IFS
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4846 ac_cv_prog_FLEX="$ac_prog"
4847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 break 2
4850 done
4851 done
4852 IFS=$as_save_IFS
4856 FLEX=$ac_cv_prog_FLEX
4857 if test -n "$FLEX"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4859 $as_echo "$FLEX" >&6; }
4860 else
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4866 test -n "$FLEX" && break
4867 done
4868 test -n "$FLEX" || FLEX="none"
4870 if test "$FLEX" = "none"
4871 then
4872 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4875 $as_echo_n "checking whether flex is recent enough... " >&6; }
4876 cat >conftest.l <<EOF
4877 %top{
4878 #include "prediluvian.h"
4882 if $FLEX -t conftest.l >/dev/null 2>&5
4883 then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4885 $as_echo "yes" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4889 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4892 for ac_prog in bison
4894 # Extract the first word of "$ac_prog", so it can be a program name with args.
4895 set dummy $ac_prog; ac_word=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if ${ac_cv_prog_BISON+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 if test -n "$BISON"; then
4902 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4911 ac_cv_prog_BISON="$ac_prog"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 break 2
4915 done
4916 done
4917 IFS=$as_save_IFS
4921 BISON=$ac_cv_prog_BISON
4922 if test -n "$BISON"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4924 $as_echo "$BISON" >&6; }
4925 else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4931 test -n "$BISON" && break
4932 done
4933 test -n "$BISON" || BISON="none"
4935 if test "$BISON" = "none"
4936 then
4937 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4940 if test -n "$ac_tool_prefix"; then
4941 for ac_prog in ar gar
4943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if ${ac_cv_prog_AR+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 if test -n "$AR"; then
4951 ac_cv_prog_AR="$AR" # Let the user override the test.
4952 else
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 break 2
4964 done
4965 done
4966 IFS=$as_save_IFS
4970 AR=$ac_cv_prog_AR
4971 if test -n "$AR"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4973 $as_echo "$AR" >&6; }
4974 else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4980 test -n "$AR" && break
4981 done
4983 if test -z "$AR"; then
4984 ac_ct_AR=$AR
4985 for ac_prog in ar gar
4987 # Extract the first word of "$ac_prog", so it can be a program name with args.
4988 set dummy $ac_prog; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 if test -n "$ac_ct_AR"; then
4995 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4996 else
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004 ac_cv_prog_ac_ct_AR="$ac_prog"
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 break 2
5008 done
5009 done
5010 IFS=$as_save_IFS
5014 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5015 if test -n "$ac_ct_AR"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5017 $as_echo "$ac_ct_AR" >&6; }
5018 else
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5024 test -n "$ac_ct_AR" && break
5025 done
5027 if test "x$ac_ct_AR" = x; then
5028 AR="ar"
5029 else
5030 case $cross_compiling:$ac_tool_warned in
5031 yes:)
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5034 ac_tool_warned=yes ;;
5035 esac
5036 AR=$ac_ct_AR
5040 if test -n "$ac_tool_prefix"; then
5041 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5042 set dummy ${ac_tool_prefix}strip; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_STRIP+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$STRIP"; then
5049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5062 done
5063 done
5064 IFS=$as_save_IFS
5068 STRIP=$ac_cv_prog_STRIP
5069 if test -n "$STRIP"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5071 $as_echo "$STRIP" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5079 if test -z "$ac_cv_prog_STRIP"; then
5080 ac_ct_STRIP=$STRIP
5081 # Extract the first word of "strip", so it can be a program name with args.
5082 set dummy strip; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -n "$ac_ct_STRIP"; then
5089 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098 ac_cv_prog_ac_ct_STRIP="strip"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5102 done
5103 done
5104 IFS=$as_save_IFS
5108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5109 if test -n "$ac_ct_STRIP"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5111 $as_echo "$ac_ct_STRIP" >&6; }
5112 else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5117 if test "x$ac_ct_STRIP" = x; then
5118 STRIP="strip"
5119 else
5120 case $cross_compiling:$ac_tool_warned in
5121 yes:)
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5124 ac_tool_warned=yes ;;
5125 esac
5126 STRIP=$ac_ct_STRIP
5128 else
5129 STRIP="$ac_cv_prog_STRIP"
5132 ARFLAGS=rc
5134 if test -n "$ac_tool_prefix"; then
5135 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_RANLIB+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -n "$RANLIB"; then
5143 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5156 done
5157 done
5158 IFS=$as_save_IFS
5162 RANLIB=$ac_cv_prog_RANLIB
5163 if test -n "$RANLIB"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5165 $as_echo "$RANLIB" >&6; }
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5173 if test -z "$ac_cv_prog_RANLIB"; then
5174 ac_ct_RANLIB=$RANLIB
5175 # Extract the first word of "ranlib", so it can be a program name with args.
5176 set dummy ranlib; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if test -n "$ac_ct_RANLIB"; then
5183 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_ac_ct_RANLIB="ranlib"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5196 done
5197 done
5198 IFS=$as_save_IFS
5202 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5203 if test -n "$ac_ct_RANLIB"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5205 $as_echo "$ac_ct_RANLIB" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5211 if test "x$ac_ct_RANLIB" = x; then
5212 RANLIB=":"
5213 else
5214 case $cross_compiling:$ac_tool_warned in
5215 yes:)
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218 ac_tool_warned=yes ;;
5219 esac
5220 RANLIB=$ac_ct_RANLIB
5222 else
5223 RANLIB="$ac_cv_prog_RANLIB"
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5227 $as_echo_n "checking whether ln -s works... " >&6; }
5228 LN_S=$as_ln_s
5229 if test "$LN_S" = "ln -s"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5231 $as_echo "yes" >&6; }
5232 else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5234 $as_echo "no, using $LN_S" >&6; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5238 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5239 if ${ac_cv_path_GREP+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 if test -z "$GREP"; then
5243 ac_path_GREP_found=false
5244 # Loop through the user's path and test for each of PROGNAME-LIST
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_prog in grep ggrep; do
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5253 as_fn_executable_p "$ac_path_GREP" || continue
5254 # Check for GNU ac_path_GREP and select it if it is found.
5255 # Check for GNU $ac_path_GREP
5256 case `"$ac_path_GREP" --version 2>&1` in
5257 *GNU*)
5258 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5260 ac_count=0
5261 $as_echo_n 0123456789 >"conftest.in"
5262 while :
5264 cat "conftest.in" "conftest.in" >"conftest.tmp"
5265 mv "conftest.tmp" "conftest.in"
5266 cp "conftest.in" "conftest.nl"
5267 $as_echo 'GREP' >> "conftest.nl"
5268 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5270 as_fn_arith $ac_count + 1 && ac_count=$as_val
5271 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5272 # Best one so far, save it but keep looking for a better one
5273 ac_cv_path_GREP="$ac_path_GREP"
5274 ac_path_GREP_max=$ac_count
5276 # 10*(2^10) chars as input seems more than enough
5277 test $ac_count -gt 10 && break
5278 done
5279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5280 esac
5282 $ac_path_GREP_found && break 3
5283 done
5284 done
5285 done
5286 IFS=$as_save_IFS
5287 if test -z "$ac_cv_path_GREP"; then
5288 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5290 else
5291 ac_cv_path_GREP=$GREP
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5296 $as_echo "$ac_cv_path_GREP" >&6; }
5297 GREP="$ac_cv_path_GREP"
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5301 $as_echo_n "checking for egrep... " >&6; }
5302 if ${ac_cv_path_EGREP+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5306 then ac_cv_path_EGREP="$GREP -E"
5307 else
5308 if test -z "$EGREP"; then
5309 ac_path_EGREP_found=false
5310 # Loop through the user's path and test for each of PROGNAME-LIST
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_prog in egrep; do
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5319 as_fn_executable_p "$ac_path_EGREP" || continue
5320 # Check for GNU ac_path_EGREP and select it if it is found.
5321 # Check for GNU $ac_path_EGREP
5322 case `"$ac_path_EGREP" --version 2>&1` in
5323 *GNU*)
5324 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5326 ac_count=0
5327 $as_echo_n 0123456789 >"conftest.in"
5328 while :
5330 cat "conftest.in" "conftest.in" >"conftest.tmp"
5331 mv "conftest.tmp" "conftest.in"
5332 cp "conftest.in" "conftest.nl"
5333 $as_echo 'EGREP' >> "conftest.nl"
5334 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5336 as_fn_arith $ac_count + 1 && ac_count=$as_val
5337 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5338 # Best one so far, save it but keep looking for a better one
5339 ac_cv_path_EGREP="$ac_path_EGREP"
5340 ac_path_EGREP_max=$ac_count
5342 # 10*(2^10) chars as input seems more than enough
5343 test $ac_count -gt 10 && break
5344 done
5345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5346 esac
5348 $ac_path_EGREP_found && break 3
5349 done
5350 done
5351 done
5352 IFS=$as_save_IFS
5353 if test -z "$ac_cv_path_EGREP"; then
5354 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5356 else
5357 ac_cv_path_EGREP=$EGREP
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5363 $as_echo "$ac_cv_path_EGREP" >&6; }
5364 EGREP="$ac_cv_path_EGREP"
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5368 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5369 if test -z "$MKDIR_P"; then
5370 if ${ac_cv_path_mkdir+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_prog in mkdir gmkdir; do
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5381 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5382 'mkdir (GNU coreutils) '* | \
5383 'mkdir (coreutils) '* | \
5384 'mkdir (fileutils) '4.1*)
5385 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5386 break 3;;
5387 esac
5388 done
5389 done
5390 done
5391 IFS=$as_save_IFS
5395 test -d ./--version && rmdir ./--version
5396 if test "${ac_cv_path_mkdir+set}" = set; then
5397 MKDIR_P="$ac_cv_path_mkdir -p"
5398 else
5399 # As a last resort, use the slow shell script. Don't cache a
5400 # value for MKDIR_P within a source directory, because that will
5401 # break other packages using the cache if that directory is
5402 # removed, or if the value is a relative name.
5403 MKDIR_P="$ac_install_sh -d"
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5407 $as_echo "$MKDIR_P" >&6; }
5409 # Extract the first word of "ldconfig", so it can be a program name with args.
5410 set dummy ldconfig; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_path_LDCONFIG+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 case $LDCONFIG in
5417 [\\/]* | ?:[\\/]*)
5418 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in /sbin /usr/sbin $PATH
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 break 2
5432 done
5433 done
5434 IFS=$as_save_IFS
5436 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5438 esac
5440 LDCONFIG=$ac_cv_path_LDCONFIG
5441 if test -n "$LDCONFIG"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
5443 $as_echo "$LDCONFIG" >&6; }
5444 else
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5450 for ac_prog in msgfmt
5452 # Extract the first word of "$ac_prog", so it can be a program name with args.
5453 set dummy $ac_prog; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_MSGFMT+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 if test -n "$MSGFMT"; then
5460 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469 ac_cv_prog_MSGFMT="$ac_prog"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5473 done
5474 done
5475 IFS=$as_save_IFS
5479 MSGFMT=$ac_cv_prog_MSGFMT
5480 if test -n "$MSGFMT"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5482 $as_echo "$MSGFMT" >&6; }
5483 else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5489 test -n "$MSGFMT" && break
5490 done
5491 test -n "$MSGFMT" || MSGFMT="false"
5493 if test -n "$ac_tool_prefix"; then
5494 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5495 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 if test -n "$PKG_CONFIG"; then
5502 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5515 done
5516 done
5517 IFS=$as_save_IFS
5521 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5522 if test -n "$PKG_CONFIG"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5524 $as_echo "$PKG_CONFIG" >&6; }
5525 else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5532 if test -n "$ac_cv_prog_PKG_CONFIG"; then
5533 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
5534 elif test "$cross_compiling" != yes; then
5535 unset ac_cv_prog_PKG_CONFIG
5536 # Extract the first word of "pkg-config", so it can be a program name with args.
5537 set dummy pkg-config; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 if test -n "$PKG_CONFIG"; then
5544 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5545 else
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553 ac_cv_prog_PKG_CONFIG="pkg-config"
5554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 break 2
5557 done
5558 done
5559 IFS=$as_save_IFS
5563 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5564 if test -n "$PKG_CONFIG"; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5566 $as_echo "$PKG_CONFIG" >&6; }
5567 else
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5575 if test "x$enable_maintainer_mode" != "xyes"
5576 then
5577 FONTFORGE=""
5578 RSVG=""
5579 CONVERT=""
5580 ICOTOOL=""
5581 else
5582 test "$srcdir" = . || as_fn_error $? "Maintainer mode cannot work out of tree." "$LINENO" 5
5583 for ac_prog in fontforge
5585 # Extract the first word of "$ac_prog", so it can be a program name with args.
5586 set dummy $ac_prog; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if ${ac_cv_prog_FONTFORGE+:} false; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 if test -n "$FONTFORGE"; then
5593 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_prog_FONTFORGE="$ac_prog"
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5606 done
5607 done
5608 IFS=$as_save_IFS
5612 FONTFORGE=$ac_cv_prog_FONTFORGE
5613 if test -n "$FONTFORGE"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5615 $as_echo "$FONTFORGE" >&6; }
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5622 test -n "$FONTFORGE" && break
5623 done
5624 test -n "$FONTFORGE" || FONTFORGE="false"
5626 for ac_prog in rsvg
5628 # Extract the first word of "$ac_prog", so it can be a program name with args.
5629 set dummy $ac_prog; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_prog_RSVG+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 if test -n "$RSVG"; then
5636 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645 ac_cv_prog_RSVG="$ac_prog"
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5649 done
5650 done
5651 IFS=$as_save_IFS
5655 RSVG=$ac_cv_prog_RSVG
5656 if test -n "$RSVG"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5658 $as_echo "$RSVG" >&6; }
5659 else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5665 test -n "$RSVG" && break
5666 done
5667 test -n "$RSVG" || RSVG="false"
5669 for ac_prog in convert
5671 # Extract the first word of "$ac_prog", so it can be a program name with args.
5672 set dummy $ac_prog; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_prog_CONVERT+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 if test -n "$CONVERT"; then
5679 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_prog_CONVERT="$ac_prog"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5692 done
5693 done
5694 IFS=$as_save_IFS
5698 CONVERT=$ac_cv_prog_CONVERT
5699 if test -n "$CONVERT"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5701 $as_echo "$CONVERT" >&6; }
5702 else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5708 test -n "$CONVERT" && break
5709 done
5710 test -n "$CONVERT" || CONVERT="false"
5712 for ac_prog in icotool
5714 # Extract the first word of "$ac_prog", so it can be a program name with args.
5715 set dummy $ac_prog; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_prog_ICOTOOL+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 if test -n "$ICOTOOL"; then
5722 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_ICOTOOL="$ac_prog"
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5735 done
5736 done
5737 IFS=$as_save_IFS
5741 ICOTOOL=$ac_cv_prog_ICOTOOL
5742 if test -n "$ICOTOOL"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5744 $as_echo "$ICOTOOL" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5751 test -n "$ICOTOOL" && break
5752 done
5753 test -n "$ICOTOOL" || ICOTOOL="false"
5755 test "$FONTFORGE" != "false" || as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5
5756 test "$RSVG" != "false" || as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5
5758 if test "$CONVERT" = false
5759 then
5760 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5761 else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5763 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5764 convert_version=`convert --version | head -n1`
5765 if test "x$convert_version" != "x"
5766 then
5767 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5768 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5769 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5770 then
5771 CONVERT=false
5774 if test "$CONVERT" = false
5775 then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5777 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5778 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5779 else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5781 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5785 if test "$ICOTOOL" = false
5786 then
5787 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5788 else
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5790 $as_echo_n "checking for recent enough icotool... " >&6; }
5791 icotool_version=`icotool --version | head -n1`
5792 if test "x$icotool_version" != "x"
5793 then
5794 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5795 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5796 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5797 then
5798 ICOTOOL=false
5799 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5802 if test "$ICOTOOL" = false
5803 then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5805 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5806 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5807 else
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5809 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5813 with_gettext=yes
5814 with_gettextpo=yes
5815 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5818 test "x$with_gettext" != xno || MSGFMT=false
5819 if test "$MSGFMT" != "false"
5820 then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5822 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5823 cat >conftest.po <<EOF
5824 # comment
5825 msgctxt "ctxt"
5826 msgid "id"
5827 msgstr "str"
5829 if $MSGFMT -o /dev/null conftest.po 2>&5
5830 then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5832 $as_echo "yes" >&6; }
5833 else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5836 MSGFMT=false
5839 if test "$MSGFMT" = false; then :
5840 case "x$with_gettext" in
5841 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5842 xno) ;;
5843 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5844 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5845 esac
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5850 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5851 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 ac_check_lib_save_LIBS=$LIBS
5855 LIBS="-li386 $LIBS"
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5859 /* Override any GCC internal prototype to avoid an error.
5860 Use char because int might match the return type of a GCC
5861 builtin and then its argument prototype would still apply. */
5862 #ifdef __cplusplus
5863 extern "C"
5864 #endif
5865 char i386_set_ldt ();
5867 main ()
5869 return i386_set_ldt ();
5871 return 0;
5873 _ACEOF
5874 if ac_fn_c_try_link "$LINENO"; then :
5875 ac_cv_lib_i386_i386_set_ldt=yes
5876 else
5877 ac_cv_lib_i386_i386_set_ldt=no
5879 rm -f core conftest.err conftest.$ac_objext \
5880 conftest$ac_exeext conftest.$ac_ext
5881 LIBS=$ac_check_lib_save_LIBS
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5884 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5885 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5886 cat >>confdefs.h <<_ACEOF
5887 #define HAVE_LIBI386 1
5888 _ACEOF
5890 LIBS="-li386 $LIBS"
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5895 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5896 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 ac_check_lib_save_LIBS=$LIBS
5900 LIBS="-lossaudio $LIBS"
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5904 /* Override any GCC internal prototype to avoid an error.
5905 Use char because int might match the return type of a GCC
5906 builtin and then its argument prototype would still apply. */
5907 #ifdef __cplusplus
5908 extern "C"
5909 #endif
5910 char _oss_ioctl ();
5912 main ()
5914 return _oss_ioctl ();
5916 return 0;
5918 _ACEOF
5919 if ac_fn_c_try_link "$LINENO"; then :
5920 ac_cv_lib_ossaudio__oss_ioctl=yes
5921 else
5922 ac_cv_lib_ossaudio__oss_ioctl=no
5924 rm -f core conftest.err conftest.$ac_objext \
5925 conftest$ac_exeext conftest.$ac_ext
5926 LIBS=$ac_check_lib_save_LIBS
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5929 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5930 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5931 cat >>confdefs.h <<_ACEOF
5932 #define HAVE_LIBOSSAUDIO 1
5933 _ACEOF
5935 LIBS="-lossaudio $LIBS"
5940 XLIB=""
5942 OPENGL_LIBS=""
5946 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5948 # Check whether --enable-largefile was given.
5949 if test "${enable_largefile+set}" = set; then :
5950 enableval=$enable_largefile;
5953 if test "$enable_largefile" != no; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5956 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5957 if ${ac_cv_sys_largefile_CC+:} false; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 ac_cv_sys_largefile_CC=no
5961 if test "$GCC" != yes; then
5962 ac_save_CC=$CC
5963 while :; do
5964 # IRIX 6.2 and later do not support large files by default,
5965 # so use the C compiler's -n32 option if that helps.
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5968 #include <sys/types.h>
5969 /* Check that off_t can represent 2**63 - 1 correctly.
5970 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5971 since some C++ compilers masquerading as C compilers
5972 incorrectly reject 9223372036854775807. */
5973 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5974 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5975 && LARGE_OFF_T % 2147483647 == 1)
5976 ? 1 : -1];
5978 main ()
5982 return 0;
5984 _ACEOF
5985 if ac_fn_c_try_compile "$LINENO"; then :
5986 break
5988 rm -f core conftest.err conftest.$ac_objext
5989 CC="$CC -n32"
5990 if ac_fn_c_try_compile "$LINENO"; then :
5991 ac_cv_sys_largefile_CC=' -n32'; break
5993 rm -f core conftest.err conftest.$ac_objext
5994 break
5995 done
5996 CC=$ac_save_CC
5997 rm -f conftest.$ac_ext
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6001 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6002 if test "$ac_cv_sys_largefile_CC" != no; then
6003 CC=$CC$ac_cv_sys_largefile_CC
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6007 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6008 if ${ac_cv_sys_file_offset_bits+:} false; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 while :; do
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 #include <sys/types.h>
6015 /* Check that off_t can represent 2**63 - 1 correctly.
6016 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6017 since some C++ compilers masquerading as C compilers
6018 incorrectly reject 9223372036854775807. */
6019 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6021 && LARGE_OFF_T % 2147483647 == 1)
6022 ? 1 : -1];
6024 main ()
6028 return 0;
6030 _ACEOF
6031 if ac_fn_c_try_compile "$LINENO"; then :
6032 ac_cv_sys_file_offset_bits=no; break
6034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037 #define _FILE_OFFSET_BITS 64
6038 #include <sys/types.h>
6039 /* Check that off_t can represent 2**63 - 1 correctly.
6040 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6041 since some C++ compilers masquerading as C compilers
6042 incorrectly reject 9223372036854775807. */
6043 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6045 && LARGE_OFF_T % 2147483647 == 1)
6046 ? 1 : -1];
6048 main ()
6052 return 0;
6054 _ACEOF
6055 if ac_fn_c_try_compile "$LINENO"; then :
6056 ac_cv_sys_file_offset_bits=64; break
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 ac_cv_sys_file_offset_bits=unknown
6060 break
6061 done
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6064 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6065 case $ac_cv_sys_file_offset_bits in #(
6066 no | unknown) ;;
6068 cat >>confdefs.h <<_ACEOF
6069 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6070 _ACEOF
6072 esac
6073 rm -rf conftest*
6074 if test $ac_cv_sys_file_offset_bits = unknown; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6076 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6077 if ${ac_cv_sys_large_files+:} false; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 while :; do
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6083 #include <sys/types.h>
6084 /* Check that off_t can represent 2**63 - 1 correctly.
6085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6086 since some C++ compilers masquerading as C compilers
6087 incorrectly reject 9223372036854775807. */
6088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6090 && LARGE_OFF_T % 2147483647 == 1)
6091 ? 1 : -1];
6093 main ()
6097 return 0;
6099 _ACEOF
6100 if ac_fn_c_try_compile "$LINENO"; then :
6101 ac_cv_sys_large_files=no; break
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106 #define _LARGE_FILES 1
6107 #include <sys/types.h>
6108 /* Check that off_t can represent 2**63 - 1 correctly.
6109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6110 since some C++ compilers masquerading as C compilers
6111 incorrectly reject 9223372036854775807. */
6112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6114 && LARGE_OFF_T % 2147483647 == 1)
6115 ? 1 : -1];
6117 main ()
6121 return 0;
6123 _ACEOF
6124 if ac_fn_c_try_compile "$LINENO"; then :
6125 ac_cv_sys_large_files=1; break
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128 ac_cv_sys_large_files=unknown
6129 break
6130 done
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6133 $as_echo "$ac_cv_sys_large_files" >&6; }
6134 case $ac_cv_sys_large_files in #(
6135 no | unknown) ;;
6137 cat >>confdefs.h <<_ACEOF
6138 #define _LARGE_FILES $ac_cv_sys_large_files
6139 _ACEOF
6141 esac
6142 rm -rf conftest*
6149 ac_ext=c
6150 ac_cpp='$CPP $CPPFLAGS'
6151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6155 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6156 # On Suns, sometimes $CPP names a directory.
6157 if test -n "$CPP" && test -d "$CPP"; then
6158 CPP=
6160 if test -z "$CPP"; then
6161 if ${ac_cv_prog_CPP+:} false; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 # Double quotes because CPP needs to be expanded
6165 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6167 ac_preproc_ok=false
6168 for ac_c_preproc_warn_flag in '' yes
6170 # Use a header file that comes with gcc, so configuring glibc
6171 # with a fresh cross-compiler works.
6172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6173 # <limits.h> exists even on freestanding compilers.
6174 # On the NeXT, cc -E runs the code through the compiler's parser,
6175 # not just through cpp. "Syntax error" is here to catch this case.
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6178 #ifdef __STDC__
6179 # include <limits.h>
6180 #else
6181 # include <assert.h>
6182 #endif
6183 Syntax error
6184 _ACEOF
6185 if ac_fn_c_try_cpp "$LINENO"; then :
6187 else
6188 # Broken: fails on valid input.
6189 continue
6191 rm -f conftest.err conftest.i conftest.$ac_ext
6193 # OK, works on sane cases. Now check whether nonexistent headers
6194 # can be detected and how.
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 #include <ac_nonexistent.h>
6198 _ACEOF
6199 if ac_fn_c_try_cpp "$LINENO"; then :
6200 # Broken: success on invalid input.
6201 continue
6202 else
6203 # Passes both tests.
6204 ac_preproc_ok=:
6205 break
6207 rm -f conftest.err conftest.i conftest.$ac_ext
6209 done
6210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6211 rm -f conftest.i conftest.err conftest.$ac_ext
6212 if $ac_preproc_ok; then :
6213 break
6216 done
6217 ac_cv_prog_CPP=$CPP
6220 CPP=$ac_cv_prog_CPP
6221 else
6222 ac_cv_prog_CPP=$CPP
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6225 $as_echo "$CPP" >&6; }
6226 ac_preproc_ok=false
6227 for ac_c_preproc_warn_flag in '' yes
6229 # Use a header file that comes with gcc, so configuring glibc
6230 # with a fresh cross-compiler works.
6231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6232 # <limits.h> exists even on freestanding compilers.
6233 # On the NeXT, cc -E runs the code through the compiler's parser,
6234 # not just through cpp. "Syntax error" is here to catch this case.
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6237 #ifdef __STDC__
6238 # include <limits.h>
6239 #else
6240 # include <assert.h>
6241 #endif
6242 Syntax error
6243 _ACEOF
6244 if ac_fn_c_try_cpp "$LINENO"; then :
6246 else
6247 # Broken: fails on valid input.
6248 continue
6250 rm -f conftest.err conftest.i conftest.$ac_ext
6252 # OK, works on sane cases. Now check whether nonexistent headers
6253 # can be detected and how.
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6256 #include <ac_nonexistent.h>
6257 _ACEOF
6258 if ac_fn_c_try_cpp "$LINENO"; then :
6259 # Broken: success on invalid input.
6260 continue
6261 else
6262 # Passes both tests.
6263 ac_preproc_ok=:
6264 break
6266 rm -f conftest.err conftest.i conftest.$ac_ext
6268 done
6269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6270 rm -f conftest.i conftest.err conftest.$ac_ext
6271 if $ac_preproc_ok; then :
6273 else
6274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6276 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6277 See \`config.log' for more details" "$LINENO" 5; }
6280 ac_ext=c
6281 ac_cpp='$CPP $CPPFLAGS'
6282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6288 $as_echo_n "checking for ANSI C header files... " >&6; }
6289 if ${ac_cv_header_stdc+:} false; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6294 #include <stdlib.h>
6295 #include <stdarg.h>
6296 #include <string.h>
6297 #include <float.h>
6300 main ()
6304 return 0;
6306 _ACEOF
6307 if ac_fn_c_try_compile "$LINENO"; then :
6308 ac_cv_header_stdc=yes
6309 else
6310 ac_cv_header_stdc=no
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314 if test $ac_cv_header_stdc = yes; then
6315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6318 #include <string.h>
6320 _ACEOF
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322 $EGREP "memchr" >/dev/null 2>&1; then :
6324 else
6325 ac_cv_header_stdc=no
6327 rm -f conftest*
6331 if test $ac_cv_header_stdc = yes; then
6332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6335 #include <stdlib.h>
6337 _ACEOF
6338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6339 $EGREP "free" >/dev/null 2>&1; then :
6341 else
6342 ac_cv_header_stdc=no
6344 rm -f conftest*
6348 if test $ac_cv_header_stdc = yes; then
6349 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6350 if test "$cross_compiling" = yes; then :
6352 else
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6355 #include <ctype.h>
6356 #include <stdlib.h>
6357 #if ((' ' & 0x0FF) == 0x020)
6358 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6359 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6360 #else
6361 # define ISLOWER(c) \
6362 (('a' <= (c) && (c) <= 'i') \
6363 || ('j' <= (c) && (c) <= 'r') \
6364 || ('s' <= (c) && (c) <= 'z'))
6365 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6366 #endif
6368 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6370 main ()
6372 int i;
6373 for (i = 0; i < 256; i++)
6374 if (XOR (islower (i), ISLOWER (i))
6375 || toupper (i) != TOUPPER (i))
6376 return 2;
6377 return 0;
6379 _ACEOF
6380 if ac_fn_c_try_run "$LINENO"; then :
6382 else
6383 ac_cv_header_stdc=no
6385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6386 conftest.$ac_objext conftest.beam conftest.$ac_ext
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6392 $as_echo "$ac_cv_header_stdc" >&6; }
6393 if test $ac_cv_header_stdc = yes; then
6395 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6399 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6400 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6401 inttypes.h stdint.h unistd.h
6402 do :
6403 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6404 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6406 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6407 cat >>confdefs.h <<_ACEOF
6408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6409 _ACEOF
6413 done
6416 for ac_header in \
6417 AL/al.h \
6418 ApplicationServices/ApplicationServices.h \
6419 AudioToolbox/AudioConverter.h \
6420 AudioUnit/AudioUnit.h \
6421 AudioUnit/AudioComponent.h \
6422 CL/cl.h \
6423 Carbon/Carbon.h \
6424 CoreAudio/CoreAudio.h \
6425 CoreServices/CoreServices.h \
6426 DiskArbitration/DiskArbitration.h \
6427 IOKit/IOKitLib.h \
6428 IOKit/hid/IOHIDLib.h \
6429 OpenAL/al.h \
6430 OpenCL/opencl.h \
6431 QuickTime/ImageCompression.h \
6432 Security/Security.h \
6433 alias.h \
6434 alsa/asoundlib.h \
6435 arpa/inet.h \
6436 arpa/nameser.h \
6437 asm/types.h \
6438 asm/user.h \
6439 curses.h \
6440 direct.h \
6441 dirent.h \
6442 dlfcn.h \
6443 elf.h \
6444 float.h \
6445 fnmatch.h \
6446 fontconfig/fontconfig.h \
6447 getopt.h \
6448 gettext-po.h \
6449 grp.h \
6450 gsm.h \
6451 gsm/gsm.h \
6452 ieeefp.h \
6453 inet/mib2.h \
6454 io.h \
6455 kstat.h \
6456 lber.h \
6457 ldap.h \
6458 libproc.h \
6459 link.h \
6460 linux/cdrom.h \
6461 linux/compiler.h \
6462 linux/filter.h \
6463 linux/hdreg.h \
6464 linux/input.h \
6465 linux/ioctl.h \
6466 linux/joystick.h \
6467 linux/major.h \
6468 linux/param.h \
6469 linux/serial.h \
6470 linux/types.h \
6471 linux/ucdrom.h \
6472 lwp.h \
6473 mach-o/nlist.h \
6474 mach-o/loader.h \
6475 mach/mach.h \
6476 mach/machine.h \
6477 machine/cpu.h \
6478 machine/limits.h \
6479 machine/sysarch.h \
6480 mntent.h \
6481 ncurses.h \
6482 netdb.h \
6483 netinet/in.h \
6484 netinet/in_systm.h \
6485 netinet/tcp.h \
6486 netinet/tcp_fsm.h \
6487 poll.h \
6488 port.h \
6489 process.h \
6490 pthread.h \
6491 pwd.h \
6492 sched.h \
6493 scsi/scsi.h \
6494 scsi/scsi_ioctl.h \
6495 scsi/sg.h \
6496 stdbool.h \
6497 stdint.h \
6498 stropts.h \
6499 sys/asoundlib.h \
6500 sys/attr.h \
6501 sys/cdio.h \
6502 sys/elf32.h \
6503 sys/epoll.h \
6504 sys/event.h \
6505 sys/exec_elf.h \
6506 sys/filio.h \
6507 sys/inotify.h \
6508 sys/ioctl.h \
6509 sys/ipc.h \
6510 sys/limits.h \
6511 sys/link.h \
6512 sys/mman.h \
6513 sys/modem.h \
6514 sys/msg.h \
6515 sys/mtio.h \
6516 sys/param.h \
6517 sys/poll.h \
6518 sys/prctl.h \
6519 sys/protosw.h \
6520 sys/ptrace.h \
6521 sys/queue.h \
6522 sys/resource.h \
6523 sys/scsiio.h \
6524 sys/shm.h \
6525 sys/signal.h \
6526 sys/socket.h \
6527 sys/socketvar.h \
6528 sys/sockio.h \
6529 sys/statvfs.h \
6530 sys/strtio.h \
6531 sys/syscall.h \
6532 sys/tihdr.h \
6533 sys/time.h \
6534 sys/timeout.h \
6535 sys/times.h \
6536 sys/uio.h \
6537 sys/user.h \
6538 sys/utsname.h \
6539 sys/vm86.h \
6540 sys/wait.h \
6541 syscall.h \
6542 termios.h \
6543 unistd.h \
6544 utime.h \
6545 valgrind/memcheck.h \
6546 valgrind/valgrind.h \
6547 zlib.h
6549 do :
6550 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6551 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6552 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6553 cat >>confdefs.h <<_ACEOF
6554 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6555 _ACEOF
6559 done
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6562 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6563 if ${ac_cv_header_stat_broken+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568 #include <sys/types.h>
6569 #include <sys/stat.h>
6571 #if defined S_ISBLK && defined S_IFDIR
6572 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6573 #endif
6575 #if defined S_ISBLK && defined S_IFCHR
6576 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6577 #endif
6579 #if defined S_ISLNK && defined S_IFREG
6580 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6581 #endif
6583 #if defined S_ISSOCK && defined S_IFREG
6584 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6585 #endif
6587 _ACEOF
6588 if ac_fn_c_try_compile "$LINENO"; then :
6589 ac_cv_header_stat_broken=no
6590 else
6591 ac_cv_header_stat_broken=yes
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6596 $as_echo "$ac_cv_header_stat_broken" >&6; }
6597 if test $ac_cv_header_stat_broken = yes; then
6599 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6605 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6606 do :
6607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6608 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6609 #ifdef HAVE_SYS_PARAM_H
6610 # include <sys/param.h>
6611 #endif
6613 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6614 cat >>confdefs.h <<_ACEOF
6615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6616 _ACEOF
6620 done
6623 for ac_header in \
6624 netinet/ip.h \
6625 net/if.h \
6626 net/if_arp.h \
6627 net/if_dl.h \
6628 net/if_types.h \
6629 net/route.h \
6630 netinet/if_ether.h \
6631 netinet/if_inarp.h \
6632 netinet/in_pcb.h \
6633 netinet/ip_icmp.h \
6634 netinet/ip_var.h \
6635 netinet/udp.h \
6636 netipx/ipx.h \
6637 sys/un.h \
6639 do :
6640 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6641 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6642 #ifdef HAVE_SYS_SOCKET_H
6643 # include <sys/socket.h>
6644 #endif
6645 #ifdef HAVE_SYS_SOCKETVAR_H
6646 # include <sys/socketvar.h>
6647 #endif
6648 #ifdef HAVE_NET_ROUTE_H
6649 # include <net/route.h>
6650 #endif
6651 #ifdef HAVE_NETINET_IN_H
6652 # include <netinet/in.h>
6653 #endif
6654 #ifdef HAVE_NETINET_IN_SYSTM_H
6655 # include <netinet/in_systm.h>
6656 #endif
6657 #ifdef HAVE_NET_IF_H
6658 # include <net/if.h>
6659 #endif
6660 #ifdef HAVE_NETINET_IP_H
6661 # include <netinet/ip.h>
6662 #endif
6664 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6665 cat >>confdefs.h <<_ACEOF
6666 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6667 _ACEOF
6671 done
6674 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6675 do :
6676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6677 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6678 #ifdef HAVE_ALIAS_H
6679 # include <alias.h>
6680 #endif
6681 #ifdef HAVE_SYS_SOCKET_H
6682 # include <sys/socket.h>
6683 #endif
6684 #ifdef HAVE_SYS_SOCKETVAR_H
6685 # include <sys/socketvar.h>
6686 #endif
6687 #ifdef HAVE_SYS_TIMEOUT_H
6688 # include <sys/timeout.h>
6689 #endif
6690 #ifdef HAVE_NETINET_IN_H
6691 # include <netinet/in.h>
6692 #endif
6693 #ifdef HAVE_NETINET_IN_SYSTM_H
6694 # include <netinet/in_systm.h>
6695 #endif
6696 #ifdef HAVE_NETINET_IP_H
6697 # include <netinet/ip.h>
6698 #endif
6699 #ifdef HAVE_NETINET_IP_VAR_H
6700 # include <netinet/ip_var.h>
6701 #endif
6702 #ifdef HAVE_NETINET_IP_ICMP_H
6703 # include <netinet/ip_icmp.h>
6704 #endif
6705 #ifdef HAVE_NETINET_UDP_H
6706 # include <netinet/udp.h>
6707 #endif
6708 #ifdef HAVE_NETINET_TCP_H
6709 # include <netinet/tcp.h>
6710 #endif
6711 #ifdef HAVE_NETINET_TCP_TIMER_H
6712 #include <netinet/tcp_timer.h>
6713 #endif
6715 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6716 cat >>confdefs.h <<_ACEOF
6717 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6718 _ACEOF
6722 done
6725 for ac_header in linux/ipx.h linux/irda.h linux/rtnetlink.h
6726 do :
6727 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6728 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6729 #ifdef HAVE_ASM_TYPES_H
6730 # include <asm/types.h>
6731 #endif
6732 #ifdef HAVE_SYS_SOCKET_H
6733 # include <sys/socket.h>
6734 #endif
6735 #ifdef HAVE_LINUX_TYPES_H
6736 # include <linux/types.h>
6737 #endif
6739 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6740 cat >>confdefs.h <<_ACEOF
6741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6742 _ACEOF
6746 done
6749 for ac_header in mach-o/dyld_images.h
6750 do :
6751 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6752 # include <stdbool.h>
6753 #endif
6754 #ifdef HAVE_STDINT_H
6755 # include <stdint.h>
6756 #endif
6758 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6759 cat >>confdefs.h <<_ACEOF
6760 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6761 _ACEOF
6765 done
6768 for ac_header in resolv.h
6769 do :
6770 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6771 #ifdef HAVE_SYS_SOCKET_H
6772 # include <sys/socket.h>
6773 #endif
6774 #ifdef HAVE_NETINET_IN_H
6775 # include <netinet/in.h>
6776 #endif
6777 #ifdef HAVE_ARPA_NAMESER_H
6778 # include <arpa/nameser.h>
6779 #endif
6781 if test "x$ac_cv_header_resolv_h" = xyes; then :
6782 cat >>confdefs.h <<_ACEOF
6783 #define HAVE_RESOLV_H 1
6784 _ACEOF
6788 done
6791 for ac_header in ifaddrs.h
6792 do :
6793 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6795 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6796 cat >>confdefs.h <<_ACEOF
6797 #define HAVE_IFADDRS_H 1
6798 _ACEOF
6802 done
6805 for ac_header in ucontext.h
6806 do :
6807 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6809 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6810 cat >>confdefs.h <<_ACEOF
6811 #define HAVE_UCONTEXT_H 1
6812 _ACEOF
6816 done
6819 for ac_header in sys/thr.h
6820 do :
6821 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6822 #ifdef HAVE_UCONTEXT_H
6823 #include <ucontext.h>
6824 #endif
6826 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6827 cat >>confdefs.h <<_ACEOF
6828 #define HAVE_SYS_THR_H 1
6829 _ACEOF
6833 done
6836 for ac_header in pthread_np.h
6837 do :
6838 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6839 #include <pthread.h>
6840 #endif
6842 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6843 cat >>confdefs.h <<_ACEOF
6844 #define HAVE_PTHREAD_NP_H 1
6845 _ACEOF
6849 done
6852 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6853 do :
6854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6855 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6856 #include <sys/time.h>
6857 #endif
6858 #include <sys/types.h>
6859 #ifdef HAVE_ASM_TYPES_H
6860 #include <asm/types.h>
6861 #endif
6863 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6864 cat >>confdefs.h <<_ACEOF
6865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6866 _ACEOF
6870 done
6873 for ac_header in libprocstat.h
6874 do :
6875 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
6876 #include <sys/param.h>
6877 #endif
6878 #ifdef HAVE_SYS_QUEUE_H
6879 #include <sys/queue.h>
6880 #endif
6881 #ifdef HAVE_SYS_SOCKET_H
6882 #include <sys/socket.h>
6883 #endif
6885 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
6886 cat >>confdefs.h <<_ACEOF
6887 #define HAVE_LIBPROCSTAT_H 1
6888 _ACEOF
6892 done
6896 dlldir="\${libdir}/wine"
6898 DLLPREFIX=""
6900 DLLFLAGS="-D_REENTRANT"
6902 LDRPATH_INSTALL=""
6904 LDRPATH_LOCAL=""
6906 LIBEXT="so"
6907 DLLEXT=".so"
6908 IMPLIBEXT="def"
6909 STATIC_IMPLIBEXT="def.a"
6910 # Extract the first word of "ldd", so it can be a program name with args.
6911 set dummy ldd; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if ${ac_cv_path_LDD+:} false; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 case $LDD in
6918 [\\/]* | ?:[\\/]*)
6919 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 as_dummy="/sbin:/usr/sbin:$PATH"
6924 for as_dir in $as_dummy
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6934 done
6935 done
6936 IFS=$as_save_IFS
6938 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6940 esac
6942 LDD=$ac_cv_path_LDD
6943 if test -n "$LDD"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6945 $as_echo "$LDD" >&6; }
6946 else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6952 if test -n "$ac_tool_prefix"; then
6953 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6954 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_READELF+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 if test -n "$READELF"; then
6961 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6974 done
6975 done
6976 IFS=$as_save_IFS
6980 READELF=$ac_cv_prog_READELF
6981 if test -n "$READELF"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6983 $as_echo "$READELF" >&6; }
6984 else
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6991 if test -z "$ac_cv_prog_READELF"; then
6992 ac_ct_READELF=$READELF
6993 # Extract the first word of "readelf", so it can be a program name with args.
6994 set dummy readelf; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 if test -n "$ac_ct_READELF"; then
7001 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
7002 else
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7010 ac_cv_prog_ac_ct_READELF="readelf"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7014 done
7015 done
7016 IFS=$as_save_IFS
7020 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
7021 if test -n "$ac_ct_READELF"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
7023 $as_echo "$ac_ct_READELF" >&6; }
7024 else
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7029 if test "x$ac_ct_READELF" = x; then
7030 READELF="true"
7031 else
7032 case $cross_compiling:$ac_tool_warned in
7033 yes:)
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7036 ac_tool_warned=yes ;;
7037 esac
7038 READELF=$ac_ct_READELF
7040 else
7041 READELF="$ac_cv_prog_READELF"
7044 wine_rules_file=conf$$rules.make
7045 rm -f $wine_rules_file
7046 ALL_POT_FILES=""
7047 GITIGNORE="# Automatically generated by configure; DO NOT EDIT!!"
7048 ALL_TEST_RESOURCES=""
7051 wine_fn_append_file ()
7053 as_fn_append $1 " \\$as_nl $2"
7056 wine_fn_ignore_file ()
7058 case "$1" in
7059 */*) as_fn_append GITIGNORE "$as_nl$1" ;;
7060 \**) as_fn_append GITIGNORE "$as_nl$1" ;;
7061 *) as_fn_append GITIGNORE "$as_nl/$1" ;;
7062 esac
7065 wine_fn_append_rule ()
7067 $as_echo "$1" >>$wine_rules_file
7070 wine_fn_has_flag ()
7072 expr ",$ac_flags," : ".*,$1,.*" >/dev/null
7075 wine_fn_depend_rules ()
7077 ac_alldeps=$1
7078 ac_makedep="\$(MAKEDEP)"
7079 ac_input=Make.vars.in:$ac_dir/Makefile.in
7080 case $1 in
7081 *.in)
7082 ac_input=$ac_input:$1
7083 test "$srcdir" = . || ac_alldeps="$srcdir/$ac_alldeps" ;;
7085 ac_makedep="$1 $ac_makedep" ;;
7086 esac
7088 wine_fn_append_rule \
7089 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in $srcdir/Make.vars.in config.status $ac_alldeps \$(MAKEDEP)
7090 @./config.status --file $ac_dir/Makefile:$ac_input && \$(MAKEDEP) -M $ac_dir
7091 depend: $ac_dir/depend
7092 .PHONY: $ac_dir/depend
7093 $ac_dir/depend: $ac_makedep dummy
7094 @./config.status --file $ac_dir/Makefile:$ac_input && \$(MAKEDEP) -M $ac_dir"
7097 wine_fn_pot_rules ()
7099 test "x$with_gettextpo" = xyes || return
7101 if wine_fn_has_flag mc
7102 then
7103 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
7104 wine_fn_append_rule \
7105 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
7106 @cd $ac_dir && \$(MAKE) msg.pot
7107 $ac_dir/msg.pot: tools/wmc include"
7109 if wine_fn_has_flag po
7110 then
7111 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
7112 wine_fn_append_rule \
7113 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
7114 @cd $ac_dir && \$(MAKE) rsrc.pot
7115 $ac_dir/rsrc.pot: tools/wrc include"
7119 wine_fn_all_rules ()
7121 ac_rules=$1
7123 wine_fn_depend_rules ${ac_rules:-Make.rules}
7124 wine_fn_append_rule \
7125 "all: $ac_dir
7126 .PHONY: $ac_dir
7127 $ac_dir: $ac_dir/Makefile dummy
7128 @cd $ac_dir && \$(MAKE)"
7131 wine_fn_install_rules ()
7133 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
7135 wine_fn_append_rule \
7136 ".PHONY: $ac_dir/install $ac_dir/uninstall
7137 $ac_dir/install:: $ac_dir
7138 @cd $ac_dir && \$(MAKE) install
7139 $ac_dir/uninstall:: $ac_dir/Makefile
7140 @cd $ac_dir && \$(MAKE) uninstall
7141 install:: $ac_dir/install
7142 __uninstall__: $ac_dir/uninstall"
7144 if wine_fn_has_flag install-lib
7145 then
7146 wine_fn_append_rule \
7147 ".PHONY: $ac_dir/install-lib
7148 $ac_dir/install-lib:: $ac_dir
7149 @cd $ac_dir && \$(MAKE) install-lib
7150 install-lib:: $ac_dir/install-lib"
7153 if wine_fn_has_flag install-dev
7154 then
7155 wine_fn_append_rule \
7156 ".PHONY: $ac_dir/install-dev
7157 $ac_dir/install-dev:: $ac_dir
7158 @cd $ac_dir && \$(MAKE) install-dev
7159 install-dev:: $ac_dir/install-dev"
7163 wine_fn_clean_rules ()
7165 ac_clean=$@
7166 ac_extraclean="$ac_dir/Makefile"
7167 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7169 if wine_fn_has_flag clean
7170 then
7171 wine_fn_append_rule \
7172 "__clean__: $ac_dir/clean
7173 .PHONY: $ac_dir/clean
7174 $ac_dir/clean: $ac_dir/Makefile
7175 @cd $ac_dir && \$(MAKE) clean
7176 \$(RM) $ac_extraclean"
7177 else
7178 wine_fn_append_rule \
7179 "__clean__: $ac_dir/clean
7180 .PHONY: $ac_dir/clean
7181 $ac_dir/clean: dummy
7182 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7186 wine_fn_disabled_rules ()
7188 ac_clean=$@
7189 ac_extraclean="$ac_dir/Makefile"
7190 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7192 wine_fn_append_rule \
7193 "__clean__: $ac_dir/clean
7194 .PHONY: $ac_dir/clean
7195 $ac_dir/clean: dummy
7196 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7199 wine_fn_config_makefile ()
7201 ac_dir=$1
7202 ac_enable=$2
7203 ac_flags=$3
7205 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7206 wine_fn_disabled_rules; return
7208 wine_fn_all_rules
7209 wine_fn_install_rules
7210 wine_fn_clean_rules
7213 wine_fn_config_lib ()
7215 ac_name=$1
7216 ac_flags=$2
7217 ac_dir=dlls/$ac_name
7218 ac_deps="include"
7220 if test "x$enable_tools" = xno; then :
7222 else
7223 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7225 wine_fn_all_rules Make.rules.in
7226 wine_fn_clean_rules
7228 wine_fn_append_rule \
7229 ".PHONY: $ac_dir/install $ac_dir/uninstall
7230 $ac_dir/install:: $ac_dir
7231 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7232 $ac_dir/uninstall::
7233 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7234 install install-dev:: $ac_dir/install
7235 __uninstall__: $ac_dir/uninstall
7236 __builddeps__: $ac_dir
7237 $ac_dir: $ac_deps"
7240 wine_fn_config_dll ()
7242 ac_name=$1
7243 ac_dir=dlls/$ac_name
7244 ac_enable=$2
7245 ac_flags=$3
7246 ac_implib=${4:-$ac_name}
7247 ac_file=$ac_dir/lib$ac_implib
7248 ac_dll=$ac_name
7249 ac_deps="include"
7250 ac_implibflags=""
7252 if test "x$enable_tools" = xno; then :
7254 else
7255 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7257 case $ac_name in
7258 *16) ac_implibflags=" -m16" ;;
7259 *.*) ;;
7260 *) ac_dll=$ac_dll.dll ;;
7261 esac
7263 ac_clean=
7264 wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
7265 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7266 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7267 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_dll"
7269 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7270 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
7271 then
7272 wine_fn_depend_rules Make.rules.in
7273 wine_fn_clean_rules $ac_clean
7274 else
7275 wine_fn_disabled_rules $ac_clean
7276 return
7278 else
7279 wine_fn_all_rules Make.rules.in
7280 wine_fn_clean_rules $ac_clean
7281 wine_fn_append_rule \
7282 "$ac_dir: __builddeps__
7283 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
7284 @cd $ac_dir && \$(MAKE) \$@
7285 .PHONY: $ac_dir/install-lib $ac_dir/uninstall
7286 install install-lib:: $ac_dir/install-lib
7287 __uninstall__: $ac_dir/uninstall"
7288 if test -n "$DLLEXT"
7289 then
7290 wine_fn_append_rule \
7291 "$ac_dir/install-lib:: $ac_dir
7292 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
7293 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
7294 $ac_dir/uninstall::
7295 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
7296 else
7297 wine_fn_append_rule \
7298 "$ac_dir/install-lib:: $ac_dir
7299 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
7300 $ac_dir/uninstall::
7301 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
7304 wine_fn_pot_rules
7307 if wine_fn_has_flag staticimplib
7308 then
7309 wine_fn_append_rule \
7310 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
7311 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
7312 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7313 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7314 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
7315 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
7316 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7317 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7318 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7319 $ac_dir/uninstall::
7320 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7321 install install-dev:: $ac_dir/install-dev
7322 __uninstall__: $ac_dir/uninstall"
7324 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
7325 then
7326 wine_fn_append_rule \
7327 "$ac_dir/install-dev:: $ac_file.$STATIC_IMPLIBEXT __builddeps__
7328 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
7329 $ac_dir/uninstall::
7330 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
7333 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7334 then
7335 wine_fn_append_rule \
7336 "__builddeps__: $ac_file.cross.a
7337 $ac_file.cross.a: $ac_dir/Makefile dummy
7338 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
7341 elif wine_fn_has_flag implib
7342 then
7343 wine_fn_append_rule \
7344 "__builddeps__: $ac_file.$IMPLIBEXT
7345 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7346 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7347 $ac_file.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7348 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7349 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7350 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7351 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7352 $ac_dir/uninstall::
7353 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7354 install install-dev:: $ac_dir/install-dev
7355 __uninstall__: $ac_dir/uninstall"
7356 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7357 then
7358 wine_fn_append_rule \
7359 "__builddeps__: $ac_file.cross.a
7360 $ac_file.cross.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7361 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec"
7364 if test "$ac_name" != "$ac_implib"
7365 then
7366 wine_fn_append_rule \
7367 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
7368 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
7369 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
7370 clean::
7371 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
7372 wine_fn_ignore_file "dlls/lib$ac_implib.$IMPLIBEXT"
7373 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7374 then
7375 wine_fn_append_rule \
7376 "__builddeps__: dlls/lib$ac_implib.cross.a
7377 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
7378 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@
7379 clean::
7380 \$(RM) dlls/lib$ac_implib.cross.a"
7381 wine_fn_ignore_file "dlls/lib$ac_implib.cross.a"
7387 wine_fn_config_program ()
7389 ac_name=$1
7390 ac_dir=programs/$ac_name
7391 ac_enable=$2
7392 ac_flags=$3
7393 ac_program=$ac_name
7395 case $ac_name in
7396 *.*) ;;
7397 *) ac_program=$ac_program.exe ;;
7398 esac
7400 ac_clean=
7401 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7402 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7403 wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
7404 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
7406 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7407 wine_fn_disabled_rules $ac_clean; return
7410 wine_fn_all_rules Make.rules.in
7411 wine_fn_clean_rules $ac_clean
7412 wine_fn_append_rule "$ac_dir: __builddeps__"
7413 wine_fn_pot_rules
7415 wine_fn_has_flag install || return
7416 wine_fn_append_rule \
7417 ".PHONY: $ac_dir/install $ac_dir/uninstall
7418 install install-lib:: $ac_dir/install
7419 __uninstall__: $ac_dir/uninstall"
7421 if test -n "$DLLEXT"
7422 then
7423 wine_fn_append_rule \
7424 "$ac_dir/install:: $ac_dir
7425 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT
7426 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
7427 $ac_dir/uninstall::
7428 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
7430 if test -z "$with_wine64" && wine_fn_has_flag installbin
7431 then
7432 wine_fn_append_rule \
7433 "$ac_dir/install:: __tooldeps__
7434 \$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
7435 $ac_dir/uninstall::
7436 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
7438 else
7439 wine_fn_append_rule \
7440 "$ac_dir/install:: $ac_dir
7441 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program
7442 $ac_dir/uninstall::
7443 \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
7446 if test -z "$with_wine64" && wine_fn_has_flag manpage
7447 then
7448 wine_fn_append_rule \
7449 "$ac_dir/install:: $ac_dir
7450 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
7451 $ac_dir/uninstall::
7452 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
7456 wine_fn_config_test ()
7458 ac_dir=$1
7459 ac_name=$2
7460 ac_flags=$3
7462 ac_clean=
7463 test -n "$CROSSTARGET" && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
7464 test -n "$DLLEXT" || ac_clean="$ac_dir/${ac_name}.exe $ac_dir/${ac_name}-stripped.exe"
7465 ac_clean="$ac_clean $ac_dir/testlist.c"
7467 if test "x$enable_tests" = xno; then :
7468 wine_fn_disabled_rules $ac_clean; return
7471 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
7472 wine_fn_all_rules Make.rules.in
7473 wine_fn_clean_rules $ac_clean
7475 wine_fn_append_rule \
7476 "$ac_dir: programs/winetest/Makefile __builddeps__
7477 programs/winetest: $ac_dir
7478 check test: $ac_dir/test
7479 .PHONY: $ac_dir/test
7480 $ac_dir/test: dummy
7481 @cd $ac_dir && \$(MAKE) test
7482 testclean::
7483 \$(RM) $ac_dir/*.ok"
7485 if test -n "$CROSSTARGET"
7486 then
7487 wine_fn_append_rule \
7488 "crosstest: $ac_dir/crosstest
7489 .PHONY: $ac_dir/crosstest
7490 $ac_dir/crosstest: $ac_dir/Makefile __builddeps__ dummy
7491 @cd $ac_dir && \$(MAKE) crosstest"
7495 wine_fn_config_tool ()
7497 ac_dir=$1
7498 ac_flags=$2
7499 if test "x$enable_tools" = xno; then :
7500 return
7503 wine_fn_all_rules
7504 wine_fn_install_rules
7505 wine_fn_clean_rules
7507 wine_fn_append_rule "__tooldeps__: $ac_dir"
7508 wine_fn_append_rule "$ac_dir: libs/port"
7509 case $ac_dir in
7510 tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
7511 esac
7514 wine_fn_config_makerules ()
7516 ac_rules=$1
7517 ac_deps=$2
7518 wine_fn_append_rule \
7519 "$ac_rules: $srcdir/$ac_rules.in $ac_deps config.status
7520 @./config.status $ac_rules
7521 distclean::
7522 \$(RM) $ac_rules"
7523 wine_fn_ignore_file $ac_rules
7526 wine_fn_config_symlink ()
7528 ac_linkdir=
7529 if test "x$1" = "x-d"
7530 then
7531 ac_linkdir=$2
7532 shift; shift
7534 ac_links=$@
7535 wine_fn_append_rule \
7536 "$ac_links:
7537 @./config.status \$@
7538 distclean::
7539 \$(RM) $ac_links"
7540 for f in $ac_links; do wine_fn_ignore_file $f; done
7541 test -n "$ac_linkdir" || return
7542 wine_fn_append_rule "$ac_linkdir/Makefile $ac_linkdir/depend: $ac_links"
7545 wine_binary="wine"
7546 test "x$enable_win64" != "xyes" || wine_binary="wine64"
7547 loader_programs="$wine_binary wine-installed"
7548 libwine_soversion=`expr $libwine_version : '\([0-9]*\)\..*'`
7550 LOADER_RULES="
7551 install install-lib:: wine-installed
7552 \$(INSTALL_PROGRAM) wine-installed \$(DESTDIR)\$(bindir)/$wine_binary
7554 uninstall::
7555 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary
7559 case $host_os in
7560 cygwin*|mingw32*)
7561 if test -n "$ac_tool_prefix"; then
7562 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7563 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if ${ac_cv_prog_DLLTOOL+:} false; then :
7567 $as_echo_n "(cached) " >&6
7568 else
7569 if test -n "$DLLTOOL"; then
7570 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7571 else
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7575 IFS=$as_save_IFS
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 break 2
7583 done
7584 done
7585 IFS=$as_save_IFS
7589 DLLTOOL=$ac_cv_prog_DLLTOOL
7590 if test -n "$DLLTOOL"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7592 $as_echo "$DLLTOOL" >&6; }
7593 else
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7600 if test -z "$ac_cv_prog_DLLTOOL"; then
7601 ac_ct_DLLTOOL=$DLLTOOL
7602 # Extract the first word of "dlltool", so it can be a program name with args.
7603 set dummy dlltool; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 if test -n "$ac_ct_DLLTOOL"; then
7610 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7611 else
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 break 2
7623 done
7624 done
7625 IFS=$as_save_IFS
7629 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7630 if test -n "$ac_ct_DLLTOOL"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7632 $as_echo "$ac_ct_DLLTOOL" >&6; }
7633 else
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7638 if test "x$ac_ct_DLLTOOL" = x; then
7639 DLLTOOL="false"
7640 else
7641 case $cross_compiling:$ac_tool_warned in
7642 yes:)
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7645 ac_tool_warned=yes ;;
7646 esac
7647 DLLTOOL=$ac_ct_DLLTOOL
7649 else
7650 DLLTOOL="$ac_cv_prog_DLLTOOL"
7653 LIBEXT="dll"
7654 DLLEXT=""
7655 IMPLIBEXT="a"
7656 STATIC_IMPLIBEXT="a"
7657 enable_iphlpapi=${enable_iphlpapi:-no}
7658 enable_kernel32=${enable_kernel32:-no}
7659 enable_msvcrt=${enable_msvcrt:-no}
7660 enable_ntdll=${enable_ntdll:-no}
7661 enable_ws2_32=${enable_ws2_32:-no}
7662 enable_loader=${enable_loader:-no}
7663 enable_server=${enable_server:-no}
7664 with_x=${with_x:-no}
7665 with_pthread=${with_pthread:-no}
7667 crtlibs=""
7668 case $host_os in
7669 mingw32*)
7670 crtlibs="-lmsvcrt"
7671 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
7673 esac
7675 libwine_targets="libwine.dll libwine.a"
7676 LIBWINE_RULES="
7677 all: libwine.dll libwine.a
7679 libwine.a: \$(srcdir)/wine.def
7680 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
7682 libwine.dll: \$(OBJS) \$(srcdir)/wine.def
7683 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
7685 install install-lib:: libwine.dll
7686 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
7688 install install-dev:: libwine.a
7689 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
7691 uninstall::
7692 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
7697 darwin*|macosx*)
7698 LIBEXT="dylib"
7699 DLLFLAGS="$DLLFLAGS -fPIC"
7700 LIBWINE_LDFLAGS="-multiply_defined suppress"
7701 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7702 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
7703 COREFOUNDATIONLIB="-framework CoreFoundation"
7705 IOKITLIB="-framework IOKit -framework CoreFoundation"
7707 FORCEFEEDBACKLIB="-framework ForceFeedback -framework CoreFoundation"
7709 APPLICATIONSERVICESLIB="-framework ApplicationServices"
7711 CORESERVICESLIB="-framework CoreServices"
7713 APPKITLIB="-framework AppKit"
7715 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
7716 case $host_os in
7717 darwin11*) LDEXECFLAGS="-Wl,-macosx_version_min,10.6 $LDEXECFLAGS" ;;
7718 esac
7719 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
7720 then
7721 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
7724 if test "$ac_cv_header_Security_Security_h" = "yes"
7725 then
7726 SECURITYLIB="-framework Security -framework CoreFoundation"
7728 ac_save_LIBS="$LIBS"
7729 LIBS="$LIBS $SECURITYLIB"
7730 for ac_func in SSLCopyPeerCertificates
7731 do :
7732 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
7733 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
7734 cat >>confdefs.h <<_ACEOF
7735 #define HAVE_SSLCOPYPEERCERTIFICATES 1
7736 _ACEOF
7739 done
7741 LIBS="$ac_save_LIBS"
7742 with_gnutls=${with_gnutls:-no}
7744 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
7745 then
7746 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
7747 then
7748 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
7750 else
7751 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
7754 ac_save_LIBS="$LIBS"
7755 LIBS="$LIBS $COREAUDIO"
7756 for ac_func in AUGraphAddNode
7757 do :
7758 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
7759 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
7760 cat >>confdefs.h <<_ACEOF
7761 #define HAVE_AUGRAPHADDNODE 1
7762 _ACEOF
7765 done
7767 LIBS="$ac_save_LIBS"
7769 if test "$ac_cv_header_OpenAL_al_h" = "yes"
7770 then
7771 FRAMEWORK_OPENAL="-framework OpenAL"
7774 cat >>confdefs.h <<_ACEOF
7775 #define HAVE_OPENAL 1
7776 _ACEOF
7778 ac_cv_lib_openal=yes
7780 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
7781 then
7782 LIBOPENCL="-framework OpenCL"
7784 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
7786 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
7787 then
7788 ac_save_LIBS="$LIBS"
7789 LIBS="$LIBS $IOKITLIB"
7790 for ac_func in IOHIDManagerCreate
7791 do :
7792 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
7793 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
7794 cat >>confdefs.h <<_ACEOF
7795 #define HAVE_IOHIDMANAGERCREATE 1
7796 _ACEOF
7799 done
7801 LIBS="$ac_save_LIBS"
7803 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
7804 then
7805 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
7807 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
7808 else
7809 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
7811 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
7812 then
7813 CARBONLIB="-framework Carbon"
7817 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
7818 then
7819 ac_save_LIBS="$LIBS"
7820 LIBS="$LIBS $APPLICATIONSERVICESLIB"
7821 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
7822 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
7823 enable_winemac_drv=${enable_winemac_drv:-yes}
7826 LIBS="$ac_save_LIBS"
7829 if test "x$enable_win16" = "xyes"
7830 then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
7832 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
7833 if test "$cross_compiling" = yes; then :
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
7835 $as_echo "cross-compiling, assuming yes" >&6; }
7836 else
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7839 asm(".text\n"
7840 "bad:\tnop;nop\n"
7841 "good:\tnop;nop\n\t"
7842 ".globl _testfunc\n"
7843 "_testfunc:\tcallw good");
7844 extern void testfunc();
7846 main ()
7848 unsigned short *p = (unsigned short *)testfunc;
7849 return p[0] != 0xe866 || p[1] != 0xfffa
7851 return 0;
7853 _ACEOF
7854 if ac_fn_c_try_run "$LINENO"; then :
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7856 $as_echo "yes" >&6; }
7857 else
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7860 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
7862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7863 conftest.$ac_objext conftest.beam conftest.$ac_ext
7868 libwine_targets="libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib"
7869 LIBWINE_RULES="
7870 all: libwine.dylib
7872 libwine.$libwine_version.dylib: \$(OBJS)
7873 \$(CC) -dynamiclib -install_name @rpath/libwine.$libwine_soversion.dylib -Wl,-rpath,@loader_path/ -compatibility_version $libwine_soversion -current_version $libwine_version \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7875 libwine.$libwine_soversion.dylib: libwine.$libwine_version.dylib
7876 \$(RM) \$@ && \$(LN_S) libwine.$libwine_version.dylib \$@
7878 libwine.dylib: libwine.$libwine_soversion.dylib
7879 \$(RM) \$@ && \$(LN_S) libwine.$libwine_soversion.dylib \$@
7881 install install-lib:: libwine.$libwine_version.dylib
7882 \$(INSTALL_PROGRAM) libwine.$libwine_version.dylib \$(DESTDIR)\$(libdir)/libwine.$libwine_version.dylib
7883 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.$libwine_soversion.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.$libwine_soversion.dylib
7885 install install-dev::
7886 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.dylib
7888 uninstall::
7889 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib
7893 as_fn_append LOADER_RULES "
7894 $wine_binary: main.o wine_info.plist
7895 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
7897 wine-installed: main.o wine_info.plist
7898 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
7902 linux-android*)
7903 DLLFLAGS="$DLLFLAGS -fPIC"
7904 DLLPREFIX="lib"
7905 LDEXECFLAGS=""
7906 dlldir="\${libdir}"
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7908 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7909 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 ac_wine_try_cflags_saved=$CFLAGS
7913 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7916 int main(int argc, char **argv) { return 0; }
7917 _ACEOF
7918 if ac_fn_c_try_link "$LINENO"; then :
7919 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7920 else
7921 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7923 rm -f core conftest.err conftest.$ac_objext \
7924 conftest$ac_exeext conftest.$ac_ext
7925 CFLAGS=$ac_wine_try_cflags_saved
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7928 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7929 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7930 LDEXECFLAGS="-Wl,--export-dynamic"
7932 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7934 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7935 if eval \${$as_ac_var+:} false; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938 ac_wine_try_cflags_saved=$CFLAGS
7939 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7942 int main(int argc, char **argv) { return 0; }
7943 _ACEOF
7944 if ac_fn_c_try_link "$LINENO"; then :
7945 eval "$as_ac_var=yes"
7946 else
7947 eval "$as_ac_var=no"
7949 rm -f core conftest.err conftest.$ac_objext \
7950 conftest$ac_exeext conftest.$ac_ext
7951 CFLAGS=$ac_wine_try_cflags_saved
7953 eval ac_res=\$$as_ac_var
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7955 $as_echo "$ac_res" >&6; }
7956 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7957 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7958 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7959 else
7960 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7962 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7963 if eval \${$as_ac_var+:} false; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 ac_wine_try_cflags_saved=$CFLAGS
7967 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7970 int main(int argc, char **argv) { return 0; }
7971 _ACEOF
7972 if ac_fn_c_try_link "$LINENO"; then :
7973 eval "$as_ac_var=yes"
7974 else
7975 eval "$as_ac_var=no"
7977 rm -f core conftest.err conftest.$ac_objext \
7978 conftest$ac_exeext conftest.$ac_ext
7979 CFLAGS=$ac_wine_try_cflags_saved
7981 eval ac_res=\$$as_ac_var
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7983 $as_echo "$ac_res" >&6; }
7984 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7985 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7986 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7991 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7992 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 ac_wine_try_cflags_saved=$CFLAGS
7996 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
7999 int main(int argc, char **argv) { return 0; }
8000 _ACEOF
8001 if ac_fn_c_try_link "$LINENO"; then :
8002 ac_cv_cflags__Wl___enable_new_dtags=yes
8003 else
8004 ac_cv_cflags__Wl___enable_new_dtags=no
8006 rm -f core conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
8008 CFLAGS=$ac_wine_try_cflags_saved
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8011 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8012 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
8013 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8016 case $host_cpu in
8017 *i[3456789]86* | x86_64)
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8019 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8020 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 ac_wine_try_cflags_saved=$CFLAGS
8024 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8027 int main(int argc, char **argv) { return 0; }
8028 _ACEOF
8029 if ac_fn_c_try_link "$LINENO"; then :
8030 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8031 else
8032 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8034 rm -f core conftest.err conftest.$ac_objext \
8035 conftest$ac_exeext conftest.$ac_ext
8036 CFLAGS=$ac_wine_try_cflags_saved
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8039 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8040 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
8041 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
8044 esac
8046 libwine_targets="libwine.so"
8047 LIBWINE_RULES="
8048 all: libwine.so
8050 libwine.so: \$(OBJS)
8051 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8053 install install-lib:: libwine.so
8054 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
8056 uninstall::
8057 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
8061 as_fn_append LOADER_RULES "
8062 $wine_binary: main.o
8063 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8065 wine-installed: main.o
8066 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8071 DLLFLAGS="$DLLFLAGS -fPIC"
8072 LDEXECFLAGS=""
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
8074 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
8075 if ${ac_cv_c_dll_gnuelf+:} false; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 ac_wine_try_cflags_saved=$CFLAGS
8079 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8082 void myfunc() {}
8083 _ACEOF
8084 if ac_fn_c_try_link "$LINENO"; then :
8085 ac_cv_c_dll_gnuelf="yes"
8086 else
8087 ac_cv_c_dll_gnuelf="no"
8089 rm -f core conftest.err conftest.$ac_objext \
8090 conftest$ac_exeext conftest.$ac_ext
8091 CFLAGS=$ac_wine_try_cflags_saved
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
8094 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
8095 if test "$ac_cv_c_dll_gnuelf" = "yes"
8096 then
8097 LDSHARED="\$(CC) -shared"
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8099 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
8100 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 ac_wine_try_cflags_saved=$CFLAGS
8104 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 int main(int argc, char **argv) { return 0; }
8108 _ACEOF
8109 if ac_fn_c_try_link "$LINENO"; then :
8110 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8111 else
8112 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8114 rm -f core conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
8116 CFLAGS=$ac_wine_try_cflags_saved
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8119 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8120 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
8121 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.$libwine_soversion"
8122 else
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8124 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
8125 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 ac_wine_try_cflags_saved=$CFLAGS
8129 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131 /* end confdefs.h. */
8132 int main(int argc, char **argv) { return 0; }
8133 _ACEOF
8134 if ac_fn_c_try_link "$LINENO"; then :
8135 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8136 else
8137 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8139 rm -f core conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
8141 CFLAGS=$ac_wine_try_cflags_saved
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8144 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8145 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
8146 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.$libwine_soversion"
8150 echo '{ global: *; };' >conftest.map
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8152 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
8153 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 ac_wine_try_cflags_saved=$CFLAGS
8157 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8160 int main(int argc, char **argv) { return 0; }
8161 _ACEOF
8162 if ac_fn_c_try_link "$LINENO"; then :
8163 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8164 else
8165 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8167 rm -f core conftest.err conftest.$ac_objext \
8168 conftest$ac_exeext conftest.$ac_ext
8169 CFLAGS=$ac_wine_try_cflags_saved
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8172 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8173 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
8174 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
8176 rm -f conftest.map
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8179 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8180 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8181 $as_echo_n "(cached) " >&6
8182 else
8183 ac_wine_try_cflags_saved=$CFLAGS
8184 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8186 /* end confdefs.h. */
8187 int main(int argc, char **argv) { return 0; }
8188 _ACEOF
8189 if ac_fn_c_try_link "$LINENO"; then :
8190 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8191 else
8192 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8194 rm -f core conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext conftest.$ac_ext
8196 CFLAGS=$ac_wine_try_cflags_saved
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8199 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8200 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
8201 LDEXECFLAGS="-Wl,--export-dynamic"
8204 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8206 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8207 if eval \${$as_ac_var+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 ac_wine_try_cflags_saved=$CFLAGS
8211 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8214 int main(int argc, char **argv) { return 0; }
8215 _ACEOF
8216 if ac_fn_c_try_link "$LINENO"; then :
8217 eval "$as_ac_var=yes"
8218 else
8219 eval "$as_ac_var=no"
8221 rm -f core conftest.err conftest.$ac_objext \
8222 conftest$ac_exeext conftest.$ac_ext
8223 CFLAGS=$ac_wine_try_cflags_saved
8225 eval ac_res=\$$as_ac_var
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8227 $as_echo "$ac_res" >&6; }
8228 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8229 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8230 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8231 else
8232 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8234 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8235 if eval \${$as_ac_var+:} false; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 ac_wine_try_cflags_saved=$CFLAGS
8239 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 int main(int argc, char **argv) { return 0; }
8243 _ACEOF
8244 if ac_fn_c_try_link "$LINENO"; then :
8245 eval "$as_ac_var=yes"
8246 else
8247 eval "$as_ac_var=no"
8249 rm -f core conftest.err conftest.$ac_objext \
8250 conftest$ac_exeext conftest.$ac_ext
8251 CFLAGS=$ac_wine_try_cflags_saved
8253 eval ac_res=\$$as_ac_var
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8255 $as_echo "$ac_res" >&6; }
8256 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8257 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8258 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8263 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8264 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 ac_wine_try_cflags_saved=$CFLAGS
8268 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8271 int main(int argc, char **argv) { return 0; }
8272 _ACEOF
8273 if ac_fn_c_try_link "$LINENO"; then :
8274 ac_cv_cflags__Wl___enable_new_dtags=yes
8275 else
8276 ac_cv_cflags__Wl___enable_new_dtags=no
8278 rm -f core conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8280 CFLAGS=$ac_wine_try_cflags_saved
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8283 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8284 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
8285 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8288 case $host_cpu in
8289 *i[3456789]86* | x86_64)
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8291 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8292 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294 else
8295 ac_wine_try_cflags_saved=$CFLAGS
8296 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8299 int main(int argc, char **argv) { return 0; }
8300 _ACEOF
8301 if ac_fn_c_try_link "$LINENO"; then :
8302 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8303 else
8304 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8306 rm -f core conftest.err conftest.$ac_objext \
8307 conftest$ac_exeext conftest.$ac_ext
8308 CFLAGS=$ac_wine_try_cflags_saved
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8311 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8312 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
8313 case $host_os in
8314 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
8315 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
8316 esac
8319 # Extract the first word of "prelink", so it can be a program name with args.
8320 set dummy prelink; ac_word=$2
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322 $as_echo_n "checking for $ac_word... " >&6; }
8323 if ${ac_cv_path_PRELINK+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 case $PRELINK in
8327 [\\/]* | ?:[\\/]*)
8328 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
8331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332 for as_dir in /sbin /usr/sbin $PATH
8334 IFS=$as_save_IFS
8335 test -z "$as_dir" && as_dir=.
8336 for ac_exec_ext in '' $ac_executable_extensions; do
8337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8338 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
8339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 break 2
8342 done
8343 done
8344 IFS=$as_save_IFS
8346 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
8348 esac
8350 PRELINK=$ac_cv_path_PRELINK
8351 if test -n "$PRELINK"; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
8353 $as_echo "$PRELINK" >&6; }
8354 else
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 $as_echo "no" >&6; }
8360 if test "x$PRELINK" = xfalse
8361 then
8362 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
8365 esac
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
8369 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
8370 if ${ac_cv_c_dll_unixware+:} false; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 ac_wine_try_cflags_saved=$CFLAGS
8374 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8377 void myfunc() {}
8378 _ACEOF
8379 if ac_fn_c_try_link "$LINENO"; then :
8380 ac_cv_c_dll_unixware="yes"
8381 else
8382 ac_cv_c_dll_unixware="no"
8384 rm -f core conftest.err conftest.$ac_objext \
8385 conftest$ac_exeext conftest.$ac_ext
8386 CFLAGS=$ac_wine_try_cflags_saved
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
8389 $as_echo "$ac_cv_c_dll_unixware" >&6; }
8390 if test "$ac_cv_c_dll_unixware" = "yes"
8391 then
8392 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.$libwine_soversion"
8395 libwine_targets="libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version"
8396 LIBWINE_RULES="
8397 all: libwine.so
8399 libwine.so.$libwine_version: \$(OBJS) \$(srcdir)/wine.map
8400 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8402 libwine.so.$libwine_soversion: libwine.so.$libwine_version
8403 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_version \$@
8405 libwine.so: libwine.so.$libwine_soversion
8406 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_soversion \$@
8408 install install-lib:: libwine.so.$libwine_version
8409 \$(INSTALL_PROGRAM) libwine.so.$libwine_version \$(DESTDIR)\$(libdir)/libwine.so.$libwine_version
8410 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.$libwine_soversion && \$(LN_S) libwine.so.$libwine_version libwine.so.$libwine_soversion
8412 install install-dev::
8413 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.$libwine_version libwine.so
8415 uninstall::
8416 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version
8420 as_fn_append LOADER_RULES "
8421 $wine_binary: main.o
8422 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8424 wine-installed: main.o
8425 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8428 esac
8430 as_fn_append LIBWINE_RULES "
8431 EXTRA_TARGETS = $libwine_targets
8434 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
8435 enable_winemac_drv=${enable_winemac_drv:-no}
8437 CROSSTARGET=""
8439 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
8440 then
8441 case "$host_cpu" in
8442 i[3456789]86*)
8443 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
8444 mingw32-gcc" ;;
8445 x86_64)
8446 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 " ;;
8448 ac_prefix_list="" ;;
8449 esac
8450 for ac_prog in $ac_prefix_list
8452 # Extract the first word of "$ac_prog", so it can be a program name with args.
8453 set dummy $ac_prog; ac_word=$2
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8455 $as_echo_n "checking for $ac_word... " >&6; }
8456 if ${ac_cv_prog_CROSSCC+:} false; then :
8457 $as_echo_n "(cached) " >&6
8458 else
8459 if test -n "$CROSSCC"; then
8460 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8461 else
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 for as_dir in $PATH
8465 IFS=$as_save_IFS
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8469 ac_cv_prog_CROSSCC="$ac_prog"
8470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 break 2
8473 done
8474 done
8475 IFS=$as_save_IFS
8479 CROSSCC=$ac_cv_prog_CROSSCC
8480 if test -n "$CROSSCC"; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
8482 $as_echo "$CROSSCC" >&6; }
8483 else
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8489 test -n "$CROSSCC" && break
8490 done
8491 test -n "$CROSSCC" || CROSSCC="false"
8493 if test "$CROSSCC" != "false"
8494 then
8495 ac_save_CC="$CC"
8496 CC="$CROSSCC"
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
8498 $as_echo_n "checking whether $CROSSCC works... " >&6; }
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8503 main ()
8507 return 0;
8509 _ACEOF
8510 if ac_fn_c_try_compile "$LINENO"; then :
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8512 $as_echo "yes" >&6; }
8513 set x $CROSSCC
8514 shift
8515 while test $# -ge 1
8517 case "$1" in
8518 *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
8519 esac
8520 shift
8521 done
8522 else
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527 CC="$ac_save_CC"
8532 if test "$ac_cv_header_pthread_h" = "yes"
8533 then
8534 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8535 if test "x$ac_cv_func_pthread_create" = xyes; then :
8537 else
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8539 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8540 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 ac_check_lib_save_LIBS=$LIBS
8544 LIBS="-lpthread $LIBS"
8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8548 /* Override any GCC internal prototype to avoid an error.
8549 Use char because int might match the return type of a GCC
8550 builtin and then its argument prototype would still apply. */
8551 #ifdef __cplusplus
8552 extern "C"
8553 #endif
8554 char pthread_create ();
8556 main ()
8558 return pthread_create ();
8560 return 0;
8562 _ACEOF
8563 if ac_fn_c_try_link "$LINENO"; then :
8564 ac_cv_lib_pthread_pthread_create=yes
8565 else
8566 ac_cv_lib_pthread_pthread_create=no
8568 rm -f core conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 LIBS=$ac_check_lib_save_LIBS
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8573 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8574 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8575 LIBPTHREAD="-lpthread"
8582 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
8583 case "x$with_pthread" in
8584 xno) ;;
8585 *) as_fn_error $? "pthread ${notice_platform}development files not found.
8586 Wine cannot support threads without libpthread.
8587 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
8588 esac
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8593 $as_echo_n "checking for X... " >&6; }
8596 # Check whether --with-x was given.
8597 if test "${with_x+set}" = set; then :
8598 withval=$with_x;
8601 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8602 if test "x$with_x" = xno; then
8603 # The user explicitly disabled X.
8604 have_x=disabled
8605 else
8606 case $x_includes,$x_libraries in #(
8607 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8608 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8609 $as_echo_n "(cached) " >&6
8610 else
8611 # One or both of the vars are not set, and there is no cached value.
8612 ac_x_includes=no ac_x_libraries=no
8613 rm -f -r conftest.dir
8614 if mkdir conftest.dir; then
8615 cd conftest.dir
8616 cat >Imakefile <<'_ACEOF'
8617 incroot:
8618 @echo incroot='${INCROOT}'
8619 usrlibdir:
8620 @echo usrlibdir='${USRLIBDIR}'
8621 libdir:
8622 @echo libdir='${LIBDIR}'
8623 _ACEOF
8624 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8625 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8626 for ac_var in incroot usrlibdir libdir; do
8627 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8628 done
8629 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8630 for ac_extension in a so sl dylib la dll; do
8631 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8632 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8633 ac_im_usrlibdir=$ac_im_libdir; break
8635 done
8636 # Screen out bogus values from the imake configuration. They are
8637 # bogus both because they are the default anyway, and because
8638 # using them would break gcc on systems where it needs fixed includes.
8639 case $ac_im_incroot in
8640 /usr/include) ac_x_includes= ;;
8641 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8642 esac
8643 case $ac_im_usrlibdir in
8644 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8645 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8646 esac
8648 cd ..
8649 rm -f -r conftest.dir
8652 # Standard set of common directories for X headers.
8653 # Check X11 before X11Rn because it is often a symlink to the current release.
8654 ac_x_header_dirs='
8655 /usr/X11/include
8656 /usr/X11R7/include
8657 /usr/X11R6/include
8658 /usr/X11R5/include
8659 /usr/X11R4/include
8661 /usr/include/X11
8662 /usr/include/X11R7
8663 /usr/include/X11R6
8664 /usr/include/X11R5
8665 /usr/include/X11R4
8667 /usr/local/X11/include
8668 /usr/local/X11R7/include
8669 /usr/local/X11R6/include
8670 /usr/local/X11R5/include
8671 /usr/local/X11R4/include
8673 /usr/local/include/X11
8674 /usr/local/include/X11R7
8675 /usr/local/include/X11R6
8676 /usr/local/include/X11R5
8677 /usr/local/include/X11R4
8679 /usr/X386/include
8680 /usr/x386/include
8681 /usr/XFree86/include/X11
8683 /usr/include
8684 /usr/local/include
8685 /usr/unsupported/include
8686 /usr/athena/include
8687 /usr/local/x11r5/include
8688 /usr/lpp/Xamples/include
8690 /usr/openwin/include
8691 /usr/openwin/share/include'
8693 if test "$ac_x_includes" = no; then
8694 # Guess where to find include files, by looking for Xlib.h.
8695 # First, try using that file with no special directory specified.
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8698 #include <X11/Xlib.h>
8699 _ACEOF
8700 if ac_fn_c_try_cpp "$LINENO"; then :
8701 # We can compile using X headers with no special include directory.
8702 ac_x_includes=
8703 else
8704 for ac_dir in $ac_x_header_dirs; do
8705 if test -r "$ac_dir/X11/Xlib.h"; then
8706 ac_x_includes=$ac_dir
8707 break
8709 done
8711 rm -f conftest.err conftest.i conftest.$ac_ext
8712 fi # $ac_x_includes = no
8714 if test "$ac_x_libraries" = no; then
8715 # Check for the libraries.
8716 # See if we find them without any special options.
8717 # Don't add to $LIBS permanently.
8718 ac_save_LIBS=$LIBS
8719 LIBS="-lX11 $LIBS"
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722 #include <X11/Xlib.h>
8724 main ()
8726 XrmInitialize ()
8728 return 0;
8730 _ACEOF
8731 if ac_fn_c_try_link "$LINENO"; then :
8732 LIBS=$ac_save_LIBS
8733 # We can link X programs with no special library path.
8734 ac_x_libraries=
8735 else
8736 LIBS=$ac_save_LIBS
8737 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8739 # Don't even attempt the hair of trying to link an X program!
8740 for ac_extension in a so sl dylib la dll; do
8741 if test -r "$ac_dir/libX11.$ac_extension"; then
8742 ac_x_libraries=$ac_dir
8743 break 2
8745 done
8746 done
8748 rm -f core conftest.err conftest.$ac_objext \
8749 conftest$ac_exeext conftest.$ac_ext
8750 fi # $ac_x_libraries = no
8752 case $ac_x_includes,$ac_x_libraries in #(
8753 no,* | *,no | *\'*)
8754 # Didn't find X, or a directory has "'" in its name.
8755 ac_cv_have_x="have_x=no";; #(
8757 # Record where we found X for the cache.
8758 ac_cv_have_x="have_x=yes\
8759 ac_x_includes='$ac_x_includes'\
8760 ac_x_libraries='$ac_x_libraries'"
8761 esac
8763 ;; #(
8764 *) have_x=yes;;
8765 esac
8766 eval "$ac_cv_have_x"
8767 fi # $with_x != no
8769 if test "$have_x" != yes; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8771 $as_echo "$have_x" >&6; }
8772 no_x=yes
8773 else
8774 # If each of the values was on the command line, it overrides each guess.
8775 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8776 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8777 # Update the cache value to reflect the command line values.
8778 ac_cv_have_x="have_x=yes\
8779 ac_x_includes='$x_includes'\
8780 ac_x_libraries='$x_libraries'"
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8782 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8785 if test "$no_x" = yes; then
8786 # Not all programs may use this symbol, but it does not hurt to define it.
8788 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8790 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8791 else
8792 if test -n "$x_includes"; then
8793 X_CFLAGS="$X_CFLAGS -I$x_includes"
8796 # It would also be nice to do this for all -L options, not just this one.
8797 if test -n "$x_libraries"; then
8798 X_LIBS="$X_LIBS -L$x_libraries"
8799 # For Solaris; some versions of Sun CC require a space after -R and
8800 # others require no space. Words are not sufficient . . . .
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8802 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
8803 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8804 ac_xsave_c_werror_flag=$ac_c_werror_flag
8805 ac_c_werror_flag=yes
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8810 main ()
8814 return 0;
8816 _ACEOF
8817 if ac_fn_c_try_link "$LINENO"; then :
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8820 X_LIBS="$X_LIBS -R$x_libraries"
8821 else
8822 LIBS="$ac_xsave_LIBS -R $x_libraries"
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8827 main ()
8831 return 0;
8833 _ACEOF
8834 if ac_fn_c_try_link "$LINENO"; then :
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8836 $as_echo "yes" >&6; }
8837 X_LIBS="$X_LIBS -R $x_libraries"
8838 else
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8840 $as_echo "neither works" >&6; }
8842 rm -f core conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
8845 rm -f core conftest.err conftest.$ac_objext \
8846 conftest$ac_exeext conftest.$ac_ext
8847 ac_c_werror_flag=$ac_xsave_c_werror_flag
8848 LIBS=$ac_xsave_LIBS
8851 # Check for system-dependent libraries X programs must link with.
8852 # Do this before checking for the system-independent R6 libraries
8853 # (-lICE), since we may need -lsocket or whatever for X linking.
8855 if test "$ISC" = yes; then
8856 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8857 else
8858 # Martyn Johnson says this is needed for Ultrix, if the X
8859 # libraries were built with DECnet support. And Karl Berry says
8860 # the Alpha needs dnet_stub (dnet does not exist).
8861 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8865 /* Override any GCC internal prototype to avoid an error.
8866 Use char because int might match the return type of a GCC
8867 builtin and then its argument prototype would still apply. */
8868 #ifdef __cplusplus
8869 extern "C"
8870 #endif
8871 char XOpenDisplay ();
8873 main ()
8875 return XOpenDisplay ();
8877 return 0;
8879 _ACEOF
8880 if ac_fn_c_try_link "$LINENO"; then :
8882 else
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8884 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8885 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8886 $as_echo_n "(cached) " >&6
8887 else
8888 ac_check_lib_save_LIBS=$LIBS
8889 LIBS="-ldnet $LIBS"
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8893 /* Override any GCC internal prototype to avoid an error.
8894 Use char because int might match the return type of a GCC
8895 builtin and then its argument prototype would still apply. */
8896 #ifdef __cplusplus
8897 extern "C"
8898 #endif
8899 char dnet_ntoa ();
8901 main ()
8903 return dnet_ntoa ();
8905 return 0;
8907 _ACEOF
8908 if ac_fn_c_try_link "$LINENO"; then :
8909 ac_cv_lib_dnet_dnet_ntoa=yes
8910 else
8911 ac_cv_lib_dnet_dnet_ntoa=no
8913 rm -f core conftest.err conftest.$ac_objext \
8914 conftest$ac_exeext conftest.$ac_ext
8915 LIBS=$ac_check_lib_save_LIBS
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8918 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8919 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8920 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8923 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8925 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8926 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 ac_check_lib_save_LIBS=$LIBS
8930 LIBS="-ldnet_stub $LIBS"
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8934 /* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
8937 #ifdef __cplusplus
8938 extern "C"
8939 #endif
8940 char dnet_ntoa ();
8942 main ()
8944 return dnet_ntoa ();
8946 return 0;
8948 _ACEOF
8949 if ac_fn_c_try_link "$LINENO"; then :
8950 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8951 else
8952 ac_cv_lib_dnet_stub_dnet_ntoa=no
8954 rm -f core conftest.err conftest.$ac_objext \
8955 conftest$ac_exeext conftest.$ac_ext
8956 LIBS=$ac_check_lib_save_LIBS
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8959 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8960 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8961 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8966 rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8968 LIBS="$ac_xsave_LIBS"
8970 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8971 # to get the SysV transport functions.
8972 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8973 # needs -lnsl.
8974 # The nsl library prevents programs from opening the X display
8975 # on Irix 5.2, according to T.E. Dickey.
8976 # The functions gethostbyname, getservbyname, and inet_addr are
8977 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8978 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8979 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8983 if test $ac_cv_func_gethostbyname = no; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8985 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8986 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8987 $as_echo_n "(cached) " >&6
8988 else
8989 ac_check_lib_save_LIBS=$LIBS
8990 LIBS="-lnsl $LIBS"
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8994 /* Override any GCC internal prototype to avoid an error.
8995 Use char because int might match the return type of a GCC
8996 builtin and then its argument prototype would still apply. */
8997 #ifdef __cplusplus
8998 extern "C"
8999 #endif
9000 char gethostbyname ();
9002 main ()
9004 return gethostbyname ();
9006 return 0;
9008 _ACEOF
9009 if ac_fn_c_try_link "$LINENO"; then :
9010 ac_cv_lib_nsl_gethostbyname=yes
9011 else
9012 ac_cv_lib_nsl_gethostbyname=no
9014 rm -f core conftest.err conftest.$ac_objext \
9015 conftest$ac_exeext conftest.$ac_ext
9016 LIBS=$ac_check_lib_save_LIBS
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9019 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9020 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9021 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9024 if test $ac_cv_lib_nsl_gethostbyname = no; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
9026 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
9027 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 ac_check_lib_save_LIBS=$LIBS
9031 LIBS="-lbsd $LIBS"
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9035 /* Override any GCC internal prototype to avoid an error.
9036 Use char because int might match the return type of a GCC
9037 builtin and then its argument prototype would still apply. */
9038 #ifdef __cplusplus
9039 extern "C"
9040 #endif
9041 char gethostbyname ();
9043 main ()
9045 return gethostbyname ();
9047 return 0;
9049 _ACEOF
9050 if ac_fn_c_try_link "$LINENO"; then :
9051 ac_cv_lib_bsd_gethostbyname=yes
9052 else
9053 ac_cv_lib_bsd_gethostbyname=no
9055 rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057 LIBS=$ac_check_lib_save_LIBS
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
9060 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
9061 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
9062 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9068 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9069 # socket/setsockopt and other routines are undefined under SCO ODT
9070 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9071 # on later versions), says Simon Leinen: it contains gethostby*
9072 # variants that don't use the name server (or something). -lsocket
9073 # must be given before -lnsl if both are needed. We assume that
9074 # if connect needs -lnsl, so does gethostbyname.
9075 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9076 if test "x$ac_cv_func_connect" = xyes; then :
9080 if test $ac_cv_func_connect = no; then
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9082 $as_echo_n "checking for connect in -lsocket... " >&6; }
9083 if ${ac_cv_lib_socket_connect+:} false; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 ac_check_lib_save_LIBS=$LIBS
9087 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9091 /* Override any GCC internal prototype to avoid an error.
9092 Use char because int might match the return type of a GCC
9093 builtin and then its argument prototype would still apply. */
9094 #ifdef __cplusplus
9095 extern "C"
9096 #endif
9097 char connect ();
9099 main ()
9101 return connect ();
9103 return 0;
9105 _ACEOF
9106 if ac_fn_c_try_link "$LINENO"; then :
9107 ac_cv_lib_socket_connect=yes
9108 else
9109 ac_cv_lib_socket_connect=no
9111 rm -f core conftest.err conftest.$ac_objext \
9112 conftest$ac_exeext conftest.$ac_ext
9113 LIBS=$ac_check_lib_save_LIBS
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
9116 $as_echo "$ac_cv_lib_socket_connect" >&6; }
9117 if test "x$ac_cv_lib_socket_connect" = xyes; then :
9118 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9123 # Guillermo Gomez says -lposix is necessary on A/UX.
9124 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9125 if test "x$ac_cv_func_remove" = xyes; then :
9129 if test $ac_cv_func_remove = no; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
9131 $as_echo_n "checking for remove in -lposix... " >&6; }
9132 if ${ac_cv_lib_posix_remove+:} false; then :
9133 $as_echo_n "(cached) " >&6
9134 else
9135 ac_check_lib_save_LIBS=$LIBS
9136 LIBS="-lposix $LIBS"
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9140 /* Override any GCC internal prototype to avoid an error.
9141 Use char because int might match the return type of a GCC
9142 builtin and then its argument prototype would still apply. */
9143 #ifdef __cplusplus
9144 extern "C"
9145 #endif
9146 char remove ();
9148 main ()
9150 return remove ();
9152 return 0;
9154 _ACEOF
9155 if ac_fn_c_try_link "$LINENO"; then :
9156 ac_cv_lib_posix_remove=yes
9157 else
9158 ac_cv_lib_posix_remove=no
9160 rm -f core conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9162 LIBS=$ac_check_lib_save_LIBS
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
9165 $as_echo "$ac_cv_lib_posix_remove" >&6; }
9166 if test "x$ac_cv_lib_posix_remove" = xyes; then :
9167 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9172 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9173 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9174 if test "x$ac_cv_func_shmat" = xyes; then :
9178 if test $ac_cv_func_shmat = no; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
9180 $as_echo_n "checking for shmat in -lipc... " >&6; }
9181 if ${ac_cv_lib_ipc_shmat+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 ac_check_lib_save_LIBS=$LIBS
9185 LIBS="-lipc $LIBS"
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9189 /* Override any GCC internal prototype to avoid an error.
9190 Use char because int might match the return type of a GCC
9191 builtin and then its argument prototype would still apply. */
9192 #ifdef __cplusplus
9193 extern "C"
9194 #endif
9195 char shmat ();
9197 main ()
9199 return shmat ();
9201 return 0;
9203 _ACEOF
9204 if ac_fn_c_try_link "$LINENO"; then :
9205 ac_cv_lib_ipc_shmat=yes
9206 else
9207 ac_cv_lib_ipc_shmat=no
9209 rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211 LIBS=$ac_check_lib_save_LIBS
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
9214 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9215 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
9216 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9222 # Check for libraries that X11R6 Xt/Xaw programs need.
9223 ac_save_LDFLAGS=$LDFLAGS
9224 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9225 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9226 # check for ICE first), but we must link in the order -lSM -lICE or
9227 # we get undefined symbols. So assume we have SM if we have ICE.
9228 # These have to be linked with before -lX11, unlike the other
9229 # libraries we check for below, so use a different variable.
9230 # John Interrante, Karl Berry
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
9232 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9233 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
9234 $as_echo_n "(cached) " >&6
9235 else
9236 ac_check_lib_save_LIBS=$LIBS
9237 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9241 /* Override any GCC internal prototype to avoid an error.
9242 Use char because int might match the return type of a GCC
9243 builtin and then its argument prototype would still apply. */
9244 #ifdef __cplusplus
9245 extern "C"
9246 #endif
9247 char IceConnectionNumber ();
9249 main ()
9251 return IceConnectionNumber ();
9253 return 0;
9255 _ACEOF
9256 if ac_fn_c_try_link "$LINENO"; then :
9257 ac_cv_lib_ICE_IceConnectionNumber=yes
9258 else
9259 ac_cv_lib_ICE_IceConnectionNumber=no
9261 rm -f core conftest.err conftest.$ac_objext \
9262 conftest$ac_exeext conftest.$ac_ext
9263 LIBS=$ac_check_lib_save_LIBS
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9266 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9267 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
9268 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9271 LDFLAGS=$ac_save_LDFLAGS
9276 if test "$have_x" = "yes"
9277 then
9278 XLIB="-lX11"
9279 ac_save_CPPFLAGS="$CPPFLAGS"
9280 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
9283 $as_echo_n "checking for -lX11... " >&6; }
9284 if ${ac_cv_lib_soname_X11+:} false; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 ac_check_soname_save_LIBS=$LIBS
9288 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */
9292 /* Override any GCC internal prototype to avoid an error.
9293 Use char because int might match the return type of a GCC
9294 builtin and then its argument prototype would still apply. */
9295 #ifdef __cplusplus
9296 extern "C"
9297 #endif
9298 char XCreateWindow ();
9300 main ()
9302 return XCreateWindow ();
9304 return 0;
9306 _ACEOF
9307 if ac_fn_c_try_link "$LINENO"; then :
9308 case "$LIBEXT" in
9309 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9310 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'` ;;
9311 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9312 if test "x$ac_cv_lib_soname_X11" = x; then :
9313 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9314 fi ;;
9315 esac
9317 rm -f core conftest.err conftest.$ac_objext \
9318 conftest$ac_exeext conftest.$ac_ext
9319 LIBS=$ac_check_soname_save_LIBS
9321 if test "x$ac_cv_lib_soname_X11" = "x"; then :
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9323 $as_echo "not found" >&6; }
9325 else
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
9327 $as_echo "$ac_cv_lib_soname_X11" >&6; }
9329 cat >>confdefs.h <<_ACEOF
9330 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9331 _ACEOF
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
9336 $as_echo_n "checking for -lXext... " >&6; }
9337 if ${ac_cv_lib_soname_Xext+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 ac_check_soname_save_LIBS=$LIBS
9341 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9345 /* Override any GCC internal prototype to avoid an error.
9346 Use char because int might match the return type of a GCC
9347 builtin and then its argument prototype would still apply. */
9348 #ifdef __cplusplus
9349 extern "C"
9350 #endif
9351 char XextCreateExtension ();
9353 main ()
9355 return XextCreateExtension ();
9357 return 0;
9359 _ACEOF
9360 if ac_fn_c_try_link "$LINENO"; then :
9361 case "$LIBEXT" in
9362 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9363 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'` ;;
9364 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9365 if test "x$ac_cv_lib_soname_Xext" = x; then :
9366 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9367 fi ;;
9368 esac
9370 rm -f core conftest.err conftest.$ac_objext \
9371 conftest$ac_exeext conftest.$ac_ext
9372 LIBS=$ac_check_soname_save_LIBS
9374 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9376 $as_echo "not found" >&6; }
9378 else
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
9380 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
9382 cat >>confdefs.h <<_ACEOF
9383 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9384 _ACEOF
9386 XLIB="-lXext $XLIB"
9389 for ac_header in X11/Xlib.h \
9390 X11/XKBlib.h \
9391 X11/Xutil.h \
9392 X11/Xcursor/Xcursor.h \
9393 X11/extensions/shape.h \
9394 X11/extensions/XInput.h \
9395 X11/extensions/XInput2.h \
9396 X11/extensions/XShm.h \
9397 X11/extensions/Xcomposite.h \
9398 X11/extensions/Xinerama.h \
9399 X11/extensions/Xrandr.h \
9400 X11/extensions/Xrender.h \
9401 X11/extensions/xf86vmode.h \
9402 X11/extensions/xf86vmproto.h
9403 do :
9404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9405 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
9406 # include <X11/Xlib.h>
9407 #endif
9408 #ifdef HAVE_X11_XUTIL_H
9409 # include <X11/Xutil.h>
9410 #endif
9412 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9413 cat >>confdefs.h <<_ACEOF
9414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9415 _ACEOF
9419 done
9422 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9423 then
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
9425 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9426 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 ac_check_lib_save_LIBS=$LIBS
9430 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9434 /* Override any GCC internal prototype to avoid an error.
9435 Use char because int might match the return type of a GCC
9436 builtin and then its argument prototype would still apply. */
9437 #ifdef __cplusplus
9438 extern "C"
9439 #endif
9440 char XkbQueryExtension ();
9442 main ()
9444 return XkbQueryExtension ();
9446 return 0;
9448 _ACEOF
9449 if ac_fn_c_try_link "$LINENO"; then :
9450 ac_cv_lib_X11_XkbQueryExtension=yes
9451 else
9452 ac_cv_lib_X11_XkbQueryExtension=no
9454 rm -f core conftest.err conftest.$ac_objext \
9455 conftest$ac_exeext conftest.$ac_ext
9456 LIBS=$ac_check_lib_save_LIBS
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9459 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9460 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
9462 $as_echo "#define HAVE_XKB 1" >>confdefs.h
9468 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9469 then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
9471 $as_echo_n "checking for -lXcursor... " >&6; }
9472 if ${ac_cv_lib_soname_Xcursor+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 ac_check_soname_save_LIBS=$LIBS
9476 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9480 /* Override any GCC internal prototype to avoid an error.
9481 Use char because int might match the return type of a GCC
9482 builtin and then its argument prototype would still apply. */
9483 #ifdef __cplusplus
9484 extern "C"
9485 #endif
9486 char XcursorImageLoadCursor ();
9488 main ()
9490 return XcursorImageLoadCursor ();
9492 return 0;
9494 _ACEOF
9495 if ac_fn_c_try_link "$LINENO"; then :
9496 case "$LIBEXT" in
9497 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9498 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'` ;;
9499 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9500 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
9501 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9502 fi ;;
9503 esac
9505 rm -f core conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext conftest.$ac_ext
9507 LIBS=$ac_check_soname_save_LIBS
9509 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9511 $as_echo "not found" >&6; }
9513 else
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
9515 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
9517 cat >>confdefs.h <<_ACEOF
9518 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9519 _ACEOF
9524 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9525 case "x$with_xcursor" in
9526 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
9527 xno) ;;
9528 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9529 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
9530 esac
9533 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9534 then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
9536 $as_echo_n "checking for -lXi... " >&6; }
9537 if ${ac_cv_lib_soname_Xi+:} false; then :
9538 $as_echo_n "(cached) " >&6
9539 else
9540 ac_check_soname_save_LIBS=$LIBS
9541 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9545 /* Override any GCC internal prototype to avoid an error.
9546 Use char because int might match the return type of a GCC
9547 builtin and then its argument prototype would still apply. */
9548 #ifdef __cplusplus
9549 extern "C"
9550 #endif
9551 char XOpenDevice ();
9553 main ()
9555 return XOpenDevice ();
9557 return 0;
9559 _ACEOF
9560 if ac_fn_c_try_link "$LINENO"; then :
9561 case "$LIBEXT" in
9562 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9563 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'` ;;
9564 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9565 if test "x$ac_cv_lib_soname_Xi" = x; then :
9566 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9567 fi ;;
9568 esac
9570 rm -f core conftest.err conftest.$ac_objext \
9571 conftest$ac_exeext conftest.$ac_ext
9572 LIBS=$ac_check_soname_save_LIBS
9574 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9576 $as_echo "not found" >&6; }
9578 else
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
9580 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
9582 cat >>confdefs.h <<_ACEOF
9583 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9584 _ACEOF
9589 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9590 case "x$with_xinput" in
9591 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
9592 xno) ;;
9593 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9594 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
9595 esac
9598 if test "x$ac_cv_lib_soname_Xi" != x
9599 then
9600 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
9601 case "x$with_xinput2" in
9602 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
9603 xno) ;;
9604 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9605 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
9606 esac
9610 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9611 then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9613 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9614 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 ac_check_lib_save_LIBS=$LIBS
9618 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h. */
9622 /* Override any GCC internal prototype to avoid an error.
9623 Use char because int might match the return type of a GCC
9624 builtin and then its argument prototype would still apply. */
9625 #ifdef __cplusplus
9626 extern "C"
9627 #endif
9628 char XShmQueryExtension ();
9630 main ()
9632 return XShmQueryExtension ();
9634 return 0;
9636 _ACEOF
9637 if ac_fn_c_try_link "$LINENO"; then :
9638 ac_cv_lib_Xext_XShmQueryExtension=yes
9639 else
9640 ac_cv_lib_Xext_XShmQueryExtension=no
9642 rm -f core conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644 LIBS=$ac_check_lib_save_LIBS
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9647 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9648 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9650 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
9655 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
9656 case "x$with_xshm" in
9657 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
9658 xno) ;;
9659 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9660 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
9661 esac
9664 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9665 then
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9667 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9668 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 ac_check_lib_save_LIBS=$LIBS
9672 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9676 /* Override any GCC internal prototype to avoid an error.
9677 Use char because int might match the return type of a GCC
9678 builtin and then its argument prototype would still apply. */
9679 #ifdef __cplusplus
9680 extern "C"
9681 #endif
9682 char XShapeQueryExtension ();
9684 main ()
9686 return XShapeQueryExtension ();
9688 return 0;
9690 _ACEOF
9691 if ac_fn_c_try_link "$LINENO"; then :
9692 ac_cv_lib_Xext_XShapeQueryExtension=yes
9693 else
9694 ac_cv_lib_Xext_XShapeQueryExtension=no
9696 rm -f core conftest.err conftest.$ac_objext \
9697 conftest$ac_exeext conftest.$ac_ext
9698 LIBS=$ac_check_lib_save_LIBS
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9701 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9702 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9704 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
9709 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
9710 case "x$with_xshape" in
9711 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
9712 xno) ;;
9713 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9714 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
9715 esac
9718 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
9719 then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
9721 $as_echo_n "checking for -lXxf86vm... " >&6; }
9722 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
9723 $as_echo_n "(cached) " >&6
9724 else
9725 ac_check_soname_save_LIBS=$LIBS
9726 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9730 /* Override any GCC internal prototype to avoid an error.
9731 Use char because int might match the return type of a GCC
9732 builtin and then its argument prototype would still apply. */
9733 #ifdef __cplusplus
9734 extern "C"
9735 #endif
9736 char XF86VidModeQueryExtension ();
9738 main ()
9740 return XF86VidModeQueryExtension ();
9742 return 0;
9744 _ACEOF
9745 if ac_fn_c_try_link "$LINENO"; then :
9746 case "$LIBEXT" in
9747 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9748 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'` ;;
9749 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9750 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
9751 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9752 fi ;;
9753 esac
9755 rm -f core conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757 LIBS=$ac_check_soname_save_LIBS
9759 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9761 $as_echo "not found" >&6; }
9763 else
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
9765 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
9767 cat >>confdefs.h <<_ACEOF
9768 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
9769 _ACEOF
9774 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9775 case "x$with_xxf86vm" in
9776 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
9777 xno) ;;
9778 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9779 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
9780 esac
9783 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"
9784 then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
9786 $as_echo_n "checking for -lXrender... " >&6; }
9787 if ${ac_cv_lib_soname_Xrender+:} false; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 ac_check_soname_save_LIBS=$LIBS
9791 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9795 /* Override any GCC internal prototype to avoid an error.
9796 Use char because int might match the return type of a GCC
9797 builtin and then its argument prototype would still apply. */
9798 #ifdef __cplusplus
9799 extern "C"
9800 #endif
9801 char XRenderQueryExtension ();
9803 main ()
9805 return XRenderQueryExtension ();
9807 return 0;
9809 _ACEOF
9810 if ac_fn_c_try_link "$LINENO"; then :
9811 case "$LIBEXT" in
9812 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9813 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'` ;;
9814 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9815 if test "x$ac_cv_lib_soname_Xrender" = x; then :
9816 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9817 fi ;;
9818 esac
9820 rm -f core conftest.err conftest.$ac_objext \
9821 conftest$ac_exeext conftest.$ac_ext
9822 LIBS=$ac_check_soname_save_LIBS
9824 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9826 $as_echo "not found" >&6; }
9828 else
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
9830 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
9832 cat >>confdefs.h <<_ACEOF
9833 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
9834 _ACEOF
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
9837 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
9838 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 ac_check_lib_save_LIBS=$LIBS
9842 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9846 /* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
9849 #ifdef __cplusplus
9850 extern "C"
9851 #endif
9852 char XRenderSetPictureTransform ();
9854 main ()
9856 return XRenderSetPictureTransform ();
9858 return 0;
9860 _ACEOF
9861 if ac_fn_c_try_link "$LINENO"; then :
9862 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9863 else
9864 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9866 rm -f core conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9868 LIBS=$ac_check_lib_save_LIBS
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9871 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9872 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
9874 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
9879 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
9880 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
9881 $as_echo_n "(cached) " >&6
9882 else
9883 ac_check_lib_save_LIBS=$LIBS
9884 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9888 /* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
9890 builtin and then its argument prototype would still apply. */
9891 #ifdef __cplusplus
9892 extern "C"
9893 #endif
9894 char XRenderCreateLinearGradient ();
9896 main ()
9898 return XRenderCreateLinearGradient ();
9900 return 0;
9902 _ACEOF
9903 if ac_fn_c_try_link "$LINENO"; then :
9904 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
9905 else
9906 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
9908 rm -f core conftest.err conftest.$ac_objext \
9909 conftest$ac_exeext conftest.$ac_ext
9910 LIBS=$ac_check_lib_save_LIBS
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
9913 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
9914 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
9916 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
9923 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9924 case "x$with_xrender" in
9925 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
9926 xno) ;;
9927 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
9928 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
9929 esac
9932 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
9933 then
9934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9936 #include <X11/Xlib.h>
9937 #include <X11/extensions/Xrandr.h>
9939 main ()
9941 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
9943 return 0;
9945 _ACEOF
9946 if ac_fn_c_try_compile "$LINENO"; then :
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9948 $as_echo_n "checking for -lXrandr... " >&6; }
9949 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 ac_check_soname_save_LIBS=$LIBS
9953 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9957 /* Override any GCC internal prototype to avoid an error.
9958 Use char because int might match the return type of a GCC
9959 builtin and then its argument prototype would still apply. */
9960 #ifdef __cplusplus
9961 extern "C"
9962 #endif
9963 char XRRQueryExtension ();
9965 main ()
9967 return XRRQueryExtension ();
9969 return 0;
9971 _ACEOF
9972 if ac_fn_c_try_link "$LINENO"; then :
9973 case "$LIBEXT" in
9974 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9975 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'` ;;
9976 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9977 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
9978 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9979 fi ;;
9980 esac
9982 rm -f core conftest.err conftest.$ac_objext \
9983 conftest$ac_exeext conftest.$ac_ext
9984 LIBS=$ac_check_soname_save_LIBS
9986 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9988 $as_echo "not found" >&6; }
9990 else
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9992 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
9994 cat >>confdefs.h <<_ACEOF
9995 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
9996 _ACEOF
9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999 /* end confdefs.h. */
10000 #include <X11/Xlib.h>
10001 #include <X11/extensions/Xrandr.h>
10003 main ()
10005 static typeof(XRRGetScreenResources) *f; if (f) return 0;
10007 return 0;
10009 _ACEOF
10010 if ac_fn_c_try_compile "$LINENO"; then :
10012 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
10015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10020 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
10021 case "x$with_xrandr" in
10022 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
10023 xno) ;;
10024 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
10025 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
10026 esac
10029 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
10030 then
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033 #include <X11/Xlib.h>
10034 #include <X11/extensions/Xinerama.h>
10036 main ()
10038 static typeof(XineramaQueryScreens) * func; if (func) return 0;
10040 return 0;
10042 _ACEOF
10043 if ac_fn_c_try_compile "$LINENO"; then :
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
10045 $as_echo_n "checking for -lXinerama... " >&6; }
10046 if ${ac_cv_lib_soname_Xinerama+:} false; then :
10047 $as_echo_n "(cached) " >&6
10048 else
10049 ac_check_soname_save_LIBS=$LIBS
10050 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10054 /* Override any GCC internal prototype to avoid an error.
10055 Use char because int might match the return type of a GCC
10056 builtin and then its argument prototype would still apply. */
10057 #ifdef __cplusplus
10058 extern "C"
10059 #endif
10060 char XineramaQueryScreens ();
10062 main ()
10064 return XineramaQueryScreens ();
10066 return 0;
10068 _ACEOF
10069 if ac_fn_c_try_link "$LINENO"; then :
10070 case "$LIBEXT" in
10071 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10072 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'` ;;
10073 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10074 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
10075 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10076 fi ;;
10077 esac
10079 rm -f core conftest.err conftest.$ac_objext \
10080 conftest$ac_exeext conftest.$ac_ext
10081 LIBS=$ac_check_soname_save_LIBS
10083 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10085 $as_echo "not found" >&6; }
10087 else
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
10089 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
10091 cat >>confdefs.h <<_ACEOF
10092 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10093 _ACEOF
10098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10100 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10101 case "x$with_xinerama" in
10102 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
10103 xno) ;;
10104 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
10105 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
10106 esac
10109 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10110 then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
10112 $as_echo_n "checking for -lXcomposite... " >&6; }
10113 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 ac_check_soname_save_LIBS=$LIBS
10117 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10121 /* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
10124 #ifdef __cplusplus
10125 extern "C"
10126 #endif
10127 char XCompositeRedirectWindow ();
10129 main ()
10131 return XCompositeRedirectWindow ();
10133 return 0;
10135 _ACEOF
10136 if ac_fn_c_try_link "$LINENO"; then :
10137 case "$LIBEXT" in
10138 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10139 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'` ;;
10140 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10141 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
10142 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10143 fi ;;
10144 esac
10146 rm -f core conftest.err conftest.$ac_objext \
10147 conftest$ac_exeext conftest.$ac_ext
10148 LIBS=$ac_check_soname_save_LIBS
10150 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10152 $as_echo "not found" >&6; }
10154 else
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
10156 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
10158 cat >>confdefs.h <<_ACEOF
10159 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10160 _ACEOF
10165 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10166 case "x$with_xcomposite" in
10167 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
10168 xno) ;;
10169 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
10170 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
10171 esac
10174 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
10175 #include <X11/Xlib.h>
10176 #endif
10178 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
10180 cat >>confdefs.h <<_ACEOF
10181 #define HAVE_XICCALLBACK_CALLBACK 1
10182 _ACEOF
10186 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
10187 #include <X11/Xlib.h>
10188 #endif
10190 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
10192 cat >>confdefs.h <<_ACEOF
10193 #define HAVE_XEVENT_XCOOKIE 1
10194 _ACEOF
10201 opengl_msg=""
10202 if test "x$with_opengl" != "xno"
10203 then
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10205 $as_echo_n "checking for -lGL... " >&6; }
10206 if ${ac_cv_lib_soname_GL+:} false; then :
10207 $as_echo_n "(cached) " >&6
10208 else
10209 ac_check_soname_save_LIBS=$LIBS
10210 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212 /* end confdefs.h. */
10214 /* Override any GCC internal prototype to avoid an error.
10215 Use char because int might match the return type of a GCC
10216 builtin and then its argument prototype would still apply. */
10217 #ifdef __cplusplus
10218 extern "C"
10219 #endif
10220 char glXCreateContext ();
10222 main ()
10224 return glXCreateContext ();
10226 return 0;
10228 _ACEOF
10229 if ac_fn_c_try_link "$LINENO"; then :
10230 case "$LIBEXT" in
10231 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10232 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'` ;;
10233 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10234 if test "x$ac_cv_lib_soname_GL" = x; then :
10235 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10236 fi ;;
10237 esac
10239 rm -f core conftest.err conftest.$ac_objext \
10240 conftest$ac_exeext conftest.$ac_ext
10241 LIBS=$ac_check_soname_save_LIBS
10243 if test "x$ac_cv_lib_soname_GL" = "x"; then :
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10245 $as_echo "not found" >&6; }
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10247 $as_echo_n "checking for -lGL... " >&6; }
10248 if ${ac_cv_lib_soname_GL+:} false; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 ac_check_soname_save_LIBS=$LIBS
10252 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"
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10256 /* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
10259 #ifdef __cplusplus
10260 extern "C"
10261 #endif
10262 char glXCreateContext ();
10264 main ()
10266 return glXCreateContext ();
10268 return 0;
10270 _ACEOF
10271 if ac_fn_c_try_link "$LINENO"; then :
10272 case "$LIBEXT" in
10273 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10274 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'` ;;
10275 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10276 if test "x$ac_cv_lib_soname_GL" = x; then :
10277 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10278 fi ;;
10279 esac
10281 rm -f core conftest.err conftest.$ac_objext \
10282 conftest$ac_exeext conftest.$ac_ext
10283 LIBS=$ac_check_soname_save_LIBS
10285 if test "x$ac_cv_lib_soname_GL" = "x"; then :
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10287 $as_echo "not found" >&6; }
10288 if test -f /usr/X11R6/lib/libGL.a
10289 then
10290 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
10291 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10292 else
10293 opengl_msg="No OpenGL library found on this system."
10295 else
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10297 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10299 cat >>confdefs.h <<_ACEOF
10300 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10301 _ACEOF
10303 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"
10305 else
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10307 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10309 cat >>confdefs.h <<_ACEOF
10310 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10311 _ACEOF
10313 OPENGL_LIBS="-lGL"
10315 if test "x$with_glu" != "xno"
10316 then
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
10318 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
10319 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
10320 $as_echo_n "(cached) " >&6
10321 else
10322 ac_check_lib_save_LIBS=$LIBS
10323 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10327 /* Override any GCC internal prototype to avoid an error.
10328 Use char because int might match the return type of a GCC
10329 builtin and then its argument prototype would still apply. */
10330 #ifdef __cplusplus
10331 extern "C"
10332 #endif
10333 char gluLookAt ();
10335 main ()
10337 return gluLookAt ();
10339 return 0;
10341 _ACEOF
10342 if ac_fn_c_try_link "$LINENO"; then :
10343 ac_cv_lib_GLU_gluLookAt=yes
10344 else
10345 ac_cv_lib_GLU_gluLookAt=no
10347 rm -f core conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 LIBS=$ac_check_lib_save_LIBS
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
10352 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
10353 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
10357 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
10358 case "x$with_glu" in
10359 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
10360 xno) ;;
10361 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
10362 This is an error since --with-glu was requested." "$LINENO" 5 ;;
10363 esac
10367 if test "x$with_osmesa" != "xno"
10368 then
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
10370 $as_echo_n "checking for -lOSMesa... " >&6; }
10371 if ${ac_cv_lib_soname_OSMesa+:} false; then :
10372 $as_echo_n "(cached) " >&6
10373 else
10374 ac_check_soname_save_LIBS=$LIBS
10375 LIBS="-lOSMesa $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377 /* end confdefs.h. */
10379 /* Override any GCC internal prototype to avoid an error.
10380 Use char because int might match the return type of a GCC
10381 builtin and then its argument prototype would still apply. */
10382 #ifdef __cplusplus
10383 extern "C"
10384 #endif
10385 char glAccum ();
10387 main ()
10389 return glAccum ();
10391 return 0;
10393 _ACEOF
10394 if ac_fn_c_try_link "$LINENO"; then :
10395 case "$LIBEXT" in
10396 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10397 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'` ;;
10398 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10399 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
10400 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10401 fi ;;
10402 esac
10404 rm -f core conftest.err conftest.$ac_objext \
10405 conftest$ac_exeext conftest.$ac_ext
10406 LIBS=$ac_check_soname_save_LIBS
10408 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10410 $as_echo "not found" >&6; }
10412 else
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
10414 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
10416 cat >>confdefs.h <<_ACEOF
10417 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
10418 _ACEOF
10422 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10423 case "x$with_osmesa" in
10424 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
10425 xno) ;;
10426 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
10427 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
10428 esac
10432 if test -n "$opengl_msg"; then :
10433 case "x$with_opengl" in
10434 x) as_fn_append wine_warnings "|$opengl_msg
10435 OpenGL and Direct3D won't be supported." ;;
10436 xno) ;;
10437 *) as_fn_error $? "$opengl_msg
10438 OpenGL and Direct3D won't be supported.
10439 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
10440 esac
10443 CPPFLAGS="$ac_save_CPPFLAGS"
10444 else
10445 XLIB=""
10446 X_CFLAGS=""
10447 X_LIBS=""
10448 enable_winex11_drv=${enable_winex11_drv:-no}
10450 if test "x$XLIB" = "x"; then :
10451 case "x$with_x" in
10452 xno) ;;
10453 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
10454 without X support, which probably isn't what you want. You will need
10455 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
10456 Use the --without-x option if you really want this." "$LINENO" 5 ;;
10457 esac
10460 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
10462 if test "$ac_cv_header_CL_cl_h" = "yes"
10463 then
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
10465 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
10466 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10469 ac_check_lib_save_LIBS=$LIBS
10470 LIBS="-lOpenCL $LIBS"
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10474 /* Override any GCC internal prototype to avoid an error.
10475 Use char because int might match the return type of a GCC
10476 builtin and then its argument prototype would still apply. */
10477 #ifdef __cplusplus
10478 extern "C"
10479 #endif
10480 char clGetPlatformInfo ();
10482 main ()
10484 return clGetPlatformInfo ();
10486 return 0;
10488 _ACEOF
10489 if ac_fn_c_try_link "$LINENO"; then :
10490 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
10491 else
10492 ac_cv_lib_OpenCL_clGetPlatformInfo=no
10494 rm -f core conftest.err conftest.$ac_objext \
10495 conftest$ac_exeext conftest.$ac_ext
10496 LIBS=$ac_check_lib_save_LIBS
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
10499 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
10500 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
10501 LIBOPENCL="-lOpenCL"
10506 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
10507 case "x$with_opencl" in
10508 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
10509 xno) ;;
10510 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
10511 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
10512 esac
10514 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
10517 if test "x$with_xml" != "xno"
10518 then
10519 if test -n "$XML2_CFLAGS"; then :
10521 elif test -n "$PKG_CONFIG"; then :
10522 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
10524 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
10525 if test -n "$XML2_LIBS"; then :
10527 elif test -n "$PKG_CONFIG"; then :
10528 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
10530 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
10531 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
10532 ac_save_CPPFLAGS=$CPPFLAGS
10533 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
10534 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
10535 do :
10536 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10537 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10538 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10539 cat >>confdefs.h <<_ACEOF
10540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10541 _ACEOF
10545 done
10547 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"
10548 then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
10550 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
10551 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
10552 $as_echo_n "(cached) " >&6
10553 else
10554 ac_check_lib_save_LIBS=$LIBS
10555 LIBS="-lxml2 $XML2_LIBS $LIBS"
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10559 /* Override any GCC internal prototype to avoid an error.
10560 Use char because int might match the return type of a GCC
10561 builtin and then its argument prototype would still apply. */
10562 #ifdef __cplusplus
10563 extern "C"
10564 #endif
10565 char xmlParseMemory ();
10567 main ()
10569 return xmlParseMemory ();
10571 return 0;
10573 _ACEOF
10574 if ac_fn_c_try_link "$LINENO"; then :
10575 ac_cv_lib_xml2_xmlParseMemory=yes
10576 else
10577 ac_cv_lib_xml2_xmlParseMemory=no
10579 rm -f core conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10584 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10585 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
10587 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
10589 else
10590 XML2_LIBS=""
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
10594 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
10595 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
10596 $as_echo_n "(cached) " >&6
10597 else
10598 ac_check_lib_save_LIBS=$LIBS
10599 LIBS="-lxml2 $XML2_LIBS $LIBS"
10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10603 /* Override any GCC internal prototype to avoid an error.
10604 Use char because int might match the return type of a GCC
10605 builtin and then its argument prototype would still apply. */
10606 #ifdef __cplusplus
10607 extern "C"
10608 #endif
10609 char xmlReadMemory ();
10611 main ()
10613 return xmlReadMemory ();
10615 return 0;
10617 _ACEOF
10618 if ac_fn_c_try_link "$LINENO"; then :
10619 ac_cv_lib_xml2_xmlReadMemory=yes
10620 else
10621 ac_cv_lib_xml2_xmlReadMemory=no
10623 rm -f core conftest.err conftest.$ac_objext \
10624 conftest$ac_exeext conftest.$ac_ext
10625 LIBS=$ac_check_lib_save_LIBS
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10628 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10629 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
10631 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
10636 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
10637 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
10638 $as_echo_n "(cached) " >&6
10639 else
10640 ac_check_lib_save_LIBS=$LIBS
10641 LIBS="-lxml2 $XML2_LIBS $LIBS"
10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h. */
10645 /* Override any GCC internal prototype to avoid an error.
10646 Use char because int might match the return type of a GCC
10647 builtin and then its argument prototype would still apply. */
10648 #ifdef __cplusplus
10649 extern "C"
10650 #endif
10651 char xmlNewDocPI ();
10653 main ()
10655 return xmlNewDocPI ();
10657 return 0;
10659 _ACEOF
10660 if ac_fn_c_try_link "$LINENO"; then :
10661 ac_cv_lib_xml2_xmlNewDocPI=yes
10662 else
10663 ac_cv_lib_xml2_xmlNewDocPI=no
10665 rm -f core conftest.err conftest.$ac_objext \
10666 conftest$ac_exeext conftest.$ac_ext
10667 LIBS=$ac_check_lib_save_LIBS
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
10670 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10671 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
10673 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
10678 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
10679 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
10680 $as_echo_n "(cached) " >&6
10681 else
10682 ac_check_lib_save_LIBS=$LIBS
10683 LIBS="-lxml2 $XML2_LIBS $LIBS"
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10687 /* Override any GCC internal prototype to avoid an error.
10688 Use char because int might match the return type of a GCC
10689 builtin and then its argument prototype would still apply. */
10690 #ifdef __cplusplus
10691 extern "C"
10692 #endif
10693 char xmlSchemaSetParserStructuredErrors ();
10695 main ()
10697 return xmlSchemaSetParserStructuredErrors ();
10699 return 0;
10701 _ACEOF
10702 if ac_fn_c_try_link "$LINENO"; then :
10703 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
10704 else
10705 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
10707 rm -f core conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext conftest.$ac_ext
10709 LIBS=$ac_check_lib_save_LIBS
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
10712 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
10713 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
10715 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
10720 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
10721 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
10722 $as_echo_n "(cached) " >&6
10723 else
10724 ac_check_lib_save_LIBS=$LIBS
10725 LIBS="-lxml2 $XML2_LIBS $LIBS"
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10729 /* Override any GCC internal prototype to avoid an error.
10730 Use char because int might match the return type of a GCC
10731 builtin and then its argument prototype would still apply. */
10732 #ifdef __cplusplus
10733 extern "C"
10734 #endif
10735 char xmlSchemaSetValidStructuredErrors ();
10737 main ()
10739 return xmlSchemaSetValidStructuredErrors ();
10741 return 0;
10743 _ACEOF
10744 if ac_fn_c_try_link "$LINENO"; then :
10745 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
10746 else
10747 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
10749 rm -f core conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 LIBS=$ac_check_lib_save_LIBS
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
10754 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
10755 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
10757 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
10762 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
10763 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
10764 $as_echo_n "(cached) " >&6
10765 else
10766 ac_check_lib_save_LIBS=$LIBS
10767 LIBS="-lxml2 $XML2_LIBS $LIBS"
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h. */
10771 /* Override any GCC internal prototype to avoid an error.
10772 Use char because int might match the return type of a GCC
10773 builtin and then its argument prototype would still apply. */
10774 #ifdef __cplusplus
10775 extern "C"
10776 #endif
10777 char xmlFirstElementChild ();
10779 main ()
10781 return xmlFirstElementChild ();
10783 return 0;
10785 _ACEOF
10786 if ac_fn_c_try_link "$LINENO"; then :
10787 ac_cv_lib_xml2_xmlFirstElementChild=yes
10788 else
10789 ac_cv_lib_xml2_xmlFirstElementChild=no
10791 rm -f core conftest.err conftest.$ac_objext \
10792 conftest$ac_exeext conftest.$ac_ext
10793 LIBS=$ac_check_lib_save_LIBS
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
10796 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
10797 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
10799 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
10803 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
10805 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
10807 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
10811 else
10812 XML2_CFLAGS=""
10813 XML2_LIBS=""
10815 CPPFLAGS=$ac_save_CPPFLAGS
10816 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10817 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10820 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
10821 case "x$with_xml" in
10822 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
10823 xno) ;;
10824 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
10825 This is an error since --with-xml was requested." "$LINENO" 5 ;;
10826 esac
10829 if test "x$with_xslt" != "xno"
10830 then
10831 if test -n "$XSLT_CFLAGS"; then :
10833 elif test -n "$PKG_CONFIG"; then :
10834 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
10836 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
10837 if test -n "$XSLT_LIBS"; then :
10839 elif test -n "$PKG_CONFIG"; then :
10840 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
10842 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
10843 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
10844 ac_save_CPPFLAGS=$CPPFLAGS
10845 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
10846 for ac_header in libxslt/pattern.h libxslt/transform.h
10847 do :
10848 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10849 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
10850 # include <libxslt/pattern.h>
10851 #endif
10853 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10854 cat >>confdefs.h <<_ACEOF
10855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10856 _ACEOF
10860 done
10862 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10863 then
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10865 $as_echo_n "checking for -lxslt... " >&6; }
10866 if ${ac_cv_lib_soname_xslt+:} false; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10869 ac_check_soname_save_LIBS=$LIBS
10870 LIBS="-lxslt $XSLT_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 xsltCompilePattern ();
10882 main ()
10884 return xsltCompilePattern ();
10886 return 0;
10888 _ACEOF
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 case "$LIBEXT" in
10891 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10892 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'` ;;
10893 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10894 if test "x$ac_cv_lib_soname_xslt" = x; then :
10895 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$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_xslt" = "x"; then :
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10905 $as_echo "not found" >&6; }
10907 else
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10909 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10911 cat >>confdefs.h <<_ACEOF
10912 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10913 _ACEOF
10917 else
10918 XSLT_CFLAGS=""
10920 CPPFLAGS=$ac_save_CPPFLAGS
10921 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10922 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10925 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10926 case "x$with_xslt" in
10927 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10928 xno) ;;
10929 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10930 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10931 esac
10934 if test "x$with_dbus" != "xno"
10935 then
10936 if test -n "$DBUS_CFLAGS"; then :
10938 elif test -n "$PKG_CONFIG"; then :
10939 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10942 if test -n "$DBUS_LIBS"; then :
10944 elif test -n "$PKG_CONFIG"; then :
10945 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10949 ac_save_CPPFLAGS=$CPPFLAGS
10950 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10951 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10952 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10954 $as_echo_n "checking for -ldbus-1... " >&6; }
10955 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10956 $as_echo_n "(cached) " >&6
10957 else
10958 ac_check_soname_save_LIBS=$LIBS
10959 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10963 /* Override any GCC internal prototype to avoid an error.
10964 Use char because int might match the return type of a GCC
10965 builtin and then its argument prototype would still apply. */
10966 #ifdef __cplusplus
10967 extern "C"
10968 #endif
10969 char dbus_connection_close ();
10971 main ()
10973 return dbus_connection_close ();
10975 return 0;
10977 _ACEOF
10978 if ac_fn_c_try_link "$LINENO"; then :
10979 case "$LIBEXT" in
10980 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10981 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'` ;;
10982 *) 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'`
10983 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10984 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10985 fi ;;
10986 esac
10988 rm -f core conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
10990 LIBS=$ac_check_soname_save_LIBS
10992 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10994 $as_echo "not found" >&6; }
10995 DBUS_CFLAGS=""
10996 else
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10998 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
11000 cat >>confdefs.h <<_ACEOF
11001 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
11002 _ACEOF
11006 else
11007 DBUS_CFLAGS=""
11011 CPPFLAGS=$ac_save_CPPFLAGS
11012 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11013 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11016 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
11017 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11018 case "x$with_dbus" in
11019 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
11020 xno) ;;
11021 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
11022 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
11023 esac
11026 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
11027 then
11028 if test -n "$HAL_CFLAGS"; then :
11030 elif test -n "$PKG_CONFIG"; then :
11031 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
11034 if test -n "$HAL_LIBS"; then :
11036 elif test -n "$PKG_CONFIG"; then :
11037 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
11040 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
11041 ac_save_CPPFLAGS=$CPPFLAGS
11042 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
11043 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
11044 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
11046 $as_echo_n "checking for -lhal... " >&6; }
11047 if ${ac_cv_lib_soname_hal+:} false; then :
11048 $as_echo_n "(cached) " >&6
11049 else
11050 ac_check_soname_save_LIBS=$LIBS
11051 LIBS="-lhal $HAL_LIBS $LIBS"
11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11055 /* Override any GCC internal prototype to avoid an error.
11056 Use char because int might match the return type of a GCC
11057 builtin and then its argument prototype would still apply. */
11058 #ifdef __cplusplus
11059 extern "C"
11060 #endif
11061 char libhal_ctx_new ();
11063 main ()
11065 return libhal_ctx_new ();
11067 return 0;
11069 _ACEOF
11070 if ac_fn_c_try_link "$LINENO"; then :
11071 case "$LIBEXT" in
11072 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11073 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'` ;;
11074 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11075 if test "x$ac_cv_lib_soname_hal" = x; then :
11076 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11077 fi ;;
11078 esac
11080 rm -f core conftest.err conftest.$ac_objext \
11081 conftest$ac_exeext conftest.$ac_ext
11082 LIBS=$ac_check_soname_save_LIBS
11084 if test "x$ac_cv_lib_soname_hal" = "x"; then :
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11086 $as_echo "not found" >&6; }
11087 HAL_CFLAGS=""
11088 else
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
11090 $as_echo "$ac_cv_lib_soname_hal" >&6; }
11092 cat >>confdefs.h <<_ACEOF
11093 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
11094 _ACEOF
11098 else
11099 HAL_CFLAGS=""
11103 CPPFLAGS=$ac_save_CPPFLAGS
11104 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11105 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11107 if test "x$ac_cv_lib_soname_hal" = "x" -a \
11108 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11109 case "x$with_hal" in
11110 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
11111 xno) ;;
11112 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
11113 This is an error since --with-hal was requested." "$LINENO" 5 ;;
11114 esac
11118 if test "x$with_gnutls" != "xno"
11119 then
11120 if test -n "$GNUTLS_CFLAGS"; then :
11122 elif test -n "$PKG_CONFIG"; then :
11123 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
11126 if test -n "$GNUTLS_LIBS"; then :
11128 elif test -n "$PKG_CONFIG"; then :
11129 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
11133 ac_save_CPPFLAGS=$CPPFLAGS
11134 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
11135 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
11136 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
11137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11138 /* end confdefs.h. */
11139 #include <gnutls/gnutls.h>
11140 #include <gnutls/crypto.h>
11142 main ()
11144 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
11146 return 0;
11148 _ACEOF
11149 if ac_fn_c_try_compile "$LINENO"; then :
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
11151 $as_echo_n "checking for -lgnutls... " >&6; }
11152 if ${ac_cv_lib_soname_gnutls+:} false; then :
11153 $as_echo_n "(cached) " >&6
11154 else
11155 ac_check_soname_save_LIBS=$LIBS
11156 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11160 /* Override any GCC internal prototype to avoid an error.
11161 Use char because int might match the return type of a GCC
11162 builtin and then its argument prototype would still apply. */
11163 #ifdef __cplusplus
11164 extern "C"
11165 #endif
11166 char gnutls_global_init ();
11168 main ()
11170 return gnutls_global_init ();
11172 return 0;
11174 _ACEOF
11175 if ac_fn_c_try_link "$LINENO"; then :
11176 case "$LIBEXT" in
11177 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11178 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'` ;;
11179 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11180 if test "x$ac_cv_lib_soname_gnutls" = x; then :
11181 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11182 fi ;;
11183 esac
11185 rm -f core conftest.err conftest.$ac_objext \
11186 conftest$ac_exeext conftest.$ac_ext
11187 LIBS=$ac_check_soname_save_LIBS
11189 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11191 $as_echo "not found" >&6; }
11192 GNUTLS_CFLAGS=""
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
11195 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
11197 cat >>confdefs.h <<_ACEOF
11198 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
11199 _ACEOF
11204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11205 else
11206 GNUTLS_CFLAGS=""
11210 CPPFLAGS=$ac_save_CPPFLAGS
11211 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11212 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11215 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11216 case "x$with_gnutls" in
11217 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
11218 xno) ;;
11219 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
11220 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
11221 esac
11224 CURSESLIBS=""
11225 if test "$ac_cv_header_ncurses_h" = "yes"
11226 then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
11228 $as_echo_n "checking for -lncurses... " >&6; }
11229 if ${ac_cv_lib_soname_ncurses+:} false; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 ac_check_soname_save_LIBS=$LIBS
11233 LIBS="-lncurses $LIBS"
11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11237 /* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
11240 #ifdef __cplusplus
11241 extern "C"
11242 #endif
11243 char waddch ();
11245 main ()
11247 return waddch ();
11249 return 0;
11251 _ACEOF
11252 if ac_fn_c_try_link "$LINENO"; then :
11253 case "$LIBEXT" in
11254 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11255 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'` ;;
11256 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11257 if test "x$ac_cv_lib_soname_ncurses" = x; then :
11258 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11259 fi ;;
11260 esac
11262 rm -f core conftest.err conftest.$ac_objext \
11263 conftest$ac_exeext conftest.$ac_ext
11264 LIBS=$ac_check_soname_save_LIBS
11266 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11268 $as_echo "not found" >&6; }
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
11272 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
11274 cat >>confdefs.h <<_ACEOF
11275 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11276 _ACEOF
11278 CURSESLIBS="-lncurses"
11280 elif test "$ac_cv_header_curses_h" = "yes"
11281 then
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
11283 $as_echo_n "checking for -lcurses... " >&6; }
11284 if ${ac_cv_lib_soname_curses+:} false; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 ac_check_soname_save_LIBS=$LIBS
11288 LIBS="-lcurses $LIBS"
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11292 /* Override any GCC internal prototype to avoid an error.
11293 Use char because int might match the return type of a GCC
11294 builtin and then its argument prototype would still apply. */
11295 #ifdef __cplusplus
11296 extern "C"
11297 #endif
11298 char waddch ();
11300 main ()
11302 return waddch ();
11304 return 0;
11306 _ACEOF
11307 if ac_fn_c_try_link "$LINENO"; then :
11308 case "$LIBEXT" in
11309 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11310 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'` ;;
11311 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11312 if test "x$ac_cv_lib_soname_curses" = x; then :
11313 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11314 fi ;;
11315 esac
11317 rm -f core conftest.err conftest.$ac_objext \
11318 conftest$ac_exeext conftest.$ac_ext
11319 LIBS=$ac_check_soname_save_LIBS
11321 if test "x$ac_cv_lib_soname_curses" = "x"; then :
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11323 $as_echo "not found" >&6; }
11325 else
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
11327 $as_echo "$ac_cv_lib_soname_curses" >&6; }
11329 cat >>confdefs.h <<_ACEOF
11330 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11331 _ACEOF
11333 CURSESLIBS="-lcurses"
11336 ac_save_LIBS="$LIBS"
11337 LIBS="$LIBS $CURSESLIBS"
11338 for ac_func in mousemask
11339 do :
11340 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
11341 if test "x$ac_cv_func_mousemask" = xyes; then :
11342 cat >>confdefs.h <<_ACEOF
11343 #define HAVE_MOUSEMASK 1
11344 _ACEOF
11347 done
11349 LIBS="$ac_save_LIBS"
11350 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
11351 case "x$with_curses" in
11352 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
11353 xno) ;;
11354 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
11355 This is an error since --with-curses was requested." "$LINENO" 5 ;;
11356 esac
11359 if test "x$with_sane" != "xno"
11360 then
11361 if test -n "$SANE_CFLAGS"; then :
11363 elif test -n "$PKG_CONFIG"; then :
11364 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
11366 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
11367 if test -n "$SANE_LIBS"; then :
11369 elif test -n "$PKG_CONFIG"; then :
11370 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
11372 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
11374 ac_save_CPPFLAGS=$CPPFLAGS
11375 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
11376 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
11377 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
11379 $as_echo_n "checking for -lsane... " >&6; }
11380 if ${ac_cv_lib_soname_sane+:} false; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 ac_check_soname_save_LIBS=$LIBS
11384 LIBS="-lsane $SANE_LIBS $LIBS"
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11391 #ifdef __cplusplus
11392 extern "C"
11393 #endif
11394 char sane_init ();
11396 main ()
11398 return sane_init ();
11400 return 0;
11402 _ACEOF
11403 if ac_fn_c_try_link "$LINENO"; then :
11404 case "$LIBEXT" in
11405 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11406 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'` ;;
11407 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11408 if test "x$ac_cv_lib_soname_sane" = x; then :
11409 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11410 fi ;;
11411 esac
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415 LIBS=$ac_check_soname_save_LIBS
11417 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11419 $as_echo "not found" >&6; }
11420 SANE_CFLAGS=""
11421 else
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
11423 $as_echo "$ac_cv_lib_soname_sane" >&6; }
11425 cat >>confdefs.h <<_ACEOF
11426 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11427 _ACEOF
11431 else
11432 SANE_CFLAGS=""
11436 CPPFLAGS=$ac_save_CPPFLAGS
11437 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11438 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11441 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11442 case "x$with_sane" in
11443 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
11444 xno) ;;
11445 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
11446 This is an error since --with-sane was requested." "$LINENO" 5 ;;
11447 esac
11450 if test "x$with_v4l" != "xno"
11451 then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
11453 $as_echo_n "checking for -lv4l1... " >&6; }
11454 if ${ac_cv_lib_soname_v4l1+:} false; then :
11455 $as_echo_n "(cached) " >&6
11456 else
11457 ac_check_soname_save_LIBS=$LIBS
11458 LIBS="-lv4l1 $LIBS"
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11462 /* Override any GCC internal prototype to avoid an error.
11463 Use char because int might match the return type of a GCC
11464 builtin and then its argument prototype would still apply. */
11465 #ifdef __cplusplus
11466 extern "C"
11467 #endif
11468 char v4l1_open ();
11470 main ()
11472 return v4l1_open ();
11474 return 0;
11476 _ACEOF
11477 if ac_fn_c_try_link "$LINENO"; then :
11478 case "$LIBEXT" in
11479 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11480 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'` ;;
11481 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11482 if test "x$ac_cv_lib_soname_v4l1" = x; then :
11483 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11484 fi ;;
11485 esac
11487 rm -f core conftest.err conftest.$ac_objext \
11488 conftest$ac_exeext conftest.$ac_ext
11489 LIBS=$ac_check_soname_save_LIBS
11491 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11493 $as_echo "not found" >&6; }
11495 else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
11497 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
11499 cat >>confdefs.h <<_ACEOF
11500 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
11501 _ACEOF
11506 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11507 case "x$with_v4l" in
11508 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
11509 xno) ;;
11510 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
11511 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
11512 esac
11515 if test "x$with_gphoto" != "xno"
11516 then
11517 if test -n "$GPHOTO2_CFLAGS"; then :
11519 elif test -n "$PKG_CONFIG"; then :
11520 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
11522 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
11523 if test -n "$GPHOTO2_LIBS"; then :
11525 elif test -n "$PKG_CONFIG"; then :
11526 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
11528 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
11529 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
11530 ac_save_CPPFLAGS=$CPPFLAGS
11531 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
11532 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
11533 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
11535 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
11536 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
11537 $as_echo_n "(cached) " >&6
11538 else
11539 ac_check_lib_save_LIBS=$LIBS
11540 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11544 /* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 char gp_camera_new ();
11552 main ()
11554 return gp_camera_new ();
11556 return 0;
11558 _ACEOF
11559 if ac_fn_c_try_link "$LINENO"; then :
11560 ac_cv_lib_gphoto2_gp_camera_new=yes
11561 else
11562 ac_cv_lib_gphoto2_gp_camera_new=no
11564 rm -f core conftest.err conftest.$ac_objext \
11565 conftest$ac_exeext conftest.$ac_ext
11566 LIBS=$ac_check_lib_save_LIBS
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11569 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11570 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
11572 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
11574 else
11575 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11578 else
11579 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11583 CPPFLAGS=$ac_save_CPPFLAGS
11584 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11585 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11587 if test -n "$GPHOTO2_PORT_CFLAGS"; then :
11589 elif test -n "$PKG_CONFIG"; then :
11590 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
11592 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
11593 if test -n "$GPHOTO2_PORT_LIBS"; then :
11595 elif test -n "$PKG_CONFIG"; then :
11596 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
11598 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
11599 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
11600 ac_save_CPPFLAGS=$CPPFLAGS
11601 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
11602 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
11603 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
11605 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
11606 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
11607 $as_echo_n "(cached) " >&6
11608 else
11609 ac_check_lib_save_LIBS=$LIBS
11610 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612 /* end confdefs.h. */
11614 /* Override any GCC internal prototype to avoid an error.
11615 Use char because int might match the return type of a GCC
11616 builtin and then its argument prototype would still apply. */
11617 #ifdef __cplusplus
11618 extern "C"
11619 #endif
11620 char gp_port_info_list_new ();
11622 main ()
11624 return gp_port_info_list_new ();
11626 return 0;
11628 _ACEOF
11629 if ac_fn_c_try_link "$LINENO"; then :
11630 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
11631 else
11632 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
11634 rm -f core conftest.err conftest.$ac_objext \
11635 conftest$ac_exeext conftest.$ac_ext
11636 LIBS=$ac_check_lib_save_LIBS
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
11639 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
11640 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
11642 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
11644 else
11645 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11648 else
11649 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11653 CPPFLAGS=$ac_save_CPPFLAGS
11654 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11655 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11658 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
11659 case "x$with_gphoto" in
11660 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
11661 xno) ;;
11662 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
11663 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11664 esac
11666 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
11667 case "x$with_gphoto" in
11668 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
11669 xno) ;;
11670 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
11671 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11672 esac
11676 if test "$ac_cv_header_resolv_h" = "yes"
11677 then
11678 ac_save_LIBS="$LIBS"
11679 for lib in '' -lresolv
11681 LIBS="$lib $ac_save_LIBS"
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11684 #ifdef HAVE_NETINET_IN_H
11685 #include <netinet/in.h>
11686 #endif
11687 #include <resolv.h>
11689 main ()
11691 res_query("foo",ns_c_in,0,0,0);
11693 return 0;
11695 _ACEOF
11696 if ac_fn_c_try_link "$LINENO"; then :
11698 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11700 RESOLVLIBS="$lib"
11703 rm -f core conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705 if test "${RESOLVLIBS+set}" = set; then
11706 break
11708 done
11709 LIBS="$ac_save_LIBS"
11712 if test "x$with_lcms2" != "xno"
11713 then
11714 if test -n "$LCMS2_CFLAGS"; then :
11716 elif test -n "$PKG_CONFIG"; then :
11717 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
11720 if test -n "$LCMS2_LIBS"; then :
11722 elif test -n "$PKG_CONFIG"; then :
11723 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
11726 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
11727 ac_save_CPPFLAGS=$CPPFLAGS
11728 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
11729 for ac_header in lcms2.h
11730 do :
11731 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
11732 if test "x$ac_cv_header_lcms2_h" = xyes; then :
11733 cat >>confdefs.h <<_ACEOF
11734 #define HAVE_LCMS2_H 1
11735 _ACEOF
11739 done
11741 if test "$ac_cv_header_lcms2_h" = "yes"
11742 then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
11744 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
11745 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 ac_check_lib_save_LIBS=$LIBS
11749 LIBS="-llcms2 $LIBS"
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11753 /* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11756 #ifdef __cplusplus
11757 extern "C"
11758 #endif
11759 char cmsOpenProfileFromFile ();
11761 main ()
11763 return cmsOpenProfileFromFile ();
11765 return 0;
11767 _ACEOF
11768 if ac_fn_c_try_link "$LINENO"; then :
11769 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
11770 else
11771 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
11773 rm -f core conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext conftest.$ac_ext
11775 LIBS=$ac_check_lib_save_LIBS
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
11778 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
11779 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
11781 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
11783 else
11784 LCMS2_LIBS=""
11787 else
11788 LCMS2_CFLAGS=""
11789 LCMS2_LIBS=""
11791 CPPFLAGS=$ac_save_CPPFLAGS
11792 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11793 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11796 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
11797 case "x$with_cms" in
11798 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
11799 xno) ;;
11800 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
11801 This is an error since --with-cms was requested." "$LINENO" 5 ;;
11802 esac
11805 if test "x$with_freetype" != "xno"
11806 then
11807 if test -n "$FREETYPE_CFLAGS"; then :
11809 elif test -n "$PKG_CONFIG"; then :
11810 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
11812 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
11813 if test -n "$FREETYPE_LIBS"; then :
11815 elif test -n "$PKG_CONFIG"; then :
11816 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
11818 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
11819 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
11820 ac_save_CPPFLAGS=$CPPFLAGS
11821 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
11822 for ac_header in ft2build.h
11823 do :
11824 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
11825 if test "x$ac_cv_header_ft2build_h" = xyes; then :
11826 cat >>confdefs.h <<_ACEOF
11827 #define HAVE_FT2BUILD_H 1
11828 _ACEOF
11832 done
11834 if test "$ac_cv_header_ft2build_h" = "yes"
11835 then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
11837 $as_echo_n "checking for -lfreetype... " >&6; }
11838 if ${ac_cv_lib_soname_freetype+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 ac_check_soname_save_LIBS=$LIBS
11842 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11846 /* Override any GCC internal prototype to avoid an error.
11847 Use char because int might match the return type of a GCC
11848 builtin and then its argument prototype would still apply. */
11849 #ifdef __cplusplus
11850 extern "C"
11851 #endif
11852 char FT_Init_FreeType ();
11854 main ()
11856 return FT_Init_FreeType ();
11858 return 0;
11860 _ACEOF
11861 if ac_fn_c_try_link "$LINENO"; then :
11862 case "$LIBEXT" in
11863 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11864 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'` ;;
11865 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11866 if test "x$ac_cv_lib_soname_freetype" = x; then :
11867 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11868 fi ;;
11869 esac
11871 rm -f core conftest.err conftest.$ac_objext \
11872 conftest$ac_exeext conftest.$ac_ext
11873 LIBS=$ac_check_soname_save_LIBS
11875 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11877 $as_echo "not found" >&6; }
11878 FREETYPE_LIBS=""
11879 else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
11881 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
11883 cat >>confdefs.h <<_ACEOF
11884 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11885 _ACEOF
11888 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11890 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <ft2build.h>
11891 #include FT_MODULE_H
11893 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
11895 cat >>confdefs.h <<_ACEOF
11896 #define HAVE_FT_TRUETYPEENGINETYPE 1
11897 _ACEOF
11903 else
11904 FREETYPE_CFLAGS=""
11905 FREETYPE_LIBS=""
11907 CPPFLAGS=$ac_save_CPPFLAGS
11908 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11909 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11912 if test "x$ac_cv_lib_soname_freetype" = x; then :
11913 case "x$with_freetype" in
11914 xno) ;;
11915 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
11916 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
11917 esac
11919 test "x$ac_cv_lib_soname_freetype" = x && enable_fonts=${enable_fonts:-no}
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
11922 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
11923 if ${ac_cv_c_ppdev+:} false; then :
11924 $as_echo_n "(cached) " >&6
11925 else
11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h. */
11928 #ifdef HAVE_SYS_IOCTL_H
11929 # include <sys/ioctl.h>
11930 #endif
11931 #include <linux/ppdev.h>
11933 main ()
11935 ioctl (1,PPCLAIM,0)
11937 return 0;
11939 _ACEOF
11940 if ac_fn_c_try_compile "$LINENO"; then :
11941 ac_cv_c_ppdev="yes"
11942 else
11943 ac_cv_c_ppdev="no"
11945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11948 $as_echo "$ac_cv_c_ppdev" >&6; }
11949 if test "$ac_cv_c_ppdev" = "yes"
11950 then
11952 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11956 ac_wine_check_funcs_save_LIBS="$LIBS"
11957 LIBS="$LIBS $LIBPTHREAD"
11958 for ac_func in \
11959 pthread_attr_get_np \
11960 pthread_getattr_np \
11961 pthread_getthreadid_np \
11962 pthread_get_stackaddr_np \
11963 pthread_get_stacksize_np
11964 do :
11965 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11966 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11967 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11968 cat >>confdefs.h <<_ACEOF
11969 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11970 _ACEOF
11973 done
11975 LIBS="$ac_wine_check_funcs_save_LIBS"
11977 if test "$ac_cv_header_zlib_h" = "yes"
11978 then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11980 $as_echo_n "checking for inflate in -lz... " >&6; }
11981 if ${ac_cv_lib_z_inflate+:} false; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 ac_check_lib_save_LIBS=$LIBS
11985 LIBS="-lz $LIBS"
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h. */
11989 /* Override any GCC internal prototype to avoid an error.
11990 Use char because int might match the return type of a GCC
11991 builtin and then its argument prototype would still apply. */
11992 #ifdef __cplusplus
11993 extern "C"
11994 #endif
11995 char inflate ();
11997 main ()
11999 return inflate ();
12001 return 0;
12003 _ACEOF
12004 if ac_fn_c_try_link "$LINENO"; then :
12005 ac_cv_lib_z_inflate=yes
12006 else
12007 ac_cv_lib_z_inflate=no
12009 rm -f core conftest.err conftest.$ac_objext \
12010 conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_check_lib_save_LIBS
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12014 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12015 if test "x$ac_cv_lib_z_inflate" = xyes; then :
12017 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12019 ZLIB="-lz"
12024 if test "x$ZLIB" = "x"; then :
12025 case "x$with_zlib" in
12026 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
12027 xno) ;;
12028 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
12029 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
12030 esac
12033 if test "x$enable_tools" != xno
12034 then
12035 if test "$ac_cv_header_gettext_po_h" = "yes"
12036 then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
12038 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
12039 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
12040 $as_echo_n "(cached) " >&6
12041 else
12042 ac_check_lib_save_LIBS=$LIBS
12043 LIBS="-lgettextpo $LIBS"
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12047 /* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12050 #ifdef __cplusplus
12051 extern "C"
12052 #endif
12053 char po_message_msgctxt ();
12055 main ()
12057 return po_message_msgctxt ();
12059 return 0;
12061 _ACEOF
12062 if ac_fn_c_try_link "$LINENO"; then :
12063 ac_cv_lib_gettextpo_po_message_msgctxt=yes
12064 else
12065 ac_cv_lib_gettextpo_po_message_msgctxt=no
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12069 LIBS=$ac_check_lib_save_LIBS
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
12072 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
12073 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
12075 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
12077 LIBGETTEXTPO="-lgettextpo"
12082 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
12083 case "x$with_gettextpo" in
12084 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
12085 xno) ;;
12086 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
12087 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
12088 esac
12092 if test "x$with_gstreamer" != "xno"
12093 then
12094 if test -n "$GSTREAMER_CFLAGS"; then :
12096 elif test -n "$PKG_CONFIG"; then :
12097 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
12100 if test -n "$GSTREAMER_LIBS"; then :
12102 elif test -n "$PKG_CONFIG"; then :
12103 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
12107 ac_save_CPPFLAGS=$CPPFLAGS
12108 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
12109 ac_gst_incl=""
12110 for i in $GSTREAMER_CFLAGS
12112 case "$i" in
12113 -I*) ac_gst_incl="$ac_gst_incl $i";;
12114 esac
12115 done
12116 GSTREAMER_CFLAGS=$ac_gst_incl
12117 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
12118 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
12119 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
12120 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
12121 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
12123 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12126 #include <gst/app/gstappsink.h>
12128 main ()
12130 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
12132 return 0;
12134 _ACEOF
12135 if ac_fn_c_try_compile "$LINENO"; then :
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12137 $as_echo "yes" >&6; }
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
12139 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
12140 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
12141 $as_echo_n "(cached) " >&6
12142 else
12143 ac_check_lib_save_LIBS=$LIBS
12144 LIBS="-lgstreamer-0.10 $LIBS"
12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146 /* end confdefs.h. */
12148 /* Override any GCC internal prototype to avoid an error.
12149 Use char because int might match the return type of a GCC
12150 builtin and then its argument prototype would still apply. */
12151 #ifdef __cplusplus
12152 extern "C"
12153 #endif
12154 char gst_pad_get_caps_reffed ();
12156 main ()
12158 return gst_pad_get_caps_reffed ();
12160 return 0;
12162 _ACEOF
12163 if ac_fn_c_try_link "$LINENO"; then :
12164 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
12165 else
12166 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
12168 rm -f core conftest.err conftest.$ac_objext \
12169 conftest$ac_exeext conftest.$ac_ext
12170 LIBS=$ac_check_lib_save_LIBS
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
12173 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
12174 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
12176 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
12177 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 ac_check_lib_save_LIBS=$LIBS
12181 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12185 /* Override any GCC internal prototype to avoid an error.
12186 Use char because int might match the return type of a GCC
12187 builtin and then its argument prototype would still apply. */
12188 #ifdef __cplusplus
12189 extern "C"
12190 #endif
12191 char gst_app_buffer_new ();
12193 main ()
12195 return gst_app_buffer_new ();
12197 return 0;
12199 _ACEOF
12200 if ac_fn_c_try_link "$LINENO"; then :
12201 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
12202 else
12203 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
12205 rm -f core conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
12210 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
12211 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
12217 else
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219 $as_echo "no" >&6; }
12221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12225 else
12226 GSTREAMER_CFLAGS=""
12230 CPPFLAGS=$ac_save_CPPFLAGS
12231 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12232 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12235 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
12236 case "x$with_gstreamer" in
12237 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
12238 xno) ;;
12239 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
12240 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
12241 esac
12243 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
12245 ALSALIBS=""
12247 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12248 then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
12250 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
12251 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 ac_check_lib_save_LIBS=$LIBS
12255 LIBS="-lasound $LIBS"
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12259 /* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
12262 #ifdef __cplusplus
12263 extern "C"
12264 #endif
12265 char snd_pcm_hw_params_get_access_mask ();
12267 main ()
12269 return snd_pcm_hw_params_get_access_mask ();
12271 return 0;
12273 _ACEOF
12274 if ac_fn_c_try_link "$LINENO"; then :
12275 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
12276 else
12277 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
12279 rm -f core conftest.err conftest.$ac_objext \
12280 conftest$ac_exeext conftest.$ac_ext
12281 LIBS=$ac_check_lib_save_LIBS
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
12284 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
12285 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12288 #ifdef HAVE_ALSA_ASOUNDLIB_H
12289 #include <alsa/asoundlib.h>
12290 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12291 #include <sys/asoundlib.h>
12292 #endif
12294 main ()
12296 snd_pcm_hw_params_get_access_mask(NULL, NULL)
12298 return 0;
12300 _ACEOF
12301 if ac_fn_c_try_compile "$LINENO"; then :
12302 ALSALIBS="-lasound"
12304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309 if test "x$with_oss" != xno
12310 then
12311 ac_save_CPPFLAGS="$CPPFLAGS"
12312 if test -f /etc/oss.conf
12313 then
12314 . /etc/oss.conf
12316 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
12317 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
12318 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12319 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12320 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
12322 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
12324 cat >>confdefs.h <<_ACEOF
12325 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
12326 _ACEOF
12328 OSS4INCL="$ac_oss_incl"
12335 CPPFLAGS="$ac_save_CPPFLAGS"
12336 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
12337 then
12338 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
12342 if test "x$with_capi" != "xno"
12343 then
12344 if test -n "$CAPI20_CFLAGS"; then :
12346 elif test -n "$PKG_CONFIG"; then :
12347 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
12350 if test -n "$CAPI20_LIBS"; then :
12352 elif test -n "$PKG_CONFIG"; then :
12353 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
12357 ac_save_CPPFLAGS=$CPPFLAGS
12358 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
12359 for ac_header in capi20.h linux/capi.h
12360 do :
12361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12362 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
12364 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12365 cat >>confdefs.h <<_ACEOF
12366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12367 _ACEOF
12371 done
12373 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12374 then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
12376 $as_echo_n "checking for -lcapi20... " >&6; }
12377 if ${ac_cv_lib_soname_capi20+:} false; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 ac_check_soname_save_LIBS=$LIBS
12381 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12385 /* Override any GCC internal prototype to avoid an error.
12386 Use char because int might match the return type of a GCC
12387 builtin and then its argument prototype would still apply. */
12388 #ifdef __cplusplus
12389 extern "C"
12390 #endif
12391 char capi20_register ();
12393 main ()
12395 return capi20_register ();
12397 return 0;
12399 _ACEOF
12400 if ac_fn_c_try_link "$LINENO"; then :
12401 case "$LIBEXT" in
12402 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12403 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'` ;;
12404 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12405 if test "x$ac_cv_lib_soname_capi20" = x; then :
12406 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12407 fi ;;
12408 esac
12410 rm -f core conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext conftest.$ac_ext
12412 LIBS=$ac_check_soname_save_LIBS
12414 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12416 $as_echo "not found" >&6; }
12418 else
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
12420 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
12422 cat >>confdefs.h <<_ACEOF
12423 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
12424 _ACEOF
12429 CPPFLAGS=$ac_save_CPPFLAGS
12430 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12431 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12434 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12435 case "x$with_capi" in
12436 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
12437 xno) ;;
12438 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
12439 This is an error since --with-capi was requested." "$LINENO" 5 ;;
12440 esac
12443 CUPSINCL=""
12445 if test "x$with_cups" != "xno"
12446 then
12447 ac_save_CPPFLAGS="$CPPFLAGS"
12448 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
12449 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
12450 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
12451 for ac_header in cups/cups.h
12452 do :
12453 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
12454 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
12455 cat >>confdefs.h <<_ACEOF
12456 #define HAVE_CUPS_CUPS_H 1
12457 _ACEOF
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
12459 $as_echo_n "checking for -lcups... " >&6; }
12460 if ${ac_cv_lib_soname_cups+:} false; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 ac_check_soname_save_LIBS=$LIBS
12464 LIBS="-lcups $ac_cups_libs $LIBS"
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12468 /* Override any GCC internal prototype to avoid an error.
12469 Use char because int might match the return type of a GCC
12470 builtin and then its argument prototype would still apply. */
12471 #ifdef __cplusplus
12472 extern "C"
12473 #endif
12474 char cupsGetDefault ();
12476 main ()
12478 return cupsGetDefault ();
12480 return 0;
12482 _ACEOF
12483 if ac_fn_c_try_link "$LINENO"; then :
12484 case "$LIBEXT" in
12485 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12486 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'` ;;
12487 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12488 if test "x$ac_cv_lib_soname_cups" = x; then :
12489 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12490 fi ;;
12491 esac
12493 rm -f core conftest.err conftest.$ac_objext \
12494 conftest$ac_exeext conftest.$ac_ext
12495 LIBS=$ac_check_soname_save_LIBS
12497 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12499 $as_echo "not found" >&6; }
12501 else
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
12503 $as_echo "$ac_cv_lib_soname_cups" >&6; }
12505 cat >>confdefs.h <<_ACEOF
12506 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12507 _ACEOF
12509 CUPSINCL="$ac_cups_cflags"
12513 done
12515 CPPFLAGS="$ac_save_CPPFLAGS"
12517 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12518 case "x$with_cups" in
12519 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
12520 xno) ;;
12521 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
12522 This is an error since --with-cups was requested." "$LINENO" 5 ;;
12523 esac
12526 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12527 then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12529 $as_echo_n "checking for -lfontconfig... " >&6; }
12530 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 ac_check_soname_save_LIBS=$LIBS
12534 LIBS="-lfontconfig $LIBS"
12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12538 /* Override any GCC internal prototype to avoid an error.
12539 Use char because int might match the return type of a GCC
12540 builtin and then its argument prototype would still apply. */
12541 #ifdef __cplusplus
12542 extern "C"
12543 #endif
12544 char FcInit ();
12546 main ()
12548 return FcInit ();
12550 return 0;
12552 _ACEOF
12553 if ac_fn_c_try_link "$LINENO"; then :
12554 case "$LIBEXT" in
12555 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12556 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'` ;;
12557 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12558 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12559 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12560 fi ;;
12561 esac
12563 rm -f core conftest.err conftest.$ac_objext \
12564 conftest$ac_exeext conftest.$ac_ext
12565 LIBS=$ac_check_soname_save_LIBS
12567 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12569 $as_echo "not found" >&6; }
12571 else
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12573 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12575 cat >>confdefs.h <<_ACEOF
12576 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12577 _ACEOF
12581 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
12582 then
12583 ac_save_CPPFLAGS="$CPPFLAGS"
12584 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12585 $as_unset ac_cv_header_fontconfig_fontconfig_h
12586 for ac_header in fontconfig/fontconfig.h
12587 do :
12588 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
12589 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
12590 cat >>confdefs.h <<_ACEOF
12591 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
12592 _ACEOF
12596 done
12598 CPPFLAGS="$ac_save_CPPFLAGS"
12599 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12600 then
12601 FONTCONFIGINCL="$X_CFLAGS"
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12604 $as_echo_n "checking for -lfontconfig... " >&6; }
12605 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12608 ac_check_soname_save_LIBS=$LIBS
12609 LIBS="-lfontconfig $X_LIBS $LIBS"
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12613 /* Override any GCC internal prototype to avoid an error.
12614 Use char because int might match the return type of a GCC
12615 builtin and then its argument prototype would still apply. */
12616 #ifdef __cplusplus
12617 extern "C"
12618 #endif
12619 char FcInit ();
12621 main ()
12623 return FcInit ();
12625 return 0;
12627 _ACEOF
12628 if ac_fn_c_try_link "$LINENO"; then :
12629 case "$LIBEXT" in
12630 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12631 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'` ;;
12632 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12633 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12634 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12635 fi ;;
12636 esac
12638 rm -f core conftest.err conftest.$ac_objext \
12639 conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_soname_save_LIBS
12642 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12644 $as_echo "not found" >&6; }
12646 else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12648 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12650 cat >>confdefs.h <<_ACEOF
12651 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12652 _ACEOF
12658 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12659 case "x$with_fontconfig" in
12660 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
12661 xno) ;;
12662 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
12663 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
12664 esac
12667 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
12668 then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
12670 $as_echo_n "checking for -lgsm... " >&6; }
12671 if ${ac_cv_lib_soname_gsm+:} false; then :
12672 $as_echo_n "(cached) " >&6
12673 else
12674 ac_check_soname_save_LIBS=$LIBS
12675 LIBS="-lgsm $LIBS"
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12679 /* Override any GCC internal prototype to avoid an error.
12680 Use char because int might match the return type of a GCC
12681 builtin and then its argument prototype would still apply. */
12682 #ifdef __cplusplus
12683 extern "C"
12684 #endif
12685 char gsm_create ();
12687 main ()
12689 return gsm_create ();
12691 return 0;
12693 _ACEOF
12694 if ac_fn_c_try_link "$LINENO"; then :
12695 case "$LIBEXT" in
12696 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12697 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'` ;;
12698 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12699 if test "x$ac_cv_lib_soname_gsm" = x; then :
12700 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12701 fi ;;
12702 esac
12704 rm -f core conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
12706 LIBS=$ac_check_soname_save_LIBS
12708 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12710 $as_echo "not found" >&6; }
12712 else
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
12714 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
12716 cat >>confdefs.h <<_ACEOF
12717 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
12718 _ACEOF
12723 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12724 case "x$with_gsm" in
12725 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
12726 xno) ;;
12727 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
12728 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
12729 esac
12732 if test "x$with_jpeg" != "xno"
12733 then
12734 if test -n "$JPEG_CFLAGS"; then :
12736 elif test -n "$PKG_CONFIG"; then :
12737 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
12740 if test -n "$JPEG_LIBS"; then :
12742 elif test -n "$PKG_CONFIG"; then :
12743 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
12747 ac_save_CPPFLAGS=$CPPFLAGS
12748 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
12749 for ac_header in jpeglib.h
12750 do :
12751 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
12752 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
12753 cat >>confdefs.h <<_ACEOF
12754 #define HAVE_JPEGLIB_H 1
12755 _ACEOF
12759 done
12761 if test "$ac_cv_header_jpeglib_h" = "yes"
12762 then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
12764 $as_echo_n "checking for -ljpeg... " >&6; }
12765 if ${ac_cv_lib_soname_jpeg+:} false; then :
12766 $as_echo_n "(cached) " >&6
12767 else
12768 ac_check_soname_save_LIBS=$LIBS
12769 LIBS="-ljpeg $JPEG_LIBS $LIBS"
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12773 /* Override any GCC internal prototype to avoid an error.
12774 Use char because int might match the return type of a GCC
12775 builtin and then its argument prototype would still apply. */
12776 #ifdef __cplusplus
12777 extern "C"
12778 #endif
12779 char jpeg_start_decompress ();
12781 main ()
12783 return jpeg_start_decompress ();
12785 return 0;
12787 _ACEOF
12788 if ac_fn_c_try_link "$LINENO"; then :
12789 case "$LIBEXT" in
12790 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12791 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'` ;;
12792 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12793 if test "x$ac_cv_lib_soname_jpeg" = x; then :
12794 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12795 fi ;;
12796 esac
12798 rm -f core conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
12800 LIBS=$ac_check_soname_save_LIBS
12802 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12804 $as_echo "not found" >&6; }
12805 JPEG_CFLAGS=""
12806 else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
12808 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
12810 cat >>confdefs.h <<_ACEOF
12811 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
12812 _ACEOF
12816 else
12817 JPEG_CFLAGS=""
12819 CPPFLAGS=$ac_save_CPPFLAGS
12820 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12821 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12824 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12825 case "x$with_jpeg" in
12826 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
12827 xno) ;;
12828 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
12829 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
12830 esac
12833 if test "x$with_png" != "xno"
12834 then
12835 if test -n "$PNG_CFLAGS"; then :
12837 elif test -n "$PKG_CONFIG"; then :
12838 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
12840 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
12841 if test -n "$PNG_LIBS"; then :
12843 elif test -n "$PKG_CONFIG"; then :
12844 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
12846 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
12848 ac_save_CPPFLAGS=$CPPFLAGS
12849 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
12850 for ac_header in png.h
12851 do :
12852 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12853 if test "x$ac_cv_header_png_h" = xyes; then :
12854 cat >>confdefs.h <<_ACEOF
12855 #define HAVE_PNG_H 1
12856 _ACEOF
12860 done
12862 if test "$ac_cv_header_png_h" = "yes"
12863 then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
12865 $as_echo_n "checking for -lpng... " >&6; }
12866 if ${ac_cv_lib_soname_png+:} false; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 ac_check_soname_save_LIBS=$LIBS
12870 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h. */
12874 /* Override any GCC internal prototype to avoid an error.
12875 Use char because int might match the return type of a GCC
12876 builtin and then its argument prototype would still apply. */
12877 #ifdef __cplusplus
12878 extern "C"
12879 #endif
12880 char png_create_read_struct ();
12882 main ()
12884 return png_create_read_struct ();
12886 return 0;
12888 _ACEOF
12889 if ac_fn_c_try_link "$LINENO"; then :
12890 case "$LIBEXT" in
12891 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12892 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'` ;;
12893 *) 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'`
12894 if test "x$ac_cv_lib_soname_png" = x; then :
12895 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12896 fi ;;
12897 esac
12899 rm -f core conftest.err conftest.$ac_objext \
12900 conftest$ac_exeext conftest.$ac_ext
12901 LIBS=$ac_check_soname_save_LIBS
12903 if test "x$ac_cv_lib_soname_png" = "x"; then :
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12905 $as_echo "not found" >&6; }
12906 PNG_CFLAGS=""
12907 else
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
12909 $as_echo "$ac_cv_lib_soname_png" >&6; }
12911 cat >>confdefs.h <<_ACEOF
12912 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
12913 _ACEOF
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12917 #include <png.h>
12919 main ()
12921 typeof(png_set_expand_gray_1_2_4_to_8) *p
12923 return 0;
12925 _ACEOF
12926 if ac_fn_c_try_compile "$LINENO"; then :
12928 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12933 else
12934 PNG_CFLAGS=""
12936 CPPFLAGS=$ac_save_CPPFLAGS
12937 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12938 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12941 if test "x$ac_cv_lib_soname_png" = "x"; then :
12942 case "x$with_png" in
12943 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12944 xno) ;;
12945 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12946 This is an error since --with-png was requested." "$LINENO" 5 ;;
12947 esac
12950 if test "x$with_tiff" != "xno"
12951 then
12952 if test -n "$TIFF_CFLAGS"; then :
12954 elif test -n "$PKG_CONFIG"; then :
12955 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
12958 if test -n "$TIFF_LIBS"; then :
12960 elif test -n "$PKG_CONFIG"; then :
12961 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
12965 ac_save_CPPFLAGS=$CPPFLAGS
12966 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
12967 for ac_header in tiffio.h
12968 do :
12969 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12970 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12971 cat >>confdefs.h <<_ACEOF
12972 #define HAVE_TIFFIO_H 1
12973 _ACEOF
12977 done
12979 if test "$ac_cv_header_tiffio_h" = "yes"
12980 then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12982 $as_echo_n "checking for -ltiff... " >&6; }
12983 if ${ac_cv_lib_soname_tiff+:} false; then :
12984 $as_echo_n "(cached) " >&6
12985 else
12986 ac_check_soname_save_LIBS=$LIBS
12987 LIBS="-ltiff $TIFF_LIBS $LIBS"
12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989 /* end confdefs.h. */
12991 /* Override any GCC internal prototype to avoid an error.
12992 Use char because int might match the return type of a GCC
12993 builtin and then its argument prototype would still apply. */
12994 #ifdef __cplusplus
12995 extern "C"
12996 #endif
12997 char TIFFClientOpen ();
12999 main ()
13001 return TIFFClientOpen ();
13003 return 0;
13005 _ACEOF
13006 if ac_fn_c_try_link "$LINENO"; then :
13007 case "$LIBEXT" in
13008 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13009 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'` ;;
13010 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13011 if test "x$ac_cv_lib_soname_tiff" = x; then :
13012 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13013 fi ;;
13014 esac
13016 rm -f core conftest.err conftest.$ac_objext \
13017 conftest$ac_exeext conftest.$ac_ext
13018 LIBS=$ac_check_soname_save_LIBS
13020 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13022 $as_echo "not found" >&6; }
13024 else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
13026 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
13028 cat >>confdefs.h <<_ACEOF
13029 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
13030 _ACEOF
13035 CPPFLAGS=$ac_save_CPPFLAGS
13036 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13037 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13040 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13041 case "x$with_tiff" in
13042 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
13043 xno) ;;
13044 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
13045 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
13046 esac
13049 if test "x$with_mpg123" != "xno"
13050 then
13051 if test -n "$MPG123_CFLAGS"; then :
13053 elif test -n "$PKG_CONFIG"; then :
13054 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
13057 if test -n "$MPG123_LIBS"; then :
13059 elif test -n "$PKG_CONFIG"; then :
13060 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
13063 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
13064 ac_save_CPPFLAGS=$CPPFLAGS
13065 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
13066 for ac_header in mpg123.h
13067 do :
13068 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
13069 if test "x$ac_cv_header_mpg123_h" = xyes; then :
13070 cat >>confdefs.h <<_ACEOF
13071 #define HAVE_MPG123_H 1
13072 _ACEOF
13076 done
13078 if test "$ac_cv_header_mpg123_h" = "yes"
13079 then
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
13081 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
13082 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
13083 $as_echo_n "(cached) " >&6
13084 else
13085 ac_check_lib_save_LIBS=$LIBS
13086 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13090 /* Override any GCC internal prototype to avoid an error.
13091 Use char because int might match the return type of a GCC
13092 builtin and then its argument prototype would still apply. */
13093 #ifdef __cplusplus
13094 extern "C"
13095 #endif
13096 char mpg123_feed ();
13098 main ()
13100 return mpg123_feed ();
13102 return 0;
13104 _ACEOF
13105 if ac_fn_c_try_link "$LINENO"; then :
13106 ac_cv_lib_mpg123_mpg123_feed=yes
13107 else
13108 ac_cv_lib_mpg123_mpg123_feed=no
13110 rm -f core conftest.err conftest.$ac_objext \
13111 conftest$ac_exeext conftest.$ac_ext
13112 LIBS=$ac_check_lib_save_LIBS
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
13115 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
13116 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
13118 else
13119 MPG123_LIBS=""
13122 else
13123 MPG123_CFLAGS=""
13124 MPG123_LIBS=""
13126 CPPFLAGS=$ac_save_CPPFLAGS
13127 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13128 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13131 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
13132 case "x$with_mpg123" in
13133 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
13134 xno) ;;
13135 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
13136 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
13137 esac
13139 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}
13141 if test "$ac_cv_header_AL_al_h" = "yes"
13142 then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
13144 $as_echo_n "checking for -lopenal... " >&6; }
13145 if ${ac_cv_lib_soname_openal+:} false; then :
13146 $as_echo_n "(cached) " >&6
13147 else
13148 ac_check_soname_save_LIBS=$LIBS
13149 LIBS="-lopenal $LIBS"
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13153 /* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply. */
13156 #ifdef __cplusplus
13157 extern "C"
13158 #endif
13159 char alGetSource3i ();
13161 main ()
13163 return alGetSource3i ();
13165 return 0;
13167 _ACEOF
13168 if ac_fn_c_try_link "$LINENO"; then :
13169 case "$LIBEXT" in
13170 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13171 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'` ;;
13172 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13173 if test "x$ac_cv_lib_soname_openal" = x; then :
13174 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13175 fi ;;
13176 esac
13178 rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext conftest.$ac_ext
13180 LIBS=$ac_check_soname_save_LIBS
13182 if test "x$ac_cv_lib_soname_openal" = "x"; then :
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13184 $as_echo "not found" >&6; }
13186 else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
13188 $as_echo "$ac_cv_lib_soname_openal" >&6; }
13190 cat >>confdefs.h <<_ACEOF
13191 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
13192 _ACEOF
13194 LIBOPENAL="-lopenal"
13196 ac_cv_lib_openal=yes
13198 cat >>confdefs.h <<_ACEOF
13199 #define HAVE_OPENAL 1
13200 _ACEOF
13204 if test "x$ac_cv_lib_openal" != xyes; then :
13205 case "x$with_openal" in
13206 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
13207 xno) ;;
13208 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
13209 This is an error since --with-openal was requested." "$LINENO" 5 ;;
13210 esac
13212 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
13214 if test "$ac_cv_header_kstat_h" = "yes"
13215 then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13217 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13218 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13219 $as_echo_n "(cached) " >&6
13220 else
13221 ac_check_lib_save_LIBS=$LIBS
13222 LIBS="-lkstat $LIBS"
13223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13224 /* end confdefs.h. */
13226 /* Override any GCC internal prototype to avoid an error.
13227 Use char because int might match the return type of a GCC
13228 builtin and then its argument prototype would still apply. */
13229 #ifdef __cplusplus
13230 extern "C"
13231 #endif
13232 char kstat_open ();
13234 main ()
13236 return kstat_open ();
13238 return 0;
13240 _ACEOF
13241 if ac_fn_c_try_link "$LINENO"; then :
13242 ac_cv_lib_kstat_kstat_open=yes
13243 else
13244 ac_cv_lib_kstat_kstat_open=no
13246 rm -f core conftest.err conftest.$ac_objext \
13247 conftest$ac_exeext conftest.$ac_ext
13248 LIBS=$ac_check_lib_save_LIBS
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13251 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13252 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13254 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
13256 LIBKSTAT="-lkstat"
13262 if test "$ac_cv_header_libprocstat_h" = "yes"
13263 then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
13265 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
13266 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 ac_check_lib_save_LIBS=$LIBS
13270 LIBS="-lprocstat $LIBS"
13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13274 /* Override any GCC internal prototype to avoid an error.
13275 Use char because int might match the return type of a GCC
13276 builtin and then its argument prototype would still apply. */
13277 #ifdef __cplusplus
13278 extern "C"
13279 #endif
13280 char procstat_open_sysctl ();
13282 main ()
13284 return procstat_open_sysctl ();
13286 return 0;
13288 _ACEOF
13289 if ac_fn_c_try_link "$LINENO"; then :
13290 ac_cv_lib_procstat_procstat_open_sysctl=yes
13291 else
13292 ac_cv_lib_procstat_procstat_open_sysctl=no
13294 rm -f core conftest.err conftest.$ac_objext \
13295 conftest$ac_exeext conftest.$ac_ext
13296 LIBS=$ac_check_lib_save_LIBS
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
13299 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
13300 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
13302 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
13304 LIBPROCSTAT="-lprocstat"
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
13311 $as_echo_n "checking for -lodbc... " >&6; }
13312 if ${ac_cv_lib_soname_odbc+:} false; then :
13313 $as_echo_n "(cached) " >&6
13314 else
13315 ac_check_soname_save_LIBS=$LIBS
13316 LIBS="-lodbc $LIBS"
13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13320 /* Override any GCC internal prototype to avoid an error.
13321 Use char because int might match the return type of a GCC
13322 builtin and then its argument prototype would still apply. */
13323 #ifdef __cplusplus
13324 extern "C"
13325 #endif
13326 char SQLConnect ();
13328 main ()
13330 return SQLConnect ();
13332 return 0;
13334 _ACEOF
13335 if ac_fn_c_try_link "$LINENO"; then :
13336 case "$LIBEXT" in
13337 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13338 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'` ;;
13339 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13340 if test "x$ac_cv_lib_soname_odbc" = x; then :
13341 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13342 fi ;;
13343 esac
13345 rm -f core conftest.err conftest.$ac_objext \
13346 conftest$ac_exeext conftest.$ac_ext
13347 LIBS=$ac_check_soname_save_LIBS
13349 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13351 $as_echo "not found" >&6; }
13352 cat >>confdefs.h <<_ACEOF
13353 #define SONAME_LIBODBC "libodbc.$LIBEXT"
13354 _ACEOF
13356 else
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
13358 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
13360 cat >>confdefs.h <<_ACEOF
13361 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
13362 _ACEOF
13367 if test "x$with_netapi" != "xno"
13368 then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5
13370 $as_echo_n "checking for -lnetapi... " >&6; }
13371 if ${ac_cv_lib_soname_netapi+:} false; then :
13372 $as_echo_n "(cached) " >&6
13373 else
13374 ac_check_soname_save_LIBS=$LIBS
13375 LIBS="-lnetapi $LIBS"
13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h. */
13379 /* Override any GCC internal prototype to avoid an error.
13380 Use char because int might match the return type of a GCC
13381 builtin and then its argument prototype would still apply. */
13382 #ifdef __cplusplus
13383 extern "C"
13384 #endif
13385 char libnetapi_init ();
13387 main ()
13389 return libnetapi_init ();
13391 return 0;
13393 _ACEOF
13394 if ac_fn_c_try_link "$LINENO"; then :
13395 case "$LIBEXT" in
13396 dll) ac_cv_lib_soname_netapi=`$ac_cv_path_LDD conftest.exe | grep "netapi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13397 dylib) ac_cv_lib_soname_netapi=`otool -L conftest$ac_exeext | grep "libnetapi\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libnetapi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
13398 *) ac_cv_lib_soname_netapi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libnetapi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libnetapi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13399 if test "x$ac_cv_lib_soname_netapi" = x; then :
13400 ac_cv_lib_soname_netapi=`$LDD conftest$ac_exeext | grep "libnetapi\\.$LIBEXT" | sed -e "s/^.*\(libnetapi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13401 fi ;;
13402 esac
13404 rm -f core conftest.err conftest.$ac_objext \
13405 conftest$ac_exeext conftest.$ac_ext
13406 LIBS=$ac_check_soname_save_LIBS
13408 if test "x$ac_cv_lib_soname_netapi" = "x"; then :
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13410 $as_echo "not found" >&6; }
13411 cat >>confdefs.h <<_ACEOF
13412 #define SONAME_LIBNETAPI "libnetapi.$LIBEXT"
13413 _ACEOF
13415 else
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_netapi" >&5
13417 $as_echo "$ac_cv_lib_soname_netapi" >&6; }
13419 cat >>confdefs.h <<_ACEOF
13420 #define SONAME_LIBNETAPI "$ac_cv_lib_soname_netapi"
13421 _ACEOF
13427 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
13428 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
13429 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
13430 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
13432 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
13433 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
13434 "x$with_alsa$with_coreaudio$with_oss" != xnonono
13435 then
13436 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
13440 EXTRACFLAGS=""
13442 if test "x${GCC}" = "xyes"
13443 then
13444 EXTRACFLAGS="-Wall -pipe"
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
13447 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
13448 if ${ac_cv_c_gcc_strength_bug+:} false; then :
13449 $as_echo_n "(cached) " >&6
13450 else
13451 if test "$cross_compiling" = yes; then :
13452 ac_cv_c_gcc_strength_bug="yes"
13453 else
13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455 /* end confdefs.h. */
13456 int L[4] = {0,1,2,3};
13458 main ()
13460 static int Array[3];
13461 unsigned int B = 3;
13462 int i;
13463 for(i=0; i<B; i++) Array[i] = i - 3;
13464 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13465 L[i] = 4;
13466 return (Array[1] != -2 || L[2] != 3)
13468 return 0;
13470 _ACEOF
13471 if ac_fn_c_try_run "$LINENO"; then :
13472 ac_cv_c_gcc_strength_bug="no"
13473 else
13474 ac_cv_c_gcc_strength_bug="yes"
13476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13477 conftest.$ac_objext conftest.beam conftest.$ac_ext
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
13482 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
13483 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13484 then
13485 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
13489 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
13490 if ${ac_cv_cflags__fno_builtin+:} false; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 ac_wine_try_cflags_saved=$CFLAGS
13494 CFLAGS="$CFLAGS -fno-builtin"
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13497 int main(int argc, char **argv) { return 0; }
13498 _ACEOF
13499 if ac_fn_c_try_link "$LINENO"; then :
13500 ac_cv_cflags__fno_builtin=yes
13501 else
13502 ac_cv_cflags__fno_builtin=no
13504 rm -f core conftest.err conftest.$ac_objext \
13505 conftest$ac_exeext conftest.$ac_ext
13506 CFLAGS=$ac_wine_try_cflags_saved
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
13509 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
13510 if test $ac_cv_cflags__fno_builtin = yes; then :
13511 BUILTINFLAG="-fno-builtin"
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13515 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13516 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
13517 $as_echo_n "(cached) " >&6
13518 else
13519 ac_wine_try_cflags_saved=$CFLAGS
13520 CFLAGS="$CFLAGS -fno-strict-aliasing"
13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13523 int main(int argc, char **argv) { return 0; }
13524 _ACEOF
13525 if ac_fn_c_try_link "$LINENO"; then :
13526 ac_cv_cflags__fno_strict_aliasing=yes
13527 else
13528 ac_cv_cflags__fno_strict_aliasing=no
13530 rm -f core conftest.err conftest.$ac_objext \
13531 conftest$ac_exeext conftest.$ac_ext
13532 CFLAGS=$ac_wine_try_cflags_saved
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
13535 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
13536 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
13537 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13539 saved_CFLAGS=$CFLAGS
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
13541 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
13542 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 ac_wine_try_cflags_saved=$CFLAGS
13546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h. */
13549 int main(int argc, char **argv) { return 0; }
13550 _ACEOF
13551 if ac_fn_c_try_link "$LINENO"; then :
13552 ac_cv_cflags__Werror_unknown_warning_option=yes
13553 else
13554 ac_cv_cflags__Werror_unknown_warning_option=no
13556 rm -f core conftest.err conftest.$ac_objext \
13557 conftest$ac_exeext conftest.$ac_ext
13558 CFLAGS=$ac_wine_try_cflags_saved
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror_unknown_warning_option" >&5
13561 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
13562 if test $ac_cv_cflags__Werror_unknown_warning_option = yes; then :
13563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13566 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13567 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
13568 $as_echo_n "(cached) " >&6
13569 else
13570 ac_wine_try_cflags_saved=$CFLAGS
13571 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13574 int main(int argc, char **argv) { return 0; }
13575 _ACEOF
13576 if ac_fn_c_try_link "$LINENO"; then :
13577 ac_cv_cflags__Wdeclaration_after_statement=yes
13578 else
13579 ac_cv_cflags__Wdeclaration_after_statement=no
13581 rm -f core conftest.err conftest.$ac_objext \
13582 conftest$ac_exeext conftest.$ac_ext
13583 CFLAGS=$ac_wine_try_cflags_saved
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
13586 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
13587 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
13588 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
13591 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
13592 if ${ac_cv_cflags__Wempty_body+:} false; then :
13593 $as_echo_n "(cached) " >&6
13594 else
13595 ac_wine_try_cflags_saved=$CFLAGS
13596 CFLAGS="$CFLAGS -Wempty-body"
13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598 /* end confdefs.h. */
13599 int main(int argc, char **argv) { return 0; }
13600 _ACEOF
13601 if ac_fn_c_try_link "$LINENO"; then :
13602 ac_cv_cflags__Wempty_body=yes
13603 else
13604 ac_cv_cflags__Wempty_body=no
13606 rm -f core conftest.err conftest.$ac_objext \
13607 conftest$ac_exeext conftest.$ac_ext
13608 CFLAGS=$ac_wine_try_cflags_saved
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
13611 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
13612 if test $ac_cv_cflags__Wempty_body = yes; then :
13613 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
13616 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
13617 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
13618 $as_echo_n "(cached) " >&6
13619 else
13620 ac_wine_try_cflags_saved=$CFLAGS
13621 CFLAGS="$CFLAGS -Wignored-qualifiers"
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13624 int main(int argc, char **argv) { return 0; }
13625 _ACEOF
13626 if ac_fn_c_try_link "$LINENO"; then :
13627 ac_cv_cflags__Wignored_qualifiers=yes
13628 else
13629 ac_cv_cflags__Wignored_qualifiers=no
13631 rm -f core conftest.err conftest.$ac_objext \
13632 conftest$ac_exeext conftest.$ac_ext
13633 CFLAGS=$ac_wine_try_cflags_saved
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
13636 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
13637 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
13638 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
13641 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
13642 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
13643 $as_echo_n "(cached) " >&6
13644 else
13645 ac_wine_try_cflags_saved=$CFLAGS
13646 CFLAGS="$CFLAGS -Wstrict-prototypes"
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13649 int main(int argc, char **argv) { return 0; }
13650 _ACEOF
13651 if ac_fn_c_try_link "$LINENO"; then :
13652 ac_cv_cflags__Wstrict_prototypes=yes
13653 else
13654 ac_cv_cflags__Wstrict_prototypes=no
13656 rm -f core conftest.err conftest.$ac_objext \
13657 conftest$ac_exeext conftest.$ac_ext
13658 CFLAGS=$ac_wine_try_cflags_saved
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
13661 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
13662 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
13663 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
13666 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
13667 if ${ac_cv_cflags__Wtype_limits+:} false; then :
13668 $as_echo_n "(cached) " >&6
13669 else
13670 ac_wine_try_cflags_saved=$CFLAGS
13671 CFLAGS="$CFLAGS -Wtype-limits"
13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h. */
13674 int main(int argc, char **argv) { return 0; }
13675 _ACEOF
13676 if ac_fn_c_try_link "$LINENO"; then :
13677 ac_cv_cflags__Wtype_limits=yes
13678 else
13679 ac_cv_cflags__Wtype_limits=no
13681 rm -f core conftest.err conftest.$ac_objext \
13682 conftest$ac_exeext conftest.$ac_ext
13683 CFLAGS=$ac_wine_try_cflags_saved
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
13686 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
13687 if test $ac_cv_cflags__Wtype_limits = yes; then :
13688 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
13691 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
13692 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695 ac_wine_try_cflags_saved=$CFLAGS
13696 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13699 int main(int argc, char **argv) { return 0; }
13700 _ACEOF
13701 if ac_fn_c_try_link "$LINENO"; then :
13702 ac_cv_cflags__Wunused_but_set_parameter=yes
13703 else
13704 ac_cv_cflags__Wunused_but_set_parameter=no
13706 rm -f core conftest.err conftest.$ac_objext \
13707 conftest$ac_exeext conftest.$ac_ext
13708 CFLAGS=$ac_wine_try_cflags_saved
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
13711 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
13712 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
13713 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
13716 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
13717 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
13718 $as_echo_n "(cached) " >&6
13719 else
13720 ac_wine_try_cflags_saved=$CFLAGS
13721 CFLAGS="$CFLAGS -Wwrite-strings"
13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h. */
13724 int main(int argc, char **argv) { return 0; }
13725 _ACEOF
13726 if ac_fn_c_try_link "$LINENO"; then :
13727 ac_cv_cflags__Wwrite_strings=yes
13728 else
13729 ac_cv_cflags__Wwrite_strings=no
13731 rm -f core conftest.err conftest.$ac_objext \
13732 conftest$ac_exeext conftest.$ac_ext
13733 CFLAGS=$ac_wine_try_cflags_saved
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
13736 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
13737 if test $ac_cv_cflags__Wwrite_strings = yes; then :
13738 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
13742 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
13743 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
13744 $as_echo_n "(cached) " >&6
13745 else
13746 ac_wine_try_cflags_saved=$CFLAGS
13747 CFLAGS="$CFLAGS -Wpointer-arith"
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750 int main(int argc, char **argv) { return 0; }
13751 _ACEOF
13752 if ac_fn_c_try_link "$LINENO"; then :
13753 ac_cv_cflags__Wpointer_arith=yes
13754 else
13755 ac_cv_cflags__Wpointer_arith=no
13757 rm -f core conftest.err conftest.$ac_objext \
13758 conftest$ac_exeext conftest.$ac_ext
13759 CFLAGS=$ac_wine_try_cflags_saved
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
13762 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
13763 if test $ac_cv_cflags__Wpointer_arith = yes; then :
13764 saved_string_h_CFLAGS=$CFLAGS
13765 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
13767 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
13768 if ${ac_cv_c_string_h_warnings+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13773 #include <string.h>
13775 main ()
13779 return 0;
13781 _ACEOF
13782 if ac_fn_c_try_compile "$LINENO"; then :
13783 ac_cv_c_string_h_warnings=no
13784 else
13785 ac_cv_c_string_h_warnings=yes
13787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
13790 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
13791 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
13792 CFLAGS=$saved_string_h_CFLAGS
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
13796 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
13797 if ${ac_cv_cflags__Wlogical_op+:} false; then :
13798 $as_echo_n "(cached) " >&6
13799 else
13800 ac_wine_try_cflags_saved=$CFLAGS
13801 CFLAGS="$CFLAGS -Wlogical-op"
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804 int main(int argc, char **argv) { return 0; }
13805 _ACEOF
13806 if ac_fn_c_try_link "$LINENO"; then :
13807 ac_cv_cflags__Wlogical_op=yes
13808 else
13809 ac_cv_cflags__Wlogical_op=no
13811 rm -f core conftest.err conftest.$ac_objext \
13812 conftest$ac_exeext conftest.$ac_ext
13813 CFLAGS=$ac_wine_try_cflags_saved
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
13816 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
13817 if test $ac_cv_cflags__Wlogical_op = yes; then :
13818 saved_string_h_CFLAGS=$CFLAGS
13819 CFLAGS="$CFLAGS -Wlogical-op -Werror"
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
13821 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
13822 if ${ac_cv_c_logicalop_noisy+:} false; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h. */
13827 #include <string.h>
13828 char*f(const char *h,char n) {return strchr(h,n);}
13830 main ()
13834 return 0;
13836 _ACEOF
13837 if ac_fn_c_try_compile "$LINENO"; then :
13838 ac_cv_c_logicalop_noisy=no
13839 else
13840 ac_cv_c_logicalop_noisy=yes
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
13845 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
13846 CFLAGS=$saved_string_h_CFLAGS
13847 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
13850 CFLAGS=$saved_CFLAGS
13852 for ac_flag in $CFLAGS; do
13853 case $ac_flag in
13854 -g) case $host_os in
13855 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
13856 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
13857 if ${ac_cv_cflags__gstabsp+:} false; then :
13858 $as_echo_n "(cached) " >&6
13859 else
13860 ac_wine_try_cflags_saved=$CFLAGS
13861 CFLAGS="$CFLAGS -gstabs+"
13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13863 /* end confdefs.h. */
13864 int main(int argc, char **argv) { return 0; }
13865 _ACEOF
13866 if ac_fn_c_try_link "$LINENO"; then :
13867 ac_cv_cflags__gstabsp=yes
13868 else
13869 ac_cv_cflags__gstabsp=no
13871 rm -f core conftest.err conftest.$ac_objext \
13872 conftest$ac_exeext conftest.$ac_ext
13873 CFLAGS=$ac_wine_try_cflags_saved
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
13876 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
13877 if test $ac_cv_cflags__gstabsp = yes; then :
13878 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
13879 fi ;;
13880 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
13881 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
13882 if ${ac_cv_cflags__gdwarf_2+:} false; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 ac_wine_try_cflags_saved=$CFLAGS
13886 CFLAGS="$CFLAGS -gdwarf-2"
13887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13889 int main(int argc, char **argv) { return 0; }
13890 _ACEOF
13891 if ac_fn_c_try_link "$LINENO"; then :
13892 ac_cv_cflags__gdwarf_2=yes
13893 else
13894 ac_cv_cflags__gdwarf_2=no
13896 rm -f core conftest.err conftest.$ac_objext \
13897 conftest$ac_exeext conftest.$ac_ext
13898 CFLAGS=$ac_wine_try_cflags_saved
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
13901 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
13902 if test $ac_cv_cflags__gdwarf_2 = yes; then :
13903 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
13906 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
13907 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
13908 $as_echo_n "(cached) " >&6
13909 else
13910 ac_wine_try_cflags_saved=$CFLAGS
13911 CFLAGS="$CFLAGS -gstrict-dwarf"
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13914 int main(int argc, char **argv) { return 0; }
13915 _ACEOF
13916 if ac_fn_c_try_link "$LINENO"; then :
13917 ac_cv_cflags__gstrict_dwarf=yes
13918 else
13919 ac_cv_cflags__gstrict_dwarf=no
13921 rm -f core conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13923 CFLAGS=$ac_wine_try_cflags_saved
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
13926 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
13927 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
13928 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
13929 fi ;;
13930 esac ;;
13931 esac
13932 done
13934 case $host_cpu in
13935 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
13936 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
13937 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
13938 $as_echo_n "(cached) " >&6
13939 else
13940 ac_wine_try_cflags_saved=$CFLAGS
13941 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13944 int main(int argc, char **argv) { return 0; }
13945 _ACEOF
13946 if ac_fn_c_try_link "$LINENO"; then :
13947 ac_cv_cflags__fno_omit_frame_pointer=yes
13948 else
13949 ac_cv_cflags__fno_omit_frame_pointer=no
13951 rm -f core conftest.err conftest.$ac_objext \
13952 conftest$ac_exeext conftest.$ac_ext
13953 CFLAGS=$ac_wine_try_cflags_saved
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
13956 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
13957 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
13958 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
13959 fi ;;
13960 esac
13962 case $host in
13963 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
13964 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
13965 if ${ac_cv_cflags__Wno_format+:} false; then :
13966 $as_echo_n "(cached) " >&6
13967 else
13968 ac_wine_try_cflags_saved=$CFLAGS
13969 CFLAGS="$CFLAGS -Wno-format"
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13972 int main(int argc, char **argv) { return 0; }
13973 _ACEOF
13974 if ac_fn_c_try_link "$LINENO"; then :
13975 ac_cv_cflags__Wno_format=yes
13976 else
13977 ac_cv_cflags__Wno_format=no
13979 rm -f core conftest.err conftest.$ac_objext \
13980 conftest$ac_exeext conftest.$ac_ext
13981 CFLAGS=$ac_wine_try_cflags_saved
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
13984 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
13985 if test $ac_cv_cflags__Wno_format = yes; then :
13986 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
13987 fi ;;
13988 esac
13990 if test "x$enable_maintainer_mode" = "xyes"
13991 then
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
13993 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
13994 if ${ac_cv_cflags__Werror+:} false; then :
13995 $as_echo_n "(cached) " >&6
13996 else
13997 ac_wine_try_cflags_saved=$CFLAGS
13998 CFLAGS="$CFLAGS -Werror"
13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h. */
14001 int main(int argc, char **argv) { return 0; }
14002 _ACEOF
14003 if ac_fn_c_try_link "$LINENO"; then :
14004 ac_cv_cflags__Werror=yes
14005 else
14006 ac_cv_cflags__Werror=no
14008 rm -f core conftest.err conftest.$ac_objext \
14009 conftest$ac_exeext conftest.$ac_ext
14010 CFLAGS=$ac_wine_try_cflags_saved
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
14013 $as_echo "$ac_cv_cflags__Werror" >&6; }
14014 if test $ac_cv_cflags__Werror = yes; then :
14015 EXTRACFLAGS="$EXTRACFLAGS -Werror"
14019 saved_CFLAGS="$CFLAGS"
14020 CFLAGS="$CFLAGS -Werror"
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
14022 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
14023 if ${ac_cv_have_ms_hook_prologue+:} false; then :
14024 $as_echo_n "(cached) " >&6
14025 else
14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h. */
14028 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
14030 main ()
14034 return 0;
14036 _ACEOF
14037 if ac_fn_c_try_compile "$LINENO"; then :
14038 ac_cv_have_ms_hook_prologue="yes"
14039 else
14040 ac_cv_have_ms_hook_prologue="no"
14042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
14045 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
14046 CFLAGS="$saved_CFLAGS"
14047 if test "$ac_cv_have_ms_hook_prologue" = "yes"
14048 then
14050 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
14052 else
14053 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
14060 $as_echo_n "checking for the need to disable Fortify... " >&6; }
14061 if ${ac_cv_c_fortify_enabled+:} false; then :
14062 $as_echo_n "(cached) " >&6
14063 else
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14066 #include <string.h>
14068 main ()
14070 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
14071 #error Fortify enabled
14072 #endif
14074 return 0;
14076 _ACEOF
14077 if ac_fn_c_try_compile "$LINENO"; then :
14078 ac_cv_c_fortify_enabled=no
14079 else
14080 ac_cv_c_fortify_enabled=yes
14082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
14085 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
14086 if test "$ac_cv_c_fortify_enabled" = yes
14087 then
14088 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
14093 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
14094 if ${ac_cv_c_extern_prefix+:} false; then :
14095 $as_echo_n "(cached) " >&6
14096 else
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14099 extern int ac_test;
14101 main ()
14103 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
14105 return 0;
14107 _ACEOF
14108 if ac_fn_c_try_link "$LINENO"; then :
14109 ac_cv_c_extern_prefix="yes"
14110 else
14111 ac_cv_c_extern_prefix="no"
14113 rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
14117 $as_echo "$ac_cv_c_extern_prefix" >&6; }
14119 case $host_cpu in
14120 *i[3456789]86*)
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
14122 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
14123 if ${ac_cv_c_stdcall_suffix+:} false; then :
14124 $as_echo_n "(cached) " >&6
14125 else
14126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127 /* end confdefs.h. */
14128 #ifndef _MSC_VER
14129 #define __stdcall __attribute__((__stdcall__))
14130 #endif
14131 int __stdcall ac_test(int i) { return i; }
14133 main ()
14135 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
14137 return 0;
14139 _ACEOF
14140 if ac_fn_c_try_link "$LINENO"; then :
14141 ac_cv_c_stdcall_suffix="yes"
14142 else
14143 ac_cv_c_stdcall_suffix="no"
14145 rm -f core conftest.err conftest.$ac_objext \
14146 conftest$ac_exeext conftest.$ac_ext
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
14149 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
14150 *) ac_cv_c_stdcall_suffix="no" ;;
14151 esac
14154 if test "$ac_cv_c_extern_prefix" = "yes"
14155 then
14156 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
14158 asm_name_prefix="_"
14159 else
14160 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
14162 asm_name_prefix=""
14166 if test "$ac_cv_c_stdcall_suffix" = "yes"
14167 then
14168 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
14170 else
14171 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
14177 $as_echo_n "checking how to define a function in assembly code... " >&6; }
14178 if ${ac_cv_asm_func_def+:} false; then :
14179 $as_echo_n "(cached) " >&6
14180 else
14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14185 main ()
14187 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
14189 return 0;
14191 _ACEOF
14192 if ac_fn_c_try_link "$LINENO"; then :
14193 ac_cv_asm_func_def=".def"
14194 else
14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h. */
14199 main ()
14201 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
14203 return 0;
14205 _ACEOF
14206 if ac_fn_c_try_link "$LINENO"; then :
14207 ac_cv_asm_func_def=".type @function"
14208 else
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14213 main ()
14215 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
14217 return 0;
14219 _ACEOF
14220 if ac_fn_c_try_link "$LINENO"; then :
14221 ac_cv_asm_func_def=".type 2"
14222 else
14223 ac_cv_asm_func_def="unknown"
14225 rm -f core conftest.err conftest.$ac_objext \
14226 conftest$ac_exeext conftest.$ac_ext
14228 rm -f core conftest.err conftest.$ac_objext \
14229 conftest$ac_exeext conftest.$ac_ext
14231 rm -f core conftest.err conftest.$ac_objext \
14232 conftest$ac_exeext conftest.$ac_ext
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
14235 $as_echo "$ac_cv_asm_func_def" >&6; }
14238 case "$ac_cv_asm_func_def" in
14239 ".def")
14240 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
14242 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
14243 ".type @function")
14244 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
14246 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
14247 ".type 2")
14248 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
14250 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
14252 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
14254 asm_func_header="" ;;
14255 esac
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
14258 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
14259 if ${ac_cv_c_asm_outside_funcs+:} false; then :
14260 $as_echo_n "(cached) " >&6
14261 else
14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14264 asm(".text\n\t.long 0");
14266 main ()
14270 return 0;
14272 _ACEOF
14273 if ac_fn_c_try_compile "$LINENO"; then :
14274 ac_cv_c_asm_outside_funcs="yes"
14275 else
14276 ac_cv_c_asm_outside_funcs="no"
14278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
14281 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
14284 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
14285 if ${ac_cv_c_dot_previous+:} false; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14292 main ()
14294 asm(".text\nac_test:\t.long 0\n\t.previous");
14296 return 0;
14298 _ACEOF
14299 if ac_fn_c_try_link "$LINENO"; then :
14300 ac_cv_c_dot_previous="yes"
14301 else
14302 ac_cv_c_dot_previous="no"
14304 rm -f core conftest.err conftest.$ac_objext \
14305 conftest$ac_exeext conftest.$ac_ext
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
14308 $as_echo "$ac_cv_c_dot_previous" >&6; }
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
14311 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
14312 if ${ac_cv_c_cfi_support+:} false; then :
14313 $as_echo_n "(cached) " >&6
14314 else
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14317 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
14319 main ()
14323 return 0;
14325 _ACEOF
14326 if ac_fn_c_try_compile "$LINENO"; then :
14327 ac_cv_c_cfi_support="yes"
14328 else
14329 ac_cv_c_cfi_support="no"
14331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
14334 $as_echo "$ac_cv_c_cfi_support" >&6; }
14336 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
14337 asm_func_trailer=""
14338 if test "$ac_cv_c_dot_previous" = "yes"
14339 then
14340 asm_func_trailer="\\n\\t.previous"
14342 if test "$ac_cv_c_cfi_support" = "yes"
14343 then
14344 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
14345 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
14347 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
14349 UNWINDFLAGS=-fasynchronous-unwind-tables
14351 else
14352 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
14356 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
14359 if test "$ac_cv_c_asm_outside_funcs" = "yes"
14360 then
14361 cat >>confdefs.h <<_ACEOF
14362 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
14363 _ACEOF
14365 else
14366 cat >>confdefs.h <<_ACEOF
14367 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
14368 _ACEOF
14372 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
14375 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
14379 case $build_os in
14380 cygwin*|mingw32*) TOOLSEXT=".exe"
14382 esac
14384 case $host_os in
14385 linux*)
14386 case $host_cpu in
14387 *i[3456789]86*|x86_64*)
14388 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine-preloader"
14389 loader_programs="$loader_programs $wine_binary-preloader"
14390 as_fn_append LOADER_RULES "
14391 $wine_binary-preloader: preloader.o
14392 \$(CC) -o \$@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o \$(LIBPORT) \$(LDFLAGS)
14394 install install-lib:: $wine_binary-preloader
14395 \$(INSTALL_PROGRAM) $wine_binary-preloader \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14397 uninstall::
14398 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14400 preloader_EXTRADEFS = $BUILTINFLAG
14401 " ;;
14402 esac
14404 esac
14405 as_fn_append LOADER_RULES "
14406 PROGRAMS = $loader_programs
14410 ac_save_CFLAGS="$CFLAGS"
14411 CFLAGS="$CFLAGS $BUILTINFLAG"
14412 for ac_func in \
14413 __res_get_state \
14414 __res_getservers \
14415 _finite \
14416 _isnan \
14417 _pclose \
14418 _popen \
14419 _snprintf \
14420 _spawnvp \
14421 _strdup \
14422 _stricmp \
14423 _strnicmp \
14424 _strtoi64 \
14425 _strtoui64 \
14426 _vsnprintf \
14427 asctime_r \
14428 chsize \
14429 dlopen \
14430 epoll_create \
14431 ffs \
14432 fnmatch \
14433 fork \
14434 fpclass \
14435 fstatfs \
14436 fstatvfs \
14437 ftruncate \
14438 futimens \
14439 futimes \
14440 futimesat \
14441 getattrlist \
14442 getdirentries \
14443 getopt_long_only \
14444 getpwuid \
14445 gettimeofday \
14446 getuid \
14447 if_nameindex \
14448 kqueue \
14449 lstat \
14450 memmove \
14451 mmap \
14452 pclose \
14453 pipe2 \
14454 poll \
14455 popen \
14456 port_create \
14457 prctl \
14458 pread \
14459 proc_pidinfo \
14460 pwrite \
14461 readdir \
14462 readlink \
14463 sched_yield \
14464 select \
14465 setproctitle \
14466 setrlimit \
14467 settimeofday \
14468 sigaltstack \
14469 sigprocmask \
14470 snprintf \
14471 statfs \
14472 statvfs \
14473 strcasecmp \
14474 strdup \
14475 strerror \
14476 strncasecmp \
14477 strtold \
14478 strtoll \
14479 strtoull \
14480 symlink \
14481 tcdrain \
14482 thr_kill2 \
14483 timegm \
14484 usleep \
14485 vsnprintf
14487 do :
14488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14490 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14491 cat >>confdefs.h <<_ACEOF
14492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14493 _ACEOF
14496 done
14498 CFLAGS="$ac_save_CFLAGS"
14500 if test "$ac_cv_func_dlopen" = no
14501 then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14503 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14504 if ${ac_cv_lib_dl_dlopen+:} false; then :
14505 $as_echo_n "(cached) " >&6
14506 else
14507 ac_check_lib_save_LIBS=$LIBS
14508 LIBS="-ldl $LIBS"
14509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h. */
14512 /* Override any GCC internal prototype to avoid an error.
14513 Use char because int might match the return type of a GCC
14514 builtin and then its argument prototype would still apply. */
14515 #ifdef __cplusplus
14516 extern "C"
14517 #endif
14518 char dlopen ();
14520 main ()
14522 return dlopen ();
14524 return 0;
14526 _ACEOF
14527 if ac_fn_c_try_link "$LINENO"; then :
14528 ac_cv_lib_dl_dlopen=yes
14529 else
14530 ac_cv_lib_dl_dlopen=no
14532 rm -f core conftest.err conftest.$ac_objext \
14533 conftest$ac_exeext conftest.$ac_ext
14534 LIBS=$ac_check_lib_save_LIBS
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14537 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14538 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14539 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14540 LIBDL="-ldl"
14545 ac_wine_check_funcs_save_LIBS="$LIBS"
14546 LIBS="$LIBS $LIBDL"
14547 for ac_func in dladdr
14548 do :
14549 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
14550 if test "x$ac_cv_func_dladdr" = xyes; then :
14551 cat >>confdefs.h <<_ACEOF
14552 #define HAVE_DLADDR 1
14553 _ACEOF
14556 done
14558 LIBS="$ac_wine_check_funcs_save_LIBS"
14560 if test "$ac_cv_func_poll" = no
14561 then
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
14563 $as_echo_n "checking for poll in -lpoll... " >&6; }
14564 if ${ac_cv_lib_poll_poll+:} false; then :
14565 $as_echo_n "(cached) " >&6
14566 else
14567 ac_check_lib_save_LIBS=$LIBS
14568 LIBS="-lpoll $LIBS"
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14572 /* Override any GCC internal prototype to avoid an error.
14573 Use char because int might match the return type of a GCC
14574 builtin and then its argument prototype would still apply. */
14575 #ifdef __cplusplus
14576 extern "C"
14577 #endif
14578 char poll ();
14580 main ()
14582 return poll ();
14584 return 0;
14586 _ACEOF
14587 if ac_fn_c_try_link "$LINENO"; then :
14588 ac_cv_lib_poll_poll=yes
14589 else
14590 ac_cv_lib_poll_poll=no
14592 rm -f core conftest.err conftest.$ac_objext \
14593 conftest$ac_exeext conftest.$ac_ext
14594 LIBS=$ac_check_lib_save_LIBS
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
14597 $as_echo "$ac_cv_lib_poll_poll" >&6; }
14598 if test "x$ac_cv_lib_poll_poll" = xyes; then :
14599 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14600 LIBPOLL="-lpoll"
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14607 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14608 if ${ac_cv_search_gethostbyname+:} false; then :
14609 $as_echo_n "(cached) " >&6
14610 else
14611 ac_func_search_save_LIBS=$LIBS
14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613 /* end confdefs.h. */
14615 /* Override any GCC internal prototype to avoid an error.
14616 Use char because int might match the return type of a GCC
14617 builtin and then its argument prototype would still apply. */
14618 #ifdef __cplusplus
14619 extern "C"
14620 #endif
14621 char gethostbyname ();
14623 main ()
14625 return gethostbyname ();
14627 return 0;
14629 _ACEOF
14630 for ac_lib in '' nsl; do
14631 if test -z "$ac_lib"; then
14632 ac_res="none required"
14633 else
14634 ac_res=-l$ac_lib
14635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14637 if ac_fn_c_try_link "$LINENO"; then :
14638 ac_cv_search_gethostbyname=$ac_res
14640 rm -f core conftest.err conftest.$ac_objext \
14641 conftest$ac_exeext
14642 if ${ac_cv_search_gethostbyname+:} false; then :
14643 break
14645 done
14646 if ${ac_cv_search_gethostbyname+:} false; then :
14648 else
14649 ac_cv_search_gethostbyname=no
14651 rm conftest.$ac_ext
14652 LIBS=$ac_func_search_save_LIBS
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14655 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14656 ac_res=$ac_cv_search_gethostbyname
14657 if test "$ac_res" != no; then :
14658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14664 $as_echo_n "checking for library containing connect... " >&6; }
14665 if ${ac_cv_search_connect+:} false; then :
14666 $as_echo_n "(cached) " >&6
14667 else
14668 ac_func_search_save_LIBS=$LIBS
14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14672 /* Override any GCC internal prototype to avoid an error.
14673 Use char because int might match the return type of a GCC
14674 builtin and then its argument prototype would still apply. */
14675 #ifdef __cplusplus
14676 extern "C"
14677 #endif
14678 char connect ();
14680 main ()
14682 return connect ();
14684 return 0;
14686 _ACEOF
14687 for ac_lib in '' socket; do
14688 if test -z "$ac_lib"; then
14689 ac_res="none required"
14690 else
14691 ac_res=-l$ac_lib
14692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14694 if ac_fn_c_try_link "$LINENO"; then :
14695 ac_cv_search_connect=$ac_res
14697 rm -f core conftest.err conftest.$ac_objext \
14698 conftest$ac_exeext
14699 if ${ac_cv_search_connect+:} false; then :
14700 break
14702 done
14703 if ${ac_cv_search_connect+:} false; then :
14705 else
14706 ac_cv_search_connect=no
14708 rm conftest.$ac_ext
14709 LIBS=$ac_func_search_save_LIBS
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
14712 $as_echo "$ac_cv_search_connect" >&6; }
14713 ac_res=$ac_cv_search_connect
14714 if test "$ac_res" != no; then :
14715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
14721 $as_echo_n "checking for library containing inet_aton... " >&6; }
14722 if ${ac_cv_search_inet_aton+:} false; then :
14723 $as_echo_n "(cached) " >&6
14724 else
14725 ac_func_search_save_LIBS=$LIBS
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14729 /* Override any GCC internal prototype to avoid an error.
14730 Use char because int might match the return type of a GCC
14731 builtin and then its argument prototype would still apply. */
14732 #ifdef __cplusplus
14733 extern "C"
14734 #endif
14735 char inet_aton ();
14737 main ()
14739 return inet_aton ();
14741 return 0;
14743 _ACEOF
14744 for ac_lib in '' resolv; do
14745 if test -z "$ac_lib"; then
14746 ac_res="none required"
14747 else
14748 ac_res=-l$ac_lib
14749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14751 if ac_fn_c_try_link "$LINENO"; then :
14752 ac_cv_search_inet_aton=$ac_res
14754 rm -f core conftest.err conftest.$ac_objext \
14755 conftest$ac_exeext
14756 if ${ac_cv_search_inet_aton+:} false; then :
14757 break
14759 done
14760 if ${ac_cv_search_inet_aton+:} false; then :
14762 else
14763 ac_cv_search_inet_aton=no
14765 rm conftest.$ac_ext
14766 LIBS=$ac_func_search_save_LIBS
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
14769 $as_echo "$ac_cv_search_inet_aton" >&6; }
14770 ac_res=$ac_cv_search_inet_aton
14771 if test "$ac_res" != no; then :
14772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14777 for ac_func in \
14778 getaddrinfo \
14779 getnameinfo \
14780 getnetbyname \
14781 getprotobyname \
14782 getprotobynumber \
14783 getservbyport \
14784 inet_addr \
14785 inet_network \
14786 inet_ntop \
14787 inet_pton \
14788 sendmsg \
14789 socketpair \
14791 do :
14792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14793 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14794 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14795 cat >>confdefs.h <<_ACEOF
14796 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14797 _ACEOF
14800 done
14803 ac_save_LIBS=$LIBS
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14805 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14806 if ${ac_cv_search_clock_gettime+:} false; then :
14807 $as_echo_n "(cached) " >&6
14808 else
14809 ac_func_search_save_LIBS=$LIBS
14810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h. */
14813 /* Override any GCC internal prototype to avoid an error.
14814 Use char because int might match the return type of a GCC
14815 builtin and then its argument prototype would still apply. */
14816 #ifdef __cplusplus
14817 extern "C"
14818 #endif
14819 char clock_gettime ();
14821 main ()
14823 return clock_gettime ();
14825 return 0;
14827 _ACEOF
14828 for ac_lib in '' rt; do
14829 if test -z "$ac_lib"; then
14830 ac_res="none required"
14831 else
14832 ac_res=-l$ac_lib
14833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14835 if ac_fn_c_try_link "$LINENO"; then :
14836 ac_cv_search_clock_gettime=$ac_res
14838 rm -f core conftest.err conftest.$ac_objext \
14839 conftest$ac_exeext
14840 if ${ac_cv_search_clock_gettime+:} false; then :
14841 break
14843 done
14844 if ${ac_cv_search_clock_gettime+:} false; then :
14846 else
14847 ac_cv_search_clock_gettime=no
14849 rm conftest.$ac_ext
14850 LIBS=$ac_func_search_save_LIBS
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14853 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14854 ac_res=$ac_cv_search_clock_gettime
14855 if test "$ac_res" != no; then :
14856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14858 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14860 test "$ac_res" = "none required" || LIBRT="$ac_res"
14864 LIBS=$ac_save_LIBS
14866 LDAPLIBS=""
14868 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
14869 then
14870 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
14872 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
14874 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
14875 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 ac_check_lib_save_LIBS=$LIBS
14879 LIBS="-lldap_r $LIBPTHREAD $LIBS"
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14883 /* Override any GCC internal prototype to avoid an error.
14884 Use char because int might match the return type of a GCC
14885 builtin and then its argument prototype would still apply. */
14886 #ifdef __cplusplus
14887 extern "C"
14888 #endif
14889 char ldap_initialize ();
14891 main ()
14893 return ldap_initialize ();
14895 return 0;
14897 _ACEOF
14898 if ac_fn_c_try_link "$LINENO"; then :
14899 ac_cv_lib_ldap_r_ldap_initialize=yes
14900 else
14901 ac_cv_lib_ldap_r_ldap_initialize=no
14903 rm -f core conftest.err conftest.$ac_objext \
14904 conftest$ac_exeext conftest.$ac_ext
14905 LIBS=$ac_check_lib_save_LIBS
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
14908 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
14909 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
14911 $as_echo_n "checking for ber_init in -llber... " >&6; }
14912 if ${ac_cv_lib_lber_ber_init+:} false; then :
14913 $as_echo_n "(cached) " >&6
14914 else
14915 ac_check_lib_save_LIBS=$LIBS
14916 LIBS="-llber $LIBPTHREAD $LIBS"
14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14920 /* Override any GCC internal prototype to avoid an error.
14921 Use char because int might match the return type of a GCC
14922 builtin and then its argument prototype would still apply. */
14923 #ifdef __cplusplus
14924 extern "C"
14925 #endif
14926 char ber_init ();
14928 main ()
14930 return ber_init ();
14932 return 0;
14934 _ACEOF
14935 if ac_fn_c_try_link "$LINENO"; then :
14936 ac_cv_lib_lber_ber_init=yes
14937 else
14938 ac_cv_lib_lber_ber_init=no
14940 rm -f core conftest.err conftest.$ac_objext \
14941 conftest$ac_exeext conftest.$ac_ext
14942 LIBS=$ac_check_lib_save_LIBS
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
14945 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
14946 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
14948 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
14950 LDAPLIBS="-lldap_r -llber"
14957 ac_wine_check_funcs_save_LIBS="$LIBS"
14958 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
14959 for ac_func in \
14960 ldap_count_references \
14961 ldap_first_reference \
14962 ldap_next_reference \
14963 ldap_parse_reference \
14964 ldap_parse_sort_control \
14965 ldap_parse_sortresponse_control \
14966 ldap_parse_vlv_control \
14967 ldap_parse_vlvresponse_control
14968 do :
14969 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14970 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14971 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14972 cat >>confdefs.h <<_ACEOF
14973 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14974 _ACEOF
14977 done
14979 LIBS="$ac_wine_check_funcs_save_LIBS"
14981 if test "x$LDAPLIBS" = "x"; then :
14982 case "x$with_ldap" in
14983 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
14984 xno) ;;
14985 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
14986 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
14987 esac
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
14991 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
14992 if ${wine_cv_one_arg_mkdir+:} false; then :
14993 $as_echo_n "(cached) " >&6
14994 else
14995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
14997 #include <sys/stat.h>
14999 main ()
15001 mkdir("foo");
15003 return 0;
15005 _ACEOF
15006 if ac_fn_c_try_compile "$LINENO"; then :
15007 wine_cv_one_arg_mkdir=yes
15008 else
15009 wine_cv_one_arg_mkdir=no
15011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
15014 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
15015 if test "$wine_cv_one_arg_mkdir" = "yes"
15016 then
15018 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
15023 $as_echo_n "checking for sched_setaffinity... " >&6; }
15024 if ${wine_cv_have_sched_setaffinity+:} false; then :
15025 $as_echo_n "(cached) " >&6
15026 else
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029 #define _GNU_SOURCE
15030 #include <sched.h>
15032 main ()
15034 sched_setaffinity(0, 0, 0);
15036 return 0;
15038 _ACEOF
15039 if ac_fn_c_try_link "$LINENO"; then :
15040 wine_cv_have_sched_setaffinity=yes
15041 else
15042 wine_cv_have_sched_setaffinity=no
15044 rm -f core conftest.err conftest.$ac_objext \
15045 conftest$ac_exeext conftest.$ac_ext
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
15048 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
15049 if test "$wine_cv_have_sched_setaffinity" = "yes"
15050 then
15052 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
15057 $as_echo_n "checking for fallocate... " >&6; }
15058 if ${wine_cv_have_fallocate+:} false; then :
15059 $as_echo_n "(cached) " >&6
15060 else
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h. */
15063 #define _GNU_SOURCE
15064 #include <fcntl.h>
15066 main ()
15068 fallocate(-1, 0, 0, 0);
15070 return 0;
15072 _ACEOF
15073 if ac_fn_c_try_link "$LINENO"; then :
15074 wine_cv_have_fallocate=yes
15075 else
15076 wine_cv_have_fallocate=no
15078 rm -f core conftest.err conftest.$ac_objext \
15079 conftest$ac_exeext conftest.$ac_ext
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
15082 $as_echo "$wine_cv_have_fallocate" >&6; }
15083 if test "$wine_cv_have_fallocate" = "yes"
15084 then
15086 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15092 $as_echo_n "checking for inline... " >&6; }
15093 if ${ac_cv_c_inline+:} false; then :
15094 $as_echo_n "(cached) " >&6
15095 else
15096 ac_cv_c_inline=no
15097 for ac_kw in inline __inline__ __inline; do
15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h. */
15100 #ifndef __cplusplus
15101 typedef int foo_t;
15102 static $ac_kw foo_t static_foo () {return 0; }
15103 $ac_kw foo_t foo () {return 0; }
15104 #endif
15106 _ACEOF
15107 if ac_fn_c_try_compile "$LINENO"; then :
15108 ac_cv_c_inline=$ac_kw
15110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15111 test "$ac_cv_c_inline" != no && break
15112 done
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15116 $as_echo "$ac_cv_c_inline" >&6; }
15118 case $ac_cv_c_inline in
15119 inline | yes) ;;
15121 case $ac_cv_c_inline in
15122 no) ac_val=;;
15123 *) ac_val=$ac_cv_c_inline;;
15124 esac
15125 cat >>confdefs.h <<_ACEOF
15126 #ifndef __cplusplus
15127 #define inline $ac_val
15128 #endif
15129 _ACEOF
15131 esac
15133 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15134 if test "x$ac_cv_type_mode_t" = xyes; then :
15136 cat >>confdefs.h <<_ACEOF
15137 #define HAVE_MODE_T 1
15138 _ACEOF
15142 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15143 if test "x$ac_cv_type_off_t" = xyes; then :
15145 cat >>confdefs.h <<_ACEOF
15146 #define HAVE_OFF_T 1
15147 _ACEOF
15151 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15152 if test "x$ac_cv_type_pid_t" = xyes; then :
15154 cat >>confdefs.h <<_ACEOF
15155 #define HAVE_PID_T 1
15156 _ACEOF
15160 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15161 if test "x$ac_cv_type_size_t" = xyes; then :
15163 cat >>confdefs.h <<_ACEOF
15164 #define HAVE_SIZE_T 1
15165 _ACEOF
15169 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15170 if test "x$ac_cv_type_ssize_t" = xyes; then :
15172 cat >>confdefs.h <<_ACEOF
15173 #define HAVE_SSIZE_T 1
15174 _ACEOF
15178 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15179 if test "x$ac_cv_type_long_long" = xyes; then :
15181 cat >>confdefs.h <<_ACEOF
15182 #define HAVE_LONG_LONG 1
15183 _ACEOF
15187 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
15188 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15190 cat >>confdefs.h <<_ACEOF
15191 #define HAVE_FSBLKCNT_T 1
15192 _ACEOF
15196 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
15197 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15199 cat >>confdefs.h <<_ACEOF
15200 #define HAVE_FSFILCNT_T 1
15201 _ACEOF
15206 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
15207 #include <signal.h>
15209 if test "x$ac_cv_type_sigset_t" = xyes; then :
15211 cat >>confdefs.h <<_ACEOF
15212 #define HAVE_SIGSET_T 1
15213 _ACEOF
15218 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
15220 if test "x$ac_cv_type_request_sense" = xyes; then :
15222 cat >>confdefs.h <<_ACEOF
15223 #define HAVE_REQUEST_SENSE 1
15224 _ACEOF
15230 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
15231 #ifdef HAVE_SYS_SOCKET_H
15232 #include <sys/socket.h>
15233 #endif
15234 #ifdef HAVE_SYS_SOCKETVAR_H
15235 #include <sys/socketvar.h>
15236 #endif
15237 #ifdef HAVE_NET_ROUTE_H
15238 #include <net/route.h>
15239 #endif
15240 #ifdef HAVE_NETINET_IN_H
15241 #include <netinet/in.h>
15242 #endif
15243 #ifdef HAVE_NETINET_IN_SYSTM_H
15244 #include <netinet/in_systm.h>
15245 #endif
15246 #ifdef HAVE_NETINET_IP_H
15247 #include <netinet/ip.h>
15248 #endif
15249 #ifdef HAVE_NETINET_IN_PCB_H
15250 #include <netinet/in_pcb.h>
15251 #endif
15253 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
15255 cat >>confdefs.h <<_ACEOF
15256 #define HAVE_STRUCT_XINPGEN 1
15257 _ACEOF
15263 ac_fn_c_check_type "$LINENO" "struct r_debug" "ac_cv_type_struct_r_debug" "#ifdef HAVE_LINK_H
15264 #include <link.h>
15265 #endif
15266 #ifdef HAVE_SYS_LINK_H
15267 #include <sys/link.h>
15268 #endif
15270 if test "x$ac_cv_type_struct_r_debug" = xyes; then :
15272 cat >>confdefs.h <<_ACEOF
15273 #define HAVE_STRUCT_R_DEBUG 1
15274 _ACEOF
15278 ac_fn_c_check_type "$LINENO" "struct link_map" "ac_cv_type_struct_link_map" "#ifdef HAVE_LINK_H
15279 #include <link.h>
15280 #endif
15281 #ifdef HAVE_SYS_LINK_H
15282 #include <sys/link.h>
15283 #endif
15285 if test "x$ac_cv_type_struct_link_map" = xyes; then :
15287 cat >>confdefs.h <<_ACEOF
15288 #define HAVE_STRUCT_LINK_MAP 1
15289 _ACEOF
15295 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
15296 #include <linux/input.h>
15297 #endif
15299 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
15301 cat >>confdefs.h <<_ACEOF
15302 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
15303 _ACEOF
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
15310 $as_echo_n "checking for sigaddset... " >&6; }
15311 if ${wine_cv_have_sigaddset+:} false; then :
15312 $as_echo_n "(cached) " >&6
15313 else
15314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15316 #include <signal.h>
15318 main ()
15320 sigset_t set; sigaddset(&set,SIGTERM);
15322 return 0;
15324 _ACEOF
15325 if ac_fn_c_try_link "$LINENO"; then :
15326 wine_cv_have_sigaddset=yes
15327 else
15328 wine_cv_have_sigaddset=no
15330 rm -f core conftest.err conftest.$ac_objext \
15331 conftest$ac_exeext conftest.$ac_ext
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
15334 $as_echo "$wine_cv_have_sigaddset" >&6; }
15335 if test "$wine_cv_have_sigaddset" = "yes"
15336 then
15338 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15344 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
15345 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
15346 $as_echo_n "(cached) " >&6
15347 else
15348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349 /* end confdefs.h. */
15350 #include <netdb.h>
15352 main ()
15355 char *name=0;
15356 struct hostent he;
15357 struct hostent *result;
15358 char *buf=0;
15359 int bufsize=0;
15360 int errnr;
15361 char *addr=0;
15362 int addrlen=0;
15363 int addrtype=0;
15364 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15365 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15368 return 0;
15370 _ACEOF
15371 if ac_fn_c_try_link "$LINENO"; then :
15372 wine_cv_linux_gethostbyname_r_6=yes
15373 else
15374 wine_cv_linux_gethostbyname_r_6=no
15377 rm -f core conftest.err conftest.$ac_objext \
15378 conftest$ac_exeext conftest.$ac_ext
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
15382 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
15383 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15384 then
15386 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
15390 if test "$ac_cv_header_linux_joystick_h" = "yes"
15391 then
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15393 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
15394 if ${wine_cv_linux_joystick_22_api+:} false; then :
15395 $as_echo_n "(cached) " >&6
15396 else
15397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398 /* end confdefs.h. */
15400 #include <sys/ioctl.h>
15401 #include <sys/types.h>
15402 #include <linux/joystick.h>
15404 struct js_event blub;
15405 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15406 #error "no 2.2 header"
15407 #endif
15410 main ()
15412 /*empty*/
15414 return 0;
15416 _ACEOF
15417 if ac_fn_c_try_compile "$LINENO"; then :
15418 wine_cv_linux_joystick_22_api=yes
15419 else
15420 wine_cv_linux_joystick_22_api=no
15422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
15426 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
15427 if test "$wine_cv_linux_joystick_22_api" = "yes"
15428 then
15430 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
15436 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
15437 #ifdef HAVE_SYS_PARAM_H
15438 # include <sys/param.h>
15439 #endif
15440 #ifdef HAVE_SYS_MOUNT_H
15441 # include <sys/mount.h>
15442 #endif
15443 #ifdef HAVE_SYS_VFS_H
15444 # include <sys/vfs.h>
15445 #endif
15446 #ifdef HAVE_SYS_STATFS_H
15447 # include <sys/statfs.h>
15448 #endif
15450 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
15452 cat >>confdefs.h <<_ACEOF
15453 #define HAVE_STRUCT_STATFS_F_BFREE 1
15454 _ACEOF
15458 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
15459 #ifdef HAVE_SYS_PARAM_H
15460 # include <sys/param.h>
15461 #endif
15462 #ifdef HAVE_SYS_MOUNT_H
15463 # include <sys/mount.h>
15464 #endif
15465 #ifdef HAVE_SYS_VFS_H
15466 # include <sys/vfs.h>
15467 #endif
15468 #ifdef HAVE_SYS_STATFS_H
15469 # include <sys/statfs.h>
15470 #endif
15472 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
15474 cat >>confdefs.h <<_ACEOF
15475 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15476 _ACEOF
15480 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
15481 #ifdef HAVE_SYS_PARAM_H
15482 # include <sys/param.h>
15483 #endif
15484 #ifdef HAVE_SYS_MOUNT_H
15485 # include <sys/mount.h>
15486 #endif
15487 #ifdef HAVE_SYS_VFS_H
15488 # include <sys/vfs.h>
15489 #endif
15490 #ifdef HAVE_SYS_STATFS_H
15491 # include <sys/statfs.h>
15492 #endif
15494 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
15496 cat >>confdefs.h <<_ACEOF
15497 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
15498 _ACEOF
15502 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
15503 #ifdef HAVE_SYS_PARAM_H
15504 # include <sys/param.h>
15505 #endif
15506 #ifdef HAVE_SYS_MOUNT_H
15507 # include <sys/mount.h>
15508 #endif
15509 #ifdef HAVE_SYS_VFS_H
15510 # include <sys/vfs.h>
15511 #endif
15512 #ifdef HAVE_SYS_STATFS_H
15513 # include <sys/statfs.h>
15514 #endif
15516 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
15518 cat >>confdefs.h <<_ACEOF
15519 #define HAVE_STRUCT_STATFS_F_FFREE 1
15520 _ACEOF
15524 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
15525 #ifdef HAVE_SYS_PARAM_H
15526 # include <sys/param.h>
15527 #endif
15528 #ifdef HAVE_SYS_MOUNT_H
15529 # include <sys/mount.h>
15530 #endif
15531 #ifdef HAVE_SYS_VFS_H
15532 # include <sys/vfs.h>
15533 #endif
15534 #ifdef HAVE_SYS_STATFS_H
15535 # include <sys/statfs.h>
15536 #endif
15538 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
15540 cat >>confdefs.h <<_ACEOF
15541 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
15542 _ACEOF
15546 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
15547 #ifdef HAVE_SYS_PARAM_H
15548 # include <sys/param.h>
15549 #endif
15550 #ifdef HAVE_SYS_MOUNT_H
15551 # include <sys/mount.h>
15552 #endif
15553 #ifdef HAVE_SYS_VFS_H
15554 # include <sys/vfs.h>
15555 #endif
15556 #ifdef HAVE_SYS_STATFS_H
15557 # include <sys/statfs.h>
15558 #endif
15560 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
15562 cat >>confdefs.h <<_ACEOF
15563 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
15564 _ACEOF
15570 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
15571 #include <sys/statvfs.h>
15572 #endif
15574 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
15576 cat >>confdefs.h <<_ACEOF
15577 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
15578 _ACEOF
15584 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
15585 #include <dirent.h>
15586 #endif
15588 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
15590 cat >>confdefs.h <<_ACEOF
15591 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
15592 _ACEOF
15598 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
15599 #ifdef HAVE_SYS_SOCKET_H
15600 # include <sys/socket.h>
15601 #endif
15602 #ifdef HAVE_SYS_UN_H
15603 # include <sys/un.h>
15604 #endif
15606 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
15608 cat >>confdefs.h <<_ACEOF
15609 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15610 _ACEOF
15614 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15615 #ifdef HAVE_SYS_SOCKET_H
15616 # include <sys/socket.h>
15617 #endif
15618 #ifdef HAVE_SYS_UN_H
15619 # include <sys/un.h>
15620 #endif
15622 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15624 cat >>confdefs.h <<_ACEOF
15625 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15626 _ACEOF
15630 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
15631 #ifdef HAVE_SYS_SOCKET_H
15632 # include <sys/socket.h>
15633 #endif
15634 #ifdef HAVE_SYS_UN_H
15635 # include <sys/un.h>
15636 #endif
15638 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
15640 cat >>confdefs.h <<_ACEOF
15641 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15642 _ACEOF
15648 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
15649 #ifdef HAVE_SCSI_SG_H
15650 #include <scsi/sg.h>
15651 #endif
15653 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
15655 cat >>confdefs.h <<_ACEOF
15656 #define HAVE_SCSIREQ_T_CMD 1
15657 _ACEOF
15661 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>
15662 #ifdef HAVE_SCSI_SG_H
15663 #include <scsi/sg.h>
15664 #endif
15666 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
15668 cat >>confdefs.h <<_ACEOF
15669 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
15670 _ACEOF
15676 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
15678 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
15680 cat >>confdefs.h <<_ACEOF
15681 #define HAVE_SIGINFO_T_SI_FD 1
15682 _ACEOF
15688 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
15689 #ifdef HAVE_SYS_MTIO_H
15690 #include <sys/mtio.h>
15691 #endif
15693 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
15695 cat >>confdefs.h <<_ACEOF
15696 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
15697 _ACEOF
15701 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
15702 #ifdef HAVE_SYS_MTIO_H
15703 #include <sys/mtio.h>
15704 #endif
15706 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
15708 cat >>confdefs.h <<_ACEOF
15709 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
15710 _ACEOF
15714 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
15715 #ifdef HAVE_SYS_MTIO_H
15716 #include <sys/mtio.h>
15717 #endif
15719 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
15721 cat >>confdefs.h <<_ACEOF
15722 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
15723 _ACEOF
15729 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
15730 #include <getopt.h>
15731 #endif
15733 if test "x$ac_cv_member_struct_option_name" = xyes; then :
15735 cat >>confdefs.h <<_ACEOF
15736 #define HAVE_STRUCT_OPTION_NAME 1
15737 _ACEOF
15743 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
15744 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
15746 cat >>confdefs.h <<_ACEOF
15747 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15748 _ACEOF
15752 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15753 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
15755 cat >>confdefs.h <<_ACEOF
15756 #define HAVE_STRUCT_STAT_ST_MTIM 1
15757 _ACEOF
15761 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15762 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
15764 cat >>confdefs.h <<_ACEOF
15765 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
15766 _ACEOF
15770 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
15771 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
15773 cat >>confdefs.h <<_ACEOF
15774 #define HAVE_STRUCT_STAT_ST_CTIM 1
15775 _ACEOF
15779 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
15780 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
15782 cat >>confdefs.h <<_ACEOF
15783 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
15784 _ACEOF
15788 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
15789 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
15791 cat >>confdefs.h <<_ACEOF
15792 #define HAVE_STRUCT_STAT_ST_ATIM 1
15793 _ACEOF
15797 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
15798 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
15800 cat >>confdefs.h <<_ACEOF
15801 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
15802 _ACEOF
15806 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
15807 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
15809 cat >>confdefs.h <<_ACEOF
15810 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
15811 _ACEOF
15815 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
15816 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
15818 cat >>confdefs.h <<_ACEOF
15819 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
15820 _ACEOF
15824 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
15825 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
15827 cat >>confdefs.h <<_ACEOF
15828 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
15829 _ACEOF
15833 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
15834 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
15836 cat >>confdefs.h <<_ACEOF
15837 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
15838 _ACEOF
15842 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
15843 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
15845 cat >>confdefs.h <<_ACEOF
15846 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
15847 _ACEOF
15853 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
15854 #include <sys/types.h>
15855 #endif
15856 #ifdef HAVE_NETINET_IN_H
15857 #include <netinet/in.h>
15858 #endif
15860 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
15862 cat >>confdefs.h <<_ACEOF
15863 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
15864 _ACEOF
15870 ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
15871 #include <resolv.h>
15872 #endif
15874 if test "x$ac_cv_type_struct___res_state" = xyes; then :
15876 cat >>confdefs.h <<_ACEOF
15877 #define HAVE_STRUCT___RES_STATE 1
15878 _ACEOF
15884 ac_fn_c_check_member "$LINENO" "struct __res_state" "_u._ext.nscount6" "ac_cv_member_struct___res_state__u__ext_nscount6" "#ifdef HAVE_RESOLV_H
15885 #include <resolv.h>
15886 #endif
15888 if test "x$ac_cv_member_struct___res_state__u__ext_nscount6" = xyes; then :
15890 cat >>confdefs.h <<_ACEOF
15891 #define HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6 1
15892 _ACEOF
15898 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
15899 #include <sys/types.h>
15900 #endif
15901 #ifdef HAVE_NETINET_IN_H
15902 # include <netinet/in.h>
15903 #endif
15904 #ifdef HAVE_ARPA_NAMESER_H
15905 # include <arpa/nameser.h>
15906 #endif
15908 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
15910 cat >>confdefs.h <<_ACEOF
15911 #define HAVE_NS_MSG__MSG_PTR 1
15912 _ACEOF
15918 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
15919 #include <sys/types.h>
15920 #endif
15921 #ifdef HAVE_NETINET_IP_H
15922 #include <netinet/ip.h>
15923 #endif
15924 #ifdef HAVE_NETINET_IP_ICMP_H
15925 #include <netinet/ip_icmp.h>
15926 #endif
15927 #ifdef HAVE_NETINET_ICMP_VAR_H
15928 #include <netinet/icmp_var.h>
15929 #endif
15931 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
15933 cat >>confdefs.h <<_ACEOF
15934 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
15935 _ACEOF
15941 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
15942 #include <sys/types.h>
15943 #endif
15944 #ifdef HAVE_ALIAS_H
15945 #include <alias.h>
15946 #endif
15947 #ifdef HAVE_SYS_SOCKET_H
15948 #include <sys/socket.h>
15949 #endif
15950 #ifdef HAVE_SYS_SOCKETVAR_H
15951 #include <sys/socketvar.h>
15952 #endif
15953 #ifdef HAVE_SYS_TIMEOUT_H
15954 #include <sys/timeout.h>
15955 #endif
15956 #ifdef HAVE_NETINET_IN_H
15957 #include <netinet/in.h>
15958 #endif
15959 #ifdef HAVE_NETINET_IN_SYSTM_H
15960 #include <netinet/in_systm.h>
15961 #endif
15962 #ifdef HAVE_NETINET_IP_H
15963 #include <netinet/ip.h>
15964 #endif
15965 #ifdef HAVE_NETINET_IP_VAR_H
15966 #include <netinet/ip_var.h>
15967 #endif
15968 #ifdef HAVE_NETINET_IP_ICMP_H
15969 #include <netinet/ip_icmp.h>
15970 #endif
15971 #ifdef HAVE_NETINET_ICMP_VAR_H
15972 #include <netinet/icmp_var.h>
15973 #endif
15975 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
15977 cat >>confdefs.h <<_ACEOF
15978 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
15979 _ACEOF
15985 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
15986 #include <sys/types.h>
15987 #endif
15988 #ifdef HAVE_SYS_SOCKETVAR_H
15989 #include <sys/socketvar.h>
15990 #endif
15991 #ifdef HAVE_NETINET_IN_H
15992 #include <netinet/in.h>
15993 #endif
15994 #ifdef HAVE_NETINET_IP_VAR_H
15995 #include <netinet/ip_var.h>
15996 #endif
15998 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
16000 cat >>confdefs.h <<_ACEOF
16001 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
16002 _ACEOF
16008 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
16009 #include <netinet/ip_var.h>
16010 #endif
16012 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
16014 cat >>confdefs.h <<_ACEOF
16015 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
16016 _ACEOF
16022 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
16023 #include <sys/types.h>
16024 #endif
16025 #ifdef HAVE_SYS_SOCKETVAR_H
16026 #include <sys/socketvar.h>
16027 #endif
16028 #ifdef HAVE_NETINET_IN_H
16029 #include <netinet/in.h>
16030 #endif
16031 #ifdef HAVE_NETINET_TCP_H
16032 #include <netinet/tcp.h>
16033 #endif
16034 #ifdef HAVE_NETINET_TCP_VAR_H
16035 #include <netinet/tcp_var.h>
16036 #endif
16038 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
16040 cat >>confdefs.h <<_ACEOF
16041 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
16042 _ACEOF
16048 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
16049 #include <netinet/tcp_var.h>
16050 #endif
16052 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
16054 cat >>confdefs.h <<_ACEOF
16055 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
16056 _ACEOF
16062 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
16063 #include <sys/types.h>
16064 #endif
16065 #ifdef HAVE_NETINET_IN_H
16066 #include <netinet/in.h>
16067 #endif
16068 #ifdef HAVE_NETINET_IP_VAR_H
16069 #include <netinet/ip_var.h>
16070 #endif
16071 #ifdef HAVE_NETINET_UDP_H
16072 #include <netinet/udp.h>
16073 #endif
16074 #ifdef HAVE_NETINET_UDP_VAR_H
16075 #include <netinet/udp_var.h>
16076 #endif
16078 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
16080 cat >>confdefs.h <<_ACEOF
16081 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
16082 _ACEOF
16088 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
16089 #include <sys/types.h>
16090 #endif
16091 #ifdef HAVE_NET_IF_H
16092 # include <net/if.h>
16093 #endif
16095 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
16097 cat >>confdefs.h <<_ACEOF
16098 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16099 _ACEOF
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16106 $as_echo_n "checking for timezone variable... " >&6; }
16107 if ${ac_cv_have_timezone+:} false; then :
16108 $as_echo_n "(cached) " >&6
16109 else
16110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111 /* end confdefs.h. */
16112 #include <time.h>
16114 main ()
16116 timezone = 1
16118 return 0;
16120 _ACEOF
16121 if ac_fn_c_try_link "$LINENO"; then :
16122 ac_cv_have_timezone="yes"
16123 else
16124 ac_cv_have_timezone="no"
16126 rm -f core conftest.err conftest.$ac_objext \
16127 conftest$ac_exeext conftest.$ac_ext
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
16130 $as_echo "$ac_cv_have_timezone" >&6; }
16131 if test "$ac_cv_have_timezone" = "yes"
16132 then
16134 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
16138 $as_echo_n "checking for daylight variable... " >&6; }
16139 if ${ac_cv_have_daylight+:} false; then :
16140 $as_echo_n "(cached) " >&6
16141 else
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16144 #include <time.h>
16146 main ()
16148 daylight = 1
16150 return 0;
16152 _ACEOF
16153 if ac_fn_c_try_link "$LINENO"; then :
16154 ac_cv_have_daylight="yes"
16155 else
16156 ac_cv_have_daylight="no"
16158 rm -f core conftest.err conftest.$ac_objext \
16159 conftest$ac_exeext conftest.$ac_ext
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
16162 $as_echo "$ac_cv_have_daylight" >&6; }
16163 if test "$ac_cv_have_daylight" = "yes"
16164 then
16166 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16170 ac_save_LIBS="$LIBS"
16171 LIBS="$LIBS -lm"
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
16173 $as_echo_n "checking for isfinite... " >&6; }
16174 if ${ac_cv_have_isfinite+:} false; then :
16175 $as_echo_n "(cached) " >&6
16176 else
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h. */
16179 #define _GNU_SOURCE
16180 #include <math.h>
16182 main ()
16184 float f = 0.0; return isfinite(f)
16186 return 0;
16188 _ACEOF
16189 if ac_fn_c_try_link "$LINENO"; then :
16190 ac_cv_have_isfinite="yes"
16191 else
16192 ac_cv_have_isfinite="no"
16194 rm -f core conftest.err conftest.$ac_objext \
16195 conftest$ac_exeext conftest.$ac_ext
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isfinite" >&5
16198 $as_echo "$ac_cv_have_isfinite" >&6; }
16199 if test "$ac_cv_have_isfinite" = "yes"
16200 then
16202 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16206 ac_save_LIBS="$LIBS"
16207 LIBS="$LIBS -lm"
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16209 $as_echo_n "checking for isinf... " >&6; }
16210 if ${ac_cv_have_isinf+:} false; then :
16211 $as_echo_n "(cached) " >&6
16212 else
16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16215 #include <math.h>
16217 main ()
16219 float f = 0.0; return isinf(f)
16221 return 0;
16223 _ACEOF
16224 if ac_fn_c_try_link "$LINENO"; then :
16225 ac_cv_have_isinf="yes"
16226 else
16227 ac_cv_have_isinf="no"
16229 rm -f core conftest.err conftest.$ac_objext \
16230 conftest$ac_exeext conftest.$ac_ext
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
16233 $as_echo "$ac_cv_have_isinf" >&6; }
16234 if test "$ac_cv_have_isinf" = "yes"
16235 then
16237 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16242 $as_echo_n "checking for isnan... " >&6; }
16243 if ${ac_cv_have_isnan+:} false; then :
16244 $as_echo_n "(cached) " >&6
16245 else
16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247 /* end confdefs.h. */
16248 #include <math.h>
16250 main ()
16252 float f = 0.0; return isnan(f)
16254 return 0;
16256 _ACEOF
16257 if ac_fn_c_try_link "$LINENO"; then :
16258 ac_cv_have_isnan="yes"
16259 else
16260 ac_cv_have_isnan="no"
16262 rm -f core conftest.err conftest.$ac_objext \
16263 conftest$ac_exeext conftest.$ac_ext
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
16266 $as_echo "$ac_cv_have_isnan" >&6; }
16267 if test "$ac_cv_have_isnan" = "yes"
16268 then
16270 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16273 LIBS="$ac_save_LIBS"
16276 case $host_cpu in
16277 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
16278 $as_echo_n "checking whether we need to define __i386__... " >&6; }
16279 if ${ac_cv_cpp_def___i386__+:} false; then :
16280 $as_echo_n "(cached) " >&6
16281 else
16282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16283 /* end confdefs.h. */
16284 #ifndef __i386__
16286 #endif
16287 _ACEOF
16288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16289 $EGREP "yes" >/dev/null 2>&1; then :
16290 ac_cv_cpp_def___i386__=yes
16291 else
16292 ac_cv_cpp_def___i386__=no
16294 rm -f conftest*
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
16298 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
16299 if test $ac_cv_cpp_def___i386__ = yes; then :
16300 CFLAGS="$CFLAGS -D__i386__"
16301 LINTFLAGS="$LINTFLAGS -D__i386__"
16302 fi ;;
16303 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
16304 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
16305 if ${ac_cv_cpp_def___x86_64__+:} false; then :
16306 $as_echo_n "(cached) " >&6
16307 else
16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309 /* end confdefs.h. */
16310 #ifndef __x86_64__
16312 #endif
16313 _ACEOF
16314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16315 $EGREP "yes" >/dev/null 2>&1; then :
16316 ac_cv_cpp_def___x86_64__=yes
16317 else
16318 ac_cv_cpp_def___x86_64__=no
16320 rm -f conftest*
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
16324 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
16325 if test $ac_cv_cpp_def___x86_64__ = yes; then :
16326 CFLAGS="$CFLAGS -D__x86_64__"
16327 LINTFLAGS="$LINTFLAGS -D__x86_64__"
16328 fi ;;
16329 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
16330 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
16331 if ${ac_cv_cpp_def___sparc64__+:} false; then :
16332 $as_echo_n "(cached) " >&6
16333 else
16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335 /* end confdefs.h. */
16336 #ifndef __sparc64__
16338 #endif
16339 _ACEOF
16340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16341 $EGREP "yes" >/dev/null 2>&1; then :
16342 ac_cv_cpp_def___sparc64__=yes
16343 else
16344 ac_cv_cpp_def___sparc64__=no
16346 rm -f conftest*
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
16350 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
16351 if test $ac_cv_cpp_def___sparc64__ = yes; then :
16352 CFLAGS="$CFLAGS -D__sparc64__"
16353 LINTFLAGS="$LINTFLAGS -D__sparc64__"
16354 fi ;;
16355 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
16356 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
16357 if ${ac_cv_cpp_def___sparc__+:} false; then :
16358 $as_echo_n "(cached) " >&6
16359 else
16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h. */
16362 #ifndef __sparc__
16364 #endif
16365 _ACEOF
16366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16367 $EGREP "yes" >/dev/null 2>&1; then :
16368 ac_cv_cpp_def___sparc__=yes
16369 else
16370 ac_cv_cpp_def___sparc__=no
16372 rm -f conftest*
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
16376 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
16377 if test $ac_cv_cpp_def___sparc__ = yes; then :
16378 CFLAGS="$CFLAGS -D__sparc__"
16379 LINTFLAGS="$LINTFLAGS -D__sparc__"
16380 fi ;;
16381 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
16382 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
16383 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
16384 $as_echo_n "(cached) " >&6
16385 else
16386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387 /* end confdefs.h. */
16388 #ifndef __powerpc64__
16390 #endif
16391 _ACEOF
16392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16393 $EGREP "yes" >/dev/null 2>&1; then :
16394 ac_cv_cpp_def___powerpc64__=yes
16395 else
16396 ac_cv_cpp_def___powerpc64__=no
16398 rm -f conftest*
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
16402 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
16403 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
16404 CFLAGS="$CFLAGS -D__powerpc64__"
16405 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
16406 fi ;;
16407 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
16408 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
16409 if ${ac_cv_cpp_def___powerpc__+:} false; then :
16410 $as_echo_n "(cached) " >&6
16411 else
16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413 /* end confdefs.h. */
16414 #ifndef __powerpc__
16416 #endif
16417 _ACEOF
16418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16419 $EGREP "yes" >/dev/null 2>&1; then :
16420 ac_cv_cpp_def___powerpc__=yes
16421 else
16422 ac_cv_cpp_def___powerpc__=no
16424 rm -f conftest*
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
16428 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
16429 if test $ac_cv_cpp_def___powerpc__ = yes; then :
16430 CFLAGS="$CFLAGS -D__powerpc__"
16431 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16432 fi ;;
16433 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
16434 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
16435 if ${ac_cv_cpp_def___aarch64__+:} false; then :
16436 $as_echo_n "(cached) " >&6
16437 else
16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h. */
16440 #ifndef __aarch64__
16442 #endif
16443 _ACEOF
16444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16445 $EGREP "yes" >/dev/null 2>&1; then :
16446 ac_cv_cpp_def___aarch64__=yes
16447 else
16448 ac_cv_cpp_def___aarch64__=no
16450 rm -f conftest*
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
16454 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
16455 if test $ac_cv_cpp_def___aarch64__ = yes; then :
16456 CFLAGS="$CFLAGS -D__aarch64__"
16457 LINTFLAGS="$LINTFLAGS -D__aarch64__"
16458 fi ;;
16459 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
16460 $as_echo_n "checking whether we need to define __arm__... " >&6; }
16461 if ${ac_cv_cpp_def___arm__+:} false; then :
16462 $as_echo_n "(cached) " >&6
16463 else
16464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16466 #ifndef __arm__
16468 #endif
16469 _ACEOF
16470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16471 $EGREP "yes" >/dev/null 2>&1; then :
16472 ac_cv_cpp_def___arm__=yes
16473 else
16474 ac_cv_cpp_def___arm__=no
16476 rm -f conftest*
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
16480 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
16481 if test $ac_cv_cpp_def___arm__ = yes; then :
16482 CFLAGS="$CFLAGS -D__arm__"
16483 LINTFLAGS="$LINTFLAGS -D__arm__"
16484 fi ;;
16485 esac
16487 case $host_vendor in
16488 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
16489 $as_echo_n "checking whether we need to define __sun__... " >&6; }
16490 if ${ac_cv_cpp_def___sun__+:} false; then :
16491 $as_echo_n "(cached) " >&6
16492 else
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16495 #ifndef __sun__
16497 #endif
16498 _ACEOF
16499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16500 $EGREP "yes" >/dev/null 2>&1; then :
16501 ac_cv_cpp_def___sun__=yes
16502 else
16503 ac_cv_cpp_def___sun__=no
16505 rm -f conftest*
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
16509 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
16510 if test $ac_cv_cpp_def___sun__ = yes; then :
16511 CFLAGS="$CFLAGS -D__sun__"
16512 LINTFLAGS="$LINTFLAGS -D__sun__"
16513 fi ;;
16514 esac
16520 ac_config_commands="$ac_config_commands include/stamp-h"
16522 $as_echo_n "creating Makefile rules..." >&6
16525 wine_fn_append_rule "
16526 # Rules automatically generated by configure
16528 .INIT: Makefile
16529 .MAKEFILEDEPS:
16530 all: Makefile
16531 Makefile: $srcdir/Makefile.in $srcdir/Make.vars.in config.status
16532 @./config.status Make.tmp Makefile"
16534 test "$srcdir" = . && wine_fn_append_rule "all: .gitignore
16535 .gitignore: config.status
16536 @./config.status .gitignore"
16538 test -n "$CROSSTARGET" || wine_fn_append_rule "crosstest:
16539 @echo \"crosstest is not supported (mingw not installed?)\" && false"
16541 if test "x$enable_fonts" != xno; then
16542 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
16543 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
16544 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
16545 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
16546 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf
16548 ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
16549 test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
16550 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
16551 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
16552 ac_config_links="$ac_config_links wine:tools/winewrapper"
16553 wine_fn_config_symlink wine
16554 if test "x$enable_win64" != xno; then
16555 ac_config_links="$ac_config_links wine64:tools/winewrapper"
16556 wine_fn_config_symlink wine64
16559 wine_fn_config_makerules Make.rules
16560 MAKE_RULES=Make.rules
16561 ac_config_files="$ac_config_files Make.rules"
16564 wine_fn_config_dll acledit enable_acledit
16565 wine_fn_config_dll aclui enable_aclui implib
16566 wine_fn_config_dll activeds enable_activeds implib
16567 wine_fn_config_dll actxprxy enable_actxprxy clean
16568 wine_fn_config_lib adsiid
16569 wine_fn_config_dll advapi32 enable_advapi32 clean,implib
16570 wine_fn_config_test dlls/advapi32/tests advapi32_test
16571 wine_fn_config_dll advpack enable_advpack implib
16572 wine_fn_config_test dlls/advpack/tests advpack_test
16573 wine_fn_config_dll amstream enable_amstream clean
16574 wine_fn_config_test dlls/amstream/tests amstream_test
16575 wine_fn_config_dll api-ms-win-core-debug-l1-1-1 enable_api_ms_win_core_debug_l1_1_1
16576 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-1 enable_api_ms_win_core_errorhandling_l1_1_1
16577 wine_fn_config_dll api-ms-win-core-interlocked-l1-2-0 enable_api_ms_win_core_interlocked_l1_2_0
16578 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
16579 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
16580 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-1 enable_api_ms_win_core_processthreads_l1_1_1
16581 wine_fn_config_dll api-ms-win-core-profile-l1-1-0 enable_api_ms_win_core_profile_l1_1_0
16582 wine_fn_config_dll api-ms-win-core-string-l1-1-0 enable_api_ms_win_core_string_l1_1_0
16583 wine_fn_config_dll api-ms-win-core-sysinfo-l1-2-0 enable_api_ms_win_core_sysinfo_l1_2_0
16584 wine_fn_config_dll api-ms-win-core-util-l1-1-0 enable_api_ms_win_core_util_l1_1_0
16585 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
16586 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
16587 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
16588 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
16589 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
16590 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
16591 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
16592 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
16593 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
16594 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
16595 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
16596 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
16597 wine_fn_config_dll apphelp enable_apphelp
16598 wine_fn_config_test dlls/apphelp/tests apphelp_test
16599 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
16600 wine_fn_config_dll atl enable_atl clean,implib
16601 wine_fn_config_test dlls/atl/tests atl_test
16602 wine_fn_config_dll atl100 enable_atl100 implib
16603 wine_fn_config_test dlls/atl100/tests atl100_test
16604 wine_fn_config_dll atl110 enable_atl110
16605 wine_fn_config_dll atl80 enable_atl80 implib
16606 wine_fn_config_test dlls/atl80/tests atl80_test
16607 wine_fn_config_dll atl90 enable_atl90
16608 wine_fn_config_dll authz enable_authz
16609 wine_fn_config_dll avicap32 enable_avicap32 implib
16610 wine_fn_config_dll avifil32 enable_avifil32 clean,implib,po
16611 wine_fn_config_test dlls/avifil32/tests avifil32_test
16612 wine_fn_config_dll avifile.dll16 enable_win16
16613 wine_fn_config_dll avrt enable_avrt implib
16614 wine_fn_config_dll bcrypt enable_bcrypt
16615 wine_fn_config_dll browseui enable_browseui clean,po
16616 wine_fn_config_test dlls/browseui/tests browseui_test
16617 wine_fn_config_dll cabinet enable_cabinet implib
16618 wine_fn_config_test dlls/cabinet/tests cabinet_test
16619 wine_fn_config_dll capi2032 enable_capi2032 implib
16620 wine_fn_config_dll cards enable_cards implib
16621 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
16622 wine_fn_config_dll clusapi enable_clusapi implib
16623 wine_fn_config_dll comcat enable_comcat
16624 wine_fn_config_test dlls/comcat/tests comcat_test
16625 wine_fn_config_dll comctl32 enable_comctl32 implib,po
16626 wine_fn_config_test dlls/comctl32/tests comctl32_test
16627 wine_fn_config_dll comdlg32 enable_comdlg32 clean,implib,po
16628 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
16629 wine_fn_config_dll comm.drv16 enable_win16
16630 wine_fn_config_dll commdlg.dll16 enable_win16
16631 wine_fn_config_dll compobj.dll16 enable_win16
16632 wine_fn_config_dll compstui enable_compstui implib
16633 wine_fn_config_dll comsvcs enable_comsvcs implib
16634 wine_fn_config_dll credui enable_credui implib,po
16635 wine_fn_config_test dlls/credui/tests credui_test
16636 wine_fn_config_dll crtdll enable_crtdll implib
16637 wine_fn_config_dll crypt32 enable_crypt32 implib,po
16638 wine_fn_config_test dlls/crypt32/tests crypt32_test
16639 wine_fn_config_dll cryptdlg enable_cryptdlg po
16640 wine_fn_config_dll cryptdll enable_cryptdll implib
16641 wine_fn_config_dll cryptnet enable_cryptnet implib
16642 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
16643 wine_fn_config_dll cryptui enable_cryptui implib,po
16644 wine_fn_config_test dlls/cryptui/tests cryptui_test
16645 wine_fn_config_dll ctapi32 enable_ctapi32
16646 wine_fn_config_dll ctl3d.dll16 enable_win16
16647 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
16648 wine_fn_config_dll ctl3dv2.dll16 enable_win16
16649 wine_fn_config_dll d3d10 enable_d3d10 implib
16650 wine_fn_config_test dlls/d3d10/tests d3d10_test
16651 wine_fn_config_dll d3d10core enable_d3d10core implib
16652 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
16653 wine_fn_config_dll d3d11 enable_d3d11
16654 wine_fn_config_dll d3d8 enable_d3d8 implib
16655 wine_fn_config_test dlls/d3d8/tests d3d8_test
16656 wine_fn_config_dll d3d9 enable_d3d9 implib
16657 wine_fn_config_test dlls/d3d9/tests d3d9_test
16658 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
16659 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
16660 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
16661 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
16662 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
16663 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
16664 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
16665 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
16666 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
16667 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
16668 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
16669 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
16670 wine_fn_config_dll d3dim enable_d3dim implib
16671 wine_fn_config_dll d3drm enable_d3drm implib
16672 wine_fn_config_test dlls/d3drm/tests d3drm_test
16673 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
16674 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
16675 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
16676 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
16677 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
16678 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
16679 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
16680 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
16681 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
16682 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
16683 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
16684 wine_fn_config_dll d3dx11_42 enable_d3dx11_42
16685 wine_fn_config_dll d3dx11_43 enable_d3dx11_43
16686 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
16687 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
16688 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
16689 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
16690 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
16691 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
16692 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
16693 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
16694 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
16695 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
16696 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
16697 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
16698 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
16699 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
16700 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
16701 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
16702 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
16703 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
16704 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
16705 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
16706 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
16707 wine_fn_config_dll d3dxof enable_d3dxof clean,implib
16708 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
16709 wine_fn_config_dll dbgeng enable_dbgeng implib
16710 wine_fn_config_dll dbghelp enable_dbghelp implib
16711 wine_fn_config_dll dciman32 enable_dciman32 implib
16712 wine_fn_config_dll ddeml.dll16 enable_win16
16713 wine_fn_config_dll ddraw enable_ddraw clean,implib
16714 wine_fn_config_test dlls/ddraw/tests ddraw_test
16715 wine_fn_config_dll ddrawex enable_ddrawex clean
16716 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
16717 wine_fn_config_dll devenum enable_devenum clean,po
16718 wine_fn_config_test dlls/devenum/tests devenum_test
16719 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
16720 wine_fn_config_dll difxapi enable_difxapi
16721 wine_fn_config_dll dinput enable_dinput clean,implib,po,staticimplib
16722 wine_fn_config_test dlls/dinput/tests dinput_test
16723 wine_fn_config_dll dinput8 enable_dinput8 clean,implib
16724 wine_fn_config_test dlls/dinput8/tests dinput8_test
16725 wine_fn_config_dll dispdib.dll16 enable_win16
16726 wine_fn_config_dll dispex enable_dispex clean
16727 wine_fn_config_test dlls/dispex/tests dispex_test
16728 wine_fn_config_dll display.drv16 enable_win16
16729 wine_fn_config_dll dmband enable_dmband clean
16730 wine_fn_config_test dlls/dmband/tests dmband_test
16731 wine_fn_config_dll dmcompos enable_dmcompos clean
16732 wine_fn_config_dll dmime enable_dmime clean
16733 wine_fn_config_test dlls/dmime/tests dmime_test
16734 wine_fn_config_dll dmloader enable_dmloader clean
16735 wine_fn_config_test dlls/dmloader/tests dmloader_test
16736 wine_fn_config_dll dmscript enable_dmscript clean
16737 wine_fn_config_test dlls/dmscript/tests dmscript_test
16738 wine_fn_config_dll dmstyle enable_dmstyle clean
16739 wine_fn_config_dll dmsynth enable_dmsynth clean
16740 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
16741 wine_fn_config_dll dmusic enable_dmusic clean
16742 wine_fn_config_test dlls/dmusic/tests dmusic_test
16743 wine_fn_config_dll dmusic32 enable_dmusic32 implib
16744 wine_fn_config_dll dnsapi enable_dnsapi implib
16745 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
16746 wine_fn_config_dll dplay enable_dplay implib
16747 wine_fn_config_dll dplayx enable_dplayx clean,implib
16748 wine_fn_config_test dlls/dplayx/tests dplayx_test
16749 wine_fn_config_dll dpnaddr enable_dpnaddr
16750 wine_fn_config_dll dpnet enable_dpnet clean,implib
16751 wine_fn_config_test dlls/dpnet/tests dpnet_test
16752 wine_fn_config_dll dpnhpast enable_dpnhpast
16753 wine_fn_config_dll dpnlobby enable_dpnlobby
16754 wine_fn_config_dll dpwsockx enable_dpwsockx
16755 wine_fn_config_dll drmclien enable_drmclien
16756 wine_fn_config_dll dsound enable_dsound clean,implib
16757 wine_fn_config_test dlls/dsound/tests dsound_test
16758 wine_fn_config_dll dssenh enable_dssenh
16759 wine_fn_config_test dlls/dssenh/tests dssenh_test
16760 wine_fn_config_dll dswave enable_dswave clean
16761 wine_fn_config_dll dwmapi enable_dwmapi implib
16762 wine_fn_config_dll dwrite enable_dwrite implib
16763 wine_fn_config_test dlls/dwrite/tests dwrite_test
16764 wine_fn_config_dll dxdiagn enable_dxdiagn clean,po
16765 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
16766 wine_fn_config_lib dxerr8
16767 wine_fn_config_lib dxerr9
16768 wine_fn_config_dll dxgi enable_dxgi implib
16769 wine_fn_config_test dlls/dxgi/tests dxgi_test
16770 wine_fn_config_lib dxguid
16771 wine_fn_config_dll explorerframe enable_explorerframe clean
16772 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
16773 wine_fn_config_dll faultrep enable_faultrep implib
16774 wine_fn_config_test dlls/faultrep/tests faultrep_test
16775 wine_fn_config_dll fltlib enable_fltlib
16776 wine_fn_config_dll fusion enable_fusion
16777 wine_fn_config_test dlls/fusion/tests fusion_test
16778 wine_fn_config_dll fwpuclnt enable_fwpuclnt
16779 wine_fn_config_dll gameux enable_gameux clean
16780 wine_fn_config_test dlls/gameux/tests gameux_test
16781 wine_fn_config_dll gdi.exe16 enable_win16
16782 wine_fn_config_dll gdi32 enable_gdi32 clean,implib,po
16783 wine_fn_config_test dlls/gdi32/tests gdi32_test
16784 wine_fn_config_dll gdiplus enable_gdiplus implib
16785 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
16786 wine_fn_config_dll glu32 enable_glu32 implib
16787 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
16788 wine_fn_config_dll gpkcsp enable_gpkcsp
16789 wine_fn_config_dll hal enable_hal
16790 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
16791 wine_fn_config_dll hid enable_hid implib
16792 wine_fn_config_dll hlink enable_hlink clean,implib
16793 wine_fn_config_test dlls/hlink/tests hlink_test
16794 wine_fn_config_dll hnetcfg enable_hnetcfg clean
16795 wine_fn_config_dll httpapi enable_httpapi
16796 wine_fn_config_dll iccvid enable_iccvid po
16797 wine_fn_config_dll icmp enable_icmp
16798 wine_fn_config_dll ieframe enable_ieframe clean,implib,po
16799 wine_fn_config_test dlls/ieframe/tests ieframe_test
16800 wine_fn_config_dll ifsmgr.vxd enable_win16
16801 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
16802 wine_fn_config_dll imagehlp enable_imagehlp implib
16803 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
16804 wine_fn_config_dll imm.dll16 enable_win16
16805 wine_fn_config_dll imm32 enable_imm32 implib
16806 wine_fn_config_test dlls/imm32/tests imm32_test
16807 wine_fn_config_dll inetcomm enable_inetcomm clean,implib
16808 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
16809 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16810 wine_fn_config_dll inetmib1 enable_inetmib1
16811 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16812 wine_fn_config_dll infosoft enable_infosoft clean
16813 wine_fn_config_test dlls/infosoft/tests infosoft_test
16814 wine_fn_config_dll initpki enable_initpki
16815 wine_fn_config_dll inkobj enable_inkobj
16816 wine_fn_config_dll inseng enable_inseng clean
16817 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16818 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16819 wine_fn_config_dll itircl enable_itircl
16820 wine_fn_config_dll itss enable_itss clean
16821 wine_fn_config_test dlls/itss/tests itss_test
16822 wine_fn_config_dll joy.cpl enable_joy_cpl po
16823 wine_fn_config_dll jscript enable_jscript clean,po
16824 wine_fn_config_test dlls/jscript/tests jscript_test
16825 wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
16826 wine_fn_config_test dlls/kernel32/tests kernel32_test
16827 wine_fn_config_dll keyboard.drv16 enable_win16
16828 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16829 wine_fn_config_dll ktmw32 enable_ktmw32
16830 wine_fn_config_dll loadperf enable_loadperf implib
16831 wine_fn_config_dll localspl enable_localspl po
16832 wine_fn_config_test dlls/localspl/tests localspl_test
16833 wine_fn_config_dll localui enable_localui po
16834 wine_fn_config_test dlls/localui/tests localui_test
16835 wine_fn_config_dll lz32 enable_lz32 implib
16836 wine_fn_config_test dlls/lz32/tests lz32_test
16837 wine_fn_config_dll lzexpand.dll16 enable_win16
16838 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16839 wine_fn_config_test dlls/mapi32/tests mapi32_test
16840 wine_fn_config_dll mapistub enable_mapistub
16841 wine_fn_config_dll mciavi32 enable_mciavi32
16842 wine_fn_config_dll mcicda enable_mcicda
16843 wine_fn_config_dll mciqtz32 enable_mciqtz32
16844 wine_fn_config_dll mciseq enable_mciseq
16845 wine_fn_config_dll mciwave enable_mciwave
16846 wine_fn_config_dll mgmtapi enable_mgmtapi
16847 wine_fn_config_dll midimap enable_midimap
16848 wine_fn_config_dll mlang enable_mlang clean,implib
16849 wine_fn_config_test dlls/mlang/tests mlang_test
16850 wine_fn_config_dll mmcndmgr enable_mmcndmgr clean
16851 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16852 wine_fn_config_dll mmdevapi enable_mmdevapi clean
16853 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16854 wine_fn_config_dll mmdevldr.vxd enable_win16
16855 wine_fn_config_dll mmsystem.dll16 enable_win16
16856 wine_fn_config_dll monodebg.vxd enable_win16
16857 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16858 wine_fn_config_dll mouse.drv16 enable_win16
16859 wine_fn_config_dll mpr enable_mpr implib,po
16860 wine_fn_config_test dlls/mpr/tests mpr_test
16861 wine_fn_config_dll mprapi enable_mprapi implib
16862 wine_fn_config_dll msacm.dll16 enable_win16
16863 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16864 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16865 wine_fn_config_test dlls/msacm32/tests msacm32_test
16866 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16867 wine_fn_config_dll mscat32 enable_mscat32
16868 wine_fn_config_dll mscms enable_mscms implib
16869 wine_fn_config_test dlls/mscms/tests mscms_test
16870 wine_fn_config_dll mscoree enable_mscoree clean
16871 wine_fn_config_test dlls/mscoree/tests mscoree_test
16872 wine_fn_config_dll msctf enable_msctf clean
16873 wine_fn_config_test dlls/msctf/tests msctf_test
16874 wine_fn_config_dll msdaps enable_msdaps clean
16875 wine_fn_config_dll msdmo enable_msdmo implib
16876 wine_fn_config_dll msftedit enable_msftedit
16877 wine_fn_config_dll msg711.acm enable_msg711_acm
16878 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16879 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb clean
16880 wine_fn_config_dll mshtml enable_mshtml clean,implib,po
16881 wine_fn_config_test dlls/mshtml/tests mshtml_test clean
16882 wine_fn_config_dll msi enable_msi clean,implib,po
16883 wine_fn_config_test dlls/msi/tests msi_test
16884 wine_fn_config_dll msident enable_msident clean
16885 wine_fn_config_dll msimg32 enable_msimg32 implib
16886 wine_fn_config_dll msimsg enable_msimsg
16887 wine_fn_config_dll msimtf enable_msimtf clean
16888 wine_fn_config_dll msisip enable_msisip
16889 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16890 wine_fn_config_dll msls31 enable_msls31
16891 wine_fn_config_dll msnet32 enable_msnet32
16892 wine_fn_config_dll mspatcha enable_mspatcha
16893 wine_fn_config_dll msrle32 enable_msrle32 po
16894 wine_fn_config_test dlls/msrle32/tests msrle32_test
16895 wine_fn_config_dll mssign32 enable_mssign32
16896 wine_fn_config_dll mssip32 enable_mssip32
16897 wine_fn_config_dll mstask enable_mstask clean
16898 wine_fn_config_test dlls/mstask/tests mstask_test
16899 wine_fn_config_dll msvcirt enable_msvcirt
16900 wine_fn_config_dll msvcm80 enable_msvcm80
16901 wine_fn_config_dll msvcm90 enable_msvcm90
16902 wine_fn_config_dll msvcp100 enable_msvcp100
16903 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16904 wine_fn_config_dll msvcp110 enable_msvcp110
16905 wine_fn_config_dll msvcp60 enable_msvcp60
16906 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16907 wine_fn_config_dll msvcp70 enable_msvcp70
16908 wine_fn_config_dll msvcp71 enable_msvcp71
16909 wine_fn_config_dll msvcp80 enable_msvcp80
16910 wine_fn_config_dll msvcp90 enable_msvcp90
16911 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16912 wine_fn_config_dll msvcr100 enable_msvcr100 implib
16913 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16914 wine_fn_config_dll msvcr110 enable_msvcr110 implib
16915 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16916 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16917 wine_fn_config_dll msvcr80 enable_msvcr80 implib
16918 wine_fn_config_dll msvcr90 enable_msvcr90 implib
16919 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16920 wine_fn_config_dll msvcrt enable_msvcrt implib
16921 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16922 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16923 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16924 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16925 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16926 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16927 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16928 wine_fn_config_dll msvidc32 enable_msvidc32 po
16929 wine_fn_config_dll msvideo.dll16 enable_win16
16930 wine_fn_config_dll mswsock enable_mswsock implib
16931 wine_fn_config_dll msxml enable_msxml clean
16932 wine_fn_config_dll msxml2 enable_msxml2 clean
16933 wine_fn_config_dll msxml3 enable_msxml3 clean
16934 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
16935 wine_fn_config_dll msxml4 enable_msxml4 clean
16936 wine_fn_config_dll msxml6 enable_msxml6 clean
16937 wine_fn_config_dll nddeapi enable_nddeapi implib
16938 wine_fn_config_dll netapi32 enable_netapi32 implib
16939 wine_fn_config_test dlls/netapi32/tests netapi32_test
16940 wine_fn_config_dll netcfgx enable_netcfgx
16941 wine_fn_config_dll newdev enable_newdev implib
16942 wine_fn_config_dll normaliz enable_normaliz implib
16943 wine_fn_config_dll npmshtml enable_npmshtml
16944 wine_fn_config_dll ntdll enable_ntdll implib
16945 wine_fn_config_test dlls/ntdll/tests ntdll_test
16946 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16947 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16948 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16949 wine_fn_config_dll ntprint enable_ntprint
16950 wine_fn_config_test dlls/ntprint/tests ntprint_test
16951 wine_fn_config_dll objsel enable_objsel clean
16952 wine_fn_config_dll odbc32 enable_odbc32 implib
16953 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16954 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16955 wine_fn_config_dll odbccu32 enable_odbccu32
16956 wine_fn_config_dll ole2.dll16 enable_win16
16957 wine_fn_config_dll ole2conv.dll16 enable_win16
16958 wine_fn_config_dll ole2disp.dll16 enable_win16
16959 wine_fn_config_dll ole2nls.dll16 enable_win16
16960 wine_fn_config_dll ole2prox.dll16 enable_win16
16961 wine_fn_config_dll ole2thk.dll16 enable_win16
16962 wine_fn_config_dll ole32 enable_ole32 clean,implib
16963 wine_fn_config_test dlls/ole32/tests ole32_test
16964 wine_fn_config_dll oleacc enable_oleacc clean,implib,po
16965 wine_fn_config_test dlls/oleacc/tests oleacc_test
16966 wine_fn_config_dll oleaut32 enable_oleaut32 clean,implib,po
16967 wine_fn_config_test dlls/oleaut32/tests oleaut32_test clean
16968 wine_fn_config_dll olecli.dll16 enable_win16
16969 wine_fn_config_dll olecli32 enable_olecli32 implib
16970 wine_fn_config_dll oledb32 enable_oledb32 clean
16971 wine_fn_config_test dlls/oledb32/tests oledb32_test clean
16972 wine_fn_config_dll oledlg enable_oledlg implib,po
16973 wine_fn_config_dll olepro32 enable_olepro32 implib
16974 wine_fn_config_dll olesvr.dll16 enable_win16
16975 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16976 wine_fn_config_dll olethk32 enable_olethk32
16977 wine_fn_config_dll openal32 enable_openal32
16978 wine_fn_config_dll opencl enable_opencl
16979 wine_fn_config_dll opengl32 enable_opengl32 implib
16980 wine_fn_config_test dlls/opengl32/tests opengl32_test
16981 wine_fn_config_dll pdh enable_pdh implib
16982 wine_fn_config_test dlls/pdh/tests pdh_test
16983 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16984 wine_fn_config_dll pidgen enable_pidgen
16985 wine_fn_config_dll powrprof enable_powrprof implib
16986 wine_fn_config_dll printui enable_printui
16987 wine_fn_config_dll propsys enable_propsys clean,implib
16988 wine_fn_config_test dlls/propsys/tests propsys_test
16989 wine_fn_config_dll psapi enable_psapi implib
16990 wine_fn_config_test dlls/psapi/tests psapi_test
16991 wine_fn_config_dll pstorec enable_pstorec clean
16992 wine_fn_config_dll qcap enable_qcap
16993 wine_fn_config_test dlls/qcap/tests qcap_test
16994 wine_fn_config_dll qedit enable_qedit clean
16995 wine_fn_config_test dlls/qedit/tests qedit_test
16996 wine_fn_config_dll qmgr enable_qmgr clean
16997 wine_fn_config_test dlls/qmgr/tests qmgr_test
16998 wine_fn_config_dll qmgrprxy enable_qmgrprxy clean
16999 wine_fn_config_dll quartz enable_quartz clean,implib
17000 wine_fn_config_test dlls/quartz/tests quartz_test clean
17001 wine_fn_config_dll query enable_query
17002 wine_fn_config_dll rasapi16.dll16 enable_win16
17003 wine_fn_config_dll rasapi32 enable_rasapi32 implib
17004 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
17005 wine_fn_config_dll rasdlg enable_rasdlg implib
17006 wine_fn_config_dll regapi enable_regapi
17007 wine_fn_config_dll resutils enable_resutils implib
17008 wine_fn_config_dll riched20 enable_riched20 implib
17009 wine_fn_config_test dlls/riched20/tests riched20_test
17010 wine_fn_config_dll riched32 enable_riched32
17011 wine_fn_config_test dlls/riched32/tests riched32_test
17012 wine_fn_config_dll rpcrt4 enable_rpcrt4 clean,implib
17013 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test clean
17014 wine_fn_config_dll rsabase enable_rsabase
17015 wine_fn_config_dll rsaenh enable_rsaenh implib
17016 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
17017 wine_fn_config_dll rstrtmgr enable_rstrtmgr
17018 wine_fn_config_dll rtutils enable_rtutils implib
17019 wine_fn_config_dll samlib enable_samlib
17020 wine_fn_config_dll sane.ds enable_sane_ds po
17021 wine_fn_config_dll scarddlg enable_scarddlg
17022 wine_fn_config_dll sccbase enable_sccbase
17023 wine_fn_config_dll schannel enable_schannel
17024 wine_fn_config_test dlls/schannel/tests schannel_test
17025 wine_fn_config_dll scrrun enable_scrrun clean
17026 wine_fn_config_test dlls/scrrun/tests scrrun_test clean
17027 wine_fn_config_dll scsiport.sys enable_scsiport_sys
17028 wine_fn_config_dll secur32 enable_secur32 implib
17029 wine_fn_config_test dlls/secur32/tests secur32_test
17030 wine_fn_config_dll security enable_security
17031 wine_fn_config_dll sensapi enable_sensapi implib
17032 wine_fn_config_dll serialui enable_serialui implib,po
17033 wine_fn_config_test dlls/serialui/tests serialui_test
17034 wine_fn_config_dll setupapi enable_setupapi implib,po
17035 wine_fn_config_test dlls/setupapi/tests setupapi_test
17036 wine_fn_config_dll setupx.dll16 enable_win16
17037 wine_fn_config_dll sfc enable_sfc implib
17038 wine_fn_config_dll sfc_os enable_sfc_os implib
17039 wine_fn_config_dll shdoclc enable_shdoclc po
17040 wine_fn_config_dll shdocvw enable_shdocvw clean,implib
17041 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
17042 wine_fn_config_dll shell.dll16 enable_win16
17043 wine_fn_config_dll shell32 enable_shell32 clean,implib,po
17044 wine_fn_config_test dlls/shell32/tests shell32_test
17045 wine_fn_config_dll shfolder enable_shfolder implib
17046 wine_fn_config_dll shlwapi enable_shlwapi implib,po
17047 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
17048 wine_fn_config_dll slbcsp enable_slbcsp
17049 wine_fn_config_dll slc enable_slc implib
17050 wine_fn_config_dll snmpapi enable_snmpapi implib
17051 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
17052 wine_fn_config_dll softpub enable_softpub
17053 wine_fn_config_dll sound.drv16 enable_win16
17054 wine_fn_config_dll spoolss enable_spoolss implib
17055 wine_fn_config_test dlls/spoolss/tests spoolss_test
17056 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb clean
17057 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb clean
17058 wine_fn_config_dll sti enable_sti clean,implib
17059 wine_fn_config_test dlls/sti/tests sti_test
17060 wine_fn_config_dll storage.dll16 enable_win16
17061 wine_fn_config_dll stress.dll16 enable_win16
17062 wine_fn_config_lib strmbase
17063 wine_fn_config_lib strmiids
17064 wine_fn_config_dll svrapi enable_svrapi
17065 wine_fn_config_dll sxs enable_sxs implib
17066 wine_fn_config_test dlls/sxs/tests sxs_test
17067 wine_fn_config_dll system.drv16 enable_win16
17068 wine_fn_config_dll t2embed enable_t2embed
17069 wine_fn_config_dll tapi32 enable_tapi32 implib
17070 wine_fn_config_dll taskschd enable_taskschd clean
17071 wine_fn_config_dll toolhelp.dll16 enable_win16
17072 wine_fn_config_dll traffic enable_traffic
17073 wine_fn_config_dll twain.dll16 enable_win16
17074 wine_fn_config_dll twain_32 enable_twain_32
17075 wine_fn_config_test dlls/twain_32/tests twain_32_test
17076 wine_fn_config_dll typelib.dll16 enable_win16
17077 wine_fn_config_dll unicows enable_unicows implib
17078 wine_fn_config_dll updspapi enable_updspapi
17079 wine_fn_config_dll url enable_url implib
17080 wine_fn_config_dll urlmon enable_urlmon clean,implib,po
17081 wine_fn_config_test dlls/urlmon/tests urlmon_test
17082 wine_fn_config_dll usbd.sys enable_usbd_sys implib
17083 wine_fn_config_dll user.exe16 enable_win16
17084 wine_fn_config_dll user32 enable_user32 clean,implib,po
17085 wine_fn_config_test dlls/user32/tests user32_test
17086 wine_fn_config_dll userenv enable_userenv implib
17087 wine_fn_config_test dlls/userenv/tests userenv_test
17088 wine_fn_config_dll usp10 enable_usp10 implib
17089 wine_fn_config_test dlls/usp10/tests usp10_test
17090 wine_fn_config_lib uuid
17091 wine_fn_config_dll uxtheme enable_uxtheme implib
17092 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
17093 wine_fn_config_dll vbscript enable_vbscript clean
17094 wine_fn_config_test dlls/vbscript/tests vbscript_test clean
17095 wine_fn_config_dll vcomp enable_vcomp
17096 wine_fn_config_dll vcomp100 enable_vcomp100
17097 wine_fn_config_dll vcomp90 enable_vcomp90
17098 wine_fn_config_dll vdhcp.vxd enable_win16
17099 wine_fn_config_dll vdmdbg enable_vdmdbg implib
17100 wine_fn_config_dll ver.dll16 enable_win16
17101 wine_fn_config_dll version enable_version implib
17102 wine_fn_config_test dlls/version/tests version_test
17103 wine_fn_config_dll vmm.vxd enable_win16
17104 wine_fn_config_dll vnbt.vxd enable_win16
17105 wine_fn_config_dll vnetbios.vxd enable_win16
17106 wine_fn_config_dll vtdapi.vxd enable_win16
17107 wine_fn_config_dll vwin32.vxd enable_win16
17108 wine_fn_config_dll w32skrnl enable_win16
17109 wine_fn_config_dll w32sys.dll16 enable_win16
17110 wine_fn_config_dll wbemdisp enable_wbemdisp clean
17111 wine_fn_config_dll wbemprox enable_wbemprox clean
17112 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
17113 wine_fn_config_dll webservices enable_webservices implib
17114 wine_fn_config_dll wer enable_wer implib
17115 wine_fn_config_test dlls/wer/tests wer_test
17116 wine_fn_config_dll wevtapi enable_wevtapi
17117 wine_fn_config_dll wiaservc enable_wiaservc clean
17118 wine_fn_config_dll win32s16.dll16 enable_win16
17119 wine_fn_config_dll win87em.dll16 enable_win16
17120 wine_fn_config_dll winaspi.dll16 enable_win16
17121 wine_fn_config_dll windebug.dll16 enable_win16
17122 wine_fn_config_dll windowscodecs enable_windowscodecs clean,implib
17123 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
17124 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
17125 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
17126 wine_fn_config_dll winealsa.drv enable_winealsa_drv
17127 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
17128 wine_fn_config_lib winecrt0
17129 wine_fn_config_dll wined3d enable_wined3d implib
17130 wine_fn_config_dll winegstreamer enable_winegstreamer
17131 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
17132 wine_fn_config_dll winemac.drv enable_winemac_drv
17133 wine_fn_config_dll winemapi enable_winemapi
17134 wine_fn_config_dll winemp3.acm enable_winemp3_acm
17135 wine_fn_config_dll wineoss.drv enable_wineoss_drv
17136 wine_fn_config_dll wineps.drv enable_wineps_drv clean,po
17137 wine_fn_config_dll wineps16.drv16 enable_win16
17138 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
17139 wine_fn_config_dll winex11.drv enable_winex11_drv
17140 wine_fn_config_dll wing.dll16 enable_win16
17141 wine_fn_config_dll wing32 enable_wing32
17142 wine_fn_config_dll winhttp enable_winhttp clean,implib
17143 wine_fn_config_test dlls/winhttp/tests winhttp_test
17144 wine_fn_config_dll wininet enable_wininet implib,po
17145 wine_fn_config_test dlls/wininet/tests wininet_test
17146 wine_fn_config_dll winmm enable_winmm implib,po
17147 wine_fn_config_test dlls/winmm/tests winmm_test
17148 wine_fn_config_dll winnls.dll16 enable_win16
17149 wine_fn_config_dll winnls32 enable_winnls32 implib
17150 wine_fn_config_dll winscard enable_winscard implib
17151 wine_fn_config_dll winsock.dll16 enable_win16
17152 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
17153 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
17154 wine_fn_config_dll winsta enable_winsta
17155 wine_fn_config_dll wintab.dll16 enable_win16
17156 wine_fn_config_dll wintab32 enable_wintab32 implib
17157 wine_fn_config_test dlls/wintab32/tests wintab32_test
17158 wine_fn_config_dll wintrust enable_wintrust implib
17159 wine_fn_config_test dlls/wintrust/tests wintrust_test
17160 wine_fn_config_dll wlanapi enable_wlanapi
17161 wine_fn_config_dll wldap32 enable_wldap32 implib,po
17162 wine_fn_config_test dlls/wldap32/tests wldap32_test
17163 wine_fn_config_dll wmi enable_wmi
17164 wine_fn_config_dll wmiutils enable_wmiutils clean
17165 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
17166 wine_fn_config_dll wmvcore enable_wmvcore
17167 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
17168 wine_fn_config_dll wow32 enable_win16 implib
17169 wine_fn_config_dll ws2_32 enable_ws2_32 implib
17170 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
17171 wine_fn_config_dll wshom.ocx enable_wshom_ocx clean
17172 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test clean
17173 wine_fn_config_dll wsnmp32 enable_wsnmp32 implib
17174 wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
17175 wine_fn_config_dll wsock32 enable_wsock32 implib
17176 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
17177 wine_fn_config_dll wuapi enable_wuapi clean
17178 wine_fn_config_dll wuaueng enable_wuaueng
17179 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
17180 wine_fn_config_dll xinput1_1 enable_xinput1_1
17181 wine_fn_config_dll xinput1_2 enable_xinput1_2
17182 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
17183 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
17184 wine_fn_config_dll xinput1_4 enable_xinput1_4
17185 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
17186 wine_fn_config_dll xmllite enable_xmllite
17187 wine_fn_config_test dlls/xmllite/tests xmllite_test
17188 wine_fn_config_dll xolehlp enable_xolehlp
17189 wine_fn_config_dll xpsprint enable_xpsprint
17190 wine_fn_config_dll xpssvcs enable_xpssvcs
17191 wine_fn_config_makefile documentation enable_documentation clean
17192 wine_fn_config_makefile fonts enable_fonts clean,install-lib
17193 wine_fn_config_makefile include enable_include clean,install-dev
17194 wine_fn_config_makefile libs/port enable_libs_port
17195 wine_fn_config_makefile libs/wine enable_libs_wine clean,install-dev,install-lib
17196 wine_fn_config_makefile libs/wpp enable_libs_wpp
17197 wine_fn_config_makefile loader enable_loader clean,install-lib,manpage
17198 wine_fn_config_program arp enable_arp install
17199 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
17200 wine_fn_config_program attrib enable_attrib install,po
17201 wine_fn_config_program cabarc enable_cabarc install
17202 wine_fn_config_program cacls enable_cacls install
17203 wine_fn_config_program clock enable_clock install,po
17204 wine_fn_config_program cmd enable_cmd install,po
17205 wine_fn_config_test programs/cmd/tests cmd.exe_test
17206 wine_fn_config_program conhost enable_conhost install
17207 wine_fn_config_program control enable_control install
17208 wine_fn_config_program cscript enable_cscript install
17209 wine_fn_config_program dxdiag enable_dxdiag install,po
17210 wine_fn_config_program eject enable_eject install
17211 wine_fn_config_program expand enable_expand install
17212 wine_fn_config_program explorer enable_explorer install,po
17213 wine_fn_config_program extrac32 enable_extrac32 install
17214 wine_fn_config_program findstr enable_findstr install
17215 wine_fn_config_program hh enable_hh install
17216 wine_fn_config_program hostname enable_hostname install,po
17217 wine_fn_config_program icinfo enable_icinfo install
17218 wine_fn_config_program iexplore enable_iexplore install
17219 wine_fn_config_program ipconfig enable_ipconfig install,po
17220 wine_fn_config_program lodctr enable_lodctr install
17221 wine_fn_config_program mofcomp enable_mofcomp install
17222 wine_fn_config_program mshta enable_mshta install
17223 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
17224 wine_fn_config_program net enable_net install,po
17225 wine_fn_config_program netsh enable_netsh install
17226 wine_fn_config_program netstat enable_netstat install,po
17227 wine_fn_config_program ngen enable_ngen install
17228 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
17229 wine_fn_config_program oleview enable_oleview install,po
17230 wine_fn_config_program ping enable_ping install
17231 wine_fn_config_program plugplay enable_plugplay install
17232 wine_fn_config_program presentationfontcache enable_presentationfontcache install
17233 wine_fn_config_program progman enable_progman install,po
17234 wine_fn_config_program reg enable_reg install,po
17235 wine_fn_config_program regasm enable_regasm install
17236 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
17237 wine_fn_config_test programs/regedit/tests regedit.exe_test
17238 wine_fn_config_program regsvcs enable_regsvcs install
17239 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
17240 wine_fn_config_program rpcss enable_rpcss clean,install
17241 wine_fn_config_program rundll.exe16 enable_win16 install
17242 wine_fn_config_program rundll32 enable_rundll32 install
17243 wine_fn_config_program sc enable_sc install
17244 wine_fn_config_program schtasks enable_schtasks install
17245 wine_fn_config_program secedit enable_secedit install
17246 wine_fn_config_program servicemodelreg enable_servicemodelreg install
17247 wine_fn_config_program services enable_services clean,install
17248 wine_fn_config_test programs/services/tests services.exe_test
17249 wine_fn_config_program spoolsv enable_spoolsv install
17250 wine_fn_config_program start enable_start install,po
17251 wine_fn_config_program svchost enable_svchost install
17252 wine_fn_config_program taskkill enable_taskkill install,po
17253 wine_fn_config_program tasklist enable_tasklist install
17254 wine_fn_config_program taskmgr enable_taskmgr install,po
17255 wine_fn_config_program termsv enable_termsv install
17256 wine_fn_config_program uninstaller enable_uninstaller install,po
17257 wine_fn_config_program unlodctr enable_unlodctr install
17258 wine_fn_config_program view enable_view install,po
17259 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
17260 wine_fn_config_program winebrowser enable_winebrowser install
17261 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
17262 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
17263 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
17264 wine_fn_config_program winedevice enable_winedevice install
17265 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
17266 wine_fn_config_program winemenubuilder enable_winemenubuilder install
17267 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
17268 wine_fn_config_program winemsibuilder enable_winemsibuilder install
17269 wine_fn_config_program winepath enable_winepath install,installbin,manpage
17270 wine_fn_config_program winetest enable_winetest clean
17271 wine_fn_config_program winevdm enable_win16 install
17272 wine_fn_config_program winhelp.exe16 enable_win16 install
17273 wine_fn_config_program winhlp32 enable_winhlp32 install,po
17274 wine_fn_config_program winoldap.mod16 enable_win16 install
17275 wine_fn_config_program winver enable_winver install
17276 wine_fn_config_program wmic enable_wmic install,po
17277 wine_fn_config_program wordpad enable_wordpad install,po
17278 wine_fn_config_program write enable_write install,po
17279 wine_fn_config_program wscript enable_wscript clean,install
17280 wine_fn_config_test programs/wscript/tests wscript.exe_test
17281 wine_fn_config_program wusa enable_wusa install
17282 wine_fn_config_program xcopy enable_xcopy install,po
17283 wine_fn_config_test programs/xcopy/tests xcopy.exe_test
17284 wine_fn_config_makefile server enable_server clean,install-lib,manpage
17285 wine_fn_config_tool tools clean,install-dev,install-lib,manpage
17286 wine_fn_config_tool tools/widl clean,install-dev,manpage
17287 wine_fn_config_tool tools/winebuild clean,install-dev,manpage
17288 wine_fn_config_tool tools/winedump clean,install-dev,manpage
17289 wine_fn_config_tool tools/winegcc clean,install-dev,manpage
17290 wine_fn_config_tool tools/wmc clean,install-dev,manpage
17291 wine_fn_config_tool tools/wrc clean,install-dev,manpage
17293 LINGUAS="\
17294 ar \
17295 bg \
17296 ca \
17297 cs \
17298 da \
17299 de \
17300 el \
17301 en \
17302 en_US \
17303 eo \
17304 es \
17305 fa \
17306 fi \
17307 fr \
17308 he \
17309 hi \
17310 hr \
17311 hu \
17312 it \
17313 ja \
17314 ko \
17315 lt \
17316 ml \
17317 nb_NO \
17318 nl \
17319 or \
17320 pa \
17321 pl \
17322 pt_BR \
17323 pt_PT \
17324 rm \
17325 ro \
17326 ru \
17327 sk \
17328 sl \
17329 sr_RS@cyrillic \
17330 sr_RS@latin \
17331 sv \
17332 te \
17333 th \
17334 tr \
17335 uk \
17336 wa \
17337 zh_CN \
17338 zh_TW"
17343 wine_fn_ignore_file ".gitignore"
17344 wine_fn_ignore_file "Makefile"
17345 wine_fn_ignore_file "TAGS"
17346 wine_fn_ignore_file "tags"
17347 wine_fn_ignore_file "autom4te.cache"
17348 wine_fn_ignore_file "config.cache"
17349 wine_fn_ignore_file "config.log"
17350 wine_fn_ignore_file "config.status"
17351 wine_fn_ignore_file "configure.lineno"
17352 wine_fn_ignore_file "include/config.h"
17353 wine_fn_ignore_file "include/stamp-h"
17354 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine"
17356 ac_config_commands="$ac_config_commands Makefile"
17359 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
17363 if test "x$enable_maintainer_mode" = xyes
17364 then
17365 wine_fn_append_rule "configure: configure.ac aclocal.m4
17366 autoconf --warnings=all
17367 include/config.h.in: include/stamp-h.in
17368 include/stamp-h.in: configure.ac aclocal.m4
17369 autoheader --warnings=all
17370 @echo timestamp > \$@"
17373 if test "x$with_gettextpo" = xyes
17374 then
17375 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
17376 wine_fn_append_rule "ALL_POT_FILES =$ALL_POT_FILES
17377 \$(LINGUAS:%=po/%.po): po/wine.pot
17378 msgmerge --previous -q \$@ po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
17379 po/wine.pot: \$(ALL_POT_FILES)
17380 msgcat -o \$@ \$(ALL_POT_FILES)"
17383 if test "$MSGFMT" != false
17384 then
17385 PORCFLAGS="--po-dir=\$(top_builddir)/po"
17387 wine_fn_append_rule "__builddeps__: \$(ALL_MO_FILES)
17388 clean::
17389 \$(RM) \$(ALL_MO_FILES)"
17391 posrc="po"
17392 test "$srcdir" = . || posrc="$srcdir/po"
17393 for i in $LINGUAS
17395 wine_fn_ignore_file "po/$i.mo"
17396 wine_fn_append_rule "po/$i.mo: $posrc/$i.po
17397 \$(MSGFMT) -o \$@ $posrc/$i.po"
17398 done
17399 else
17400 LINGUAS=
17403 if test "x$enable_tools" != xno
17404 then
17405 ac_config_commands="$ac_config_commands tools"
17407 wine_fn_ignore_file "tools/makedep$ac_exeext"
17408 wine_fn_append_rule "tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h
17409 \$(CC) -Iinclude -I$srcdir/include -D__WINESRC__ \$(EXTRACFLAGS) \$(CPPFLAGS) \$(CFLAGS) -o \$@ $srcdir/tools/makedep.c \$(LDFLAGS)
17410 clean:: __clean__
17411 \$(RM) tools/makedep$ac_exeext"
17412 else
17413 wine_fn_append_rule "\$(MAKEDEP):
17414 @echo \"You need to run make in $TOOLSDIR first\" && false"
17417 if test -n "$with_wine64"
17418 then
17419 wine_fn_append_rule "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
17420 fonts server tools:
17421 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
17422 $with_wine64/loader/wine:
17423 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
17424 $with_wine64/loader/wine-preloader:
17425 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
17426 clean::
17427 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
17428 else
17429 as_fn_append LOADER_RULES "
17430 all: wine.inf
17432 install install-lib:: wine.inf install-man-pages
17433 \$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
17434 \$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17436 uninstall::
17437 \$(RM) \$(DESTDIR)\$(datadir)/wine/wine.inf \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17441 if test "$srcdir" = .
17442 then
17443 ac_config_commands="$ac_config_commands .gitignore"
17447 $as_echo " done" >&6
17448 cat >confcache <<\_ACEOF
17449 # This file is a shell script that caches the results of configure
17450 # tests run on this system so they can be shared between configure
17451 # scripts and configure runs, see configure's option --config-cache.
17452 # It is not useful on other systems. If it contains results you don't
17453 # want to keep, you may remove or edit it.
17455 # config.status only pays attention to the cache file if you give it
17456 # the --recheck option to rerun configure.
17458 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17460 # following values.
17462 _ACEOF
17464 # The following way of writing the cache mishandles newlines in values,
17465 # but we know of no workaround that is simple, portable, and efficient.
17466 # So, we kill variables containing newlines.
17467 # Ultrix sh set writes to stderr and can't be redirected directly,
17468 # and sets the high bit in the cache file unless we assign to the vars.
17470 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17471 eval ac_val=\$$ac_var
17472 case $ac_val in #(
17473 *${as_nl}*)
17474 case $ac_var in #(
17475 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17476 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17477 esac
17478 case $ac_var in #(
17479 _ | IFS | as_nl) ;; #(
17480 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17481 *) { eval $ac_var=; unset $ac_var;} ;;
17482 esac ;;
17483 esac
17484 done
17486 (set) 2>&1 |
17487 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17488 *${as_nl}ac_space=\ *)
17489 # `set' does not quote correctly, so add quotes: double-quote
17490 # substitution turns \\\\ into \\, and sed turns \\ into \.
17491 sed -n \
17492 "s/'/'\\\\''/g;
17493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17494 ;; #(
17496 # `set' quotes correctly as required by POSIX, so do not add quotes.
17497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17499 esac |
17500 sort
17502 sed '
17503 /^ac_cv_env_/b end
17504 t clear
17505 :clear
17506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17507 t end
17508 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17509 :end' >>confcache
17510 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17511 if test -w "$cache_file"; then
17512 if test "x$cache_file" != "x/dev/null"; then
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17514 $as_echo "$as_me: updating cache $cache_file" >&6;}
17515 if test ! -f "$cache_file" || test -h "$cache_file"; then
17516 cat confcache >"$cache_file"
17517 else
17518 case $cache_file in #(
17519 */* | ?:*)
17520 mv -f confcache "$cache_file"$$ &&
17521 mv -f "$cache_file"$$ "$cache_file" ;; #(
17523 mv -f confcache "$cache_file" ;;
17524 esac
17527 else
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17529 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17532 rm -f confcache
17534 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17535 # Let make expand exec_prefix.
17536 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17538 DEFS=-DHAVE_CONFIG_H
17540 ac_libobjs=
17541 ac_ltlibobjs=
17543 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17544 # 1. Remove the extension, and $U if already installed.
17545 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17546 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17547 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17548 # will be set to the directory where LIBOBJS objects are built.
17549 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17550 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17551 done
17552 LIBOBJS=$ac_libobjs
17554 LTLIBOBJS=$ac_ltlibobjs
17558 : "${CONFIG_STATUS=./config.status}"
17559 ac_write_fail=0
17560 ac_clean_files_save=$ac_clean_files
17561 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17563 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17564 as_write_fail=0
17565 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17566 #! $SHELL
17567 # Generated by $as_me.
17568 # Run this file to recreate the current configuration.
17569 # Compiler output produced by configure, useful for debugging
17570 # configure, is in config.log if it exists.
17572 debug=false
17573 ac_cs_recheck=false
17574 ac_cs_silent=false
17576 SHELL=\${CONFIG_SHELL-$SHELL}
17577 export SHELL
17578 _ASEOF
17579 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17580 ## -------------------- ##
17581 ## M4sh Initialization. ##
17582 ## -------------------- ##
17584 # Be more Bourne compatible
17585 DUALCASE=1; export DUALCASE # for MKS sh
17586 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17587 emulate sh
17588 NULLCMD=:
17589 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17590 # is contrary to our usage. Disable this feature.
17591 alias -g '${1+"$@"}'='"$@"'
17592 setopt NO_GLOB_SUBST
17593 else
17594 case `(set -o) 2>/dev/null` in #(
17595 *posix*) :
17596 set -o posix ;; #(
17597 *) :
17599 esac
17603 as_nl='
17605 export as_nl
17606 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17607 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17608 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17609 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17610 # Prefer a ksh shell builtin over an external printf program on Solaris,
17611 # but without wasting forks for bash or zsh.
17612 if test -z "$BASH_VERSION$ZSH_VERSION" \
17613 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17614 as_echo='print -r --'
17615 as_echo_n='print -rn --'
17616 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17617 as_echo='printf %s\n'
17618 as_echo_n='printf %s'
17619 else
17620 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17621 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17622 as_echo_n='/usr/ucb/echo -n'
17623 else
17624 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17625 as_echo_n_body='eval
17626 arg=$1;
17627 case $arg in #(
17628 *"$as_nl"*)
17629 expr "X$arg" : "X\\(.*\\)$as_nl";
17630 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17631 esac;
17632 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17634 export as_echo_n_body
17635 as_echo_n='sh -c $as_echo_n_body as_echo'
17637 export as_echo_body
17638 as_echo='sh -c $as_echo_body as_echo'
17641 # The user is always right.
17642 if test "${PATH_SEPARATOR+set}" != set; then
17643 PATH_SEPARATOR=:
17644 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17645 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17646 PATH_SEPARATOR=';'
17651 # IFS
17652 # We need space, tab and new line, in precisely that order. Quoting is
17653 # there to prevent editors from complaining about space-tab.
17654 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17655 # splitting by setting IFS to empty value.)
17656 IFS=" "" $as_nl"
17658 # Find who we are. Look in the path if we contain no directory separator.
17659 as_myself=
17660 case $0 in #((
17661 *[\\/]* ) as_myself=$0 ;;
17662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17663 for as_dir in $PATH
17665 IFS=$as_save_IFS
17666 test -z "$as_dir" && as_dir=.
17667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17668 done
17669 IFS=$as_save_IFS
17672 esac
17673 # We did not find ourselves, most probably we were run as `sh COMMAND'
17674 # in which case we are not to be found in the path.
17675 if test "x$as_myself" = x; then
17676 as_myself=$0
17678 if test ! -f "$as_myself"; then
17679 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17680 exit 1
17683 # Unset variables that we do not need and which cause bugs (e.g. in
17684 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17685 # suppresses any "Segmentation fault" message there. '((' could
17686 # trigger a bug in pdksh 5.2.14.
17687 for as_var in BASH_ENV ENV MAIL MAILPATH
17688 do eval test x\${$as_var+set} = xset \
17689 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17690 done
17691 PS1='$ '
17692 PS2='> '
17693 PS4='+ '
17695 # NLS nuisances.
17696 LC_ALL=C
17697 export LC_ALL
17698 LANGUAGE=C
17699 export LANGUAGE
17701 # CDPATH.
17702 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17705 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17706 # ----------------------------------------
17707 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17708 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17709 # script with STATUS, using 1 if that was 0.
17710 as_fn_error ()
17712 as_status=$1; test $as_status -eq 0 && as_status=1
17713 if test "$4"; then
17714 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17715 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17717 $as_echo "$as_me: error: $2" >&2
17718 as_fn_exit $as_status
17719 } # as_fn_error
17722 # as_fn_set_status STATUS
17723 # -----------------------
17724 # Set $? to STATUS, without forking.
17725 as_fn_set_status ()
17727 return $1
17728 } # as_fn_set_status
17730 # as_fn_exit STATUS
17731 # -----------------
17732 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17733 as_fn_exit ()
17735 set +e
17736 as_fn_set_status $1
17737 exit $1
17738 } # as_fn_exit
17740 # as_fn_unset VAR
17741 # ---------------
17742 # Portably unset VAR.
17743 as_fn_unset ()
17745 { eval $1=; unset $1;}
17747 as_unset=as_fn_unset
17748 # as_fn_append VAR VALUE
17749 # ----------------------
17750 # Append the text in VALUE to the end of the definition contained in VAR. Take
17751 # advantage of any shell optimizations that allow amortized linear growth over
17752 # repeated appends, instead of the typical quadratic growth present in naive
17753 # implementations.
17754 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17755 eval 'as_fn_append ()
17757 eval $1+=\$2
17759 else
17760 as_fn_append ()
17762 eval $1=\$$1\$2
17764 fi # as_fn_append
17766 # as_fn_arith ARG...
17767 # ------------------
17768 # Perform arithmetic evaluation on the ARGs, and store the result in the
17769 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17770 # must be portable across $(()) and expr.
17771 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17772 eval 'as_fn_arith ()
17774 as_val=$(( $* ))
17776 else
17777 as_fn_arith ()
17779 as_val=`expr "$@" || test $? -eq 1`
17781 fi # as_fn_arith
17784 if expr a : '\(a\)' >/dev/null 2>&1 &&
17785 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17786 as_expr=expr
17787 else
17788 as_expr=false
17791 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17792 as_basename=basename
17793 else
17794 as_basename=false
17797 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17798 as_dirname=dirname
17799 else
17800 as_dirname=false
17803 as_me=`$as_basename -- "$0" ||
17804 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17805 X"$0" : 'X\(//\)$' \| \
17806 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17807 $as_echo X/"$0" |
17808 sed '/^.*\/\([^/][^/]*\)\/*$/{
17809 s//\1/
17812 /^X\/\(\/\/\)$/{
17813 s//\1/
17816 /^X\/\(\/\).*/{
17817 s//\1/
17820 s/.*/./; q'`
17822 # Avoid depending upon Character Ranges.
17823 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17824 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17825 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17826 as_cr_digits='0123456789'
17827 as_cr_alnum=$as_cr_Letters$as_cr_digits
17829 ECHO_C= ECHO_N= ECHO_T=
17830 case `echo -n x` in #(((((
17831 -n*)
17832 case `echo 'xy\c'` in
17833 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17834 xy) ECHO_C='\c';;
17835 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17836 ECHO_T=' ';;
17837 esac;;
17839 ECHO_N='-n';;
17840 esac
17842 rm -f conf$$ conf$$.exe conf$$.file
17843 if test -d conf$$.dir; then
17844 rm -f conf$$.dir/conf$$.file
17845 else
17846 rm -f conf$$.dir
17847 mkdir conf$$.dir 2>/dev/null
17849 if (echo >conf$$.file) 2>/dev/null; then
17850 if ln -s conf$$.file conf$$ 2>/dev/null; then
17851 as_ln_s='ln -s'
17852 # ... but there are two gotchas:
17853 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17854 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17855 # In both cases, we have to default to `cp -pR'.
17856 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17857 as_ln_s='cp -pR'
17858 elif ln conf$$.file conf$$ 2>/dev/null; then
17859 as_ln_s=ln
17860 else
17861 as_ln_s='cp -pR'
17863 else
17864 as_ln_s='cp -pR'
17866 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17867 rmdir conf$$.dir 2>/dev/null
17870 # as_fn_mkdir_p
17871 # -------------
17872 # Create "$as_dir" as a directory, including parents if necessary.
17873 as_fn_mkdir_p ()
17876 case $as_dir in #(
17877 -*) as_dir=./$as_dir;;
17878 esac
17879 test -d "$as_dir" || eval $as_mkdir_p || {
17880 as_dirs=
17881 while :; do
17882 case $as_dir in #(
17883 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17884 *) as_qdir=$as_dir;;
17885 esac
17886 as_dirs="'$as_qdir' $as_dirs"
17887 as_dir=`$as_dirname -- "$as_dir" ||
17888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17889 X"$as_dir" : 'X\(//\)[^/]' \| \
17890 X"$as_dir" : 'X\(//\)$' \| \
17891 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17892 $as_echo X"$as_dir" |
17893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17894 s//\1/
17897 /^X\(\/\/\)[^/].*/{
17898 s//\1/
17901 /^X\(\/\/\)$/{
17902 s//\1/
17905 /^X\(\/\).*/{
17906 s//\1/
17909 s/.*/./; q'`
17910 test -d "$as_dir" && break
17911 done
17912 test -z "$as_dirs" || eval "mkdir $as_dirs"
17913 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17916 } # as_fn_mkdir_p
17917 if mkdir -p . 2>/dev/null; then
17918 as_mkdir_p='mkdir -p "$as_dir"'
17919 else
17920 test -d ./-p && rmdir ./-p
17921 as_mkdir_p=false
17925 # as_fn_executable_p FILE
17926 # -----------------------
17927 # Test if FILE is an executable regular file.
17928 as_fn_executable_p ()
17930 test -f "$1" && test -x "$1"
17931 } # as_fn_executable_p
17932 as_test_x='test -x'
17933 as_executable_p=as_fn_executable_p
17935 # Sed expression to map a string onto a valid CPP name.
17936 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17938 # Sed expression to map a string onto a valid variable name.
17939 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17942 exec 6>&1
17943 ## ----------------------------------- ##
17944 ## Main body of $CONFIG_STATUS script. ##
17945 ## ----------------------------------- ##
17946 _ASEOF
17947 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17950 # Save the log message, to keep $0 and so on meaningful, and to
17951 # report actual input values of CONFIG_FILES etc. instead of their
17952 # values after options handling.
17953 ac_log="
17954 This file was extended by Wine $as_me 1.7.10, which was
17955 generated by GNU Autoconf 2.69. Invocation command line was
17957 CONFIG_FILES = $CONFIG_FILES
17958 CONFIG_HEADERS = $CONFIG_HEADERS
17959 CONFIG_LINKS = $CONFIG_LINKS
17960 CONFIG_COMMANDS = $CONFIG_COMMANDS
17961 $ $0 $@
17963 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17966 _ACEOF
17968 case $ac_config_files in *"
17969 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17970 esac
17972 case $ac_config_headers in *"
17973 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17974 esac
17977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17978 # Files that config.status was made for.
17979 config_files="$ac_config_files"
17980 config_headers="$ac_config_headers"
17981 config_links="$ac_config_links"
17982 config_commands="$ac_config_commands"
17984 _ACEOF
17986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17987 ac_cs_usage="\
17988 \`$as_me' instantiates files and other configuration actions
17989 from templates according to the current configuration. Unless the files
17990 and actions are specified as TAGs, all are instantiated by default.
17992 Usage: $0 [OPTION]... [TAG]...
17994 -h, --help print this help, then exit
17995 -V, --version print version number and configuration settings, then exit
17996 --config print configuration, then exit
17997 -q, --quiet, --silent
17998 do not print progress messages
17999 -d, --debug don't remove temporary files
18000 --recheck update $as_me by reconfiguring in the same conditions
18001 --file=FILE[:TEMPLATE]
18002 instantiate the configuration file FILE
18003 --header=FILE[:TEMPLATE]
18004 instantiate the configuration header FILE
18006 Configuration files:
18007 $config_files
18009 Configuration headers:
18010 $config_headers
18012 Configuration links:
18013 $config_links
18015 Configuration commands:
18016 $config_commands
18018 Report bugs to <wine-devel@winehq.org>.
18019 Wine home page: <http://www.winehq.org>."
18021 _ACEOF
18022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18023 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18024 ac_cs_version="\\
18025 Wine config.status 1.7.10
18026 configured by $0, generated by GNU Autoconf 2.69,
18027 with options \\"\$ac_cs_config\\"
18029 Copyright (C) 2012 Free Software Foundation, Inc.
18030 This config.status script is free software; the Free Software Foundation
18031 gives unlimited permission to copy, distribute and modify it."
18033 ac_pwd='$ac_pwd'
18034 srcdir='$srcdir'
18035 MKDIR_P='$MKDIR_P'
18036 test -n "\$AWK" || AWK=awk
18037 _ACEOF
18039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18040 # The default lists apply if the user does not specify any file.
18041 ac_need_defaults=:
18042 while test $# != 0
18044 case $1 in
18045 --*=?*)
18046 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18047 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18048 ac_shift=:
18050 --*=)
18051 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18052 ac_optarg=
18053 ac_shift=:
18056 ac_option=$1
18057 ac_optarg=$2
18058 ac_shift=shift
18060 esac
18062 case $ac_option in
18063 # Handling of the options.
18064 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18065 ac_cs_recheck=: ;;
18066 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18067 $as_echo "$ac_cs_version"; exit ;;
18068 --config | --confi | --conf | --con | --co | --c )
18069 $as_echo "$ac_cs_config"; exit ;;
18070 --debug | --debu | --deb | --de | --d | -d )
18071 debug=: ;;
18072 --file | --fil | --fi | --f )
18073 $ac_shift
18074 case $ac_optarg in
18075 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18076 '') as_fn_error $? "missing file argument" ;;
18077 esac
18078 as_fn_append CONFIG_FILES " '$ac_optarg'"
18079 ac_need_defaults=false;;
18080 --header | --heade | --head | --hea )
18081 $ac_shift
18082 case $ac_optarg in
18083 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18084 esac
18085 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18086 ac_need_defaults=false;;
18087 --he | --h)
18088 # Conflict between --help and --header
18089 as_fn_error $? "ambiguous option: \`$1'
18090 Try \`$0 --help' for more information.";;
18091 --help | --hel | -h )
18092 $as_echo "$ac_cs_usage"; exit ;;
18093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18094 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18095 ac_cs_silent=: ;;
18097 # This is an error.
18098 -*) as_fn_error $? "unrecognized option: \`$1'
18099 Try \`$0 --help' for more information." ;;
18101 *) as_fn_append ac_config_targets " $1"
18102 ac_need_defaults=false ;;
18104 esac
18105 shift
18106 done
18108 ac_configure_extra_args=
18110 if $ac_cs_silent; then
18111 exec 6>/dev/null
18112 ac_configure_extra_args="$ac_configure_extra_args --silent"
18115 _ACEOF
18116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18117 if \$ac_cs_recheck; then
18118 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18119 shift
18120 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18121 CONFIG_SHELL='$SHELL'
18122 export CONFIG_SHELL
18123 exec "\$@"
18126 _ACEOF
18127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18128 exec 5>>config.log
18130 echo
18131 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18132 ## Running $as_me. ##
18133 _ASBOX
18134 $as_echo "$ac_log"
18135 } >&5
18137 _ACEOF
18138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18140 # INIT-COMMANDS
18142 wine_fn_output_makefile ()
18144 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
18145 `cat $wine_rules_file`
18146 _WINE_EOF
18147 as_fn_error $? "could not create Makefile" "$LINENO" 5
18149 wine_fn_output_gitignore ()
18151 sort <<\_WINE_EOF >\$tmp/gitignore && mv -f \$tmp/gitignore \$1 && return
18152 $GITIGNORE
18153 _WINE_EOF
18154 as_fn_error $? "could not create .gitignore" "$LINENO" 5
18157 _ACEOF
18159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18161 # Handling of arguments.
18162 for ac_config_target in $ac_config_targets
18164 case $ac_config_target in
18165 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18166 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
18167 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
18168 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
18169 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
18170 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
18171 "loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
18172 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
18173 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
18174 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
18175 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
18176 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18177 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
18178 "tools") CONFIG_COMMANDS="$CONFIG_COMMANDS tools" ;;
18179 ".gitignore") CONFIG_COMMANDS="$CONFIG_COMMANDS .gitignore" ;;
18181 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18182 esac
18183 done
18186 # If the user did not use the arguments to specify the items to instantiate,
18187 # then the envvar interface is used. Set only those that are not.
18188 # We use the long form for the default assignment because of an extremely
18189 # bizarre bug on SunOS 4.1.3.
18190 if $ac_need_defaults; then
18191 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18192 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18193 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18194 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18197 # Have a temporary directory for convenience. Make it in the build tree
18198 # simply because there is no reason against having it here, and in addition,
18199 # creating and moving files from /tmp can sometimes cause problems.
18200 # Hook for its removal unless debugging.
18201 # Note that there is a small window in which the directory will not be cleaned:
18202 # after its creation but before its name has been assigned to `$tmp'.
18203 $debug ||
18205 tmp= ac_tmp=
18206 trap 'exit_status=$?
18207 : "${ac_tmp:=$tmp}"
18208 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18210 trap 'as_fn_exit 1' 1 2 13 15
18212 # Create a (secure) tmp directory for tmp files.
18215 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18216 test -d "$tmp"
18217 } ||
18219 tmp=./conf$$-$RANDOM
18220 (umask 077 && mkdir "$tmp")
18221 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18222 ac_tmp=$tmp
18224 # Set up the scripts for CONFIG_FILES section.
18225 # No need to generate them if there are no CONFIG_FILES.
18226 # This happens for instance with `./config.status config.h'.
18227 if test -n "$CONFIG_FILES"; then
18229 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18230 ac_cs_awk_getline=:
18231 ac_cs_awk_pipe_init=
18232 ac_cs_awk_read_file='
18233 while ((getline aline < (F[key])) > 0)
18234 print(aline)
18235 close(F[key])'
18236 ac_cs_awk_pipe_fini=
18237 else
18238 ac_cs_awk_getline=false
18239 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18240 ac_cs_awk_read_file='
18241 print "|#_!!_#|"
18242 print "cat " F[key] " &&"
18243 '$ac_cs_awk_pipe_init
18244 # The final `:' finishes the AND list.
18245 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18247 ac_cr=`echo X | tr X '\015'`
18248 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18249 # But we know of no other shell where ac_cr would be empty at this
18250 # point, so we can use a bashism as a fallback.
18251 if test "x$ac_cr" = x; then
18252 eval ac_cr=\$\'\\r\'
18254 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18255 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18256 ac_cs_awk_cr='\\r'
18257 else
18258 ac_cs_awk_cr=$ac_cr
18261 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18262 _ACEOF
18264 # Create commands to substitute file output variables.
18266 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18267 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18268 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18269 echo "_ACAWK" &&
18270 echo "_ACEOF"
18271 } >conf$$files.sh &&
18272 . ./conf$$files.sh ||
18273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18274 rm -f conf$$files.sh
18277 echo "cat >conf$$subs.awk <<_ACEOF" &&
18278 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18279 echo "_ACEOF"
18280 } >conf$$subs.sh ||
18281 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18282 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18283 ac_delim='%!_!# '
18284 for ac_last_try in false false false false false :; do
18285 . ./conf$$subs.sh ||
18286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18288 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18289 if test $ac_delim_n = $ac_delim_num; then
18290 break
18291 elif $ac_last_try; then
18292 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18293 else
18294 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18296 done
18297 rm -f conf$$subs.sh
18299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18300 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18301 _ACEOF
18302 sed -n '
18304 s/^/S["/; s/!.*/"]=/
18307 s/^[^!]*!//
18308 :repl
18309 t repl
18310 s/'"$ac_delim"'$//
18311 t delim
18314 s/\(.\{148\}\)..*/\1/
18315 t more1
18316 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18319 b repl
18320 :more1
18321 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18324 s/.\{148\}//
18325 t nl
18326 :delim
18328 s/\(.\{148\}\)..*/\1/
18329 t more2
18330 s/["\\]/\\&/g; s/^/"/; s/$/"/
18333 :more2
18334 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18337 s/.\{148\}//
18338 t delim
18339 ' <conf$$subs.awk | sed '
18340 /^[^""]/{
18342 s/\n//
18344 ' >>$CONFIG_STATUS || ac_write_fail=1
18345 rm -f conf$$subs.awk
18346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18347 _ACAWK
18348 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18349 for (key in S) S_is_set[key] = 1
18350 FS = "\a"
18351 \$ac_cs_awk_pipe_init
18354 line = $ 0
18355 nfields = split(line, field, "@")
18356 substed = 0
18357 len = length(field[1])
18358 for (i = 2; i < nfields; i++) {
18359 key = field[i]
18360 keylen = length(key)
18361 if (S_is_set[key]) {
18362 value = S[key]
18363 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18364 len += length(value) + length(field[++i])
18365 substed = 1
18366 } else
18367 len += 1 + keylen
18369 if (nfields == 3 && !substed) {
18370 key = field[2]
18371 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18372 \$ac_cs_awk_read_file
18373 next
18376 print line
18378 \$ac_cs_awk_pipe_fini
18379 _ACAWK
18380 _ACEOF
18381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18382 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18383 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18384 else
18386 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18387 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18388 _ACEOF
18390 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18391 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18392 # trailing colons and then remove the whole line if VPATH becomes empty
18393 # (actually we leave an empty line to preserve line numbers).
18394 if test "x$srcdir" = x.; then
18395 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18397 s///
18398 s/^/:/
18399 s/[ ]*$/:/
18400 s/:\$(srcdir):/:/g
18401 s/:\${srcdir}:/:/g
18402 s/:@srcdir@:/:/g
18403 s/^:*//
18404 s/:*$//
18406 s/\(=[ ]*\).*/\1/
18408 s/\n//
18409 s/^[^=]*=[ ]*$//
18413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18414 fi # test -n "$CONFIG_FILES"
18416 # Set up the scripts for CONFIG_HEADERS section.
18417 # No need to generate them if there are no CONFIG_HEADERS.
18418 # This happens for instance with `./config.status Makefile'.
18419 if test -n "$CONFIG_HEADERS"; then
18420 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18421 BEGIN {
18422 _ACEOF
18424 # Transform confdefs.h into an awk script `defines.awk', embedded as
18425 # here-document in config.status, that substitutes the proper values into
18426 # config.h.in to produce config.h.
18428 # Create a delimiter string that does not exist in confdefs.h, to ease
18429 # handling of long lines.
18430 ac_delim='%!_!# '
18431 for ac_last_try in false false :; do
18432 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18433 if test -z "$ac_tt"; then
18434 break
18435 elif $ac_last_try; then
18436 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18437 else
18438 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18440 done
18442 # For the awk script, D is an array of macro values keyed by name,
18443 # likewise P contains macro parameters if any. Preserve backslash
18444 # newline sequences.
18446 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18447 sed -n '
18448 s/.\{148\}/&'"$ac_delim"'/g
18449 t rset
18450 :rset
18451 s/^[ ]*#[ ]*define[ ][ ]*/ /
18452 t def
18454 :def
18455 s/\\$//
18456 t bsnl
18457 s/["\\]/\\&/g
18458 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18459 D["\1"]=" \3"/p
18460 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18462 :bsnl
18463 s/["\\]/\\&/g
18464 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18465 D["\1"]=" \3\\\\\\n"\\/p
18466 t cont
18467 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18468 t cont
18470 :cont
18472 s/.\{148\}/&'"$ac_delim"'/g
18473 t clear
18474 :clear
18475 s/\\$//
18476 t bsnlc
18477 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18479 :bsnlc
18480 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18481 b cont
18482 ' <confdefs.h | sed '
18483 s/'"$ac_delim"'/"\\\
18484 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18487 for (key in D) D_is_set[key] = 1
18488 FS = "\a"
18490 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18491 line = \$ 0
18492 split(line, arg, " ")
18493 if (arg[1] == "#") {
18494 defundef = arg[2]
18495 mac1 = arg[3]
18496 } else {
18497 defundef = substr(arg[1], 2)
18498 mac1 = arg[2]
18500 split(mac1, mac2, "(") #)
18501 macro = mac2[1]
18502 prefix = substr(line, 1, index(line, defundef) - 1)
18503 if (D_is_set[macro]) {
18504 # Preserve the white space surrounding the "#".
18505 print prefix "define", macro P[macro] D[macro]
18506 next
18507 } else {
18508 # Replace #undef with comments. This is necessary, for example,
18509 # in the case of _POSIX_SOURCE, which is predefined and required
18510 # on some systems where configure will not decide to define it.
18511 if (defundef == "undef") {
18512 print "/*", prefix defundef, macro, "*/"
18513 next
18517 { print }
18518 _ACAWK
18519 _ACEOF
18520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18521 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18522 fi # test -n "$CONFIG_HEADERS"
18525 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18526 shift
18527 for ac_tag
18529 case $ac_tag in
18530 :[FHLC]) ac_mode=$ac_tag; continue;;
18531 esac
18532 case $ac_mode$ac_tag in
18533 :[FHL]*:*);;
18534 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18535 :[FH]-) ac_tag=-:-;;
18536 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18537 esac
18538 ac_save_IFS=$IFS
18539 IFS=:
18540 set x $ac_tag
18541 IFS=$ac_save_IFS
18542 shift
18543 ac_file=$1
18544 shift
18546 case $ac_mode in
18547 :L) ac_source=$1;;
18548 :[FH])
18549 ac_file_inputs=
18550 for ac_f
18552 case $ac_f in
18553 -) ac_f="$ac_tmp/stdin";;
18554 *) # Look for the file first in the build tree, then in the source tree
18555 # (if the path is not absolute). The absolute path cannot be DOS-style,
18556 # because $ac_f cannot contain `:'.
18557 test -f "$ac_f" ||
18558 case $ac_f in
18559 [\\/$]*) false;;
18560 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18561 esac ||
18562 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18563 esac
18564 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18565 as_fn_append ac_file_inputs " '$ac_f'"
18566 done
18568 # Let's still pretend it is `configure' which instantiates (i.e., don't
18569 # use $as_me), people would be surprised to read:
18570 # /* config.h. Generated by config.status. */
18571 configure_input='Generated from '`
18572 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18573 `' by configure.'
18574 if test x"$ac_file" != x-; then
18575 configure_input="$ac_file. $configure_input"
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18577 $as_echo "$as_me: creating $ac_file" >&6;}
18579 # Neutralize special characters interpreted by sed in replacement strings.
18580 case $configure_input in #(
18581 *\&* | *\|* | *\\* )
18582 ac_sed_conf_input=`$as_echo "$configure_input" |
18583 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18584 *) ac_sed_conf_input=$configure_input;;
18585 esac
18587 case $ac_tag in
18588 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18590 esac
18592 esac
18594 ac_dir=`$as_dirname -- "$ac_file" ||
18595 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18596 X"$ac_file" : 'X\(//\)[^/]' \| \
18597 X"$ac_file" : 'X\(//\)$' \| \
18598 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18599 $as_echo X"$ac_file" |
18600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18601 s//\1/
18604 /^X\(\/\/\)[^/].*/{
18605 s//\1/
18608 /^X\(\/\/\)$/{
18609 s//\1/
18612 /^X\(\/\).*/{
18613 s//\1/
18616 s/.*/./; q'`
18617 as_dir="$ac_dir"; as_fn_mkdir_p
18618 ac_builddir=.
18620 case "$ac_dir" in
18621 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18623 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18624 # A ".." for each directory in $ac_dir_suffix.
18625 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18626 case $ac_top_builddir_sub in
18627 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18628 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18629 esac ;;
18630 esac
18631 ac_abs_top_builddir=$ac_pwd
18632 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18633 # for backward compatibility:
18634 ac_top_builddir=$ac_top_build_prefix
18636 case $srcdir in
18637 .) # We are building in place.
18638 ac_srcdir=.
18639 ac_top_srcdir=$ac_top_builddir_sub
18640 ac_abs_top_srcdir=$ac_pwd ;;
18641 [\\/]* | ?:[\\/]* ) # Absolute name.
18642 ac_srcdir=$srcdir$ac_dir_suffix;
18643 ac_top_srcdir=$srcdir
18644 ac_abs_top_srcdir=$srcdir ;;
18645 *) # Relative name.
18646 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18647 ac_top_srcdir=$ac_top_build_prefix$srcdir
18648 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18649 esac
18650 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18653 case $ac_mode in
18656 # CONFIG_FILE
18659 ac_MKDIR_P=$MKDIR_P
18660 case $MKDIR_P in
18661 [\\/$]* | ?:[\\/]* ) ;;
18662 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18663 esac
18664 _ACEOF
18666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18667 # If the template does not know about datarootdir, expand it.
18668 # FIXME: This hack should be removed a few years after 2.60.
18669 ac_datarootdir_hack=; ac_datarootdir_seen=
18670 ac_sed_dataroot='
18671 /datarootdir/ {
18675 /@datadir@/p
18676 /@docdir@/p
18677 /@infodir@/p
18678 /@localedir@/p
18679 /@mandir@/p'
18680 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18681 *datarootdir*) ac_datarootdir_seen=yes;;
18682 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18684 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18685 _ACEOF
18686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18687 ac_datarootdir_hack='
18688 s&@datadir@&$datadir&g
18689 s&@docdir@&$docdir&g
18690 s&@infodir@&$infodir&g
18691 s&@localedir@&$localedir&g
18692 s&@mandir@&$mandir&g
18693 s&\\\${datarootdir}&$datarootdir&g' ;;
18694 esac
18695 _ACEOF
18697 # Neutralize VPATH when `$srcdir' = `.'.
18698 # Shell code in configure.ac might set extrasub.
18699 # FIXME: do we really want to maintain this feature?
18700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18701 ac_sed_extra="$ac_vpsub
18702 $extrasub
18703 _ACEOF
18704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18706 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18707 s|@configure_input@|$ac_sed_conf_input|;t t
18708 s&@top_builddir@&$ac_top_builddir_sub&;t t
18709 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18710 s&@srcdir@&$ac_srcdir&;t t
18711 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18712 s&@top_srcdir@&$ac_top_srcdir&;t t
18713 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18714 s&@builddir@&$ac_builddir&;t t
18715 s&@abs_builddir@&$ac_abs_builddir&;t t
18716 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18717 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18718 $ac_datarootdir_hack
18720 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18721 if $ac_cs_awk_getline; then
18722 $AWK -f "$ac_tmp/subs.awk"
18723 else
18724 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18725 fi \
18726 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18728 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18729 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18730 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18731 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18733 which seems to be undefined. Please make sure it is defined" >&5
18734 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18735 which seems to be undefined. Please make sure it is defined" >&2;}
18737 rm -f "$ac_tmp/stdin"
18738 case $ac_file in
18739 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18740 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18741 esac \
18742 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18746 # CONFIG_HEADER
18748 if test x"$ac_file" != x-; then
18750 $as_echo "/* $configure_input */" \
18751 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18752 } >"$ac_tmp/config.h" \
18753 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18754 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18756 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18757 else
18758 rm -f "$ac_file"
18759 mv "$ac_tmp/config.h" "$ac_file" \
18760 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18762 else
18763 $as_echo "/* $configure_input */" \
18764 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18765 || as_fn_error $? "could not create -" "$LINENO" 5
18770 # CONFIG_LINK
18773 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18775 else
18776 # Prefer the file from the source tree if names are identical.
18777 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18778 ac_source=$srcdir/$ac_source
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18782 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18784 if test ! -r "$ac_source"; then
18785 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18787 rm -f "$ac_file"
18789 # Try a relative symlink, then a hard link, then a copy.
18790 case $ac_source in
18791 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18792 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18793 esac
18794 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18795 ln "$ac_source" "$ac_file" 2>/dev/null ||
18796 cp -p "$ac_source" "$ac_file" ||
18797 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18800 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18801 $as_echo "$as_me: executing $ac_file commands" >&6;}
18803 esac
18806 case $ac_file$ac_mode in
18807 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
18808 "Makefile":C) wine_fn_output_makefile Makefile ;;
18809 "tools":C) as_dir=tools; as_fn_mkdir_p ;;
18810 ".gitignore":C) wine_fn_output_gitignore .gitignore ;;
18812 esac
18813 done # for ac_tag
18816 as_fn_exit 0
18817 _ACEOF
18818 ac_clean_files=$ac_clean_files_save
18820 test $ac_write_fail = 0 ||
18821 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18824 # configure is writing to config.log, and then calls config.status.
18825 # config.status does its own redirection, appending to config.log.
18826 # Unfortunately, on DOS this fails, as config.log is still kept open
18827 # by configure, so config.status won't be able to write to it; its
18828 # output is simply discarded. So we exec the FD to /dev/null,
18829 # effectively closing config.log, so it can be properly (re)opened and
18830 # appended to by config.status. When coming back to configure, we
18831 # need to make the FD available again.
18832 if test "$no_create" != yes; then
18833 ac_cs_success=:
18834 ac_config_status_args=
18835 test "$silent" = yes &&
18836 ac_config_status_args="$ac_config_status_args --quiet"
18837 exec 5>/dev/null
18838 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18839 exec 5>>config.log
18840 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18841 # would make configure fail if this is the last instruction.
18842 $ac_cs_success || as_fn_exit 1
18844 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18846 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18850 if test "$no_create" = "yes"
18851 then
18852 exit 0
18855 ac_save_IFS="$IFS"
18856 if test "x$wine_notices != "x; then
18857 echo >&6
18858 IFS="|"
18859 for msg in $wine_notices; do
18860 IFS="$ac_save_IFS"
18861 if test -n "$msg"; then
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18863 $as_echo "$as_me: $msg" >&6;}
18865 done
18867 IFS="|"
18868 for msg in $wine_warnings; do
18869 IFS="$ac_save_IFS"
18870 if test -n "$msg"; then
18871 echo >&2
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18873 $as_echo "$as_me: WARNING: $msg" >&2;}
18875 done
18876 IFS="$ac_save_IFS"
18878 $as_echo "
18879 $as_me: Finished. Do '${ac_make}' to compile Wine.
18880 " >&6