po: Update Korean translation.
[wine.git] / configure
blob896db3a02adc5801067a530a47d3e07aba0dbb86
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.5.3.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: wine-devel@winehq.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
247 exit 1
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
265 { eval $1=; unset $1;}
267 as_unset=as_fn_unset
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
274 return $1
275 } # as_fn_set_status
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
318 /^X\(\/\/\)$/{
319 s//\1/
322 /^X\(\/\).*/{
323 s//\1/
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
343 eval $1+=\$2
345 else
346 as_fn_append ()
348 eval $1=\$$1\$2
350 fi # as_fn_append
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
360 as_val=$(( $* ))
362 else
363 as_fn_arith ()
365 as_val=`expr "$@" || test $? -eq 1`
367 fi # as_fn_arith
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
414 /^X\/\(\/\/\)$/{
415 s//\1/
418 /^X\/\(\/\).*/{
419 s//\1/
422 s/.*/./; q'`
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
445 :lineno
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
473 ECHO_N='-n';;
474 esac
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
497 else
498 as_ln_s='cp -p'
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
560 # Identity of this package.
561 PACKAGE_NAME='Wine'
562 PACKAGE_TARNAME='wine'
563 PACKAGE_VERSION='1.5.3'
564 PACKAGE_STRING='Wine 1.5.3'
565 PACKAGE_BUGREPORT='wine-devel@winehq.org'
566 PACKAGE_URL='http://www.winehq.org'
568 ac_unique_file="server/atom.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 PORCFLAGS
608 LINGUAS
609 ALL_TEST_RESOURCES
610 LDAPLIBS
611 LIBPOLL
612 LIBDL
613 EXTRA_BINARIES
614 MAIN_BINARY
615 SOCKETLIBS
616 CRTLIBS
617 TOOLSEXT
618 LDPATH
619 UNWINDFLAGS
620 BUILTINFLAG
621 EXTRACFLAGS
622 LIBKSTAT
623 LIBOPENAL
624 LIBMPG123
625 PNGINCL
626 FONTCONFIGINCL
627 CUPSINCL
628 OSS4INCL
629 ALSALIBS
630 GSTREAMER_INCL
631 GSTREAMER_LIBS
632 LIBGETTEXTPO
633 ZLIB
634 FREETYPEINCL
635 FREETYPELIBS
636 ft_devel
637 LCMSLIBS
638 RESOLVLIBS
639 GPHOTO2INCL
640 GPHOTO2LIBS
641 gphoto2port_devel
642 gphoto2_devel
643 SANEINCL
644 sane_devel
645 GNUTLSINCL
646 HALINCL
647 DBUSINCL
648 XSLTINCL
649 XML2INCL
650 XML2LIBS
651 X_EXTRA_LIBS
652 X_LIBS
653 X_PRE_LIBS
654 X_CFLAGS
655 XMKMF
656 LIBPTHREAD
657 CROSSTARGET
658 CROSSCC
659 CROSSTEST_DISABLE
660 PRELINK
661 CARBONLIB
662 QUICKTIMELIB
663 LIBOPENCL
664 FRAMEWORK_OPENAL
665 COREAUDIO
666 SECURITYLIB
667 DISKARBITRATIONLIB
668 LDEXECFLAGS
669 CORESERVICESLIB
670 APPLICATIONSERVICESLIB
671 IOKITLIB
672 COREFOUNDATIONLIB
673 DLLWRAP
674 DLLTOOL
676 LDRPATH_LOCAL
677 LDRPATH_INSTALL
678 IMPLIBEXT
679 LIBEXT
680 LDDLLFLAGS
681 LDSHARED
682 DLLFLAGS
683 DLLEXT
685 OPENGL_LIBS
686 XLIB
687 MAINTAINER_MODE
688 MSGFMT
689 ICOTOOL
690 CONVERT
691 RSVG
692 PKG_CONFIG
693 FONTFORGE
694 LINTFLAGS
695 LINT
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 LDCONFIG
700 EGREP
701 GREP
702 LN_S
703 RANLIB
704 ARFLAGS
705 ac_ct_AR
707 BISON
708 FLEX
709 TOOLSDIR
710 WOW64_DISABLE
711 TARGETFLAGS
712 CPPBIN
713 ac_ct_CXX
714 CXXFLAGS
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
723 SET_MAKE
724 host_os
725 host_vendor
726 host_cpu
727 host
728 build_os
729 build_vendor
730 build_cpu
731 build
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files='MAKE_RULES
771 MAKE_TEST_RULES
772 MAKE_DLL_RULES
773 MAKE_IMPLIB_RULES
774 MAKE_PROG_RULES'
775 ac_user_opts='
776 enable_option_checking
777 enable_win16
778 enable_win64
779 enable_tests
780 enable_maintainer_mode
781 with_alsa
782 with_capi
783 with_cms
784 with_coreaudio
785 with_cups
786 with_curses
787 with_dbus
788 with_fontconfig
789 with_freetype
790 with_gettext
791 with_gettextpo
792 with_gphoto
793 with_glu
794 with_gnutls
795 with_gsm
796 with_gstreamer
797 with_hal
798 with_jpeg
799 with_ldap
800 with_mpg123
801 with_openal
802 with_opencl
803 with_opengl
804 with_openssl
805 with_oss
806 with_png
807 with_pthread
808 with_sane
809 with_tiff
810 with_v4l
811 with_xcomposite
812 with_xcursor
813 with_xinerama
814 with_xinput
815 with_xinput2
816 with_xml
817 with_xrandr
818 with_xrender
819 with_xshape
820 with_xslt
821 with_xxf86vm
822 with_zlib
823 with_wine_tools
824 with_wine64
825 enable_largefile
826 with_x
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
837 CXXFLAGS
840 XMKMF'
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
891 ac_prev=
892 ac_dashdash=
893 for ac_option
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
902 case $ac_option in
903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *=) ac_optarg= ;;
905 *) ac_optarg=yes ;;
906 esac
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
912 ac_dashdash=yes ;;
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
931 --config-cache | -C)
932 cache_file=config.cache ;;
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1226 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information"
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248 esac
1249 done
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error $? "missing argument to $ac_option"
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used" >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306 test "$silent" = yes && exec 6>/dev/null
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $? "pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1335 /^X\(\/\/\)$/{
1336 s//\1/
1339 /^X\(\/\).*/{
1340 s//\1/
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1348 else
1349 ac_srcdir_defaulted=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures Wine 1.5.3 to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1438 cat <<\_ACEOF
1440 X features:
1441 --x-includes=DIR X include files are in DIR
1442 --x-libraries=DIR X library files are in DIR
1444 System types:
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 _ACEOF
1450 if test -n "$ac_init_help"; then
1451 case $ac_init_help in
1452 short | recursive ) echo "Configuration of Wine 1.5.3:";;
1453 esac
1454 cat <<\_ACEOF
1456 Optional Features:
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --disable-win16 do not include Win16 support
1461 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1462 binaries)
1463 --disable-tests do not build the regression tests
1464 --enable-maintainer-mode
1465 enable maintainer-specific build rules
1466 --disable-largefile omit support for large files
1468 Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1471 --without-alsa do not use the Alsa sound support
1472 --without-capi do not use CAPI (ISDN support)
1473 --without-cms do not use CMS (color management support)
1474 --without-coreaudio do not use the CoreAudio sound support
1475 --without-cups do not use CUPS
1476 --without-curses do not use (n)curses
1477 --without-dbus do not use DBus (dynamic device support)
1478 --without-fontconfig do not use fontconfig
1479 --without-freetype do not use the FreeType library
1480 --without-gettext do not use gettext
1481 --with-gettextpo use the GetTextPO library to rebuild po files
1482 --without-gphoto do not use gphoto (Digital Camera support)
1483 --without-glu do not use the GLU library
1484 --without-gnutls do not use GnuTLS (schannel support)
1485 --without-gsm do not use libgsm (GSM 06.10 codec support)
1486 --without-gstreamer do not use GStreamer (codecs support)
1487 --without-hal do not use HAL (dynamic device support)
1488 --without-jpeg do not use JPEG
1489 --without-ldap do not use LDAP
1490 --without-mpg123 do not use the mpg123 library
1491 --without-openal do not use OpenAL
1492 --without-opencl do not use OpenCL
1493 --without-opengl do not use OpenGL
1494 --without-openssl do not use OpenSSL
1495 --without-oss do not use the OSS sound support
1496 --without-png do not use PNG
1497 --without-pthread do not use the pthread library
1498 --without-sane do not use SANE (scanner support)
1499 --without-tiff do not use TIFF
1500 --without-v4l do not use v4l1 (v4l support)
1501 --without-xcomposite do not use the Xcomposite extension
1502 --without-xcursor do not use the Xcursor extension
1503 --without-xinerama do not use Xinerama (multi-monitor support)
1504 --without-xinput do not use the Xinput extension
1505 --without-xinput2 do not use the Xinput 2 extension
1506 --without-xml do not use XML
1507 --without-xrandr do not use Xrandr (resolution changes)
1508 --without-xrender do not use the Xrender extension
1509 --without-xshape do not use the Xshape extension
1510 --without-xslt do not use XSLT
1511 --without-xxf86vm do not use XFree video mode extension
1512 --without-zlib do not use Zlib (data compression)
1513 --with-wine-tools=DIR use Wine tools from directory DIR
1514 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1515 --with-x use the X Window System
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 CXX C++ compiler command
1526 CXXFLAGS C++ compiler flags
1527 CPP C preprocessor
1528 XMKMF Path to xmkmf, Makefile generator for X Window System
1530 Use these variables to override the choices made by `configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1533 Report bugs to <wine-devel@winehq.org>.
1534 Wine home page: <http://www.winehq.org>.
1535 _ACEOF
1536 ac_status=$?
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 Wine configure 1.5.3
1598 generated by GNU Autoconf 2.68
1600 Copyright (C) 2010 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1603 _ACEOF
1604 exit
1607 ## ------------------------ ##
1608 ## Autoconf initialization. ##
1609 ## ------------------------ ##
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1642 ac_retval=1
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1647 } # ac_fn_c_try_compile
1649 # ac_fn_cxx_try_compile LINENO
1650 # ----------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_cxx_try_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_cxx_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1680 ac_retval=1
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1685 } # ac_fn_cxx_try_compile
1687 # ac_fn_c_try_link LINENO
1688 # -----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_link ()
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext conftest$ac_exeext
1694 if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest$ac_exeext && {
1713 test "$cross_compiling" = yes ||
1714 $as_test_x conftest$ac_exeext
1715 }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1721 ac_retval=1
1723 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1724 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1725 # interfere with the next link command; also delete a directory that is
1726 # left behind by Apple's compiler. We do this before executing the actions.
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1731 } # ac_fn_c_try_link
1733 # ac_fn_c_try_cpp LINENO
1734 # ----------------------
1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_cpp ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_cpp conftest.$ac_ext"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } > conftest.i && {
1755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 }; then :
1758 ac_retval=0
1759 else
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1763 ac_retval=1
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1768 } # ac_fn_c_try_cpp
1770 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773 # the include files in INCLUDES and setting the cache variable VAR
1774 # accordingly.
1775 ac_fn_c_check_header_mongrel ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if eval \${$3+:} false; then :
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 else
1788 # Is the header compilable?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790 $as_echo_n "checking $2 usability... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 ac_header_compiler=yes
1798 else
1799 ac_header_compiler=no
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803 $as_echo "$ac_header_compiler" >&6; }
1805 # Is the header present?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807 $as_echo_n "checking $2 presence... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_cpp "$LINENO"; then :
1813 ac_header_preproc=yes
1814 else
1815 ac_header_preproc=no
1817 rm -f conftest.err conftest.i conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819 $as_echo "$ac_header_preproc" >&6; }
1821 # So? What about this header?
1822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1823 yes:no: )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829 no:yes:* )
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1833 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1837 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 ( $as_echo "## ------------------------------------ ##
1841 ## Report this to wine-devel@winehq.org ##
1842 ## ------------------------------------ ##"
1843 ) | sed "s/^/$as_me: WARNING: /" >&2
1845 esac
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1850 else
1851 eval "$3=\$ac_header_compiler"
1853 eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 } # ac_fn_c_check_header_mongrel
1861 # ac_fn_c_try_run LINENO
1862 # ----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1864 # that executables *can* be run.
1865 ac_fn_c_try_run ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>&5
1876 ac_status=$?
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1879 { { case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_try") 2>&5
1886 ac_status=$?
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; }; }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: program exited with status $ac_status" >&5
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1895 ac_retval=$ac_status
1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 as_fn_set_status $ac_retval
1901 } # ac_fn_c_try_run
1903 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists and can be compiled using the include files in
1906 # INCLUDES, setting the cache variable VAR accordingly.
1907 ac_fn_c_check_header_compile ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1918 #include <$2>
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 eval "$3=yes"
1922 else
1923 eval "$3=no"
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 } # ac_fn_c_check_header_compile
1934 # ac_fn_c_check_func LINENO FUNC VAR
1935 # ----------------------------------
1936 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1937 ac_fn_c_check_func ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1944 else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1949 #define $2 innocuous_$2
1951 /* System header to define __stub macros and hopefully few prototypes,
1952 which can conflict with char $2 (); below.
1953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1954 <limits.h> exists even on freestanding compilers. */
1956 #ifdef __STDC__
1957 # include <limits.h>
1958 #else
1959 # include <assert.h>
1960 #endif
1962 #undef $2
1964 /* Override any GCC internal prototype to avoid an error.
1965 Use char because int might match the return type of a GCC
1966 builtin and then its argument prototype would still apply. */
1967 #ifdef __cplusplus
1968 extern "C"
1969 #endif
1970 char $2 ();
1971 /* The GNU C library defines this for functions which it implements
1972 to always fail with ENOSYS. Some functions are actually named
1973 something starting with __ and the normal name is an alias. */
1974 #if defined __stub_$2 || defined __stub___$2
1975 choke me
1976 #endif
1979 main ()
1981 return $2 ();
1983 return 0;
1985 _ACEOF
1986 if ac_fn_c_try_link "$LINENO"; then :
1987 eval "$3=yes"
1988 else
1989 eval "$3=no"
1991 rm -f core conftest.err conftest.$ac_objext \
1992 conftest$ac_exeext conftest.$ac_ext
1994 eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 } # ac_fn_c_check_func
2001 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2002 # ----------------------------------------------------
2003 # Tries to find if the field MEMBER exists in type AGGR, after including
2004 # INCLUDES, setting cache variable VAR accordingly.
2005 ac_fn_c_check_member ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2009 $as_echo_n "checking for $2.$3... " >&6; }
2010 if eval \${$4+:} false; then :
2011 $as_echo_n "(cached) " >&6
2012 else
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2017 main ()
2019 static $2 ac_aggr;
2020 if (ac_aggr.$3)
2021 return 0;
2023 return 0;
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 eval "$4=yes"
2028 else
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2033 main ()
2035 static $2 ac_aggr;
2036 if (sizeof ac_aggr.$3)
2037 return 0;
2039 return 0;
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043 eval "$4=yes"
2044 else
2045 eval "$4=no"
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 eval ac_res=\$$4
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_member
2058 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2059 # -------------------------------------------
2060 # Tests whether TYPE exists after having included INCLUDES, setting cache
2061 # variable VAR accordingly.
2062 ac_fn_c_check_type ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066 $as_echo_n "checking for $2... " >&6; }
2067 if eval \${$3+:} false; then :
2068 $as_echo_n "(cached) " >&6
2069 else
2070 eval "$3=no"
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2075 main ()
2077 if (sizeof ($2))
2078 return 0;
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2088 main ()
2090 if (sizeof (($2)))
2091 return 0;
2093 return 0;
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2098 else
2099 eval "$3=yes"
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 } # ac_fn_c_check_type
2111 cat >config.log <<_ACEOF
2112 This file contains any messages produced by compilers while
2113 running configure, to aid debugging if configure makes a mistake.
2115 It was created by Wine $as_me 1.5.3, which was
2116 generated by GNU Autoconf 2.68. Invocation command line was
2118 $ $0 $@
2120 _ACEOF
2121 exec 5>>config.log
2123 cat <<_ASUNAME
2124 ## --------- ##
2125 ## Platform. ##
2126 ## --------- ##
2128 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2129 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2130 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2131 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2132 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2134 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2135 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2137 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2138 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2139 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2140 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2141 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2142 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2143 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2145 _ASUNAME
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2150 IFS=$as_save_IFS
2151 test -z "$as_dir" && as_dir=.
2152 $as_echo "PATH: $as_dir"
2153 done
2154 IFS=$as_save_IFS
2156 } >&5
2158 cat >&5 <<_ACEOF
2161 ## ----------- ##
2162 ## Core tests. ##
2163 ## ----------- ##
2165 _ACEOF
2168 # Keep a trace of the command line.
2169 # Strip out --no-create and --no-recursion so they do not pile up.
2170 # Strip out --silent because we don't want to record it for future runs.
2171 # Also quote any args containing shell meta-characters.
2172 # Make two passes to allow for proper duplicate-argument suppression.
2173 ac_configure_args=
2174 ac_configure_args0=
2175 ac_configure_args1=
2176 ac_must_keep_next=false
2177 for ac_pass in 1 2
2179 for ac_arg
2181 case $ac_arg in
2182 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2184 | -silent | --silent | --silen | --sile | --sil)
2185 continue ;;
2186 *\'*)
2187 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2188 esac
2189 case $ac_pass in
2190 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2192 as_fn_append ac_configure_args1 " '$ac_arg'"
2193 if test $ac_must_keep_next = true; then
2194 ac_must_keep_next=false # Got value, back to normal.
2195 else
2196 case $ac_arg in
2197 *=* | --config-cache | -C | -disable-* | --disable-* \
2198 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2199 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2200 | -with-* | --with-* | -without-* | --without-* | --x)
2201 case "$ac_configure_args0 " in
2202 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2203 esac
2205 -* ) ac_must_keep_next=true ;;
2206 esac
2208 as_fn_append ac_configure_args " '$ac_arg'"
2210 esac
2211 done
2212 done
2213 { ac_configure_args0=; unset ac_configure_args0;}
2214 { ac_configure_args1=; unset ac_configure_args1;}
2216 # When interrupted or exit'd, cleanup temporary files, and complete
2217 # config.log. We remove comments because anyway the quotes in there
2218 # would cause problems or look ugly.
2219 # WARNING: Use '\'' to represent an apostrophe within the trap.
2220 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2221 trap 'exit_status=$?
2222 # Save into config.log some information that might help in debugging.
2224 echo
2226 $as_echo "## ---------------- ##
2227 ## Cache variables. ##
2228 ## ---------------- ##"
2229 echo
2230 # The following way of writing the cache mishandles newlines in values,
2232 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2233 eval ac_val=\$$ac_var
2234 case $ac_val in #(
2235 *${as_nl}*)
2236 case $ac_var in #(
2237 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2238 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2239 esac
2240 case $ac_var in #(
2241 _ | IFS | as_nl) ;; #(
2242 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2243 *) { eval $ac_var=; unset $ac_var;} ;;
2244 esac ;;
2245 esac
2246 done
2247 (set) 2>&1 |
2248 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2249 *${as_nl}ac_space=\ *)
2250 sed -n \
2251 "s/'\''/'\''\\\\'\'''\''/g;
2252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2253 ;; #(
2255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2257 esac |
2258 sort
2260 echo
2262 $as_echo "## ----------------- ##
2263 ## Output variables. ##
2264 ## ----------------- ##"
2265 echo
2266 for ac_var in $ac_subst_vars
2268 eval ac_val=\$$ac_var
2269 case $ac_val in
2270 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271 esac
2272 $as_echo "$ac_var='\''$ac_val'\''"
2273 done | sort
2274 echo
2276 if test -n "$ac_subst_files"; then
2277 $as_echo "## ------------------- ##
2278 ## File substitutions. ##
2279 ## ------------------- ##"
2280 echo
2281 for ac_var in $ac_subst_files
2283 eval ac_val=\$$ac_var
2284 case $ac_val in
2285 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2286 esac
2287 $as_echo "$ac_var='\''$ac_val'\''"
2288 done | sort
2289 echo
2292 if test -s confdefs.h; then
2293 $as_echo "## ----------- ##
2294 ## confdefs.h. ##
2295 ## ----------- ##"
2296 echo
2297 cat confdefs.h
2298 echo
2300 test "$ac_signal" != 0 &&
2301 $as_echo "$as_me: caught signal $ac_signal"
2302 $as_echo "$as_me: exit $exit_status"
2303 } >&5
2304 rm -f core *.core core.conftest.* &&
2305 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2306 exit $exit_status
2308 for ac_signal in 1 2 13 15; do
2309 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2310 done
2311 ac_signal=0
2313 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2314 rm -f -r conftest* confdefs.h
2316 $as_echo "/* confdefs.h */" > confdefs.h
2318 # Predefined preprocessor variables.
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_NAME "$PACKAGE_NAME"
2322 _ACEOF
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2326 _ACEOF
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2330 _ACEOF
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_STRING "$PACKAGE_STRING"
2334 _ACEOF
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2338 _ACEOF
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_URL "$PACKAGE_URL"
2342 _ACEOF
2345 # Let the site file select an alternate cache file if it wants to.
2346 # Prefer an explicitly selected file to automatically selected ones.
2347 ac_site_file1=NONE
2348 ac_site_file2=NONE
2349 if test -n "$CONFIG_SITE"; then
2350 # We do not want a PATH search for config.site.
2351 case $CONFIG_SITE in #((
2352 -*) ac_site_file1=./$CONFIG_SITE;;
2353 */*) ac_site_file1=$CONFIG_SITE;;
2354 *) ac_site_file1=./$CONFIG_SITE;;
2355 esac
2356 elif test "x$prefix" != xNONE; then
2357 ac_site_file1=$prefix/share/config.site
2358 ac_site_file2=$prefix/etc/config.site
2359 else
2360 ac_site_file1=$ac_default_prefix/share/config.site
2361 ac_site_file2=$ac_default_prefix/etc/config.site
2363 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2365 test "x$ac_site_file" = xNONE && continue
2366 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2368 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2369 sed 's/^/| /' "$ac_site_file" >&5
2370 . "$ac_site_file" \
2371 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2373 as_fn_error $? "failed to load site script $ac_site_file
2374 See \`config.log' for more details" "$LINENO" 5; }
2376 done
2378 if test -r "$cache_file"; then
2379 # Some versions of bash will fail to source /dev/null (special files
2380 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2381 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2383 $as_echo "$as_me: loading cache $cache_file" >&6;}
2384 case $cache_file in
2385 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2386 *) . "./$cache_file";;
2387 esac
2389 else
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2391 $as_echo "$as_me: creating cache $cache_file" >&6;}
2392 >$cache_file
2395 # Check that the precious variables saved in the cache have kept the same
2396 # value.
2397 ac_cache_corrupted=false
2398 for ac_var in $ac_precious_vars; do
2399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2400 eval ac_new_set=\$ac_env_${ac_var}_set
2401 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2402 eval ac_new_val=\$ac_env_${ac_var}_value
2403 case $ac_old_set,$ac_new_set in
2404 set,)
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2406 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2407 ac_cache_corrupted=: ;;
2408 ,set)
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2410 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2411 ac_cache_corrupted=: ;;
2412 ,);;
2414 if test "x$ac_old_val" != "x$ac_new_val"; then
2415 # differences in whitespace do not lead to failure.
2416 ac_old_val_w=`echo x $ac_old_val`
2417 ac_new_val_w=`echo x $ac_new_val`
2418 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2420 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2421 ac_cache_corrupted=:
2422 else
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2424 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2425 eval $ac_var=\$ac_old_val
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2428 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2430 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2431 fi;;
2432 esac
2433 # Pass precious variables to config.status.
2434 if test "$ac_new_set" = set; then
2435 case $ac_new_val in
2436 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2437 *) ac_arg=$ac_var=$ac_new_val ;;
2438 esac
2439 case " $ac_configure_args " in
2440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2441 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2442 esac
2444 done
2445 if $ac_cache_corrupted; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2449 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2450 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2452 ## -------------------- ##
2453 ## Main body of script. ##
2454 ## -------------------- ##
2456 ac_ext=c
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464 ac_config_headers="$ac_config_headers include/config.h"
2466 ac_aux_dir=
2467 for ac_dir in tools "$srcdir"/tools; do
2468 if test -f "$ac_dir/install-sh"; then
2469 ac_aux_dir=$ac_dir
2470 ac_install_sh="$ac_aux_dir/install-sh -c"
2471 break
2472 elif test -f "$ac_dir/install.sh"; then
2473 ac_aux_dir=$ac_dir
2474 ac_install_sh="$ac_aux_dir/install.sh -c"
2475 break
2476 elif test -f "$ac_dir/shtool"; then
2477 ac_aux_dir=$ac_dir
2478 ac_install_sh="$ac_aux_dir/shtool install -c"
2479 break
2481 done
2482 if test -z "$ac_aux_dir"; then
2483 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2486 # These three variables are undocumented and unsupported,
2487 # and are intended to be withdrawn in a future Autoconf release.
2488 # They can cause serious problems if a builder's source tree is in a directory
2489 # whose full name contains unusual characters.
2490 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2491 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2492 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2498 # Check whether --enable-win16 was given.
2499 if test "${enable_win16+set}" = set; then :
2500 enableval=$enable_win16;
2503 # Check whether --enable-win64 was given.
2504 if test "${enable_win64+set}" = set; then :
2505 enableval=$enable_win64;
2508 # Check whether --enable-tests was given.
2509 if test "${enable_tests+set}" = set; then :
2510 enableval=$enable_tests;
2513 # Check whether --enable-maintainer-mode was given.
2514 if test "${enable_maintainer_mode+set}" = set; then :
2515 enableval=$enable_maintainer_mode;
2520 # Check whether --with-alsa was given.
2521 if test "${with_alsa+set}" = set; then :
2522 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2526 # Check whether --with-capi was given.
2527 if test "${with_capi+set}" = set; then :
2528 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2532 # Check whether --with-cms was given.
2533 if test "${with_cms+set}" = set; then :
2534 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2538 # Check whether --with-coreaudio was given.
2539 if test "${with_coreaudio+set}" = set; then :
2540 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2544 # Check whether --with-cups was given.
2545 if test "${with_cups+set}" = set; then :
2546 withval=$with_cups;
2550 # Check whether --with-curses was given.
2551 if test "${with_curses+set}" = set; then :
2552 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2556 # Check whether --with-dbus was given.
2557 if test "${with_dbus+set}" = set; then :
2558 withval=$with_dbus;
2562 # Check whether --with-fontconfig was given.
2563 if test "${with_fontconfig+set}" = set; then :
2564 withval=$with_fontconfig;
2568 # Check whether --with-freetype was given.
2569 if test "${with_freetype+set}" = set; then :
2570 withval=$with_freetype;
2574 # Check whether --with-gettext was given.
2575 if test "${with_gettext+set}" = set; then :
2576 withval=$with_gettext;
2580 # Check whether --with-gettextpo was given.
2581 if test "${with_gettextpo+set}" = set; then :
2582 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2586 # Check whether --with-gphoto was given.
2587 if test "${with_gphoto+set}" = set; then :
2588 withval=$with_gphoto;
2592 # Check whether --with-glu was given.
2593 if test "${with_glu+set}" = set; then :
2594 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2598 # Check whether --with-gnutls was given.
2599 if test "${with_gnutls+set}" = set; then :
2600 withval=$with_gnutls;
2604 # Check whether --with-gsm was given.
2605 if test "${with_gsm+set}" = set; then :
2606 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2610 # Check whether --with-gstreamer was given.
2611 if test "${with_gstreamer+set}" = set; then :
2612 withval=$with_gstreamer;
2616 # Check whether --with-hal was given.
2617 if test "${with_hal+set}" = set; then :
2618 withval=$with_hal;
2622 # Check whether --with-jpeg was given.
2623 if test "${with_jpeg+set}" = set; then :
2624 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2628 # Check whether --with-ldap was given.
2629 if test "${with_ldap+set}" = set; then :
2630 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2634 # Check whether --with-mpg123 was given.
2635 if test "${with_mpg123+set}" = set; then :
2636 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2640 # Check whether --with-openal was given.
2641 if test "${with_openal+set}" = set; then :
2642 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2646 # Check whether --with-opencl was given.
2647 if test "${with_opencl+set}" = set; then :
2648 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2652 # Check whether --with-opengl was given.
2653 if test "${with_opengl+set}" = set; then :
2654 withval=$with_opengl;
2658 # Check whether --with-openssl was given.
2659 if test "${with_openssl+set}" = set; then :
2660 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2664 # Check whether --with-oss was given.
2665 if test "${with_oss+set}" = set; then :
2666 withval=$with_oss;
2670 # Check whether --with-png was given.
2671 if test "${with_png+set}" = set; then :
2672 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2676 # Check whether --with-pthread was given.
2677 if test "${with_pthread+set}" = set; then :
2678 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2682 # Check whether --with-sane was given.
2683 if test "${with_sane+set}" = set; then :
2684 withval=$with_sane;
2688 # Check whether --with-tiff was given.
2689 if test "${with_tiff+set}" = set; then :
2690 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2694 # Check whether --with-v4l was given.
2695 if test "${with_v4l+set}" = set; then :
2696 withval=$with_v4l;
2700 # Check whether --with-xcomposite was given.
2701 if test "${with_xcomposite+set}" = set; then :
2702 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2706 # Check whether --with-xcursor was given.
2707 if test "${with_xcursor+set}" = set; then :
2708 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2712 # Check whether --with-xinerama was given.
2713 if test "${with_xinerama+set}" = set; then :
2714 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2718 # Check whether --with-xinput was given.
2719 if test "${with_xinput+set}" = set; then :
2720 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2724 # Check whether --with-xinput2 was given.
2725 if test "${with_xinput2+set}" = set; then :
2726 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2730 # Check whether --with-xml was given.
2731 if test "${with_xml+set}" = set; then :
2732 withval=$with_xml;
2736 # Check whether --with-xrandr was given.
2737 if test "${with_xrandr+set}" = set; then :
2738 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2742 # Check whether --with-xrender was given.
2743 if test "${with_xrender+set}" = set; then :
2744 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2748 # Check whether --with-xshape was given.
2749 if test "${with_xshape+set}" = set; then :
2750 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2754 # Check whether --with-xslt was given.
2755 if test "${with_xslt+set}" = set; then :
2756 withval=$with_xslt;
2760 # Check whether --with-xxf86vm was given.
2761 if test "${with_xxf86vm+set}" = set; then :
2762 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
2766 # Check whether --with-zlib was given.
2767 if test "${with_zlib+set}" = set; then :
2768 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2773 # Check whether --with-wine-tools was given.
2774 if test "${with_wine_tools+set}" = set; then :
2775 withval=$with_wine_tools;
2779 # Check whether --with-wine64 was given.
2780 if test "${with_wine64+set}" = set; then :
2781 withval=$with_wine64;
2785 # Make sure we can run config.sub.
2786 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2787 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2790 $as_echo_n "checking build system type... " >&6; }
2791 if ${ac_cv_build+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 ac_build_alias=$build_alias
2795 test "x$ac_build_alias" = x &&
2796 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2797 test "x$ac_build_alias" = x &&
2798 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2799 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2800 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2804 $as_echo "$ac_cv_build" >&6; }
2805 case $ac_cv_build in
2806 *-*-*) ;;
2807 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2808 esac
2809 build=$ac_cv_build
2810 ac_save_IFS=$IFS; IFS='-'
2811 set x $ac_cv_build
2812 shift
2813 build_cpu=$1
2814 build_vendor=$2
2815 shift; shift
2816 # Remember, the first character of IFS is used to create $*,
2817 # except with old shells:
2818 build_os=$*
2819 IFS=$ac_save_IFS
2820 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2824 $as_echo_n "checking host system type... " >&6; }
2825 if ${ac_cv_host+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test "x$host_alias" = x; then
2829 ac_cv_host=$ac_cv_build
2830 else
2831 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2832 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2837 $as_echo "$ac_cv_host" >&6; }
2838 case $ac_cv_host in
2839 *-*-*) ;;
2840 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2841 esac
2842 host=$ac_cv_host
2843 ac_save_IFS=$IFS; IFS='-'
2844 set x $ac_cv_host
2845 shift
2846 host_cpu=$1
2847 host_vendor=$2
2848 shift; shift
2849 # Remember, the first character of IFS is used to create $*,
2850 # except with old shells:
2851 host_os=$*
2852 IFS=$ac_save_IFS
2853 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2857 case "$srcdir" in
2858 .) ;;
2859 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2860 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2861 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2862 fi ;;
2863 esac
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2867 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2868 set x ${MAKE-make}
2869 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2870 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 cat >conftest.make <<\_ACEOF
2874 SHELL = /bin/sh
2875 all:
2876 @echo '@@@%%%=$(MAKE)=@@@%%%'
2877 _ACEOF
2878 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2879 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2880 *@@@%%%=?*=@@@%%%*)
2881 eval ac_cv_prog_make_${ac_make}_set=yes;;
2883 eval ac_cv_prog_make_${ac_make}_set=no;;
2884 esac
2885 rm -f conftest.make
2887 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2889 $as_echo "yes" >&6; }
2890 SET_MAKE=
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2894 SET_MAKE="MAKE=${MAKE-make}"
2897 ac_ext=c
2898 ac_cpp='$CPP $CPPFLAGS'
2899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902 if test -n "$ac_tool_prefix"; then
2903 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2904 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if ${ac_cv_prog_CC+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$CC"; then
2911 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2924 done
2925 done
2926 IFS=$as_save_IFS
2930 CC=$ac_cv_prog_CC
2931 if test -n "$CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933 $as_echo "$CC" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2941 if test -z "$ac_cv_prog_CC"; then
2942 ac_ct_CC=$CC
2943 # Extract the first word of "gcc", so it can be a program name with args.
2944 set dummy gcc; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$ac_ct_CC"; then
2951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960 ac_cv_prog_ac_ct_CC="gcc"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2964 done
2965 done
2966 IFS=$as_save_IFS
2970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2971 if test -n "$ac_ct_CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2973 $as_echo "$ac_ct_CC" >&6; }
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2979 if test "x$ac_ct_CC" = x; then
2980 CC=""
2981 else
2982 case $cross_compiling:$ac_tool_warned in
2983 yes:)
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2986 ac_tool_warned=yes ;;
2987 esac
2988 CC=$ac_ct_CC
2990 else
2991 CC="$ac_cv_prog_CC"
2994 if test -z "$CC"; then
2995 if test -n "$ac_tool_prefix"; then
2996 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2997 set dummy ${ac_tool_prefix}cc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_CC+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_CC="${ac_tool_prefix}cc"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 break 2
3017 done
3018 done
3019 IFS=$as_save_IFS
3023 CC=$ac_cv_prog_CC
3024 if test -n "$CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3027 else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3035 if test -z "$CC"; then
3036 # Extract the first word of "cc", so it can be a program name with args.
3037 set dummy cc; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_CC+:} false; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC="$CC" # Let the user override the test.
3045 else
3046 ac_prog_rejected=no
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3055 ac_prog_rejected=yes
3056 continue
3058 ac_cv_prog_CC="cc"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3062 done
3063 done
3064 IFS=$as_save_IFS
3066 if test $ac_prog_rejected = yes; then
3067 # We found a bogon in the path, so make sure we never use it.
3068 set dummy $ac_cv_prog_CC
3069 shift
3070 if test $# != 0; then
3071 # We chose a different compiler from the bogus one.
3072 # However, it has the same basename, so the bogon will be chosen
3073 # first if we set CC to just the basename; use the full file name.
3074 shift
3075 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3091 if test -z "$CC"; then
3092 if test -n "$ac_tool_prefix"; then
3093 for ac_prog in cl.exe
3095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_CC+:} false; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3116 done
3117 done
3118 IFS=$as_save_IFS
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3132 test -n "$CC" && break
3133 done
3135 if test -z "$CC"; then
3136 ac_ct_CC=$CC
3137 for ac_prog in cl.exe
3139 # Extract the first word of "$ac_prog", so it can be a program name with args.
3140 set dummy $ac_prog; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 if test -n "$ac_ct_CC"; then
3147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156 ac_cv_prog_ac_ct_CC="$ac_prog"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3160 done
3161 done
3162 IFS=$as_save_IFS
3166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167 if test -n "$ac_ct_CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3169 $as_echo "$ac_ct_CC" >&6; }
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3176 test -n "$ac_ct_CC" && break
3177 done
3179 if test "x$ac_ct_CC" = x; then
3180 CC=""
3181 else
3182 case $cross_compiling:$ac_tool_warned in
3183 yes:)
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186 ac_tool_warned=yes ;;
3187 esac
3188 CC=$ac_ct_CC
3195 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error $? "no acceptable C compiler found in \$PATH
3198 See \`config.log' for more details" "$LINENO" 5; }
3200 # Provide some information about the compiler.
3201 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3202 set X $ac_compile
3203 ac_compiler=$2
3204 for ac_option in --version -v -V -qversion; do
3205 { { ac_try="$ac_compiler $ac_option >&5"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3213 ac_status=$?
3214 if test -s conftest.err; then
3215 sed '10a\
3216 ... rest of stderr output deleted ...
3217 10q' conftest.err >conftest.er1
3218 cat conftest.er1 >&5
3220 rm -f conftest.er1 conftest.err
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }
3223 done
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3229 main ()
3233 return 0;
3235 _ACEOF
3236 ac_clean_files_save=$ac_clean_files
3237 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3238 # Try to create an executable without -o first, disregard a.out.
3239 # It will help us diagnose broken compilers, and finding out an intuition
3240 # of exeext.
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3242 $as_echo_n "checking whether the C compiler works... " >&6; }
3243 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3245 # The possible output files:
3246 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3248 ac_rmfiles=
3249 for ac_file in $ac_files
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3254 esac
3255 done
3256 rm -f $ac_rmfiles
3258 if { { ac_try="$ac_link_default"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_link_default") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
3269 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3270 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3271 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3272 # so that the user can short-circuit this test for compilers unknown to
3273 # Autoconf.
3274 for ac_file in $ac_files ''
3276 test -f "$ac_file" || continue
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3280 [ab].out )
3281 # We found the default executable, but exeext='' is most
3282 # certainly right.
3283 break;;
3284 *.* )
3285 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3286 then :; else
3287 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289 # We set ac_cv_exeext here because the later test for it is not
3290 # safe: cross compilers may not add the suffix if given an `-o'
3291 # argument, so we may need to know it at that point already.
3292 # Even if this section looks crufty: it has the advantage of
3293 # actually working.
3294 break;;
3296 break;;
3297 esac
3298 done
3299 test "$ac_cv_exeext" = no && ac_cv_exeext=
3301 else
3302 ac_file=''
3304 if test -z "$ac_file"; then :
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 $as_echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error 77 "C compiler cannot create executables
3313 See \`config.log' for more details" "$LINENO" 5; }
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3319 $as_echo_n "checking for C compiler default output file name... " >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3321 $as_echo "$ac_file" >&6; }
3322 ac_exeext=$ac_cv_exeext
3324 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3325 ac_clean_files=$ac_clean_files_save
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3327 $as_echo_n "checking for suffix of executables... " >&6; }
3328 if { { ac_try="$ac_link"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_link") 2>&5
3336 ac_status=$?
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }; then :
3339 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3340 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3341 # work properly (i.e., refer to `conftest.exe'), while it won't with
3342 # `rm'.
3343 for ac_file in conftest.exe conftest conftest.*; do
3344 test -f "$ac_file" || continue
3345 case $ac_file in
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3347 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 break;;
3349 * ) break;;
3350 esac
3351 done
3352 else
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3356 See \`config.log' for more details" "$LINENO" 5; }
3358 rm -f conftest conftest$ac_cv_exeext
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3360 $as_echo "$ac_cv_exeext" >&6; }
3362 rm -f conftest.$ac_ext
3363 EXEEXT=$ac_cv_exeext
3364 ac_exeext=$EXEEXT
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367 #include <stdio.h>
3369 main ()
3371 FILE *f = fopen ("conftest.out", "w");
3372 return ferror (f) || fclose (f) != 0;
3375 return 0;
3377 _ACEOF
3378 ac_clean_files="$ac_clean_files conftest.out"
3379 # Check that the compiler produces executables we can run. If not, either
3380 # the compiler is broken, or we cross compile.
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3382 $as_echo_n "checking whether we are cross compiling... " >&6; }
3383 if test "$cross_compiling" != yes; then
3384 { { ac_try="$ac_link"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_link") 2>&5
3392 ac_status=$?
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }
3395 if { ac_try='./conftest$ac_cv_exeext'
3396 { { case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_try") 2>&5
3403 ac_status=$?
3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405 test $ac_status = 0; }; }; then
3406 cross_compiling=no
3407 else
3408 if test "$cross_compiling" = maybe; then
3409 cross_compiling=yes
3410 else
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $? "cannot run C compiled programs.
3414 If you meant to cross compile, use \`--host'.
3415 See \`config.log' for more details" "$LINENO" 5; }
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3420 $as_echo "$cross_compiling" >&6; }
3422 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3425 $as_echo_n "checking for suffix of object files... " >&6; }
3426 if ${ac_cv_objext+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3433 main ()
3437 return 0;
3439 _ACEOF
3440 rm -f conftest.o conftest.obj
3441 if { { ac_try="$ac_compile"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_compile") 2>&5
3449 ac_status=$?
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; then :
3452 for ac_file in conftest.o conftest.obj conftest.*; do
3453 test -f "$ac_file" || continue;
3454 case $ac_file in
3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3456 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3457 break;;
3458 esac
3459 done
3460 else
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot compute suffix of object files: cannot compile
3467 See \`config.log' for more details" "$LINENO" 5; }
3469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3472 $as_echo "$ac_cv_objext" >&6; }
3473 OBJEXT=$ac_cv_objext
3474 ac_objext=$OBJEXT
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3476 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3477 if ${ac_cv_c_compiler_gnu+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3484 main ()
3486 #ifndef __GNUC__
3487 choke me
3488 #endif
3491 return 0;
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_compiler_gnu=yes
3496 else
3497 ac_compiler_gnu=no
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3504 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3505 if test $ac_compiler_gnu = yes; then
3506 GCC=yes
3507 else
3508 GCC=
3510 ac_test_CFLAGS=${CFLAGS+set}
3511 ac_save_CFLAGS=$CFLAGS
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3513 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3514 if ${ac_cv_prog_cc_g+:} false; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 ac_save_c_werror_flag=$ac_c_werror_flag
3518 ac_c_werror_flag=yes
3519 ac_cv_prog_cc_g=no
3520 CFLAGS="-g"
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3525 main ()
3529 return 0;
3531 _ACEOF
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533 ac_cv_prog_cc_g=yes
3534 else
3535 CFLAGS=""
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3540 main ()
3544 return 0;
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3549 else
3550 ac_c_werror_flag=$ac_save_c_werror_flag
3551 CFLAGS="-g"
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3556 main ()
3560 return 0;
3562 _ACEOF
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564 ac_cv_prog_cc_g=yes
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 ac_c_werror_flag=$ac_save_c_werror_flag
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3574 $as_echo "$ac_cv_prog_cc_g" >&6; }
3575 if test "$ac_test_CFLAGS" = set; then
3576 CFLAGS=$ac_save_CFLAGS
3577 elif test $ac_cv_prog_cc_g = yes; then
3578 if test "$GCC" = yes; then
3579 CFLAGS="-g -O2"
3580 else
3581 CFLAGS="-g"
3583 else
3584 if test "$GCC" = yes; then
3585 CFLAGS="-O2"
3586 else
3587 CFLAGS=
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3591 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3592 if ${ac_cv_prog_cc_c89+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 ac_cv_prog_cc_c89=no
3596 ac_save_CC=$CC
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3599 #include <stdarg.h>
3600 #include <stdio.h>
3601 #include <sys/types.h>
3602 #include <sys/stat.h>
3603 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3604 struct buf { int x; };
3605 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3606 static char *e (p, i)
3607 char **p;
3608 int i;
3610 return p[i];
3612 static char *f (char * (*g) (char **, int), char **p, ...)
3614 char *s;
3615 va_list v;
3616 va_start (v,p);
3617 s = g (p, va_arg (v,int));
3618 va_end (v);
3619 return s;
3622 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3623 function prototypes and stuff, but not '\xHH' hex character constants.
3624 These don't provoke an error unfortunately, instead are silently treated
3625 as 'x'. The following induces an error, until -std is added to get
3626 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3627 array size at least. It's necessary to write '\x00'==0 to get something
3628 that's true only with -std. */
3629 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3631 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3632 inside strings and character constants. */
3633 #define FOO(x) 'x'
3634 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3636 int test (int i, double x);
3637 struct s1 {int (*f) (int a);};
3638 struct s2 {int (*f) (double a);};
3639 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3640 int argc;
3641 char **argv;
3643 main ()
3645 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3647 return 0;
3649 _ACEOF
3650 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3651 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3653 CC="$ac_save_CC $ac_arg"
3654 if ac_fn_c_try_compile "$LINENO"; then :
3655 ac_cv_prog_cc_c89=$ac_arg
3657 rm -f core conftest.err conftest.$ac_objext
3658 test "x$ac_cv_prog_cc_c89" != "xno" && break
3659 done
3660 rm -f conftest.$ac_ext
3661 CC=$ac_save_CC
3664 # AC_CACHE_VAL
3665 case "x$ac_cv_prog_cc_c89" in
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3668 $as_echo "none needed" >&6; } ;;
3669 xno)
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3671 $as_echo "unsupported" >&6; } ;;
3673 CC="$CC $ac_cv_prog_cc_c89"
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3675 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3676 esac
3677 if test "x$ac_cv_prog_cc_c89" != xno; then :
3681 ac_ext=c
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687 ac_ext=cpp
3688 ac_cpp='$CXXCPP $CPPFLAGS'
3689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3692 if test -z "$CXX"; then
3693 if test -n "$CCC"; then
3694 CXX=$CCC
3695 else
3696 if test -n "$ac_tool_prefix"; then
3697 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if ${ac_cv_prog_CXX+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 if test -n "$CXX"; then
3707 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3716 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 break 2
3720 done
3721 done
3722 IFS=$as_save_IFS
3726 CXX=$ac_cv_prog_CXX
3727 if test -n "$CXX"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3729 $as_echo "$CXX" >&6; }
3730 else
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3736 test -n "$CXX" && break
3737 done
3739 if test -z "$CXX"; then
3740 ac_ct_CXX=$CXX
3741 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$ac_ct_CXX"; then
3751 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_ac_ct_CXX="$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3771 if test -n "$ac_ct_CXX"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3773 $as_echo "$ac_ct_CXX" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3780 test -n "$ac_ct_CXX" && break
3781 done
3783 if test "x$ac_ct_CXX" = x; then
3784 CXX="g++"
3785 else
3786 case $cross_compiling:$ac_tool_warned in
3787 yes:)
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790 ac_tool_warned=yes ;;
3791 esac
3792 CXX=$ac_ct_CXX
3798 # Provide some information about the compiler.
3799 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3800 set X $ac_compile
3801 ac_compiler=$2
3802 for ac_option in --version -v -V -qversion; do
3803 { { ac_try="$ac_compiler $ac_option >&5"
3804 case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3811 ac_status=$?
3812 if test -s conftest.err; then
3813 sed '10a\
3814 ... rest of stderr output deleted ...
3815 10q' conftest.err >conftest.er1
3816 cat conftest.er1 >&5
3818 rm -f conftest.er1 conftest.err
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }
3821 done
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3824 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3825 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3832 main ()
3834 #ifndef __GNUC__
3835 choke me
3836 #endif
3839 return 0;
3841 _ACEOF
3842 if ac_fn_cxx_try_compile "$LINENO"; then :
3843 ac_compiler_gnu=yes
3844 else
3845 ac_compiler_gnu=no
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3852 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3853 if test $ac_compiler_gnu = yes; then
3854 GXX=yes
3855 else
3856 GXX=
3858 ac_test_CXXFLAGS=${CXXFLAGS+set}
3859 ac_save_CXXFLAGS=$CXXFLAGS
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3861 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3862 if ${ac_cv_prog_cxx_g+:} false; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3866 ac_cxx_werror_flag=yes
3867 ac_cv_prog_cxx_g=no
3868 CXXFLAGS="-g"
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3873 main ()
3877 return 0;
3879 _ACEOF
3880 if ac_fn_cxx_try_compile "$LINENO"; then :
3881 ac_cv_prog_cxx_g=yes
3882 else
3883 CXXFLAGS=""
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3888 main ()
3892 return 0;
3894 _ACEOF
3895 if ac_fn_cxx_try_compile "$LINENO"; then :
3897 else
3898 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3899 CXXFLAGS="-g"
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3904 main ()
3908 return 0;
3910 _ACEOF
3911 if ac_fn_cxx_try_compile "$LINENO"; then :
3912 ac_cv_prog_cxx_g=yes
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3922 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3923 if test "$ac_test_CXXFLAGS" = set; then
3924 CXXFLAGS=$ac_save_CXXFLAGS
3925 elif test $ac_cv_prog_cxx_g = yes; then
3926 if test "$GXX" = yes; then
3927 CXXFLAGS="-g -O2"
3928 else
3929 CXXFLAGS="-g"
3931 else
3932 if test "$GXX" = yes; then
3933 CXXFLAGS="-O2"
3934 else
3935 CXXFLAGS=
3938 ac_ext=c
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944 if test -n "$ac_tool_prefix"; then
3945 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3946 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_CPPBIN+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 if test -n "$CPPBIN"; then
3953 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3962 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3966 done
3967 done
3968 IFS=$as_save_IFS
3972 CPPBIN=$ac_cv_prog_CPPBIN
3973 if test -n "$CPPBIN"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3975 $as_echo "$CPPBIN" >&6; }
3976 else
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3983 if test -z "$ac_cv_prog_CPPBIN"; then
3984 ac_ct_CPPBIN=$CPPBIN
3985 # Extract the first word of "cpp", so it can be a program name with args.
3986 set dummy cpp; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if test -n "$ac_ct_CPPBIN"; then
3993 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4002 ac_cv_prog_ac_ct_CPPBIN="cpp"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4006 done
4007 done
4008 IFS=$as_save_IFS
4012 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4013 if test -n "$ac_ct_CPPBIN"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4015 $as_echo "$ac_ct_CPPBIN" >&6; }
4016 else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4021 if test "x$ac_ct_CPPBIN" = x; then
4022 CPPBIN="cpp"
4023 else
4024 case $cross_compiling:$ac_tool_warned in
4025 yes:)
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4028 ac_tool_warned=yes ;;
4029 esac
4030 CPPBIN=$ac_ct_CPPBIN
4032 else
4033 CPPBIN="$ac_cv_prog_CPPBIN"
4037 cat >>confdefs.h <<_ACEOF
4038 #define EXEEXT "$ac_exeext"
4039 _ACEOF
4042 case $host in
4043 *-darwin*)
4044 if test "x$enable_win64" = "xyes"
4045 then
4046 CC="$CC -m64"
4047 CXX="$CXX -m64"
4048 host_cpu="x86_64"
4049 notice_platform="64-bit "
4050 TARGETFLAGS="-m64"
4052 else
4053 CC="$CC -m32"
4054 CXX="$CXX -m32"
4055 host_cpu="i386"
4056 notice_platform="32-bit "
4057 TARGETFLAGS="-m32"
4059 enable_win16=${enable_win16:-yes}
4061 with_fontconfig=${with_fontconfig:-no}
4063 x86_64*)
4064 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4065 then
4066 CC="$CC -m32"
4067 CXX="$CXX -m32"
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4069 $as_echo_n "checking whether $CC works... " >&6; }
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4075 main ()
4079 return 0;
4081 _ACEOF
4082 if ac_fn_c_try_link "$LINENO"; then :
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4084 $as_echo "yes" >&6; }
4085 else
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087 $as_echo "no" >&6; }
4088 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4090 rm -f core conftest.err conftest.$ac_objext \
4091 conftest$ac_exeext conftest.$ac_ext
4092 host_cpu="i386"
4093 notice_platform="32-bit "
4094 TARGETFLAGS="-m32"
4096 enable_win16=${enable_win16:-yes}
4097 else
4098 if test "x${GCC}" = "xyes"
4099 then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4101 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104 #include <stdarg.h>
4106 main ()
4108 void func(__builtin_ms_va_list *args);
4110 return 0;
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4115 $as_echo "yes" >&6; }
4116 else
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 $as_echo "no" >&6; }
4119 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 TARGETFLAGS="-m64"
4127 arm*)
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb2" >&5
4129 $as_echo_n "checking whether $CC supports Thumb2... " >&6; }
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132 int ac_test(int i) { return i; }
4134 main ()
4136 asm(".syntax unified\n.thumb\nb.w ac_test\n.arm"); if (ac_test(1)) return 1
4138 return 0;
4140 _ACEOF
4141 if ac_fn_c_try_link "$LINENO"; then :
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4143 $as_echo "yes" >&6; }
4144 else
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 $as_echo "no" >&6; }
4147 as_fn_error $? "You need a target with Thumb2 support to build Wine for ARM." "$LINENO" 5
4149 rm -f core conftest.err conftest.$ac_objext \
4150 conftest$ac_exeext conftest.$ac_ext
4151 CFLAGS="$CFLAGS -marm"
4153 *-mingw32*|*-cygwin*)
4154 enable_win16=${enable_win16:-no}
4155 CFLAGS="$CFLAGS -D_WIN32"
4157 i[3456789]86*)
4158 enable_win16=${enable_win16:-yes}
4160 esac
4162 enable_win16=${enable_win16:-no}
4163 enable_win64=${enable_win64:-no}
4165 enable_winetest=${enable_winetest:-$enable_tests}
4167 if test -n "$with_wine64"
4168 then
4169 if test "x$enable_win64" = "xyes"
4170 then
4171 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4172 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4174 WOW64_DISABLE=\#
4176 enable_fonts=${enable_fonts:-no}
4177 enable_server=${enable_server:-no}
4178 enable_tools=${enable_tools:-no}
4179 elif test "x$enable_win64" = "xyes"
4180 then
4181 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4185 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4186 if ${wine_cv_toolsdir+:} false; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 wine_cv_toolsdir="$with_wine_tools"
4190 if test -z "$with_wine_tools"; then
4191 if test "$cross_compiling" = "yes"; then
4192 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4193 elif test -n "$with_wine64"; then
4194 wine_cv_toolsdir="$with_wine64"
4197 if test -z "$wine_cv_toolsdir"; then
4198 wine_cv_toolsdir="\$(top_builddir)"
4199 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4200 case "$wine_cv_toolsdir" in
4201 /*) ;;
4202 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4203 esac
4204 else
4205 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4209 $as_echo "$wine_cv_toolsdir" >&6; }
4210 TOOLSDIR=$wine_cv_toolsdir
4212 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4213 then
4214 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4218 for ac_prog in flex
4220 # Extract the first word of "$ac_prog", so it can be a program name with args.
4221 set dummy $ac_prog; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if ${ac_cv_prog_FLEX+:} false; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 if test -n "$FLEX"; then
4228 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4237 ac_cv_prog_FLEX="$ac_prog"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4241 done
4242 done
4243 IFS=$as_save_IFS
4247 FLEX=$ac_cv_prog_FLEX
4248 if test -n "$FLEX"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4250 $as_echo "$FLEX" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4257 test -n "$FLEX" && break
4258 done
4259 test -n "$FLEX" || FLEX="none"
4261 if test "$FLEX" = "none"
4262 then
4263 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4266 $as_echo_n "checking whether flex is recent enough... " >&6; }
4267 cat >conftest.l <<EOF
4268 %top{
4269 #include "prediluvian.h"
4273 if $FLEX -t conftest.l >/dev/null 2>&5
4274 then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4276 $as_echo "yes" >&6; }
4277 else
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 $as_echo "no" >&6; }
4280 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4283 for ac_prog in bison
4285 # Extract the first word of "$ac_prog", so it can be a program name with args.
4286 set dummy $ac_prog; ac_word=$2
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if ${ac_cv_prog_BISON+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 if test -n "$BISON"; then
4293 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 ac_cv_prog_BISON="$ac_prog"
4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4306 done
4307 done
4308 IFS=$as_save_IFS
4312 BISON=$ac_cv_prog_BISON
4313 if test -n "$BISON"; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4315 $as_echo "$BISON" >&6; }
4316 else
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4322 test -n "$BISON" && break
4323 done
4324 test -n "$BISON" || BISON="none"
4326 if test "$BISON" = "none"
4327 then
4328 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4331 if test -n "$ac_tool_prefix"; then
4332 for ac_prog in ar gar
4334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4337 $as_echo_n "checking for $ac_word... " >&6; }
4338 if ${ac_cv_prog_AR+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test -n "$AR"; then
4342 ac_cv_prog_AR="$AR" # Let the user override the test.
4343 else
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4351 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 break 2
4355 done
4356 done
4357 IFS=$as_save_IFS
4361 AR=$ac_cv_prog_AR
4362 if test -n "$AR"; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4364 $as_echo "$AR" >&6; }
4365 else
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4371 test -n "$AR" && break
4372 done
4374 if test -z "$AR"; then
4375 ac_ct_AR=$AR
4376 for ac_prog in ar gar
4378 # Extract the first word of "$ac_prog", so it can be a program name with args.
4379 set dummy $ac_prog; ac_word=$2
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4381 $as_echo_n "checking for $ac_word... " >&6; }
4382 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 if test -n "$ac_ct_AR"; then
4386 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4387 else
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_prog_ac_ct_AR="$ac_prog"
4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4399 done
4400 done
4401 IFS=$as_save_IFS
4405 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4406 if test -n "$ac_ct_AR"; then
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4408 $as_echo "$ac_ct_AR" >&6; }
4409 else
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411 $as_echo "no" >&6; }
4415 test -n "$ac_ct_AR" && break
4416 done
4418 if test "x$ac_ct_AR" = x; then
4419 AR="ar"
4420 else
4421 case $cross_compiling:$ac_tool_warned in
4422 yes:)
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4425 ac_tool_warned=yes ;;
4426 esac
4427 AR=$ac_ct_AR
4431 ARFLAGS=rc
4433 if test -n "$ac_tool_prefix"; then
4434 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4435 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437 $as_echo_n "checking for $ac_word... " >&6; }
4438 if ${ac_cv_prog_RANLIB+:} false; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 if test -n "$RANLIB"; then
4442 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 break 2
4455 done
4456 done
4457 IFS=$as_save_IFS
4461 RANLIB=$ac_cv_prog_RANLIB
4462 if test -n "$RANLIB"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4464 $as_echo "$RANLIB" >&6; }
4465 else
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4472 if test -z "$ac_cv_prog_RANLIB"; then
4473 ac_ct_RANLIB=$RANLIB
4474 # Extract the first word of "ranlib", so it can be a program name with args.
4475 set dummy ranlib; ac_word=$2
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477 $as_echo_n "checking for $ac_word... " >&6; }
4478 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 if test -n "$ac_ct_RANLIB"; then
4482 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4491 ac_cv_prog_ac_ct_RANLIB="ranlib"
4492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 break 2
4495 done
4496 done
4497 IFS=$as_save_IFS
4501 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4502 if test -n "$ac_ct_RANLIB"; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4504 $as_echo "$ac_ct_RANLIB" >&6; }
4505 else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507 $as_echo "no" >&6; }
4510 if test "x$ac_ct_RANLIB" = x; then
4511 RANLIB=":"
4512 else
4513 case $cross_compiling:$ac_tool_warned in
4514 yes:)
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4517 ac_tool_warned=yes ;;
4518 esac
4519 RANLIB=$ac_ct_RANLIB
4521 else
4522 RANLIB="$ac_cv_prog_RANLIB"
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4526 $as_echo_n "checking whether ln -s works... " >&6; }
4527 LN_S=$as_ln_s
4528 if test "$LN_S" = "ln -s"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4530 $as_echo "yes" >&6; }
4531 else
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4533 $as_echo "no, using $LN_S" >&6; }
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4537 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4538 if ${ac_cv_path_GREP+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -z "$GREP"; then
4542 ac_path_GREP_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in grep ggrep; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4552 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4553 # Check for GNU ac_path_GREP and select it if it is found.
4554 # Check for GNU $ac_path_GREP
4555 case `"$ac_path_GREP" --version 2>&1` in
4556 *GNU*)
4557 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4559 ac_count=0
4560 $as_echo_n 0123456789 >"conftest.in"
4561 while :
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo 'GREP' >> "conftest.nl"
4567 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_GREP="$ac_path_GREP"
4573 ac_path_GREP_max=$ac_count
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4577 done
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 esac
4581 $ac_path_GREP_found && break 3
4582 done
4583 done
4584 done
4585 IFS=$as_save_IFS
4586 if test -z "$ac_cv_path_GREP"; then
4587 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4589 else
4590 ac_cv_path_GREP=$GREP
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4595 $as_echo "$ac_cv_path_GREP" >&6; }
4596 GREP="$ac_cv_path_GREP"
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4600 $as_echo_n "checking for egrep... " >&6; }
4601 if ${ac_cv_path_EGREP+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4605 then ac_cv_path_EGREP="$GREP -E"
4606 else
4607 if test -z "$EGREP"; then
4608 ac_path_EGREP_found=false
4609 # Loop through the user's path and test for each of PROGNAME-LIST
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_prog in egrep; do
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4618 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4619 # Check for GNU ac_path_EGREP and select it if it is found.
4620 # Check for GNU $ac_path_EGREP
4621 case `"$ac_path_EGREP" --version 2>&1` in
4622 *GNU*)
4623 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4625 ac_count=0
4626 $as_echo_n 0123456789 >"conftest.in"
4627 while :
4629 cat "conftest.in" "conftest.in" >"conftest.tmp"
4630 mv "conftest.tmp" "conftest.in"
4631 cp "conftest.in" "conftest.nl"
4632 $as_echo 'EGREP' >> "conftest.nl"
4633 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635 as_fn_arith $ac_count + 1 && ac_count=$as_val
4636 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4637 # Best one so far, save it but keep looking for a better one
4638 ac_cv_path_EGREP="$ac_path_EGREP"
4639 ac_path_EGREP_max=$ac_count
4641 # 10*(2^10) chars as input seems more than enough
4642 test $ac_count -gt 10 && break
4643 done
4644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4645 esac
4647 $ac_path_EGREP_found && break 3
4648 done
4649 done
4650 done
4651 IFS=$as_save_IFS
4652 if test -z "$ac_cv_path_EGREP"; then
4653 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4655 else
4656 ac_cv_path_EGREP=$EGREP
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4662 $as_echo "$ac_cv_path_EGREP" >&6; }
4663 EGREP="$ac_cv_path_EGREP"
4666 # Extract the first word of "ldconfig", so it can be a program name with args.
4667 set dummy ldconfig; ac_word=$2
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4669 $as_echo_n "checking for $ac_word... " >&6; }
4670 if ${ac_cv_path_LDCONFIG+:} false; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 case $LDCONFIG in
4674 [\\/]* | ?:[\\/]*)
4675 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in /sbin /usr/sbin $PATH
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4689 done
4690 done
4691 IFS=$as_save_IFS
4693 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4695 esac
4697 LDCONFIG=$ac_cv_path_LDCONFIG
4698 if test -n "$LDCONFIG"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4700 $as_echo "$LDCONFIG" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4707 # Find a good install program. We prefer a C program (faster),
4708 # so one script is as good as another. But avoid the broken or
4709 # incompatible versions:
4710 # SysV /etc/install, /usr/sbin/install
4711 # SunOS /usr/etc/install
4712 # IRIX /sbin/install
4713 # AIX /bin/install
4714 # AmigaOS /C/install, which installs bootblocks on floppy discs
4715 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4716 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4717 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4718 # OS/2's system install, which has a completely different semantic
4719 # ./install, which can be erroneously created by make from ./install.sh.
4720 # Reject install programs that cannot install multiple files.
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4722 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4723 if test -z "$INSTALL"; then
4724 if ${ac_cv_path_install+:} false; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 # Account for people who put trailing slashes in PATH elements.
4733 case $as_dir/ in #((
4734 ./ | .// | /[cC]/* | \
4735 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4736 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4737 /usr/ucb/* ) ;;
4739 # OSF1 and SCO ODT 3.0 have their own names for install.
4740 # Don't use installbsd from OSF since it installs stuff as root
4741 # by default.
4742 for ac_prog in ginstall scoinst install; do
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4745 if test $ac_prog = install &&
4746 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4747 # AIX install. It has an incompatible calling convention.
4749 elif test $ac_prog = install &&
4750 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4751 # program-specific install script used by HP pwplus--don't use.
4753 else
4754 rm -rf conftest.one conftest.two conftest.dir
4755 echo one > conftest.one
4756 echo two > conftest.two
4757 mkdir conftest.dir
4758 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4759 test -s conftest.one && test -s conftest.two &&
4760 test -s conftest.dir/conftest.one &&
4761 test -s conftest.dir/conftest.two
4762 then
4763 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4764 break 3
4768 done
4769 done
4771 esac
4773 done
4774 IFS=$as_save_IFS
4776 rm -rf conftest.one conftest.two conftest.dir
4779 if test "${ac_cv_path_install+set}" = set; then
4780 INSTALL=$ac_cv_path_install
4781 else
4782 # As a last resort, use the slow shell script. Don't cache a
4783 # value for INSTALL within a source directory, because that will
4784 # break other packages using the cache if that directory is
4785 # removed, or if the value is a relative name.
4786 INSTALL=$ac_install_sh
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4790 $as_echo "$INSTALL" >&6; }
4792 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4793 # It thinks the first close brace ends the variable substitution.
4794 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4796 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4798 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4800 case "$INSTALL" in
4801 [\\/$]* | ?:[\\/]* ) ;;
4802 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4803 esac
4805 for ac_prog in lclint lint
4807 # Extract the first word of "$ac_prog", so it can be a program name with args.
4808 set dummy $ac_prog; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if ${ac_cv_prog_LINT+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 if test -n "$LINT"; then
4815 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_LINT="$ac_prog"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4828 done
4829 done
4830 IFS=$as_save_IFS
4834 LINT=$ac_cv_prog_LINT
4835 if test -n "$LINT"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4837 $as_echo "$LINT" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4844 test -n "$LINT" && break
4845 done
4847 if test "$LINT" = "lint"
4848 then
4849 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4853 for ac_prog in fontforge
4855 # Extract the first word of "$ac_prog", so it can be a program name with args.
4856 set dummy $ac_prog; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if ${ac_cv_prog_FONTFORGE+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -n "$FONTFORGE"; then
4863 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_FONTFORGE="$ac_prog"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4876 done
4877 done
4878 IFS=$as_save_IFS
4882 FONTFORGE=$ac_cv_prog_FONTFORGE
4883 if test -n "$FONTFORGE"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4885 $as_echo "$FONTFORGE" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4892 test -n "$FONTFORGE" && break
4893 done
4894 test -n "$FONTFORGE" || FONTFORGE="false"
4896 for ac_prog in pkg-config
4898 # Extract the first word of "$ac_prog", so it can be a program name with args.
4899 set dummy $ac_prog; ac_word=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 if test -n "$PKG_CONFIG"; then
4906 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4907 else
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915 ac_cv_prog_PKG_CONFIG="$ac_prog"
4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4919 done
4920 done
4921 IFS=$as_save_IFS
4925 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4926 if test -n "$PKG_CONFIG"; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4928 $as_echo "$PKG_CONFIG" >&6; }
4929 else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 $as_echo "no" >&6; }
4935 test -n "$PKG_CONFIG" && break
4936 done
4937 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4939 for ac_prog in rsvg
4941 # Extract the first word of "$ac_prog", so it can be a program name with args.
4942 set dummy $ac_prog; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_prog_RSVG+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 if test -n "$RSVG"; then
4949 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_prog_RSVG="$ac_prog"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4962 done
4963 done
4964 IFS=$as_save_IFS
4968 RSVG=$ac_cv_prog_RSVG
4969 if test -n "$RSVG"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4971 $as_echo "$RSVG" >&6; }
4972 else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4978 test -n "$RSVG" && break
4979 done
4980 test -n "$RSVG" || RSVG="false"
4982 for ac_prog in convert
4984 # Extract the first word of "$ac_prog", so it can be a program name with args.
4985 set dummy $ac_prog; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_prog_CONVERT+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test -n "$CONVERT"; then
4992 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001 ac_cv_prog_CONVERT="$ac_prog"
5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5005 done
5006 done
5007 IFS=$as_save_IFS
5011 CONVERT=$ac_cv_prog_CONVERT
5012 if test -n "$CONVERT"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5014 $as_echo "$CONVERT" >&6; }
5015 else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5021 test -n "$CONVERT" && break
5022 done
5023 test -n "$CONVERT" || CONVERT="false"
5025 for ac_prog in icotool
5027 # Extract the first word of "$ac_prog", so it can be a program name with args.
5028 set dummy $ac_prog; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_prog_ICOTOOL+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 if test -n "$ICOTOOL"; then
5035 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044 ac_cv_prog_ICOTOOL="$ac_prog"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5048 done
5049 done
5050 IFS=$as_save_IFS
5054 ICOTOOL=$ac_cv_prog_ICOTOOL
5055 if test -n "$ICOTOOL"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5057 $as_echo "$ICOTOOL" >&6; }
5058 else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5064 test -n "$ICOTOOL" && break
5065 done
5066 test -n "$ICOTOOL" || ICOTOOL="false"
5068 for ac_prog in msgfmt
5070 # Extract the first word of "$ac_prog", so it can be a program name with args.
5071 set dummy $ac_prog; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_prog_MSGFMT+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 if test -n "$MSGFMT"; then
5078 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5079 else
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087 ac_cv_prog_MSGFMT="$ac_prog"
5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 break 2
5091 done
5092 done
5093 IFS=$as_save_IFS
5097 MSGFMT=$ac_cv_prog_MSGFMT
5098 if test -n "$MSGFMT"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5100 $as_echo "$MSGFMT" >&6; }
5101 else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5107 test -n "$MSGFMT" && break
5108 done
5109 test -n "$MSGFMT" || MSGFMT="false"
5112 if test "x$enable_maintainer_mode" != "xyes"
5113 then
5114 MAINTAINER_MODE=\#
5116 else
5117 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5118 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5120 if test "$CONVERT" = false
5121 then
5122 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5123 else
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5125 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5126 convert_version=`convert --version | head -n1`
5127 if test "x$convert_version" != "x"
5128 then
5129 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5130 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5131 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5132 then
5133 CONVERT=false
5136 if test "$CONVERT" = false
5137 then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5139 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5140 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5143 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5147 if test "$ICOTOOL" = false
5148 then
5149 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5150 else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5152 $as_echo_n "checking for recent enough icotool... " >&6; }
5153 icotool_version=`icotool --version | head -n1`
5154 if test "x$icotool_version" != "x"
5155 then
5156 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5157 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5158 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5159 then
5160 ICOTOOL=false
5161 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5164 if test "$ICOTOOL" = false
5165 then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5167 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5168 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5171 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5175 with_gettext=yes
5176 with_gettextpo=yes
5177 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5180 test "x$with_gettext" != xno || MSGFMT=false
5181 if test "$MSGFMT" != "false"
5182 then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5184 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5185 cat >conftest.po <<EOF
5186 # comment
5187 msgctxt "ctxt"
5188 msgid "id"
5189 msgstr "str"
5191 if $MSGFMT -o /dev/null conftest.po 2>&5
5192 then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5194 $as_echo "yes" >&6; }
5195 else
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5198 MSGFMT=false
5201 if test "$MSGFMT" = false; then :
5202 case "x$with_gettext" in
5203 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5204 xno) ;;
5205 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5206 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5207 esac
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5212 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5213 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 ac_check_lib_save_LIBS=$LIBS
5217 LIBS="-li386 $LIBS"
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5221 /* Override any GCC internal prototype to avoid an error.
5222 Use char because int might match the return type of a GCC
5223 builtin and then its argument prototype would still apply. */
5224 #ifdef __cplusplus
5225 extern "C"
5226 #endif
5227 char i386_set_ldt ();
5229 main ()
5231 return i386_set_ldt ();
5233 return 0;
5235 _ACEOF
5236 if ac_fn_c_try_link "$LINENO"; then :
5237 ac_cv_lib_i386_i386_set_ldt=yes
5238 else
5239 ac_cv_lib_i386_i386_set_ldt=no
5241 rm -f core conftest.err conftest.$ac_objext \
5242 conftest$ac_exeext conftest.$ac_ext
5243 LIBS=$ac_check_lib_save_LIBS
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5246 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5247 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5248 cat >>confdefs.h <<_ACEOF
5249 #define HAVE_LIBI386 1
5250 _ACEOF
5252 LIBS="-li386 $LIBS"
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5257 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5258 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 ac_check_lib_save_LIBS=$LIBS
5262 LIBS="-lossaudio $LIBS"
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5266 /* Override any GCC internal prototype to avoid an error.
5267 Use char because int might match the return type of a GCC
5268 builtin and then its argument prototype would still apply. */
5269 #ifdef __cplusplus
5270 extern "C"
5271 #endif
5272 char _oss_ioctl ();
5274 main ()
5276 return _oss_ioctl ();
5278 return 0;
5280 _ACEOF
5281 if ac_fn_c_try_link "$LINENO"; then :
5282 ac_cv_lib_ossaudio__oss_ioctl=yes
5283 else
5284 ac_cv_lib_ossaudio__oss_ioctl=no
5286 rm -f core conftest.err conftest.$ac_objext \
5287 conftest$ac_exeext conftest.$ac_ext
5288 LIBS=$ac_check_lib_save_LIBS
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5291 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5292 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5293 cat >>confdefs.h <<_ACEOF
5294 #define HAVE_LIBOSSAUDIO 1
5295 _ACEOF
5297 LIBS="-lossaudio $LIBS"
5302 XLIB=""
5304 OPENGL_LIBS=""
5308 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5310 # Check whether --enable-largefile was given.
5311 if test "${enable_largefile+set}" = set; then :
5312 enableval=$enable_largefile;
5315 if test "$enable_largefile" != no; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5318 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5319 if ${ac_cv_sys_largefile_CC+:} false; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 ac_cv_sys_largefile_CC=no
5323 if test "$GCC" != yes; then
5324 ac_save_CC=$CC
5325 while :; do
5326 # IRIX 6.2 and later do not support large files by default,
5327 # so use the C compiler's -n32 option if that helps.
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330 #include <sys/types.h>
5331 /* Check that off_t can represent 2**63 - 1 correctly.
5332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5333 since some C++ compilers masquerading as C compilers
5334 incorrectly reject 9223372036854775807. */
5335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5337 && LARGE_OFF_T % 2147483647 == 1)
5338 ? 1 : -1];
5340 main ()
5344 return 0;
5346 _ACEOF
5347 if ac_fn_c_try_compile "$LINENO"; then :
5348 break
5350 rm -f core conftest.err conftest.$ac_objext
5351 CC="$CC -n32"
5352 if ac_fn_c_try_compile "$LINENO"; then :
5353 ac_cv_sys_largefile_CC=' -n32'; break
5355 rm -f core conftest.err conftest.$ac_objext
5356 break
5357 done
5358 CC=$ac_save_CC
5359 rm -f conftest.$ac_ext
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5363 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5364 if test "$ac_cv_sys_largefile_CC" != no; then
5365 CC=$CC$ac_cv_sys_largefile_CC
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5369 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5370 if ${ac_cv_sys_file_offset_bits+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 while :; do
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376 #include <sys/types.h>
5377 /* Check that off_t can represent 2**63 - 1 correctly.
5378 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5379 since some C++ compilers masquerading as C compilers
5380 incorrectly reject 9223372036854775807. */
5381 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5382 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5383 && LARGE_OFF_T % 2147483647 == 1)
5384 ? 1 : -1];
5386 main ()
5390 return 0;
5392 _ACEOF
5393 if ac_fn_c_try_compile "$LINENO"; then :
5394 ac_cv_sys_file_offset_bits=no; break
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5399 #define _FILE_OFFSET_BITS 64
5400 #include <sys/types.h>
5401 /* Check that off_t can represent 2**63 - 1 correctly.
5402 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5403 since some C++ compilers masquerading as C compilers
5404 incorrectly reject 9223372036854775807. */
5405 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5406 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5407 && LARGE_OFF_T % 2147483647 == 1)
5408 ? 1 : -1];
5410 main ()
5414 return 0;
5416 _ACEOF
5417 if ac_fn_c_try_compile "$LINENO"; then :
5418 ac_cv_sys_file_offset_bits=64; break
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 ac_cv_sys_file_offset_bits=unknown
5422 break
5423 done
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5426 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5427 case $ac_cv_sys_file_offset_bits in #(
5428 no | unknown) ;;
5430 cat >>confdefs.h <<_ACEOF
5431 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5432 _ACEOF
5434 esac
5435 rm -rf conftest*
5436 if test $ac_cv_sys_file_offset_bits = unknown; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5438 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5439 if ${ac_cv_sys_large_files+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 while :; do
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 #include <sys/types.h>
5446 /* Check that off_t can represent 2**63 - 1 correctly.
5447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5448 since some C++ compilers masquerading as C compilers
5449 incorrectly reject 9223372036854775807. */
5450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5452 && LARGE_OFF_T % 2147483647 == 1)
5453 ? 1 : -1];
5455 main ()
5459 return 0;
5461 _ACEOF
5462 if ac_fn_c_try_compile "$LINENO"; then :
5463 ac_cv_sys_large_files=no; break
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 #define _LARGE_FILES 1
5469 #include <sys/types.h>
5470 /* Check that off_t can represent 2**63 - 1 correctly.
5471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5472 since some C++ compilers masquerading as C compilers
5473 incorrectly reject 9223372036854775807. */
5474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5476 && LARGE_OFF_T % 2147483647 == 1)
5477 ? 1 : -1];
5479 main ()
5483 return 0;
5485 _ACEOF
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 ac_cv_sys_large_files=1; break
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 ac_cv_sys_large_files=unknown
5491 break
5492 done
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5495 $as_echo "$ac_cv_sys_large_files" >&6; }
5496 case $ac_cv_sys_large_files in #(
5497 no | unknown) ;;
5499 cat >>confdefs.h <<_ACEOF
5500 #define _LARGE_FILES $ac_cv_sys_large_files
5501 _ACEOF
5503 esac
5504 rm -rf conftest*
5509 ac_ext=c
5510 ac_cpp='$CPP $CPPFLAGS'
5511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5515 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5516 # On Suns, sometimes $CPP names a directory.
5517 if test -n "$CPP" && test -d "$CPP"; then
5518 CPP=
5520 if test -z "$CPP"; then
5521 if ${ac_cv_prog_CPP+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 # Double quotes because CPP needs to be expanded
5525 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5527 ac_preproc_ok=false
5528 for ac_c_preproc_warn_flag in '' yes
5530 # Use a header file that comes with gcc, so configuring glibc
5531 # with a fresh cross-compiler works.
5532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5533 # <limits.h> exists even on freestanding compilers.
5534 # On the NeXT, cc -E runs the code through the compiler's parser,
5535 # not just through cpp. "Syntax error" is here to catch this case.
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 #ifdef __STDC__
5539 # include <limits.h>
5540 #else
5541 # include <assert.h>
5542 #endif
5543 Syntax error
5544 _ACEOF
5545 if ac_fn_c_try_cpp "$LINENO"; then :
5547 else
5548 # Broken: fails on valid input.
5549 continue
5551 rm -f conftest.err conftest.i conftest.$ac_ext
5553 # OK, works on sane cases. Now check whether nonexistent headers
5554 # can be detected and how.
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5557 #include <ac_nonexistent.h>
5558 _ACEOF
5559 if ac_fn_c_try_cpp "$LINENO"; then :
5560 # Broken: success on invalid input.
5561 continue
5562 else
5563 # Passes both tests.
5564 ac_preproc_ok=:
5565 break
5567 rm -f conftest.err conftest.i conftest.$ac_ext
5569 done
5570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5571 rm -f conftest.i conftest.err conftest.$ac_ext
5572 if $ac_preproc_ok; then :
5573 break
5576 done
5577 ac_cv_prog_CPP=$CPP
5580 CPP=$ac_cv_prog_CPP
5581 else
5582 ac_cv_prog_CPP=$CPP
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5585 $as_echo "$CPP" >&6; }
5586 ac_preproc_ok=false
5587 for ac_c_preproc_warn_flag in '' yes
5589 # Use a header file that comes with gcc, so configuring glibc
5590 # with a fresh cross-compiler works.
5591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5592 # <limits.h> exists even on freestanding compilers.
5593 # On the NeXT, cc -E runs the code through the compiler's parser,
5594 # not just through cpp. "Syntax error" is here to catch this case.
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5597 #ifdef __STDC__
5598 # include <limits.h>
5599 #else
5600 # include <assert.h>
5601 #endif
5602 Syntax error
5603 _ACEOF
5604 if ac_fn_c_try_cpp "$LINENO"; then :
5606 else
5607 # Broken: fails on valid input.
5608 continue
5610 rm -f conftest.err conftest.i conftest.$ac_ext
5612 # OK, works on sane cases. Now check whether nonexistent headers
5613 # can be detected and how.
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <ac_nonexistent.h>
5617 _ACEOF
5618 if ac_fn_c_try_cpp "$LINENO"; then :
5619 # Broken: success on invalid input.
5620 continue
5621 else
5622 # Passes both tests.
5623 ac_preproc_ok=:
5624 break
5626 rm -f conftest.err conftest.i conftest.$ac_ext
5628 done
5629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5630 rm -f conftest.i conftest.err conftest.$ac_ext
5631 if $ac_preproc_ok; then :
5633 else
5634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5636 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5637 See \`config.log' for more details" "$LINENO" 5; }
5640 ac_ext=c
5641 ac_cpp='$CPP $CPPFLAGS'
5642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5648 $as_echo_n "checking for ANSI C header files... " >&6; }
5649 if ${ac_cv_header_stdc+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #include <stdlib.h>
5655 #include <stdarg.h>
5656 #include <string.h>
5657 #include <float.h>
5660 main ()
5664 return 0;
5666 _ACEOF
5667 if ac_fn_c_try_compile "$LINENO"; then :
5668 ac_cv_header_stdc=yes
5669 else
5670 ac_cv_header_stdc=no
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 if test $ac_cv_header_stdc = yes; then
5675 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678 #include <string.h>
5680 _ACEOF
5681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5682 $EGREP "memchr" >/dev/null 2>&1; then :
5684 else
5685 ac_cv_header_stdc=no
5687 rm -f conftest*
5691 if test $ac_cv_header_stdc = yes; then
5692 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5695 #include <stdlib.h>
5697 _ACEOF
5698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5699 $EGREP "free" >/dev/null 2>&1; then :
5701 else
5702 ac_cv_header_stdc=no
5704 rm -f conftest*
5708 if test $ac_cv_header_stdc = yes; then
5709 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5710 if test "$cross_compiling" = yes; then :
5712 else
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 #include <ctype.h>
5716 #include <stdlib.h>
5717 #if ((' ' & 0x0FF) == 0x020)
5718 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5719 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5720 #else
5721 # define ISLOWER(c) \
5722 (('a' <= (c) && (c) <= 'i') \
5723 || ('j' <= (c) && (c) <= 'r') \
5724 || ('s' <= (c) && (c) <= 'z'))
5725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5726 #endif
5728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5730 main ()
5732 int i;
5733 for (i = 0; i < 256; i++)
5734 if (XOR (islower (i), ISLOWER (i))
5735 || toupper (i) != TOUPPER (i))
5736 return 2;
5737 return 0;
5739 _ACEOF
5740 if ac_fn_c_try_run "$LINENO"; then :
5742 else
5743 ac_cv_header_stdc=no
5745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5746 conftest.$ac_objext conftest.beam conftest.$ac_ext
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5752 $as_echo "$ac_cv_header_stdc" >&6; }
5753 if test $ac_cv_header_stdc = yes; then
5755 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5759 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5760 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5761 inttypes.h stdint.h unistd.h
5762 do :
5763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5764 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5766 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5767 cat >>confdefs.h <<_ACEOF
5768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5769 _ACEOF
5773 done
5776 for ac_header in \
5777 AL/al.h \
5778 ApplicationServices/ApplicationServices.h \
5779 AudioToolbox/AudioConverter.h \
5780 AudioUnit/AudioUnit.h \
5781 AudioUnit/AudioComponent.h \
5782 CL/cl.h \
5783 Carbon/Carbon.h \
5784 CoreAudio/CoreAudio.h \
5785 CoreServices/CoreServices.h \
5786 DiskArbitration/DiskArbitration.h \
5787 IOKit/IOKitLib.h \
5788 IOKit/hid/IOHIDLib.h \
5789 OpenAL/al.h \
5790 OpenCL/opencl.h \
5791 QuickTime/ImageCompression.h \
5792 Security/Security.h \
5793 alias.h \
5794 alsa/asoundlib.h \
5795 arpa/inet.h \
5796 arpa/nameser.h \
5797 asm/types.h \
5798 capi20.h \
5799 curses.h \
5800 direct.h \
5801 dirent.h \
5802 dlfcn.h \
5803 elf.h \
5804 float.h \
5805 fnmatch.h \
5806 fontconfig/fontconfig.h \
5807 getopt.h \
5808 gettext-po.h \
5809 grp.h \
5810 gsm.h \
5811 gsm/gsm.h \
5812 ieeefp.h \
5813 inet/mib2.h \
5814 io.h \
5815 jpeglib.h \
5816 kstat.h \
5817 lber.h \
5818 lcms.h \
5819 lcms/lcms.h \
5820 ldap.h \
5821 link.h \
5822 linux/cdrom.h \
5823 linux/compiler.h \
5824 linux/hdreg.h \
5825 linux/input.h \
5826 linux/ioctl.h \
5827 linux/joystick.h \
5828 linux/major.h \
5829 linux/param.h \
5830 linux/serial.h \
5831 linux/types.h \
5832 linux/ucdrom.h \
5833 mach-o/nlist.h \
5834 mach-o/loader.h \
5835 mach/mach.h \
5836 mach/machine.h \
5837 machine/cpu.h \
5838 machine/limits.h \
5839 machine/sysarch.h \
5840 mntent.h \
5841 mpg123.h \
5842 ncurses.h \
5843 netdb.h \
5844 netinet/in.h \
5845 netinet/in_systm.h \
5846 netinet/tcp.h \
5847 netinet/tcp_fsm.h \
5848 openssl/err.h \
5849 openssl/ssl.h \
5850 png.h \
5851 poll.h \
5852 port.h \
5853 process.h \
5854 pthread.h \
5855 pwd.h \
5856 sched.h \
5857 scsi/scsi.h \
5858 scsi/scsi_ioctl.h \
5859 scsi/sg.h \
5860 stdbool.h \
5861 stdint.h \
5862 strings.h \
5863 stropts.h \
5864 sys/asoundlib.h \
5865 sys/attr.h \
5866 sys/cdio.h \
5867 sys/elf32.h \
5868 sys/epoll.h \
5869 sys/event.h \
5870 sys/exec_elf.h \
5871 sys/filio.h \
5872 sys/inotify.h \
5873 sys/ioctl.h \
5874 sys/ipc.h \
5875 sys/limits.h \
5876 sys/link.h \
5877 sys/mman.h \
5878 sys/modem.h \
5879 sys/msg.h \
5880 sys/mtio.h \
5881 sys/param.h \
5882 sys/poll.h \
5883 sys/prctl.h \
5884 sys/protosw.h \
5885 sys/ptrace.h \
5886 sys/resource.h \
5887 sys/scsiio.h \
5888 sys/shm.h \
5889 sys/signal.h \
5890 sys/socket.h \
5891 sys/socketvar.h \
5892 sys/sockio.h \
5893 sys/statvfs.h \
5894 sys/strtio.h \
5895 sys/syscall.h \
5896 sys/tihdr.h \
5897 sys/time.h \
5898 sys/timeout.h \
5899 sys/times.h \
5900 sys/uio.h \
5901 sys/un.h \
5902 sys/utsname.h \
5903 sys/vm86.h \
5904 sys/wait.h \
5905 syscall.h \
5906 termios.h \
5907 tiffio.h \
5908 unistd.h \
5909 utime.h \
5910 valgrind/memcheck.h \
5911 valgrind/valgrind.h \
5912 zlib.h
5914 do :
5915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5916 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5917 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5918 cat >>confdefs.h <<_ACEOF
5919 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5920 _ACEOF
5924 done
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5927 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5928 if ${ac_cv_header_stat_broken+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933 #include <sys/types.h>
5934 #include <sys/stat.h>
5936 #if defined S_ISBLK && defined S_IFDIR
5937 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5938 #endif
5940 #if defined S_ISBLK && defined S_IFCHR
5941 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5942 #endif
5944 #if defined S_ISLNK && defined S_IFREG
5945 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5946 #endif
5948 #if defined S_ISSOCK && defined S_IFREG
5949 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5950 #endif
5952 _ACEOF
5953 if ac_fn_c_try_compile "$LINENO"; then :
5954 ac_cv_header_stat_broken=no
5955 else
5956 ac_cv_header_stat_broken=yes
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5961 $as_echo "$ac_cv_header_stat_broken" >&6; }
5962 if test $ac_cv_header_stat_broken = yes; then
5964 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5970 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5971 do :
5972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5973 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5974 #ifdef HAVE_SYS_PARAM_H
5975 # include <sys/param.h>
5976 #endif
5978 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5979 cat >>confdefs.h <<_ACEOF
5980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5981 _ACEOF
5985 done
5988 for ac_header in \
5989 netinet/ip.h \
5990 net/if.h \
5991 net/if_arp.h \
5992 net/if_dl.h \
5993 net/if_types.h \
5994 net/route.h \
5995 netinet/if_ether.h \
5996 netinet/if_inarp.h \
5997 netinet/in_pcb.h \
5998 netinet/ip_icmp.h \
5999 netinet/ip_var.h \
6000 netinet/udp.h \
6001 netipx/ipx.h \
6003 do :
6004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6005 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6006 #ifdef HAVE_SYS_SOCKET_H
6007 # include <sys/socket.h>
6008 #endif
6009 #ifdef HAVE_SYS_SOCKETVAR_H
6010 # include <sys/socketvar.h>
6011 #endif
6012 #ifdef HAVE_NET_ROUTE_H
6013 # include <net/route.h>
6014 #endif
6015 #ifdef HAVE_NETINET_IN_H
6016 # include <netinet/in.h>
6017 #endif
6018 #ifdef HAVE_NETINET_IN_SYSTM_H
6019 # include <netinet/in_systm.h>
6020 #endif
6021 #ifdef HAVE_NET_IF_H
6022 # include <net/if.h>
6023 #endif
6024 #ifdef HAVE_NETINET_IP_H
6025 # include <netinet/ip.h>
6026 #endif
6028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6029 cat >>confdefs.h <<_ACEOF
6030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6031 _ACEOF
6035 done
6038 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6039 do :
6040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6041 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6042 #ifdef HAVE_ALIAS_H
6043 # include <alias.h>
6044 #endif
6045 #ifdef HAVE_SYS_SOCKET_H
6046 # include <sys/socket.h>
6047 #endif
6048 #ifdef HAVE_SYS_SOCKETVAR_H
6049 # include <sys/socketvar.h>
6050 #endif
6051 #ifdef HAVE_SYS_TIMEOUT_H
6052 # include <sys/timeout.h>
6053 #endif
6054 #ifdef HAVE_NETINET_IN_H
6055 # include <netinet/in.h>
6056 #endif
6057 #ifdef HAVE_NETINET_IN_SYSTM_H
6058 # include <netinet/in_systm.h>
6059 #endif
6060 #ifdef HAVE_NETINET_IP_H
6061 # include <netinet/ip.h>
6062 #endif
6063 #ifdef HAVE_NETINET_IP_VAR_H
6064 # include <netinet/ip_var.h>
6065 #endif
6066 #ifdef HAVE_NETINET_IP_ICMP_H
6067 # include <netinet/ip_icmp.h>
6068 #endif
6069 #ifdef HAVE_NETINET_UDP_H
6070 # include <netinet/udp.h>
6071 #endif
6072 #ifdef HAVE_NETINET_TCP_H
6073 # include <netinet/tcp.h>
6074 #endif
6075 #ifdef HAVE_NETINET_TCP_TIMER_H
6076 #include <netinet/tcp_timer.h>
6077 #endif
6079 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6080 cat >>confdefs.h <<_ACEOF
6081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6082 _ACEOF
6086 done
6089 for ac_header in linux/ipx.h linux/irda.h
6090 do :
6091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6092 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6093 #ifdef HAVE_ASM_TYPES_H
6094 # include <asm/types.h>
6095 #endif
6096 #ifdef HAVE_SYS_SOCKET_H
6097 # include <sys/socket.h>
6098 #endif
6099 #ifdef HAVE_LINUX_TYPES_H
6100 # include <linux/types.h>
6101 #endif
6103 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6104 cat >>confdefs.h <<_ACEOF
6105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6106 _ACEOF
6110 done
6113 for ac_header in mach-o/dyld_images.h
6114 do :
6115 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6116 # include <stdbool.h>
6117 #endif
6118 #ifdef HAVE_STDINT_H
6119 # include <stdint.h>
6120 #endif
6122 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6123 cat >>confdefs.h <<_ACEOF
6124 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6125 _ACEOF
6129 done
6132 for ac_header in resolv.h
6133 do :
6134 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6135 #ifdef HAVE_SYS_SOCKET_H
6136 # include <sys/socket.h>
6137 #endif
6138 #ifdef HAVE_NETINET_IN_H
6139 # include <netinet/in.h>
6140 #endif
6141 #ifdef HAVE_ARPA_NAMESER_H
6142 # include <arpa/nameser.h>
6143 #endif
6145 if test "x$ac_cv_header_resolv_h" = xyes; then :
6146 cat >>confdefs.h <<_ACEOF
6147 #define HAVE_RESOLV_H 1
6148 _ACEOF
6152 done
6155 for ac_header in ifaddrs.h
6156 do :
6157 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6159 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6160 cat >>confdefs.h <<_ACEOF
6161 #define HAVE_IFADDRS_H 1
6162 _ACEOF
6166 done
6169 for ac_header in ucontext.h
6170 do :
6171 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6173 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6174 cat >>confdefs.h <<_ACEOF
6175 #define HAVE_UCONTEXT_H 1
6176 _ACEOF
6180 done
6183 for ac_header in sys/thr.h
6184 do :
6185 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6186 #ifdef HAVE_UCONTEXT_H
6187 #include <ucontext.h>
6188 #endif
6190 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6191 cat >>confdefs.h <<_ACEOF
6192 #define HAVE_SYS_THR_H 1
6193 _ACEOF
6197 done
6200 for ac_header in pthread_np.h
6201 do :
6202 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6203 #include <pthread.h>
6204 #endif
6206 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6207 cat >>confdefs.h <<_ACEOF
6208 #define HAVE_PTHREAD_NP_H 1
6209 _ACEOF
6213 done
6216 for ac_header in linux/videodev.h linux/videodev2.h
6217 do :
6218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6219 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6220 #include <sys/time.h>
6221 #endif
6222 #include <sys/types.h>
6223 #ifdef HAVE_ASM_TYPES_H
6224 #include <asm/types.h>
6225 #endif
6227 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6228 cat >>confdefs.h <<_ACEOF
6229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6230 _ACEOF
6234 done
6237 for ac_header in linux/capi.h
6238 do :
6239 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6241 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6242 cat >>confdefs.h <<_ACEOF
6243 #define HAVE_LINUX_CAPI_H 1
6244 _ACEOF
6248 done
6252 DLLEXT=""
6254 DLLFLAGS="-D_REENTRANT"
6256 LDSHARED=""
6258 LDDLLFLAGS=""
6260 LIBEXT="so"
6262 IMPLIBEXT="def"
6264 LDRPATH_INSTALL=""
6266 LDRPATH_LOCAL=""
6268 STATIC_IMPLIBEXT="def.a"
6269 # Extract the first word of "ldd", so it can be a program name with args.
6270 set dummy ldd; ac_word=$2
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272 $as_echo_n "checking for $ac_word... " >&6; }
6273 if ${ac_cv_path_LDD+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 case $LDD in
6277 [\\/]* | ?:[\\/]*)
6278 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 as_dummy="/sbin:/usr/sbin:$PATH"
6283 for as_dir in $as_dummy
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6293 done
6294 done
6295 IFS=$as_save_IFS
6297 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6299 esac
6301 LDD=$ac_cv_path_LDD
6302 if test -n "$LDD"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6304 $as_echo "$LDD" >&6; }
6305 else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6312 case $host_os in
6313 cygwin*|mingw32*)
6314 if test -n "$ac_tool_prefix"; then
6315 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6316 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if ${ac_cv_prog_DLLTOOL+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 if test -n "$DLLTOOL"; then
6323 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6332 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6336 done
6337 done
6338 IFS=$as_save_IFS
6342 DLLTOOL=$ac_cv_prog_DLLTOOL
6343 if test -n "$DLLTOOL"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6345 $as_echo "$DLLTOOL" >&6; }
6346 else
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6353 if test -z "$ac_cv_prog_DLLTOOL"; then
6354 ac_ct_DLLTOOL=$DLLTOOL
6355 # Extract the first word of "dlltool", so it can be a program name with args.
6356 set dummy dlltool; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 if test -n "$ac_ct_DLLTOOL"; then
6363 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6372 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
6376 done
6377 done
6378 IFS=$as_save_IFS
6382 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6383 if test -n "$ac_ct_DLLTOOL"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6385 $as_echo "$ac_ct_DLLTOOL" >&6; }
6386 else
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6391 if test "x$ac_ct_DLLTOOL" = x; then
6392 DLLTOOL="false"
6393 else
6394 case $cross_compiling:$ac_tool_warned in
6395 yes:)
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6398 ac_tool_warned=yes ;;
6399 esac
6400 DLLTOOL=$ac_ct_DLLTOOL
6402 else
6403 DLLTOOL="$ac_cv_prog_DLLTOOL"
6406 if test -n "$ac_tool_prefix"; then
6407 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6408 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if ${ac_cv_prog_DLLWRAP+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 if test -n "$DLLWRAP"; then
6415 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6416 else
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6428 done
6429 done
6430 IFS=$as_save_IFS
6434 DLLWRAP=$ac_cv_prog_DLLWRAP
6435 if test -n "$DLLWRAP"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6437 $as_echo "$DLLWRAP" >&6; }
6438 else
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6445 if test -z "$ac_cv_prog_DLLWRAP"; then
6446 ac_ct_DLLWRAP=$DLLWRAP
6447 # Extract the first word of "dllwrap", so it can be a program name with args.
6448 set dummy dllwrap; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 if test -n "$ac_ct_DLLWRAP"; then
6455 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6468 done
6469 done
6470 IFS=$as_save_IFS
6474 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6475 if test -n "$ac_ct_DLLWRAP"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6477 $as_echo "$ac_ct_DLLWRAP" >&6; }
6478 else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6483 if test "x$ac_ct_DLLWRAP" = x; then
6484 DLLWRAP="false"
6485 else
6486 case $cross_compiling:$ac_tool_warned in
6487 yes:)
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6490 ac_tool_warned=yes ;;
6491 esac
6492 DLLWRAP=$ac_ct_DLLWRAP
6494 else
6495 DLLWRAP="$ac_cv_prog_DLLWRAP"
6498 if test "$DLLWRAP" = "false"; then
6499 LIBEXT="a"
6500 else
6501 LIBEXT="dll"
6503 IMPLIBEXT="a"
6504 STATIC_IMPLIBEXT="a"
6505 enable_iphlpapi=${enable_iphlpapi:-no}
6506 enable_kernel32=${enable_kernel32:-no}
6507 enable_msvcrt=${enable_msvcrt:-no}
6508 enable_ntdll=${enable_ntdll:-no}
6509 enable_ws2_32=${enable_ws2_32:-no}
6510 enable_loader=${enable_loader:-no}
6511 enable_server=${enable_server:-no}
6512 with_x=${with_x:-no}
6513 with_pthread=${with_pthread:-no}
6515 darwin*|macosx*)
6516 DLLEXT=".so"
6517 LIBEXT="dylib"
6518 DLLFLAGS="$DLLFLAGS -fPIC"
6519 LDDLLFLAGS="-bundle -multiply_defined suppress"
6520 LIBWINE_LDFLAGS="-multiply_defined suppress"
6521 LDSHARED="\$(CC) -dynamiclib"
6522 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6523 COREFOUNDATIONLIB="-framework CoreFoundation"
6525 IOKITLIB="-framework IOKit -framework CoreFoundation"
6527 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6529 CORESERVICESLIB="-framework CoreServices"
6531 case $host_os in
6532 darwin11*)
6533 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6536 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6538 esac
6539 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6540 then
6541 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6544 if test "$ac_cv_header_Security_Security_h" = "yes"
6545 then
6546 SECURITYLIB="-framework Security -framework CoreFoundation"
6548 ac_save_LIBS="$LIBS"
6549 LIBS="$LIBS $SECURITYLIB"
6550 for ac_func in SSLCopyPeerCertificates
6551 do :
6552 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6553 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6554 cat >>confdefs.h <<_ACEOF
6555 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6556 _ACEOF
6559 done
6561 LIBS="$ac_save_LIBS"
6562 with_gnutls=${with_gnutls:-no}
6564 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6565 then
6566 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6567 then
6568 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6570 else
6571 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6574 ac_save_LIBS="$LIBS"
6575 LIBS="$LIBS $COREAUDIO"
6576 for ac_func in AUGraphAddNode
6577 do :
6578 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6579 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6580 cat >>confdefs.h <<_ACEOF
6581 #define HAVE_AUGRAPHADDNODE 1
6582 _ACEOF
6585 done
6587 LIBS="$ac_save_LIBS"
6589 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6590 then
6591 FRAMEWORK_OPENAL="-framework OpenAL"
6594 cat >>confdefs.h <<_ACEOF
6595 #define HAVE_OPENAL 1
6596 _ACEOF
6598 ac_cv_lib_openal=yes
6600 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6601 then
6602 LIBOPENCL="-framework OpenCL"
6604 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6606 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6607 then
6608 ac_save_LIBS="$LIBS"
6609 LIBS="$LIBS $IOKITLIB"
6610 for ac_func in IOHIDManagerCreate
6611 do :
6612 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6613 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6614 cat >>confdefs.h <<_ACEOF
6615 #define HAVE_IOHIDMANAGERCREATE 1
6616 _ACEOF
6619 done
6621 LIBS="$ac_save_LIBS"
6623 case $host_cpu in
6624 *powerpc*)
6625 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6626 esac
6627 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6628 then
6629 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6631 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6632 else
6633 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6635 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6636 then
6637 CARBONLIB="-framework Carbon"
6639 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6641 if test "x$enable_win16" = "xyes"
6642 then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6644 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6645 if test "$cross_compiling" = yes; then :
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6647 $as_echo "cross-compiling, assuming yes" >&6; }
6648 else
6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650 /* end confdefs.h. */
6651 asm(".text\n"
6652 "bad:\tnop;nop\n"
6653 "good:\tnop;nop\n\t"
6654 ".globl _testfunc\n"
6655 "_testfunc:\tcallw good");
6656 extern void testfunc();
6658 main ()
6660 unsigned short *p = (unsigned short *)testfunc;
6661 return p[0] != 0xe866 || p[1] != 0xfffa
6663 return 0;
6665 _ACEOF
6666 if ac_fn_c_try_run "$LINENO"; then :
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6668 $as_echo "yes" >&6; }
6669 else
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6672 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
6674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6675 conftest.$ac_objext conftest.beam conftest.$ac_ext
6681 DLLFLAGS="$DLLFLAGS -fPIC"
6682 DLLEXT=".so"
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6684 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6685 if ${ac_cv_c_dll_gnuelf+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 ac_wine_try_cflags_saved=$CFLAGS
6689 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 void myfunc() {}
6693 _ACEOF
6694 if ac_fn_c_try_link "$LINENO"; then :
6695 ac_cv_c_dll_gnuelf="yes"
6696 else
6697 ac_cv_c_dll_gnuelf="no"
6699 rm -f core conftest.err conftest.$ac_objext \
6700 conftest$ac_exeext conftest.$ac_ext
6701 CFLAGS=$ac_wine_try_cflags_saved
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6704 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6705 if test "$ac_cv_c_dll_gnuelf" = "yes"
6706 then
6707 LDSHARED="\$(CC) -shared"
6708 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6710 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6711 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6712 $as_echo_n "(cached) " >&6
6713 else
6714 ac_wine_try_cflags_saved=$CFLAGS
6715 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 int main(int argc, char **argv) { return 0; }
6719 _ACEOF
6720 if ac_fn_c_try_link "$LINENO"; then :
6721 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6722 else
6723 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6725 rm -f core conftest.err conftest.$ac_objext \
6726 conftest$ac_exeext conftest.$ac_ext
6727 CFLAGS=$ac_wine_try_cflags_saved
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6730 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6731 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6732 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6733 else
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6735 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6736 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 ac_wine_try_cflags_saved=$CFLAGS
6740 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 int main(int argc, char **argv) { return 0; }
6744 _ACEOF
6745 if ac_fn_c_try_link "$LINENO"; then :
6746 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6747 else
6748 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6750 rm -f core conftest.err conftest.$ac_objext \
6751 conftest$ac_exeext conftest.$ac_ext
6752 CFLAGS=$ac_wine_try_cflags_saved
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6755 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6756 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6757 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6762 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6763 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 ac_wine_try_cflags_saved=$CFLAGS
6767 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 int main(int argc, char **argv) { return 0; }
6771 _ACEOF
6772 if ac_fn_c_try_link "$LINENO"; then :
6773 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6774 else
6775 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6777 rm -f core conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
6779 CFLAGS=$ac_wine_try_cflags_saved
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6782 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6783 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6784 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
6788 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6789 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 ac_wine_try_cflags_saved=$CFLAGS
6793 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6796 int main(int argc, char **argv) { return 0; }
6797 _ACEOF
6798 if ac_fn_c_try_link "$LINENO"; then :
6799 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6800 else
6801 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6803 rm -f core conftest.err conftest.$ac_objext \
6804 conftest$ac_exeext conftest.$ac_ext
6805 CFLAGS=$ac_wine_try_cflags_saved
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6808 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6809 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6810 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6813 echo '{ global: *; };' >conftest.map
6814 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6816 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6817 if eval \${$as_ac_var+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 ac_wine_try_cflags_saved=$CFLAGS
6821 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6824 int main(int argc, char **argv) { return 0; }
6825 _ACEOF
6826 if ac_fn_c_try_link "$LINENO"; then :
6827 eval "$as_ac_var=yes"
6828 else
6829 eval "$as_ac_var=no"
6831 rm -f core conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6833 CFLAGS=$ac_wine_try_cflags_saved
6835 eval ac_res=\$$as_ac_var
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6837 $as_echo "$ac_res" >&6; }
6838 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6839 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6841 rm -f conftest.map
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6844 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6845 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 ac_wine_try_cflags_saved=$CFLAGS
6849 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 int main(int argc, char **argv) { return 0; }
6853 _ACEOF
6854 if ac_fn_c_try_link "$LINENO"; then :
6855 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6856 else
6857 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6859 rm -f core conftest.err conftest.$ac_objext \
6860 conftest$ac_exeext conftest.$ac_ext
6861 CFLAGS=$ac_wine_try_cflags_saved
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6864 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6865 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6866 LDEXECFLAGS="-Wl,--export-dynamic"
6870 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6872 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6873 if eval \${$as_ac_var+:} false; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 ac_wine_try_cflags_saved=$CFLAGS
6877 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 int main(int argc, char **argv) { return 0; }
6881 _ACEOF
6882 if ac_fn_c_try_link "$LINENO"; then :
6883 eval "$as_ac_var=yes"
6884 else
6885 eval "$as_ac_var=no"
6887 rm -f core conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
6889 CFLAGS=$ac_wine_try_cflags_saved
6891 eval ac_res=\$$as_ac_var
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6893 $as_echo "$ac_res" >&6; }
6894 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6895 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6896 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6897 else
6898 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6900 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6901 if eval \${$as_ac_var+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 ac_wine_try_cflags_saved=$CFLAGS
6905 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6908 int main(int argc, char **argv) { return 0; }
6909 _ACEOF
6910 if ac_fn_c_try_link "$LINENO"; then :
6911 eval "$as_ac_var=yes"
6912 else
6913 eval "$as_ac_var=no"
6915 rm -f core conftest.err conftest.$ac_objext \
6916 conftest$ac_exeext conftest.$ac_ext
6917 CFLAGS=$ac_wine_try_cflags_saved
6919 eval ac_res=\$$as_ac_var
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6921 $as_echo "$ac_res" >&6; }
6922 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6923 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6924 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6929 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6930 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6931 $as_echo_n "(cached) " >&6
6932 else
6933 ac_wine_try_cflags_saved=$CFLAGS
6934 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6937 int main(int argc, char **argv) { return 0; }
6938 _ACEOF
6939 if ac_fn_c_try_link "$LINENO"; then :
6940 ac_cv_cflags__Wl___enable_new_dtags=yes
6941 else
6942 ac_cv_cflags__Wl___enable_new_dtags=no
6944 rm -f core conftest.err conftest.$ac_objext \
6945 conftest$ac_exeext conftest.$ac_ext
6946 CFLAGS=$ac_wine_try_cflags_saved
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6949 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6950 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6951 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6954 case $host_cpu in
6955 *i[3456789]86* | x86_64)
6956 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6958 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6959 if eval \${$as_ac_var+:} false; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 ac_wine_try_cflags_saved=$CFLAGS
6963 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6966 int main(int argc, char **argv) { return 0; }
6967 _ACEOF
6968 if ac_fn_c_try_link "$LINENO"; then :
6969 eval "$as_ac_var=yes"
6970 else
6971 eval "$as_ac_var=no"
6973 rm -f core conftest.err conftest.$ac_objext \
6974 conftest$ac_exeext conftest.$ac_ext
6975 CFLAGS=$ac_wine_try_cflags_saved
6977 eval ac_res=\$$as_ac_var
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6979 $as_echo "$ac_res" >&6; }
6980 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6981 case $host_os in
6982 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6983 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6984 esac
6987 # Extract the first word of "prelink", so it can be a program name with args.
6988 set dummy prelink; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_path_PRELINK+:} false; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 case $PRELINK in
6995 [\\/]* | ?:[\\/]*)
6996 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in /sbin /usr/sbin $PATH
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7010 done
7011 done
7012 IFS=$as_save_IFS
7014 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7016 esac
7018 PRELINK=$ac_cv_path_PRELINK
7019 if test -n "$PRELINK"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7021 $as_echo "$PRELINK" >&6; }
7022 else
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7028 if test "x$PRELINK" = xfalse
7029 then
7030 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7033 esac
7035 else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7037 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7038 if ${ac_cv_c_dll_unixware+:} false; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 ac_wine_try_cflags_saved=$CFLAGS
7042 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7045 void myfunc() {}
7046 _ACEOF
7047 if ac_fn_c_try_link "$LINENO"; then :
7048 ac_cv_c_dll_unixware="yes"
7049 else
7050 ac_cv_c_dll_unixware="no"
7052 rm -f core conftest.err conftest.$ac_objext \
7053 conftest$ac_exeext conftest.$ac_ext
7054 CFLAGS=$ac_wine_try_cflags_saved
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7057 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7058 if test "$ac_cv_c_dll_unixware" = "yes"
7059 then
7060 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7061 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7063 else
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7065 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7066 if ${ac_cv_c_dll_hpux+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 ac_wine_try_cflags_saved=$CFLAGS
7070 CFLAGS="$CFLAGS -shared"
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7073 void myfunc() {}
7074 _ACEOF
7075 if ac_fn_c_try_link "$LINENO"; then :
7076 ac_cv_c_dll_hpux="yes"
7077 else
7078 ac_cv_c_dll_hpux="no"
7080 rm -f core conftest.err conftest.$ac_objext \
7081 conftest$ac_exeext conftest.$ac_ext
7082 CFLAGS=$ac_wine_try_cflags_saved
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7085 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7086 if test "$ac_cv_c_dll_hpux" = "yes"
7087 then
7088 LIBEXT="sl"
7089 DLLEXT=".sl"
7090 LDDLLFLAGS="-shared -fPIC"
7091 LDSHARED="\$(CC) -shared"
7096 esac
7098 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7099 enable_winequartz_drv=${enable_winequartz_drv:-no}
7101 if test "$LIBEXT" = "a"; then
7102 as_fn_error $? "could not find a way to build shared libraries.
7103 It is currently not possible to build Wine without shared library
7104 (.so) support to allow transparent switch between .so and .dll files.
7105 If you are using Linux, you will need a newer binutils.
7106 " "$LINENO" 5
7109 CROSSTEST_DISABLE=\#
7111 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7112 then
7113 case "$host_cpu" in
7114 i[3456789]86*)
7115 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 " ;;
7116 x86_64)
7117 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 " ;;
7119 ac_prefix_list="" ;;
7120 esac
7121 for ac_prog in $ac_prefix_list
7123 # Extract the first word of "$ac_prog", so it can be a program name with args.
7124 set dummy $ac_prog; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if ${ac_cv_prog_CROSSCC+:} false; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130 if test -n "$CROSSCC"; then
7131 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_prog_CROSSCC="$ac_prog"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7144 done
7145 done
7146 IFS=$as_save_IFS
7150 CROSSCC=$ac_cv_prog_CROSSCC
7151 if test -n "$CROSSCC"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7153 $as_echo "$CROSSCC" >&6; }
7154 else
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7160 test -n "$CROSSCC" && break
7161 done
7162 test -n "$CROSSCC" || CROSSCC="false"
7164 if test "$CROSSCC" != "false"
7165 then
7166 ac_save_CC="$CC"
7167 CC="$CROSSCC"
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7169 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7174 main ()
7178 return 0;
7180 _ACEOF
7181 if ac_fn_c_try_compile "$LINENO"; then :
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7183 $as_echo "yes" >&6; }
7184 set x $CROSSCC
7185 shift
7186 target=""
7187 while test $# -ge 1
7189 case "$1" in
7190 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7191 esac
7192 shift
7193 done
7194 if test -n "$target"
7195 then
7196 CROSSTEST_DISABLE=""
7197 CROSSTARGET="$target"
7200 else
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205 CC="$ac_save_CC"
7210 if test "$ac_cv_header_pthread_h" = "yes"
7211 then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7213 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7214 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 ac_check_lib_save_LIBS=$LIBS
7218 LIBS="-lpthread $LIBS"
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7222 /* Override any GCC internal prototype to avoid an error.
7223 Use char because int might match the return type of a GCC
7224 builtin and then its argument prototype would still apply. */
7225 #ifdef __cplusplus
7226 extern "C"
7227 #endif
7228 char pthread_create ();
7230 main ()
7232 return pthread_create ();
7234 return 0;
7236 _ACEOF
7237 if ac_fn_c_try_link "$LINENO"; then :
7238 ac_cv_lib_pthread_pthread_create=yes
7239 else
7240 ac_cv_lib_pthread_pthread_create=no
7242 rm -f core conftest.err conftest.$ac_objext \
7243 conftest$ac_exeext conftest.$ac_ext
7244 LIBS=$ac_check_lib_save_LIBS
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7247 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7248 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7249 LIBPTHREAD="-lpthread"
7254 if test "x$LIBPTHREAD" = "x"; then :
7255 case "x$with_pthread" in
7256 xno) ;;
7257 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7258 Wine cannot support threads without libpthread.
7259 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7260 esac
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7265 $as_echo_n "checking for X... " >&6; }
7268 # Check whether --with-x was given.
7269 if test "${with_x+set}" = set; then :
7270 withval=$with_x;
7273 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7274 if test "x$with_x" = xno; then
7275 # The user explicitly disabled X.
7276 have_x=disabled
7277 else
7278 case $x_includes,$x_libraries in #(
7279 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7280 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7281 $as_echo_n "(cached) " >&6
7282 else
7283 # One or both of the vars are not set, and there is no cached value.
7284 ac_x_includes=no ac_x_libraries=no
7285 rm -f -r conftest.dir
7286 if mkdir conftest.dir; then
7287 cd conftest.dir
7288 cat >Imakefile <<'_ACEOF'
7289 incroot:
7290 @echo incroot='${INCROOT}'
7291 usrlibdir:
7292 @echo usrlibdir='${USRLIBDIR}'
7293 libdir:
7294 @echo libdir='${LIBDIR}'
7295 _ACEOF
7296 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7297 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7298 for ac_var in incroot usrlibdir libdir; do
7299 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7300 done
7301 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7302 for ac_extension in a so sl dylib la dll; do
7303 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7304 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7305 ac_im_usrlibdir=$ac_im_libdir; break
7307 done
7308 # Screen out bogus values from the imake configuration. They are
7309 # bogus both because they are the default anyway, and because
7310 # using them would break gcc on systems where it needs fixed includes.
7311 case $ac_im_incroot in
7312 /usr/include) ac_x_includes= ;;
7313 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7314 esac
7315 case $ac_im_usrlibdir in
7316 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7317 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7318 esac
7320 cd ..
7321 rm -f -r conftest.dir
7324 # Standard set of common directories for X headers.
7325 # Check X11 before X11Rn because it is often a symlink to the current release.
7326 ac_x_header_dirs='
7327 /usr/X11/include
7328 /usr/X11R7/include
7329 /usr/X11R6/include
7330 /usr/X11R5/include
7331 /usr/X11R4/include
7333 /usr/include/X11
7334 /usr/include/X11R7
7335 /usr/include/X11R6
7336 /usr/include/X11R5
7337 /usr/include/X11R4
7339 /usr/local/X11/include
7340 /usr/local/X11R7/include
7341 /usr/local/X11R6/include
7342 /usr/local/X11R5/include
7343 /usr/local/X11R4/include
7345 /usr/local/include/X11
7346 /usr/local/include/X11R7
7347 /usr/local/include/X11R6
7348 /usr/local/include/X11R5
7349 /usr/local/include/X11R4
7351 /usr/X386/include
7352 /usr/x386/include
7353 /usr/XFree86/include/X11
7355 /usr/include
7356 /usr/local/include
7357 /usr/unsupported/include
7358 /usr/athena/include
7359 /usr/local/x11r5/include
7360 /usr/lpp/Xamples/include
7362 /usr/openwin/include
7363 /usr/openwin/share/include'
7365 if test "$ac_x_includes" = no; then
7366 # Guess where to find include files, by looking for Xlib.h.
7367 # First, try using that file with no special directory specified.
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7370 #include <X11/Xlib.h>
7371 _ACEOF
7372 if ac_fn_c_try_cpp "$LINENO"; then :
7373 # We can compile using X headers with no special include directory.
7374 ac_x_includes=
7375 else
7376 for ac_dir in $ac_x_header_dirs; do
7377 if test -r "$ac_dir/X11/Xlib.h"; then
7378 ac_x_includes=$ac_dir
7379 break
7381 done
7383 rm -f conftest.err conftest.i conftest.$ac_ext
7384 fi # $ac_x_includes = no
7386 if test "$ac_x_libraries" = no; then
7387 # Check for the libraries.
7388 # See if we find them without any special options.
7389 # Don't add to $LIBS permanently.
7390 ac_save_LIBS=$LIBS
7391 LIBS="-lX11 $LIBS"
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394 #include <X11/Xlib.h>
7396 main ()
7398 XrmInitialize ()
7400 return 0;
7402 _ACEOF
7403 if ac_fn_c_try_link "$LINENO"; then :
7404 LIBS=$ac_save_LIBS
7405 # We can link X programs with no special library path.
7406 ac_x_libraries=
7407 else
7408 LIBS=$ac_save_LIBS
7409 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7411 # Don't even attempt the hair of trying to link an X program!
7412 for ac_extension in a so sl dylib la dll; do
7413 if test -r "$ac_dir/libX11.$ac_extension"; then
7414 ac_x_libraries=$ac_dir
7415 break 2
7417 done
7418 done
7420 rm -f core conftest.err conftest.$ac_objext \
7421 conftest$ac_exeext conftest.$ac_ext
7422 fi # $ac_x_libraries = no
7424 case $ac_x_includes,$ac_x_libraries in #(
7425 no,* | *,no | *\'*)
7426 # Didn't find X, or a directory has "'" in its name.
7427 ac_cv_have_x="have_x=no";; #(
7429 # Record where we found X for the cache.
7430 ac_cv_have_x="have_x=yes\
7431 ac_x_includes='$ac_x_includes'\
7432 ac_x_libraries='$ac_x_libraries'"
7433 esac
7435 ;; #(
7436 *) have_x=yes;;
7437 esac
7438 eval "$ac_cv_have_x"
7439 fi # $with_x != no
7441 if test "$have_x" != yes; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7443 $as_echo "$have_x" >&6; }
7444 no_x=yes
7445 else
7446 # If each of the values was on the command line, it overrides each guess.
7447 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7448 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7449 # Update the cache value to reflect the command line values.
7450 ac_cv_have_x="have_x=yes\
7451 ac_x_includes='$x_includes'\
7452 ac_x_libraries='$x_libraries'"
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7454 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7457 if test "$no_x" = yes; then
7458 # Not all programs may use this symbol, but it does not hurt to define it.
7460 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7462 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7463 else
7464 if test -n "$x_includes"; then
7465 X_CFLAGS="$X_CFLAGS -I$x_includes"
7468 # It would also be nice to do this for all -L options, not just this one.
7469 if test -n "$x_libraries"; then
7470 X_LIBS="$X_LIBS -L$x_libraries"
7471 # For Solaris; some versions of Sun CC require a space after -R and
7472 # others require no space. Words are not sufficient . . . .
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7474 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7475 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7476 ac_xsave_c_werror_flag=$ac_c_werror_flag
7477 ac_c_werror_flag=yes
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7482 main ()
7486 return 0;
7488 _ACEOF
7489 if ac_fn_c_try_link "$LINENO"; then :
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7492 X_LIBS="$X_LIBS -R$x_libraries"
7493 else
7494 LIBS="$ac_xsave_LIBS -R $x_libraries"
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7499 main ()
7503 return 0;
7505 _ACEOF
7506 if ac_fn_c_try_link "$LINENO"; then :
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7508 $as_echo "yes" >&6; }
7509 X_LIBS="$X_LIBS -R $x_libraries"
7510 else
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7512 $as_echo "neither works" >&6; }
7514 rm -f core conftest.err conftest.$ac_objext \
7515 conftest$ac_exeext conftest.$ac_ext
7517 rm -f core conftest.err conftest.$ac_objext \
7518 conftest$ac_exeext conftest.$ac_ext
7519 ac_c_werror_flag=$ac_xsave_c_werror_flag
7520 LIBS=$ac_xsave_LIBS
7523 # Check for system-dependent libraries X programs must link with.
7524 # Do this before checking for the system-independent R6 libraries
7525 # (-lICE), since we may need -lsocket or whatever for X linking.
7527 if test "$ISC" = yes; then
7528 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7529 else
7530 # Martyn Johnson says this is needed for Ultrix, if the X
7531 # libraries were built with DECnet support. And Karl Berry says
7532 # the Alpha needs dnet_stub (dnet does not exist).
7533 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7537 /* Override any GCC internal prototype to avoid an error.
7538 Use char because int might match the return type of a GCC
7539 builtin and then its argument prototype would still apply. */
7540 #ifdef __cplusplus
7541 extern "C"
7542 #endif
7543 char XOpenDisplay ();
7545 main ()
7547 return XOpenDisplay ();
7549 return 0;
7551 _ACEOF
7552 if ac_fn_c_try_link "$LINENO"; then :
7554 else
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7556 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7557 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7558 $as_echo_n "(cached) " >&6
7559 else
7560 ac_check_lib_save_LIBS=$LIBS
7561 LIBS="-ldnet $LIBS"
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7565 /* Override any GCC internal prototype to avoid an error.
7566 Use char because int might match the return type of a GCC
7567 builtin and then its argument prototype would still apply. */
7568 #ifdef __cplusplus
7569 extern "C"
7570 #endif
7571 char dnet_ntoa ();
7573 main ()
7575 return dnet_ntoa ();
7577 return 0;
7579 _ACEOF
7580 if ac_fn_c_try_link "$LINENO"; then :
7581 ac_cv_lib_dnet_dnet_ntoa=yes
7582 else
7583 ac_cv_lib_dnet_dnet_ntoa=no
7585 rm -f core conftest.err conftest.$ac_objext \
7586 conftest$ac_exeext conftest.$ac_ext
7587 LIBS=$ac_check_lib_save_LIBS
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7590 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7591 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7592 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7595 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7597 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7598 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 ac_check_lib_save_LIBS=$LIBS
7602 LIBS="-ldnet_stub $LIBS"
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7606 /* Override any GCC internal prototype to avoid an error.
7607 Use char because int might match the return type of a GCC
7608 builtin and then its argument prototype would still apply. */
7609 #ifdef __cplusplus
7610 extern "C"
7611 #endif
7612 char dnet_ntoa ();
7614 main ()
7616 return dnet_ntoa ();
7618 return 0;
7620 _ACEOF
7621 if ac_fn_c_try_link "$LINENO"; then :
7622 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7623 else
7624 ac_cv_lib_dnet_stub_dnet_ntoa=no
7626 rm -f core conftest.err conftest.$ac_objext \
7627 conftest$ac_exeext conftest.$ac_ext
7628 LIBS=$ac_check_lib_save_LIBS
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7631 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7632 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7633 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7638 rm -f core conftest.err conftest.$ac_objext \
7639 conftest$ac_exeext conftest.$ac_ext
7640 LIBS="$ac_xsave_LIBS"
7642 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7643 # to get the SysV transport functions.
7644 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7645 # needs -lnsl.
7646 # The nsl library prevents programs from opening the X display
7647 # on Irix 5.2, according to T.E. Dickey.
7648 # The functions gethostbyname, getservbyname, and inet_addr are
7649 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7650 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7651 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7655 if test $ac_cv_func_gethostbyname = no; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7657 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7658 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 ac_check_lib_save_LIBS=$LIBS
7662 LIBS="-lnsl $LIBS"
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7666 /* Override any GCC internal prototype to avoid an error.
7667 Use char because int might match the return type of a GCC
7668 builtin and then its argument prototype would still apply. */
7669 #ifdef __cplusplus
7670 extern "C"
7671 #endif
7672 char gethostbyname ();
7674 main ()
7676 return gethostbyname ();
7678 return 0;
7680 _ACEOF
7681 if ac_fn_c_try_link "$LINENO"; then :
7682 ac_cv_lib_nsl_gethostbyname=yes
7683 else
7684 ac_cv_lib_nsl_gethostbyname=no
7686 rm -f core conftest.err conftest.$ac_objext \
7687 conftest$ac_exeext conftest.$ac_ext
7688 LIBS=$ac_check_lib_save_LIBS
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7691 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7692 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7693 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7696 if test $ac_cv_lib_nsl_gethostbyname = no; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7698 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7699 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 ac_check_lib_save_LIBS=$LIBS
7703 LIBS="-lbsd $LIBS"
7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705 /* end confdefs.h. */
7707 /* Override any GCC internal prototype to avoid an error.
7708 Use char because int might match the return type of a GCC
7709 builtin and then its argument prototype would still apply. */
7710 #ifdef __cplusplus
7711 extern "C"
7712 #endif
7713 char gethostbyname ();
7715 main ()
7717 return gethostbyname ();
7719 return 0;
7721 _ACEOF
7722 if ac_fn_c_try_link "$LINENO"; then :
7723 ac_cv_lib_bsd_gethostbyname=yes
7724 else
7725 ac_cv_lib_bsd_gethostbyname=no
7727 rm -f core conftest.err conftest.$ac_objext \
7728 conftest$ac_exeext conftest.$ac_ext
7729 LIBS=$ac_check_lib_save_LIBS
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7732 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7733 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7734 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7740 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7741 # socket/setsockopt and other routines are undefined under SCO ODT
7742 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7743 # on later versions), says Simon Leinen: it contains gethostby*
7744 # variants that don't use the name server (or something). -lsocket
7745 # must be given before -lnsl if both are needed. We assume that
7746 # if connect needs -lnsl, so does gethostbyname.
7747 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7748 if test "x$ac_cv_func_connect" = xyes; then :
7752 if test $ac_cv_func_connect = no; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7754 $as_echo_n "checking for connect in -lsocket... " >&6; }
7755 if ${ac_cv_lib_socket_connect+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 ac_check_lib_save_LIBS=$LIBS
7759 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7763 /* Override any GCC internal prototype to avoid an error.
7764 Use char because int might match the return type of a GCC
7765 builtin and then its argument prototype would still apply. */
7766 #ifdef __cplusplus
7767 extern "C"
7768 #endif
7769 char connect ();
7771 main ()
7773 return connect ();
7775 return 0;
7777 _ACEOF
7778 if ac_fn_c_try_link "$LINENO"; then :
7779 ac_cv_lib_socket_connect=yes
7780 else
7781 ac_cv_lib_socket_connect=no
7783 rm -f core conftest.err conftest.$ac_objext \
7784 conftest$ac_exeext conftest.$ac_ext
7785 LIBS=$ac_check_lib_save_LIBS
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7788 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7789 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7790 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7795 # Guillermo Gomez says -lposix is necessary on A/UX.
7796 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7797 if test "x$ac_cv_func_remove" = xyes; then :
7801 if test $ac_cv_func_remove = no; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7803 $as_echo_n "checking for remove in -lposix... " >&6; }
7804 if ${ac_cv_lib_posix_remove+:} false; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807 ac_check_lib_save_LIBS=$LIBS
7808 LIBS="-lposix $LIBS"
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7812 /* Override any GCC internal prototype to avoid an error.
7813 Use char because int might match the return type of a GCC
7814 builtin and then its argument prototype would still apply. */
7815 #ifdef __cplusplus
7816 extern "C"
7817 #endif
7818 char remove ();
7820 main ()
7822 return remove ();
7824 return 0;
7826 _ACEOF
7827 if ac_fn_c_try_link "$LINENO"; then :
7828 ac_cv_lib_posix_remove=yes
7829 else
7830 ac_cv_lib_posix_remove=no
7832 rm -f core conftest.err conftest.$ac_objext \
7833 conftest$ac_exeext conftest.$ac_ext
7834 LIBS=$ac_check_lib_save_LIBS
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7837 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7838 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7839 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7844 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7845 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7846 if test "x$ac_cv_func_shmat" = xyes; then :
7850 if test $ac_cv_func_shmat = no; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7852 $as_echo_n "checking for shmat in -lipc... " >&6; }
7853 if ${ac_cv_lib_ipc_shmat+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 ac_check_lib_save_LIBS=$LIBS
7857 LIBS="-lipc $LIBS"
7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7861 /* Override any GCC internal prototype to avoid an error.
7862 Use char because int might match the return type of a GCC
7863 builtin and then its argument prototype would still apply. */
7864 #ifdef __cplusplus
7865 extern "C"
7866 #endif
7867 char shmat ();
7869 main ()
7871 return shmat ();
7873 return 0;
7875 _ACEOF
7876 if ac_fn_c_try_link "$LINENO"; then :
7877 ac_cv_lib_ipc_shmat=yes
7878 else
7879 ac_cv_lib_ipc_shmat=no
7881 rm -f core conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7883 LIBS=$ac_check_lib_save_LIBS
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7886 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7887 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7888 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7894 # Check for libraries that X11R6 Xt/Xaw programs need.
7895 ac_save_LDFLAGS=$LDFLAGS
7896 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7897 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7898 # check for ICE first), but we must link in the order -lSM -lICE or
7899 # we get undefined symbols. So assume we have SM if we have ICE.
7900 # These have to be linked with before -lX11, unlike the other
7901 # libraries we check for below, so use a different variable.
7902 # John Interrante, Karl Berry
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7904 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7905 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 ac_check_lib_save_LIBS=$LIBS
7909 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7913 /* Override any GCC internal prototype to avoid an error.
7914 Use char because int might match the return type of a GCC
7915 builtin and then its argument prototype would still apply. */
7916 #ifdef __cplusplus
7917 extern "C"
7918 #endif
7919 char IceConnectionNumber ();
7921 main ()
7923 return IceConnectionNumber ();
7925 return 0;
7927 _ACEOF
7928 if ac_fn_c_try_link "$LINENO"; then :
7929 ac_cv_lib_ICE_IceConnectionNumber=yes
7930 else
7931 ac_cv_lib_ICE_IceConnectionNumber=no
7933 rm -f core conftest.err conftest.$ac_objext \
7934 conftest$ac_exeext conftest.$ac_ext
7935 LIBS=$ac_check_lib_save_LIBS
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7938 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7939 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7940 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7943 LDFLAGS=$ac_save_LDFLAGS
7948 if test "$have_x" = "yes"
7949 then
7950 XLIB="-lX11"
7951 ac_save_CPPFLAGS="$CPPFLAGS"
7952 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7955 $as_echo_n "checking for -lX11... " >&6; }
7956 if ${ac_cv_lib_soname_X11+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 ac_check_soname_save_LIBS=$LIBS
7960 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7964 /* Override any GCC internal prototype to avoid an error.
7965 Use char because int might match the return type of a GCC
7966 builtin and then its argument prototype would still apply. */
7967 #ifdef __cplusplus
7968 extern "C"
7969 #endif
7970 char XCreateWindow ();
7972 main ()
7974 return XCreateWindow ();
7976 return 0;
7978 _ACEOF
7979 if ac_fn_c_try_link "$LINENO"; then :
7980 case "$LIBEXT" in
7981 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7982 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'` ;;
7983 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7984 esac
7986 rm -f core conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
7988 LIBS=$ac_check_soname_save_LIBS
7990 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7992 $as_echo "not found" >&6; }
7994 else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7996 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7998 cat >>confdefs.h <<_ACEOF
7999 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8000 _ACEOF
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8005 $as_echo_n "checking for -lXext... " >&6; }
8006 if ${ac_cv_lib_soname_Xext+:} false; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 ac_check_soname_save_LIBS=$LIBS
8010 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8014 /* Override any GCC internal prototype to avoid an error.
8015 Use char because int might match the return type of a GCC
8016 builtin and then its argument prototype would still apply. */
8017 #ifdef __cplusplus
8018 extern "C"
8019 #endif
8020 char XextCreateExtension ();
8022 main ()
8024 return XextCreateExtension ();
8026 return 0;
8028 _ACEOF
8029 if ac_fn_c_try_link "$LINENO"; then :
8030 case "$LIBEXT" in
8031 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8032 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'` ;;
8033 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8034 esac
8036 rm -f core conftest.err conftest.$ac_objext \
8037 conftest$ac_exeext conftest.$ac_ext
8038 LIBS=$ac_check_soname_save_LIBS
8040 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8042 $as_echo "not found" >&6; }
8044 else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8046 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8048 cat >>confdefs.h <<_ACEOF
8049 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8050 _ACEOF
8052 XLIB="-lXext $XLIB"
8055 for ac_header in X11/Xlib.h \
8056 X11/XKBlib.h \
8057 X11/Xutil.h \
8058 X11/Xcursor/Xcursor.h \
8059 X11/extensions/shape.h \
8060 X11/extensions/XInput.h \
8061 X11/extensions/XInput2.h \
8062 X11/extensions/Xcomposite.h \
8063 X11/extensions/Xinerama.h \
8064 X11/extensions/Xrandr.h \
8065 X11/extensions/Xrender.h \
8066 X11/extensions/xf86vmode.h \
8067 X11/extensions/xf86vmproto.h
8068 do :
8069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8070 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8071 # include <X11/Xlib.h>
8072 #endif
8073 #ifdef HAVE_X11_XUTIL_H
8074 # include <X11/Xutil.h>
8075 #endif
8077 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8078 cat >>confdefs.h <<_ACEOF
8079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8080 _ACEOF
8084 done
8087 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8088 then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8090 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8091 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 ac_check_lib_save_LIBS=$LIBS
8095 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8099 /* Override any GCC internal prototype to avoid an error.
8100 Use char because int might match the return type of a GCC
8101 builtin and then its argument prototype would still apply. */
8102 #ifdef __cplusplus
8103 extern "C"
8104 #endif
8105 char XkbQueryExtension ();
8107 main ()
8109 return XkbQueryExtension ();
8111 return 0;
8113 _ACEOF
8114 if ac_fn_c_try_link "$LINENO"; then :
8115 ac_cv_lib_X11_XkbQueryExtension=yes
8116 else
8117 ac_cv_lib_X11_XkbQueryExtension=no
8119 rm -f core conftest.err conftest.$ac_objext \
8120 conftest$ac_exeext conftest.$ac_ext
8121 LIBS=$ac_check_lib_save_LIBS
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8124 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8125 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8127 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8133 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8134 then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8136 $as_echo_n "checking for -lXcursor... " >&6; }
8137 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8138 $as_echo_n "(cached) " >&6
8139 else
8140 ac_check_soname_save_LIBS=$LIBS
8141 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8145 /* Override any GCC internal prototype to avoid an error.
8146 Use char because int might match the return type of a GCC
8147 builtin and then its argument prototype would still apply. */
8148 #ifdef __cplusplus
8149 extern "C"
8150 #endif
8151 char XcursorImageLoadCursor ();
8153 main ()
8155 return XcursorImageLoadCursor ();
8157 return 0;
8159 _ACEOF
8160 if ac_fn_c_try_link "$LINENO"; then :
8161 case "$LIBEXT" in
8162 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8163 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'` ;;
8164 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8165 esac
8167 rm -f core conftest.err conftest.$ac_objext \
8168 conftest$ac_exeext conftest.$ac_ext
8169 LIBS=$ac_check_soname_save_LIBS
8171 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8173 $as_echo "not found" >&6; }
8175 else
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8177 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8179 cat >>confdefs.h <<_ACEOF
8180 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8181 _ACEOF
8186 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8187 case "x$with_xcursor" in
8188 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8189 xno) ;;
8190 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8191 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8192 esac
8195 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8196 then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8198 $as_echo_n "checking for -lXi... " >&6; }
8199 if ${ac_cv_lib_soname_Xi+:} false; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 ac_check_soname_save_LIBS=$LIBS
8203 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8207 /* Override any GCC internal prototype to avoid an error.
8208 Use char because int might match the return type of a GCC
8209 builtin and then its argument prototype would still apply. */
8210 #ifdef __cplusplus
8211 extern "C"
8212 #endif
8213 char XOpenDevice ();
8215 main ()
8217 return XOpenDevice ();
8219 return 0;
8221 _ACEOF
8222 if ac_fn_c_try_link "$LINENO"; then :
8223 case "$LIBEXT" in
8224 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8225 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'` ;;
8226 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8227 esac
8229 rm -f core conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
8231 LIBS=$ac_check_soname_save_LIBS
8233 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8235 $as_echo "not found" >&6; }
8237 else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8239 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8241 cat >>confdefs.h <<_ACEOF
8242 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8243 _ACEOF
8248 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8249 case "x$with_xinput" in
8250 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8251 xno) ;;
8252 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8253 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8254 esac
8257 if test "x$ac_cv_lib_soname_Xi" != x
8258 then
8259 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8260 case "x$with_xinput2" in
8261 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8262 xno) ;;
8263 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8264 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8265 esac
8269 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8270 then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8272 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8273 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 ac_check_lib_save_LIBS=$LIBS
8277 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8281 /* Override any GCC internal prototype to avoid an error.
8282 Use char because int might match the return type of a GCC
8283 builtin and then its argument prototype would still apply. */
8284 #ifdef __cplusplus
8285 extern "C"
8286 #endif
8287 char XShapeQueryExtension ();
8289 main ()
8291 return XShapeQueryExtension ();
8293 return 0;
8295 _ACEOF
8296 if ac_fn_c_try_link "$LINENO"; then :
8297 ac_cv_lib_Xext_XShapeQueryExtension=yes
8298 else
8299 ac_cv_lib_Xext_XShapeQueryExtension=no
8301 rm -f core conftest.err conftest.$ac_objext \
8302 conftest$ac_exeext conftest.$ac_ext
8303 LIBS=$ac_check_lib_save_LIBS
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8306 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8307 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8309 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8314 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8315 case "x$with_xshape" in
8316 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8317 xno) ;;
8318 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8319 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8320 esac
8323 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8324 then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8326 $as_echo_n "checking for -lXxf86vm... " >&6; }
8327 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8328 $as_echo_n "(cached) " >&6
8329 else
8330 ac_check_soname_save_LIBS=$LIBS
8331 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8335 /* Override any GCC internal prototype to avoid an error.
8336 Use char because int might match the return type of a GCC
8337 builtin and then its argument prototype would still apply. */
8338 #ifdef __cplusplus
8339 extern "C"
8340 #endif
8341 char XF86VidModeQueryExtension ();
8343 main ()
8345 return XF86VidModeQueryExtension ();
8347 return 0;
8349 _ACEOF
8350 if ac_fn_c_try_link "$LINENO"; then :
8351 case "$LIBEXT" in
8352 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8353 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'` ;;
8354 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8355 esac
8357 rm -f core conftest.err conftest.$ac_objext \
8358 conftest$ac_exeext conftest.$ac_ext
8359 LIBS=$ac_check_soname_save_LIBS
8361 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8363 $as_echo "not found" >&6; }
8365 else
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8367 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8369 cat >>confdefs.h <<_ACEOF
8370 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8371 _ACEOF
8376 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8377 case "x$with_xxf86vm" in
8378 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8379 xno) ;;
8380 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8381 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8382 esac
8385 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"
8386 then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8388 $as_echo_n "checking for -lXrender... " >&6; }
8389 if ${ac_cv_lib_soname_Xrender+:} false; then :
8390 $as_echo_n "(cached) " >&6
8391 else
8392 ac_check_soname_save_LIBS=$LIBS
8393 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8397 /* Override any GCC internal prototype to avoid an error.
8398 Use char because int might match the return type of a GCC
8399 builtin and then its argument prototype would still apply. */
8400 #ifdef __cplusplus
8401 extern "C"
8402 #endif
8403 char XRenderQueryExtension ();
8405 main ()
8407 return XRenderQueryExtension ();
8409 return 0;
8411 _ACEOF
8412 if ac_fn_c_try_link "$LINENO"; then :
8413 case "$LIBEXT" in
8414 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8415 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'` ;;
8416 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8417 esac
8419 rm -f core conftest.err conftest.$ac_objext \
8420 conftest$ac_exeext conftest.$ac_ext
8421 LIBS=$ac_check_soname_save_LIBS
8423 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8425 $as_echo "not found" >&6; }
8427 else
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8429 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8431 cat >>confdefs.h <<_ACEOF
8432 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8433 _ACEOF
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8436 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8437 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 ac_check_lib_save_LIBS=$LIBS
8441 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8445 /* Override any GCC internal prototype to avoid an error.
8446 Use char because int might match the return type of a GCC
8447 builtin and then its argument prototype would still apply. */
8448 #ifdef __cplusplus
8449 extern "C"
8450 #endif
8451 char XRenderSetPictureTransform ();
8453 main ()
8455 return XRenderSetPictureTransform ();
8457 return 0;
8459 _ACEOF
8460 if ac_fn_c_try_link "$LINENO"; then :
8461 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8462 else
8463 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8465 rm -f core conftest.err conftest.$ac_objext \
8466 conftest$ac_exeext conftest.$ac_ext
8467 LIBS=$ac_check_lib_save_LIBS
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8470 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8471 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8473 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8478 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8479 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8480 $as_echo_n "(cached) " >&6
8481 else
8482 ac_check_lib_save_LIBS=$LIBS
8483 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8487 /* Override any GCC internal prototype to avoid an error.
8488 Use char because int might match the return type of a GCC
8489 builtin and then its argument prototype would still apply. */
8490 #ifdef __cplusplus
8491 extern "C"
8492 #endif
8493 char XRenderCreateLinearGradient ();
8495 main ()
8497 return XRenderCreateLinearGradient ();
8499 return 0;
8501 _ACEOF
8502 if ac_fn_c_try_link "$LINENO"; then :
8503 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8504 else
8505 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8507 rm -f core conftest.err conftest.$ac_objext \
8508 conftest$ac_exeext conftest.$ac_ext
8509 LIBS=$ac_check_lib_save_LIBS
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8512 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8513 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8515 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8522 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8523 case "x$with_xrender" in
8524 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8525 xno) ;;
8526 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8527 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8528 esac
8531 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8532 then
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8535 #include <X11/Xlib.h>
8536 #include <X11/extensions/Xrandr.h>
8538 main ()
8540 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8542 return 0;
8544 _ACEOF
8545 if ac_fn_c_try_compile "$LINENO"; then :
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8547 $as_echo_n "checking for -lXrandr... " >&6; }
8548 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 ac_check_soname_save_LIBS=$LIBS
8552 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8556 /* Override any GCC internal prototype to avoid an error.
8557 Use char because int might match the return type of a GCC
8558 builtin and then its argument prototype would still apply. */
8559 #ifdef __cplusplus
8560 extern "C"
8561 #endif
8562 char XRRQueryExtension ();
8564 main ()
8566 return XRRQueryExtension ();
8568 return 0;
8570 _ACEOF
8571 if ac_fn_c_try_link "$LINENO"; then :
8572 case "$LIBEXT" in
8573 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8574 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'` ;;
8575 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8576 esac
8578 rm -f core conftest.err conftest.$ac_objext \
8579 conftest$ac_exeext conftest.$ac_ext
8580 LIBS=$ac_check_soname_save_LIBS
8582 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8584 $as_echo "not found" >&6; }
8586 else
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8588 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8590 cat >>confdefs.h <<_ACEOF
8591 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8592 _ACEOF
8597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8600 case "x$with_xrandr" in
8601 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8602 xno) ;;
8603 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8604 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8605 esac
8608 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8609 then
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 #include <X11/Xlib.h>
8613 #include <X11/extensions/Xinerama.h>
8615 main ()
8617 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8619 return 0;
8621 _ACEOF
8622 if ac_fn_c_try_compile "$LINENO"; then :
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8624 $as_echo_n "checking for -lXinerama... " >&6; }
8625 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8628 ac_check_soname_save_LIBS=$LIBS
8629 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8633 /* Override any GCC internal prototype to avoid an error.
8634 Use char because int might match the return type of a GCC
8635 builtin and then its argument prototype would still apply. */
8636 #ifdef __cplusplus
8637 extern "C"
8638 #endif
8639 char XineramaQueryScreens ();
8641 main ()
8643 return XineramaQueryScreens ();
8645 return 0;
8647 _ACEOF
8648 if ac_fn_c_try_link "$LINENO"; then :
8649 case "$LIBEXT" in
8650 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8651 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'` ;;
8652 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8653 esac
8655 rm -f core conftest.err conftest.$ac_objext \
8656 conftest$ac_exeext conftest.$ac_ext
8657 LIBS=$ac_check_soname_save_LIBS
8659 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8661 $as_echo "not found" >&6; }
8663 else
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8665 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8667 cat >>confdefs.h <<_ACEOF
8668 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8669 _ACEOF
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8677 case "x$with_xinerama" in
8678 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8679 xno) ;;
8680 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8681 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8682 esac
8685 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8686 then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8688 $as_echo_n "checking for -lXcomposite... " >&6; }
8689 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 ac_check_soname_save_LIBS=$LIBS
8693 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8697 /* Override any GCC internal prototype to avoid an error.
8698 Use char because int might match the return type of a GCC
8699 builtin and then its argument prototype would still apply. */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 char XCompositeRedirectWindow ();
8705 main ()
8707 return XCompositeRedirectWindow ();
8709 return 0;
8711 _ACEOF
8712 if ac_fn_c_try_link "$LINENO"; then :
8713 case "$LIBEXT" in
8714 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8715 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'` ;;
8716 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8717 esac
8719 rm -f core conftest.err conftest.$ac_objext \
8720 conftest$ac_exeext conftest.$ac_ext
8721 LIBS=$ac_check_soname_save_LIBS
8723 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8725 $as_echo "not found" >&6; }
8727 else
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8729 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8731 cat >>confdefs.h <<_ACEOF
8732 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8733 _ACEOF
8738 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8739 case "x$with_xcomposite" in
8740 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8741 xno) ;;
8742 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8743 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8744 esac
8747 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8748 #include <X11/Xlib.h>
8749 #endif
8751 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8753 cat >>confdefs.h <<_ACEOF
8754 #define HAVE_XICCALLBACK_CALLBACK 1
8755 _ACEOF
8759 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8760 #include <X11/Xlib.h>
8761 #endif
8763 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8765 cat >>confdefs.h <<_ACEOF
8766 #define HAVE_XEVENT_XCOOKIE 1
8767 _ACEOF
8774 opengl_msg=""
8775 if test "x$with_opengl" != "xno"
8776 then
8777 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8778 do :
8779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8780 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8781 # include <GL/glx.h>
8782 #endif
8784 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8785 cat >>confdefs.h <<_ACEOF
8786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8787 _ACEOF
8791 done
8793 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8794 then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8796 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8797 if ${wine_cv_opengl_header_version_OK+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8802 #include <GL/gl.h>
8804 main ()
8806 GLenum test = GL_UNSIGNED_SHORT_5_6_5; return (test == GL_UNSIGNED_SHORT_5_6_5);
8808 return 0;
8810 _ACEOF
8811 if ac_fn_c_try_compile "$LINENO"; then :
8812 wine_cv_opengl_header_version_OK="yes"
8813 else
8814 wine_cv_opengl_header_version_OK="no"
8816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8819 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8821 if test "$wine_cv_opengl_header_version_OK" = "yes"
8822 then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8824 $as_echo_n "checking for -lGL... " >&6; }
8825 if ${ac_cv_lib_soname_GL+:} false; then :
8826 $as_echo_n "(cached) " >&6
8827 else
8828 ac_check_soname_save_LIBS=$LIBS
8829 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8833 /* Override any GCC internal prototype to avoid an error.
8834 Use char because int might match the return type of a GCC
8835 builtin and then its argument prototype would still apply. */
8836 #ifdef __cplusplus
8837 extern "C"
8838 #endif
8839 char glXCreateContext ();
8841 main ()
8843 return glXCreateContext ();
8845 return 0;
8847 _ACEOF
8848 if ac_fn_c_try_link "$LINENO"; then :
8849 case "$LIBEXT" in
8850 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8851 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'` ;;
8852 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8853 esac
8855 rm -f core conftest.err conftest.$ac_objext \
8856 conftest$ac_exeext conftest.$ac_ext
8857 LIBS=$ac_check_soname_save_LIBS
8859 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8861 $as_echo "not found" >&6; }
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8863 $as_echo_n "checking for -lGL... " >&6; }
8864 if ${ac_cv_lib_soname_GL+:} false; then :
8865 $as_echo_n "(cached) " >&6
8866 else
8867 ac_check_soname_save_LIBS=$LIBS
8868 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"
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8872 /* Override any GCC internal prototype to avoid an error.
8873 Use char because int might match the return type of a GCC
8874 builtin and then its argument prototype would still apply. */
8875 #ifdef __cplusplus
8876 extern "C"
8877 #endif
8878 char glXCreateContext ();
8880 main ()
8882 return glXCreateContext ();
8884 return 0;
8886 _ACEOF
8887 if ac_fn_c_try_link "$LINENO"; then :
8888 case "$LIBEXT" in
8889 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8890 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'` ;;
8891 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8892 esac
8894 rm -f core conftest.err conftest.$ac_objext \
8895 conftest$ac_exeext conftest.$ac_ext
8896 LIBS=$ac_check_soname_save_LIBS
8898 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8900 $as_echo "not found" >&6; }
8901 if test -f /usr/X11R6/lib/libGL.a
8902 then
8903 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8904 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8905 else
8906 opengl_msg="No OpenGL library found on this system."
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8910 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8912 cat >>confdefs.h <<_ACEOF
8913 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8914 _ACEOF
8916 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"
8918 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8921 else
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8923 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8925 cat >>confdefs.h <<_ACEOF
8926 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8927 _ACEOF
8929 OPENGL_LIBS="-lGL"
8931 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8934 if test "$ac_cv_header_GL_glu_h" = "yes"
8935 then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8937 $as_echo_n "checking for -lGLU... " >&6; }
8938 if ${ac_cv_lib_soname_GLU+:} false; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 ac_check_soname_save_LIBS=$LIBS
8942 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8946 /* Override any GCC internal prototype to avoid an error.
8947 Use char because int might match the return type of a GCC
8948 builtin and then its argument prototype would still apply. */
8949 #ifdef __cplusplus
8950 extern "C"
8951 #endif
8952 char gluLookAt ();
8954 main ()
8956 return gluLookAt ();
8958 return 0;
8960 _ACEOF
8961 if ac_fn_c_try_link "$LINENO"; then :
8962 case "$LIBEXT" in
8963 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8964 dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8965 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8966 esac
8968 rm -f core conftest.err conftest.$ac_objext \
8969 conftest$ac_exeext conftest.$ac_ext
8970 LIBS=$ac_check_soname_save_LIBS
8972 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8974 $as_echo "not found" >&6; }
8976 else
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8978 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8980 cat >>confdefs.h <<_ACEOF
8981 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8982 _ACEOF
8987 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8988 case "x$with_glu" in
8989 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8990 xno) ;;
8991 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8992 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8993 esac
8995 else
8996 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8998 else
8999 opengl_msg="OpenGL development headers not found."
9001 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
9002 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
9003 else
9004 enable_opengl32=${enable_opengl32:-no}
9005 enable_glu32=${enable_glu32:-no}
9007 if test -n "$opengl_msg"; then :
9008 case "x$with_opengl" in
9009 x) as_fn_append wine_warnings "|$opengl_msg
9010 OpenGL and Direct3D won't be supported." ;;
9011 xno) ;;
9012 *) as_fn_error $? "$opengl_msg
9013 OpenGL and Direct3D won't be supported.
9014 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9015 esac
9018 CPPFLAGS="$ac_save_CPPFLAGS"
9019 else
9020 XLIB=""
9021 X_CFLAGS=""
9022 X_LIBS=""
9023 enable_winex11_drv=${enable_winex11_drv:-no}
9024 enable_opengl32=${enable_opengl32:-no}
9025 enable_glu32=${enable_glu32:-no}
9027 if test "x$XLIB" = "x"; then :
9028 case "x$with_x" in
9029 xno) ;;
9030 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9031 without X support, which probably isn't what you want. You will need
9032 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9033 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9034 esac
9037 if test "$ac_cv_header_CL_cl_h" = "yes"
9038 then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9040 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9041 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9042 $as_echo_n "(cached) " >&6
9043 else
9044 ac_check_lib_save_LIBS=$LIBS
9045 LIBS="-lOpenCL $LIBS"
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9049 /* Override any GCC internal prototype to avoid an error.
9050 Use char because int might match the return type of a GCC
9051 builtin and then its argument prototype would still apply. */
9052 #ifdef __cplusplus
9053 extern "C"
9054 #endif
9055 char clGetPlatformInfo ();
9057 main ()
9059 return clGetPlatformInfo ();
9061 return 0;
9063 _ACEOF
9064 if ac_fn_c_try_link "$LINENO"; then :
9065 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9066 else
9067 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9069 rm -f core conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
9071 LIBS=$ac_check_lib_save_LIBS
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9074 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9075 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9076 LIBOPENCL="-lOpenCL"
9081 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9082 case "x$with_opencl" in
9083 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9084 xno) ;;
9085 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9086 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9087 esac
9089 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9092 XML2LIBS=""
9094 XML2INCL=""
9096 XSLTINCL=""
9098 if test "x$with_xml" != "xno"
9099 then
9100 ac_save_CPPFLAGS="$CPPFLAGS"
9101 if test "$PKG_CONFIG" != "false"
9102 then
9103 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9104 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9105 else
9106 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9107 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9109 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9110 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9111 do :
9112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9113 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9114 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9115 cat >>confdefs.h <<_ACEOF
9116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9117 _ACEOF
9121 done
9123 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"
9124 then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9126 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9127 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9128 $as_echo_n "(cached) " >&6
9129 else
9130 ac_check_lib_save_LIBS=$LIBS
9131 LIBS="-lxml2 $ac_xml_libs $LIBS"
9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9135 /* Override any GCC internal prototype to avoid an error.
9136 Use char because int might match the return type of a GCC
9137 builtin and then its argument prototype would still apply. */
9138 #ifdef __cplusplus
9139 extern "C"
9140 #endif
9141 char xmlParseMemory ();
9143 main ()
9145 return xmlParseMemory ();
9147 return 0;
9149 _ACEOF
9150 if ac_fn_c_try_link "$LINENO"; then :
9151 ac_cv_lib_xml2_xmlParseMemory=yes
9152 else
9153 ac_cv_lib_xml2_xmlParseMemory=no
9155 rm -f core conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
9157 LIBS=$ac_check_lib_save_LIBS
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9160 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9161 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9163 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9165 XML2LIBS="$ac_xml_libs"
9166 XML2INCL="$ac_xml_cflags"
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9170 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9171 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 ac_check_lib_save_LIBS=$LIBS
9175 LIBS="-lxml2 $ac_xml_libs $LIBS"
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9179 /* Override any GCC internal prototype to avoid an error.
9180 Use char because int might match the return type of a GCC
9181 builtin and then its argument prototype would still apply. */
9182 #ifdef __cplusplus
9183 extern "C"
9184 #endif
9185 char xmlReadMemory ();
9187 main ()
9189 return xmlReadMemory ();
9191 return 0;
9193 _ACEOF
9194 if ac_fn_c_try_link "$LINENO"; then :
9195 ac_cv_lib_xml2_xmlReadMemory=yes
9196 else
9197 ac_cv_lib_xml2_xmlReadMemory=no
9199 rm -f core conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext conftest.$ac_ext
9201 LIBS=$ac_check_lib_save_LIBS
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9204 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9205 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9207 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9212 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9213 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216 ac_check_lib_save_LIBS=$LIBS
9217 LIBS="-lxml2 $ac_xml_libs $LIBS"
9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219 /* end confdefs.h. */
9221 /* Override any GCC internal prototype to avoid an error.
9222 Use char because int might match the return type of a GCC
9223 builtin and then its argument prototype would still apply. */
9224 #ifdef __cplusplus
9225 extern "C"
9226 #endif
9227 char xmlNewDocPI ();
9229 main ()
9231 return xmlNewDocPI ();
9233 return 0;
9235 _ACEOF
9236 if ac_fn_c_try_link "$LINENO"; then :
9237 ac_cv_lib_xml2_xmlNewDocPI=yes
9238 else
9239 ac_cv_lib_xml2_xmlNewDocPI=no
9241 rm -f core conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9243 LIBS=$ac_check_lib_save_LIBS
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9246 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9247 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9249 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9254 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9255 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9256 $as_echo_n "(cached) " >&6
9257 else
9258 ac_check_lib_save_LIBS=$LIBS
9259 LIBS="-lxml2 $ac_xml_libs $LIBS"
9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261 /* end confdefs.h. */
9263 /* Override any GCC internal prototype to avoid an error.
9264 Use char because int might match the return type of a GCC
9265 builtin and then its argument prototype would still apply. */
9266 #ifdef __cplusplus
9267 extern "C"
9268 #endif
9269 char xmlSchemaSetParserStructuredErrors ();
9271 main ()
9273 return xmlSchemaSetParserStructuredErrors ();
9275 return 0;
9277 _ACEOF
9278 if ac_fn_c_try_link "$LINENO"; then :
9279 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9280 else
9281 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9283 rm -f core conftest.err conftest.$ac_objext \
9284 conftest$ac_exeext conftest.$ac_ext
9285 LIBS=$ac_check_lib_save_LIBS
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9288 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9289 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9291 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9296 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9297 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9298 $as_echo_n "(cached) " >&6
9299 else
9300 ac_check_lib_save_LIBS=$LIBS
9301 LIBS="-lxml2 $ac_xml_libs $LIBS"
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9305 /* Override any GCC internal prototype to avoid an error.
9306 Use char because int might match the return type of a GCC
9307 builtin and then its argument prototype would still apply. */
9308 #ifdef __cplusplus
9309 extern "C"
9310 #endif
9311 char xmlSchemaSetValidStructuredErrors ();
9313 main ()
9315 return xmlSchemaSetValidStructuredErrors ();
9317 return 0;
9319 _ACEOF
9320 if ac_fn_c_try_link "$LINENO"; then :
9321 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9322 else
9323 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9325 rm -f core conftest.err conftest.$ac_objext \
9326 conftest$ac_exeext conftest.$ac_ext
9327 LIBS=$ac_check_lib_save_LIBS
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9330 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9331 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9333 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9338 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9339 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9340 $as_echo_n "(cached) " >&6
9341 else
9342 ac_check_lib_save_LIBS=$LIBS
9343 LIBS="-lxml2 $ac_xml_libs $LIBS"
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9347 /* Override any GCC internal prototype to avoid an error.
9348 Use char because int might match the return type of a GCC
9349 builtin and then its argument prototype would still apply. */
9350 #ifdef __cplusplus
9351 extern "C"
9352 #endif
9353 char xmlFirstElementChild ();
9355 main ()
9357 return xmlFirstElementChild ();
9359 return 0;
9361 _ACEOF
9362 if ac_fn_c_try_link "$LINENO"; then :
9363 ac_cv_lib_xml2_xmlFirstElementChild=yes
9364 else
9365 ac_cv_lib_xml2_xmlFirstElementChild=no
9367 rm -f core conftest.err conftest.$ac_objext \
9368 conftest$ac_exeext conftest.$ac_ext
9369 LIBS=$ac_check_lib_save_LIBS
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9372 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9373 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9375 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9379 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9381 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9383 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9388 CPPFLAGS="$ac_save_CPPFLAGS"
9390 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9391 case "x$with_xml" in
9392 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9393 xno) ;;
9394 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9395 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9396 esac
9399 if test "x$with_xslt" != "xno"
9400 then
9401 if test "$PKG_CONFIG" != "false"
9402 then
9403 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9404 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9405 else
9406 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9407 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9409 ac_save_CPPFLAGS="$CPPFLAGS"
9410 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9411 for ac_header in libxslt/pattern.h libxslt/transform.h
9412 do :
9413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9414 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9415 # include <libxslt/pattern.h>
9416 #endif
9418 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9419 cat >>confdefs.h <<_ACEOF
9420 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9421 _ACEOF
9425 done
9427 CPPFLAGS="$ac_save_CPPFLAGS"
9428 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9429 then
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9431 $as_echo_n "checking for -lxslt... " >&6; }
9432 if ${ac_cv_lib_soname_xslt+:} false; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 ac_check_soname_save_LIBS=$LIBS
9436 LIBS="-lxslt $ac_xslt_libs $LIBS"
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9440 /* Override any GCC internal prototype to avoid an error.
9441 Use char because int might match the return type of a GCC
9442 builtin and then its argument prototype would still apply. */
9443 #ifdef __cplusplus
9444 extern "C"
9445 #endif
9446 char xsltCompilePattern ();
9448 main ()
9450 return xsltCompilePattern ();
9452 return 0;
9454 _ACEOF
9455 if ac_fn_c_try_link "$LINENO"; then :
9456 case "$LIBEXT" in
9457 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9458 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'` ;;
9459 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9460 esac
9462 rm -f core conftest.err conftest.$ac_objext \
9463 conftest$ac_exeext conftest.$ac_ext
9464 LIBS=$ac_check_soname_save_LIBS
9466 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9468 $as_echo "not found" >&6; }
9470 else
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9472 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9474 cat >>confdefs.h <<_ACEOF
9475 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9476 _ACEOF
9478 XSLTINCL="$ac_xslt_cflags"
9482 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9483 case "x$with_xslt" in
9484 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9485 xno) ;;
9486 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9487 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9488 esac
9491 if test "x$with_dbus" != "xno"
9492 then
9493 ac_save_CPPFLAGS="$CPPFLAGS"
9494 if test "$PKG_CONFIG" != "false"
9495 then
9496 ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9497 ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9498 CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9500 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9501 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9503 $as_echo_n "checking for -ldbus-1... " >&6; }
9504 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507 ac_check_soname_save_LIBS=$LIBS
9508 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9512 /* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
9515 #ifdef __cplusplus
9516 extern "C"
9517 #endif
9518 char dbus_connection_close ();
9520 main ()
9522 return dbus_connection_close ();
9524 return 0;
9526 _ACEOF
9527 if ac_fn_c_try_link "$LINENO"; then :
9528 case "$LIBEXT" in
9529 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9530 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'` ;;
9531 *) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9532 esac
9534 rm -f core conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_soname_save_LIBS
9538 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9540 $as_echo "not found" >&6; }
9542 else
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9544 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9546 cat >>confdefs.h <<_ACEOF
9547 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9548 _ACEOF
9550 DBUSINCL="$ac_dbus_cflags"
9556 CPPFLAGS="$ac_save_CPPFLAGS"
9558 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9559 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9560 case "x$with_dbus" in
9561 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9562 xno) ;;
9563 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9564 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9565 esac
9568 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9569 then
9570 ac_save_CPPFLAGS="$CPPFLAGS"
9571 if test "$PKG_CONFIG" != "false"
9572 then
9573 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9574 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9575 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9577 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9578 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9580 $as_echo_n "checking for -lhal... " >&6; }
9581 if ${ac_cv_lib_soname_hal+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 ac_check_soname_save_LIBS=$LIBS
9585 LIBS="-lhal $ac_hal_libs $LIBS"
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9589 /* Override any GCC internal prototype to avoid an error.
9590 Use char because int might match the return type of a GCC
9591 builtin and then its argument prototype would still apply. */
9592 #ifdef __cplusplus
9593 extern "C"
9594 #endif
9595 char libhal_ctx_new ();
9597 main ()
9599 return libhal_ctx_new ();
9601 return 0;
9603 _ACEOF
9604 if ac_fn_c_try_link "$LINENO"; then :
9605 case "$LIBEXT" in
9606 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9607 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'` ;;
9608 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9609 esac
9611 rm -f core conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613 LIBS=$ac_check_soname_save_LIBS
9615 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9617 $as_echo "not found" >&6; }
9619 else
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9621 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9623 cat >>confdefs.h <<_ACEOF
9624 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9625 _ACEOF
9627 HALINCL="$ac_hal_cflags"
9633 CPPFLAGS="$ac_save_CPPFLAGS"
9634 if test "x$ac_cv_lib_soname_hal" = "x" -a \
9635 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9636 case "x$with_hal" in
9637 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9638 xno) ;;
9639 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9640 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9641 esac
9645 if test "x$with_gnutls" != "xno"
9646 then
9647 ac_save_CPPFLAGS="$CPPFLAGS"
9648 if test "$PKG_CONFIG" != "false"
9649 then
9650 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9651 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9652 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9654 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9655 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658 #include <gnutls/gnutls.h>
9660 main ()
9662 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9664 return 0;
9666 _ACEOF
9667 if ac_fn_c_try_compile "$LINENO"; then :
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9669 $as_echo_n "checking for -lgnutls... " >&6; }
9670 if ${ac_cv_lib_soname_gnutls+:} false; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 ac_check_soname_save_LIBS=$LIBS
9674 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9678 /* Override any GCC internal prototype to avoid an error.
9679 Use char because int might match the return type of a GCC
9680 builtin and then its argument prototype would still apply. */
9681 #ifdef __cplusplus
9682 extern "C"
9683 #endif
9684 char gnutls_global_init ();
9686 main ()
9688 return gnutls_global_init ();
9690 return 0;
9692 _ACEOF
9693 if ac_fn_c_try_link "$LINENO"; then :
9694 case "$LIBEXT" in
9695 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9696 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'` ;;
9697 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9698 esac
9700 rm -f core conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702 LIBS=$ac_check_soname_save_LIBS
9704 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9706 $as_echo "not found" >&6; }
9708 else
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9710 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9712 cat >>confdefs.h <<_ACEOF
9713 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9714 _ACEOF
9716 GNUTLSINCL="$ac_gnutls_cflags"
9720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9724 CPPFLAGS="$ac_save_CPPFLAGS"
9726 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9727 case "x$with_gnutls" in
9728 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9729 xno) ;;
9730 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9731 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9732 esac
9735 CURSESLIBS=""
9736 if test "$ac_cv_header_ncurses_h" = "yes"
9737 then
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9739 $as_echo_n "checking for -lncurses... " >&6; }
9740 if ${ac_cv_lib_soname_ncurses+:} false; then :
9741 $as_echo_n "(cached) " >&6
9742 else
9743 ac_check_soname_save_LIBS=$LIBS
9744 LIBS="-lncurses $LIBS"
9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9748 /* Override any GCC internal prototype to avoid an error.
9749 Use char because int might match the return type of a GCC
9750 builtin and then its argument prototype would still apply. */
9751 #ifdef __cplusplus
9752 extern "C"
9753 #endif
9754 char waddch ();
9756 main ()
9758 return waddch ();
9760 return 0;
9762 _ACEOF
9763 if ac_fn_c_try_link "$LINENO"; then :
9764 case "$LIBEXT" in
9765 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9766 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'` ;;
9767 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9768 esac
9770 rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772 LIBS=$ac_check_soname_save_LIBS
9774 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9776 $as_echo "not found" >&6; }
9778 else
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9780 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9782 cat >>confdefs.h <<_ACEOF
9783 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9784 _ACEOF
9786 CURSESLIBS="-lncurses"
9788 elif test "$ac_cv_header_curses_h" = "yes"
9789 then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9791 $as_echo_n "checking for -lcurses... " >&6; }
9792 if ${ac_cv_lib_soname_curses+:} false; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 ac_check_soname_save_LIBS=$LIBS
9796 LIBS="-lcurses $LIBS"
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9800 /* Override any GCC internal prototype to avoid an error.
9801 Use char because int might match the return type of a GCC
9802 builtin and then its argument prototype would still apply. */
9803 #ifdef __cplusplus
9804 extern "C"
9805 #endif
9806 char waddch ();
9808 main ()
9810 return waddch ();
9812 return 0;
9814 _ACEOF
9815 if ac_fn_c_try_link "$LINENO"; then :
9816 case "$LIBEXT" in
9817 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9818 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'` ;;
9819 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9820 esac
9822 rm -f core conftest.err conftest.$ac_objext \
9823 conftest$ac_exeext conftest.$ac_ext
9824 LIBS=$ac_check_soname_save_LIBS
9826 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9828 $as_echo "not found" >&6; }
9830 else
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9832 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9834 cat >>confdefs.h <<_ACEOF
9835 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9836 _ACEOF
9838 CURSESLIBS="-lcurses"
9841 ac_save_LIBS="$LIBS"
9842 LIBS="$LIBS $CURSESLIBS"
9843 for ac_func in mousemask
9844 do :
9845 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9846 if test "x$ac_cv_func_mousemask" = xyes; then :
9847 cat >>confdefs.h <<_ACEOF
9848 #define HAVE_MOUSEMASK 1
9849 _ACEOF
9852 done
9854 LIBS="$ac_save_LIBS"
9855 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9856 case "x$with_curses" in
9857 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9858 xno) ;;
9859 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9860 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9861 esac
9864 if test "x$with_sane" != "xno"
9865 then
9866 ac_save_CPPFLAGS="$CPPFLAGS"
9867 # Extract the first word of "sane-config", so it can be a program name with args.
9868 set dummy sane-config; ac_word=$2
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9870 $as_echo_n "checking for $ac_word... " >&6; }
9871 if ${ac_cv_prog_sane_devel+:} false; then :
9872 $as_echo_n "(cached) " >&6
9873 else
9874 if test -n "$sane_devel"; then
9875 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9876 else
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 for as_dir in $PATH
9880 IFS=$as_save_IFS
9881 test -z "$as_dir" && as_dir=.
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9884 ac_cv_prog_sane_devel="sane-config"
9885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9886 break 2
9888 done
9889 done
9890 IFS=$as_save_IFS
9892 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9895 sane_devel=$ac_cv_prog_sane_devel
9896 if test -n "$sane_devel"; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9898 $as_echo "$sane_devel" >&6; }
9899 else
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901 $as_echo "no" >&6; }
9905 if test "$sane_devel" != "no"
9906 then
9907 ac_sane_incl="`$sane_devel --cflags`"
9908 ac_sane_libs="`$sane_devel --ldflags`"
9909 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9911 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9912 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9914 $as_echo_n "checking for -lsane... " >&6; }
9915 if ${ac_cv_lib_soname_sane+:} false; then :
9916 $as_echo_n "(cached) " >&6
9917 else
9918 ac_check_soname_save_LIBS=$LIBS
9919 LIBS="-lsane $ac_sane_libs $LIBS"
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9926 #ifdef __cplusplus
9927 extern "C"
9928 #endif
9929 char sane_init ();
9931 main ()
9933 return sane_init ();
9935 return 0;
9937 _ACEOF
9938 if ac_fn_c_try_link "$LINENO"; then :
9939 case "$LIBEXT" in
9940 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9941 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'` ;;
9942 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9943 esac
9945 rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9947 LIBS=$ac_check_soname_save_LIBS
9949 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9951 $as_echo "not found" >&6; }
9953 else
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9955 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9957 cat >>confdefs.h <<_ACEOF
9958 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9959 _ACEOF
9961 SANEINCL="$ac_sane_incl"
9967 CPPFLAGS="$ac_save_CPPFLAGS"
9969 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9970 case "x$with_sane" in
9971 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9972 xno) ;;
9973 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9974 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9975 esac
9978 if test "x$with_v4l" != "xno"
9979 then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9981 $as_echo_n "checking for -lv4l1... " >&6; }
9982 if ${ac_cv_lib_soname_v4l1+:} false; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9985 ac_check_soname_save_LIBS=$LIBS
9986 LIBS="-lv4l1 $LIBS"
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9990 /* Override any GCC internal prototype to avoid an error.
9991 Use char because int might match the return type of a GCC
9992 builtin and then its argument prototype would still apply. */
9993 #ifdef __cplusplus
9994 extern "C"
9995 #endif
9996 char v4l1_open ();
9998 main ()
10000 return v4l1_open ();
10002 return 0;
10004 _ACEOF
10005 if ac_fn_c_try_link "$LINENO"; then :
10006 case "$LIBEXT" in
10007 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10008 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'` ;;
10009 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10010 esac
10012 rm -f core conftest.err conftest.$ac_objext \
10013 conftest$ac_exeext conftest.$ac_ext
10014 LIBS=$ac_check_soname_save_LIBS
10016 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10018 $as_echo "not found" >&6; }
10020 else
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10022 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10024 cat >>confdefs.h <<_ACEOF
10025 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10026 _ACEOF
10031 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10032 case "x$with_v4l" in
10033 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10034 xno) ;;
10035 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10036 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10037 esac
10040 if test "x$with_gphoto" != "xno"
10041 then
10042 ac_save_CPPFLAGS="$CPPFLAGS"
10043 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10044 set dummy gphoto2-config; ac_word=$2
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 if test -n "$gphoto2_devel"; then
10051 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10052 else
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10060 ac_cv_prog_gphoto2_devel="gphoto2-config"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10064 done
10065 done
10066 IFS=$as_save_IFS
10068 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10071 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10072 if test -n "$gphoto2_devel"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10074 $as_echo "$gphoto2_devel" >&6; }
10075 else
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10081 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10082 set dummy gphoto2-port-config; ac_word=$2
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10084 $as_echo_n "checking for $ac_word... " >&6; }
10085 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 if test -n "$gphoto2port_devel"; then
10089 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10090 else
10091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092 for as_dir in $PATH
10094 IFS=$as_save_IFS
10095 test -z "$as_dir" && as_dir=.
10096 for ac_exec_ext in '' $ac_executable_extensions; do
10097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10098 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10100 break 2
10102 done
10103 done
10104 IFS=$as_save_IFS
10106 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10109 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10110 if test -n "$gphoto2port_devel"; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10112 $as_echo "$gphoto2port_devel" >&6; }
10113 else
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 $as_echo "no" >&6; }
10119 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10120 then
10121 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10122 ac_gphoto2_libs=""
10123 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10125 case "$i" in
10126 -L/usr/lib|-L/usr/lib64) ;;
10127 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10128 esac
10129 done
10130 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10132 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10133 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10134 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10136 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10137 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10138 $as_echo_n "(cached) " >&6
10139 else
10140 ac_check_lib_save_LIBS=$LIBS
10141 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h. */
10145 /* Override any GCC internal prototype to avoid an error.
10146 Use char because int might match the return type of a GCC
10147 builtin and then its argument prototype would still apply. */
10148 #ifdef __cplusplus
10149 extern "C"
10150 #endif
10151 char gp_camera_new ();
10153 main ()
10155 return gp_camera_new ();
10157 return 0;
10159 _ACEOF
10160 if ac_fn_c_try_link "$LINENO"; then :
10161 ac_cv_lib_gphoto2_gp_camera_new=yes
10162 else
10163 ac_cv_lib_gphoto2_gp_camera_new=no
10165 rm -f core conftest.err conftest.$ac_objext \
10166 conftest$ac_exeext conftest.$ac_ext
10167 LIBS=$ac_check_lib_save_LIBS
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10170 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10171 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10173 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10175 GPHOTO2LIBS="$ac_gphoto2_libs"
10177 GPHOTO2INCL="$ac_gphoto2_incl"
10184 CPPFLAGS="$ac_save_CPPFLAGS"
10186 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10187 case "x$with_gphoto" in
10188 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10189 xno) ;;
10190 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10191 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10192 esac
10196 if test "$ac_cv_header_resolv_h" = "yes"
10197 then
10198 ac_save_LIBS="$LIBS"
10199 for lib in '' -lresolv
10201 LIBS="$lib $ac_save_LIBS"
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10204 #ifdef HAVE_NETINET_IN_H
10205 #include <netinet/in.h>
10206 #endif
10207 #include <resolv.h>
10209 main ()
10211 res_query("foo",ns_c_in,0,0,0);
10213 return 0;
10215 _ACEOF
10216 if ac_fn_c_try_link "$LINENO"; then :
10218 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10220 RESOLVLIBS="$lib"
10223 rm -f core conftest.err conftest.$ac_objext \
10224 conftest$ac_exeext conftest.$ac_ext
10225 if test "${RESOLVLIBS+set}" = set; then
10226 break
10228 done
10229 LIBS="$ac_save_LIBS"
10232 LCMSLIBS=""
10234 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10235 then
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10237 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10238 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10239 $as_echo_n "(cached) " >&6
10240 else
10241 ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-llcms $LIBS"
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10246 /* Override any GCC internal prototype to avoid an error.
10247 Use char because int might match the return type of a GCC
10248 builtin and then its argument prototype would still apply. */
10249 #ifdef __cplusplus
10250 extern "C"
10251 #endif
10252 char cmsOpenProfileFromFile ();
10254 main ()
10256 return cmsOpenProfileFromFile ();
10258 return 0;
10260 _ACEOF
10261 if ac_fn_c_try_link "$LINENO"; then :
10262 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10263 else
10264 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10266 rm -f core conftest.err conftest.$ac_objext \
10267 conftest$ac_exeext conftest.$ac_ext
10268 LIBS=$ac_check_lib_save_LIBS
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10271 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10272 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10274 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10276 LCMSLIBS="-llcms"
10280 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10281 case "x$with_cms" in
10282 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10283 xno) ;;
10284 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10285 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10286 esac
10289 if test "x$with_freetype" != "xno"
10290 then
10291 if test "$PKG_CONFIG" != "false"
10292 then
10293 ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
10294 ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
10295 else
10296 for ac_prog in freetype-config freetype2-config
10298 # Extract the first word of "$ac_prog", so it can be a program name with args.
10299 set dummy $ac_prog; ac_word=$2
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10301 $as_echo_n "checking for $ac_word... " >&6; }
10302 if ${ac_cv_prog_ft_devel+:} false; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 if test -n "$ft_devel"; then
10306 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10307 else
10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309 for as_dir in $PATH
10311 IFS=$as_save_IFS
10312 test -z "$as_dir" && as_dir=.
10313 for ac_exec_ext in '' $ac_executable_extensions; do
10314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10315 ac_cv_prog_ft_devel="$ac_prog"
10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10317 break 2
10319 done
10320 done
10321 IFS=$as_save_IFS
10325 ft_devel=$ac_cv_prog_ft_devel
10326 if test -n "$ft_devel"; then
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10328 $as_echo "$ft_devel" >&6; }
10329 else
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331 $as_echo "no" >&6; }
10335 test -n "$ft_devel" && break
10336 done
10337 test -n "$ft_devel" || ft_devel="no"
10339 if test "$ft_devel" != "no"
10340 then
10341 ac_freetype_incl=`$ft_devel --cflags`
10342 ac_freetype_libs=`$ft_devel --libs`
10345 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10347 $as_echo_n "checking for -lfreetype... " >&6; }
10348 if ${ac_cv_lib_soname_freetype+:} false; then :
10349 $as_echo_n "(cached) " >&6
10350 else
10351 ac_check_soname_save_LIBS=$LIBS
10352 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10356 /* Override any GCC internal prototype to avoid an error.
10357 Use char because int might match the return type of a GCC
10358 builtin and then its argument prototype would still apply. */
10359 #ifdef __cplusplus
10360 extern "C"
10361 #endif
10362 char FT_Init_FreeType ();
10364 main ()
10366 return FT_Init_FreeType ();
10368 return 0;
10370 _ACEOF
10371 if ac_fn_c_try_link "$LINENO"; then :
10372 case "$LIBEXT" in
10373 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10374 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'` ;;
10375 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10376 esac
10378 rm -f core conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10380 LIBS=$ac_check_soname_save_LIBS
10382 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10384 $as_echo "not found" >&6; }
10385 ft_lib=no
10386 else
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10388 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10390 cat >>confdefs.h <<_ACEOF
10391 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10392 _ACEOF
10394 ft_lib=yes
10396 if test "$ft_lib" = "yes"
10397 then
10398 ac_save_CPPFLAGS="$CPPFLAGS"
10399 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10400 for ac_header in ft2build.h \
10401 freetype/freetype.h \
10402 freetype/ftglyph.h \
10403 freetype/fttypes.h \
10404 freetype/tttables.h \
10405 freetype/ftsnames.h \
10406 freetype/ttnameid.h \
10407 freetype/ftoutln.h \
10408 freetype/ftwinfnt.h \
10409 freetype/ftmodapi.h \
10410 freetype/ftlcdfil.h
10411 do :
10412 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10413 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10414 # include <ft2build.h>
10415 #endif
10417 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10418 cat >>confdefs.h <<_ACEOF
10419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10420 _ACEOF
10424 done
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428 #include <ft2build.h>
10429 #include <freetype/fttrigon.h>
10430 _ACEOF
10431 if ac_fn_c_try_cpp "$LINENO"; then :
10433 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10435 wine_cv_fttrigon=yes
10436 else
10437 wine_cv_fttrigon=no
10439 rm -f conftest.err conftest.i conftest.$ac_ext
10440 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10442 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10444 cat >>confdefs.h <<_ACEOF
10445 #define HAVE_FT_TRUETYPEENGINETYPE 1
10446 _ACEOF
10451 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10452 then
10454 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10456 FREETYPELIBS="$ac_freetype_libs"
10458 FREETYPEINCL="$ac_freetype_incl"
10463 if test "x$FREETYPELIBS" = "x"; then :
10464 case "x$with_freetype" in
10465 xno) ;;
10466 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10467 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10468 esac
10470 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10473 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10474 if ${ac_cv_c_ppdev+:} false; then :
10475 $as_echo_n "(cached) " >&6
10476 else
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10479 #ifdef HAVE_SYS_IOCTL_H
10480 # include <sys/ioctl.h>
10481 #endif
10482 #include <linux/ppdev.h>
10484 main ()
10486 ioctl (1,PPCLAIM,0)
10488 return 0;
10490 _ACEOF
10491 if ac_fn_c_try_compile "$LINENO"; then :
10492 ac_cv_c_ppdev="yes"
10493 else
10494 ac_cv_c_ppdev="no"
10496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10499 $as_echo "$ac_cv_c_ppdev" >&6; }
10500 if test "$ac_cv_c_ppdev" = "yes"
10501 then
10503 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10507 ac_wine_check_funcs_save_LIBS="$LIBS"
10508 LIBS="$LIBS $LIBPTHREAD"
10509 for ac_func in \
10510 pthread_attr_get_np \
10511 pthread_getattr_np \
10512 pthread_get_stackaddr_np \
10513 pthread_get_stacksize_np
10514 do :
10515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10516 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10517 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10518 cat >>confdefs.h <<_ACEOF
10519 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10520 _ACEOF
10523 done
10525 LIBS="$ac_wine_check_funcs_save_LIBS"
10527 if test "$ac_cv_header_zlib_h" = "yes"
10528 then
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10530 $as_echo_n "checking for inflate in -lz... " >&6; }
10531 if ${ac_cv_lib_z_inflate+:} false; then :
10532 $as_echo_n "(cached) " >&6
10533 else
10534 ac_check_lib_save_LIBS=$LIBS
10535 LIBS="-lz $LIBS"
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10539 /* Override any GCC internal prototype to avoid an error.
10540 Use char because int might match the return type of a GCC
10541 builtin and then its argument prototype would still apply. */
10542 #ifdef __cplusplus
10543 extern "C"
10544 #endif
10545 char inflate ();
10547 main ()
10549 return inflate ();
10551 return 0;
10553 _ACEOF
10554 if ac_fn_c_try_link "$LINENO"; then :
10555 ac_cv_lib_z_inflate=yes
10556 else
10557 ac_cv_lib_z_inflate=no
10559 rm -f core conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext conftest.$ac_ext
10561 LIBS=$ac_check_lib_save_LIBS
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10564 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10565 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10567 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10569 ZLIB="-lz"
10574 if test "x$ZLIB" = "x"; then :
10575 case "x$with_zlib" in
10576 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10577 xno) ;;
10578 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10579 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10580 esac
10583 if test "x$enable_tools" != xno
10584 then
10585 if test "$ac_cv_header_gettext_po_h" = "yes"
10586 then
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10588 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10589 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10590 $as_echo_n "(cached) " >&6
10591 else
10592 ac_check_lib_save_LIBS=$LIBS
10593 LIBS="-lgettextpo $LIBS"
10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h. */
10597 /* Override any GCC internal prototype to avoid an error.
10598 Use char because int might match the return type of a GCC
10599 builtin and then its argument prototype would still apply. */
10600 #ifdef __cplusplus
10601 extern "C"
10602 #endif
10603 char po_message_msgctxt ();
10605 main ()
10607 return po_message_msgctxt ();
10609 return 0;
10611 _ACEOF
10612 if ac_fn_c_try_link "$LINENO"; then :
10613 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10614 else
10615 ac_cv_lib_gettextpo_po_message_msgctxt=no
10617 rm -f core conftest.err conftest.$ac_objext \
10618 conftest$ac_exeext conftest.$ac_ext
10619 LIBS=$ac_check_lib_save_LIBS
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10622 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10623 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10625 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10627 LIBGETTEXTPO="-lgettextpo"
10632 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10633 case "x$with_gettextpo" in
10634 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10635 xno) ;;
10636 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10637 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10638 esac
10642 if test "x$with_gstreamer" != "xno"
10643 then
10644 ac_save_CPPFLAGS="$CPPFLAGS"
10645 if test "$PKG_CONFIG" != "false"; then
10646 ac_gst_incl=""
10647 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10649 case "$i" in
10650 -I*) ac_gst_incl="$ac_gst_incl $i";;
10651 esac
10652 done
10653 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10654 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10655 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10656 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10657 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10658 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10660 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10663 #include <gst/app/gstappsink.h>
10665 main ()
10667 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10669 return 0;
10671 _ACEOF
10672 if ac_fn_c_try_compile "$LINENO"; then :
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10674 $as_echo "yes" >&6; }
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10676 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10677 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 ac_check_lib_save_LIBS=$LIBS
10681 LIBS="-lgstreamer-0.10 $LIBS"
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10685 /* Override any GCC internal prototype to avoid an error.
10686 Use char because int might match the return type of a GCC
10687 builtin and then its argument prototype would still apply. */
10688 #ifdef __cplusplus
10689 extern "C"
10690 #endif
10691 char gst_pad_get_caps_reffed ();
10693 main ()
10695 return gst_pad_get_caps_reffed ();
10697 return 0;
10699 _ACEOF
10700 if ac_fn_c_try_link "$LINENO"; then :
10701 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10702 else
10703 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10705 rm -f core conftest.err conftest.$ac_objext \
10706 conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10710 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10711 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10713 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10714 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 ac_check_lib_save_LIBS=$LIBS
10718 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10722 /* Override any GCC internal prototype to avoid an error.
10723 Use char because int might match the return type of a GCC
10724 builtin and then its argument prototype would still apply. */
10725 #ifdef __cplusplus
10726 extern "C"
10727 #endif
10728 char gst_app_buffer_new ();
10730 main ()
10732 return gst_app_buffer_new ();
10734 return 0;
10736 _ACEOF
10737 if ac_fn_c_try_link "$LINENO"; then :
10738 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10739 else
10740 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10742 rm -f core conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
10744 LIBS=$ac_check_lib_save_LIBS
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10747 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10748 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10749 GSTREAMER_LIBS="$ac_gst_libs"
10751 GSTREAMER_INCL="$ac_gst_incl"
10757 else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759 $as_echo "no" >&6; }
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769 CPPFLAGS="$ac_save_CPPFLAGS"
10771 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10772 case "x$with_gstreamer" in
10773 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10774 xno) ;;
10775 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10776 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10777 esac
10779 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10781 ALSALIBS=""
10783 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10784 then
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10786 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10787 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 ac_check_lib_save_LIBS=$LIBS
10791 LIBS="-lasound $LIBS"
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10795 /* Override any GCC internal prototype to avoid an error.
10796 Use char because int might match the return type of a GCC
10797 builtin and then its argument prototype would still apply. */
10798 #ifdef __cplusplus
10799 extern "C"
10800 #endif
10801 char snd_pcm_hw_params_get_access_mask ();
10803 main ()
10805 return snd_pcm_hw_params_get_access_mask ();
10807 return 0;
10809 _ACEOF
10810 if ac_fn_c_try_link "$LINENO"; then :
10811 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10812 else
10813 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10815 rm -f core conftest.err conftest.$ac_objext \
10816 conftest$ac_exeext conftest.$ac_ext
10817 LIBS=$ac_check_lib_save_LIBS
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10820 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10821 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824 #ifdef HAVE_ALSA_ASOUNDLIB_H
10825 #include <alsa/asoundlib.h>
10826 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10827 #include <sys/asoundlib.h>
10828 #endif
10830 main ()
10832 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10834 return 0;
10836 _ACEOF
10837 if ac_fn_c_try_compile "$LINENO"; then :
10838 ALSALIBS="-lasound"
10840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10845 if test "x$with_oss" != xno
10846 then
10847 ac_save_CPPFLAGS="$CPPFLAGS"
10848 if test -f /etc/oss.conf
10849 then
10850 . /etc/oss.conf
10852 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10853 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10854 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10855 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10856 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10858 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10860 cat >>confdefs.h <<_ACEOF
10861 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10862 _ACEOF
10864 OSS4INCL="$ac_oss_incl"
10871 CPPFLAGS="$ac_save_CPPFLAGS"
10872 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10873 then
10874 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10879 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10880 then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10882 $as_echo_n "checking for -lcapi20... " >&6; }
10883 if ${ac_cv_lib_soname_capi20+:} false; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 ac_check_soname_save_LIBS=$LIBS
10887 LIBS="-lcapi20 $LIBS"
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10891 /* Override any GCC internal prototype to avoid an error.
10892 Use char because int might match the return type of a GCC
10893 builtin and then its argument prototype would still apply. */
10894 #ifdef __cplusplus
10895 extern "C"
10896 #endif
10897 char capi20_register ();
10899 main ()
10901 return capi20_register ();
10903 return 0;
10905 _ACEOF
10906 if ac_fn_c_try_link "$LINENO"; then :
10907 case "$LIBEXT" in
10908 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10909 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'` ;;
10910 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10911 esac
10913 rm -f core conftest.err conftest.$ac_objext \
10914 conftest$ac_exeext conftest.$ac_ext
10915 LIBS=$ac_check_soname_save_LIBS
10917 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10919 $as_echo "not found" >&6; }
10921 else
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10923 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10925 cat >>confdefs.h <<_ACEOF
10926 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10927 _ACEOF
10932 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10933 case "x$with_capi" in
10934 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10935 xno) ;;
10936 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10937 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10938 esac
10941 CUPSINCL=""
10943 if test "x$with_cups" != "xno"
10944 then
10945 ac_save_CPPFLAGS="$CPPFLAGS"
10946 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10947 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10948 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10949 for ac_header in cups/cups.h
10950 do :
10951 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10952 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
10953 cat >>confdefs.h <<_ACEOF
10954 #define HAVE_CUPS_CUPS_H 1
10955 _ACEOF
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10957 $as_echo_n "checking for -lcups... " >&6; }
10958 if ${ac_cv_lib_soname_cups+:} false; then :
10959 $as_echo_n "(cached) " >&6
10960 else
10961 ac_check_soname_save_LIBS=$LIBS
10962 LIBS="-lcups $ac_cups_libs $LIBS"
10963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10966 /* Override any GCC internal prototype to avoid an error.
10967 Use char because int might match the return type of a GCC
10968 builtin and then its argument prototype would still apply. */
10969 #ifdef __cplusplus
10970 extern "C"
10971 #endif
10972 char cupsGetDefault ();
10974 main ()
10976 return cupsGetDefault ();
10978 return 0;
10980 _ACEOF
10981 if ac_fn_c_try_link "$LINENO"; then :
10982 case "$LIBEXT" in
10983 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10984 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'` ;;
10985 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
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_cups" = "x"; then :
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10994 $as_echo "not found" >&6; }
10996 else
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10998 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11000 cat >>confdefs.h <<_ACEOF
11001 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11002 _ACEOF
11004 CUPSINCL="$ac_cups_cflags"
11008 done
11010 CPPFLAGS="$ac_save_CPPFLAGS"
11012 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11013 case "x$with_cups" in
11014 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11015 xno) ;;
11016 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11017 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11018 esac
11021 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11022 then
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11024 $as_echo_n "checking for -lfontconfig... " >&6; }
11025 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 ac_check_soname_save_LIBS=$LIBS
11029 LIBS="-lfontconfig $LIBS"
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char FcInit ();
11041 main ()
11043 return FcInit ();
11045 return 0;
11047 _ACEOF
11048 if ac_fn_c_try_link "$LINENO"; then :
11049 case "$LIBEXT" in
11050 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11051 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'` ;;
11052 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11053 esac
11055 rm -f core conftest.err conftest.$ac_objext \
11056 conftest$ac_exeext conftest.$ac_ext
11057 LIBS=$ac_check_soname_save_LIBS
11059 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11061 $as_echo "not found" >&6; }
11063 else
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11065 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11067 cat >>confdefs.h <<_ACEOF
11068 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11069 _ACEOF
11073 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11074 then
11075 ac_save_CPPFLAGS="$CPPFLAGS"
11076 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11077 $as_unset ac_cv_header_fontconfig_fontconfig_h
11078 for ac_header in fontconfig/fontconfig.h
11079 do :
11080 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11081 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11082 cat >>confdefs.h <<_ACEOF
11083 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11084 _ACEOF
11088 done
11090 CPPFLAGS="$ac_save_CPPFLAGS"
11091 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11092 then
11093 FONTCONFIGINCL="$X_CFLAGS"
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11096 $as_echo_n "checking for -lfontconfig... " >&6; }
11097 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11098 $as_echo_n "(cached) " >&6
11099 else
11100 ac_check_soname_save_LIBS=$LIBS
11101 LIBS="-lfontconfig $X_LIBS $LIBS"
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11105 /* Override any GCC internal prototype to avoid an error.
11106 Use char because int might match the return type of a GCC
11107 builtin and then its argument prototype would still apply. */
11108 #ifdef __cplusplus
11109 extern "C"
11110 #endif
11111 char FcInit ();
11113 main ()
11115 return FcInit ();
11117 return 0;
11119 _ACEOF
11120 if ac_fn_c_try_link "$LINENO"; then :
11121 case "$LIBEXT" in
11122 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11123 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'` ;;
11124 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11125 esac
11127 rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
11129 LIBS=$ac_check_soname_save_LIBS
11131 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11133 $as_echo "not found" >&6; }
11135 else
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11137 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11139 cat >>confdefs.h <<_ACEOF
11140 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11141 _ACEOF
11147 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11148 case "x$with_fontconfig" in
11149 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11150 xno) ;;
11151 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11152 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11153 esac
11156 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11157 then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11159 $as_echo_n "checking for -lssl... " >&6; }
11160 if ${ac_cv_lib_soname_ssl+:} false; then :
11161 $as_echo_n "(cached) " >&6
11162 else
11163 ac_check_soname_save_LIBS=$LIBS
11164 LIBS="-lssl $LIBS"
11165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h. */
11168 /* Override any GCC internal prototype to avoid an error.
11169 Use char because int might match the return type of a GCC
11170 builtin and then its argument prototype would still apply. */
11171 #ifdef __cplusplus
11172 extern "C"
11173 #endif
11174 char SSL_library_init ();
11176 main ()
11178 return SSL_library_init ();
11180 return 0;
11182 _ACEOF
11183 if ac_fn_c_try_link "$LINENO"; then :
11184 case "$LIBEXT" in
11185 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11186 dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep "libssl\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11187 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11188 esac
11190 rm -f core conftest.err conftest.$ac_objext \
11191 conftest$ac_exeext conftest.$ac_ext
11192 LIBS=$ac_check_soname_save_LIBS
11194 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11196 $as_echo "not found" >&6; }
11198 else
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11200 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11202 cat >>confdefs.h <<_ACEOF
11203 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11204 _ACEOF
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11209 $as_echo_n "checking for -lcrypto... " >&6; }
11210 if ${ac_cv_lib_soname_crypto+:} false; then :
11211 $as_echo_n "(cached) " >&6
11212 else
11213 ac_check_soname_save_LIBS=$LIBS
11214 LIBS="-lcrypto $LIBS"
11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11218 /* Override any GCC internal prototype to avoid an error.
11219 Use char because int might match the return type of a GCC
11220 builtin and then its argument prototype would still apply. */
11221 #ifdef __cplusplus
11222 extern "C"
11223 #endif
11224 char BIO_new_socket ();
11226 main ()
11228 return BIO_new_socket ();
11230 return 0;
11232 _ACEOF
11233 if ac_fn_c_try_link "$LINENO"; then :
11234 case "$LIBEXT" in
11235 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11236 dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep "libcrypto\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11237 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11238 esac
11240 rm -f core conftest.err conftest.$ac_objext \
11241 conftest$ac_exeext conftest.$ac_ext
11242 LIBS=$ac_check_soname_save_LIBS
11244 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11246 $as_echo "not found" >&6; }
11248 else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11250 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11252 cat >>confdefs.h <<_ACEOF
11253 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11254 _ACEOF
11259 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11260 case "x$with_openssl" in
11261 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11262 xno) ;;
11263 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11264 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11265 esac
11268 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11269 then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11271 $as_echo_n "checking for -lgsm... " >&6; }
11272 if ${ac_cv_lib_soname_gsm+:} false; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11275 ac_check_soname_save_LIBS=$LIBS
11276 LIBS="-lgsm $LIBS"
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11280 /* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11283 #ifdef __cplusplus
11284 extern "C"
11285 #endif
11286 char gsm_create ();
11288 main ()
11290 return gsm_create ();
11292 return 0;
11294 _ACEOF
11295 if ac_fn_c_try_link "$LINENO"; then :
11296 case "$LIBEXT" in
11297 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11298 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'` ;;
11299 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11300 esac
11302 rm -f core conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
11304 LIBS=$ac_check_soname_save_LIBS
11306 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11308 $as_echo "not found" >&6; }
11310 else
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11312 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11314 cat >>confdefs.h <<_ACEOF
11315 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11316 _ACEOF
11321 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11322 case "x$with_gsm" in
11323 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11324 xno) ;;
11325 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11326 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11327 esac
11330 if test "$ac_cv_header_jpeglib_h" = "yes"
11331 then
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11333 $as_echo_n "checking for -ljpeg... " >&6; }
11334 if ${ac_cv_lib_soname_jpeg+:} false; then :
11335 $as_echo_n "(cached) " >&6
11336 else
11337 ac_check_soname_save_LIBS=$LIBS
11338 LIBS="-ljpeg $LIBS"
11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11342 /* Override any GCC internal prototype to avoid an error.
11343 Use char because int might match the return type of a GCC
11344 builtin and then its argument prototype would still apply. */
11345 #ifdef __cplusplus
11346 extern "C"
11347 #endif
11348 char jpeg_start_decompress ();
11350 main ()
11352 return jpeg_start_decompress ();
11354 return 0;
11356 _ACEOF
11357 if ac_fn_c_try_link "$LINENO"; then :
11358 case "$LIBEXT" in
11359 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11360 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'` ;;
11361 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11362 esac
11364 rm -f core conftest.err conftest.$ac_objext \
11365 conftest$ac_exeext conftest.$ac_ext
11366 LIBS=$ac_check_soname_save_LIBS
11368 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11370 $as_echo "not found" >&6; }
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11374 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11376 cat >>confdefs.h <<_ACEOF
11377 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11378 _ACEOF
11383 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11384 case "x$with_jpeg" in
11385 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11386 xno) ;;
11387 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11388 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11389 esac
11392 if test "$ac_cv_header_png_h" = "yes"
11393 then
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11395 $as_echo_n "checking for -lpng... " >&6; }
11396 if ${ac_cv_lib_soname_png+:} false; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 ac_check_soname_save_LIBS=$LIBS
11400 LIBS="-lpng -lm -lz $LIBS"
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11404 /* Override any GCC internal prototype to avoid an error.
11405 Use char because int might match the return type of a GCC
11406 builtin and then its argument prototype would still apply. */
11407 #ifdef __cplusplus
11408 extern "C"
11409 #endif
11410 char png_create_read_struct ();
11412 main ()
11414 return png_create_read_struct ();
11416 return 0;
11418 _ACEOF
11419 if ac_fn_c_try_link "$LINENO"; then :
11420 case "$LIBEXT" in
11421 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11422 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'` ;;
11423 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11424 esac
11426 rm -f core conftest.err conftest.$ac_objext \
11427 conftest$ac_exeext conftest.$ac_ext
11428 LIBS=$ac_check_soname_save_LIBS
11430 if test "x$ac_cv_lib_soname_png" = "x"; then :
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11432 $as_echo "not found" >&6; }
11434 else
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11436 $as_echo "$ac_cv_lib_soname_png" >&6; }
11438 cat >>confdefs.h <<_ACEOF
11439 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11440 _ACEOF
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11445 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11446 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11447 $as_echo_n "(cached) " >&6
11448 else
11449 ac_check_lib_save_LIBS=$LIBS
11450 LIBS="-lpng -lm -lz $LIBS"
11451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11454 /* Override any GCC internal prototype to avoid an error.
11455 Use char because int might match the return type of a GCC
11456 builtin and then its argument prototype would still apply. */
11457 #ifdef __cplusplus
11458 extern "C"
11459 #endif
11460 char png_set_expand_gray_1_2_4_to_8 ();
11462 main ()
11464 return png_set_expand_gray_1_2_4_to_8 ();
11466 return 0;
11468 _ACEOF
11469 if ac_fn_c_try_link "$LINENO"; then :
11470 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11471 else
11472 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11474 rm -f core conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11476 LIBS=$ac_check_lib_save_LIBS
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11479 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11480 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11482 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11487 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11488 then
11489 ac_save_CPPFLAGS="$CPPFLAGS"
11490 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11491 $as_unset ac_cv_header_png_h
11492 for ac_header in png.h
11493 do :
11494 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11495 if test "x$ac_cv_header_png_h" = xyes; then :
11496 cat >>confdefs.h <<_ACEOF
11497 #define HAVE_PNG_H 1
11498 _ACEOF
11502 done
11504 CPPFLAGS="$ac_save_CPPFLAGS"
11505 if test "$ac_cv_header_png_h" = "yes"
11506 then
11507 PNGINCL="$X_CFLAGS"
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11510 $as_echo_n "checking for -lpng... " >&6; }
11511 if ${ac_cv_lib_soname_png+:} false; then :
11512 $as_echo_n "(cached) " >&6
11513 else
11514 ac_check_soname_save_LIBS=$LIBS
11515 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11519 /* Override any GCC internal prototype to avoid an error.
11520 Use char because int might match the return type of a GCC
11521 builtin and then its argument prototype would still apply. */
11522 #ifdef __cplusplus
11523 extern "C"
11524 #endif
11525 char png_create_read_struct ();
11527 main ()
11529 return png_create_read_struct ();
11531 return 0;
11533 _ACEOF
11534 if ac_fn_c_try_link "$LINENO"; then :
11535 case "$LIBEXT" in
11536 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11537 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'` ;;
11538 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11539 esac
11541 rm -f core conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
11543 LIBS=$ac_check_soname_save_LIBS
11545 if test "x$ac_cv_lib_soname_png" = "x"; then :
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11547 $as_echo "not found" >&6; }
11549 else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11551 $as_echo "$ac_cv_lib_soname_png" >&6; }
11553 cat >>confdefs.h <<_ACEOF
11554 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11555 _ACEOF
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11560 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11561 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11562 $as_echo_n "(cached) " >&6
11563 else
11564 ac_check_lib_save_LIBS=$LIBS
11565 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11569 /* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11572 #ifdef __cplusplus
11573 extern "C"
11574 #endif
11575 char png_set_expand_gray_1_2_4_to_8 ();
11577 main ()
11579 return png_set_expand_gray_1_2_4_to_8 ();
11581 return 0;
11583 _ACEOF
11584 if ac_fn_c_try_link "$LINENO"; then :
11585 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11586 else
11587 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11589 rm -f core conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
11591 LIBS=$ac_check_lib_save_LIBS
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11594 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11595 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11596 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11602 if test "x$ac_cv_lib_soname_png" = "x"; then :
11603 case "x$with_png" in
11604 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11605 xno) ;;
11606 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11607 This is an error since --with-png was requested." "$LINENO" 5 ;;
11608 esac
11611 if test "$ac_cv_header_tiffio_h" = "yes"
11612 then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11614 $as_echo_n "checking for -ltiff... " >&6; }
11615 if ${ac_cv_lib_soname_tiff+:} false; then :
11616 $as_echo_n "(cached) " >&6
11617 else
11618 ac_check_soname_save_LIBS=$LIBS
11619 LIBS="-ltiff $LIBS"
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11626 #ifdef __cplusplus
11627 extern "C"
11628 #endif
11629 char TIFFClientOpen ();
11631 main ()
11633 return TIFFClientOpen ();
11635 return 0;
11637 _ACEOF
11638 if ac_fn_c_try_link "$LINENO"; then :
11639 case "$LIBEXT" in
11640 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11641 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'` ;;
11642 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11643 esac
11645 rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647 LIBS=$ac_check_soname_save_LIBS
11649 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11651 $as_echo "not found" >&6; }
11653 else
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11655 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11657 cat >>confdefs.h <<_ACEOF
11658 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11659 _ACEOF
11664 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11665 case "x$with_tiff" in
11666 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11667 xno) ;;
11668 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11669 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11670 esac
11673 if test "$ac_cv_header_mpg123_h" = "yes"
11674 then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11676 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11677 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 ac_check_lib_save_LIBS=$LIBS
11681 LIBS="-lmpg123 $LIBS"
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11685 /* Override any GCC internal prototype to avoid an error.
11686 Use char because int might match the return type of a GCC
11687 builtin and then its argument prototype would still apply. */
11688 #ifdef __cplusplus
11689 extern "C"
11690 #endif
11691 char mpg123_feed ();
11693 main ()
11695 return mpg123_feed ();
11697 return 0;
11699 _ACEOF
11700 if ac_fn_c_try_link "$LINENO"; then :
11701 ac_cv_lib_mpg123_mpg123_feed=yes
11702 else
11703 ac_cv_lib_mpg123_mpg123_feed=no
11705 rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11707 LIBS=$ac_check_lib_save_LIBS
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11710 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11711 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11712 LIBMPG123="-lmpg123"
11717 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11718 case "x$with_mpg123" in
11719 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11720 xno) ;;
11721 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11722 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11723 esac
11725 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}
11727 if test "$ac_cv_header_AL_al_h" = "yes"
11728 then
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11730 $as_echo_n "checking for -lopenal... " >&6; }
11731 if ${ac_cv_lib_soname_openal+:} false; then :
11732 $as_echo_n "(cached) " >&6
11733 else
11734 ac_check_soname_save_LIBS=$LIBS
11735 LIBS="-lopenal $LIBS"
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h. */
11739 /* Override any GCC internal prototype to avoid an error.
11740 Use char because int might match the return type of a GCC
11741 builtin and then its argument prototype would still apply. */
11742 #ifdef __cplusplus
11743 extern "C"
11744 #endif
11745 char alGetSource3i ();
11747 main ()
11749 return alGetSource3i ();
11751 return 0;
11753 _ACEOF
11754 if ac_fn_c_try_link "$LINENO"; then :
11755 case "$LIBEXT" in
11756 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11757 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'` ;;
11758 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11759 esac
11761 rm -f core conftest.err conftest.$ac_objext \
11762 conftest$ac_exeext conftest.$ac_ext
11763 LIBS=$ac_check_soname_save_LIBS
11765 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11767 $as_echo "not found" >&6; }
11769 else
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11771 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11773 cat >>confdefs.h <<_ACEOF
11774 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11775 _ACEOF
11777 LIBOPENAL="-lopenal"
11779 ac_cv_lib_openal=yes
11781 cat >>confdefs.h <<_ACEOF
11782 #define HAVE_OPENAL 1
11783 _ACEOF
11787 if test "x$ac_cv_lib_openal" != xyes; then :
11788 case "x$with_openal" in
11789 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11790 xno) ;;
11791 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11792 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11793 esac
11795 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11797 if test "$ac_cv_header_kstat_h" = "yes"
11798 then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11800 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11801 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11802 $as_echo_n "(cached) " >&6
11803 else
11804 ac_check_lib_save_LIBS=$LIBS
11805 LIBS="-lkstat $LIBS"
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11809 /* Override any GCC internal prototype to avoid an error.
11810 Use char because int might match the return type of a GCC
11811 builtin and then its argument prototype would still apply. */
11812 #ifdef __cplusplus
11813 extern "C"
11814 #endif
11815 char kstat_open ();
11817 main ()
11819 return kstat_open ();
11821 return 0;
11823 _ACEOF
11824 if ac_fn_c_try_link "$LINENO"; then :
11825 ac_cv_lib_kstat_kstat_open=yes
11826 else
11827 ac_cv_lib_kstat_kstat_open=no
11829 rm -f core conftest.err conftest.$ac_objext \
11830 conftest$ac_exeext conftest.$ac_ext
11831 LIBS=$ac_check_lib_save_LIBS
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11834 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11835 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11837 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11839 LIBKSTAT="-lkstat"
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11846 $as_echo_n "checking for -lodbc... " >&6; }
11847 if ${ac_cv_lib_soname_odbc+:} false; then :
11848 $as_echo_n "(cached) " >&6
11849 else
11850 ac_check_soname_save_LIBS=$LIBS
11851 LIBS="-lodbc $LIBS"
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11855 /* Override any GCC internal prototype to avoid an error.
11856 Use char because int might match the return type of a GCC
11857 builtin and then its argument prototype would still apply. */
11858 #ifdef __cplusplus
11859 extern "C"
11860 #endif
11861 char SQLConnect ();
11863 main ()
11865 return SQLConnect ();
11867 return 0;
11869 _ACEOF
11870 if ac_fn_c_try_link "$LINENO"; then :
11871 case "$LIBEXT" in
11872 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11873 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'` ;;
11874 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11875 esac
11877 rm -f core conftest.err conftest.$ac_objext \
11878 conftest$ac_exeext conftest.$ac_ext
11879 LIBS=$ac_check_soname_save_LIBS
11881 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11883 $as_echo "not found" >&6; }
11884 cat >>confdefs.h <<_ACEOF
11885 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11886 _ACEOF
11888 else
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11890 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11892 cat >>confdefs.h <<_ACEOF
11893 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11894 _ACEOF
11899 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11900 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
11901 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
11902 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11904 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
11905 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
11906 "x$with_alsa$with_coreaudio$with_oss" != xnonono
11907 then
11908 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11912 EXTRACFLAGS=""
11914 if test "x${GCC}" = "xyes"
11915 then
11916 EXTRACFLAGS="-Wall -pipe"
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11919 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11920 if ${ac_cv_c_gcc_strength_bug+:} false; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 if test "$cross_compiling" = yes; then :
11924 ac_cv_c_gcc_strength_bug="yes"
11925 else
11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h. */
11928 int L[4] = {0,1,2,3};
11930 main ()
11932 static int Array[3];
11933 unsigned int B = 3;
11934 int i;
11935 for(i=0; i<B; i++) Array[i] = i - 3;
11936 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11937 L[i] = 4;
11938 return (Array[1] != -2 || L[2] != 3)
11940 return 0;
11942 _ACEOF
11943 if ac_fn_c_try_run "$LINENO"; then :
11944 ac_cv_c_gcc_strength_bug="no"
11945 else
11946 ac_cv_c_gcc_strength_bug="yes"
11948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11949 conftest.$ac_objext conftest.beam conftest.$ac_ext
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11954 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11955 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11956 then
11957 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11961 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11962 if ${ac_cv_cflags__fno_builtin+:} false; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 ac_wine_try_cflags_saved=$CFLAGS
11966 CFLAGS="$CFLAGS -fno-builtin"
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11969 int main(int argc, char **argv) { return 0; }
11970 _ACEOF
11971 if ac_fn_c_try_link "$LINENO"; then :
11972 ac_cv_cflags__fno_builtin=yes
11973 else
11974 ac_cv_cflags__fno_builtin=no
11976 rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext conftest.$ac_ext
11978 CFLAGS=$ac_wine_try_cflags_saved
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11981 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11982 if test $ac_cv_cflags__fno_builtin = yes; then :
11983 BUILTINFLAG="-fno-builtin"
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11987 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11988 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 ac_wine_try_cflags_saved=$CFLAGS
11992 CFLAGS="$CFLAGS -fno-strict-aliasing"
11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
11995 int main(int argc, char **argv) { return 0; }
11996 _ACEOF
11997 if ac_fn_c_try_link "$LINENO"; then :
11998 ac_cv_cflags__fno_strict_aliasing=yes
11999 else
12000 ac_cv_cflags__fno_strict_aliasing=no
12002 rm -f core conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12004 CFLAGS=$ac_wine_try_cflags_saved
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12007 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12008 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12009 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12012 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12013 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12014 $as_echo_n "(cached) " >&6
12015 else
12016 ac_wine_try_cflags_saved=$CFLAGS
12017 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12020 int main(int argc, char **argv) { return 0; }
12021 _ACEOF
12022 if ac_fn_c_try_link "$LINENO"; then :
12023 ac_cv_cflags__Wdeclaration_after_statement=yes
12024 else
12025 ac_cv_cflags__Wdeclaration_after_statement=no
12027 rm -f core conftest.err conftest.$ac_objext \
12028 conftest$ac_exeext conftest.$ac_ext
12029 CFLAGS=$ac_wine_try_cflags_saved
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12032 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12033 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12034 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12037 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12038 if ${ac_cv_cflags__Wempty_body+:} false; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 ac_wine_try_cflags_saved=$CFLAGS
12042 CFLAGS="$CFLAGS -Wempty-body"
12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h. */
12045 int main(int argc, char **argv) { return 0; }
12046 _ACEOF
12047 if ac_fn_c_try_link "$LINENO"; then :
12048 ac_cv_cflags__Wempty_body=yes
12049 else
12050 ac_cv_cflags__Wempty_body=no
12052 rm -f core conftest.err conftest.$ac_objext \
12053 conftest$ac_exeext conftest.$ac_ext
12054 CFLAGS=$ac_wine_try_cflags_saved
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12057 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12058 if test $ac_cv_cflags__Wempty_body = yes; then :
12059 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12062 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12063 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 ac_wine_try_cflags_saved=$CFLAGS
12067 CFLAGS="$CFLAGS -Wignored-qualifiers"
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12070 int main(int argc, char **argv) { return 0; }
12071 _ACEOF
12072 if ac_fn_c_try_link "$LINENO"; then :
12073 ac_cv_cflags__Wignored_qualifiers=yes
12074 else
12075 ac_cv_cflags__Wignored_qualifiers=no
12077 rm -f core conftest.err conftest.$ac_objext \
12078 conftest$ac_exeext conftest.$ac_ext
12079 CFLAGS=$ac_wine_try_cflags_saved
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12082 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12083 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12084 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12087 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12088 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12089 $as_echo_n "(cached) " >&6
12090 else
12091 ac_wine_try_cflags_saved=$CFLAGS
12092 CFLAGS="$CFLAGS -Wstrict-prototypes"
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095 int main(int argc, char **argv) { return 0; }
12096 _ACEOF
12097 if ac_fn_c_try_link "$LINENO"; then :
12098 ac_cv_cflags__Wstrict_prototypes=yes
12099 else
12100 ac_cv_cflags__Wstrict_prototypes=no
12102 rm -f core conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12104 CFLAGS=$ac_wine_try_cflags_saved
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12107 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12108 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12109 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12112 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12113 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12114 $as_echo_n "(cached) " >&6
12115 else
12116 ac_wine_try_cflags_saved=$CFLAGS
12117 CFLAGS="$CFLAGS -Wtype-limits"
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12120 int main(int argc, char **argv) { return 0; }
12121 _ACEOF
12122 if ac_fn_c_try_link "$LINENO"; then :
12123 ac_cv_cflags__Wtype_limits=yes
12124 else
12125 ac_cv_cflags__Wtype_limits=no
12127 rm -f core conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
12129 CFLAGS=$ac_wine_try_cflags_saved
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12132 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12133 if test $ac_cv_cflags__Wtype_limits = yes; then :
12134 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12137 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12138 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12139 $as_echo_n "(cached) " >&6
12140 else
12141 ac_wine_try_cflags_saved=$CFLAGS
12142 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12145 int main(int argc, char **argv) { return 0; }
12146 _ACEOF
12147 if ac_fn_c_try_link "$LINENO"; then :
12148 ac_cv_cflags__Wunused_but_set_parameter=yes
12149 else
12150 ac_cv_cflags__Wunused_but_set_parameter=no
12152 rm -f core conftest.err conftest.$ac_objext \
12153 conftest$ac_exeext conftest.$ac_ext
12154 CFLAGS=$ac_wine_try_cflags_saved
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12157 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12158 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12159 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12162 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12163 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 ac_wine_try_cflags_saved=$CFLAGS
12167 CFLAGS="$CFLAGS -Wwrite-strings"
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12170 int main(int argc, char **argv) { return 0; }
12171 _ACEOF
12172 if ac_fn_c_try_link "$LINENO"; then :
12173 ac_cv_cflags__Wwrite_strings=yes
12174 else
12175 ac_cv_cflags__Wwrite_strings=no
12177 rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179 CFLAGS=$ac_wine_try_cflags_saved
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12182 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12183 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12184 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12187 case $host_cpu in
12188 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12189 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12190 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 ac_wine_try_cflags_saved=$CFLAGS
12194 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197 int main(int argc, char **argv) { return 0; }
12198 _ACEOF
12199 if ac_fn_c_try_link "$LINENO"; then :
12200 ac_cv_cflags__fno_omit_frame_pointer=yes
12201 else
12202 ac_cv_cflags__fno_omit_frame_pointer=no
12204 rm -f core conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12206 CFLAGS=$ac_wine_try_cflags_saved
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12209 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12210 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12211 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12212 fi ;;
12213 esac
12215 case $host in
12216 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12217 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12218 if ${ac_cv_cflags__Wno_format+:} false; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12221 ac_wine_try_cflags_saved=$CFLAGS
12222 CFLAGS="$CFLAGS -Wno-format"
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h. */
12225 int main(int argc, char **argv) { return 0; }
12226 _ACEOF
12227 if ac_fn_c_try_link "$LINENO"; then :
12228 ac_cv_cflags__Wno_format=yes
12229 else
12230 ac_cv_cflags__Wno_format=no
12232 rm -f core conftest.err conftest.$ac_objext \
12233 conftest$ac_exeext conftest.$ac_ext
12234 CFLAGS=$ac_wine_try_cflags_saved
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12237 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12238 if test $ac_cv_cflags__Wno_format = yes; then :
12239 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12240 fi ;;
12241 esac
12243 saved_CFLAGS="$CFLAGS"
12244 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12246 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12247 if ${ac_cv_c_string_h_warnings+:} false; then :
12248 $as_echo_n "(cached) " >&6
12249 else
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12252 #include <string.h>
12254 main ()
12258 return 0;
12260 _ACEOF
12261 if ac_fn_c_try_compile "$LINENO"; then :
12262 ac_cv_c_string_h_warnings=no
12263 else
12264 ac_cv_c_string_h_warnings=yes
12266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12269 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12270 CFLAGS="$saved_CFLAGS"
12271 if test "$ac_cv_c_string_h_warnings" = "no"
12272 then
12273 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12276 saved_CFLAGS="$CFLAGS"
12277 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12279 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12280 if ${ac_cv_c_logicalop_noisy+:} false; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12285 #include <string.h>
12287 main ()
12289 char*f(const char *h,char n) {return strchr(h,n);}
12291 return 0;
12293 _ACEOF
12294 if ac_fn_c_try_compile "$LINENO"; then :
12295 ac_cv_c_logicalop_noisy=no
12296 else
12297 ac_cv_c_logicalop_noisy=yes
12299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12302 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12303 CFLAGS="$saved_CFLAGS"
12304 if test "$ac_cv_c_logicalop_noisy" = "no"
12305 then
12306 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12309 if test "x$enable_maintainer_mode" = "xyes"
12310 then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12312 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12313 if ${ac_cv_cflags__Werror+:} false; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 ac_wine_try_cflags_saved=$CFLAGS
12317 CFLAGS="$CFLAGS -Werror"
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12320 int main(int argc, char **argv) { return 0; }
12321 _ACEOF
12322 if ac_fn_c_try_link "$LINENO"; then :
12323 ac_cv_cflags__Werror=yes
12324 else
12325 ac_cv_cflags__Werror=no
12327 rm -f core conftest.err conftest.$ac_objext \
12328 conftest$ac_exeext conftest.$ac_ext
12329 CFLAGS=$ac_wine_try_cflags_saved
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12332 $as_echo "$ac_cv_cflags__Werror" >&6; }
12333 if test $ac_cv_cflags__Werror = yes; then :
12334 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12338 saved_CFLAGS="$CFLAGS"
12339 CFLAGS="$CFLAGS -Werror"
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12341 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12342 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12343 $as_echo_n "(cached) " >&6
12344 else
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12347 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12349 main ()
12353 return 0;
12355 _ACEOF
12356 if ac_fn_c_try_compile "$LINENO"; then :
12357 ac_cv_have_ms_hook_prologue="yes"
12358 else
12359 ac_cv_have_ms_hook_prologue="no"
12361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12364 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12365 CFLAGS="$saved_CFLAGS"
12366 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12367 then
12369 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12371 else
12372 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12379 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12380 if ${ac_cv_c_fortify_enabled+:} false; then :
12381 $as_echo_n "(cached) " >&6
12382 else
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12385 #include <string.h>
12387 main ()
12389 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12390 #error Fortify enabled
12391 #endif
12393 return 0;
12395 _ACEOF
12396 if ac_fn_c_try_compile "$LINENO"; then :
12397 ac_cv_c_fortify_enabled=no
12398 else
12399 ac_cv_c_fortify_enabled=yes
12401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12404 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12405 if test "$ac_cv_c_fortify_enabled" = yes
12406 then
12407 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12412 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12413 if ${ac_cv_c_extern_prefix+:} false; then :
12414 $as_echo_n "(cached) " >&6
12415 else
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12418 extern int ac_test;
12420 main ()
12422 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12424 return 0;
12426 _ACEOF
12427 if ac_fn_c_try_link "$LINENO"; then :
12428 ac_cv_c_extern_prefix="yes"
12429 else
12430 ac_cv_c_extern_prefix="no"
12432 rm -f core conftest.err conftest.$ac_objext \
12433 conftest$ac_exeext conftest.$ac_ext
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12436 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12438 case $host_cpu in
12439 *i[3456789]86*)
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12441 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12442 if ${ac_cv_c_stdcall_suffix+:} false; then :
12443 $as_echo_n "(cached) " >&6
12444 else
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12447 #ifndef _MSC_VER
12448 #define __stdcall __attribute__((__stdcall__))
12449 #endif
12450 int __stdcall ac_test(int i) { return i; }
12452 main ()
12454 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12456 return 0;
12458 _ACEOF
12459 if ac_fn_c_try_link "$LINENO"; then :
12460 ac_cv_c_stdcall_suffix="yes"
12461 else
12462 ac_cv_c_stdcall_suffix="no"
12464 rm -f core conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12468 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12469 *) ac_cv_c_stdcall_suffix="no" ;;
12470 esac
12473 if test "$ac_cv_c_extern_prefix" = "yes"
12474 then
12475 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12477 asm_name_prefix="_"
12478 else
12479 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12481 asm_name_prefix=""
12485 if test "$ac_cv_c_stdcall_suffix" = "yes"
12486 then
12487 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12489 else
12490 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12496 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12497 if ${ac_cv_asm_func_def+:} false; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h. */
12504 main ()
12506 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12508 return 0;
12510 _ACEOF
12511 if ac_fn_c_try_link "$LINENO"; then :
12512 ac_cv_asm_func_def=".def"
12513 else
12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12518 main ()
12520 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12522 return 0;
12524 _ACEOF
12525 if ac_fn_c_try_link "$LINENO"; then :
12526 ac_cv_asm_func_def=".type @function"
12527 else
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12532 main ()
12534 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12536 return 0;
12538 _ACEOF
12539 if ac_fn_c_try_link "$LINENO"; then :
12540 ac_cv_asm_func_def=".type 2"
12541 else
12542 ac_cv_asm_func_def="unknown"
12544 rm -f core conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext conftest.$ac_ext
12547 rm -f core conftest.err conftest.$ac_objext \
12548 conftest$ac_exeext conftest.$ac_ext
12550 rm -f core conftest.err conftest.$ac_objext \
12551 conftest$ac_exeext conftest.$ac_ext
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12554 $as_echo "$ac_cv_asm_func_def" >&6; }
12557 case "$ac_cv_asm_func_def" in
12558 ".def")
12559 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12561 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12562 ".type @function")
12563 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12565 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12566 ".type 2")
12567 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12569 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12571 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12573 asm_func_header="" ;;
12574 esac
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12577 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12578 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12579 $as_echo_n "(cached) " >&6
12580 else
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12583 asm(".text\n\t.long 0");
12585 main ()
12589 return 0;
12591 _ACEOF
12592 if ac_fn_c_try_compile "$LINENO"; then :
12593 ac_cv_c_asm_outside_funcs="yes"
12594 else
12595 ac_cv_c_asm_outside_funcs="no"
12597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12600 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12603 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12604 if ${ac_cv_c_dot_previous+:} false; then :
12605 $as_echo_n "(cached) " >&6
12606 else
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12611 main ()
12613 asm(".text\nac_test:\t.long 0\n\t.previous");
12615 return 0;
12617 _ACEOF
12618 if ac_fn_c_try_link "$LINENO"; then :
12619 ac_cv_c_dot_previous="yes"
12620 else
12621 ac_cv_c_dot_previous="no"
12623 rm -f core conftest.err conftest.$ac_objext \
12624 conftest$ac_exeext conftest.$ac_ext
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12627 $as_echo "$ac_cv_c_dot_previous" >&6; }
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12630 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12631 if ${ac_cv_c_cfi_support+:} false; then :
12632 $as_echo_n "(cached) " >&6
12633 else
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12636 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12638 main ()
12642 return 0;
12644 _ACEOF
12645 if ac_fn_c_try_compile "$LINENO"; then :
12646 ac_cv_c_cfi_support="yes"
12647 else
12648 ac_cv_c_cfi_support="no"
12650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12653 $as_echo "$ac_cv_c_cfi_support" >&6; }
12655 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12656 asm_func_trailer=""
12657 if test "$ac_cv_c_dot_previous" = "yes"
12658 then
12659 asm_func_trailer="\\n\\t.previous"
12661 if test "$ac_cv_c_cfi_support" = "yes"
12662 then
12663 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12664 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12666 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12668 UNWINDFLAGS=-fasynchronous-unwind-tables
12670 else
12671 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12675 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12678 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12679 then
12680 cat >>confdefs.h <<_ACEOF
12681 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12682 _ACEOF
12684 else
12685 cat >>confdefs.h <<_ACEOF
12686 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12687 _ACEOF
12691 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12694 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12698 LDPATH=""
12700 case $build_os in
12701 cygwin*|mingw32*)
12702 TOOLSEXT=".exe"
12704 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12706 darwin*|macosx*)
12709 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12711 esac
12713 case $host_os in
12714 mingw32*)
12715 CRTLIBS="-lmsvcrt"
12717 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12720 esac
12722 MAIN_BINARY="wine"
12724 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12726 case $host_os in
12727 linux*)
12728 case $host_cpu in
12729 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12731 x86_64*) EXTRA_BINARIES="wine64-preloader"
12733 esac
12735 esac
12738 ac_save_CFLAGS="$CFLAGS"
12739 CFLAGS="$CFLAGS $BUILTINFLAG"
12740 for ac_func in \
12741 _finite \
12742 _isnan \
12743 _pclose \
12744 _popen \
12745 _snprintf \
12746 _spawnvp \
12747 _strdup \
12748 _stricmp \
12749 _strnicmp \
12750 _strtoi64 \
12751 _strtoui64 \
12752 _vsnprintf \
12753 asctime_r \
12754 chsize \
12755 dlopen \
12756 epoll_create \
12757 ffs \
12758 finite \
12759 fnmatch \
12760 fork \
12761 fpclass \
12762 fstatfs \
12763 fstatvfs \
12764 ftruncate \
12765 futimes \
12766 futimesat \
12767 getattrlist \
12768 getdirentries \
12769 getopt_long \
12770 getpagesize \
12771 getpwuid \
12772 gettimeofday \
12773 getuid \
12774 kqueue \
12775 lstat \
12776 memmove \
12777 mmap \
12778 pclose \
12779 pipe2 \
12780 poll \
12781 popen \
12782 port_create \
12783 prctl \
12784 pread \
12785 pwrite \
12786 readdir \
12787 readlink \
12788 sched_yield \
12789 select \
12790 setproctitle \
12791 setrlimit \
12792 settimeofday \
12793 sigaltstack \
12794 sigprocmask \
12795 snprintf \
12796 spawnvp \
12797 statfs \
12798 statvfs \
12799 strcasecmp \
12800 strdup \
12801 strerror \
12802 strncasecmp \
12803 strtold \
12804 strtoll \
12805 strtoull \
12806 symlink \
12807 tcgetattr \
12808 thr_kill2 \
12809 timegm \
12810 usleep \
12811 vsnprintf \
12812 wait4 \
12813 waitpid \
12815 do :
12816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12817 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12818 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12819 cat >>confdefs.h <<_ACEOF
12820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12821 _ACEOF
12824 done
12826 CFLAGS="$ac_save_CFLAGS"
12828 if test "$ac_cv_func_dlopen" = no
12829 then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12831 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12832 if ${ac_cv_lib_dl_dlopen+:} false; then :
12833 $as_echo_n "(cached) " >&6
12834 else
12835 ac_check_lib_save_LIBS=$LIBS
12836 LIBS="-ldl $LIBS"
12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12840 /* Override any GCC internal prototype to avoid an error.
12841 Use char because int might match the return type of a GCC
12842 builtin and then its argument prototype would still apply. */
12843 #ifdef __cplusplus
12844 extern "C"
12845 #endif
12846 char dlopen ();
12848 main ()
12850 return dlopen ();
12852 return 0;
12854 _ACEOF
12855 if ac_fn_c_try_link "$LINENO"; then :
12856 ac_cv_lib_dl_dlopen=yes
12857 else
12858 ac_cv_lib_dl_dlopen=no
12860 rm -f core conftest.err conftest.$ac_objext \
12861 conftest$ac_exeext conftest.$ac_ext
12862 LIBS=$ac_check_lib_save_LIBS
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12865 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12866 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12867 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12868 LIBDL="-ldl"
12873 ac_wine_check_funcs_save_LIBS="$LIBS"
12874 LIBS="$LIBS $LIBDL"
12875 for ac_func in dladdr
12876 do :
12877 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12878 if test "x$ac_cv_func_dladdr" = xyes; then :
12879 cat >>confdefs.h <<_ACEOF
12880 #define HAVE_DLADDR 1
12881 _ACEOF
12884 done
12886 LIBS="$ac_wine_check_funcs_save_LIBS"
12888 if test "$ac_cv_func_poll" = no
12889 then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12891 $as_echo_n "checking for poll in -lpoll... " >&6; }
12892 if ${ac_cv_lib_poll_poll+:} false; then :
12893 $as_echo_n "(cached) " >&6
12894 else
12895 ac_check_lib_save_LIBS=$LIBS
12896 LIBS="-lpoll $LIBS"
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12900 /* Override any GCC internal prototype to avoid an error.
12901 Use char because int might match the return type of a GCC
12902 builtin and then its argument prototype would still apply. */
12903 #ifdef __cplusplus
12904 extern "C"
12905 #endif
12906 char poll ();
12908 main ()
12910 return poll ();
12912 return 0;
12914 _ACEOF
12915 if ac_fn_c_try_link "$LINENO"; then :
12916 ac_cv_lib_poll_poll=yes
12917 else
12918 ac_cv_lib_poll_poll=no
12920 rm -f core conftest.err conftest.$ac_objext \
12921 conftest$ac_exeext conftest.$ac_ext
12922 LIBS=$ac_check_lib_save_LIBS
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12925 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12926 if test "x$ac_cv_lib_poll_poll" = xyes; then :
12927 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12928 LIBPOLL="-lpoll"
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12935 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12936 if ${ac_cv_search_gethostbyname+:} false; then :
12937 $as_echo_n "(cached) " >&6
12938 else
12939 ac_func_search_save_LIBS=$LIBS
12940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12943 /* Override any GCC internal prototype to avoid an error.
12944 Use char because int might match the return type of a GCC
12945 builtin and then its argument prototype would still apply. */
12946 #ifdef __cplusplus
12947 extern "C"
12948 #endif
12949 char gethostbyname ();
12951 main ()
12953 return gethostbyname ();
12955 return 0;
12957 _ACEOF
12958 for ac_lib in '' nsl; do
12959 if test -z "$ac_lib"; then
12960 ac_res="none required"
12961 else
12962 ac_res=-l$ac_lib
12963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12965 if ac_fn_c_try_link "$LINENO"; then :
12966 ac_cv_search_gethostbyname=$ac_res
12968 rm -f core conftest.err conftest.$ac_objext \
12969 conftest$ac_exeext
12970 if ${ac_cv_search_gethostbyname+:} false; then :
12971 break
12973 done
12974 if ${ac_cv_search_gethostbyname+:} false; then :
12976 else
12977 ac_cv_search_gethostbyname=no
12979 rm conftest.$ac_ext
12980 LIBS=$ac_func_search_save_LIBS
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12983 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12984 ac_res=$ac_cv_search_gethostbyname
12985 if test "$ac_res" != no; then :
12986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12992 $as_echo_n "checking for library containing connect... " >&6; }
12993 if ${ac_cv_search_connect+:} false; then :
12994 $as_echo_n "(cached) " >&6
12995 else
12996 ac_func_search_save_LIBS=$LIBS
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
13000 /* Override any GCC internal prototype to avoid an error.
13001 Use char because int might match the return type of a GCC
13002 builtin and then its argument prototype would still apply. */
13003 #ifdef __cplusplus
13004 extern "C"
13005 #endif
13006 char connect ();
13008 main ()
13010 return connect ();
13012 return 0;
13014 _ACEOF
13015 for ac_lib in '' socket; do
13016 if test -z "$ac_lib"; then
13017 ac_res="none required"
13018 else
13019 ac_res=-l$ac_lib
13020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13022 if ac_fn_c_try_link "$LINENO"; then :
13023 ac_cv_search_connect=$ac_res
13025 rm -f core conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext
13027 if ${ac_cv_search_connect+:} false; then :
13028 break
13030 done
13031 if ${ac_cv_search_connect+:} false; then :
13033 else
13034 ac_cv_search_connect=no
13036 rm conftest.$ac_ext
13037 LIBS=$ac_func_search_save_LIBS
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13040 $as_echo "$ac_cv_search_connect" >&6; }
13041 ac_res=$ac_cv_search_connect
13042 if test "$ac_res" != no; then :
13043 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13049 $as_echo_n "checking for library containing inet_aton... " >&6; }
13050 if ${ac_cv_search_inet_aton+:} false; then :
13051 $as_echo_n "(cached) " >&6
13052 else
13053 ac_func_search_save_LIBS=$LIBS
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13057 /* Override any GCC internal prototype to avoid an error.
13058 Use char because int might match the return type of a GCC
13059 builtin and then its argument prototype would still apply. */
13060 #ifdef __cplusplus
13061 extern "C"
13062 #endif
13063 char inet_aton ();
13065 main ()
13067 return inet_aton ();
13069 return 0;
13071 _ACEOF
13072 for ac_lib in '' resolv; do
13073 if test -z "$ac_lib"; then
13074 ac_res="none required"
13075 else
13076 ac_res=-l$ac_lib
13077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13079 if ac_fn_c_try_link "$LINENO"; then :
13080 ac_cv_search_inet_aton=$ac_res
13082 rm -f core conftest.err conftest.$ac_objext \
13083 conftest$ac_exeext
13084 if ${ac_cv_search_inet_aton+:} false; then :
13085 break
13087 done
13088 if ${ac_cv_search_inet_aton+:} false; then :
13090 else
13091 ac_cv_search_inet_aton=no
13093 rm conftest.$ac_ext
13094 LIBS=$ac_func_search_save_LIBS
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13097 $as_echo "$ac_cv_search_inet_aton" >&6; }
13098 ac_res=$ac_cv_search_inet_aton
13099 if test "$ac_res" != no; then :
13100 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13105 for ac_func in \
13106 getaddrinfo \
13107 getnameinfo \
13108 getnetbyname \
13109 getprotobyname \
13110 getprotobynumber \
13111 getservbyport \
13112 inet_network \
13113 inet_ntop \
13114 inet_pton \
13115 sendmsg \
13116 socketpair \
13118 do :
13119 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13120 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13121 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13122 cat >>confdefs.h <<_ACEOF
13123 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13124 _ACEOF
13127 done
13130 LDAPLIBS=""
13132 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13133 then
13134 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13136 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13138 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13139 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13140 $as_echo_n "(cached) " >&6
13141 else
13142 ac_check_lib_save_LIBS=$LIBS
13143 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13147 /* Override any GCC internal prototype to avoid an error.
13148 Use char because int might match the return type of a GCC
13149 builtin and then its argument prototype would still apply. */
13150 #ifdef __cplusplus
13151 extern "C"
13152 #endif
13153 char ldap_initialize ();
13155 main ()
13157 return ldap_initialize ();
13159 return 0;
13161 _ACEOF
13162 if ac_fn_c_try_link "$LINENO"; then :
13163 ac_cv_lib_ldap_r_ldap_initialize=yes
13164 else
13165 ac_cv_lib_ldap_r_ldap_initialize=no
13167 rm -f core conftest.err conftest.$ac_objext \
13168 conftest$ac_exeext conftest.$ac_ext
13169 LIBS=$ac_check_lib_save_LIBS
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13172 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13173 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13175 $as_echo_n "checking for ber_init in -llber... " >&6; }
13176 if ${ac_cv_lib_lber_ber_init+:} false; then :
13177 $as_echo_n "(cached) " >&6
13178 else
13179 ac_check_lib_save_LIBS=$LIBS
13180 LIBS="-llber $LIBPTHREAD $LIBS"
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13184 /* Override any GCC internal prototype to avoid an error.
13185 Use char because int might match the return type of a GCC
13186 builtin and then its argument prototype would still apply. */
13187 #ifdef __cplusplus
13188 extern "C"
13189 #endif
13190 char ber_init ();
13192 main ()
13194 return ber_init ();
13196 return 0;
13198 _ACEOF
13199 if ac_fn_c_try_link "$LINENO"; then :
13200 ac_cv_lib_lber_ber_init=yes
13201 else
13202 ac_cv_lib_lber_ber_init=no
13204 rm -f core conftest.err conftest.$ac_objext \
13205 conftest$ac_exeext conftest.$ac_ext
13206 LIBS=$ac_check_lib_save_LIBS
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13209 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13210 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13212 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13214 LDAPLIBS="-lldap_r -llber"
13221 ac_wine_check_funcs_save_LIBS="$LIBS"
13222 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13223 for ac_func in \
13224 ldap_count_references \
13225 ldap_first_reference \
13226 ldap_next_reference \
13227 ldap_parse_reference \
13228 ldap_parse_sort_control \
13229 ldap_parse_sortresponse_control \
13230 ldap_parse_vlv_control \
13231 ldap_parse_vlvresponse_control
13232 do :
13233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13234 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13235 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13236 cat >>confdefs.h <<_ACEOF
13237 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13238 _ACEOF
13241 done
13243 LIBS="$ac_wine_check_funcs_save_LIBS"
13245 if test "x$LDAPLIBS" = "x"; then :
13246 case "x$with_ldap" in
13247 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13248 xno) ;;
13249 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13250 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13251 esac
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13255 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13256 if ${wine_cv_one_arg_mkdir+:} false; then :
13257 $as_echo_n "(cached) " >&6
13258 else
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13261 #include <sys/stat.h>
13263 main ()
13265 mkdir("foo");
13267 return 0;
13269 _ACEOF
13270 if ac_fn_c_try_compile "$LINENO"; then :
13271 wine_cv_one_arg_mkdir=yes
13272 else
13273 wine_cv_one_arg_mkdir=no
13275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13278 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13279 if test "$wine_cv_one_arg_mkdir" = "yes"
13280 then
13282 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13287 $as_echo_n "checking for sched_setaffinity... " >&6; }
13288 if ${wine_cv_have_sched_setaffinity+:} false; then :
13289 $as_echo_n "(cached) " >&6
13290 else
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13293 #define _GNU_SOURCE
13294 #include <sched.h>
13296 main ()
13298 sched_setaffinity(0, 0, 0);
13300 return 0;
13302 _ACEOF
13303 if ac_fn_c_try_link "$LINENO"; then :
13304 wine_cv_have_sched_setaffinity=yes
13305 else
13306 wine_cv_have_sched_setaffinity=no
13308 rm -f core conftest.err conftest.$ac_objext \
13309 conftest$ac_exeext conftest.$ac_ext
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13312 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13313 if test "$wine_cv_have_sched_setaffinity" = "yes"
13314 then
13316 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13322 $as_echo_n "checking for inline... " >&6; }
13323 if ${ac_cv_c_inline+:} false; then :
13324 $as_echo_n "(cached) " >&6
13325 else
13326 ac_cv_c_inline=no
13327 for ac_kw in inline __inline__ __inline; do
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13330 #ifndef __cplusplus
13331 typedef int foo_t;
13332 static $ac_kw foo_t static_foo () {return 0; }
13333 $ac_kw foo_t foo () {return 0; }
13334 #endif
13336 _ACEOF
13337 if ac_fn_c_try_compile "$LINENO"; then :
13338 ac_cv_c_inline=$ac_kw
13340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341 test "$ac_cv_c_inline" != no && break
13342 done
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13346 $as_echo "$ac_cv_c_inline" >&6; }
13348 case $ac_cv_c_inline in
13349 inline | yes) ;;
13351 case $ac_cv_c_inline in
13352 no) ac_val=;;
13353 *) ac_val=$ac_cv_c_inline;;
13354 esac
13355 cat >>confdefs.h <<_ACEOF
13356 #ifndef __cplusplus
13357 #define inline $ac_val
13358 #endif
13359 _ACEOF
13361 esac
13363 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13364 if test "x$ac_cv_type_mode_t" = xyes; then :
13366 cat >>confdefs.h <<_ACEOF
13367 #define HAVE_MODE_T 1
13368 _ACEOF
13372 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13373 if test "x$ac_cv_type_off_t" = xyes; then :
13375 cat >>confdefs.h <<_ACEOF
13376 #define HAVE_OFF_T 1
13377 _ACEOF
13381 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13382 if test "x$ac_cv_type_pid_t" = xyes; then :
13384 cat >>confdefs.h <<_ACEOF
13385 #define HAVE_PID_T 1
13386 _ACEOF
13390 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13391 if test "x$ac_cv_type_size_t" = xyes; then :
13393 cat >>confdefs.h <<_ACEOF
13394 #define HAVE_SIZE_T 1
13395 _ACEOF
13399 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13400 if test "x$ac_cv_type_ssize_t" = xyes; then :
13402 cat >>confdefs.h <<_ACEOF
13403 #define HAVE_SSIZE_T 1
13404 _ACEOF
13408 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13409 if test "x$ac_cv_type_long_long" = xyes; then :
13411 cat >>confdefs.h <<_ACEOF
13412 #define HAVE_LONG_LONG 1
13413 _ACEOF
13417 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13418 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13420 cat >>confdefs.h <<_ACEOF
13421 #define HAVE_FSBLKCNT_T 1
13422 _ACEOF
13426 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13427 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13429 cat >>confdefs.h <<_ACEOF
13430 #define HAVE_FSFILCNT_T 1
13431 _ACEOF
13436 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13437 #include <signal.h>
13439 if test "x$ac_cv_type_sigset_t" = xyes; then :
13441 cat >>confdefs.h <<_ACEOF
13442 #define HAVE_SIGSET_T 1
13443 _ACEOF
13448 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13450 if test "x$ac_cv_type_request_sense" = xyes; then :
13452 cat >>confdefs.h <<_ACEOF
13453 #define HAVE_REQUEST_SENSE 1
13454 _ACEOF
13460 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13461 #ifdef HAVE_SYS_SOCKET_H
13462 #include <sys/socket.h>
13463 #endif
13464 #ifdef HAVE_SYS_SOCKETVAR_H
13465 #include <sys/socketvar.h>
13466 #endif
13467 #ifdef HAVE_NET_ROUTE_H
13468 #include <net/route.h>
13469 #endif
13470 #ifdef HAVE_NETINET_IN_H
13471 #include <netinet/in.h>
13472 #endif
13473 #ifdef HAVE_NETINET_IN_SYSTM_H
13474 #include <netinet/in_systm.h>
13475 #endif
13476 #ifdef HAVE_NETINET_IP_H
13477 #include <netinet/ip.h>
13478 #endif
13479 #ifdef HAVE_NETINET_IN_PCB_H
13480 #include <netinet/in_pcb.h>
13481 #endif
13483 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13485 cat >>confdefs.h <<_ACEOF
13486 #define HAVE_STRUCT_XINPGEN 1
13487 _ACEOF
13493 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13494 #include <linux/input.h>
13495 #endif
13497 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13499 cat >>confdefs.h <<_ACEOF
13500 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13501 _ACEOF
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13508 $as_echo_n "checking for sigaddset... " >&6; }
13509 if ${wine_cv_have_sigaddset+:} false; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13514 #include <signal.h>
13516 main ()
13518 sigset_t set; sigaddset(&set,SIGTERM);
13520 return 0;
13522 _ACEOF
13523 if ac_fn_c_try_link "$LINENO"; then :
13524 wine_cv_have_sigaddset=yes
13525 else
13526 wine_cv_have_sigaddset=no
13528 rm -f core conftest.err conftest.$ac_objext \
13529 conftest$ac_exeext conftest.$ac_ext
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13532 $as_echo "$wine_cv_have_sigaddset" >&6; }
13533 if test "$wine_cv_have_sigaddset" = "yes"
13534 then
13536 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13542 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13543 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13544 $as_echo_n "(cached) " >&6
13545 else
13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547 /* end confdefs.h. */
13548 #include <netdb.h>
13550 main ()
13553 char *name=0;
13554 struct hostent he;
13555 struct hostent *result;
13556 char *buf=0;
13557 int bufsize=0;
13558 int errnr;
13559 char *addr=0;
13560 int addrlen=0;
13561 int addrtype=0;
13562 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13563 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13566 return 0;
13568 _ACEOF
13569 if ac_fn_c_try_link "$LINENO"; then :
13570 wine_cv_linux_gethostbyname_r_6=yes
13571 else
13572 wine_cv_linux_gethostbyname_r_6=no
13575 rm -f core conftest.err conftest.$ac_objext \
13576 conftest$ac_exeext conftest.$ac_ext
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13580 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13581 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13582 then
13584 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13588 if test "$ac_cv_header_linux_joystick_h" = "yes"
13589 then
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13591 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13592 if ${wine_cv_linux_joystick_22_api+:} false; then :
13593 $as_echo_n "(cached) " >&6
13594 else
13595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h. */
13598 #include <sys/ioctl.h>
13599 #include <sys/types.h>
13600 #include <linux/joystick.h>
13602 struct js_event blub;
13603 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13604 #error "no 2.2 header"
13605 #endif
13608 main ()
13610 /*empty*/
13612 return 0;
13614 _ACEOF
13615 if ac_fn_c_try_compile "$LINENO"; then :
13616 wine_cv_linux_joystick_22_api=yes
13617 else
13618 wine_cv_linux_joystick_22_api=no
13620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13624 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13625 if test "$wine_cv_linux_joystick_22_api" = "yes"
13626 then
13628 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13634 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13635 #ifdef HAVE_SYS_PARAM_H
13636 # include <sys/param.h>
13637 #endif
13638 #ifdef HAVE_SYS_MOUNT_H
13639 # include <sys/mount.h>
13640 #endif
13641 #ifdef HAVE_SYS_VFS_H
13642 # include <sys/vfs.h>
13643 #endif
13644 #ifdef HAVE_SYS_STATFS_H
13645 # include <sys/statfs.h>
13646 #endif
13648 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13650 cat >>confdefs.h <<_ACEOF
13651 #define HAVE_STRUCT_STATFS_F_BFREE 1
13652 _ACEOF
13656 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13657 #ifdef HAVE_SYS_PARAM_H
13658 # include <sys/param.h>
13659 #endif
13660 #ifdef HAVE_SYS_MOUNT_H
13661 # include <sys/mount.h>
13662 #endif
13663 #ifdef HAVE_SYS_VFS_H
13664 # include <sys/vfs.h>
13665 #endif
13666 #ifdef HAVE_SYS_STATFS_H
13667 # include <sys/statfs.h>
13668 #endif
13670 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13672 cat >>confdefs.h <<_ACEOF
13673 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13674 _ACEOF
13678 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13679 #ifdef HAVE_SYS_PARAM_H
13680 # include <sys/param.h>
13681 #endif
13682 #ifdef HAVE_SYS_MOUNT_H
13683 # include <sys/mount.h>
13684 #endif
13685 #ifdef HAVE_SYS_VFS_H
13686 # include <sys/vfs.h>
13687 #endif
13688 #ifdef HAVE_SYS_STATFS_H
13689 # include <sys/statfs.h>
13690 #endif
13692 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13694 cat >>confdefs.h <<_ACEOF
13695 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13696 _ACEOF
13700 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13701 #ifdef HAVE_SYS_PARAM_H
13702 # include <sys/param.h>
13703 #endif
13704 #ifdef HAVE_SYS_MOUNT_H
13705 # include <sys/mount.h>
13706 #endif
13707 #ifdef HAVE_SYS_VFS_H
13708 # include <sys/vfs.h>
13709 #endif
13710 #ifdef HAVE_SYS_STATFS_H
13711 # include <sys/statfs.h>
13712 #endif
13714 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13716 cat >>confdefs.h <<_ACEOF
13717 #define HAVE_STRUCT_STATFS_F_FFREE 1
13718 _ACEOF
13722 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13723 #ifdef HAVE_SYS_PARAM_H
13724 # include <sys/param.h>
13725 #endif
13726 #ifdef HAVE_SYS_MOUNT_H
13727 # include <sys/mount.h>
13728 #endif
13729 #ifdef HAVE_SYS_VFS_H
13730 # include <sys/vfs.h>
13731 #endif
13732 #ifdef HAVE_SYS_STATFS_H
13733 # include <sys/statfs.h>
13734 #endif
13736 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13738 cat >>confdefs.h <<_ACEOF
13739 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13740 _ACEOF
13744 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13745 #ifdef HAVE_SYS_PARAM_H
13746 # include <sys/param.h>
13747 #endif
13748 #ifdef HAVE_SYS_MOUNT_H
13749 # include <sys/mount.h>
13750 #endif
13751 #ifdef HAVE_SYS_VFS_H
13752 # include <sys/vfs.h>
13753 #endif
13754 #ifdef HAVE_SYS_STATFS_H
13755 # include <sys/statfs.h>
13756 #endif
13758 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13760 cat >>confdefs.h <<_ACEOF
13761 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13762 _ACEOF
13768 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13769 #include <sys/statvfs.h>
13770 #endif
13772 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13774 cat >>confdefs.h <<_ACEOF
13775 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13776 _ACEOF
13782 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13783 #ifdef HAVE_SYS_SOCKET_H
13784 # include <sys/socket.h>
13785 #endif
13786 #ifdef HAVE_SYS_UN_H
13787 # include <sys/un.h>
13788 #endif
13790 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13792 cat >>confdefs.h <<_ACEOF
13793 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13794 _ACEOF
13798 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13799 #ifdef HAVE_SYS_SOCKET_H
13800 # include <sys/socket.h>
13801 #endif
13802 #ifdef HAVE_SYS_UN_H
13803 # include <sys/un.h>
13804 #endif
13806 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13808 cat >>confdefs.h <<_ACEOF
13809 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13810 _ACEOF
13814 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13815 #ifdef HAVE_SYS_SOCKET_H
13816 # include <sys/socket.h>
13817 #endif
13818 #ifdef HAVE_SYS_UN_H
13819 # include <sys/un.h>
13820 #endif
13822 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13824 cat >>confdefs.h <<_ACEOF
13825 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13826 _ACEOF
13832 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13833 #ifdef HAVE_SCSI_SG_H
13834 #include <scsi/sg.h>
13835 #endif
13837 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13839 cat >>confdefs.h <<_ACEOF
13840 #define HAVE_SCSIREQ_T_CMD 1
13841 _ACEOF
13845 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>
13846 #ifdef HAVE_SCSI_SG_H
13847 #include <scsi/sg.h>
13848 #endif
13850 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13852 cat >>confdefs.h <<_ACEOF
13853 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13854 _ACEOF
13860 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13862 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
13864 cat >>confdefs.h <<_ACEOF
13865 #define HAVE_SIGINFO_T_SI_FD 1
13866 _ACEOF
13872 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13873 #ifdef HAVE_SYS_MTIO_H
13874 #include <sys/mtio.h>
13875 #endif
13877 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
13879 cat >>confdefs.h <<_ACEOF
13880 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13881 _ACEOF
13885 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13886 #ifdef HAVE_SYS_MTIO_H
13887 #include <sys/mtio.h>
13888 #endif
13890 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
13892 cat >>confdefs.h <<_ACEOF
13893 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13894 _ACEOF
13898 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13899 #ifdef HAVE_SYS_MTIO_H
13900 #include <sys/mtio.h>
13901 #endif
13903 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
13905 cat >>confdefs.h <<_ACEOF
13906 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13907 _ACEOF
13913 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13914 #include <getopt.h>
13915 #endif
13917 if test "x$ac_cv_member_struct_option_name" = xyes; then :
13919 cat >>confdefs.h <<_ACEOF
13920 #define HAVE_STRUCT_OPTION_NAME 1
13921 _ACEOF
13927 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13928 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13930 cat >>confdefs.h <<_ACEOF
13931 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13932 _ACEOF
13936 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13937 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13939 cat >>confdefs.h <<_ACEOF
13940 #define HAVE_STRUCT_STAT_ST_MTIM 1
13941 _ACEOF
13945 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13946 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
13948 cat >>confdefs.h <<_ACEOF
13949 #define HAVE_STRUCT_STAT_ST_CTIM 1
13950 _ACEOF
13954 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13955 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
13957 cat >>confdefs.h <<_ACEOF
13958 #define HAVE_STRUCT_STAT_ST_ATIM 1
13959 _ACEOF
13965 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
13966 #include <sys/types.h>
13967 #endif
13968 #ifdef HAVE_NETINET_IN_H
13969 #include <netinet/in.h>
13970 #endif
13972 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13974 cat >>confdefs.h <<_ACEOF
13975 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13976 _ACEOF
13982 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13983 #include <sys/types.h>
13984 #endif
13985 #ifdef HAVE_NETINET_IN_H
13986 # include <netinet/in.h>
13987 #endif
13988 #ifdef HAVE_ARPA_NAMESER_H
13989 # include <arpa/nameser.h>
13990 #endif
13992 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
13994 cat >>confdefs.h <<_ACEOF
13995 #define HAVE_NS_MSG__MSG_PTR 1
13996 _ACEOF
14002 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14003 #include <sys/types.h>
14004 #endif
14005 #ifdef HAVE_ALIAS_H
14006 #include <alias.h>
14007 #endif
14008 #ifdef HAVE_SYS_SOCKET_H
14009 #include <sys/socket.h>
14010 #endif
14011 #ifdef HAVE_SYS_SOCKETVAR_H
14012 #include <sys/socketvar.h>
14013 #endif
14014 #ifdef HAVE_SYS_TIMEOUT_H
14015 #include <sys/timeout.h>
14016 #endif
14017 #ifdef HAVE_NETINET_IN_H
14018 #include <netinet/in.h>
14019 #endif
14020 #ifdef HAVE_NETINET_IN_SYSTM_H
14021 #include <netinet/in_systm.h>
14022 #endif
14023 #ifdef HAVE_NETINET_IP_H
14024 #include <netinet/ip.h>
14025 #endif
14026 #ifdef HAVE_NETINET_IP_VAR_H
14027 #include <netinet/ip_var.h>
14028 #endif
14029 #ifdef HAVE_NETINET_IP_ICMP_H
14030 #include <netinet/ip_icmp.h>
14031 #endif
14032 #ifdef HAVE_NETINET_ICMP_VAR
14033 #include <netinet/icmp_var.h>
14034 #endif
14036 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14038 cat >>confdefs.h <<_ACEOF
14039 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14040 _ACEOF
14046 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14047 #include <sys/types.h>
14048 #endif
14049 #ifdef HAVE_NET_IF_H
14050 # include <net/if.h>
14051 #endif
14053 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14055 cat >>confdefs.h <<_ACEOF
14056 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14057 _ACEOF
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14064 $as_echo_n "checking for timezone variable... " >&6; }
14065 if ${ac_cv_have_timezone+:} false; then :
14066 $as_echo_n "(cached) " >&6
14067 else
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070 #include <time.h>
14072 main ()
14074 timezone = 1
14076 return 0;
14078 _ACEOF
14079 if ac_fn_c_try_link "$LINENO"; then :
14080 ac_cv_have_timezone="yes"
14081 else
14082 ac_cv_have_timezone="no"
14084 rm -f core conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14088 $as_echo "$ac_cv_have_timezone" >&6; }
14089 if test "$ac_cv_have_timezone" = "yes"
14090 then
14092 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14096 $as_echo_n "checking for daylight variable... " >&6; }
14097 if ${ac_cv_have_daylight+:} false; then :
14098 $as_echo_n "(cached) " >&6
14099 else
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102 #include <time.h>
14104 main ()
14106 daylight = 1
14108 return 0;
14110 _ACEOF
14111 if ac_fn_c_try_link "$LINENO"; then :
14112 ac_cv_have_daylight="yes"
14113 else
14114 ac_cv_have_daylight="no"
14116 rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14120 $as_echo "$ac_cv_have_daylight" >&6; }
14121 if test "$ac_cv_have_daylight" = "yes"
14122 then
14124 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14128 ac_save_LIBS="$LIBS"
14129 LIBS="$LIBS -lm"
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14131 $as_echo_n "checking for isinf... " >&6; }
14132 if ${ac_cv_have_isinf+:} false; then :
14133 $as_echo_n "(cached) " >&6
14134 else
14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14137 #include <math.h>
14139 main ()
14141 float f = 0.0; return isinf(f)
14143 return 0;
14145 _ACEOF
14146 if ac_fn_c_try_link "$LINENO"; then :
14147 ac_cv_have_isinf="yes"
14148 else
14149 ac_cv_have_isinf="no"
14151 rm -f core conftest.err conftest.$ac_objext \
14152 conftest$ac_exeext conftest.$ac_ext
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14155 $as_echo "$ac_cv_have_isinf" >&6; }
14156 if test "$ac_cv_have_isinf" = "yes"
14157 then
14159 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14164 $as_echo_n "checking for isnan... " >&6; }
14165 if ${ac_cv_have_isnan+:} false; then :
14166 $as_echo_n "(cached) " >&6
14167 else
14168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14169 /* end confdefs.h. */
14170 #include <math.h>
14172 main ()
14174 float f = 0.0; return isnan(f)
14176 return 0;
14178 _ACEOF
14179 if ac_fn_c_try_link "$LINENO"; then :
14180 ac_cv_have_isnan="yes"
14181 else
14182 ac_cv_have_isnan="no"
14184 rm -f core conftest.err conftest.$ac_objext \
14185 conftest$ac_exeext conftest.$ac_ext
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14188 $as_echo "$ac_cv_have_isnan" >&6; }
14189 if test "$ac_cv_have_isnan" = "yes"
14190 then
14192 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14195 LIBS="$ac_save_LIBS"
14198 case $host_cpu in
14199 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14200 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14201 if ${ac_cv_cpp_def___i386__+:} false; then :
14202 $as_echo_n "(cached) " >&6
14203 else
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14206 #ifndef __i386__
14208 #endif
14209 _ACEOF
14210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14211 $EGREP "yes" >/dev/null 2>&1; then :
14212 ac_cv_cpp_def___i386__=yes
14213 else
14214 ac_cv_cpp_def___i386__=no
14216 rm -f conftest*
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14220 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14221 if test $ac_cv_cpp_def___i386__ = yes; then :
14222 CFLAGS="$CFLAGS -D__i386__"
14223 LINTFLAGS="$LINTFLAGS -D__i386__"
14224 fi ;;
14225 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14226 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14227 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14228 $as_echo_n "(cached) " >&6
14229 else
14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h. */
14232 #ifndef __x86_64__
14234 #endif
14235 _ACEOF
14236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14237 $EGREP "yes" >/dev/null 2>&1; then :
14238 ac_cv_cpp_def___x86_64__=yes
14239 else
14240 ac_cv_cpp_def___x86_64__=no
14242 rm -f conftest*
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14246 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14247 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14248 CFLAGS="$CFLAGS -D__x86_64__"
14249 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14250 fi ;;
14251 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14252 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14253 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14254 $as_echo_n "(cached) " >&6
14255 else
14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257 /* end confdefs.h. */
14258 #ifndef __sparc64__
14260 #endif
14261 _ACEOF
14262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14263 $EGREP "yes" >/dev/null 2>&1; then :
14264 ac_cv_cpp_def___sparc64__=yes
14265 else
14266 ac_cv_cpp_def___sparc64__=no
14268 rm -f conftest*
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14272 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14273 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14274 CFLAGS="$CFLAGS -D__sparc64__"
14275 LINTFLAGS="$LINTFLAGS -D__sparc64__"
14276 fi ;;
14277 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14278 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14279 if ${ac_cv_cpp_def___sparc__+:} false; then :
14280 $as_echo_n "(cached) " >&6
14281 else
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 #ifndef __sparc__
14286 #endif
14287 _ACEOF
14288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14289 $EGREP "yes" >/dev/null 2>&1; then :
14290 ac_cv_cpp_def___sparc__=yes
14291 else
14292 ac_cv_cpp_def___sparc__=no
14294 rm -f conftest*
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14298 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14299 if test $ac_cv_cpp_def___sparc__ = yes; then :
14300 CFLAGS="$CFLAGS -D__sparc__"
14301 LINTFLAGS="$LINTFLAGS -D__sparc__"
14302 fi ;;
14303 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14304 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14305 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14310 #ifndef __powerpc64__
14312 #endif
14313 _ACEOF
14314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14315 $EGREP "yes" >/dev/null 2>&1; then :
14316 ac_cv_cpp_def___powerpc64__=yes
14317 else
14318 ac_cv_cpp_def___powerpc64__=no
14320 rm -f conftest*
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14324 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14325 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14326 CFLAGS="$CFLAGS -D__powerpc64__"
14327 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14328 fi ;;
14329 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14330 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14331 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14332 $as_echo_n "(cached) " >&6
14333 else
14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14336 #ifndef __powerpc__
14338 #endif
14339 _ACEOF
14340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14341 $EGREP "yes" >/dev/null 2>&1; then :
14342 ac_cv_cpp_def___powerpc__=yes
14343 else
14344 ac_cv_cpp_def___powerpc__=no
14346 rm -f conftest*
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14350 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14351 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14352 CFLAGS="$CFLAGS -D__powerpc__"
14353 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14354 fi ;;
14355 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14356 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14357 if ${ac_cv_cpp_def___arm__+:} false; then :
14358 $as_echo_n "(cached) " >&6
14359 else
14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14362 #ifndef __arm__
14364 #endif
14365 _ACEOF
14366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14367 $EGREP "yes" >/dev/null 2>&1; then :
14368 ac_cv_cpp_def___arm__=yes
14369 else
14370 ac_cv_cpp_def___arm__=no
14372 rm -f conftest*
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14376 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14377 if test $ac_cv_cpp_def___arm__ = yes; then :
14378 CFLAGS="$CFLAGS -D__arm__"
14379 LINTFLAGS="$LINTFLAGS -D__arm__"
14380 fi ;;
14381 esac
14383 case $host_vendor in
14384 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14385 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14386 if ${ac_cv_cpp_def___sun__+:} false; then :
14387 $as_echo_n "(cached) " >&6
14388 else
14389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14390 /* end confdefs.h. */
14391 #ifndef __sun__
14393 #endif
14394 _ACEOF
14395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14396 $EGREP "yes" >/dev/null 2>&1; then :
14397 ac_cv_cpp_def___sun__=yes
14398 else
14399 ac_cv_cpp_def___sun__=no
14401 rm -f conftest*
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14405 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14406 if test $ac_cv_cpp_def___sun__ = yes; then :
14407 CFLAGS="$CFLAGS -D__sun__"
14408 LINTFLAGS="$LINTFLAGS -D__sun__"
14409 fi ;;
14410 esac
14416 ac_config_commands="$ac_config_commands include/stamp-h"
14419 ALL_MAKEFILE_DEPENDS="
14420 # Rules automatically generated by configure
14422 .INIT: Makefile
14423 .MAKEFILEDEPS:
14424 all: Makefile
14425 Makefile: Makefile.in Make.vars.in Make.rules config.status
14426 @./config.status Make.tmp Makefile"
14428 ALL_POT_FILES=""
14429 ALL_TEST_RESOURCES=""
14432 wine_fn_append_file ()
14434 as_fn_append $1 " \\$as_nl $2"
14437 wine_fn_append_rule ()
14439 as_fn_append $1 "$as_nl$2"
14442 wine_fn_has_flag ()
14444 expr ",$2," : ".*,$1,.*" >/dev/null
14447 wine_fn_all_dir_rules ()
14449 ac_dir=$1
14450 ac_alldeps=$2
14451 ac_makedep="\$(MAKEDEP)"
14452 ac_input=Make.vars.in:$ac_dir/Makefile.in
14453 if test $ac_dir != tools
14454 then
14455 ac_alldeps="$2 $ac_makedep"
14457 case $2 in
14458 *.in) ac_input=$ac_input:$2 ;;
14459 *) ac_makedep="$2 $ac_makedep" ;;
14460 esac
14462 wine_fn_append_file ALL_DIRS $ac_dir
14463 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14464 "__clean__: $ac_dir/__clean__
14465 .PHONY: $ac_dir/__clean__
14466 $ac_dir/__clean__: $ac_dir/Makefile
14467 @cd $ac_dir && \$(MAKE) clean
14468 \$(RM) $ac_dir/Makefile
14469 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14470 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14471 depend: $ac_dir/__depend__
14472 .PHONY: $ac_dir/__depend__
14473 $ac_dir/__depend__: $ac_makedep dummy
14474 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14477 wine_fn_pot_rules ()
14479 ac_dir=$1
14480 ac_flags=$2
14482 test "x$with_gettextpo" = xyes || return
14484 if wine_fn_has_flag mc $ac_flags
14485 then
14486 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14487 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14488 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
14489 @cd $ac_dir && \$(MAKE) msg.pot
14490 $ac_dir/msg.pot: tools/wmc include"
14492 if wine_fn_has_flag po $ac_flags
14493 then
14494 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14495 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14496 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14497 @cd $ac_dir && \$(MAKE) rsrc.pot
14498 $ac_dir/rsrc.pot: tools/wrc include"
14502 wine_fn_config_makefile ()
14504 ac_dir=$1
14505 ac_enable=$2
14506 ac_flags=$3
14507 ac_rules=$4
14508 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14509 return 0
14512 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
14513 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14514 "all: $ac_dir
14515 .PHONY: $ac_dir
14516 $ac_dir: $ac_dir/Makefile dummy
14517 @cd $ac_dir && \$(MAKE)"
14519 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14521 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14522 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14523 $ac_dir/__install__:: $ac_dir
14524 @cd $ac_dir && \$(MAKE) install
14525 $ac_dir/__uninstall__:: $ac_dir/Makefile
14526 @cd $ac_dir && \$(MAKE) uninstall
14527 install:: $ac_dir/__install__
14528 __uninstall__: $ac_dir/__uninstall__"
14530 if wine_fn_has_flag install-lib $ac_flags
14531 then
14532 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14533 ".PHONY: $ac_dir/__install-lib__
14534 $ac_dir/__install-lib__:: $ac_dir
14535 @cd $ac_dir && \$(MAKE) install-lib
14536 install-lib:: $ac_dir/__install-lib__"
14539 if wine_fn_has_flag install-dev $ac_flags
14540 then
14541 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14542 ".PHONY: $ac_dir/__install-dev
14543 $ac_dir/__install-dev__:: $ac_dir
14544 @cd $ac_dir && \$(MAKE) install-dev
14545 install-dev:: $ac_dir/__install-dev__"
14549 wine_fn_config_lib ()
14551 ac_name=$1
14552 ac_flags=$2
14553 ac_dir=dlls/$ac_name
14554 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14556 if wine_fn_has_flag install-dev $ac_flags
14557 then :
14558 else
14559 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14560 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14561 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14562 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14563 $ac_dir/__uninstall__::
14564 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14565 install install-dev:: $ac_dir/__install__
14566 __uninstall__: $ac_dir/__uninstall__"
14569 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14570 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14573 wine_fn_config_dll ()
14575 ac_name=$1
14576 ac_dir=dlls/$ac_name
14577 ac_enable=$2
14578 ac_flags=$3
14579 ac_implib=${4:-$ac_name}
14580 ac_file=$ac_dir/lib$ac_implib
14581 ac_dll=$ac_name
14582 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14583 ac_implibflags=""
14585 case $ac_name in
14586 *16) ac_implibflags=" -m16" ;;
14587 *.*) ;;
14588 *) ac_dll=$ac_dll.dll ;;
14589 esac
14591 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
14593 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14594 test "$ac_enable" != enable_win16 || return 0
14595 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14596 else
14597 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14598 "$ac_dir: __builddeps__
14599 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14600 @cd $ac_dir && \$(MAKE) \$@"
14602 if wine_fn_has_flag install-lib $ac_flags
14603 then :
14604 else
14605 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14606 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14607 install install-lib:: $ac_dir/__install-lib__
14608 __uninstall__: $ac_dir/__uninstall__"
14609 if test -n "$DLLEXT"
14610 then
14611 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14612 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14613 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14614 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14615 $ac_dir/__uninstall__::
14616 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14617 else
14618 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14619 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14620 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14621 $ac_dir/__uninstall__::
14622 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14626 wine_fn_pot_rules $ac_dir $ac_flags
14629 if wine_fn_has_flag staticimplib $ac_flags
14630 then
14631 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14632 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14633 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14634 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14635 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14636 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14637 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14638 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14639 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14640 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14641 $ac_dir/__uninstall__::
14642 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14643 install install-dev:: $ac_dir/__install-dev__
14644 __uninstall__: $ac_dir/__uninstall__"
14646 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14647 then
14648 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14649 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14650 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14651 $ac_dir/__uninstall__::
14652 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14655 if test "x$CROSSTEST_DISABLE" = x
14656 then
14657 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14658 "__builddeps__: $ac_file.cross.a
14659 $ac_file.cross.a: $ac_dir/Makefile dummy
14660 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14663 elif wine_fn_has_flag implib $ac_flags
14664 then
14665 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14666 "__builddeps__: $ac_file.$IMPLIBEXT
14667 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14668 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14669 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14670 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14671 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14672 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14673 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14674 $ac_dir/__uninstall__::
14675 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14676 install install-dev:: $ac_dir/__install-dev__
14677 __uninstall__: $ac_dir/__uninstall__"
14678 if test "x$CROSSTEST_DISABLE" = x
14679 then
14680 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14681 "__builddeps__: $ac_file.cross.a
14682 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14683 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14686 if test "$ac_name" != "$ac_implib"
14687 then
14688 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14689 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14690 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14691 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14692 clean::
14693 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14694 if test "x$CROSSTEST_DISABLE" = x
14695 then
14696 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14697 "__builddeps__: dlls/lib$ac_implib.cross.a
14698 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14699 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14705 wine_fn_config_program ()
14707 ac_name=$1
14708 ac_dir=programs/$ac_name
14709 ac_enable=$2
14710 ac_flags=$3
14711 ac_program=$ac_name
14713 case $ac_name in
14714 *.*) ;;
14715 *) ac_program=$ac_program.exe ;;
14716 esac
14718 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
14720 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14722 else
14723 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14724 "$ac_dir: __builddeps__"
14726 wine_fn_pot_rules $ac_dir $ac_flags
14728 wine_fn_has_flag install $ac_flags || return
14729 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14730 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14731 install install-lib:: $ac_dir/__install__
14732 __uninstall__: $ac_dir/__uninstall__"
14734 if test -n "$DLLEXT"
14735 then
14736 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14737 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14738 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14739 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14740 $ac_dir/__uninstall__::
14741 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14743 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14744 then
14745 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14746 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
14747 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14748 $ac_dir/__uninstall__::
14749 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14751 else
14752 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14753 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14754 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14755 $ac_dir/__uninstall__::
14756 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
14759 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14760 then
14761 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14762 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14763 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14764 $ac_dir/__uninstall__::
14765 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14770 wine_fn_config_test ()
14772 ac_dir=$1
14773 ac_name=$2
14774 ac_flags=$3
14775 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14776 wine_fn_all_dir_rules $ac_dir Maketest.rules
14778 if test "x$enable_tests" = xno; then :
14780 else
14781 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14782 "all: $ac_dir
14783 .PHONY: $ac_dir
14784 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14785 @cd $ac_dir && \$(MAKE)
14786 programs/winetest: $ac_dir
14787 check test: $ac_dir/__test__
14788 .PHONY: $ac_dir/__test__
14789 $ac_dir/__test__: dummy
14790 @cd $ac_dir && \$(MAKE) test
14791 testclean::
14792 \$(RM) $ac_dir/*.ok"
14794 if test "x$CROSSTEST_DISABLE" = x
14795 then
14796 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14797 "crosstest: $ac_dir/__crosstest__
14798 .PHONY: $ac_dir/__crosstest__
14799 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14800 @cd $ac_dir && \$(MAKE) crosstest"
14805 wine_fn_config_tool ()
14807 ac_dir=$1
14808 ac_flags=$2
14809 if test "x$enable_tools" = xno; then :
14810 return 0
14813 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
14815 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14816 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
14817 case $ac_dir in
14818 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14819 esac
14822 wine_fn_config_makerules ()
14824 ac_rules=$1
14825 ac_deps=$2
14826 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14827 "$ac_rules: $ac_rules.in $ac_deps config.status
14828 @./config.status $ac_rules
14829 distclean::
14830 \$(RM) $ac_rules"
14833 wine_fn_config_symlink ()
14835 ac_link=$1
14836 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14837 "$ac_link:
14838 @./config.status $ac_link
14839 distclean::
14840 \$(RM) $ac_link"
14843 if test "x$CROSSTEST_DISABLE" != x
14844 then
14845 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14846 "crosstest:
14847 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14849 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14850 wine_fn_config_symlink dlls/shell32/AUTHORS
14851 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14852 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14853 if test "x$enable_fonts" != xno; then
14854 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14855 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14857 if test "x$enable_fonts" != xno; then
14858 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14859 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14861 if test "x$enable_fonts" != xno; then
14862 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14863 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14865 if test "x$enable_fonts" != xno; then
14866 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14867 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14869 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
14870 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
14871 if test "x$enable_tools" != xno; then
14872 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14873 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14875 ac_config_links="$ac_config_links wine:tools/winewrapper"
14876 wine_fn_config_symlink wine
14877 if test "x$enable_win64" != xno; then
14878 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14879 wine_fn_config_symlink wine64
14882 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14884 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14886 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14888 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14890 ac_config_commands="$ac_config_commands dlls/user32/resources"
14892 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14894 ac_config_commands="$ac_config_commands include/wine"
14897 wine_fn_config_makerules Make.rules
14898 MAKE_RULES=Make.rules
14899 ac_config_files="$ac_config_files Make.rules"
14901 wine_fn_config_makerules Maketest.rules Make.rules
14902 MAKE_TEST_RULES=Maketest.rules
14903 ac_config_files="$ac_config_files Maketest.rules"
14905 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14906 MAKE_DLL_RULES=dlls/Makedll.rules
14907 ac_config_files="$ac_config_files dlls/Makedll.rules"
14909 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14910 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14911 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14913 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14914 MAKE_PROG_RULES=programs/Makeprog.rules
14915 ac_config_files="$ac_config_files programs/Makeprog.rules"
14918 wine_fn_config_dll acledit enable_acledit
14919 wine_fn_config_dll aclui enable_aclui implib
14920 wine_fn_config_dll activeds enable_activeds implib
14921 wine_fn_config_dll actxprxy enable_actxprxy
14922 wine_fn_config_lib adsiid
14923 wine_fn_config_dll advapi32 enable_advapi32 implib
14924 wine_fn_config_test dlls/advapi32/tests advapi32_test
14925 wine_fn_config_dll advpack enable_advpack implib
14926 wine_fn_config_test dlls/advpack/tests advpack_test
14927 wine_fn_config_dll amstream enable_amstream
14928 wine_fn_config_test dlls/amstream/tests amstream_test
14929 wine_fn_config_dll apphelp enable_apphelp
14930 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14931 wine_fn_config_dll atl enable_atl implib
14932 wine_fn_config_test dlls/atl/tests atl_test
14933 wine_fn_config_dll atl80 enable_atl80
14934 wine_fn_config_dll authz enable_authz
14935 wine_fn_config_dll avicap32 enable_avicap32 implib
14936 wine_fn_config_dll avifil32 enable_avifil32 implib,po
14937 wine_fn_config_test dlls/avifil32/tests avifil32_test
14938 wine_fn_config_dll avifile.dll16 enable_win16
14939 wine_fn_config_dll avrt enable_avrt implib
14940 wine_fn_config_dll bcrypt enable_bcrypt
14941 wine_fn_config_dll browseui enable_browseui po
14942 wine_fn_config_test dlls/browseui/tests browseui_test
14943 wine_fn_config_dll cabinet enable_cabinet implib
14944 wine_fn_config_test dlls/cabinet/tests cabinet_test
14945 wine_fn_config_dll capi2032 enable_capi2032 implib
14946 wine_fn_config_dll cards enable_cards implib
14947 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14948 wine_fn_config_dll clusapi enable_clusapi implib
14949 wine_fn_config_dll comcat enable_comcat
14950 wine_fn_config_test dlls/comcat/tests comcat_test
14951 wine_fn_config_dll comctl32 enable_comctl32 implib,po
14952 wine_fn_config_test dlls/comctl32/tests comctl32_test
14953 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
14954 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14955 wine_fn_config_dll comm.drv16 enable_win16
14956 wine_fn_config_dll commdlg.dll16 enable_win16
14957 wine_fn_config_dll compobj.dll16 enable_win16
14958 wine_fn_config_dll compstui enable_compstui implib
14959 wine_fn_config_dll credui enable_credui implib,po
14960 wine_fn_config_test dlls/credui/tests credui_test
14961 wine_fn_config_dll crtdll enable_crtdll implib
14962 wine_fn_config_dll crypt32 enable_crypt32 implib,po
14963 wine_fn_config_test dlls/crypt32/tests crypt32_test
14964 wine_fn_config_dll cryptdlg enable_cryptdlg po
14965 wine_fn_config_dll cryptdll enable_cryptdll implib
14966 wine_fn_config_dll cryptnet enable_cryptnet implib
14967 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14968 wine_fn_config_dll cryptui enable_cryptui implib,po
14969 wine_fn_config_test dlls/cryptui/tests cryptui_test
14970 wine_fn_config_dll ctapi32 enable_ctapi32
14971 wine_fn_config_dll ctl3d.dll16 enable_win16
14972 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14973 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14974 wine_fn_config_dll d3d10 enable_d3d10 implib
14975 wine_fn_config_test dlls/d3d10/tests d3d10_test
14976 wine_fn_config_dll d3d10core enable_d3d10core implib
14977 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14978 wine_fn_config_dll d3d8 enable_d3d8 implib
14979 wine_fn_config_test dlls/d3d8/tests d3d8_test
14980 wine_fn_config_dll d3d9 enable_d3d9 implib
14981 wine_fn_config_test dlls/d3d9/tests d3d9_test
14982 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14983 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14984 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14985 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14986 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14987 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14988 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14989 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14990 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14991 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14992 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14993 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14994 wine_fn_config_dll d3dim enable_d3dim implib
14995 wine_fn_config_dll d3drm enable_d3drm implib
14996 wine_fn_config_test dlls/d3drm/tests d3drm_test
14997 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14998 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14999 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15000 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15001 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15002 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15003 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15004 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15005 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15006 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15007 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15008 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15009 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15010 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15011 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15012 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15013 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15014 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15015 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15016 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15017 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15018 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15019 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15020 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15021 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15022 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15023 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15024 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15025 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15026 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15027 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15028 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15029 wine_fn_config_dll d3dxof enable_d3dxof implib
15030 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15031 wine_fn_config_dll dbgeng enable_dbgeng implib
15032 wine_fn_config_dll dbghelp enable_dbghelp implib
15033 wine_fn_config_dll dciman32 enable_dciman32 implib
15034 wine_fn_config_dll ddeml.dll16 enable_win16
15035 wine_fn_config_dll ddraw enable_ddraw implib
15036 wine_fn_config_test dlls/ddraw/tests ddraw_test
15037 wine_fn_config_dll ddrawex enable_ddrawex
15038 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15039 wine_fn_config_dll devenum enable_devenum po
15040 wine_fn_config_test dlls/devenum/tests devenum_test
15041 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15042 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15043 wine_fn_config_test dlls/dinput/tests dinput_test
15044 wine_fn_config_dll dinput8 enable_dinput8 implib
15045 wine_fn_config_test dlls/dinput8/tests dinput8_test
15046 wine_fn_config_dll dispdib.dll16 enable_win16
15047 wine_fn_config_dll dispex enable_dispex
15048 wine_fn_config_test dlls/dispex/tests dispex_test
15049 wine_fn_config_dll display.drv16 enable_win16
15050 wine_fn_config_dll dmband enable_dmband
15051 wine_fn_config_test dlls/dmband/tests dmband_test
15052 wine_fn_config_dll dmcompos enable_dmcompos
15053 wine_fn_config_dll dmime enable_dmime
15054 wine_fn_config_test dlls/dmime/tests dmime_test
15055 wine_fn_config_dll dmloader enable_dmloader
15056 wine_fn_config_test dlls/dmloader/tests dmloader_test
15057 wine_fn_config_dll dmscript enable_dmscript
15058 wine_fn_config_dll dmstyle enable_dmstyle
15059 wine_fn_config_dll dmsynth enable_dmsynth
15060 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
15061 wine_fn_config_dll dmusic enable_dmusic
15062 wine_fn_config_test dlls/dmusic/tests dmusic_test
15063 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15064 wine_fn_config_dll dnsapi enable_dnsapi implib
15065 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15066 wine_fn_config_dll dplay enable_dplay implib
15067 wine_fn_config_dll dplayx enable_dplayx implib
15068 wine_fn_config_test dlls/dplayx/tests dplayx_test
15069 wine_fn_config_dll dpnaddr enable_dpnaddr
15070 wine_fn_config_dll dpnet enable_dpnet implib
15071 wine_fn_config_test dlls/dpnet/tests dpnet_test
15072 wine_fn_config_dll dpnhpast enable_dpnhpast
15073 wine_fn_config_dll dpnlobby enable_dpnlobby
15074 wine_fn_config_dll dpwsockx enable_dpwsockx
15075 wine_fn_config_dll drmclien enable_drmclien
15076 wine_fn_config_dll dsound enable_dsound implib
15077 wine_fn_config_test dlls/dsound/tests dsound_test
15078 wine_fn_config_dll dssenh enable_dssenh
15079 wine_fn_config_dll dswave enable_dswave
15080 wine_fn_config_dll dwmapi enable_dwmapi implib
15081 wine_fn_config_dll dxdiagn enable_dxdiagn po
15082 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15083 wine_fn_config_lib dxerr8
15084 wine_fn_config_lib dxerr9
15085 wine_fn_config_dll dxgi enable_dxgi implib
15086 wine_fn_config_test dlls/dxgi/tests dxgi_test
15087 wine_fn_config_lib dxguid
15088 wine_fn_config_dll explorerframe enable_explorerframe
15089 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15090 wine_fn_config_dll faultrep enable_faultrep implib
15091 wine_fn_config_test dlls/faultrep/tests faultrep_test
15092 wine_fn_config_dll fltlib enable_fltlib
15093 wine_fn_config_dll fusion enable_fusion
15094 wine_fn_config_test dlls/fusion/tests fusion_test
15095 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15096 wine_fn_config_dll gameux enable_gameux
15097 wine_fn_config_test dlls/gameux/tests gameux_test
15098 wine_fn_config_dll gdi.exe16 enable_win16
15099 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15100 wine_fn_config_test dlls/gdi32/tests gdi32_test
15101 wine_fn_config_dll gdiplus enable_gdiplus implib
15102 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15103 wine_fn_config_dll glu32 enable_glu32 implib
15104 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15105 wine_fn_config_dll gpkcsp enable_gpkcsp
15106 wine_fn_config_dll hal enable_hal
15107 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15108 wine_fn_config_dll hid enable_hid implib
15109 wine_fn_config_dll hlink enable_hlink implib
15110 wine_fn_config_test dlls/hlink/tests hlink_test
15111 wine_fn_config_dll hnetcfg enable_hnetcfg
15112 wine_fn_config_dll httpapi enable_httpapi
15113 wine_fn_config_dll iccvid enable_iccvid po
15114 wine_fn_config_dll icmp enable_icmp
15115 wine_fn_config_dll ieframe enable_ieframe implib,po
15116 wine_fn_config_test dlls/ieframe/tests ieframe_test
15117 wine_fn_config_dll ifsmgr.vxd enable_win16
15118 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15119 wine_fn_config_dll imagehlp enable_imagehlp implib
15120 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15121 wine_fn_config_dll imm.dll16 enable_win16
15122 wine_fn_config_dll imm32 enable_imm32 implib
15123 wine_fn_config_test dlls/imm32/tests imm32_test
15124 wine_fn_config_dll inetcomm enable_inetcomm implib
15125 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15126 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15127 wine_fn_config_dll inetmib1 enable_inetmib1
15128 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15129 wine_fn_config_dll infosoft enable_infosoft
15130 wine_fn_config_test dlls/infosoft/tests infosoft_test
15131 wine_fn_config_dll initpki enable_initpki
15132 wine_fn_config_dll inkobj enable_inkobj
15133 wine_fn_config_dll inseng enable_inseng
15134 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15135 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15136 wine_fn_config_dll itircl enable_itircl
15137 wine_fn_config_dll itss enable_itss
15138 wine_fn_config_test dlls/itss/tests itss_test
15139 wine_fn_config_dll jscript enable_jscript po
15140 wine_fn_config_test dlls/jscript/tests jscript_test
15141 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15142 wine_fn_config_test dlls/kernel32/tests kernel32_test
15143 wine_fn_config_dll keyboard.drv16 enable_win16
15144 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15145 wine_fn_config_dll ktmw32 enable_ktmw32
15146 wine_fn_config_dll loadperf enable_loadperf implib
15147 wine_fn_config_dll localspl enable_localspl po
15148 wine_fn_config_test dlls/localspl/tests localspl_test
15149 wine_fn_config_dll localui enable_localui po
15150 wine_fn_config_test dlls/localui/tests localui_test
15151 wine_fn_config_dll lz32 enable_lz32 implib
15152 wine_fn_config_test dlls/lz32/tests lz32_test
15153 wine_fn_config_dll lzexpand.dll16 enable_win16
15154 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15155 wine_fn_config_test dlls/mapi32/tests mapi32_test
15156 wine_fn_config_dll mapistub enable_mapistub
15157 wine_fn_config_dll mciavi32 enable_mciavi32
15158 wine_fn_config_dll mcicda enable_mcicda
15159 wine_fn_config_dll mciqtz32 enable_mciqtz32
15160 wine_fn_config_dll mciseq enable_mciseq
15161 wine_fn_config_dll mciwave enable_mciwave
15162 wine_fn_config_dll mgmtapi enable_mgmtapi
15163 wine_fn_config_dll midimap enable_midimap
15164 wine_fn_config_dll mlang enable_mlang implib
15165 wine_fn_config_test dlls/mlang/tests mlang_test
15166 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15167 wine_fn_config_dll mmdevapi enable_mmdevapi
15168 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15169 wine_fn_config_dll mmdevldr.vxd enable_win16
15170 wine_fn_config_dll mmsystem.dll16 enable_win16
15171 wine_fn_config_dll monodebg.vxd enable_win16
15172 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15173 wine_fn_config_dll mouse.drv16 enable_win16
15174 wine_fn_config_dll mpr enable_mpr implib,po
15175 wine_fn_config_dll mprapi enable_mprapi implib
15176 wine_fn_config_dll msacm.dll16 enable_win16
15177 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15178 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15179 wine_fn_config_test dlls/msacm32/tests msacm32_test
15180 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15181 wine_fn_config_dll mscat32 enable_mscat32
15182 wine_fn_config_dll mscms enable_mscms implib
15183 wine_fn_config_test dlls/mscms/tests mscms_test
15184 wine_fn_config_dll mscoree enable_mscoree
15185 wine_fn_config_test dlls/mscoree/tests mscoree_test
15186 wine_fn_config_dll msctf enable_msctf
15187 wine_fn_config_test dlls/msctf/tests msctf_test
15188 wine_fn_config_dll msdaps enable_msdaps
15189 wine_fn_config_dll msdmo enable_msdmo implib
15190 wine_fn_config_dll msftedit enable_msftedit
15191 wine_fn_config_dll msg711.acm enable_msg711_acm
15192 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15193 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15194 wine_fn_config_dll mshtml enable_mshtml implib,po
15195 wine_fn_config_test dlls/mshtml/tests mshtml_test
15196 wine_fn_config_dll msi enable_msi implib,po
15197 wine_fn_config_test dlls/msi/tests msi_test
15198 wine_fn_config_dll msident enable_msident
15199 wine_fn_config_dll msimg32 enable_msimg32 implib
15200 wine_fn_config_dll msimsg enable_msimsg
15201 wine_fn_config_dll msimtf enable_msimtf
15202 wine_fn_config_dll msisip enable_msisip
15203 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15204 wine_fn_config_dll msnet32 enable_msnet32
15205 wine_fn_config_dll mspatcha enable_mspatcha
15206 wine_fn_config_dll msrle32 enable_msrle32 po
15207 wine_fn_config_dll mssign32 enable_mssign32
15208 wine_fn_config_dll mssip32 enable_mssip32
15209 wine_fn_config_dll mstask enable_mstask
15210 wine_fn_config_test dlls/mstask/tests mstask_test
15211 wine_fn_config_dll msvcirt enable_msvcirt
15212 wine_fn_config_dll msvcm80 enable_msvcm80
15213 wine_fn_config_dll msvcp100 enable_msvcp100
15214 wine_fn_config_dll msvcp60 enable_msvcp60
15215 wine_fn_config_dll msvcp70 enable_msvcp70
15216 wine_fn_config_dll msvcp71 enable_msvcp71
15217 wine_fn_config_dll msvcp80 enable_msvcp80
15218 wine_fn_config_dll msvcp90 enable_msvcp90
15219 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15220 wine_fn_config_dll msvcr100 enable_msvcr100
15221 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15222 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15223 wine_fn_config_dll msvcr80 enable_msvcr80
15224 wine_fn_config_dll msvcr90 enable_msvcr90
15225 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15226 wine_fn_config_dll msvcrt enable_msvcrt implib
15227 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15228 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15229 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15230 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15231 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15232 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15233 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15234 wine_fn_config_dll msvidc32 enable_msvidc32 po
15235 wine_fn_config_dll msvideo.dll16 enable_win16
15236 wine_fn_config_dll mswsock enable_mswsock implib
15237 wine_fn_config_dll msxml enable_msxml
15238 wine_fn_config_dll msxml2 enable_msxml2
15239 wine_fn_config_dll msxml3 enable_msxml3
15240 wine_fn_config_test dlls/msxml3/tests msxml3_test
15241 wine_fn_config_dll msxml4 enable_msxml4
15242 wine_fn_config_dll msxml6 enable_msxml6
15243 wine_fn_config_dll nddeapi enable_nddeapi implib
15244 wine_fn_config_dll netapi32 enable_netapi32 implib
15245 wine_fn_config_test dlls/netapi32/tests netapi32_test
15246 wine_fn_config_dll newdev enable_newdev implib
15247 wine_fn_config_dll normaliz enable_normaliz implib
15248 wine_fn_config_dll npmshtml enable_npmshtml
15249 wine_fn_config_dll ntdll enable_ntdll implib
15250 wine_fn_config_test dlls/ntdll/tests ntdll_test
15251 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15252 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15253 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15254 wine_fn_config_dll ntprint enable_ntprint
15255 wine_fn_config_test dlls/ntprint/tests ntprint_test
15256 wine_fn_config_dll objsel enable_objsel
15257 wine_fn_config_dll odbc32 enable_odbc32 implib
15258 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15259 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15260 wine_fn_config_dll ole2.dll16 enable_win16
15261 wine_fn_config_dll ole2conv.dll16 enable_win16
15262 wine_fn_config_dll ole2disp.dll16 enable_win16
15263 wine_fn_config_dll ole2nls.dll16 enable_win16
15264 wine_fn_config_dll ole2prox.dll16 enable_win16
15265 wine_fn_config_dll ole2thk.dll16 enable_win16
15266 wine_fn_config_dll ole32 enable_ole32 implib
15267 wine_fn_config_test dlls/ole32/tests ole32_test
15268 wine_fn_config_dll oleacc enable_oleacc implib,po
15269 wine_fn_config_test dlls/oleacc/tests oleacc_test
15270 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15271 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15272 wine_fn_config_dll olecli.dll16 enable_win16
15273 wine_fn_config_dll olecli32 enable_olecli32 implib
15274 wine_fn_config_dll oledb32 enable_oledb32
15275 wine_fn_config_test dlls/oledb32/tests oledb32_test
15276 wine_fn_config_dll oledlg enable_oledlg implib,po
15277 wine_fn_config_dll olepro32 enable_olepro32 implib
15278 wine_fn_config_dll olesvr.dll16 enable_win16
15279 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15280 wine_fn_config_dll olethk32 enable_olethk32
15281 wine_fn_config_dll openal32 enable_openal32
15282 wine_fn_config_dll opencl enable_opencl
15283 wine_fn_config_dll opengl32 enable_opengl32 implib
15284 wine_fn_config_test dlls/opengl32/tests opengl32_test
15285 wine_fn_config_dll pdh enable_pdh implib
15286 wine_fn_config_test dlls/pdh/tests pdh_test
15287 wine_fn_config_dll photometadatahandler enable_photometadatahandler
15288 wine_fn_config_dll pidgen enable_pidgen
15289 wine_fn_config_dll powrprof enable_powrprof implib
15290 wine_fn_config_dll printui enable_printui
15291 wine_fn_config_dll propsys enable_propsys implib
15292 wine_fn_config_test dlls/propsys/tests propsys_test
15293 wine_fn_config_dll psapi enable_psapi implib
15294 wine_fn_config_test dlls/psapi/tests psapi_test
15295 wine_fn_config_dll pstorec enable_pstorec
15296 wine_fn_config_dll qcap enable_qcap
15297 wine_fn_config_dll qedit enable_qedit
15298 wine_fn_config_test dlls/qedit/tests qedit_test
15299 wine_fn_config_dll qmgr enable_qmgr
15300 wine_fn_config_test dlls/qmgr/tests qmgr_test
15301 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15302 wine_fn_config_dll quartz enable_quartz implib
15303 wine_fn_config_test dlls/quartz/tests quartz_test
15304 wine_fn_config_dll query enable_query
15305 wine_fn_config_dll rasapi16.dll16 enable_win16
15306 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15307 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15308 wine_fn_config_dll rasdlg enable_rasdlg implib
15309 wine_fn_config_dll regapi enable_regapi
15310 wine_fn_config_dll resutils enable_resutils implib
15311 wine_fn_config_dll riched20 enable_riched20 implib
15312 wine_fn_config_test dlls/riched20/tests riched20_test
15313 wine_fn_config_dll riched32 enable_riched32
15314 wine_fn_config_test dlls/riched32/tests riched32_test
15315 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15316 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15317 wine_fn_config_dll rsabase enable_rsabase
15318 wine_fn_config_dll rsaenh enable_rsaenh implib
15319 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15320 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15321 wine_fn_config_dll rtutils enable_rtutils implib
15322 wine_fn_config_dll samlib enable_samlib
15323 wine_fn_config_dll sane.ds enable_sane_ds po
15324 wine_fn_config_dll scarddlg enable_scarddlg
15325 wine_fn_config_dll sccbase enable_sccbase
15326 wine_fn_config_dll schannel enable_schannel
15327 wine_fn_config_test dlls/schannel/tests schannel_test
15328 wine_fn_config_dll scrrun enable_scrrun
15329 wine_fn_config_test dlls/scrrun/tests scrrun_test
15330 wine_fn_config_dll secur32 enable_secur32 implib
15331 wine_fn_config_test dlls/secur32/tests secur32_test
15332 wine_fn_config_dll security enable_security
15333 wine_fn_config_dll sensapi enable_sensapi implib
15334 wine_fn_config_dll serialui enable_serialui implib,po
15335 wine_fn_config_test dlls/serialui/tests serialui_test
15336 wine_fn_config_dll setupapi enable_setupapi implib,po
15337 wine_fn_config_test dlls/setupapi/tests setupapi_test
15338 wine_fn_config_dll setupx.dll16 enable_win16
15339 wine_fn_config_dll sfc enable_sfc implib
15340 wine_fn_config_dll sfc_os enable_sfc_os implib
15341 wine_fn_config_dll shdoclc enable_shdoclc po
15342 wine_fn_config_dll shdocvw enable_shdocvw implib
15343 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15344 wine_fn_config_dll shell.dll16 enable_win16
15345 wine_fn_config_dll shell32 enable_shell32 implib,po
15346 wine_fn_config_test dlls/shell32/tests shell32_test
15347 wine_fn_config_dll shfolder enable_shfolder implib
15348 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15349 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15350 wine_fn_config_dll slbcsp enable_slbcsp
15351 wine_fn_config_dll slc enable_slc implib
15352 wine_fn_config_dll snmpapi enable_snmpapi implib
15353 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15354 wine_fn_config_dll softpub enable_softpub
15355 wine_fn_config_dll sound.drv16 enable_win16
15356 wine_fn_config_dll spoolss enable_spoolss implib
15357 wine_fn_config_test dlls/spoolss/tests spoolss_test
15358 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15359 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15360 wine_fn_config_dll sti enable_sti implib
15361 wine_fn_config_test dlls/sti/tests sti_test
15362 wine_fn_config_dll storage.dll16 enable_win16
15363 wine_fn_config_dll stress.dll16 enable_win16
15364 wine_fn_config_lib strmbase
15365 wine_fn_config_lib strmiids
15366 wine_fn_config_dll svrapi enable_svrapi
15367 wine_fn_config_dll sxs enable_sxs implib
15368 wine_fn_config_test dlls/sxs/tests sxs_test
15369 wine_fn_config_dll system.drv16 enable_win16
15370 wine_fn_config_dll t2embed enable_t2embed
15371 wine_fn_config_dll tapi32 enable_tapi32 implib
15372 wine_fn_config_dll toolhelp.dll16 enable_win16
15373 wine_fn_config_dll traffic enable_traffic
15374 wine_fn_config_dll twain.dll16 enable_win16
15375 wine_fn_config_dll twain_32 enable_twain_32
15376 wine_fn_config_test dlls/twain_32/tests twain_32_test
15377 wine_fn_config_dll typelib.dll16 enable_win16
15378 wine_fn_config_dll unicows enable_unicows implib
15379 wine_fn_config_dll updspapi enable_updspapi
15380 wine_fn_config_dll url enable_url implib
15381 wine_fn_config_dll urlmon enable_urlmon implib
15382 wine_fn_config_test dlls/urlmon/tests urlmon_test
15383 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15384 wine_fn_config_dll user.exe16 enable_win16
15385 wine_fn_config_dll user32 enable_user32 implib,po
15386 wine_fn_config_test dlls/user32/tests user32_test
15387 wine_fn_config_dll userenv enable_userenv implib
15388 wine_fn_config_test dlls/userenv/tests userenv_test
15389 wine_fn_config_dll usp10 enable_usp10 implib
15390 wine_fn_config_test dlls/usp10/tests usp10_test
15391 wine_fn_config_lib uuid
15392 wine_fn_config_dll uxtheme enable_uxtheme implib
15393 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15394 wine_fn_config_dll vbscript enable_vbscript
15395 wine_fn_config_test dlls/vbscript/tests vbscript_test
15396 wine_fn_config_dll vcomp enable_vcomp
15397 wine_fn_config_dll vcomp100 enable_vcomp100
15398 wine_fn_config_dll vdhcp.vxd enable_win16
15399 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15400 wine_fn_config_dll ver.dll16 enable_win16
15401 wine_fn_config_dll version enable_version implib
15402 wine_fn_config_test dlls/version/tests version_test
15403 wine_fn_config_dll vmm.vxd enable_win16
15404 wine_fn_config_dll vnbt.vxd enable_win16
15405 wine_fn_config_dll vnetbios.vxd enable_win16
15406 wine_fn_config_dll vtdapi.vxd enable_win16
15407 wine_fn_config_dll vwin32.vxd enable_win16
15408 wine_fn_config_dll w32skrnl enable_win16
15409 wine_fn_config_dll w32sys.dll16 enable_win16
15410 wine_fn_config_dll wbemprox enable_wbemprox
15411 wine_fn_config_dll wer enable_wer implib
15412 wine_fn_config_test dlls/wer/tests wer_test
15413 wine_fn_config_dll wevtapi enable_wevtapi
15414 wine_fn_config_dll wiaservc enable_wiaservc
15415 wine_fn_config_dll win32s16.dll16 enable_win16
15416 wine_fn_config_dll win87em.dll16 enable_win16
15417 wine_fn_config_dll winaspi.dll16 enable_win16
15418 wine_fn_config_dll windebug.dll16 enable_win16
15419 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15420 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15421 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15422 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15423 wine_fn_config_lib winecrt0
15424 wine_fn_config_dll wined3d enable_wined3d implib
15425 wine_fn_config_dll winegstreamer enable_winegstreamer
15426 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15427 wine_fn_config_dll winemapi enable_winemapi
15428 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15429 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15430 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
15431 wine_fn_config_dll wineps16.drv16 enable_win16
15432 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15433 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15434 wine_fn_config_dll winex11.drv enable_winex11_drv
15435 wine_fn_config_dll wing.dll16 enable_win16
15436 wine_fn_config_dll wing32 enable_wing32
15437 wine_fn_config_dll winhttp enable_winhttp implib
15438 wine_fn_config_test dlls/winhttp/tests winhttp_test
15439 wine_fn_config_dll wininet enable_wininet implib,po
15440 wine_fn_config_test dlls/wininet/tests wininet_test
15441 wine_fn_config_dll winmm enable_winmm implib,po
15442 wine_fn_config_test dlls/winmm/tests winmm_test
15443 wine_fn_config_dll winnls.dll16 enable_win16
15444 wine_fn_config_dll winnls32 enable_winnls32 implib
15445 wine_fn_config_dll winscard enable_winscard implib
15446 wine_fn_config_dll winsock.dll16 enable_win16
15447 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15448 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15449 wine_fn_config_dll winsta enable_winsta
15450 wine_fn_config_dll wintab.dll16 enable_win16
15451 wine_fn_config_dll wintab32 enable_wintab32 implib
15452 wine_fn_config_test dlls/wintab32/tests wintab32_test
15453 wine_fn_config_dll wintrust enable_wintrust implib
15454 wine_fn_config_test dlls/wintrust/tests wintrust_test
15455 wine_fn_config_dll wlanapi enable_wlanapi
15456 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15457 wine_fn_config_test dlls/wldap32/tests wldap32_test
15458 wine_fn_config_dll wmi enable_wmi
15459 wine_fn_config_dll wmiutils enable_wmiutils
15460 wine_fn_config_dll wmvcore enable_wmvcore
15461 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15462 wine_fn_config_dll wow32 enable_win16 implib
15463 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15464 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15465 wine_fn_config_dll wshom.ocx enable_wshom_ocx
15466 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
15467 wine_fn_config_dll wsnmp32 enable_wsnmp32
15468 wine_fn_config_dll wsock32 enable_wsock32 implib
15469 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15470 wine_fn_config_dll wuapi enable_wuapi
15471 wine_fn_config_dll wuaueng enable_wuaueng
15472 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15473 wine_fn_config_dll xinput1_1 enable_xinput1_1
15474 wine_fn_config_dll xinput1_2 enable_xinput1_2
15475 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15476 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15477 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15478 wine_fn_config_dll xmllite enable_xmllite
15479 wine_fn_config_test dlls/xmllite/tests xmllite_test
15480 wine_fn_config_dll xolehlp enable_xolehlp
15481 wine_fn_config_dll xpsprint enable_xpsprint
15482 wine_fn_config_makefile documentation enable_documentation
15483 wine_fn_config_makefile fonts enable_fonts install-lib
15484 wine_fn_config_makefile include enable_include install-dev
15485 wine_fn_config_makefile libs/port enable_libs_port
15486 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15487 wine_fn_config_makefile libs/wpp enable_libs_wpp
15488 wine_fn_config_makefile loader enable_loader install-lib,manpage
15489 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15490 wine_fn_config_program attrib enable_attrib install,po
15491 wine_fn_config_program cabarc enable_cabarc install
15492 wine_fn_config_program cacls enable_cacls install
15493 wine_fn_config_program clock enable_clock install,po
15494 wine_fn_config_program cmd enable_cmd install,po
15495 wine_fn_config_test programs/cmd/tests cmd.exe_test
15496 wine_fn_config_program control enable_control install
15497 wine_fn_config_program cscript enable_cscript install
15498 wine_fn_config_program dxdiag enable_dxdiag install,po
15499 wine_fn_config_program eject enable_eject install
15500 wine_fn_config_program expand enable_expand install
15501 wine_fn_config_program explorer enable_explorer install,po
15502 wine_fn_config_program extrac32 enable_extrac32 install
15503 wine_fn_config_program hh enable_hh install
15504 wine_fn_config_program hostname enable_hostname install,po
15505 wine_fn_config_program icinfo enable_icinfo install
15506 wine_fn_config_program iexplore enable_iexplore install
15507 wine_fn_config_program ipconfig enable_ipconfig install,po
15508 wine_fn_config_program lodctr enable_lodctr install
15509 wine_fn_config_program mofcomp enable_mofcomp install
15510 wine_fn_config_program mshta enable_mshta install
15511 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
15512 wine_fn_config_program net enable_net install,po
15513 wine_fn_config_program netsh enable_netsh install
15514 wine_fn_config_program ngen enable_ngen install
15515 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
15516 wine_fn_config_program oleview enable_oleview install,po
15517 wine_fn_config_program ping enable_ping install
15518 wine_fn_config_program plugplay enable_plugplay install
15519 wine_fn_config_program presentationfontcache enable_presentationfontcache install
15520 wine_fn_config_program progman enable_progman install,po
15521 wine_fn_config_program reg enable_reg install,po
15522 wine_fn_config_program regasm enable_regasm install
15523 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
15524 wine_fn_config_test programs/regedit/tests regedit.exe_test
15525 wine_fn_config_program regsvcs enable_regsvcs install
15526 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
15527 wine_fn_config_program rpcss enable_rpcss install
15528 wine_fn_config_program rundll.exe16 enable_win16 install
15529 wine_fn_config_program rundll32 enable_rundll32 install
15530 wine_fn_config_program sc enable_sc install
15531 wine_fn_config_program secedit enable_secedit install
15532 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15533 wine_fn_config_program services enable_services install
15534 wine_fn_config_program spoolsv enable_spoolsv install
15535 wine_fn_config_program start enable_start install,po
15536 wine_fn_config_program svchost enable_svchost install
15537 wine_fn_config_program taskkill enable_taskkill install,po
15538 wine_fn_config_program taskmgr enable_taskmgr install,po
15539 wine_fn_config_program termsv enable_termsv install
15540 wine_fn_config_program uninstaller enable_uninstaller install,po
15541 wine_fn_config_program unlodctr enable_unlodctr install
15542 wine_fn_config_program view enable_view install,po
15543 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
15544 wine_fn_config_program winebrowser enable_winebrowser install
15545 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15546 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15547 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
15548 wine_fn_config_program winedevice enable_winedevice install
15549 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
15550 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15551 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
15552 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15553 wine_fn_config_program winepath enable_winepath install,installbin,manpage
15554 wine_fn_config_program winetest enable_winetest
15555 wine_fn_config_program winevdm enable_win16 install
15556 wine_fn_config_program winhelp.exe16 enable_win16 install
15557 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15558 wine_fn_config_program winoldap.mod16 enable_win16 install
15559 wine_fn_config_program winver enable_winver install
15560 wine_fn_config_program wmic enable_wmic install
15561 wine_fn_config_program wordpad enable_wordpad install,po
15562 wine_fn_config_program write enable_write install,po
15563 wine_fn_config_program wscript enable_wscript install
15564 wine_fn_config_test programs/wscript/tests wscript.exe_test
15565 wine_fn_config_program wusa enable_wusa install
15566 wine_fn_config_program xcopy enable_xcopy install,po
15567 wine_fn_config_makefile server enable_server install-lib,manpage
15568 wine_fn_config_tool tools install-dev,install-lib,manpage
15569 wine_fn_config_tool tools/widl install-dev,manpage
15570 wine_fn_config_tool tools/winebuild install-dev,manpage
15571 wine_fn_config_tool tools/winedump install-dev,manpage
15572 wine_fn_config_tool tools/winegcc install-dev,manpage
15573 wine_fn_config_tool tools/wmc install-dev,manpage
15574 wine_fn_config_tool tools/wrc install-dev,manpage
15576 LINGUAS="\
15577 ar \
15578 bg \
15579 ca \
15580 cs \
15581 da \
15582 de \
15583 el \
15584 en \
15585 en_US \
15586 eo \
15587 es \
15588 fa \
15589 fi \
15590 fr \
15591 he \
15592 hi \
15593 hu \
15594 it \
15595 ja \
15596 ko \
15597 lt \
15598 ml \
15599 nb_NO \
15600 nl \
15601 or \
15602 pa \
15603 pl \
15604 pt_BR \
15605 pt_PT \
15606 rm \
15607 ro \
15608 ru \
15609 sk \
15610 sl \
15611 sr_RS@cyrillic \
15612 sr_RS@latin \
15613 sv \
15614 te \
15615 th \
15616 tr \
15617 uk \
15618 wa \
15619 zh_CN \
15620 zh_TW"
15624 ac_config_commands="$ac_config_commands Makefile"
15627 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15631 if test "x$enable_maintainer_mode" = xyes
15632 then
15633 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15634 cd \$(srcdir) && autoconf --warnings=all
15635 \$(srcdir)/include/config.h.in: include/stamp-h.in
15636 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15637 cd \$(srcdir) && autoheader --warnings=all
15638 @echo timestamp > \$@"
15641 if test "x$with_gettextpo" = xyes
15642 then
15643 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15644 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15645 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
15646 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15647 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15648 msgcat -o \$@ \$(ALL_POT_FILES)"
15651 if test "$MSGFMT" != false
15652 then
15653 PORCFLAGS="--po-dir=\$(top_builddir)/po"
15655 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
15656 else
15657 LINGUAS=
15660 if test "x$enable_tools" != xno
15661 then
15662 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15663 clean:: __clean__
15664 \$(RM) tools/makedep\$(EXEEXT)"
15667 if test -n "$with_wine64"
15668 then
15669 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15670 fonts server tools:
15671 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15672 $with_wine64/loader/wine:
15673 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15674 $with_wine64/loader/wine-preloader:
15675 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15676 clean::
15677 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15680 cat >confcache <<\_ACEOF
15681 # This file is a shell script that caches the results of configure
15682 # tests run on this system so they can be shared between configure
15683 # scripts and configure runs, see configure's option --config-cache.
15684 # It is not useful on other systems. If it contains results you don't
15685 # want to keep, you may remove or edit it.
15687 # config.status only pays attention to the cache file if you give it
15688 # the --recheck option to rerun configure.
15690 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15691 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15692 # following values.
15694 _ACEOF
15696 # The following way of writing the cache mishandles newlines in values,
15697 # but we know of no workaround that is simple, portable, and efficient.
15698 # So, we kill variables containing newlines.
15699 # Ultrix sh set writes to stderr and can't be redirected directly,
15700 # and sets the high bit in the cache file unless we assign to the vars.
15702 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15703 eval ac_val=\$$ac_var
15704 case $ac_val in #(
15705 *${as_nl}*)
15706 case $ac_var in #(
15707 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15708 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15709 esac
15710 case $ac_var in #(
15711 _ | IFS | as_nl) ;; #(
15712 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15713 *) { eval $ac_var=; unset $ac_var;} ;;
15714 esac ;;
15715 esac
15716 done
15718 (set) 2>&1 |
15719 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15720 *${as_nl}ac_space=\ *)
15721 # `set' does not quote correctly, so add quotes: double-quote
15722 # substitution turns \\\\ into \\, and sed turns \\ into \.
15723 sed -n \
15724 "s/'/'\\\\''/g;
15725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15726 ;; #(
15728 # `set' quotes correctly as required by POSIX, so do not add quotes.
15729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15731 esac |
15732 sort
15734 sed '
15735 /^ac_cv_env_/b end
15736 t clear
15737 :clear
15738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15739 t end
15740 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15741 :end' >>confcache
15742 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15743 if test -w "$cache_file"; then
15744 if test "x$cache_file" != "x/dev/null"; then
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15746 $as_echo "$as_me: updating cache $cache_file" >&6;}
15747 if test ! -f "$cache_file" || test -h "$cache_file"; then
15748 cat confcache >"$cache_file"
15749 else
15750 case $cache_file in #(
15751 */* | ?:*)
15752 mv -f confcache "$cache_file"$$ &&
15753 mv -f "$cache_file"$$ "$cache_file" ;; #(
15755 mv -f confcache "$cache_file" ;;
15756 esac
15759 else
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15761 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15764 rm -f confcache
15766 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15767 # Let make expand exec_prefix.
15768 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15770 DEFS=-DHAVE_CONFIG_H
15772 ac_libobjs=
15773 ac_ltlibobjs=
15775 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15776 # 1. Remove the extension, and $U if already installed.
15777 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15778 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15779 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15780 # will be set to the directory where LIBOBJS objects are built.
15781 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15782 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15783 done
15784 LIBOBJS=$ac_libobjs
15786 LTLIBOBJS=$ac_ltlibobjs
15790 : "${CONFIG_STATUS=./config.status}"
15791 ac_write_fail=0
15792 ac_clean_files_save=$ac_clean_files
15793 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15795 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15796 as_write_fail=0
15797 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15798 #! $SHELL
15799 # Generated by $as_me.
15800 # Run this file to recreate the current configuration.
15801 # Compiler output produced by configure, useful for debugging
15802 # configure, is in config.log if it exists.
15804 debug=false
15805 ac_cs_recheck=false
15806 ac_cs_silent=false
15808 SHELL=\${CONFIG_SHELL-$SHELL}
15809 export SHELL
15810 _ASEOF
15811 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15812 ## -------------------- ##
15813 ## M4sh Initialization. ##
15814 ## -------------------- ##
15816 # Be more Bourne compatible
15817 DUALCASE=1; export DUALCASE # for MKS sh
15818 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15819 emulate sh
15820 NULLCMD=:
15821 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15822 # is contrary to our usage. Disable this feature.
15823 alias -g '${1+"$@"}'='"$@"'
15824 setopt NO_GLOB_SUBST
15825 else
15826 case `(set -o) 2>/dev/null` in #(
15827 *posix*) :
15828 set -o posix ;; #(
15829 *) :
15831 esac
15835 as_nl='
15837 export as_nl
15838 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15839 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15841 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15842 # Prefer a ksh shell builtin over an external printf program on Solaris,
15843 # but without wasting forks for bash or zsh.
15844 if test -z "$BASH_VERSION$ZSH_VERSION" \
15845 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15846 as_echo='print -r --'
15847 as_echo_n='print -rn --'
15848 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15849 as_echo='printf %s\n'
15850 as_echo_n='printf %s'
15851 else
15852 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15853 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15854 as_echo_n='/usr/ucb/echo -n'
15855 else
15856 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15857 as_echo_n_body='eval
15858 arg=$1;
15859 case $arg in #(
15860 *"$as_nl"*)
15861 expr "X$arg" : "X\\(.*\\)$as_nl";
15862 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15863 esac;
15864 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15866 export as_echo_n_body
15867 as_echo_n='sh -c $as_echo_n_body as_echo'
15869 export as_echo_body
15870 as_echo='sh -c $as_echo_body as_echo'
15873 # The user is always right.
15874 if test "${PATH_SEPARATOR+set}" != set; then
15875 PATH_SEPARATOR=:
15876 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15877 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15878 PATH_SEPARATOR=';'
15883 # IFS
15884 # We need space, tab and new line, in precisely that order. Quoting is
15885 # there to prevent editors from complaining about space-tab.
15886 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15887 # splitting by setting IFS to empty value.)
15888 IFS=" "" $as_nl"
15890 # Find who we are. Look in the path if we contain no directory separator.
15891 as_myself=
15892 case $0 in #((
15893 *[\\/]* ) as_myself=$0 ;;
15894 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15895 for as_dir in $PATH
15897 IFS=$as_save_IFS
15898 test -z "$as_dir" && as_dir=.
15899 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15900 done
15901 IFS=$as_save_IFS
15904 esac
15905 # We did not find ourselves, most probably we were run as `sh COMMAND'
15906 # in which case we are not to be found in the path.
15907 if test "x$as_myself" = x; then
15908 as_myself=$0
15910 if test ! -f "$as_myself"; then
15911 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15912 exit 1
15915 # Unset variables that we do not need and which cause bugs (e.g. in
15916 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15917 # suppresses any "Segmentation fault" message there. '((' could
15918 # trigger a bug in pdksh 5.2.14.
15919 for as_var in BASH_ENV ENV MAIL MAILPATH
15920 do eval test x\${$as_var+set} = xset \
15921 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15922 done
15923 PS1='$ '
15924 PS2='> '
15925 PS4='+ '
15927 # NLS nuisances.
15928 LC_ALL=C
15929 export LC_ALL
15930 LANGUAGE=C
15931 export LANGUAGE
15933 # CDPATH.
15934 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15937 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15938 # ----------------------------------------
15939 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15940 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15941 # script with STATUS, using 1 if that was 0.
15942 as_fn_error ()
15944 as_status=$1; test $as_status -eq 0 && as_status=1
15945 if test "$4"; then
15946 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15947 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15949 $as_echo "$as_me: error: $2" >&2
15950 as_fn_exit $as_status
15951 } # as_fn_error
15954 # as_fn_set_status STATUS
15955 # -----------------------
15956 # Set $? to STATUS, without forking.
15957 as_fn_set_status ()
15959 return $1
15960 } # as_fn_set_status
15962 # as_fn_exit STATUS
15963 # -----------------
15964 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15965 as_fn_exit ()
15967 set +e
15968 as_fn_set_status $1
15969 exit $1
15970 } # as_fn_exit
15972 # as_fn_unset VAR
15973 # ---------------
15974 # Portably unset VAR.
15975 as_fn_unset ()
15977 { eval $1=; unset $1;}
15979 as_unset=as_fn_unset
15980 # as_fn_append VAR VALUE
15981 # ----------------------
15982 # Append the text in VALUE to the end of the definition contained in VAR. Take
15983 # advantage of any shell optimizations that allow amortized linear growth over
15984 # repeated appends, instead of the typical quadratic growth present in naive
15985 # implementations.
15986 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15987 eval 'as_fn_append ()
15989 eval $1+=\$2
15991 else
15992 as_fn_append ()
15994 eval $1=\$$1\$2
15996 fi # as_fn_append
15998 # as_fn_arith ARG...
15999 # ------------------
16000 # Perform arithmetic evaluation on the ARGs, and store the result in the
16001 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16002 # must be portable across $(()) and expr.
16003 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16004 eval 'as_fn_arith ()
16006 as_val=$(( $* ))
16008 else
16009 as_fn_arith ()
16011 as_val=`expr "$@" || test $? -eq 1`
16013 fi # as_fn_arith
16016 if expr a : '\(a\)' >/dev/null 2>&1 &&
16017 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16018 as_expr=expr
16019 else
16020 as_expr=false
16023 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16024 as_basename=basename
16025 else
16026 as_basename=false
16029 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16030 as_dirname=dirname
16031 else
16032 as_dirname=false
16035 as_me=`$as_basename -- "$0" ||
16036 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16037 X"$0" : 'X\(//\)$' \| \
16038 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16039 $as_echo X/"$0" |
16040 sed '/^.*\/\([^/][^/]*\)\/*$/{
16041 s//\1/
16044 /^X\/\(\/\/\)$/{
16045 s//\1/
16048 /^X\/\(\/\).*/{
16049 s//\1/
16052 s/.*/./; q'`
16054 # Avoid depending upon Character Ranges.
16055 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16056 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16057 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16058 as_cr_digits='0123456789'
16059 as_cr_alnum=$as_cr_Letters$as_cr_digits
16061 ECHO_C= ECHO_N= ECHO_T=
16062 case `echo -n x` in #(((((
16063 -n*)
16064 case `echo 'xy\c'` in
16065 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16066 xy) ECHO_C='\c';;
16067 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16068 ECHO_T=' ';;
16069 esac;;
16071 ECHO_N='-n';;
16072 esac
16074 rm -f conf$$ conf$$.exe conf$$.file
16075 if test -d conf$$.dir; then
16076 rm -f conf$$.dir/conf$$.file
16077 else
16078 rm -f conf$$.dir
16079 mkdir conf$$.dir 2>/dev/null
16081 if (echo >conf$$.file) 2>/dev/null; then
16082 if ln -s conf$$.file conf$$ 2>/dev/null; then
16083 as_ln_s='ln -s'
16084 # ... but there are two gotchas:
16085 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16086 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16087 # In both cases, we have to default to `cp -p'.
16088 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16089 as_ln_s='cp -p'
16090 elif ln conf$$.file conf$$ 2>/dev/null; then
16091 as_ln_s=ln
16092 else
16093 as_ln_s='cp -p'
16095 else
16096 as_ln_s='cp -p'
16098 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16099 rmdir conf$$.dir 2>/dev/null
16102 # as_fn_mkdir_p
16103 # -------------
16104 # Create "$as_dir" as a directory, including parents if necessary.
16105 as_fn_mkdir_p ()
16108 case $as_dir in #(
16109 -*) as_dir=./$as_dir;;
16110 esac
16111 test -d "$as_dir" || eval $as_mkdir_p || {
16112 as_dirs=
16113 while :; do
16114 case $as_dir in #(
16115 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16116 *) as_qdir=$as_dir;;
16117 esac
16118 as_dirs="'$as_qdir' $as_dirs"
16119 as_dir=`$as_dirname -- "$as_dir" ||
16120 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16121 X"$as_dir" : 'X\(//\)[^/]' \| \
16122 X"$as_dir" : 'X\(//\)$' \| \
16123 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16124 $as_echo X"$as_dir" |
16125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16126 s//\1/
16129 /^X\(\/\/\)[^/].*/{
16130 s//\1/
16133 /^X\(\/\/\)$/{
16134 s//\1/
16137 /^X\(\/\).*/{
16138 s//\1/
16141 s/.*/./; q'`
16142 test -d "$as_dir" && break
16143 done
16144 test -z "$as_dirs" || eval "mkdir $as_dirs"
16145 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16148 } # as_fn_mkdir_p
16149 if mkdir -p . 2>/dev/null; then
16150 as_mkdir_p='mkdir -p "$as_dir"'
16151 else
16152 test -d ./-p && rmdir ./-p
16153 as_mkdir_p=false
16156 if test -x / >/dev/null 2>&1; then
16157 as_test_x='test -x'
16158 else
16159 if ls -dL / >/dev/null 2>&1; then
16160 as_ls_L_option=L
16161 else
16162 as_ls_L_option=
16164 as_test_x='
16165 eval sh -c '\''
16166 if test -d "$1"; then
16167 test -d "$1/.";
16168 else
16169 case $1 in #(
16170 -*)set "./$1";;
16171 esac;
16172 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16173 ???[sx]*):;;*)false;;esac;fi
16174 '\'' sh
16177 as_executable_p=$as_test_x
16179 # Sed expression to map a string onto a valid CPP name.
16180 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16182 # Sed expression to map a string onto a valid variable name.
16183 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16186 exec 6>&1
16187 ## ----------------------------------- ##
16188 ## Main body of $CONFIG_STATUS script. ##
16189 ## ----------------------------------- ##
16190 _ASEOF
16191 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16194 # Save the log message, to keep $0 and so on meaningful, and to
16195 # report actual input values of CONFIG_FILES etc. instead of their
16196 # values after options handling.
16197 ac_log="
16198 This file was extended by Wine $as_me 1.5.3, which was
16199 generated by GNU Autoconf 2.68. Invocation command line was
16201 CONFIG_FILES = $CONFIG_FILES
16202 CONFIG_HEADERS = $CONFIG_HEADERS
16203 CONFIG_LINKS = $CONFIG_LINKS
16204 CONFIG_COMMANDS = $CONFIG_COMMANDS
16205 $ $0 $@
16207 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16210 _ACEOF
16212 case $ac_config_files in *"
16213 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16214 esac
16216 case $ac_config_headers in *"
16217 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16218 esac
16221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16222 # Files that config.status was made for.
16223 config_files="$ac_config_files"
16224 config_headers="$ac_config_headers"
16225 config_links="$ac_config_links"
16226 config_commands="$ac_config_commands"
16228 _ACEOF
16230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16231 ac_cs_usage="\
16232 \`$as_me' instantiates files and other configuration actions
16233 from templates according to the current configuration. Unless the files
16234 and actions are specified as TAGs, all are instantiated by default.
16236 Usage: $0 [OPTION]... [TAG]...
16238 -h, --help print this help, then exit
16239 -V, --version print version number and configuration settings, then exit
16240 --config print configuration, then exit
16241 -q, --quiet, --silent
16242 do not print progress messages
16243 -d, --debug don't remove temporary files
16244 --recheck update $as_me by reconfiguring in the same conditions
16245 --file=FILE[:TEMPLATE]
16246 instantiate the configuration file FILE
16247 --header=FILE[:TEMPLATE]
16248 instantiate the configuration header FILE
16250 Configuration files:
16251 $config_files
16253 Configuration headers:
16254 $config_headers
16256 Configuration links:
16257 $config_links
16259 Configuration commands:
16260 $config_commands
16262 Report bugs to <wine-devel@winehq.org>.
16263 Wine home page: <http://www.winehq.org>."
16265 _ACEOF
16266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16267 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16268 ac_cs_version="\\
16269 Wine config.status 1.5.3
16270 configured by $0, generated by GNU Autoconf 2.68,
16271 with options \\"\$ac_cs_config\\"
16273 Copyright (C) 2010 Free Software Foundation, Inc.
16274 This config.status script is free software; the Free Software Foundation
16275 gives unlimited permission to copy, distribute and modify it."
16277 ac_pwd='$ac_pwd'
16278 srcdir='$srcdir'
16279 INSTALL='$INSTALL'
16280 test -n "\$AWK" || AWK=awk
16281 _ACEOF
16283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16284 # The default lists apply if the user does not specify any file.
16285 ac_need_defaults=:
16286 while test $# != 0
16288 case $1 in
16289 --*=?*)
16290 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16291 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16292 ac_shift=:
16294 --*=)
16295 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16296 ac_optarg=
16297 ac_shift=:
16300 ac_option=$1
16301 ac_optarg=$2
16302 ac_shift=shift
16304 esac
16306 case $ac_option in
16307 # Handling of the options.
16308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16309 ac_cs_recheck=: ;;
16310 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16311 $as_echo "$ac_cs_version"; exit ;;
16312 --config | --confi | --conf | --con | --co | --c )
16313 $as_echo "$ac_cs_config"; exit ;;
16314 --debug | --debu | --deb | --de | --d | -d )
16315 debug=: ;;
16316 --file | --fil | --fi | --f )
16317 $ac_shift
16318 case $ac_optarg in
16319 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16320 '') as_fn_error $? "missing file argument" ;;
16321 esac
16322 as_fn_append CONFIG_FILES " '$ac_optarg'"
16323 ac_need_defaults=false;;
16324 --header | --heade | --head | --hea )
16325 $ac_shift
16326 case $ac_optarg in
16327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16328 esac
16329 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16330 ac_need_defaults=false;;
16331 --he | --h)
16332 # Conflict between --help and --header
16333 as_fn_error $? "ambiguous option: \`$1'
16334 Try \`$0 --help' for more information.";;
16335 --help | --hel | -h )
16336 $as_echo "$ac_cs_usage"; exit ;;
16337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16338 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16339 ac_cs_silent=: ;;
16341 # This is an error.
16342 -*) as_fn_error $? "unrecognized option: \`$1'
16343 Try \`$0 --help' for more information." ;;
16345 *) as_fn_append ac_config_targets " $1"
16346 ac_need_defaults=false ;;
16348 esac
16349 shift
16350 done
16352 ac_configure_extra_args=
16354 if $ac_cs_silent; then
16355 exec 6>/dev/null
16356 ac_configure_extra_args="$ac_configure_extra_args --silent"
16359 _ACEOF
16360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16361 if \$ac_cs_recheck; then
16362 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16363 shift
16364 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16365 CONFIG_SHELL='$SHELL'
16366 export CONFIG_SHELL
16367 exec "\$@"
16370 _ACEOF
16371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16372 exec 5>>config.log
16374 echo
16375 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16376 ## Running $as_me. ##
16377 _ASBOX
16378 $as_echo "$ac_log"
16379 } >&5
16381 _ACEOF
16382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16384 # INIT-COMMANDS
16386 wine_fn_output_makefile ()
16388 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16389 $ALL_MAKEFILE_DEPENDS
16390 _WINE_EOF
16391 as_fn_error $? "could not create Makefile" "$LINENO" 5
16394 _ACEOF
16396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16398 # Handling of arguments.
16399 for ac_config_target in $ac_config_targets
16401 case $ac_config_target in
16402 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16403 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16404 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16405 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16406 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16407 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16408 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16409 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16410 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
16411 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16412 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16413 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16414 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16415 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16416 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16417 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16418 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16419 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16420 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16421 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16422 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16423 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16424 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16425 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16426 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16427 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16429 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16430 esac
16431 done
16434 # If the user did not use the arguments to specify the items to instantiate,
16435 # then the envvar interface is used. Set only those that are not.
16436 # We use the long form for the default assignment because of an extremely
16437 # bizarre bug on SunOS 4.1.3.
16438 if $ac_need_defaults; then
16439 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16440 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16441 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16442 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16445 # Have a temporary directory for convenience. Make it in the build tree
16446 # simply because there is no reason against having it here, and in addition,
16447 # creating and moving files from /tmp can sometimes cause problems.
16448 # Hook for its removal unless debugging.
16449 # Note that there is a small window in which the directory will not be cleaned:
16450 # after its creation but before its name has been assigned to `$tmp'.
16451 $debug ||
16453 tmp= ac_tmp=
16454 trap 'exit_status=$?
16455 : "${ac_tmp:=$tmp}"
16456 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16458 trap 'as_fn_exit 1' 1 2 13 15
16460 # Create a (secure) tmp directory for tmp files.
16463 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16464 test -d "$tmp"
16465 } ||
16467 tmp=./conf$$-$RANDOM
16468 (umask 077 && mkdir "$tmp")
16469 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16470 ac_tmp=$tmp
16472 # Set up the scripts for CONFIG_FILES section.
16473 # No need to generate them if there are no CONFIG_FILES.
16474 # This happens for instance with `./config.status config.h'.
16475 if test -n "$CONFIG_FILES"; then
16477 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16478 ac_cs_awk_getline=:
16479 ac_cs_awk_pipe_init=
16480 ac_cs_awk_read_file='
16481 while ((getline aline < (F[key])) > 0)
16482 print(aline)
16483 close(F[key])'
16484 ac_cs_awk_pipe_fini=
16485 else
16486 ac_cs_awk_getline=false
16487 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16488 ac_cs_awk_read_file='
16489 print "|#_!!_#|"
16490 print "cat " F[key] " &&"
16491 '$ac_cs_awk_pipe_init
16492 # The final `:' finishes the AND list.
16493 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16495 ac_cr=`echo X | tr X '\015'`
16496 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16497 # But we know of no other shell where ac_cr would be empty at this
16498 # point, so we can use a bashism as a fallback.
16499 if test "x$ac_cr" = x; then
16500 eval ac_cr=\$\'\\r\'
16502 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16503 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16504 ac_cs_awk_cr='\\r'
16505 else
16506 ac_cs_awk_cr=$ac_cr
16509 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16510 _ACEOF
16512 # Create commands to substitute file output variables.
16514 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16515 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16516 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16517 echo "_ACAWK" &&
16518 echo "_ACEOF"
16519 } >conf$$files.sh &&
16520 . ./conf$$files.sh ||
16521 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16522 rm -f conf$$files.sh
16525 echo "cat >conf$$subs.awk <<_ACEOF" &&
16526 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16527 echo "_ACEOF"
16528 } >conf$$subs.sh ||
16529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16530 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16531 ac_delim='%!_!# '
16532 for ac_last_try in false false false false false :; do
16533 . ./conf$$subs.sh ||
16534 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16536 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16537 if test $ac_delim_n = $ac_delim_num; then
16538 break
16539 elif $ac_last_try; then
16540 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16541 else
16542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16544 done
16545 rm -f conf$$subs.sh
16547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16548 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16549 _ACEOF
16550 sed -n '
16552 s/^/S["/; s/!.*/"]=/
16555 s/^[^!]*!//
16556 :repl
16557 t repl
16558 s/'"$ac_delim"'$//
16559 t delim
16562 s/\(.\{148\}\)..*/\1/
16563 t more1
16564 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16567 b repl
16568 :more1
16569 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16572 s/.\{148\}//
16573 t nl
16574 :delim
16576 s/\(.\{148\}\)..*/\1/
16577 t more2
16578 s/["\\]/\\&/g; s/^/"/; s/$/"/
16581 :more2
16582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16585 s/.\{148\}//
16586 t delim
16587 ' <conf$$subs.awk | sed '
16588 /^[^""]/{
16590 s/\n//
16592 ' >>$CONFIG_STATUS || ac_write_fail=1
16593 rm -f conf$$subs.awk
16594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16595 _ACAWK
16596 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16597 for (key in S) S_is_set[key] = 1
16598 FS = "\a"
16599 \$ac_cs_awk_pipe_init
16602 line = $ 0
16603 nfields = split(line, field, "@")
16604 substed = 0
16605 len = length(field[1])
16606 for (i = 2; i < nfields; i++) {
16607 key = field[i]
16608 keylen = length(key)
16609 if (S_is_set[key]) {
16610 value = S[key]
16611 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16612 len += length(value) + length(field[++i])
16613 substed = 1
16614 } else
16615 len += 1 + keylen
16617 if (nfields == 3 && !substed) {
16618 key = field[2]
16619 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16620 \$ac_cs_awk_read_file
16621 next
16624 print line
16626 \$ac_cs_awk_pipe_fini
16627 _ACAWK
16628 _ACEOF
16629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16630 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16631 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16632 else
16634 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16635 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16636 _ACEOF
16638 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16639 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16640 # trailing colons and then remove the whole line if VPATH becomes empty
16641 # (actually we leave an empty line to preserve line numbers).
16642 if test "x$srcdir" = x.; then
16643 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16645 s///
16646 s/^/:/
16647 s/[ ]*$/:/
16648 s/:\$(srcdir):/:/g
16649 s/:\${srcdir}:/:/g
16650 s/:@srcdir@:/:/g
16651 s/^:*//
16652 s/:*$//
16654 s/\(=[ ]*\).*/\1/
16656 s/\n//
16657 s/^[^=]*=[ ]*$//
16661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16662 fi # test -n "$CONFIG_FILES"
16664 # Set up the scripts for CONFIG_HEADERS section.
16665 # No need to generate them if there are no CONFIG_HEADERS.
16666 # This happens for instance with `./config.status Makefile'.
16667 if test -n "$CONFIG_HEADERS"; then
16668 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16669 BEGIN {
16670 _ACEOF
16672 # Transform confdefs.h into an awk script `defines.awk', embedded as
16673 # here-document in config.status, that substitutes the proper values into
16674 # config.h.in to produce config.h.
16676 # Create a delimiter string that does not exist in confdefs.h, to ease
16677 # handling of long lines.
16678 ac_delim='%!_!# '
16679 for ac_last_try in false false :; do
16680 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16681 if test -z "$ac_tt"; then
16682 break
16683 elif $ac_last_try; then
16684 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16685 else
16686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16688 done
16690 # For the awk script, D is an array of macro values keyed by name,
16691 # likewise P contains macro parameters if any. Preserve backslash
16692 # newline sequences.
16694 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16695 sed -n '
16696 s/.\{148\}/&'"$ac_delim"'/g
16697 t rset
16698 :rset
16699 s/^[ ]*#[ ]*define[ ][ ]*/ /
16700 t def
16702 :def
16703 s/\\$//
16704 t bsnl
16705 s/["\\]/\\&/g
16706 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16707 D["\1"]=" \3"/p
16708 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16710 :bsnl
16711 s/["\\]/\\&/g
16712 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16713 D["\1"]=" \3\\\\\\n"\\/p
16714 t cont
16715 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16716 t cont
16718 :cont
16720 s/.\{148\}/&'"$ac_delim"'/g
16721 t clear
16722 :clear
16723 s/\\$//
16724 t bsnlc
16725 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16727 :bsnlc
16728 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16729 b cont
16730 ' <confdefs.h | sed '
16731 s/'"$ac_delim"'/"\\\
16732 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16735 for (key in D) D_is_set[key] = 1
16736 FS = "\a"
16738 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16739 line = \$ 0
16740 split(line, arg, " ")
16741 if (arg[1] == "#") {
16742 defundef = arg[2]
16743 mac1 = arg[3]
16744 } else {
16745 defundef = substr(arg[1], 2)
16746 mac1 = arg[2]
16748 split(mac1, mac2, "(") #)
16749 macro = mac2[1]
16750 prefix = substr(line, 1, index(line, defundef) - 1)
16751 if (D_is_set[macro]) {
16752 # Preserve the white space surrounding the "#".
16753 print prefix "define", macro P[macro] D[macro]
16754 next
16755 } else {
16756 # Replace #undef with comments. This is necessary, for example,
16757 # in the case of _POSIX_SOURCE, which is predefined and required
16758 # on some systems where configure will not decide to define it.
16759 if (defundef == "undef") {
16760 print "/*", prefix defundef, macro, "*/"
16761 next
16765 { print }
16766 _ACAWK
16767 _ACEOF
16768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16769 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16770 fi # test -n "$CONFIG_HEADERS"
16773 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16774 shift
16775 for ac_tag
16777 case $ac_tag in
16778 :[FHLC]) ac_mode=$ac_tag; continue;;
16779 esac
16780 case $ac_mode$ac_tag in
16781 :[FHL]*:*);;
16782 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16783 :[FH]-) ac_tag=-:-;;
16784 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16785 esac
16786 ac_save_IFS=$IFS
16787 IFS=:
16788 set x $ac_tag
16789 IFS=$ac_save_IFS
16790 shift
16791 ac_file=$1
16792 shift
16794 case $ac_mode in
16795 :L) ac_source=$1;;
16796 :[FH])
16797 ac_file_inputs=
16798 for ac_f
16800 case $ac_f in
16801 -) ac_f="$ac_tmp/stdin";;
16802 *) # Look for the file first in the build tree, then in the source tree
16803 # (if the path is not absolute). The absolute path cannot be DOS-style,
16804 # because $ac_f cannot contain `:'.
16805 test -f "$ac_f" ||
16806 case $ac_f in
16807 [\\/$]*) false;;
16808 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16809 esac ||
16810 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16811 esac
16812 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16813 as_fn_append ac_file_inputs " '$ac_f'"
16814 done
16816 # Let's still pretend it is `configure' which instantiates (i.e., don't
16817 # use $as_me), people would be surprised to read:
16818 # /* config.h. Generated by config.status. */
16819 configure_input='Generated from '`
16820 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16821 `' by configure.'
16822 if test x"$ac_file" != x-; then
16823 configure_input="$ac_file. $configure_input"
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16825 $as_echo "$as_me: creating $ac_file" >&6;}
16827 # Neutralize special characters interpreted by sed in replacement strings.
16828 case $configure_input in #(
16829 *\&* | *\|* | *\\* )
16830 ac_sed_conf_input=`$as_echo "$configure_input" |
16831 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16832 *) ac_sed_conf_input=$configure_input;;
16833 esac
16835 case $ac_tag in
16836 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16838 esac
16840 esac
16842 ac_dir=`$as_dirname -- "$ac_file" ||
16843 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16844 X"$ac_file" : 'X\(//\)[^/]' \| \
16845 X"$ac_file" : 'X\(//\)$' \| \
16846 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16847 $as_echo X"$ac_file" |
16848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16849 s//\1/
16852 /^X\(\/\/\)[^/].*/{
16853 s//\1/
16856 /^X\(\/\/\)$/{
16857 s//\1/
16860 /^X\(\/\).*/{
16861 s//\1/
16864 s/.*/./; q'`
16865 as_dir="$ac_dir"; as_fn_mkdir_p
16866 ac_builddir=.
16868 case "$ac_dir" in
16869 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16871 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16872 # A ".." for each directory in $ac_dir_suffix.
16873 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16874 case $ac_top_builddir_sub in
16875 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16876 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16877 esac ;;
16878 esac
16879 ac_abs_top_builddir=$ac_pwd
16880 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16881 # for backward compatibility:
16882 ac_top_builddir=$ac_top_build_prefix
16884 case $srcdir in
16885 .) # We are building in place.
16886 ac_srcdir=.
16887 ac_top_srcdir=$ac_top_builddir_sub
16888 ac_abs_top_srcdir=$ac_pwd ;;
16889 [\\/]* | ?:[\\/]* ) # Absolute name.
16890 ac_srcdir=$srcdir$ac_dir_suffix;
16891 ac_top_srcdir=$srcdir
16892 ac_abs_top_srcdir=$srcdir ;;
16893 *) # Relative name.
16894 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16895 ac_top_srcdir=$ac_top_build_prefix$srcdir
16896 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16897 esac
16898 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16901 case $ac_mode in
16904 # CONFIG_FILE
16907 case $INSTALL in
16908 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16909 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16910 esac
16911 _ACEOF
16913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16914 # If the template does not know about datarootdir, expand it.
16915 # FIXME: This hack should be removed a few years after 2.60.
16916 ac_datarootdir_hack=; ac_datarootdir_seen=
16917 ac_sed_dataroot='
16918 /datarootdir/ {
16922 /@datadir@/p
16923 /@docdir@/p
16924 /@infodir@/p
16925 /@localedir@/p
16926 /@mandir@/p'
16927 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16928 *datarootdir*) ac_datarootdir_seen=yes;;
16929 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16931 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16932 _ACEOF
16933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16934 ac_datarootdir_hack='
16935 s&@datadir@&$datadir&g
16936 s&@docdir@&$docdir&g
16937 s&@infodir@&$infodir&g
16938 s&@localedir@&$localedir&g
16939 s&@mandir@&$mandir&g
16940 s&\\\${datarootdir}&$datarootdir&g' ;;
16941 esac
16942 _ACEOF
16944 # Neutralize VPATH when `$srcdir' = `.'.
16945 # Shell code in configure.ac might set extrasub.
16946 # FIXME: do we really want to maintain this feature?
16947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16948 ac_sed_extra="$ac_vpsub
16949 $extrasub
16950 _ACEOF
16951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16954 s|@configure_input@|$ac_sed_conf_input|;t t
16955 s&@top_builddir@&$ac_top_builddir_sub&;t t
16956 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16957 s&@srcdir@&$ac_srcdir&;t t
16958 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16959 s&@top_srcdir@&$ac_top_srcdir&;t t
16960 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16961 s&@builddir@&$ac_builddir&;t t
16962 s&@abs_builddir@&$ac_abs_builddir&;t t
16963 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16964 s&@INSTALL@&$ac_INSTALL&;t t
16965 $ac_datarootdir_hack
16967 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16968 if $ac_cs_awk_getline; then
16969 $AWK -f "$ac_tmp/subs.awk"
16970 else
16971 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16972 fi \
16973 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16975 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16976 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16977 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16978 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16980 which seems to be undefined. Please make sure it is defined" >&5
16981 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16982 which seems to be undefined. Please make sure it is defined" >&2;}
16984 rm -f "$ac_tmp/stdin"
16985 case $ac_file in
16986 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16987 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16988 esac \
16989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16993 # CONFIG_HEADER
16995 if test x"$ac_file" != x-; then
16997 $as_echo "/* $configure_input */" \
16998 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16999 } >"$ac_tmp/config.h" \
17000 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17001 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17003 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17004 else
17005 rm -f "$ac_file"
17006 mv "$ac_tmp/config.h" "$ac_file" \
17007 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17009 else
17010 $as_echo "/* $configure_input */" \
17011 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17012 || as_fn_error $? "could not create -" "$LINENO" 5
17017 # CONFIG_LINK
17020 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17022 else
17023 # Prefer the file from the source tree if names are identical.
17024 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17025 ac_source=$srcdir/$ac_source
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17029 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17031 if test ! -r "$ac_source"; then
17032 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17034 rm -f "$ac_file"
17036 # Try a relative symlink, then a hard link, then a copy.
17037 case $ac_source in
17038 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17039 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17040 esac
17041 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17042 ln "$ac_source" "$ac_file" 2>/dev/null ||
17043 cp -p "$ac_source" "$ac_file" ||
17044 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17047 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17048 $as_echo "$as_me: executing $ac_file commands" >&6;}
17050 esac
17053 case $ac_file$ac_mode in
17054 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17055 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17056 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17057 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17058 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17059 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17060 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17061 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17062 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17063 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17064 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17065 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17066 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17067 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17068 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17069 "Makefile":C) wine_fn_output_makefile Makefile ;;
17071 esac
17072 done # for ac_tag
17075 as_fn_exit 0
17076 _ACEOF
17077 ac_clean_files=$ac_clean_files_save
17079 test $ac_write_fail = 0 ||
17080 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17083 # configure is writing to config.log, and then calls config.status.
17084 # config.status does its own redirection, appending to config.log.
17085 # Unfortunately, on DOS this fails, as config.log is still kept open
17086 # by configure, so config.status won't be able to write to it; its
17087 # output is simply discarded. So we exec the FD to /dev/null,
17088 # effectively closing config.log, so it can be properly (re)opened and
17089 # appended to by config.status. When coming back to configure, we
17090 # need to make the FD available again.
17091 if test "$no_create" != yes; then
17092 ac_cs_success=:
17093 ac_config_status_args=
17094 test "$silent" = yes &&
17095 ac_config_status_args="$ac_config_status_args --quiet"
17096 exec 5>/dev/null
17097 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17098 exec 5>>config.log
17099 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17100 # would make configure fail if this is the last instruction.
17101 $ac_cs_success || as_fn_exit 1
17103 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17105 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17109 if test "$no_create" = "yes"
17110 then
17111 exit 0
17114 ac_save_IFS="$IFS"
17115 if test "x$wine_notices != "x; then
17116 echo >&6
17117 IFS="|"
17118 for msg in $wine_notices; do
17119 IFS="$ac_save_IFS"
17120 if test -n "$msg"; then
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17122 $as_echo "$as_me: $msg" >&6;}
17124 done
17126 IFS="|"
17127 for msg in $wine_warnings; do
17128 IFS="$ac_save_IFS"
17129 if test -n "$msg"; then
17130 echo >&2
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17132 $as_echo "$as_me: WARNING: $msg" >&2;}
17134 done
17135 IFS="$ac_save_IFS"
17137 echo "
17138 $as_me: Finished. Do '${ac_make}' to compile Wine.
17139 " >&6