msxml3: Support IDispatch in IXMLElement.
[wine/multimedia.git] / configure
blob9350761103a3c7fe9dd2cfcc137470ddf41e8b0d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.3.32.
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.3.32'
564 PACKAGE_STRING='Wine 1.3.32'
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 XSLTINCL
648 XML2INCL
649 XML2LIBS
650 X_EXTRA_LIBS
651 X_LIBS
652 X_PRE_LIBS
653 X_CFLAGS
654 XMKMF
655 LIBPTHREAD
656 CROSSTARGET
657 CROSSCC
658 CROSSTEST_DISABLE
659 PRELINK
660 CARBONLIB
661 QUICKTIMELIB
662 LIBOPENCL
663 FRAMEWORK_OPENAL
664 COREAUDIO
665 SECURITYLIB
666 DISKARBITRATIONLIB
667 LDEXECFLAGS
668 APPLICATIONSERVICESLIB
669 IOKITLIB
670 COREFOUNDATIONLIB
671 DLLWRAP
672 DLLTOOL
674 LDRPATH_LOCAL
675 LDRPATH_INSTALL
676 IMPLIBEXT
677 LIBEXT
678 LDDLLFLAGS
679 LDSHARED
680 DLLFLAGS
681 DLLEXT
683 OPENGL_LIBS
684 XLIB
685 MAINTAINER_MODE
686 MSGFMT
687 ICOTOOL
688 CONVERT
689 RSVG
690 PKG_CONFIG
691 FONTFORGE
692 LINTFLAGS
693 LINT
694 INSTALL_DATA
695 INSTALL_SCRIPT
696 INSTALL_PROGRAM
697 LDCONFIG
698 EGREP
699 GREP
700 LN_S
701 RANLIB
702 ARFLAGS
703 ac_ct_AR
705 BISON
706 FLEX
707 TOOLSDIR
708 WOW64_DISABLE
709 TARGETFLAGS
710 CPPBIN
711 ac_ct_CXX
712 CXXFLAGS
714 OBJEXT
715 EXEEXT
716 ac_ct_CC
717 CPPFLAGS
718 LDFLAGS
719 CFLAGS
721 SET_MAKE
722 host_os
723 host_vendor
724 host_cpu
725 host
726 build_os
727 build_vendor
728 build_cpu
729 build
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files='MAKE_RULES
769 MAKE_TEST_RULES
770 MAKE_DLL_RULES
771 MAKE_IMPLIB_RULES
772 MAKE_PROG_RULES'
773 ac_user_opts='
774 enable_option_checking
775 enable_win16
776 enable_win64
777 enable_tests
778 enable_maintainer_mode
779 with_alsa
780 with_capi
781 with_cms
782 with_coreaudio
783 with_cups
784 with_curses
785 with_fontconfig
786 with_freetype
787 with_gettext
788 with_gettextpo
789 with_gphoto
790 with_glu
791 with_gnutls
792 with_gsm
793 with_gstreamer
794 with_hal
795 with_jpeg
796 with_ldap
797 with_mpg123
798 with_openal
799 with_opencl
800 with_opengl
801 with_openssl
802 with_oss
803 with_png
804 with_pthread
805 with_sane
806 with_tiff
807 with_v4l
808 with_xcomposite
809 with_xcursor
810 with_xinerama
811 with_xinput
812 with_xinput2
813 with_xml
814 with_xrandr
815 with_xrender
816 with_xshape
817 with_xshm
818 with_xslt
819 with_xxf86vm
820 with_zlib
821 with_wine_tools
822 with_wine64
823 enable_largefile
824 with_x
826 ac_precious_vars='build_alias
827 host_alias
828 target_alias
830 CFLAGS
831 LDFLAGS
832 LIBS
833 CPPFLAGS
835 CXXFLAGS
838 XMKMF'
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
889 ac_prev=
890 ac_dashdash=
891 for ac_option
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
900 case $ac_option in
901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *=) ac_optarg= ;;
903 *) ac_optarg=yes ;;
904 esac
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
910 ac_dashdash=yes ;;
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
929 --config-cache | -C)
930 cache_file=config.cache ;;
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
1133 sbindir=$ac_optarg ;;
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
1144 sharedstatedir=$ac_optarg ;;
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
1149 site=$ac_optarg ;;
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1174 -with-* | --with-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=no ;;
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1228 *=*)
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234 esac
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246 esac
1247 done
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error $? "missing argument to $ac_option"
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1256 no) ;;
1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1295 If a cross compiler is detected then cross compile mode will be used" >&2
1296 elif test "x$build_alias" != "x$host_alias"; then
1297 cross_compiling=yes
1301 ac_tool_prefix=
1302 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304 test "$silent" = yes && exec 6>/dev/null
1307 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308 ac_ls_di=`ls -di .` &&
1309 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310 as_fn_error $? "working directory cannot be determined"
1311 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312 as_fn_error $? "pwd does not report name of working directory"
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324 $as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1333 /^X\(\/\/\)$/{
1334 s//\1/
1337 /^X\(\/\).*/{
1338 s//\1/
1341 s/.*/./; q'`
1342 srcdir=$ac_confdir
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 srcdir=..
1346 else
1347 ac_srcdir_defaulted=no
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 ac_abs_confdir=`(
1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1356 pwd)`
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1364 case $srcdir in
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 esac
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 done
1375 # Report the --help message.
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
1381 \`configure' configures Wine 1.3.32 to adapt to many kinds of systems.
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1388 Defaults for the options are specified in brackets.
1390 Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking ...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 [PREFIX]
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1412 For better control, use the options below.
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1434 _ACEOF
1436 cat <<\_ACEOF
1438 X features:
1439 --x-includes=DIR X include files are in DIR
1440 --x-libraries=DIR X library files are in DIR
1442 System types:
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1445 _ACEOF
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of Wine 1.3.32:";;
1451 esac
1452 cat <<\_ACEOF
1454 Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --disable-win16 do not include Win16 support
1459 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1460 binaries)
1461 --disable-tests do not build the regression tests
1462 --enable-maintainer-mode
1463 enable maintainer-specific build rules
1464 --disable-largefile omit support for large files
1466 Optional Packages:
1467 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1469 --without-alsa do not use the Alsa sound support
1470 --without-capi do not use CAPI (ISDN support)
1471 --without-cms do not use CMS (color management support)
1472 --without-coreaudio do not use the CoreAudio sound support
1473 --without-cups do not use CUPS
1474 --without-curses do not use (n)curses
1475 --without-fontconfig do not use fontconfig
1476 --without-freetype do not use the FreeType library
1477 --without-gettext do not use gettext
1478 --with-gettextpo use the GetTextPO library to rebuild po files
1479 --without-gphoto do not use gphoto (Digital Camera support)
1480 --without-glu do not use the GLU library
1481 --without-gnutls do not use GnuTLS (schannel support)
1482 --without-gsm do not use libgsm (GSM 06.10 codec support)
1483 --without-gstreamer do not use GStreamer (codecs support)
1484 --without-hal do not use HAL (dynamic device support)
1485 --without-jpeg do not use JPEG
1486 --without-ldap do not use LDAP
1487 --without-mpg123 do not use the mpg123 library
1488 --without-openal do not use OpenAL
1489 --without-opencl do not use OpenCL
1490 --without-opengl do not use OpenGL
1491 --without-openssl do not use OpenSSL
1492 --without-oss do not use the OSS sound support
1493 --without-png do not use PNG
1494 --without-pthread do not use the pthread library
1495 --without-sane do not use SANE (scanner support)
1496 --without-tiff do not use TIFF
1497 --without-v4l do not use v4l1 (v4l support)
1498 --without-xcomposite do not use the Xcomposite extension
1499 --without-xcursor do not use the Xcursor extension
1500 --without-xinerama do not use Xinerama (multi-monitor support)
1501 --without-xinput do not use the Xinput extension
1502 --without-xinput2 do not use the Xinput 2 extension
1503 --without-xml do not use XML
1504 --without-xrandr do not use Xrandr (resolution changes)
1505 --without-xrender do not use the Xrender extension
1506 --without-xshape do not use the Xshape extension
1507 --without-xshm do not use XShm (shared memory extension)
1508 --without-xslt do not use XSLT
1509 --without-xxf86vm do not use XFree video mode extension
1510 --without-zlib do not use Zlib (data compression)
1511 --with-wine-tools=DIR use Wine tools from directory DIR
1512 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1513 --with-x use the X Window System
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CXX C++ compiler command
1524 CXXFLAGS C++ compiler flags
1525 CPP C preprocessor
1526 XMKMF Path to xmkmf, Makefile generator for X Window System
1528 Use these variables to override the choices made by `configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1531 Report bugs to <wine-devel@winehq.org>.
1532 Wine home page: <http://www.winehq.org>.
1533 _ACEOF
1534 ac_status=$?
1537 if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 continue
1543 ac_builddir=.
1545 case "$ac_dir" in
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 esac ;;
1555 esac
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1561 case $srcdir in
1562 .) # We are building in place.
1563 ac_srcdir=.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1570 *) # Relative name.
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 esac
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1585 else
1586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587 fi || ac_status=$?
1588 cd "$ac_pwd" || { ac_status=$?; break; }
1589 done
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1594 cat <<\_ACEOF
1595 Wine configure 1.3.32
1596 generated by GNU Autoconf 2.68
1598 Copyright (C) 2010 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1601 _ACEOF
1602 exit
1605 ## ------------------------ ##
1606 ## Autoconf initialization. ##
1607 ## ------------------------ ##
1609 # ac_fn_c_try_compile LINENO
1610 # --------------------------
1611 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_compile ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext
1616 if { { ac_try="$ac_compile"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_compile") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest.$ac_objext; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1640 ac_retval=1
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1645 } # ac_fn_c_try_compile
1647 # ac_fn_cxx_try_compile LINENO
1648 # ----------------------------
1649 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_cxx_try_compile ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext
1654 if { { ac_try="$ac_compile"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_compile") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_cxx_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest.$ac_objext; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1678 ac_retval=1
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1683 } # ac_fn_cxx_try_compile
1685 # ac_fn_c_try_link LINENO
1686 # -----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_link ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext conftest$ac_exeext
1692 if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest$ac_exeext && {
1711 test "$cross_compiling" = yes ||
1712 $as_test_x conftest$ac_exeext
1713 }; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1719 ac_retval=1
1721 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723 # interfere with the next link command; also delete a directory that is
1724 # left behind by Apple's compiler. We do this before executing the actions.
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1729 } # ac_fn_c_try_link
1731 # ac_fn_c_try_cpp LINENO
1732 # ----------------------
1733 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_cpp ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { { ac_try="$ac_cpp conftest.$ac_ext"
1738 case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } > conftest.i && {
1753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 }; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 ac_retval=1
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1766 } # ac_fn_c_try_cpp
1768 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1771 # the include files in INCLUDES and setting the cache variable VAR
1772 # accordingly.
1773 ac_fn_c_check_header_mongrel ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if eval \${$3+:} false; then :
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 else
1786 # Is the header compilable?
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1788 $as_echo_n "checking $2 usability... " >&6; }
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 ac_header_compiler=yes
1796 else
1797 ac_header_compiler=no
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1801 $as_echo "$ac_header_compiler" >&6; }
1803 # Is the header present?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1805 $as_echo_n "checking $2 presence... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1808 #include <$2>
1809 _ACEOF
1810 if ac_fn_c_try_cpp "$LINENO"; then :
1811 ac_header_preproc=yes
1812 else
1813 ac_header_preproc=no
1815 rm -f conftest.err conftest.i conftest.$ac_ext
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1817 $as_echo "$ac_header_preproc" >&6; }
1819 # So? What about this header?
1820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1821 yes:no: )
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1823 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827 no:yes:* )
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1829 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1831 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1833 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1835 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1838 ( $as_echo "## ------------------------------------ ##
1839 ## Report this to wine-devel@winehq.org ##
1840 ## ------------------------------------ ##"
1841 ) | sed "s/^/$as_me: WARNING: /" >&2
1843 esac
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 eval "$3=\$ac_header_compiler"
1851 eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 } # ac_fn_c_check_header_mongrel
1859 # ac_fn_c_try_run LINENO
1860 # ----------------------
1861 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1862 # that executables *can* be run.
1863 ac_fn_c_try_run ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if { { ac_try="$ac_link"
1867 case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_link") 2>&5
1874 ac_status=$?
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1877 { { case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880 esac
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_try") 2>&5
1884 ac_status=$?
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; }; }; then :
1887 ac_retval=0
1888 else
1889 $as_echo "$as_me: program exited with status $ac_status" >&5
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1893 ac_retval=$ac_status
1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1899 } # ac_fn_c_try_run
1901 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists and can be compiled using the include files in
1904 # INCLUDES, setting the cache variable VAR accordingly.
1905 ac_fn_c_check_header_compile ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if eval \${$3+:} false; then :
1911 $as_echo_n "(cached) " >&6
1912 else
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1916 #include <$2>
1917 _ACEOF
1918 if ac_fn_c_try_compile "$LINENO"; then :
1919 eval "$3=yes"
1920 else
1921 eval "$3=no"
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 } # ac_fn_c_check_header_compile
1932 # ac_fn_c_check_func LINENO FUNC VAR
1933 # ----------------------------------
1934 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1935 ac_fn_c_check_func ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1942 else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1947 #define $2 innocuous_$2
1949 /* System header to define __stub macros and hopefully few prototypes,
1950 which can conflict with char $2 (); below.
1951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1952 <limits.h> exists even on freestanding compilers. */
1954 #ifdef __STDC__
1955 # include <limits.h>
1956 #else
1957 # include <assert.h>
1958 #endif
1960 #undef $2
1962 /* Override any GCC internal prototype to avoid an error.
1963 Use char because int might match the return type of a GCC
1964 builtin and then its argument prototype would still apply. */
1965 #ifdef __cplusplus
1966 extern "C"
1967 #endif
1968 char $2 ();
1969 /* The GNU C library defines this for functions which it implements
1970 to always fail with ENOSYS. Some functions are actually named
1971 something starting with __ and the normal name is an alias. */
1972 #if defined __stub_$2 || defined __stub___$2
1973 choke me
1974 #endif
1977 main ()
1979 return $2 ();
1981 return 0;
1983 _ACEOF
1984 if ac_fn_c_try_link "$LINENO"; then :
1985 eval "$3=yes"
1986 else
1987 eval "$3=no"
1989 rm -f core conftest.err conftest.$ac_objext \
1990 conftest$ac_exeext conftest.$ac_ext
1992 eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 } # ac_fn_c_check_func
1999 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2000 # ----------------------------------------------------
2001 # Tries to find if the field MEMBER exists in type AGGR, after including
2002 # INCLUDES, setting cache variable VAR accordingly.
2003 ac_fn_c_check_member ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2007 $as_echo_n "checking for $2.$3... " >&6; }
2008 if eval \${$4+:} false; then :
2009 $as_echo_n "(cached) " >&6
2010 else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2015 main ()
2017 static $2 ac_aggr;
2018 if (ac_aggr.$3)
2019 return 0;
2021 return 0;
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$4=yes"
2026 else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2031 main ()
2033 static $2 ac_aggr;
2034 if (sizeof ac_aggr.$3)
2035 return 0;
2037 return 0;
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 eval "$4=yes"
2042 else
2043 eval "$4=no"
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 eval ac_res=\$$4
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 } # ac_fn_c_check_member
2056 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2057 # -------------------------------------------
2058 # Tests whether TYPE exists after having included INCLUDES, setting cache
2059 # variable VAR accordingly.
2060 ac_fn_c_check_type ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval \${$3+:} false; then :
2066 $as_echo_n "(cached) " >&6
2067 else
2068 eval "$3=no"
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2073 main ()
2075 if (sizeof ($2))
2076 return 0;
2078 return 0;
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 if (sizeof (($2)))
2089 return 0;
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2096 else
2097 eval "$3=yes"
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 eval ac_res=\$$3
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108 } # ac_fn_c_check_type
2109 cat >config.log <<_ACEOF
2110 This file contains any messages produced by compilers while
2111 running configure, to aid debugging if configure makes a mistake.
2113 It was created by Wine $as_me 1.3.32, which was
2114 generated by GNU Autoconf 2.68. Invocation command line was
2116 $ $0 $@
2118 _ACEOF
2119 exec 5>>config.log
2121 cat <<_ASUNAME
2122 ## --------- ##
2123 ## Platform. ##
2124 ## --------- ##
2126 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2127 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2128 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2129 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2130 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2132 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2133 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2135 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2136 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2137 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2138 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2139 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2140 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2141 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2143 _ASUNAME
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2148 IFS=$as_save_IFS
2149 test -z "$as_dir" && as_dir=.
2150 $as_echo "PATH: $as_dir"
2151 done
2152 IFS=$as_save_IFS
2154 } >&5
2156 cat >&5 <<_ACEOF
2159 ## ----------- ##
2160 ## Core tests. ##
2161 ## ----------- ##
2163 _ACEOF
2166 # Keep a trace of the command line.
2167 # Strip out --no-create and --no-recursion so they do not pile up.
2168 # Strip out --silent because we don't want to record it for future runs.
2169 # Also quote any args containing shell meta-characters.
2170 # Make two passes to allow for proper duplicate-argument suppression.
2171 ac_configure_args=
2172 ac_configure_args0=
2173 ac_configure_args1=
2174 ac_must_keep_next=false
2175 for ac_pass in 1 2
2177 for ac_arg
2179 case $ac_arg in
2180 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2182 | -silent | --silent | --silen | --sile | --sil)
2183 continue ;;
2184 *\'*)
2185 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2186 esac
2187 case $ac_pass in
2188 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2190 as_fn_append ac_configure_args1 " '$ac_arg'"
2191 if test $ac_must_keep_next = true; then
2192 ac_must_keep_next=false # Got value, back to normal.
2193 else
2194 case $ac_arg in
2195 *=* | --config-cache | -C | -disable-* | --disable-* \
2196 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2197 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2198 | -with-* | --with-* | -without-* | --without-* | --x)
2199 case "$ac_configure_args0 " in
2200 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2201 esac
2203 -* ) ac_must_keep_next=true ;;
2204 esac
2206 as_fn_append ac_configure_args " '$ac_arg'"
2208 esac
2209 done
2210 done
2211 { ac_configure_args0=; unset ac_configure_args0;}
2212 { ac_configure_args1=; unset ac_configure_args1;}
2214 # When interrupted or exit'd, cleanup temporary files, and complete
2215 # config.log. We remove comments because anyway the quotes in there
2216 # would cause problems or look ugly.
2217 # WARNING: Use '\'' to represent an apostrophe within the trap.
2218 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2219 trap 'exit_status=$?
2220 # Save into config.log some information that might help in debugging.
2222 echo
2224 $as_echo "## ---------------- ##
2225 ## Cache variables. ##
2226 ## ---------------- ##"
2227 echo
2228 # The following way of writing the cache mishandles newlines in values,
2230 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2231 eval ac_val=\$$ac_var
2232 case $ac_val in #(
2233 *${as_nl}*)
2234 case $ac_var in #(
2235 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2236 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2237 esac
2238 case $ac_var in #(
2239 _ | IFS | as_nl) ;; #(
2240 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2241 *) { eval $ac_var=; unset $ac_var;} ;;
2242 esac ;;
2243 esac
2244 done
2245 (set) 2>&1 |
2246 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2247 *${as_nl}ac_space=\ *)
2248 sed -n \
2249 "s/'\''/'\''\\\\'\'''\''/g;
2250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2251 ;; #(
2253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2255 esac |
2256 sort
2258 echo
2260 $as_echo "## ----------------- ##
2261 ## Output variables. ##
2262 ## ----------------- ##"
2263 echo
2264 for ac_var in $ac_subst_vars
2266 eval ac_val=\$$ac_var
2267 case $ac_val in
2268 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2269 esac
2270 $as_echo "$ac_var='\''$ac_val'\''"
2271 done | sort
2272 echo
2274 if test -n "$ac_subst_files"; then
2275 $as_echo "## ------------------- ##
2276 ## File substitutions. ##
2277 ## ------------------- ##"
2278 echo
2279 for ac_var in $ac_subst_files
2281 eval ac_val=\$$ac_var
2282 case $ac_val in
2283 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2284 esac
2285 $as_echo "$ac_var='\''$ac_val'\''"
2286 done | sort
2287 echo
2290 if test -s confdefs.h; then
2291 $as_echo "## ----------- ##
2292 ## confdefs.h. ##
2293 ## ----------- ##"
2294 echo
2295 cat confdefs.h
2296 echo
2298 test "$ac_signal" != 0 &&
2299 $as_echo "$as_me: caught signal $ac_signal"
2300 $as_echo "$as_me: exit $exit_status"
2301 } >&5
2302 rm -f core *.core core.conftest.* &&
2303 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2304 exit $exit_status
2306 for ac_signal in 1 2 13 15; do
2307 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2308 done
2309 ac_signal=0
2311 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2312 rm -f -r conftest* confdefs.h
2314 $as_echo "/* confdefs.h */" > confdefs.h
2316 # Predefined preprocessor variables.
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_NAME "$PACKAGE_NAME"
2320 _ACEOF
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2324 _ACEOF
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2328 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_STRING "$PACKAGE_STRING"
2332 _ACEOF
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2336 _ACEOF
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_URL "$PACKAGE_URL"
2340 _ACEOF
2343 # Let the site file select an alternate cache file if it wants to.
2344 # Prefer an explicitly selected file to automatically selected ones.
2345 ac_site_file1=NONE
2346 ac_site_file2=NONE
2347 if test -n "$CONFIG_SITE"; then
2348 # We do not want a PATH search for config.site.
2349 case $CONFIG_SITE in #((
2350 -*) ac_site_file1=./$CONFIG_SITE;;
2351 */*) ac_site_file1=$CONFIG_SITE;;
2352 *) ac_site_file1=./$CONFIG_SITE;;
2353 esac
2354 elif test "x$prefix" != xNONE; then
2355 ac_site_file1=$prefix/share/config.site
2356 ac_site_file2=$prefix/etc/config.site
2357 else
2358 ac_site_file1=$ac_default_prefix/share/config.site
2359 ac_site_file2=$ac_default_prefix/etc/config.site
2361 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2363 test "x$ac_site_file" = xNONE && continue
2364 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2366 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2367 sed 's/^/| /' "$ac_site_file" >&5
2368 . "$ac_site_file" \
2369 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2371 as_fn_error $? "failed to load site script $ac_site_file
2372 See \`config.log' for more details" "$LINENO" 5; }
2374 done
2376 if test -r "$cache_file"; then
2377 # Some versions of bash will fail to source /dev/null (special files
2378 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2379 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2381 $as_echo "$as_me: loading cache $cache_file" >&6;}
2382 case $cache_file in
2383 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2384 *) . "./$cache_file";;
2385 esac
2387 else
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2389 $as_echo "$as_me: creating cache $cache_file" >&6;}
2390 >$cache_file
2393 # Check that the precious variables saved in the cache have kept the same
2394 # value.
2395 ac_cache_corrupted=false
2396 for ac_var in $ac_precious_vars; do
2397 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2398 eval ac_new_set=\$ac_env_${ac_var}_set
2399 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2400 eval ac_new_val=\$ac_env_${ac_var}_value
2401 case $ac_old_set,$ac_new_set in
2402 set,)
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2405 ac_cache_corrupted=: ;;
2406 ,set)
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2408 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2409 ac_cache_corrupted=: ;;
2410 ,);;
2412 if test "x$ac_old_val" != "x$ac_new_val"; then
2413 # differences in whitespace do not lead to failure.
2414 ac_old_val_w=`echo x $ac_old_val`
2415 ac_new_val_w=`echo x $ac_new_val`
2416 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2418 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2419 ac_cache_corrupted=:
2420 else
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2422 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2423 eval $ac_var=\$ac_old_val
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2426 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2428 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2429 fi;;
2430 esac
2431 # Pass precious variables to config.status.
2432 if test "$ac_new_set" = set; then
2433 case $ac_new_val in
2434 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2435 *) ac_arg=$ac_var=$ac_new_val ;;
2436 esac
2437 case " $ac_configure_args " in
2438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2439 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2440 esac
2442 done
2443 if $ac_cache_corrupted; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2447 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2448 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2450 ## -------------------- ##
2451 ## Main body of script. ##
2452 ## -------------------- ##
2454 ac_ext=c
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462 ac_config_headers="$ac_config_headers include/config.h"
2464 ac_aux_dir=
2465 for ac_dir in tools "$srcdir"/tools; do
2466 if test -f "$ac_dir/install-sh"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/install-sh -c"
2469 break
2470 elif test -f "$ac_dir/install.sh"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/install.sh -c"
2473 break
2474 elif test -f "$ac_dir/shtool"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/shtool install -c"
2477 break
2479 done
2480 if test -z "$ac_aux_dir"; then
2481 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2484 # These three variables are undocumented and unsupported,
2485 # and are intended to be withdrawn in a future Autoconf release.
2486 # They can cause serious problems if a builder's source tree is in a directory
2487 # whose full name contains unusual characters.
2488 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2489 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2490 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2496 # Check whether --enable-win16 was given.
2497 if test "${enable_win16+set}" = set; then :
2498 enableval=$enable_win16;
2501 # Check whether --enable-win64 was given.
2502 if test "${enable_win64+set}" = set; then :
2503 enableval=$enable_win64;
2506 # Check whether --enable-tests was given.
2507 if test "${enable_tests+set}" = set; then :
2508 enableval=$enable_tests;
2511 # Check whether --enable-maintainer-mode was given.
2512 if test "${enable_maintainer_mode+set}" = set; then :
2513 enableval=$enable_maintainer_mode;
2518 # Check whether --with-alsa was given.
2519 if test "${with_alsa+set}" = set; then :
2520 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2524 # Check whether --with-capi was given.
2525 if test "${with_capi+set}" = set; then :
2526 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2530 # Check whether --with-cms was given.
2531 if test "${with_cms+set}" = set; then :
2532 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2536 # Check whether --with-coreaudio was given.
2537 if test "${with_coreaudio+set}" = set; then :
2538 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2542 # Check whether --with-cups was given.
2543 if test "${with_cups+set}" = set; then :
2544 withval=$with_cups;
2548 # Check whether --with-curses was given.
2549 if test "${with_curses+set}" = set; then :
2550 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2554 # Check whether --with-fontconfig was given.
2555 if test "${with_fontconfig+set}" = set; then :
2556 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2560 # Check whether --with-freetype was given.
2561 if test "${with_freetype+set}" = set; then :
2562 withval=$with_freetype;
2566 # Check whether --with-gettext was given.
2567 if test "${with_gettext+set}" = set; then :
2568 withval=$with_gettext;
2572 # Check whether --with-gettextpo was given.
2573 if test "${with_gettextpo+set}" = set; then :
2574 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2578 # Check whether --with-gphoto was given.
2579 if test "${with_gphoto+set}" = set; then :
2580 withval=$with_gphoto;
2584 # Check whether --with-glu was given.
2585 if test "${with_glu+set}" = set; then :
2586 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2590 # Check whether --with-gnutls was given.
2591 if test "${with_gnutls+set}" = set; then :
2592 withval=$with_gnutls;
2596 # Check whether --with-gsm was given.
2597 if test "${with_gsm+set}" = set; then :
2598 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2602 # Check whether --with-gstreamer was given.
2603 if test "${with_gstreamer+set}" = set; then :
2604 withval=$with_gstreamer;
2608 # Check whether --with-hal was given.
2609 if test "${with_hal+set}" = set; then :
2610 withval=$with_hal;
2614 # Check whether --with-jpeg was given.
2615 if test "${with_jpeg+set}" = set; then :
2616 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2620 # Check whether --with-ldap was given.
2621 if test "${with_ldap+set}" = set; then :
2622 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2626 # Check whether --with-mpg123 was given.
2627 if test "${with_mpg123+set}" = set; then :
2628 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2632 # Check whether --with-openal was given.
2633 if test "${with_openal+set}" = set; then :
2634 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2638 # Check whether --with-opencl was given.
2639 if test "${with_opencl+set}" = set; then :
2640 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2644 # Check whether --with-opengl was given.
2645 if test "${with_opengl+set}" = set; then :
2646 withval=$with_opengl;
2650 # Check whether --with-openssl was given.
2651 if test "${with_openssl+set}" = set; then :
2652 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2656 # Check whether --with-oss was given.
2657 if test "${with_oss+set}" = set; then :
2658 withval=$with_oss;
2662 # Check whether --with-png was given.
2663 if test "${with_png+set}" = set; then :
2664 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2668 # Check whether --with-pthread was given.
2669 if test "${with_pthread+set}" = set; then :
2670 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2674 # Check whether --with-sane was given.
2675 if test "${with_sane+set}" = set; then :
2676 withval=$with_sane;
2680 # Check whether --with-tiff was given.
2681 if test "${with_tiff+set}" = set; then :
2682 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2686 # Check whether --with-v4l was given.
2687 if test "${with_v4l+set}" = set; then :
2688 withval=$with_v4l;
2692 # Check whether --with-xcomposite was given.
2693 if test "${with_xcomposite+set}" = set; then :
2694 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2698 # Check whether --with-xcursor was given.
2699 if test "${with_xcursor+set}" = set; then :
2700 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2704 # Check whether --with-xinerama was given.
2705 if test "${with_xinerama+set}" = set; then :
2706 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2710 # Check whether --with-xinput was given.
2711 if test "${with_xinput+set}" = set; then :
2712 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2716 # Check whether --with-xinput2 was given.
2717 if test "${with_xinput2+set}" = set; then :
2718 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2722 # Check whether --with-xml was given.
2723 if test "${with_xml+set}" = set; then :
2724 withval=$with_xml;
2728 # Check whether --with-xrandr was given.
2729 if test "${with_xrandr+set}" = set; then :
2730 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2734 # Check whether --with-xrender was given.
2735 if test "${with_xrender+set}" = set; then :
2736 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2740 # Check whether --with-xshape was given.
2741 if test "${with_xshape+set}" = set; then :
2742 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2746 # Check whether --with-xshm was given.
2747 if test "${with_xshm+set}" = set; then :
2748 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2752 # Check whether --with-xslt was given.
2753 if test "${with_xslt+set}" = set; then :
2754 withval=$with_xslt;
2758 # Check whether --with-xxf86vm was given.
2759 if test "${with_xxf86vm+set}" = set; then :
2760 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
2764 # Check whether --with-zlib was given.
2765 if test "${with_zlib+set}" = set; then :
2766 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2771 # Check whether --with-wine-tools was given.
2772 if test "${with_wine_tools+set}" = set; then :
2773 withval=$with_wine_tools;
2777 # Check whether --with-wine64 was given.
2778 if test "${with_wine64+set}" = set; then :
2779 withval=$with_wine64;
2783 # Make sure we can run config.sub.
2784 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2785 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2788 $as_echo_n "checking build system type... " >&6; }
2789 if ${ac_cv_build+:} false; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 ac_build_alias=$build_alias
2793 test "x$ac_build_alias" = x &&
2794 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2795 test "x$ac_build_alias" = x &&
2796 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2797 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2798 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2802 $as_echo "$ac_cv_build" >&6; }
2803 case $ac_cv_build in
2804 *-*-*) ;;
2805 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2806 esac
2807 build=$ac_cv_build
2808 ac_save_IFS=$IFS; IFS='-'
2809 set x $ac_cv_build
2810 shift
2811 build_cpu=$1
2812 build_vendor=$2
2813 shift; shift
2814 # Remember, the first character of IFS is used to create $*,
2815 # except with old shells:
2816 build_os=$*
2817 IFS=$ac_save_IFS
2818 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2822 $as_echo_n "checking host system type... " >&6; }
2823 if ${ac_cv_host+:} false; then :
2824 $as_echo_n "(cached) " >&6
2825 else
2826 if test "x$host_alias" = x; then
2827 ac_cv_host=$ac_cv_build
2828 else
2829 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2830 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2835 $as_echo "$ac_cv_host" >&6; }
2836 case $ac_cv_host in
2837 *-*-*) ;;
2838 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2839 esac
2840 host=$ac_cv_host
2841 ac_save_IFS=$IFS; IFS='-'
2842 set x $ac_cv_host
2843 shift
2844 host_cpu=$1
2845 host_vendor=$2
2846 shift; shift
2847 # Remember, the first character of IFS is used to create $*,
2848 # except with old shells:
2849 host_os=$*
2850 IFS=$ac_save_IFS
2851 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2855 case "$srcdir" in
2856 .) ;;
2857 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2858 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2859 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2860 fi ;;
2861 esac
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2865 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2866 set x ${MAKE-make}
2867 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2868 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 cat >conftest.make <<\_ACEOF
2872 SHELL = /bin/sh
2873 all:
2874 @echo '@@@%%%=$(MAKE)=@@@%%%'
2875 _ACEOF
2876 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2877 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2878 *@@@%%%=?*=@@@%%%*)
2879 eval ac_cv_prog_make_${ac_make}_set=yes;;
2881 eval ac_cv_prog_make_${ac_make}_set=no;;
2882 esac
2883 rm -f conftest.make
2885 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2887 $as_echo "yes" >&6; }
2888 SET_MAKE=
2889 else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2892 SET_MAKE="MAKE=${MAKE-make}"
2895 ac_ext=c
2896 ac_cpp='$CPP $CPPFLAGS'
2897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900 if test -n "$ac_tool_prefix"; then
2901 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2902 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_prog_CC+:} false; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2922 done
2923 done
2924 IFS=$as_save_IFS
2928 CC=$ac_cv_prog_CC
2929 if test -n "$CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931 $as_echo "$CC" >&6; }
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2939 if test -z "$ac_cv_prog_CC"; then
2940 ac_ct_CC=$CC
2941 # Extract the first word of "gcc", so it can be a program name with args.
2942 set dummy gcc; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 if test -n "$ac_ct_CC"; then
2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_ac_ct_CC="gcc"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2962 done
2963 done
2964 IFS=$as_save_IFS
2968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969 if test -n "$ac_ct_CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2971 $as_echo "$ac_ct_CC" >&6; }
2972 else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2977 if test "x$ac_ct_CC" = x; then
2978 CC=""
2979 else
2980 case $cross_compiling:$ac_tool_warned in
2981 yes:)
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984 ac_tool_warned=yes ;;
2985 esac
2986 CC=$ac_ct_CC
2988 else
2989 CC="$ac_cv_prog_CC"
2992 if test -z "$CC"; then
2993 if test -n "$ac_tool_prefix"; then
2994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}cc; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_CC+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_CC="${ac_tool_prefix}cc"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3015 done
3016 done
3017 IFS=$as_save_IFS
3021 CC=$ac_cv_prog_CC
3022 if test -n "$CC"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3024 $as_echo "$CC" >&6; }
3025 else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3033 if test -z "$CC"; then
3034 # Extract the first word of "cc", so it can be a program name with args.
3035 set dummy cc; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_CC+:} false; then :
3039 $as_echo_n "(cached) " >&6
3040 else
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3043 else
3044 ac_prog_rejected=no
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3053 ac_prog_rejected=yes
3054 continue
3056 ac_cv_prog_CC="cc"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3060 done
3061 done
3062 IFS=$as_save_IFS
3064 if test $ac_prog_rejected = yes; then
3065 # We found a bogon in the path, so make sure we never use it.
3066 set dummy $ac_cv_prog_CC
3067 shift
3068 if test $# != 0; then
3069 # We chose a different compiler from the bogus one.
3070 # However, it has the same basename, so the bogon will be chosen
3071 # first if we set CC to just the basename; use the full file name.
3072 shift
3073 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3078 CC=$ac_cv_prog_CC
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3082 else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3089 if test -z "$CC"; then
3090 if test -n "$ac_tool_prefix"; then
3091 for ac_prog in cl.exe
3093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3114 done
3115 done
3116 IFS=$as_save_IFS
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3130 test -n "$CC" && break
3131 done
3133 if test -z "$CC"; then
3134 ac_ct_CC=$CC
3135 for ac_prog in cl.exe
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$ac_ct_CC"; then
3145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_ac_ct_CC="$ac_prog"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3158 done
3159 done
3160 IFS=$as_save_IFS
3164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3165 if test -n "$ac_ct_CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3167 $as_echo "$ac_ct_CC" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$ac_ct_CC" && break
3175 done
3177 if test "x$ac_ct_CC" = x; then
3178 CC=""
3179 else
3180 case $cross_compiling:$ac_tool_warned in
3181 yes:)
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3184 ac_tool_warned=yes ;;
3185 esac
3186 CC=$ac_ct_CC
3193 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "no acceptable C compiler found in \$PATH
3196 See \`config.log' for more details" "$LINENO" 5; }
3198 # Provide some information about the compiler.
3199 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3200 set X $ac_compile
3201 ac_compiler=$2
3202 for ac_option in --version -v -V -qversion; do
3203 { { ac_try="$ac_compiler $ac_option >&5"
3204 case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3211 ac_status=$?
3212 if test -s conftest.err; then
3213 sed '10a\
3214 ... rest of stderr output deleted ...
3215 10q' conftest.err >conftest.er1
3216 cat conftest.er1 >&5
3218 rm -f conftest.er1 conftest.err
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }
3221 done
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3227 main ()
3231 return 0;
3233 _ACEOF
3234 ac_clean_files_save=$ac_clean_files
3235 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3236 # Try to create an executable without -o first, disregard a.out.
3237 # It will help us diagnose broken compilers, and finding out an intuition
3238 # of exeext.
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3240 $as_echo_n "checking whether the C compiler works... " >&6; }
3241 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3243 # The possible output files:
3244 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3246 ac_rmfiles=
3247 for ac_file in $ac_files
3249 case $ac_file in
3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3251 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3252 esac
3253 done
3254 rm -f $ac_rmfiles
3256 if { { ac_try="$ac_link_default"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_link_default") 2>&5
3264 ac_status=$?
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; then :
3267 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3268 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3269 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3270 # so that the user can short-circuit this test for compilers unknown to
3271 # Autoconf.
3272 for ac_file in $ac_files ''
3274 test -f "$ac_file" || continue
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3278 [ab].out )
3279 # We found the default executable, but exeext='' is most
3280 # certainly right.
3281 break;;
3282 *.* )
3283 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3284 then :; else
3285 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287 # We set ac_cv_exeext here because the later test for it is not
3288 # safe: cross compilers may not add the suffix if given an `-o'
3289 # argument, so we may need to know it at that point already.
3290 # Even if this section looks crufty: it has the advantage of
3291 # actually working.
3292 break;;
3294 break;;
3295 esac
3296 done
3297 test "$ac_cv_exeext" = no && ac_cv_exeext=
3299 else
3300 ac_file=''
3302 if test -z "$ac_file"; then :
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 $as_echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error 77 "C compiler cannot create executables
3311 See \`config.log' for more details" "$LINENO" 5; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314 $as_echo "yes" >&6; }
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3317 $as_echo_n "checking for C compiler default output file name... " >&6; }
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3319 $as_echo "$ac_file" >&6; }
3320 ac_exeext=$ac_cv_exeext
3322 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3323 ac_clean_files=$ac_clean_files_save
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3325 $as_echo_n "checking for suffix of executables... " >&6; }
3326 if { { ac_try="$ac_link"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_link") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3338 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3339 # work properly (i.e., refer to `conftest.exe'), while it won't with
3340 # `rm'.
3341 for ac_file in conftest.exe conftest conftest.*; do
3342 test -f "$ac_file" || continue
3343 case $ac_file in
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3345 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3346 break;;
3347 * ) break;;
3348 esac
3349 done
3350 else
3351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3354 See \`config.log' for more details" "$LINENO" 5; }
3356 rm -f conftest conftest$ac_cv_exeext
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3358 $as_echo "$ac_cv_exeext" >&6; }
3360 rm -f conftest.$ac_ext
3361 EXEEXT=$ac_cv_exeext
3362 ac_exeext=$EXEEXT
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3365 #include <stdio.h>
3367 main ()
3369 FILE *f = fopen ("conftest.out", "w");
3370 return ferror (f) || fclose (f) != 0;
3373 return 0;
3375 _ACEOF
3376 ac_clean_files="$ac_clean_files conftest.out"
3377 # Check that the compiler produces executables we can run. If not, either
3378 # the compiler is broken, or we cross compile.
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3380 $as_echo_n "checking whether we are cross compiling... " >&6; }
3381 if test "$cross_compiling" != yes; then
3382 { { ac_try="$ac_link"
3383 case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_link") 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }
3393 if { ac_try='./conftest$ac_cv_exeext'
3394 { { case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_try") 2>&5
3401 ac_status=$?
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; }; then
3404 cross_compiling=no
3405 else
3406 if test "$cross_compiling" = maybe; then
3407 cross_compiling=yes
3408 else
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error $? "cannot run C compiled programs.
3412 If you meant to cross compile, use \`--host'.
3413 See \`config.log' for more details" "$LINENO" 5; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3418 $as_echo "$cross_compiling" >&6; }
3420 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3421 ac_clean_files=$ac_clean_files_save
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3423 $as_echo_n "checking for suffix of object files... " >&6; }
3424 if ${ac_cv_objext+:} false; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3431 main ()
3435 return 0;
3437 _ACEOF
3438 rm -f conftest.o conftest.obj
3439 if { { ac_try="$ac_compile"
3440 case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_compile") 2>&5
3447 ac_status=$?
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }; then :
3450 for ac_file in conftest.o conftest.obj conftest.*; do
3451 test -f "$ac_file" || continue;
3452 case $ac_file in
3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3454 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3455 break;;
3456 esac
3457 done
3458 else
3459 $as_echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 as_fn_error $? "cannot compute suffix of object files: cannot compile
3465 See \`config.log' for more details" "$LINENO" 5; }
3467 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3470 $as_echo "$ac_cv_objext" >&6; }
3471 OBJEXT=$ac_cv_objext
3472 ac_objext=$OBJEXT
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3474 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3475 if ${ac_cv_c_compiler_gnu+:} false; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3482 main ()
3484 #ifndef __GNUC__
3485 choke me
3486 #endif
3489 return 0;
3491 _ACEOF
3492 if ac_fn_c_try_compile "$LINENO"; then :
3493 ac_compiler_gnu=yes
3494 else
3495 ac_compiler_gnu=no
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3502 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3503 if test $ac_compiler_gnu = yes; then
3504 GCC=yes
3505 else
3506 GCC=
3508 ac_test_CFLAGS=${CFLAGS+set}
3509 ac_save_CFLAGS=$CFLAGS
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3511 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3512 if ${ac_cv_prog_cc_g+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 ac_save_c_werror_flag=$ac_c_werror_flag
3516 ac_c_werror_flag=yes
3517 ac_cv_prog_cc_g=no
3518 CFLAGS="-g"
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3523 main ()
3527 return 0;
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_cv_prog_cc_g=yes
3532 else
3533 CFLAGS=""
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3538 main ()
3542 return 0;
3544 _ACEOF
3545 if ac_fn_c_try_compile "$LINENO"; then :
3547 else
3548 ac_c_werror_flag=$ac_save_c_werror_flag
3549 CFLAGS="-g"
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3554 main ()
3558 return 0;
3560 _ACEOF
3561 if ac_fn_c_try_compile "$LINENO"; then :
3562 ac_cv_prog_cc_g=yes
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_c_werror_flag=$ac_save_c_werror_flag
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3572 $as_echo "$ac_cv_prog_cc_g" >&6; }
3573 if test "$ac_test_CFLAGS" = set; then
3574 CFLAGS=$ac_save_CFLAGS
3575 elif test $ac_cv_prog_cc_g = yes; then
3576 if test "$GCC" = yes; then
3577 CFLAGS="-g -O2"
3578 else
3579 CFLAGS="-g"
3581 else
3582 if test "$GCC" = yes; then
3583 CFLAGS="-O2"
3584 else
3585 CFLAGS=
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3589 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3590 if ${ac_cv_prog_cc_c89+:} false; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 ac_cv_prog_cc_c89=no
3594 ac_save_CC=$CC
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3597 #include <stdarg.h>
3598 #include <stdio.h>
3599 #include <sys/types.h>
3600 #include <sys/stat.h>
3601 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3602 struct buf { int x; };
3603 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3604 static char *e (p, i)
3605 char **p;
3606 int i;
3608 return p[i];
3610 static char *f (char * (*g) (char **, int), char **p, ...)
3612 char *s;
3613 va_list v;
3614 va_start (v,p);
3615 s = g (p, va_arg (v,int));
3616 va_end (v);
3617 return s;
3620 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3621 function prototypes and stuff, but not '\xHH' hex character constants.
3622 These don't provoke an error unfortunately, instead are silently treated
3623 as 'x'. The following induces an error, until -std is added to get
3624 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3625 array size at least. It's necessary to write '\x00'==0 to get something
3626 that's true only with -std. */
3627 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3629 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3630 inside strings and character constants. */
3631 #define FOO(x) 'x'
3632 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3634 int test (int i, double x);
3635 struct s1 {int (*f) (int a);};
3636 struct s2 {int (*f) (double a);};
3637 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3638 int argc;
3639 char **argv;
3641 main ()
3643 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3645 return 0;
3647 _ACEOF
3648 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3649 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3651 CC="$ac_save_CC $ac_arg"
3652 if ac_fn_c_try_compile "$LINENO"; then :
3653 ac_cv_prog_cc_c89=$ac_arg
3655 rm -f core conftest.err conftest.$ac_objext
3656 test "x$ac_cv_prog_cc_c89" != "xno" && break
3657 done
3658 rm -f conftest.$ac_ext
3659 CC=$ac_save_CC
3662 # AC_CACHE_VAL
3663 case "x$ac_cv_prog_cc_c89" in
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3666 $as_echo "none needed" >&6; } ;;
3667 xno)
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3669 $as_echo "unsupported" >&6; } ;;
3671 CC="$CC $ac_cv_prog_cc_c89"
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3673 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3674 esac
3675 if test "x$ac_cv_prog_cc_c89" != xno; then :
3679 ac_ext=c
3680 ac_cpp='$CPP $CPPFLAGS'
3681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685 ac_ext=cpp
3686 ac_cpp='$CXXCPP $CPPFLAGS'
3687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3690 if test -z "$CXX"; then
3691 if test -n "$CCC"; then
3692 CXX=$CCC
3693 else
3694 if test -n "$ac_tool_prefix"; then
3695 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3698 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if ${ac_cv_prog_CXX+:} false; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 if test -n "$CXX"; then
3705 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3714 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3718 done
3719 done
3720 IFS=$as_save_IFS
3724 CXX=$ac_cv_prog_CXX
3725 if test -n "$CXX"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3727 $as_echo "$CXX" >&6; }
3728 else
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3734 test -n "$CXX" && break
3735 done
3737 if test -z "$CXX"; then
3738 ac_ct_CXX=$CXX
3739 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3741 # Extract the first word of "$ac_prog", so it can be a program name with args.
3742 set dummy $ac_prog; ac_word=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 if test -n "$ac_ct_CXX"; then
3749 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3750 else
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3758 ac_cv_prog_ac_ct_CXX="$ac_prog"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 break 2
3762 done
3763 done
3764 IFS=$as_save_IFS
3768 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3769 if test -n "$ac_ct_CXX"; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3771 $as_echo "$ac_ct_CXX" >&6; }
3772 else
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 $as_echo "no" >&6; }
3778 test -n "$ac_ct_CXX" && break
3779 done
3781 if test "x$ac_ct_CXX" = x; then
3782 CXX="g++"
3783 else
3784 case $cross_compiling:$ac_tool_warned in
3785 yes:)
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3788 ac_tool_warned=yes ;;
3789 esac
3790 CXX=$ac_ct_CXX
3796 # Provide some information about the compiler.
3797 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3798 set X $ac_compile
3799 ac_compiler=$2
3800 for ac_option in --version -v -V -qversion; do
3801 { { ac_try="$ac_compiler $ac_option >&5"
3802 case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3809 ac_status=$?
3810 if test -s conftest.err; then
3811 sed '10a\
3812 ... rest of stderr output deleted ...
3813 10q' conftest.err >conftest.er1
3814 cat conftest.er1 >&5
3816 rm -f conftest.er1 conftest.err
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }
3819 done
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3822 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3823 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3824 $as_echo_n "(cached) " >&6
3825 else
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3830 main ()
3832 #ifndef __GNUC__
3833 choke me
3834 #endif
3837 return 0;
3839 _ACEOF
3840 if ac_fn_cxx_try_compile "$LINENO"; then :
3841 ac_compiler_gnu=yes
3842 else
3843 ac_compiler_gnu=no
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3850 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3851 if test $ac_compiler_gnu = yes; then
3852 GXX=yes
3853 else
3854 GXX=
3856 ac_test_CXXFLAGS=${CXXFLAGS+set}
3857 ac_save_CXXFLAGS=$CXXFLAGS
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3859 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3860 if ${ac_cv_prog_cxx_g+:} false; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3864 ac_cxx_werror_flag=yes
3865 ac_cv_prog_cxx_g=no
3866 CXXFLAGS="-g"
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3871 main ()
3875 return 0;
3877 _ACEOF
3878 if ac_fn_cxx_try_compile "$LINENO"; then :
3879 ac_cv_prog_cxx_g=yes
3880 else
3881 CXXFLAGS=""
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3886 main ()
3890 return 0;
3892 _ACEOF
3893 if ac_fn_cxx_try_compile "$LINENO"; then :
3895 else
3896 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3897 CXXFLAGS="-g"
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3902 main ()
3906 return 0;
3908 _ACEOF
3909 if ac_fn_cxx_try_compile "$LINENO"; then :
3910 ac_cv_prog_cxx_g=yes
3912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3920 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3921 if test "$ac_test_CXXFLAGS" = set; then
3922 CXXFLAGS=$ac_save_CXXFLAGS
3923 elif test $ac_cv_prog_cxx_g = yes; then
3924 if test "$GXX" = yes; then
3925 CXXFLAGS="-g -O2"
3926 else
3927 CXXFLAGS="-g"
3929 else
3930 if test "$GXX" = yes; then
3931 CXXFLAGS="-O2"
3932 else
3933 CXXFLAGS=
3936 ac_ext=c
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942 if test -n "$ac_tool_prefix"; then
3943 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3944 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if ${ac_cv_prog_CPPBIN+:} false; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 if test -n "$CPPBIN"; then
3951 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3952 else
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3960 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 break 2
3964 done
3965 done
3966 IFS=$as_save_IFS
3970 CPPBIN=$ac_cv_prog_CPPBIN
3971 if test -n "$CPPBIN"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3973 $as_echo "$CPPBIN" >&6; }
3974 else
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3981 if test -z "$ac_cv_prog_CPPBIN"; then
3982 ac_ct_CPPBIN=$CPPBIN
3983 # Extract the first word of "cpp", so it can be a program name with args.
3984 set dummy cpp; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 if test -n "$ac_ct_CPPBIN"; then
3991 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_prog_ac_ct_CPPBIN="cpp"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4004 done
4005 done
4006 IFS=$as_save_IFS
4010 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4011 if test -n "$ac_ct_CPPBIN"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4013 $as_echo "$ac_ct_CPPBIN" >&6; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4019 if test "x$ac_ct_CPPBIN" = x; then
4020 CPPBIN="cpp"
4021 else
4022 case $cross_compiling:$ac_tool_warned in
4023 yes:)
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned=yes ;;
4027 esac
4028 CPPBIN=$ac_ct_CPPBIN
4030 else
4031 CPPBIN="$ac_cv_prog_CPPBIN"
4035 cat >>confdefs.h <<_ACEOF
4036 #define EXEEXT "$ac_exeext"
4037 _ACEOF
4040 case $host in
4041 *-darwin*)
4042 if test "x$enable_win64" = "xyes"
4043 then
4044 CC="$CC -m64"
4045 CXX="$CXX -m64"
4046 LD="${LD:-ld} -arch x86_64"
4047 AS="${AS:-as} -arch x86_64"
4048 host_cpu="x86_64"
4049 notice_platform="64-bit "
4050 TARGETFLAGS="-m64"
4052 else
4053 CC="$CC -m32"
4054 CXX="$CXX -m32"
4055 LD="${LD:-ld} -arch i386"
4056 AS="${AS:-as} -arch i386"
4057 host_cpu="i386"
4058 notice_platform="32-bit "
4059 TARGETFLAGS="-m32"
4061 enable_win16=${enable_win16:-yes}
4064 x86_64*)
4065 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4066 then
4067 CC="$CC -m32"
4068 CXX="$CXX -m32"
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4070 $as_echo_n "checking whether $CC works... " >&6; }
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4076 main ()
4080 return 0;
4082 _ACEOF
4083 if ac_fn_c_try_link "$LINENO"; then :
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4085 $as_echo "yes" >&6; }
4086 else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4089 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4091 rm -f core conftest.err conftest.$ac_objext \
4092 conftest$ac_exeext conftest.$ac_ext
4093 LD="${LD:-ld} -m elf_i386"
4094 AS="${AS:-as} --32"
4095 host_cpu="i386"
4096 notice_platform="32-bit "
4097 TARGETFLAGS="-m32"
4099 enable_win16=${enable_win16:-yes}
4100 else
4101 if test "x${GCC}" = "xyes"
4102 then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4104 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107 #include <stdarg.h>
4109 main ()
4111 void func(__builtin_ms_va_list *args);
4113 return 0;
4115 _ACEOF
4116 if ac_fn_c_try_compile "$LINENO"; then :
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4118 $as_echo "yes" >&6; }
4119 else
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4122 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 TARGETFLAGS="-m64"
4130 *-mingw32*|*-cygwin*)
4131 enable_win16=${enable_win16:-no}
4132 CFLAGS="$CFLAGS -D_WIN32"
4134 i[3456789]86*)
4135 enable_win16=${enable_win16:-yes}
4137 esac
4139 enable_win16=${enable_win16:-no}
4140 enable_win64=${enable_win64:-no}
4142 enable_winetest=${enable_winetest:-$enable_tests}
4144 if test -n "$with_wine64"
4145 then
4146 if test "x$enable_win64" = "xyes"
4147 then
4148 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4149 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4151 WOW64_DISABLE=\#
4153 enable_fonts=${enable_fonts:-no}
4154 enable_server=${enable_server:-no}
4155 enable_tools=${enable_tools:-no}
4156 elif test "x$enable_win64" = "xyes"
4157 then
4158 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4162 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4163 if ${wine_cv_toolsdir+:} false; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 wine_cv_toolsdir="$with_wine_tools"
4167 if test -z "$with_wine_tools"; then
4168 if test "$cross_compiling" = "yes"; then
4169 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4170 elif test -n "$with_wine64"; then
4171 wine_cv_toolsdir="$with_wine64"
4174 if test -z "$wine_cv_toolsdir"; then
4175 wine_cv_toolsdir="\$(top_builddir)"
4176 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4177 case "$wine_cv_toolsdir" in
4178 /*) ;;
4179 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4180 esac
4181 else
4182 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4186 $as_echo "$wine_cv_toolsdir" >&6; }
4187 TOOLSDIR=$wine_cv_toolsdir
4189 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4190 then
4191 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4195 for ac_prog in flex
4197 # Extract the first word of "$ac_prog", so it can be a program name with args.
4198 set dummy $ac_prog; ac_word=$2
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200 $as_echo_n "checking for $ac_word... " >&6; }
4201 if ${ac_cv_prog_FLEX+:} false; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 if test -n "$FLEX"; then
4205 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4214 ac_cv_prog_FLEX="$ac_prog"
4215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4218 done
4219 done
4220 IFS=$as_save_IFS
4224 FLEX=$ac_cv_prog_FLEX
4225 if test -n "$FLEX"; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4227 $as_echo "$FLEX" >&6; }
4228 else
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4234 test -n "$FLEX" && break
4235 done
4236 test -n "$FLEX" || FLEX="none"
4238 if test "$FLEX" = "none"
4239 then
4240 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4243 $as_echo_n "checking whether flex is recent enough... " >&6; }
4244 cat >conftest.l <<EOF
4245 %top{
4246 #include "prediluvian.h"
4250 if $FLEX -t conftest.l >/dev/null 2>&5
4251 then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4253 $as_echo "yes" >&6; }
4254 else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4257 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4260 for ac_prog in bison
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy $ac_prog; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_BISON+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$BISON"; then
4270 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_BISON="$ac_prog"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4283 done
4284 done
4285 IFS=$as_save_IFS
4289 BISON=$ac_cv_prog_BISON
4290 if test -n "$BISON"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4292 $as_echo "$BISON" >&6; }
4293 else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4299 test -n "$BISON" && break
4300 done
4301 test -n "$BISON" || BISON="none"
4303 if test "$BISON" = "none"
4304 then
4305 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4308 if test -n "$ac_tool_prefix"; then
4309 for ac_prog in ar gar
4311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if ${ac_cv_prog_AR+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if test -n "$AR"; then
4319 ac_cv_prog_AR="$AR" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4332 done
4333 done
4334 IFS=$as_save_IFS
4338 AR=$ac_cv_prog_AR
4339 if test -n "$AR"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4341 $as_echo "$AR" >&6; }
4342 else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 $as_echo "no" >&6; }
4348 test -n "$AR" && break
4349 done
4351 if test -z "$AR"; then
4352 ac_ct_AR=$AR
4353 for ac_prog in ar gar
4355 # Extract the first word of "$ac_prog", so it can be a program name with args.
4356 set dummy $ac_prog; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if test -n "$ac_ct_AR"; then
4363 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_prog_ac_ct_AR="$ac_prog"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4376 done
4377 done
4378 IFS=$as_save_IFS
4382 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4383 if test -n "$ac_ct_AR"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4385 $as_echo "$ac_ct_AR" >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4392 test -n "$ac_ct_AR" && break
4393 done
4395 if test "x$ac_ct_AR" = x; then
4396 AR="ar"
4397 else
4398 case $cross_compiling:$ac_tool_warned in
4399 yes:)
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4402 ac_tool_warned=yes ;;
4403 esac
4404 AR=$ac_ct_AR
4408 ARFLAGS=rc
4410 if test -n "$ac_tool_prefix"; then
4411 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4412 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if ${ac_cv_prog_RANLIB+:} false; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -n "$RANLIB"; then
4419 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4432 done
4433 done
4434 IFS=$as_save_IFS
4438 RANLIB=$ac_cv_prog_RANLIB
4439 if test -n "$RANLIB"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4441 $as_echo "$RANLIB" >&6; }
4442 else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4449 if test -z "$ac_cv_prog_RANLIB"; then
4450 ac_ct_RANLIB=$RANLIB
4451 # Extract the first word of "ranlib", so it can be a program name with args.
4452 set dummy ranlib; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 if test -n "$ac_ct_RANLIB"; then
4459 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_ac_ct_RANLIB="ranlib"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4472 done
4473 done
4474 IFS=$as_save_IFS
4478 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4479 if test -n "$ac_ct_RANLIB"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4481 $as_echo "$ac_ct_RANLIB" >&6; }
4482 else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4487 if test "x$ac_ct_RANLIB" = x; then
4488 RANLIB=":"
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 RANLIB=$ac_ct_RANLIB
4498 else
4499 RANLIB="$ac_cv_prog_RANLIB"
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4503 $as_echo_n "checking whether ln -s works... " >&6; }
4504 LN_S=$as_ln_s
4505 if test "$LN_S" = "ln -s"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4507 $as_echo "yes" >&6; }
4508 else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4510 $as_echo "no, using $LN_S" >&6; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4514 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4515 if ${ac_cv_path_GREP+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -z "$GREP"; then
4519 ac_path_GREP_found=false
4520 # Loop through the user's path and test for each of PROGNAME-LIST
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_prog in grep ggrep; do
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4529 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4530 # Check for GNU ac_path_GREP and select it if it is found.
4531 # Check for GNU $ac_path_GREP
4532 case `"$ac_path_GREP" --version 2>&1` in
4533 *GNU*)
4534 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4536 ac_count=0
4537 $as_echo_n 0123456789 >"conftest.in"
4538 while :
4540 cat "conftest.in" "conftest.in" >"conftest.tmp"
4541 mv "conftest.tmp" "conftest.in"
4542 cp "conftest.in" "conftest.nl"
4543 $as_echo 'GREP' >> "conftest.nl"
4544 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4546 as_fn_arith $ac_count + 1 && ac_count=$as_val
4547 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4548 # Best one so far, save it but keep looking for a better one
4549 ac_cv_path_GREP="$ac_path_GREP"
4550 ac_path_GREP_max=$ac_count
4552 # 10*(2^10) chars as input seems more than enough
4553 test $ac_count -gt 10 && break
4554 done
4555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4556 esac
4558 $ac_path_GREP_found && break 3
4559 done
4560 done
4561 done
4562 IFS=$as_save_IFS
4563 if test -z "$ac_cv_path_GREP"; then
4564 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4566 else
4567 ac_cv_path_GREP=$GREP
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4572 $as_echo "$ac_cv_path_GREP" >&6; }
4573 GREP="$ac_cv_path_GREP"
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4577 $as_echo_n "checking for egrep... " >&6; }
4578 if ${ac_cv_path_EGREP+:} false; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4582 then ac_cv_path_EGREP="$GREP -E"
4583 else
4584 if test -z "$EGREP"; then
4585 ac_path_EGREP_found=false
4586 # Loop through the user's path and test for each of PROGNAME-LIST
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_prog in egrep; do
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4595 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4596 # Check for GNU ac_path_EGREP and select it if it is found.
4597 # Check for GNU $ac_path_EGREP
4598 case `"$ac_path_EGREP" --version 2>&1` in
4599 *GNU*)
4600 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4602 ac_count=0
4603 $as_echo_n 0123456789 >"conftest.in"
4604 while :
4606 cat "conftest.in" "conftest.in" >"conftest.tmp"
4607 mv "conftest.tmp" "conftest.in"
4608 cp "conftest.in" "conftest.nl"
4609 $as_echo 'EGREP' >> "conftest.nl"
4610 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4612 as_fn_arith $ac_count + 1 && ac_count=$as_val
4613 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4614 # Best one so far, save it but keep looking for a better one
4615 ac_cv_path_EGREP="$ac_path_EGREP"
4616 ac_path_EGREP_max=$ac_count
4618 # 10*(2^10) chars as input seems more than enough
4619 test $ac_count -gt 10 && break
4620 done
4621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4622 esac
4624 $ac_path_EGREP_found && break 3
4625 done
4626 done
4627 done
4628 IFS=$as_save_IFS
4629 if test -z "$ac_cv_path_EGREP"; then
4630 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4632 else
4633 ac_cv_path_EGREP=$EGREP
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4639 $as_echo "$ac_cv_path_EGREP" >&6; }
4640 EGREP="$ac_cv_path_EGREP"
4643 # Extract the first word of "ldconfig", so it can be a program name with args.
4644 set dummy ldconfig; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if ${ac_cv_path_LDCONFIG+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 case $LDCONFIG in
4651 [\\/]* | ?:[\\/]*)
4652 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in /sbin /usr/sbin $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4668 IFS=$as_save_IFS
4670 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4672 esac
4674 LDCONFIG=$ac_cv_path_LDCONFIG
4675 if test -n "$LDCONFIG"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4677 $as_echo "$LDCONFIG" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4684 # Find a good install program. We prefer a C program (faster),
4685 # so one script is as good as another. But avoid the broken or
4686 # incompatible versions:
4687 # SysV /etc/install, /usr/sbin/install
4688 # SunOS /usr/etc/install
4689 # IRIX /sbin/install
4690 # AIX /bin/install
4691 # AmigaOS /C/install, which installs bootblocks on floppy discs
4692 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4693 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4694 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4695 # OS/2's system install, which has a completely different semantic
4696 # ./install, which can be erroneously created by make from ./install.sh.
4697 # Reject install programs that cannot install multiple files.
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4699 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4700 if test -z "$INSTALL"; then
4701 if ${ac_cv_path_install+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 # Account for people who put trailing slashes in PATH elements.
4710 case $as_dir/ in #((
4711 ./ | .// | /[cC]/* | \
4712 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4713 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4714 /usr/ucb/* ) ;;
4716 # OSF1 and SCO ODT 3.0 have their own names for install.
4717 # Don't use installbsd from OSF since it installs stuff as root
4718 # by default.
4719 for ac_prog in ginstall scoinst install; do
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4722 if test $ac_prog = install &&
4723 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4724 # AIX install. It has an incompatible calling convention.
4726 elif test $ac_prog = install &&
4727 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4728 # program-specific install script used by HP pwplus--don't use.
4730 else
4731 rm -rf conftest.one conftest.two conftest.dir
4732 echo one > conftest.one
4733 echo two > conftest.two
4734 mkdir conftest.dir
4735 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4736 test -s conftest.one && test -s conftest.two &&
4737 test -s conftest.dir/conftest.one &&
4738 test -s conftest.dir/conftest.two
4739 then
4740 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4741 break 3
4745 done
4746 done
4748 esac
4750 done
4751 IFS=$as_save_IFS
4753 rm -rf conftest.one conftest.two conftest.dir
4756 if test "${ac_cv_path_install+set}" = set; then
4757 INSTALL=$ac_cv_path_install
4758 else
4759 # As a last resort, use the slow shell script. Don't cache a
4760 # value for INSTALL within a source directory, because that will
4761 # break other packages using the cache if that directory is
4762 # removed, or if the value is a relative name.
4763 INSTALL=$ac_install_sh
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4767 $as_echo "$INSTALL" >&6; }
4769 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4770 # It thinks the first close brace ends the variable substitution.
4771 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4773 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4775 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4777 case "$INSTALL" in
4778 [\\/$]* | ?:[\\/]* ) ;;
4779 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4780 esac
4782 for ac_prog in lclint lint
4784 # Extract the first word of "$ac_prog", so it can be a program name with args.
4785 set dummy $ac_prog; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if ${ac_cv_prog_LINT+:} false; then :
4789 $as_echo_n "(cached) " >&6
4790 else
4791 if test -n "$LINT"; then
4792 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_LINT="$ac_prog"
4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 break 2
4805 done
4806 done
4807 IFS=$as_save_IFS
4811 LINT=$ac_cv_prog_LINT
4812 if test -n "$LINT"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4814 $as_echo "$LINT" >&6; }
4815 else
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4821 test -n "$LINT" && break
4822 done
4824 if test "$LINT" = "lint"
4825 then
4826 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4830 for ac_prog in fontforge
4832 # Extract the first word of "$ac_prog", so it can be a program name with args.
4833 set dummy $ac_prog; ac_word=$2
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if ${ac_cv_prog_FONTFORGE+:} false; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 if test -n "$FONTFORGE"; then
4840 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_FONTFORGE="$ac_prog"
4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4853 done
4854 done
4855 IFS=$as_save_IFS
4859 FONTFORGE=$ac_cv_prog_FONTFORGE
4860 if test -n "$FONTFORGE"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4862 $as_echo "$FONTFORGE" >&6; }
4863 else
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4869 test -n "$FONTFORGE" && break
4870 done
4871 test -n "$FONTFORGE" || FONTFORGE="false"
4873 for ac_prog in pkg-config
4875 # Extract the first word of "$ac_prog", so it can be a program name with args.
4876 set dummy $ac_prog; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 if test -n "$PKG_CONFIG"; then
4883 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892 ac_cv_prog_PKG_CONFIG="$ac_prog"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4896 done
4897 done
4898 IFS=$as_save_IFS
4902 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4903 if test -n "$PKG_CONFIG"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4905 $as_echo "$PKG_CONFIG" >&6; }
4906 else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4912 test -n "$PKG_CONFIG" && break
4913 done
4914 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4916 for ac_prog in rsvg
4918 # Extract the first word of "$ac_prog", so it can be a program name with args.
4919 set dummy $ac_prog; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if ${ac_cv_prog_RSVG+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$RSVG"; then
4926 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_prog_RSVG="$ac_prog"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4939 done
4940 done
4941 IFS=$as_save_IFS
4945 RSVG=$ac_cv_prog_RSVG
4946 if test -n "$RSVG"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4948 $as_echo "$RSVG" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4955 test -n "$RSVG" && break
4956 done
4957 test -n "$RSVG" || RSVG="false"
4959 for ac_prog in convert
4961 # Extract the first word of "$ac_prog", so it can be a program name with args.
4962 set dummy $ac_prog; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_CONVERT+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 if test -n "$CONVERT"; then
4969 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4978 ac_cv_prog_CONVERT="$ac_prog"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 break 2
4982 done
4983 done
4984 IFS=$as_save_IFS
4988 CONVERT=$ac_cv_prog_CONVERT
4989 if test -n "$CONVERT"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4991 $as_echo "$CONVERT" >&6; }
4992 else
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4998 test -n "$CONVERT" && break
4999 done
5000 test -n "$CONVERT" || CONVERT="false"
5002 for ac_prog in icotool
5004 # Extract the first word of "$ac_prog", so it can be a program name with args.
5005 set dummy $ac_prog; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_ICOTOOL+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 if test -n "$ICOTOOL"; then
5012 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_prog_ICOTOOL="$ac_prog"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5025 done
5026 done
5027 IFS=$as_save_IFS
5031 ICOTOOL=$ac_cv_prog_ICOTOOL
5032 if test -n "$ICOTOOL"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5034 $as_echo "$ICOTOOL" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5041 test -n "$ICOTOOL" && break
5042 done
5043 test -n "$ICOTOOL" || ICOTOOL="false"
5045 for ac_prog in msgfmt
5047 # Extract the first word of "$ac_prog", so it can be a program name with args.
5048 set dummy $ac_prog; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if ${ac_cv_prog_MSGFMT+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 if test -n "$MSGFMT"; then
5055 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_prog_MSGFMT="$ac_prog"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5068 done
5069 done
5070 IFS=$as_save_IFS
5074 MSGFMT=$ac_cv_prog_MSGFMT
5075 if test -n "$MSGFMT"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5077 $as_echo "$MSGFMT" >&6; }
5078 else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5084 test -n "$MSGFMT" && break
5085 done
5086 test -n "$MSGFMT" || MSGFMT="false"
5089 if test "x$enable_maintainer_mode" != "xyes"
5090 then
5091 MAINTAINER_MODE=\#
5093 else
5094 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5095 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5097 if test "$CONVERT" = false
5098 then
5099 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5100 else
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5102 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5103 convert_version=`convert --version | head -n1`
5104 if test "x$convert_version" != "x"
5105 then
5106 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5107 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5108 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5109 then
5110 CONVERT=false
5113 if test "$CONVERT" = false
5114 then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5116 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5117 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5118 else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5120 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5124 if test "$ICOTOOL" = false
5125 then
5126 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5129 $as_echo_n "checking for recent enough icotool... " >&6; }
5130 icotool_version=`icotool --version | head -n1`
5131 if test "x$icotool_version" != "x"
5132 then
5133 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5134 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5135 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5136 then
5137 ICOTOOL=false
5138 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5141 if test "$ICOTOOL" = false
5142 then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5144 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5145 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5146 else
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5148 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5152 with_gettext=yes
5153 with_gettextpo=yes
5154 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5157 test "x$with_gettext" != xno || MSGFMT=false
5158 if test "$MSGFMT" = false; then :
5159 case "x$with_gettext" in
5160 x) as_fn_append wine_warnings "|gettext tools not found, translations won't be built." ;;
5161 xno) ;;
5162 *) as_fn_error $? "gettext tools not found, translations won't be built.
5163 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5164 esac
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5169 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5170 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 ac_check_lib_save_LIBS=$LIBS
5174 LIBS="-li386 $LIBS"
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5178 /* Override any GCC internal prototype to avoid an error.
5179 Use char because int might match the return type of a GCC
5180 builtin and then its argument prototype would still apply. */
5181 #ifdef __cplusplus
5182 extern "C"
5183 #endif
5184 char i386_set_ldt ();
5186 main ()
5188 return i386_set_ldt ();
5190 return 0;
5192 _ACEOF
5193 if ac_fn_c_try_link "$LINENO"; then :
5194 ac_cv_lib_i386_i386_set_ldt=yes
5195 else
5196 ac_cv_lib_i386_i386_set_ldt=no
5198 rm -f core conftest.err conftest.$ac_objext \
5199 conftest$ac_exeext conftest.$ac_ext
5200 LIBS=$ac_check_lib_save_LIBS
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5203 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5204 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5205 cat >>confdefs.h <<_ACEOF
5206 #define HAVE_LIBI386 1
5207 _ACEOF
5209 LIBS="-li386 $LIBS"
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5214 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5215 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5218 ac_check_lib_save_LIBS=$LIBS
5219 LIBS="-lossaudio $LIBS"
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5223 /* Override any GCC internal prototype to avoid an error.
5224 Use char because int might match the return type of a GCC
5225 builtin and then its argument prototype would still apply. */
5226 #ifdef __cplusplus
5227 extern "C"
5228 #endif
5229 char _oss_ioctl ();
5231 main ()
5233 return _oss_ioctl ();
5235 return 0;
5237 _ACEOF
5238 if ac_fn_c_try_link "$LINENO"; then :
5239 ac_cv_lib_ossaudio__oss_ioctl=yes
5240 else
5241 ac_cv_lib_ossaudio__oss_ioctl=no
5243 rm -f core conftest.err conftest.$ac_objext \
5244 conftest$ac_exeext conftest.$ac_ext
5245 LIBS=$ac_check_lib_save_LIBS
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5248 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5249 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5250 cat >>confdefs.h <<_ACEOF
5251 #define HAVE_LIBOSSAUDIO 1
5252 _ACEOF
5254 LIBS="-lossaudio $LIBS"
5259 XLIB=""
5261 OPENGL_LIBS=""
5265 # Check whether --enable-largefile was given.
5266 if test "${enable_largefile+set}" = set; then :
5267 enableval=$enable_largefile;
5270 if test "$enable_largefile" != no; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5273 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5274 if ${ac_cv_sys_largefile_CC+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 ac_cv_sys_largefile_CC=no
5278 if test "$GCC" != yes; then
5279 ac_save_CC=$CC
5280 while :; do
5281 # IRIX 6.2 and later do not support large files by default,
5282 # so use the C compiler's -n32 option if that helps.
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 #include <sys/types.h>
5286 /* Check that off_t can represent 2**63 - 1 correctly.
5287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5288 since some C++ compilers masquerading as C compilers
5289 incorrectly reject 9223372036854775807. */
5290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5292 && LARGE_OFF_T % 2147483647 == 1)
5293 ? 1 : -1];
5295 main ()
5299 return 0;
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303 break
5305 rm -f core conftest.err conftest.$ac_objext
5306 CC="$CC -n32"
5307 if ac_fn_c_try_compile "$LINENO"; then :
5308 ac_cv_sys_largefile_CC=' -n32'; break
5310 rm -f core conftest.err conftest.$ac_objext
5311 break
5312 done
5313 CC=$ac_save_CC
5314 rm -f conftest.$ac_ext
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5318 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5319 if test "$ac_cv_sys_largefile_CC" != no; then
5320 CC=$CC$ac_cv_sys_largefile_CC
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5324 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5325 if ${ac_cv_sys_file_offset_bits+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 while :; do
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331 #include <sys/types.h>
5332 /* Check that off_t can represent 2**63 - 1 correctly.
5333 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5334 since some C++ compilers masquerading as C compilers
5335 incorrectly reject 9223372036854775807. */
5336 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5337 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5338 && LARGE_OFF_T % 2147483647 == 1)
5339 ? 1 : -1];
5341 main ()
5345 return 0;
5347 _ACEOF
5348 if ac_fn_c_try_compile "$LINENO"; then :
5349 ac_cv_sys_file_offset_bits=no; break
5351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #define _FILE_OFFSET_BITS 64
5355 #include <sys/types.h>
5356 /* Check that off_t can represent 2**63 - 1 correctly.
5357 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5358 since some C++ compilers masquerading as C compilers
5359 incorrectly reject 9223372036854775807. */
5360 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5361 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5362 && LARGE_OFF_T % 2147483647 == 1)
5363 ? 1 : -1];
5365 main ()
5369 return 0;
5371 _ACEOF
5372 if ac_fn_c_try_compile "$LINENO"; then :
5373 ac_cv_sys_file_offset_bits=64; break
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376 ac_cv_sys_file_offset_bits=unknown
5377 break
5378 done
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5381 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5382 case $ac_cv_sys_file_offset_bits in #(
5383 no | unknown) ;;
5385 cat >>confdefs.h <<_ACEOF
5386 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5387 _ACEOF
5389 esac
5390 rm -rf conftest*
5391 if test $ac_cv_sys_file_offset_bits = unknown; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5393 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5394 if ${ac_cv_sys_large_files+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 while :; do
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
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_large_files=no; break
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423 #define _LARGE_FILES 1
5424 #include <sys/types.h>
5425 /* Check that off_t can represent 2**63 - 1 correctly.
5426 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5427 since some C++ compilers masquerading as C compilers
5428 incorrectly reject 9223372036854775807. */
5429 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5430 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5431 && LARGE_OFF_T % 2147483647 == 1)
5432 ? 1 : -1];
5434 main ()
5438 return 0;
5440 _ACEOF
5441 if ac_fn_c_try_compile "$LINENO"; then :
5442 ac_cv_sys_large_files=1; break
5444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 ac_cv_sys_large_files=unknown
5446 break
5447 done
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5450 $as_echo "$ac_cv_sys_large_files" >&6; }
5451 case $ac_cv_sys_large_files in #(
5452 no | unknown) ;;
5454 cat >>confdefs.h <<_ACEOF
5455 #define _LARGE_FILES $ac_cv_sys_large_files
5456 _ACEOF
5458 esac
5459 rm -rf conftest*
5464 ac_ext=c
5465 ac_cpp='$CPP $CPPFLAGS'
5466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5470 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5471 # On Suns, sometimes $CPP names a directory.
5472 if test -n "$CPP" && test -d "$CPP"; then
5473 CPP=
5475 if test -z "$CPP"; then
5476 if ${ac_cv_prog_CPP+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 # Double quotes because CPP needs to be expanded
5480 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5482 ac_preproc_ok=false
5483 for ac_c_preproc_warn_flag in '' yes
5485 # Use a header file that comes with gcc, so configuring glibc
5486 # with a fresh cross-compiler works.
5487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5488 # <limits.h> exists even on freestanding compilers.
5489 # On the NeXT, cc -E runs the code through the compiler's parser,
5490 # not just through cpp. "Syntax error" is here to catch this case.
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5493 #ifdef __STDC__
5494 # include <limits.h>
5495 #else
5496 # include <assert.h>
5497 #endif
5498 Syntax error
5499 _ACEOF
5500 if ac_fn_c_try_cpp "$LINENO"; then :
5502 else
5503 # Broken: fails on valid input.
5504 continue
5506 rm -f conftest.err conftest.i conftest.$ac_ext
5508 # OK, works on sane cases. Now check whether nonexistent headers
5509 # can be detected and how.
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 #include <ac_nonexistent.h>
5513 _ACEOF
5514 if ac_fn_c_try_cpp "$LINENO"; then :
5515 # Broken: success on invalid input.
5516 continue
5517 else
5518 # Passes both tests.
5519 ac_preproc_ok=:
5520 break
5522 rm -f conftest.err conftest.i conftest.$ac_ext
5524 done
5525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5526 rm -f conftest.i conftest.err conftest.$ac_ext
5527 if $ac_preproc_ok; then :
5528 break
5531 done
5532 ac_cv_prog_CPP=$CPP
5535 CPP=$ac_cv_prog_CPP
5536 else
5537 ac_cv_prog_CPP=$CPP
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5540 $as_echo "$CPP" >&6; }
5541 ac_preproc_ok=false
5542 for ac_c_preproc_warn_flag in '' yes
5544 # Use a header file that comes with gcc, so configuring glibc
5545 # with a fresh cross-compiler works.
5546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5547 # <limits.h> exists even on freestanding compilers.
5548 # On the NeXT, cc -E runs the code through the compiler's parser,
5549 # not just through cpp. "Syntax error" is here to catch this case.
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #ifdef __STDC__
5553 # include <limits.h>
5554 #else
5555 # include <assert.h>
5556 #endif
5557 Syntax error
5558 _ACEOF
5559 if ac_fn_c_try_cpp "$LINENO"; then :
5561 else
5562 # Broken: fails on valid input.
5563 continue
5565 rm -f conftest.err conftest.i conftest.$ac_ext
5567 # OK, works on sane cases. Now check whether nonexistent headers
5568 # can be detected and how.
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 #include <ac_nonexistent.h>
5572 _ACEOF
5573 if ac_fn_c_try_cpp "$LINENO"; then :
5574 # Broken: success on invalid input.
5575 continue
5576 else
5577 # Passes both tests.
5578 ac_preproc_ok=:
5579 break
5581 rm -f conftest.err conftest.i conftest.$ac_ext
5583 done
5584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5585 rm -f conftest.i conftest.err conftest.$ac_ext
5586 if $ac_preproc_ok; then :
5588 else
5589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5591 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5592 See \`config.log' for more details" "$LINENO" 5; }
5595 ac_ext=c
5596 ac_cpp='$CPP $CPPFLAGS'
5597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5603 $as_echo_n "checking for ANSI C header files... " >&6; }
5604 if ${ac_cv_header_stdc+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #include <stdlib.h>
5610 #include <stdarg.h>
5611 #include <string.h>
5612 #include <float.h>
5615 main ()
5619 return 0;
5621 _ACEOF
5622 if ac_fn_c_try_compile "$LINENO"; then :
5623 ac_cv_header_stdc=yes
5624 else
5625 ac_cv_header_stdc=no
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 if test $ac_cv_header_stdc = yes; then
5630 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 #include <string.h>
5635 _ACEOF
5636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5637 $EGREP "memchr" >/dev/null 2>&1; then :
5639 else
5640 ac_cv_header_stdc=no
5642 rm -f conftest*
5646 if test $ac_cv_header_stdc = yes; then
5647 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5650 #include <stdlib.h>
5652 _ACEOF
5653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5654 $EGREP "free" >/dev/null 2>&1; then :
5656 else
5657 ac_cv_header_stdc=no
5659 rm -f conftest*
5663 if test $ac_cv_header_stdc = yes; then
5664 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5665 if test "$cross_compiling" = yes; then :
5667 else
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5670 #include <ctype.h>
5671 #include <stdlib.h>
5672 #if ((' ' & 0x0FF) == 0x020)
5673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5675 #else
5676 # define ISLOWER(c) \
5677 (('a' <= (c) && (c) <= 'i') \
5678 || ('j' <= (c) && (c) <= 'r') \
5679 || ('s' <= (c) && (c) <= 'z'))
5680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5681 #endif
5683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5685 main ()
5687 int i;
5688 for (i = 0; i < 256; i++)
5689 if (XOR (islower (i), ISLOWER (i))
5690 || toupper (i) != TOUPPER (i))
5691 return 2;
5692 return 0;
5694 _ACEOF
5695 if ac_fn_c_try_run "$LINENO"; then :
5697 else
5698 ac_cv_header_stdc=no
5700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5701 conftest.$ac_objext conftest.beam conftest.$ac_ext
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5707 $as_echo "$ac_cv_header_stdc" >&6; }
5708 if test $ac_cv_header_stdc = yes; then
5710 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5714 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5715 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5716 inttypes.h stdint.h unistd.h
5717 do :
5718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5719 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5721 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5722 cat >>confdefs.h <<_ACEOF
5723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5724 _ACEOF
5728 done
5731 for ac_header in \
5732 AL/al.h \
5733 ApplicationServices/ApplicationServices.h \
5734 AudioToolbox/AudioConverter.h \
5735 AudioUnit/AudioUnit.h \
5736 AudioUnit/AudioComponent.h \
5737 CL/cl.h \
5738 Carbon/Carbon.h \
5739 CoreAudio/CoreAudio.h \
5740 DiskArbitration/DiskArbitration.h \
5741 IOKit/IOKitLib.h \
5742 IOKit/hid/IOHIDLib.h \
5743 OpenAL/al.h \
5744 OpenCL/opencl.h \
5745 QuickTime/ImageCompression.h \
5746 Security/Security.h \
5747 alias.h \
5748 alsa/asoundlib.h \
5749 arpa/inet.h \
5750 arpa/nameser.h \
5751 asm/types.h \
5752 capi20.h \
5753 curses.h \
5754 direct.h \
5755 dirent.h \
5756 dlfcn.h \
5757 elf.h \
5758 float.h \
5759 fnmatch.h \
5760 fontconfig/fontconfig.h \
5761 getopt.h \
5762 gettext-po.h \
5763 grp.h \
5764 gsm.h \
5765 gsm/gsm.h \
5766 ieeefp.h \
5767 inet/mib2.h \
5768 io.h \
5769 jpeglib.h \
5770 kstat.h \
5771 lber.h \
5772 lcms.h \
5773 lcms/lcms.h \
5774 ldap.h \
5775 link.h \
5776 linux/cdrom.h \
5777 linux/compiler.h \
5778 linux/hdreg.h \
5779 linux/input.h \
5780 linux/ioctl.h \
5781 linux/joystick.h \
5782 linux/major.h \
5783 linux/param.h \
5784 linux/serial.h \
5785 linux/types.h \
5786 linux/ucdrom.h \
5787 mach-o/nlist.h \
5788 mach-o/loader.h \
5789 mach/mach.h \
5790 mach/machine.h \
5791 machine/cpu.h \
5792 machine/limits.h \
5793 machine/sysarch.h \
5794 mntent.h \
5795 mpg123.h \
5796 ncurses.h \
5797 netdb.h \
5798 netinet/in.h \
5799 netinet/in_systm.h \
5800 netinet/tcp.h \
5801 netinet/tcp_fsm.h \
5802 openssl/err.h \
5803 openssl/ssl.h \
5804 png.h \
5805 poll.h \
5806 port.h \
5807 process.h \
5808 pthread.h \
5809 pwd.h \
5810 regex.h \
5811 sched.h \
5812 scsi/scsi.h \
5813 scsi/scsi_ioctl.h \
5814 scsi/sg.h \
5815 stdbool.h \
5816 stdint.h \
5817 strings.h \
5818 stropts.h \
5819 sys/asoundlib.h \
5820 sys/attr.h \
5821 sys/cdio.h \
5822 sys/elf32.h \
5823 sys/epoll.h \
5824 sys/errno.h \
5825 sys/event.h \
5826 sys/exec_elf.h \
5827 sys/filio.h \
5828 sys/inotify.h \
5829 sys/ioctl.h \
5830 sys/ipc.h \
5831 sys/limits.h \
5832 sys/link.h \
5833 sys/mman.h \
5834 sys/modem.h \
5835 sys/msg.h \
5836 sys/mtio.h \
5837 sys/param.h \
5838 sys/poll.h \
5839 sys/prctl.h \
5840 sys/protosw.h \
5841 sys/ptrace.h \
5842 sys/resource.h \
5843 sys/scsiio.h \
5844 sys/shm.h \
5845 sys/signal.h \
5846 sys/socket.h \
5847 sys/socketvar.h \
5848 sys/sockio.h \
5849 sys/statvfs.h \
5850 sys/strtio.h \
5851 sys/syscall.h \
5852 sys/tihdr.h \
5853 sys/time.h \
5854 sys/timeout.h \
5855 sys/times.h \
5856 sys/uio.h \
5857 sys/un.h \
5858 sys/utsname.h \
5859 sys/vm86.h \
5860 sys/wait.h \
5861 syscall.h \
5862 termios.h \
5863 tiffio.h \
5864 unistd.h \
5865 utime.h \
5866 valgrind/memcheck.h \
5867 valgrind/valgrind.h \
5868 zlib.h
5870 do :
5871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5872 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5873 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5874 cat >>confdefs.h <<_ACEOF
5875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5876 _ACEOF
5880 done
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5883 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5884 if ${ac_cv_header_stat_broken+:} false; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889 #include <sys/types.h>
5890 #include <sys/stat.h>
5892 #if defined S_ISBLK && defined S_IFDIR
5893 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5894 #endif
5896 #if defined S_ISBLK && defined S_IFCHR
5897 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5898 #endif
5900 #if defined S_ISLNK && defined S_IFREG
5901 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5902 #endif
5904 #if defined S_ISSOCK && defined S_IFREG
5905 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5906 #endif
5908 _ACEOF
5909 if ac_fn_c_try_compile "$LINENO"; then :
5910 ac_cv_header_stat_broken=no
5911 else
5912 ac_cv_header_stat_broken=yes
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5917 $as_echo "$ac_cv_header_stat_broken" >&6; }
5918 if test $ac_cv_header_stat_broken = yes; then
5920 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5926 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5927 do :
5928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5929 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5930 #ifdef HAVE_SYS_PARAM_H
5931 # include <sys/param.h>
5932 #endif
5934 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5935 cat >>confdefs.h <<_ACEOF
5936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5937 _ACEOF
5941 done
5944 for ac_header in \
5945 netinet/ip.h \
5946 net/if.h \
5947 net/if_arp.h \
5948 net/if_dl.h \
5949 net/if_types.h \
5950 net/route.h \
5951 netinet/if_ether.h \
5952 netinet/if_inarp.h \
5953 netinet/in_pcb.h \
5954 netinet/ip_icmp.h \
5955 netinet/ip_var.h \
5956 netinet/udp.h \
5957 netipx/ipx.h \
5959 do :
5960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5961 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5962 #ifdef HAVE_SYS_SOCKET_H
5963 # include <sys/socket.h>
5964 #endif
5965 #ifdef HAVE_SYS_SOCKETVAR_H
5966 # include <sys/socketvar.h>
5967 #endif
5968 #ifdef HAVE_NET_ROUTE_H
5969 # include <net/route.h>
5970 #endif
5971 #ifdef HAVE_NETINET_IN_H
5972 # include <netinet/in.h>
5973 #endif
5974 #ifdef HAVE_NETINET_IN_SYSTM_H
5975 # include <netinet/in_systm.h>
5976 #endif
5977 #ifdef HAVE_NET_IF_H
5978 # include <net/if.h>
5979 #endif
5980 #ifdef HAVE_NETINET_IP_H
5981 # include <netinet/ip.h>
5982 #endif
5984 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5985 cat >>confdefs.h <<_ACEOF
5986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5987 _ACEOF
5991 done
5994 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5995 do :
5996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5997 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5998 #ifdef HAVE_ALIAS_H
5999 # include <alias.h>
6000 #endif
6001 #ifdef HAVE_SYS_SOCKET_H
6002 # include <sys/socket.h>
6003 #endif
6004 #ifdef HAVE_SYS_SOCKETVAR_H
6005 # include <sys/socketvar.h>
6006 #endif
6007 #ifdef HAVE_SYS_TIMEOUT_H
6008 # include <sys/timeout.h>
6009 #endif
6010 #ifdef HAVE_NETINET_IN_H
6011 # include <netinet/in.h>
6012 #endif
6013 #ifdef HAVE_NETINET_IN_SYSTM_H
6014 # include <netinet/in_systm.h>
6015 #endif
6016 #ifdef HAVE_NETINET_IP_H
6017 # include <netinet/ip.h>
6018 #endif
6019 #ifdef HAVE_NETINET_IP_VAR_H
6020 # include <netinet/ip_var.h>
6021 #endif
6022 #ifdef HAVE_NETINET_IP_ICMP_H
6023 # include <netinet/ip_icmp.h>
6024 #endif
6025 #ifdef HAVE_NETINET_UDP_H
6026 # include <netinet/udp.h>
6027 #endif
6028 #ifdef HAVE_NETINET_TCP_H
6029 # include <netinet/tcp.h>
6030 #endif
6031 #ifdef HAVE_NETINET_TCP_TIMER_H
6032 #include <netinet/tcp_timer.h>
6033 #endif
6035 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6036 cat >>confdefs.h <<_ACEOF
6037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6038 _ACEOF
6042 done
6045 for ac_header in linux/ipx.h linux/irda.h
6046 do :
6047 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6048 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6049 #ifdef HAVE_ASM_TYPES_H
6050 # include <asm/types.h>
6051 #endif
6052 #ifdef HAVE_SYS_SOCKET_H
6053 # include <sys/socket.h>
6054 #endif
6055 #ifdef HAVE_LINUX_TYPES_H
6056 # include <linux/types.h>
6057 #endif
6059 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6060 cat >>confdefs.h <<_ACEOF
6061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6062 _ACEOF
6066 done
6069 for ac_header in mach-o/dyld_images.h
6070 do :
6071 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6072 # include <stdbool.h>
6073 #endif
6074 #ifdef HAVE_STDINT_H
6075 # include <stdint.h>
6076 #endif
6078 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6079 cat >>confdefs.h <<_ACEOF
6080 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6081 _ACEOF
6085 done
6088 for ac_header in resolv.h
6089 do :
6090 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6091 #ifdef HAVE_SYS_SOCKET_H
6092 # include <sys/socket.h>
6093 #endif
6094 #ifdef HAVE_NETINET_IN_H
6095 # include <netinet/in.h>
6096 #endif
6097 #ifdef HAVE_ARPA_NAMESER_H
6098 # include <arpa/nameser.h>
6099 #endif
6101 if test "x$ac_cv_header_resolv_h" = xyes; then :
6102 cat >>confdefs.h <<_ACEOF
6103 #define HAVE_RESOLV_H 1
6104 _ACEOF
6108 done
6111 for ac_header in ifaddrs.h
6112 do :
6113 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6115 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6116 cat >>confdefs.h <<_ACEOF
6117 #define HAVE_IFADDRS_H 1
6118 _ACEOF
6122 done
6125 for ac_header in ucontext.h
6126 do :
6127 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6129 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6130 cat >>confdefs.h <<_ACEOF
6131 #define HAVE_UCONTEXT_H 1
6132 _ACEOF
6136 done
6139 for ac_header in sys/thr.h
6140 do :
6141 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6142 #ifdef HAVE_UCONTEXT_H
6143 #include <ucontext.h>
6144 #endif
6146 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6147 cat >>confdefs.h <<_ACEOF
6148 #define HAVE_SYS_THR_H 1
6149 _ACEOF
6153 done
6156 for ac_header in pthread_np.h
6157 do :
6158 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6159 #include <pthread.h>
6160 #endif
6162 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6163 cat >>confdefs.h <<_ACEOF
6164 #define HAVE_PTHREAD_NP_H 1
6165 _ACEOF
6169 done
6172 for ac_header in linux/videodev.h linux/videodev2.h
6173 do :
6174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6175 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6176 #include <sys/time.h>
6177 #endif
6178 #include <sys/types.h>
6179 #ifdef HAVE_ASM_TYPES_H
6180 #include <asm/types.h>
6181 #endif
6183 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6184 cat >>confdefs.h <<_ACEOF
6185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6186 _ACEOF
6190 done
6193 for ac_header in linux/capi.h
6194 do :
6195 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6197 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6198 cat >>confdefs.h <<_ACEOF
6199 #define HAVE_LINUX_CAPI_H 1
6200 _ACEOF
6204 done
6208 DLLEXT=""
6210 DLLFLAGS="-D_REENTRANT"
6212 LDSHARED=""
6214 LDDLLFLAGS=""
6216 LIBEXT="so"
6218 IMPLIBEXT="def"
6220 LDRPATH_INSTALL=""
6222 LDRPATH_LOCAL=""
6224 STATIC_IMPLIBEXT="def.a"
6225 # Extract the first word of "ldd", so it can be a program name with args.
6226 set dummy ldd; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if ${ac_cv_path_LDD+:} false; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 case $LDD in
6233 [\\/]* | ?:[\\/]*)
6234 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 as_dummy="/sbin:/usr/sbin:$PATH"
6239 for as_dir in $as_dummy
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6249 done
6250 done
6251 IFS=$as_save_IFS
6253 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6255 esac
6257 LDD=$ac_cv_path_LDD
6258 if test -n "$LDD"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6260 $as_echo "$LDD" >&6; }
6261 else
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6268 case $host_os in
6269 cygwin*|mingw32*)
6270 if test -n "$ac_tool_prefix"; then
6271 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6272 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274 $as_echo_n "checking for $ac_word... " >&6; }
6275 if ${ac_cv_prog_DLLTOOL+:} false; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 if test -n "$DLLTOOL"; then
6279 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6292 done
6293 done
6294 IFS=$as_save_IFS
6298 DLLTOOL=$ac_cv_prog_DLLTOOL
6299 if test -n "$DLLTOOL"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6301 $as_echo "$DLLTOOL" >&6; }
6302 else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6309 if test -z "$ac_cv_prog_DLLTOOL"; then
6310 ac_ct_DLLTOOL=$DLLTOOL
6311 # Extract the first word of "dlltool", so it can be a program name with args.
6312 set dummy dlltool; ac_word=$2
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314 $as_echo_n "checking for $ac_word... " >&6; }
6315 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318 if test -n "$ac_ct_DLLTOOL"; then
6319 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6320 else
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6332 done
6333 done
6334 IFS=$as_save_IFS
6338 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6339 if test -n "$ac_ct_DLLTOOL"; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6341 $as_echo "$ac_ct_DLLTOOL" >&6; }
6342 else
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6347 if test "x$ac_ct_DLLTOOL" = x; then
6348 DLLTOOL="false"
6349 else
6350 case $cross_compiling:$ac_tool_warned in
6351 yes:)
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6354 ac_tool_warned=yes ;;
6355 esac
6356 DLLTOOL=$ac_ct_DLLTOOL
6358 else
6359 DLLTOOL="$ac_cv_prog_DLLTOOL"
6362 if test -n "$ac_tool_prefix"; then
6363 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6364 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366 $as_echo_n "checking for $ac_word... " >&6; }
6367 if ${ac_cv_prog_DLLWRAP+:} false; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 if test -n "$DLLWRAP"; then
6371 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6372 else
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 break 2
6384 done
6385 done
6386 IFS=$as_save_IFS
6390 DLLWRAP=$ac_cv_prog_DLLWRAP
6391 if test -n "$DLLWRAP"; then
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6393 $as_echo "$DLLWRAP" >&6; }
6394 else
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396 $as_echo "no" >&6; }
6401 if test -z "$ac_cv_prog_DLLWRAP"; then
6402 ac_ct_DLLWRAP=$DLLWRAP
6403 # Extract the first word of "dllwrap", so it can be a program name with args.
6404 set dummy dllwrap; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6408 $as_echo_n "(cached) " >&6
6409 else
6410 if test -n "$ac_ct_DLLWRAP"; then
6411 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 break 2
6424 done
6425 done
6426 IFS=$as_save_IFS
6430 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6431 if test -n "$ac_ct_DLLWRAP"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6433 $as_echo "$ac_ct_DLLWRAP" >&6; }
6434 else
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6439 if test "x$ac_ct_DLLWRAP" = x; then
6440 DLLWRAP="false"
6441 else
6442 case $cross_compiling:$ac_tool_warned in
6443 yes:)
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6446 ac_tool_warned=yes ;;
6447 esac
6448 DLLWRAP=$ac_ct_DLLWRAP
6450 else
6451 DLLWRAP="$ac_cv_prog_DLLWRAP"
6454 if test "$DLLWRAP" = "false"; then
6455 LIBEXT="a"
6456 else
6457 LIBEXT="dll"
6459 IMPLIBEXT="a"
6460 STATIC_IMPLIBEXT="a"
6461 enable_iphlpapi=${enable_iphlpapi:-no}
6462 enable_kernel32=${enable_kernel32:-no}
6463 enable_msvcrt=${enable_msvcrt:-no}
6464 enable_ntdll=${enable_ntdll:-no}
6465 enable_ws2_32=${enable_ws2_32:-no}
6466 enable_loader=${enable_loader:-no}
6467 enable_server=${enable_server:-no}
6468 with_x=${with_x:-no}
6469 with_pthread=${with_pthread:-no}
6471 darwin*|macosx*)
6472 DLLEXT=".so"
6473 LIBEXT="dylib"
6474 DLLFLAGS="$DLLFLAGS -fPIC"
6475 LDDLLFLAGS="-bundle -multiply_defined suppress"
6476 LIBWINE_LDFLAGS="-multiply_defined suppress"
6477 LDSHARED="\$(CC) -dynamiclib"
6478 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6479 COREFOUNDATIONLIB="-framework CoreFoundation"
6481 IOKITLIB="-framework IOKit -framework CoreFoundation"
6483 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6485 case $host_os in
6486 darwin11*)
6487 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6490 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6492 esac
6493 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6494 then
6495 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6498 if test "$ac_cv_header_Security_Security_h" = "yes"
6499 then
6500 SECURITYLIB="-framework Security -framework CoreFoundation"
6502 ac_save_LIBS="$LIBS"
6503 LIBS="$LIBS $SECURITYLIB"
6504 for ac_func in SSLCopyPeerCertificates
6505 do :
6506 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6507 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6508 cat >>confdefs.h <<_ACEOF
6509 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6510 _ACEOF
6513 done
6515 LIBS="$ac_save_LIBS"
6516 with_gnutls=${with_gnutls:-no}
6518 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6519 then
6520 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6521 then
6522 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6524 else
6525 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6528 ac_save_LIBS="$LIBS"
6529 LIBS="$LIBS $COREAUDIO"
6530 for ac_func in AUGraphAddNode
6531 do :
6532 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6533 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6534 cat >>confdefs.h <<_ACEOF
6535 #define HAVE_AUGRAPHADDNODE 1
6536 _ACEOF
6539 done
6541 LIBS="$ac_save_LIBS"
6543 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6544 then
6545 FRAMEWORK_OPENAL="-framework OpenAL"
6548 cat >>confdefs.h <<_ACEOF
6549 #define HAVE_OPENAL 1
6550 _ACEOF
6552 ac_cv_lib_openal=yes
6554 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6555 then
6556 LIBOPENCL="-framework OpenCL"
6558 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6560 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6561 then
6562 ac_save_LIBS="$LIBS"
6563 LIBS="$LIBS $IOKITLIB"
6564 for ac_func in IOHIDManagerCreate
6565 do :
6566 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6567 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6568 cat >>confdefs.h <<_ACEOF
6569 #define HAVE_IOHIDMANAGERCREATE 1
6570 _ACEOF
6573 done
6575 LIBS="$ac_save_LIBS"
6577 case $host_cpu in
6578 *powerpc*)
6579 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6580 esac
6581 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6582 then
6583 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6585 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6586 else
6587 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6589 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6590 then
6591 CARBONLIB="-framework Carbon"
6593 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6595 if test "x$enable_win16" = "xyes"
6596 then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6598 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6599 if test "$cross_compiling" = yes; then :
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6601 $as_echo "cross-compiling, assuming yes" >&6; }
6602 else
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6605 asm(".text\n"
6606 "bad:\tnop;nop\n"
6607 "good:\tnop;nop\n\t"
6608 ".globl _testfunc\n"
6609 "_testfunc:\tcallw good");
6610 extern void testfunc();
6612 main ()
6614 unsigned short *p = (unsigned short *)testfunc;
6615 return p[0] != 0xe866 || p[1] != 0xfffa
6617 return 0;
6619 _ACEOF
6620 if ac_fn_c_try_run "$LINENO"; then :
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6622 $as_echo "yes" >&6; }
6623 else
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625 $as_echo "no" >&6; }
6626 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
6628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6629 conftest.$ac_objext conftest.beam conftest.$ac_ext
6635 DLLFLAGS="$DLLFLAGS -fPIC"
6636 DLLEXT=".so"
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6638 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6639 if ${ac_cv_c_dll_gnuelf+:} false; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6642 ac_wine_try_cflags_saved=$CFLAGS
6643 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6646 void myfunc() {}
6647 _ACEOF
6648 if ac_fn_c_try_link "$LINENO"; then :
6649 ac_cv_c_dll_gnuelf="yes"
6650 else
6651 ac_cv_c_dll_gnuelf="no"
6653 rm -f core conftest.err conftest.$ac_objext \
6654 conftest$ac_exeext conftest.$ac_ext
6655 CFLAGS=$ac_wine_try_cflags_saved
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6658 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6659 if test "$ac_cv_c_dll_gnuelf" = "yes"
6660 then
6661 LDSHARED="\$(CC) -shared"
6662 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6664 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6665 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668 ac_wine_try_cflags_saved=$CFLAGS
6669 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672 int main(int argc, char **argv) { return 0; }
6673 _ACEOF
6674 if ac_fn_c_try_link "$LINENO"; then :
6675 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6676 else
6677 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6679 rm -f core conftest.err conftest.$ac_objext \
6680 conftest$ac_exeext conftest.$ac_ext
6681 CFLAGS=$ac_wine_try_cflags_saved
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6684 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6685 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6686 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6689 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6690 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 ac_wine_try_cflags_saved=$CFLAGS
6694 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 int main(int argc, char **argv) { return 0; }
6698 _ACEOF
6699 if ac_fn_c_try_link "$LINENO"; then :
6700 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6701 else
6702 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6704 rm -f core conftest.err conftest.$ac_objext \
6705 conftest$ac_exeext conftest.$ac_ext
6706 CFLAGS=$ac_wine_try_cflags_saved
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6709 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6710 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6711 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6716 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6717 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 ac_wine_try_cflags_saved=$CFLAGS
6721 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6724 int main(int argc, char **argv) { return 0; }
6725 _ACEOF
6726 if ac_fn_c_try_link "$LINENO"; then :
6727 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6728 else
6729 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6731 rm -f core conftest.err conftest.$ac_objext \
6732 conftest$ac_exeext conftest.$ac_ext
6733 CFLAGS=$ac_wine_try_cflags_saved
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6736 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6737 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6738 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6741 { $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
6742 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6743 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 ac_wine_try_cflags_saved=$CFLAGS
6747 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 int main(int argc, char **argv) { return 0; }
6751 _ACEOF
6752 if ac_fn_c_try_link "$LINENO"; then :
6753 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6754 else
6755 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6757 rm -f core conftest.err conftest.$ac_objext \
6758 conftest$ac_exeext conftest.$ac_ext
6759 CFLAGS=$ac_wine_try_cflags_saved
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6762 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6763 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6764 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6767 echo '{ global: *; };' >conftest.map
6768 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6770 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6771 if eval \${$as_ac_var+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 ac_wine_try_cflags_saved=$CFLAGS
6775 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 int main(int argc, char **argv) { return 0; }
6779 _ACEOF
6780 if ac_fn_c_try_link "$LINENO"; then :
6781 eval "$as_ac_var=yes"
6782 else
6783 eval "$as_ac_var=no"
6785 rm -f core conftest.err conftest.$ac_objext \
6786 conftest$ac_exeext conftest.$ac_ext
6787 CFLAGS=$ac_wine_try_cflags_saved
6789 eval ac_res=\$$as_ac_var
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6791 $as_echo "$ac_res" >&6; }
6792 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6793 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6795 rm -f conftest.map
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6798 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6799 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 ac_wine_try_cflags_saved=$CFLAGS
6803 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6806 int main(int argc, char **argv) { return 0; }
6807 _ACEOF
6808 if ac_fn_c_try_link "$LINENO"; then :
6809 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6810 else
6811 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6813 rm -f core conftest.err conftest.$ac_objext \
6814 conftest$ac_exeext conftest.$ac_ext
6815 CFLAGS=$ac_wine_try_cflags_saved
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6818 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6819 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6820 LDEXECFLAGS="-Wl,--export-dynamic"
6824 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6826 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6827 if eval \${$as_ac_var+:} false; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 ac_wine_try_cflags_saved=$CFLAGS
6831 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 int main(int argc, char **argv) { return 0; }
6835 _ACEOF
6836 if ac_fn_c_try_link "$LINENO"; then :
6837 eval "$as_ac_var=yes"
6838 else
6839 eval "$as_ac_var=no"
6841 rm -f core conftest.err conftest.$ac_objext \
6842 conftest$ac_exeext conftest.$ac_ext
6843 CFLAGS=$ac_wine_try_cflags_saved
6845 eval ac_res=\$$as_ac_var
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6847 $as_echo "$ac_res" >&6; }
6848 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6849 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6850 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6851 else
6852 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6854 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6855 if eval \${$as_ac_var+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 ac_wine_try_cflags_saved=$CFLAGS
6859 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h. */
6862 int main(int argc, char **argv) { return 0; }
6863 _ACEOF
6864 if ac_fn_c_try_link "$LINENO"; then :
6865 eval "$as_ac_var=yes"
6866 else
6867 eval "$as_ac_var=no"
6869 rm -f core conftest.err conftest.$ac_objext \
6870 conftest$ac_exeext conftest.$ac_ext
6871 CFLAGS=$ac_wine_try_cflags_saved
6873 eval ac_res=\$$as_ac_var
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6875 $as_echo "$ac_res" >&6; }
6876 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6877 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6878 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6883 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6884 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 ac_wine_try_cflags_saved=$CFLAGS
6888 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 int main(int argc, char **argv) { return 0; }
6892 _ACEOF
6893 if ac_fn_c_try_link "$LINENO"; then :
6894 ac_cv_cflags__Wl___enable_new_dtags=yes
6895 else
6896 ac_cv_cflags__Wl___enable_new_dtags=no
6898 rm -f core conftest.err conftest.$ac_objext \
6899 conftest$ac_exeext conftest.$ac_ext
6900 CFLAGS=$ac_wine_try_cflags_saved
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6903 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6904 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6905 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6908 case $host_cpu in
6909 *i[3456789]86* | x86_64)
6910 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6912 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6913 if eval \${$as_ac_var+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 ac_wine_try_cflags_saved=$CFLAGS
6917 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920 int main(int argc, char **argv) { return 0; }
6921 _ACEOF
6922 if ac_fn_c_try_link "$LINENO"; then :
6923 eval "$as_ac_var=yes"
6924 else
6925 eval "$as_ac_var=no"
6927 rm -f core conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext
6929 CFLAGS=$ac_wine_try_cflags_saved
6931 eval ac_res=\$$as_ac_var
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6933 $as_echo "$ac_res" >&6; }
6934 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6935 case $host_os in
6936 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6937 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6938 esac
6941 # Extract the first word of "prelink", so it can be a program name with args.
6942 set dummy prelink; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_path_PRELINK+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 case $PRELINK in
6949 [\\/]* | ?:[\\/]*)
6950 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in /sbin /usr/sbin $PATH
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6960 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 break 2
6964 done
6965 done
6966 IFS=$as_save_IFS
6968 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6970 esac
6972 PRELINK=$ac_cv_path_PRELINK
6973 if test -n "$PRELINK"; then
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6975 $as_echo "$PRELINK" >&6; }
6976 else
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978 $as_echo "no" >&6; }
6982 if test "x$PRELINK" = xfalse
6983 then
6984 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6987 esac
6989 else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6991 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6992 if ${ac_cv_c_dll_unixware+:} false; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 ac_wine_try_cflags_saved=$CFLAGS
6996 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999 void myfunc() {}
7000 _ACEOF
7001 if ac_fn_c_try_link "$LINENO"; then :
7002 ac_cv_c_dll_unixware="yes"
7003 else
7004 ac_cv_c_dll_unixware="no"
7006 rm -f core conftest.err conftest.$ac_objext \
7007 conftest$ac_exeext conftest.$ac_ext
7008 CFLAGS=$ac_wine_try_cflags_saved
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7011 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7012 if test "$ac_cv_c_dll_unixware" = "yes"
7013 then
7014 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7015 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7017 else
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7019 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7020 if ${ac_cv_c_dll_hpux+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 ac_wine_try_cflags_saved=$CFLAGS
7024 CFLAGS="$CFLAGS -shared"
7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h. */
7027 void myfunc() {}
7028 _ACEOF
7029 if ac_fn_c_try_link "$LINENO"; then :
7030 ac_cv_c_dll_hpux="yes"
7031 else
7032 ac_cv_c_dll_hpux="no"
7034 rm -f core conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7036 CFLAGS=$ac_wine_try_cflags_saved
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7039 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7040 if test "$ac_cv_c_dll_hpux" = "yes"
7041 then
7042 LIBEXT="sl"
7043 DLLEXT=".sl"
7044 LDDLLFLAGS="-shared -fPIC"
7045 LDSHARED="\$(CC) -shared"
7050 esac
7052 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7053 enable_winequartz_drv=${enable_winequartz_drv:-no}
7055 if test "$LIBEXT" = "a"; then
7056 as_fn_error $? "could not find a way to build shared libraries.
7057 It is currently not possible to build Wine without shared library
7058 (.so) support to allow transparent switch between .so and .dll files.
7059 If you are using Linux, you will need a newer binutils.
7060 " "$LINENO" 5
7063 CROSSTEST_DISABLE=\#
7065 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7066 then
7067 case "$host_cpu" in
7068 i[3456789]86*)
7069 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 " ;;
7070 x86_64)
7071 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 " ;;
7073 ac_prefix_list="" ;;
7074 esac
7075 for ac_prog in $ac_prefix_list
7077 # Extract the first word of "$ac_prog", so it can be a program name with args.
7078 set dummy $ac_prog; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if ${ac_cv_prog_CROSSCC+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 if test -n "$CROSSCC"; then
7085 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094 ac_cv_prog_CROSSCC="$ac_prog"
7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7098 done
7099 done
7100 IFS=$as_save_IFS
7104 CROSSCC=$ac_cv_prog_CROSSCC
7105 if test -n "$CROSSCC"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7107 $as_echo "$CROSSCC" >&6; }
7108 else
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7114 test -n "$CROSSCC" && break
7115 done
7116 test -n "$CROSSCC" || CROSSCC="false"
7118 if test "$CROSSCC" != "false"
7119 then
7120 ac_save_CC="$CC"
7121 CC="$CROSSCC"
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7123 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h. */
7128 main ()
7132 return 0;
7134 _ACEOF
7135 if ac_fn_c_try_compile "$LINENO"; then :
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7137 $as_echo "yes" >&6; }
7138 set x $CROSSCC
7139 shift
7140 target=""
7141 while test $# -ge 1
7143 case "$1" in
7144 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7145 esac
7146 shift
7147 done
7148 if test -n "$target"
7149 then
7150 CROSSTEST_DISABLE=""
7151 CROSSTARGET="$target"
7154 else
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 CC="$ac_save_CC"
7164 if test "$ac_cv_header_pthread_h" = "yes"
7165 then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7167 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7168 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7171 ac_check_lib_save_LIBS=$LIBS
7172 LIBS="-lpthread $LIBS"
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7176 /* Override any GCC internal prototype to avoid an error.
7177 Use char because int might match the return type of a GCC
7178 builtin and then its argument prototype would still apply. */
7179 #ifdef __cplusplus
7180 extern "C"
7181 #endif
7182 char pthread_create ();
7184 main ()
7186 return pthread_create ();
7188 return 0;
7190 _ACEOF
7191 if ac_fn_c_try_link "$LINENO"; then :
7192 ac_cv_lib_pthread_pthread_create=yes
7193 else
7194 ac_cv_lib_pthread_pthread_create=no
7196 rm -f core conftest.err conftest.$ac_objext \
7197 conftest$ac_exeext conftest.$ac_ext
7198 LIBS=$ac_check_lib_save_LIBS
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7201 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7202 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7203 LIBPTHREAD="-lpthread"
7208 if test "x$LIBPTHREAD" = "x"; then :
7209 case "x$with_pthread" in
7210 xno) ;;
7211 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7212 Wine cannot support threads without libpthread.
7213 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7214 esac
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7219 $as_echo_n "checking for X... " >&6; }
7222 # Check whether --with-x was given.
7223 if test "${with_x+set}" = set; then :
7224 withval=$with_x;
7227 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7228 if test "x$with_x" = xno; then
7229 # The user explicitly disabled X.
7230 have_x=disabled
7231 else
7232 case $x_includes,$x_libraries in #(
7233 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7234 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 # One or both of the vars are not set, and there is no cached value.
7238 ac_x_includes=no ac_x_libraries=no
7239 rm -f -r conftest.dir
7240 if mkdir conftest.dir; then
7241 cd conftest.dir
7242 cat >Imakefile <<'_ACEOF'
7243 incroot:
7244 @echo incroot='${INCROOT}'
7245 usrlibdir:
7246 @echo usrlibdir='${USRLIBDIR}'
7247 libdir:
7248 @echo libdir='${LIBDIR}'
7249 _ACEOF
7250 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7251 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7252 for ac_var in incroot usrlibdir libdir; do
7253 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7254 done
7255 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7256 for ac_extension in a so sl dylib la dll; do
7257 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7258 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7259 ac_im_usrlibdir=$ac_im_libdir; break
7261 done
7262 # Screen out bogus values from the imake configuration. They are
7263 # bogus both because they are the default anyway, and because
7264 # using them would break gcc on systems where it needs fixed includes.
7265 case $ac_im_incroot in
7266 /usr/include) ac_x_includes= ;;
7267 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7268 esac
7269 case $ac_im_usrlibdir in
7270 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7271 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7272 esac
7274 cd ..
7275 rm -f -r conftest.dir
7278 # Standard set of common directories for X headers.
7279 # Check X11 before X11Rn because it is often a symlink to the current release.
7280 ac_x_header_dirs='
7281 /usr/X11/include
7282 /usr/X11R7/include
7283 /usr/X11R6/include
7284 /usr/X11R5/include
7285 /usr/X11R4/include
7287 /usr/include/X11
7288 /usr/include/X11R7
7289 /usr/include/X11R6
7290 /usr/include/X11R5
7291 /usr/include/X11R4
7293 /usr/local/X11/include
7294 /usr/local/X11R7/include
7295 /usr/local/X11R6/include
7296 /usr/local/X11R5/include
7297 /usr/local/X11R4/include
7299 /usr/local/include/X11
7300 /usr/local/include/X11R7
7301 /usr/local/include/X11R6
7302 /usr/local/include/X11R5
7303 /usr/local/include/X11R4
7305 /usr/X386/include
7306 /usr/x386/include
7307 /usr/XFree86/include/X11
7309 /usr/include
7310 /usr/local/include
7311 /usr/unsupported/include
7312 /usr/athena/include
7313 /usr/local/x11r5/include
7314 /usr/lpp/Xamples/include
7316 /usr/openwin/include
7317 /usr/openwin/share/include'
7319 if test "$ac_x_includes" = no; then
7320 # Guess where to find include files, by looking for Xlib.h.
7321 # First, try using that file with no special directory specified.
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7324 #include <X11/Xlib.h>
7325 _ACEOF
7326 if ac_fn_c_try_cpp "$LINENO"; then :
7327 # We can compile using X headers with no special include directory.
7328 ac_x_includes=
7329 else
7330 for ac_dir in $ac_x_header_dirs; do
7331 if test -r "$ac_dir/X11/Xlib.h"; then
7332 ac_x_includes=$ac_dir
7333 break
7335 done
7337 rm -f conftest.err conftest.i conftest.$ac_ext
7338 fi # $ac_x_includes = no
7340 if test "$ac_x_libraries" = no; then
7341 # Check for the libraries.
7342 # See if we find them without any special options.
7343 # Don't add to $LIBS permanently.
7344 ac_save_LIBS=$LIBS
7345 LIBS="-lX11 $LIBS"
7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7348 #include <X11/Xlib.h>
7350 main ()
7352 XrmInitialize ()
7354 return 0;
7356 _ACEOF
7357 if ac_fn_c_try_link "$LINENO"; then :
7358 LIBS=$ac_save_LIBS
7359 # We can link X programs with no special library path.
7360 ac_x_libraries=
7361 else
7362 LIBS=$ac_save_LIBS
7363 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7365 # Don't even attempt the hair of trying to link an X program!
7366 for ac_extension in a so sl dylib la dll; do
7367 if test -r "$ac_dir/libX11.$ac_extension"; then
7368 ac_x_libraries=$ac_dir
7369 break 2
7371 done
7372 done
7374 rm -f core conftest.err conftest.$ac_objext \
7375 conftest$ac_exeext conftest.$ac_ext
7376 fi # $ac_x_libraries = no
7378 case $ac_x_includes,$ac_x_libraries in #(
7379 no,* | *,no | *\'*)
7380 # Didn't find X, or a directory has "'" in its name.
7381 ac_cv_have_x="have_x=no";; #(
7383 # Record where we found X for the cache.
7384 ac_cv_have_x="have_x=yes\
7385 ac_x_includes='$ac_x_includes'\
7386 ac_x_libraries='$ac_x_libraries'"
7387 esac
7389 ;; #(
7390 *) have_x=yes;;
7391 esac
7392 eval "$ac_cv_have_x"
7393 fi # $with_x != no
7395 if test "$have_x" != yes; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7397 $as_echo "$have_x" >&6; }
7398 no_x=yes
7399 else
7400 # If each of the values was on the command line, it overrides each guess.
7401 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7402 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7403 # Update the cache value to reflect the command line values.
7404 ac_cv_have_x="have_x=yes\
7405 ac_x_includes='$x_includes'\
7406 ac_x_libraries='$x_libraries'"
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7408 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7411 if test "$no_x" = yes; then
7412 # Not all programs may use this symbol, but it does not hurt to define it.
7414 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7416 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7417 else
7418 if test -n "$x_includes"; then
7419 X_CFLAGS="$X_CFLAGS -I$x_includes"
7422 # It would also be nice to do this for all -L options, not just this one.
7423 if test -n "$x_libraries"; then
7424 X_LIBS="$X_LIBS -L$x_libraries"
7425 # For Solaris; some versions of Sun CC require a space after -R and
7426 # others require no space. Words are not sufficient . . . .
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7428 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7429 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7430 ac_xsave_c_werror_flag=$ac_c_werror_flag
7431 ac_c_werror_flag=yes
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7436 main ()
7440 return 0;
7442 _ACEOF
7443 if ac_fn_c_try_link "$LINENO"; then :
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7446 X_LIBS="$X_LIBS -R$x_libraries"
7447 else
7448 LIBS="$ac_xsave_LIBS -R $x_libraries"
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7453 main ()
7457 return 0;
7459 _ACEOF
7460 if ac_fn_c_try_link "$LINENO"; then :
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7462 $as_echo "yes" >&6; }
7463 X_LIBS="$X_LIBS -R $x_libraries"
7464 else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7466 $as_echo "neither works" >&6; }
7468 rm -f core conftest.err conftest.$ac_objext \
7469 conftest$ac_exeext conftest.$ac_ext
7471 rm -f core conftest.err conftest.$ac_objext \
7472 conftest$ac_exeext conftest.$ac_ext
7473 ac_c_werror_flag=$ac_xsave_c_werror_flag
7474 LIBS=$ac_xsave_LIBS
7477 # Check for system-dependent libraries X programs must link with.
7478 # Do this before checking for the system-independent R6 libraries
7479 # (-lICE), since we may need -lsocket or whatever for X linking.
7481 if test "$ISC" = yes; then
7482 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7483 else
7484 # Martyn Johnson says this is needed for Ultrix, if the X
7485 # libraries were built with DECnet support. And Karl Berry says
7486 # the Alpha needs dnet_stub (dnet does not exist).
7487 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7491 /* Override any GCC internal prototype to avoid an error.
7492 Use char because int might match the return type of a GCC
7493 builtin and then its argument prototype would still apply. */
7494 #ifdef __cplusplus
7495 extern "C"
7496 #endif
7497 char XOpenDisplay ();
7499 main ()
7501 return XOpenDisplay ();
7503 return 0;
7505 _ACEOF
7506 if ac_fn_c_try_link "$LINENO"; then :
7508 else
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7510 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7511 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514 ac_check_lib_save_LIBS=$LIBS
7515 LIBS="-ldnet $LIBS"
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7519 /* Override any GCC internal prototype to avoid an error.
7520 Use char because int might match the return type of a GCC
7521 builtin and then its argument prototype would still apply. */
7522 #ifdef __cplusplus
7523 extern "C"
7524 #endif
7525 char dnet_ntoa ();
7527 main ()
7529 return dnet_ntoa ();
7531 return 0;
7533 _ACEOF
7534 if ac_fn_c_try_link "$LINENO"; then :
7535 ac_cv_lib_dnet_dnet_ntoa=yes
7536 else
7537 ac_cv_lib_dnet_dnet_ntoa=no
7539 rm -f core conftest.err conftest.$ac_objext \
7540 conftest$ac_exeext conftest.$ac_ext
7541 LIBS=$ac_check_lib_save_LIBS
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7544 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7545 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7546 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7549 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7551 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7552 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7553 $as_echo_n "(cached) " >&6
7554 else
7555 ac_check_lib_save_LIBS=$LIBS
7556 LIBS="-ldnet_stub $LIBS"
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7560 /* Override any GCC internal prototype to avoid an error.
7561 Use char because int might match the return type of a GCC
7562 builtin and then its argument prototype would still apply. */
7563 #ifdef __cplusplus
7564 extern "C"
7565 #endif
7566 char dnet_ntoa ();
7568 main ()
7570 return dnet_ntoa ();
7572 return 0;
7574 _ACEOF
7575 if ac_fn_c_try_link "$LINENO"; then :
7576 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7577 else
7578 ac_cv_lib_dnet_stub_dnet_ntoa=no
7580 rm -f core conftest.err conftest.$ac_objext \
7581 conftest$ac_exeext conftest.$ac_ext
7582 LIBS=$ac_check_lib_save_LIBS
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7585 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7586 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7587 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7592 rm -f core conftest.err conftest.$ac_objext \
7593 conftest$ac_exeext conftest.$ac_ext
7594 LIBS="$ac_xsave_LIBS"
7596 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7597 # to get the SysV transport functions.
7598 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7599 # needs -lnsl.
7600 # The nsl library prevents programs from opening the X display
7601 # on Irix 5.2, according to T.E. Dickey.
7602 # The functions gethostbyname, getservbyname, and inet_addr are
7603 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7604 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7605 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7609 if test $ac_cv_func_gethostbyname = no; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7611 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7612 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 ac_check_lib_save_LIBS=$LIBS
7616 LIBS="-lnsl $LIBS"
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7620 /* Override any GCC internal prototype to avoid an error.
7621 Use char because int might match the return type of a GCC
7622 builtin and then its argument prototype would still apply. */
7623 #ifdef __cplusplus
7624 extern "C"
7625 #endif
7626 char gethostbyname ();
7628 main ()
7630 return gethostbyname ();
7632 return 0;
7634 _ACEOF
7635 if ac_fn_c_try_link "$LINENO"; then :
7636 ac_cv_lib_nsl_gethostbyname=yes
7637 else
7638 ac_cv_lib_nsl_gethostbyname=no
7640 rm -f core conftest.err conftest.$ac_objext \
7641 conftest$ac_exeext conftest.$ac_ext
7642 LIBS=$ac_check_lib_save_LIBS
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7645 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7646 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7647 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7650 if test $ac_cv_lib_nsl_gethostbyname = no; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7652 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7653 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 ac_check_lib_save_LIBS=$LIBS
7657 LIBS="-lbsd $LIBS"
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7661 /* Override any GCC internal prototype to avoid an error.
7662 Use char because int might match the return type of a GCC
7663 builtin and then its argument prototype would still apply. */
7664 #ifdef __cplusplus
7665 extern "C"
7666 #endif
7667 char gethostbyname ();
7669 main ()
7671 return gethostbyname ();
7673 return 0;
7675 _ACEOF
7676 if ac_fn_c_try_link "$LINENO"; then :
7677 ac_cv_lib_bsd_gethostbyname=yes
7678 else
7679 ac_cv_lib_bsd_gethostbyname=no
7681 rm -f core conftest.err conftest.$ac_objext \
7682 conftest$ac_exeext conftest.$ac_ext
7683 LIBS=$ac_check_lib_save_LIBS
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7686 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7687 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7688 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7694 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7695 # socket/setsockopt and other routines are undefined under SCO ODT
7696 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7697 # on later versions), says Simon Leinen: it contains gethostby*
7698 # variants that don't use the name server (or something). -lsocket
7699 # must be given before -lnsl if both are needed. We assume that
7700 # if connect needs -lnsl, so does gethostbyname.
7701 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7702 if test "x$ac_cv_func_connect" = xyes; then :
7706 if test $ac_cv_func_connect = no; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7708 $as_echo_n "checking for connect in -lsocket... " >&6; }
7709 if ${ac_cv_lib_socket_connect+:} false; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 ac_check_lib_save_LIBS=$LIBS
7713 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7717 /* Override any GCC internal prototype to avoid an error.
7718 Use char because int might match the return type of a GCC
7719 builtin and then its argument prototype would still apply. */
7720 #ifdef __cplusplus
7721 extern "C"
7722 #endif
7723 char connect ();
7725 main ()
7727 return connect ();
7729 return 0;
7731 _ACEOF
7732 if ac_fn_c_try_link "$LINENO"; then :
7733 ac_cv_lib_socket_connect=yes
7734 else
7735 ac_cv_lib_socket_connect=no
7737 rm -f core conftest.err conftest.$ac_objext \
7738 conftest$ac_exeext conftest.$ac_ext
7739 LIBS=$ac_check_lib_save_LIBS
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7742 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7743 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7744 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7749 # Guillermo Gomez says -lposix is necessary on A/UX.
7750 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7751 if test "x$ac_cv_func_remove" = xyes; then :
7755 if test $ac_cv_func_remove = no; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7757 $as_echo_n "checking for remove in -lposix... " >&6; }
7758 if ${ac_cv_lib_posix_remove+:} false; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 ac_check_lib_save_LIBS=$LIBS
7762 LIBS="-lposix $LIBS"
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7766 /* Override any GCC internal prototype to avoid an error.
7767 Use char because int might match the return type of a GCC
7768 builtin and then its argument prototype would still apply. */
7769 #ifdef __cplusplus
7770 extern "C"
7771 #endif
7772 char remove ();
7774 main ()
7776 return remove ();
7778 return 0;
7780 _ACEOF
7781 if ac_fn_c_try_link "$LINENO"; then :
7782 ac_cv_lib_posix_remove=yes
7783 else
7784 ac_cv_lib_posix_remove=no
7786 rm -f core conftest.err conftest.$ac_objext \
7787 conftest$ac_exeext conftest.$ac_ext
7788 LIBS=$ac_check_lib_save_LIBS
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7791 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7792 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7793 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7798 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7799 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7800 if test "x$ac_cv_func_shmat" = xyes; then :
7804 if test $ac_cv_func_shmat = no; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7806 $as_echo_n "checking for shmat in -lipc... " >&6; }
7807 if ${ac_cv_lib_ipc_shmat+:} false; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 ac_check_lib_save_LIBS=$LIBS
7811 LIBS="-lipc $LIBS"
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7815 /* Override any GCC internal prototype to avoid an error.
7816 Use char because int might match the return type of a GCC
7817 builtin and then its argument prototype would still apply. */
7818 #ifdef __cplusplus
7819 extern "C"
7820 #endif
7821 char shmat ();
7823 main ()
7825 return shmat ();
7827 return 0;
7829 _ACEOF
7830 if ac_fn_c_try_link "$LINENO"; then :
7831 ac_cv_lib_ipc_shmat=yes
7832 else
7833 ac_cv_lib_ipc_shmat=no
7835 rm -f core conftest.err conftest.$ac_objext \
7836 conftest$ac_exeext conftest.$ac_ext
7837 LIBS=$ac_check_lib_save_LIBS
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7840 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7841 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7842 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7848 # Check for libraries that X11R6 Xt/Xaw programs need.
7849 ac_save_LDFLAGS=$LDFLAGS
7850 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7851 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7852 # check for ICE first), but we must link in the order -lSM -lICE or
7853 # we get undefined symbols. So assume we have SM if we have ICE.
7854 # These have to be linked with before -lX11, unlike the other
7855 # libraries we check for below, so use a different variable.
7856 # John Interrante, Karl Berry
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7858 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7859 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 ac_check_lib_save_LIBS=$LIBS
7863 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7867 /* Override any GCC internal prototype to avoid an error.
7868 Use char because int might match the return type of a GCC
7869 builtin and then its argument prototype would still apply. */
7870 #ifdef __cplusplus
7871 extern "C"
7872 #endif
7873 char IceConnectionNumber ();
7875 main ()
7877 return IceConnectionNumber ();
7879 return 0;
7881 _ACEOF
7882 if ac_fn_c_try_link "$LINENO"; then :
7883 ac_cv_lib_ICE_IceConnectionNumber=yes
7884 else
7885 ac_cv_lib_ICE_IceConnectionNumber=no
7887 rm -f core conftest.err conftest.$ac_objext \
7888 conftest$ac_exeext conftest.$ac_ext
7889 LIBS=$ac_check_lib_save_LIBS
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7892 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7893 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7894 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7897 LDFLAGS=$ac_save_LDFLAGS
7902 if test "$have_x" = "yes"
7903 then
7904 XLIB="-lX11"
7905 ac_save_CPPFLAGS="$CPPFLAGS"
7906 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7909 $as_echo_n "checking for -lX11... " >&6; }
7910 if ${ac_cv_lib_soname_X11+:} false; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 ac_check_soname_save_LIBS=$LIBS
7914 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7918 /* Override any GCC internal prototype to avoid an error.
7919 Use char because int might match the return type of a GCC
7920 builtin and then its argument prototype would still apply. */
7921 #ifdef __cplusplus
7922 extern "C"
7923 #endif
7924 char XCreateWindow ();
7926 main ()
7928 return XCreateWindow ();
7930 return 0;
7932 _ACEOF
7933 if ac_fn_c_try_link "$LINENO"; then :
7934 case "$LIBEXT" in
7935 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7936 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'` ;;
7937 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7938 esac
7940 rm -f core conftest.err conftest.$ac_objext \
7941 conftest$ac_exeext conftest.$ac_ext
7942 LIBS=$ac_check_soname_save_LIBS
7944 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7946 $as_echo "not found" >&6; }
7948 else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7950 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7952 cat >>confdefs.h <<_ACEOF
7953 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7954 _ACEOF
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7959 $as_echo_n "checking for -lXext... " >&6; }
7960 if ${ac_cv_lib_soname_Xext+:} false; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 ac_check_soname_save_LIBS=$LIBS
7964 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7968 /* Override any GCC internal prototype to avoid an error.
7969 Use char because int might match the return type of a GCC
7970 builtin and then its argument prototype would still apply. */
7971 #ifdef __cplusplus
7972 extern "C"
7973 #endif
7974 char XextCreateExtension ();
7976 main ()
7978 return XextCreateExtension ();
7980 return 0;
7982 _ACEOF
7983 if ac_fn_c_try_link "$LINENO"; then :
7984 case "$LIBEXT" in
7985 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7986 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'` ;;
7987 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7988 esac
7990 rm -f core conftest.err conftest.$ac_objext \
7991 conftest$ac_exeext conftest.$ac_ext
7992 LIBS=$ac_check_soname_save_LIBS
7994 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7996 $as_echo "not found" >&6; }
7998 else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8000 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8002 cat >>confdefs.h <<_ACEOF
8003 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8004 _ACEOF
8006 XLIB="-lXext $XLIB"
8009 for ac_header in X11/Xlib.h \
8010 X11/XKBlib.h \
8011 X11/Xutil.h \
8012 X11/Xcursor/Xcursor.h \
8013 X11/extensions/shape.h \
8014 X11/extensions/XInput.h \
8015 X11/extensions/XInput2.h \
8016 X11/extensions/XShm.h \
8017 X11/extensions/Xcomposite.h \
8018 X11/extensions/Xinerama.h \
8019 X11/extensions/Xrandr.h \
8020 X11/extensions/Xrender.h \
8021 X11/extensions/xf86vmode.h \
8022 X11/extensions/xf86vmproto.h
8023 do :
8024 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8025 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8026 # include <X11/Xlib.h>
8027 #endif
8028 #ifdef HAVE_X11_XUTIL_H
8029 # include <X11/Xutil.h>
8030 #endif
8032 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8033 cat >>confdefs.h <<_ACEOF
8034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8035 _ACEOF
8039 done
8042 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8043 then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8045 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8046 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8047 $as_echo_n "(cached) " >&6
8048 else
8049 ac_check_lib_save_LIBS=$LIBS
8050 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8054 /* Override any GCC internal prototype to avoid an error.
8055 Use char because int might match the return type of a GCC
8056 builtin and then its argument prototype would still apply. */
8057 #ifdef __cplusplus
8058 extern "C"
8059 #endif
8060 char XkbQueryExtension ();
8062 main ()
8064 return XkbQueryExtension ();
8066 return 0;
8068 _ACEOF
8069 if ac_fn_c_try_link "$LINENO"; then :
8070 ac_cv_lib_X11_XkbQueryExtension=yes
8071 else
8072 ac_cv_lib_X11_XkbQueryExtension=no
8074 rm -f core conftest.err conftest.$ac_objext \
8075 conftest$ac_exeext conftest.$ac_ext
8076 LIBS=$ac_check_lib_save_LIBS
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8079 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8080 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8082 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8088 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8089 then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8091 $as_echo_n "checking for -lXcursor... " >&6; }
8092 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 ac_check_soname_save_LIBS=$LIBS
8096 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8100 /* Override any GCC internal prototype to avoid an error.
8101 Use char because int might match the return type of a GCC
8102 builtin and then its argument prototype would still apply. */
8103 #ifdef __cplusplus
8104 extern "C"
8105 #endif
8106 char XcursorImageLoadCursor ();
8108 main ()
8110 return XcursorImageLoadCursor ();
8112 return 0;
8114 _ACEOF
8115 if ac_fn_c_try_link "$LINENO"; then :
8116 case "$LIBEXT" in
8117 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8118 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'` ;;
8119 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8120 esac
8122 rm -f core conftest.err conftest.$ac_objext \
8123 conftest$ac_exeext conftest.$ac_ext
8124 LIBS=$ac_check_soname_save_LIBS
8126 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8128 $as_echo "not found" >&6; }
8130 else
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8132 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8134 cat >>confdefs.h <<_ACEOF
8135 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8136 _ACEOF
8141 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8142 case "x$with_xcursor" in
8143 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8144 xno) ;;
8145 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8146 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8147 esac
8150 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8151 then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8153 $as_echo_n "checking for -lXi... " >&6; }
8154 if ${ac_cv_lib_soname_Xi+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 ac_check_soname_save_LIBS=$LIBS
8158 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8162 /* Override any GCC internal prototype to avoid an error.
8163 Use char because int might match the return type of a GCC
8164 builtin and then its argument prototype would still apply. */
8165 #ifdef __cplusplus
8166 extern "C"
8167 #endif
8168 char XOpenDevice ();
8170 main ()
8172 return XOpenDevice ();
8174 return 0;
8176 _ACEOF
8177 if ac_fn_c_try_link "$LINENO"; then :
8178 case "$LIBEXT" in
8179 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8180 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'` ;;
8181 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8182 esac
8184 rm -f core conftest.err conftest.$ac_objext \
8185 conftest$ac_exeext conftest.$ac_ext
8186 LIBS=$ac_check_soname_save_LIBS
8188 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8190 $as_echo "not found" >&6; }
8192 else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8194 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8196 cat >>confdefs.h <<_ACEOF
8197 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8198 _ACEOF
8203 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8204 case "x$with_xinput" in
8205 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8206 xno) ;;
8207 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8208 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8209 esac
8212 if test "x$ac_cv_lib_soname_Xi" != x
8213 then
8214 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8215 case "x$with_xinput2" in
8216 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8217 xno) ;;
8218 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8219 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8220 esac
8224 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8225 then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8227 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8228 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 ac_check_lib_save_LIBS=$LIBS
8232 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h. */
8236 /* Override any GCC internal prototype to avoid an error.
8237 Use char because int might match the return type of a GCC
8238 builtin and then its argument prototype would still apply. */
8239 #ifdef __cplusplus
8240 extern "C"
8241 #endif
8242 char XShmQueryExtension ();
8244 main ()
8246 return XShmQueryExtension ();
8248 return 0;
8250 _ACEOF
8251 if ac_fn_c_try_link "$LINENO"; then :
8252 ac_cv_lib_Xext_XShmQueryExtension=yes
8253 else
8254 ac_cv_lib_Xext_XShmQueryExtension=no
8256 rm -f core conftest.err conftest.$ac_objext \
8257 conftest$ac_exeext conftest.$ac_ext
8258 LIBS=$ac_check_lib_save_LIBS
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8261 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8262 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8264 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8269 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8270 case "x$with_xshm" in
8271 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8272 xno) ;;
8273 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8274 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8275 esac
8278 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8279 then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8281 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8282 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 ac_check_lib_save_LIBS=$LIBS
8286 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8290 /* Override any GCC internal prototype to avoid an error.
8291 Use char because int might match the return type of a GCC
8292 builtin and then its argument prototype would still apply. */
8293 #ifdef __cplusplus
8294 extern "C"
8295 #endif
8296 char XShapeQueryExtension ();
8298 main ()
8300 return XShapeQueryExtension ();
8302 return 0;
8304 _ACEOF
8305 if ac_fn_c_try_link "$LINENO"; then :
8306 ac_cv_lib_Xext_XShapeQueryExtension=yes
8307 else
8308 ac_cv_lib_Xext_XShapeQueryExtension=no
8310 rm -f core conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312 LIBS=$ac_check_lib_save_LIBS
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8315 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8316 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8318 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8323 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8324 case "x$with_xshape" in
8325 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8326 xno) ;;
8327 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8328 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8329 esac
8332 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8333 then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8335 $as_echo_n "checking for -lXxf86vm... " >&6; }
8336 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338 else
8339 ac_check_soname_save_LIBS=$LIBS
8340 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8344 /* Override any GCC internal prototype to avoid an error.
8345 Use char because int might match the return type of a GCC
8346 builtin and then its argument prototype would still apply. */
8347 #ifdef __cplusplus
8348 extern "C"
8349 #endif
8350 char XF86VidModeQueryExtension ();
8352 main ()
8354 return XF86VidModeQueryExtension ();
8356 return 0;
8358 _ACEOF
8359 if ac_fn_c_try_link "$LINENO"; then :
8360 case "$LIBEXT" in
8361 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8362 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'` ;;
8363 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8364 esac
8366 rm -f core conftest.err conftest.$ac_objext \
8367 conftest$ac_exeext conftest.$ac_ext
8368 LIBS=$ac_check_soname_save_LIBS
8370 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8372 $as_echo "not found" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8376 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8378 cat >>confdefs.h <<_ACEOF
8379 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8380 _ACEOF
8385 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8386 case "x$with_xxf86vm" in
8387 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8388 xno) ;;
8389 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8390 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8391 esac
8394 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"
8395 then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8397 $as_echo_n "checking for -lXrender... " >&6; }
8398 if ${ac_cv_lib_soname_Xrender+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 ac_check_soname_save_LIBS=$LIBS
8402 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8406 /* Override any GCC internal prototype to avoid an error.
8407 Use char because int might match the return type of a GCC
8408 builtin and then its argument prototype would still apply. */
8409 #ifdef __cplusplus
8410 extern "C"
8411 #endif
8412 char XRenderQueryExtension ();
8414 main ()
8416 return XRenderQueryExtension ();
8418 return 0;
8420 _ACEOF
8421 if ac_fn_c_try_link "$LINENO"; then :
8422 case "$LIBEXT" in
8423 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8424 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'` ;;
8425 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8426 esac
8428 rm -f core conftest.err conftest.$ac_objext \
8429 conftest$ac_exeext conftest.$ac_ext
8430 LIBS=$ac_check_soname_save_LIBS
8432 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8434 $as_echo "not found" >&6; }
8436 else
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8438 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8440 cat >>confdefs.h <<_ACEOF
8441 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8442 _ACEOF
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8445 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8446 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 ac_check_lib_save_LIBS=$LIBS
8450 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8454 /* Override any GCC internal prototype to avoid an error.
8455 Use char because int might match the return type of a GCC
8456 builtin and then its argument prototype would still apply. */
8457 #ifdef __cplusplus
8458 extern "C"
8459 #endif
8460 char XRenderSetPictureTransform ();
8462 main ()
8464 return XRenderSetPictureTransform ();
8466 return 0;
8468 _ACEOF
8469 if ac_fn_c_try_link "$LINENO"; then :
8470 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8471 else
8472 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8474 rm -f core conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
8476 LIBS=$ac_check_lib_save_LIBS
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8479 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8480 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8482 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8489 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8490 case "x$with_xrender" in
8491 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8492 xno) ;;
8493 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8494 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8495 esac
8498 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8499 then
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8502 #include <X11/Xlib.h>
8503 #include <X11/extensions/Xrandr.h>
8505 main ()
8507 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8509 return 0;
8511 _ACEOF
8512 if ac_fn_c_try_compile "$LINENO"; then :
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8514 $as_echo_n "checking for -lXrandr... " >&6; }
8515 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 ac_check_soname_save_LIBS=$LIBS
8519 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8523 /* Override any GCC internal prototype to avoid an error.
8524 Use char because int might match the return type of a GCC
8525 builtin and then its argument prototype would still apply. */
8526 #ifdef __cplusplus
8527 extern "C"
8528 #endif
8529 char XRRQueryExtension ();
8531 main ()
8533 return XRRQueryExtension ();
8535 return 0;
8537 _ACEOF
8538 if ac_fn_c_try_link "$LINENO"; then :
8539 case "$LIBEXT" in
8540 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8541 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'` ;;
8542 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8543 esac
8545 rm -f core conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8547 LIBS=$ac_check_soname_save_LIBS
8549 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8551 $as_echo "not found" >&6; }
8553 else
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8555 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8557 cat >>confdefs.h <<_ACEOF
8558 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8559 _ACEOF
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8566 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8567 case "x$with_xrandr" in
8568 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8569 xno) ;;
8570 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8571 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8572 esac
8575 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8576 then
8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h. */
8579 #include <X11/Xlib.h>
8580 #include <X11/extensions/Xinerama.h>
8582 main ()
8584 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8586 return 0;
8588 _ACEOF
8589 if ac_fn_c_try_compile "$LINENO"; then :
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8591 $as_echo_n "checking for -lXinerama... " >&6; }
8592 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 ac_check_soname_save_LIBS=$LIBS
8596 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8600 /* Override any GCC internal prototype to avoid an error.
8601 Use char because int might match the return type of a GCC
8602 builtin and then its argument prototype would still apply. */
8603 #ifdef __cplusplus
8604 extern "C"
8605 #endif
8606 char XineramaQueryScreens ();
8608 main ()
8610 return XineramaQueryScreens ();
8612 return 0;
8614 _ACEOF
8615 if ac_fn_c_try_link "$LINENO"; then :
8616 case "$LIBEXT" in
8617 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8618 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'` ;;
8619 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8620 esac
8622 rm -f core conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
8624 LIBS=$ac_check_soname_save_LIBS
8626 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8628 $as_echo "not found" >&6; }
8630 else
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8632 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8634 cat >>confdefs.h <<_ACEOF
8635 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8636 _ACEOF
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8644 case "x$with_xinerama" in
8645 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8646 xno) ;;
8647 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8648 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8649 esac
8652 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8653 then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8655 $as_echo_n "checking for -lXcomposite... " >&6; }
8656 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 ac_check_soname_save_LIBS=$LIBS
8660 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8664 /* Override any GCC internal prototype to avoid an error.
8665 Use char because int might match the return type of a GCC
8666 builtin and then its argument prototype would still apply. */
8667 #ifdef __cplusplus
8668 extern "C"
8669 #endif
8670 char XCompositeRedirectWindow ();
8672 main ()
8674 return XCompositeRedirectWindow ();
8676 return 0;
8678 _ACEOF
8679 if ac_fn_c_try_link "$LINENO"; then :
8680 case "$LIBEXT" in
8681 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8682 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'` ;;
8683 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8684 esac
8686 rm -f core conftest.err conftest.$ac_objext \
8687 conftest$ac_exeext conftest.$ac_ext
8688 LIBS=$ac_check_soname_save_LIBS
8690 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8692 $as_echo "not found" >&6; }
8694 else
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8696 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8698 cat >>confdefs.h <<_ACEOF
8699 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8700 _ACEOF
8705 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8706 case "x$with_xcomposite" in
8707 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8708 xno) ;;
8709 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8710 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8711 esac
8714 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8715 #include <X11/Xlib.h>
8716 #endif
8718 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8720 cat >>confdefs.h <<_ACEOF
8721 #define HAVE_XICCALLBACK_CALLBACK 1
8722 _ACEOF
8726 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8727 #include <X11/Xlib.h>
8728 #endif
8730 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8732 cat >>confdefs.h <<_ACEOF
8733 #define HAVE_XEVENT_XCOOKIE 1
8734 _ACEOF
8741 opengl_msg=""
8742 if test "x$with_opengl" != "xno"
8743 then
8744 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8745 do :
8746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8747 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8748 # include <GL/glx.h>
8749 #endif
8751 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8752 cat >>confdefs.h <<_ACEOF
8753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8754 _ACEOF
8758 done
8760 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8761 then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8763 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8764 if ${wine_cv_opengl_header_version_OK+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8769 #include <GL/gl.h>
8771 main ()
8773 GLenum test = GL_UNSIGNED_SHORT_5_6_5; return (test == GL_UNSIGNED_SHORT_5_6_5);
8775 return 0;
8777 _ACEOF
8778 if ac_fn_c_try_compile "$LINENO"; then :
8779 wine_cv_opengl_header_version_OK="yes"
8780 else
8781 wine_cv_opengl_header_version_OK="no"
8783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8786 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8788 if test "$wine_cv_opengl_header_version_OK" = "yes"
8789 then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8791 $as_echo_n "checking for -lGL... " >&6; }
8792 if ${ac_cv_lib_soname_GL+:} false; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 ac_check_soname_save_LIBS=$LIBS
8796 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8800 /* Override any GCC internal prototype to avoid an error.
8801 Use char because int might match the return type of a GCC
8802 builtin and then its argument prototype would still apply. */
8803 #ifdef __cplusplus
8804 extern "C"
8805 #endif
8806 char glXCreateContext ();
8808 main ()
8810 return glXCreateContext ();
8812 return 0;
8814 _ACEOF
8815 if ac_fn_c_try_link "$LINENO"; then :
8816 case "$LIBEXT" in
8817 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8818 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'` ;;
8819 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8820 esac
8822 rm -f core conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
8824 LIBS=$ac_check_soname_save_LIBS
8826 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8828 $as_echo "not found" >&6; }
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8830 $as_echo_n "checking for -lGL... " >&6; }
8831 if ${ac_cv_lib_soname_GL+:} false; then :
8832 $as_echo_n "(cached) " >&6
8833 else
8834 ac_check_soname_save_LIBS=$LIBS
8835 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"
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8839 /* Override any GCC internal prototype to avoid an error.
8840 Use char because int might match the return type of a GCC
8841 builtin and then its argument prototype would still apply. */
8842 #ifdef __cplusplus
8843 extern "C"
8844 #endif
8845 char glXCreateContext ();
8847 main ()
8849 return glXCreateContext ();
8851 return 0;
8853 _ACEOF
8854 if ac_fn_c_try_link "$LINENO"; then :
8855 case "$LIBEXT" in
8856 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8857 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'` ;;
8858 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8859 esac
8861 rm -f core conftest.err conftest.$ac_objext \
8862 conftest$ac_exeext conftest.$ac_ext
8863 LIBS=$ac_check_soname_save_LIBS
8865 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8867 $as_echo "not found" >&6; }
8868 if test -f /usr/X11R6/lib/libGL.a
8869 then
8870 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8871 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8872 else
8873 opengl_msg="No OpenGL library found on this system."
8875 else
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8877 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8879 cat >>confdefs.h <<_ACEOF
8880 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8881 _ACEOF
8883 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"
8885 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8888 else
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8890 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8892 cat >>confdefs.h <<_ACEOF
8893 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8894 _ACEOF
8896 OPENGL_LIBS="-lGL"
8898 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8901 if test "$ac_cv_header_GL_glu_h" = "yes"
8902 then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8904 $as_echo_n "checking for -lGLU... " >&6; }
8905 if ${ac_cv_lib_soname_GLU+:} false; then :
8906 $as_echo_n "(cached) " >&6
8907 else
8908 ac_check_soname_save_LIBS=$LIBS
8909 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8913 /* Override any GCC internal prototype to avoid an error.
8914 Use char because int might match the return type of a GCC
8915 builtin and then its argument prototype would still apply. */
8916 #ifdef __cplusplus
8917 extern "C"
8918 #endif
8919 char gluLookAt ();
8921 main ()
8923 return gluLookAt ();
8925 return 0;
8927 _ACEOF
8928 if ac_fn_c_try_link "$LINENO"; then :
8929 case "$LIBEXT" in
8930 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8931 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'` ;;
8932 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8933 esac
8935 rm -f core conftest.err conftest.$ac_objext \
8936 conftest$ac_exeext conftest.$ac_ext
8937 LIBS=$ac_check_soname_save_LIBS
8939 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8941 $as_echo "not found" >&6; }
8943 else
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8945 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8947 cat >>confdefs.h <<_ACEOF
8948 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8949 _ACEOF
8954 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8955 case "x$with_glu" in
8956 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8957 xno) ;;
8958 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8959 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8960 esac
8962 else
8963 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8965 else
8966 opengl_msg="OpenGL development headers not found."
8968 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8969 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8970 else
8971 enable_opengl32=${enable_opengl32:-no}
8972 enable_glu32=${enable_glu32:-no}
8974 if test -n "$opengl_msg"; then :
8975 case "x$with_opengl" in
8976 x) as_fn_append wine_warnings "|$opengl_msg
8977 OpenGL and Direct3D won't be supported." ;;
8978 xno) ;;
8979 *) as_fn_error $? "$opengl_msg
8980 OpenGL and Direct3D won't be supported.
8981 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8982 esac
8985 CPPFLAGS="$ac_save_CPPFLAGS"
8986 else
8987 XLIB=""
8988 X_CFLAGS=""
8989 X_LIBS=""
8990 enable_winex11_drv=${enable_winex11_drv:-no}
8991 enable_opengl32=${enable_opengl32:-no}
8992 enable_glu32=${enable_glu32:-no}
8994 if test "x$XLIB" = "x"; then :
8995 case "x$with_x" in
8996 xno) ;;
8997 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
8998 without X support, which probably isn't what you want. You will need
8999 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9000 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9001 esac
9004 if test "$ac_cv_header_CL_cl_h" = "yes"
9005 then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9007 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9008 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9009 $as_echo_n "(cached) " >&6
9010 else
9011 ac_check_lib_save_LIBS=$LIBS
9012 LIBS="-lOpenCL $LIBS"
9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9016 /* Override any GCC internal prototype to avoid an error.
9017 Use char because int might match the return type of a GCC
9018 builtin and then its argument prototype would still apply. */
9019 #ifdef __cplusplus
9020 extern "C"
9021 #endif
9022 char clGetPlatformInfo ();
9024 main ()
9026 return clGetPlatformInfo ();
9028 return 0;
9030 _ACEOF
9031 if ac_fn_c_try_link "$LINENO"; then :
9032 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9033 else
9034 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9036 rm -f core conftest.err conftest.$ac_objext \
9037 conftest$ac_exeext conftest.$ac_ext
9038 LIBS=$ac_check_lib_save_LIBS
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9041 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9042 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9043 LIBOPENCL="-lOpenCL"
9048 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9049 case "x$with_opencl" in
9050 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9051 xno) ;;
9052 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9053 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9054 esac
9056 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9059 XML2LIBS=""
9061 XML2INCL=""
9063 XSLTINCL=""
9065 if test "x$with_xml" != "xno"
9066 then
9067 ac_save_CPPFLAGS="$CPPFLAGS"
9068 if test "$PKG_CONFIG" != "false"
9069 then
9070 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9071 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9072 else
9073 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9074 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9076 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9077 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9078 do :
9079 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9080 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9081 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9082 cat >>confdefs.h <<_ACEOF
9083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9084 _ACEOF
9088 done
9090 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"
9091 then
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9093 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9094 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 ac_check_lib_save_LIBS=$LIBS
9098 LIBS="-lxml2 $ac_xml_libs $LIBS"
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9102 /* Override any GCC internal prototype to avoid an error.
9103 Use char because int might match the return type of a GCC
9104 builtin and then its argument prototype would still apply. */
9105 #ifdef __cplusplus
9106 extern "C"
9107 #endif
9108 char xmlParseMemory ();
9110 main ()
9112 return xmlParseMemory ();
9114 return 0;
9116 _ACEOF
9117 if ac_fn_c_try_link "$LINENO"; then :
9118 ac_cv_lib_xml2_xmlParseMemory=yes
9119 else
9120 ac_cv_lib_xml2_xmlParseMemory=no
9122 rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9124 LIBS=$ac_check_lib_save_LIBS
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9127 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9128 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9130 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9132 XML2LIBS="$ac_xml_libs"
9133 XML2INCL="$ac_xml_cflags"
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9137 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9138 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 ac_check_lib_save_LIBS=$LIBS
9142 LIBS="-lxml2 $ac_xml_libs $LIBS"
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9146 /* Override any GCC internal prototype to avoid an error.
9147 Use char because int might match the return type of a GCC
9148 builtin and then its argument prototype would still apply. */
9149 #ifdef __cplusplus
9150 extern "C"
9151 #endif
9152 char xmlReadMemory ();
9154 main ()
9156 return xmlReadMemory ();
9158 return 0;
9160 _ACEOF
9161 if ac_fn_c_try_link "$LINENO"; then :
9162 ac_cv_lib_xml2_xmlReadMemory=yes
9163 else
9164 ac_cv_lib_xml2_xmlReadMemory=no
9166 rm -f core conftest.err conftest.$ac_objext \
9167 conftest$ac_exeext conftest.$ac_ext
9168 LIBS=$ac_check_lib_save_LIBS
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9171 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9172 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9174 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9179 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9180 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 ac_check_lib_save_LIBS=$LIBS
9184 LIBS="-lxml2 $ac_xml_libs $LIBS"
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9188 /* Override any GCC internal prototype to avoid an error.
9189 Use char because int might match the return type of a GCC
9190 builtin and then its argument prototype would still apply. */
9191 #ifdef __cplusplus
9192 extern "C"
9193 #endif
9194 char xmlNewDocPI ();
9196 main ()
9198 return xmlNewDocPI ();
9200 return 0;
9202 _ACEOF
9203 if ac_fn_c_try_link "$LINENO"; then :
9204 ac_cv_lib_xml2_xmlNewDocPI=yes
9205 else
9206 ac_cv_lib_xml2_xmlNewDocPI=no
9208 rm -f core conftest.err conftest.$ac_objext \
9209 conftest$ac_exeext conftest.$ac_ext
9210 LIBS=$ac_check_lib_save_LIBS
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9213 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9214 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9216 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9221 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9222 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 ac_check_lib_save_LIBS=$LIBS
9226 LIBS="-lxml2 $ac_xml_libs $LIBS"
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9230 /* Override any GCC internal prototype to avoid an error.
9231 Use char because int might match the return type of a GCC
9232 builtin and then its argument prototype would still apply. */
9233 #ifdef __cplusplus
9234 extern "C"
9235 #endif
9236 char xmlSchemaSetParserStructuredErrors ();
9238 main ()
9240 return xmlSchemaSetParserStructuredErrors ();
9242 return 0;
9244 _ACEOF
9245 if ac_fn_c_try_link "$LINENO"; then :
9246 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9247 else
9248 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9250 rm -f core conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
9252 LIBS=$ac_check_lib_save_LIBS
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9255 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9256 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9258 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9263 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9264 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 ac_check_lib_save_LIBS=$LIBS
9268 LIBS="-lxml2 $ac_xml_libs $LIBS"
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9272 /* Override any GCC internal prototype to avoid an error.
9273 Use char because int might match the return type of a GCC
9274 builtin and then its argument prototype would still apply. */
9275 #ifdef __cplusplus
9276 extern "C"
9277 #endif
9278 char xmlSchemaSetValidStructuredErrors ();
9280 main ()
9282 return xmlSchemaSetValidStructuredErrors ();
9284 return 0;
9286 _ACEOF
9287 if ac_fn_c_try_link "$LINENO"; then :
9288 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9289 else
9290 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9292 rm -f core conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9294 LIBS=$ac_check_lib_save_LIBS
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9297 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9298 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9300 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9305 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9306 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 ac_check_lib_save_LIBS=$LIBS
9310 LIBS="-lxml2 $ac_xml_libs $LIBS"
9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9314 /* Override any GCC internal prototype to avoid an error.
9315 Use char because int might match the return type of a GCC
9316 builtin and then its argument prototype would still apply. */
9317 #ifdef __cplusplus
9318 extern "C"
9319 #endif
9320 char xmlFirstElementChild ();
9322 main ()
9324 return xmlFirstElementChild ();
9326 return 0;
9328 _ACEOF
9329 if ac_fn_c_try_link "$LINENO"; then :
9330 ac_cv_lib_xml2_xmlFirstElementChild=yes
9331 else
9332 ac_cv_lib_xml2_xmlFirstElementChild=no
9334 rm -f core conftest.err conftest.$ac_objext \
9335 conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9339 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9340 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9342 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9346 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9348 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9350 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9355 CPPFLAGS="$ac_save_CPPFLAGS"
9357 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9358 case "x$with_xml" in
9359 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9360 xno) ;;
9361 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9362 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9363 esac
9366 if test "x$with_xslt" != "xno"
9367 then
9368 if test "$PKG_CONFIG" != "false"
9369 then
9370 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9371 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9372 else
9373 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9374 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9376 ac_save_CPPFLAGS="$CPPFLAGS"
9377 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9378 for ac_header in libxslt/pattern.h libxslt/transform.h
9379 do :
9380 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9381 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9382 # include <libxslt/pattern.h>
9383 #endif
9385 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9386 cat >>confdefs.h <<_ACEOF
9387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9388 _ACEOF
9392 done
9394 CPPFLAGS="$ac_save_CPPFLAGS"
9395 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9396 then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9398 $as_echo_n "checking for -lxslt... " >&6; }
9399 if ${ac_cv_lib_soname_xslt+:} false; then :
9400 $as_echo_n "(cached) " >&6
9401 else
9402 ac_check_soname_save_LIBS=$LIBS
9403 LIBS="-lxslt $ac_xslt_libs $LIBS"
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9407 /* Override any GCC internal prototype to avoid an error.
9408 Use char because int might match the return type of a GCC
9409 builtin and then its argument prototype would still apply. */
9410 #ifdef __cplusplus
9411 extern "C"
9412 #endif
9413 char xsltCompilePattern ();
9415 main ()
9417 return xsltCompilePattern ();
9419 return 0;
9421 _ACEOF
9422 if ac_fn_c_try_link "$LINENO"; then :
9423 case "$LIBEXT" in
9424 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9425 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'` ;;
9426 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9427 esac
9429 rm -f core conftest.err conftest.$ac_objext \
9430 conftest$ac_exeext conftest.$ac_ext
9431 LIBS=$ac_check_soname_save_LIBS
9433 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9435 $as_echo "not found" >&6; }
9437 else
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9439 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9441 cat >>confdefs.h <<_ACEOF
9442 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9443 _ACEOF
9445 XSLTINCL="$ac_xslt_cflags"
9449 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9450 case "x$with_xslt" in
9451 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9452 xno) ;;
9453 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9454 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9455 esac
9458 HALINCL=""
9460 if test "x$with_hal" != "xno"
9461 then
9462 ac_save_CPPFLAGS="$CPPFLAGS"
9463 if test "$PKG_CONFIG" != "false"
9464 then
9465 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9466 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9467 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9469 for ac_header in dbus/dbus.h hal/libhal.h
9470 do :
9471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9472 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9473 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9474 cat >>confdefs.h <<_ACEOF
9475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9476 _ACEOF
9480 done
9482 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9483 then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9485 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9486 if ${ac_cv_lib_dbus_1_dbus_connection_close+:} false; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 ac_check_lib_save_LIBS=$LIBS
9490 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9494 /* Override any GCC internal prototype to avoid an error.
9495 Use char because int might match the return type of a GCC
9496 builtin and then its argument prototype would still apply. */
9497 #ifdef __cplusplus
9498 extern "C"
9499 #endif
9500 char dbus_connection_close ();
9502 main ()
9504 return dbus_connection_close ();
9506 return 0;
9508 _ACEOF
9509 if ac_fn_c_try_link "$LINENO"; then :
9510 ac_cv_lib_dbus_1_dbus_connection_close=yes
9511 else
9512 ac_cv_lib_dbus_1_dbus_connection_close=no
9514 rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9516 LIBS=$ac_check_lib_save_LIBS
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9519 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9520 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = xyes; then :
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9522 $as_echo_n "checking for -lhal... " >&6; }
9523 if ${ac_cv_lib_soname_hal+:} false; then :
9524 $as_echo_n "(cached) " >&6
9525 else
9526 ac_check_soname_save_LIBS=$LIBS
9527 LIBS="-lhal $ac_hal_libs $LIBS"
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9531 /* Override any GCC internal prototype to avoid an error.
9532 Use char because int might match the return type of a GCC
9533 builtin and then its argument prototype would still apply. */
9534 #ifdef __cplusplus
9535 extern "C"
9536 #endif
9537 char libhal_ctx_new ();
9539 main ()
9541 return libhal_ctx_new ();
9543 return 0;
9545 _ACEOF
9546 if ac_fn_c_try_link "$LINENO"; then :
9547 case "$LIBEXT" in
9548 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9549 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'` ;;
9550 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9551 esac
9553 rm -f core conftest.err conftest.$ac_objext \
9554 conftest$ac_exeext conftest.$ac_ext
9555 LIBS=$ac_check_soname_save_LIBS
9557 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9559 $as_echo "not found" >&6; }
9561 else
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9563 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9565 cat >>confdefs.h <<_ACEOF
9566 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9567 _ACEOF
9569 HALINCL="$ac_hal_cflags"
9574 CPPFLAGS="$ac_save_CPPFLAGS"
9576 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9577 case "x$with_hal" in
9578 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9579 xno) ;;
9580 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9581 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9582 esac
9585 if test "x$with_gnutls" != "xno"
9586 then
9587 ac_save_CPPFLAGS="$CPPFLAGS"
9588 if test "$PKG_CONFIG" != "false"
9589 then
9590 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9591 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9592 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9594 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9595 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598 #include <gnutls/gnutls.h>
9600 main ()
9602 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9604 return 0;
9606 _ACEOF
9607 if ac_fn_c_try_compile "$LINENO"; then :
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9609 $as_echo_n "checking for -lgnutls... " >&6; }
9610 if ${ac_cv_lib_soname_gnutls+:} false; then :
9611 $as_echo_n "(cached) " >&6
9612 else
9613 ac_check_soname_save_LIBS=$LIBS
9614 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9618 /* Override any GCC internal prototype to avoid an error.
9619 Use char because int might match the return type of a GCC
9620 builtin and then its argument prototype would still apply. */
9621 #ifdef __cplusplus
9622 extern "C"
9623 #endif
9624 char gnutls_global_init ();
9626 main ()
9628 return gnutls_global_init ();
9630 return 0;
9632 _ACEOF
9633 if ac_fn_c_try_link "$LINENO"; then :
9634 case "$LIBEXT" in
9635 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9636 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'` ;;
9637 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9638 esac
9640 rm -f core conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642 LIBS=$ac_check_soname_save_LIBS
9644 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9646 $as_echo "not found" >&6; }
9648 else
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9650 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9652 cat >>confdefs.h <<_ACEOF
9653 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9654 _ACEOF
9656 GNUTLSINCL="$ac_gnutls_cflags"
9660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664 CPPFLAGS="$ac_save_CPPFLAGS"
9666 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9667 case "x$with_gnutls" in
9668 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9669 xno) ;;
9670 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9671 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9672 esac
9675 CURSESLIBS=""
9676 if test "$ac_cv_header_ncurses_h" = "yes"
9677 then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9679 $as_echo_n "checking for -lncurses... " >&6; }
9680 if ${ac_cv_lib_soname_ncurses+:} false; then :
9681 $as_echo_n "(cached) " >&6
9682 else
9683 ac_check_soname_save_LIBS=$LIBS
9684 LIBS="-lncurses $LIBS"
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h. */
9688 /* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
9691 #ifdef __cplusplus
9692 extern "C"
9693 #endif
9694 char waddch ();
9696 main ()
9698 return waddch ();
9700 return 0;
9702 _ACEOF
9703 if ac_fn_c_try_link "$LINENO"; then :
9704 case "$LIBEXT" in
9705 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9706 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'` ;;
9707 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9708 esac
9710 rm -f core conftest.err conftest.$ac_objext \
9711 conftest$ac_exeext conftest.$ac_ext
9712 LIBS=$ac_check_soname_save_LIBS
9714 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9716 $as_echo "not found" >&6; }
9718 else
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9720 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9722 cat >>confdefs.h <<_ACEOF
9723 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9724 _ACEOF
9726 CURSESLIBS="-lncurses"
9728 elif test "$ac_cv_header_curses_h" = "yes"
9729 then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9731 $as_echo_n "checking for -lcurses... " >&6; }
9732 if ${ac_cv_lib_soname_curses+:} false; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 ac_check_soname_save_LIBS=$LIBS
9736 LIBS="-lcurses $LIBS"
9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9738 /* end confdefs.h. */
9740 /* Override any GCC internal prototype to avoid an error.
9741 Use char because int might match the return type of a GCC
9742 builtin and then its argument prototype would still apply. */
9743 #ifdef __cplusplus
9744 extern "C"
9745 #endif
9746 char waddch ();
9748 main ()
9750 return waddch ();
9752 return 0;
9754 _ACEOF
9755 if ac_fn_c_try_link "$LINENO"; then :
9756 case "$LIBEXT" in
9757 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9758 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'` ;;
9759 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9760 esac
9762 rm -f core conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_soname_save_LIBS
9766 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9768 $as_echo "not found" >&6; }
9770 else
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9772 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9774 cat >>confdefs.h <<_ACEOF
9775 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9776 _ACEOF
9778 CURSESLIBS="-lcurses"
9781 ac_save_LIBS="$LIBS"
9782 LIBS="$LIBS $CURSESLIBS"
9783 for ac_func in mousemask
9784 do :
9785 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9786 if test "x$ac_cv_func_mousemask" = xyes; then :
9787 cat >>confdefs.h <<_ACEOF
9788 #define HAVE_MOUSEMASK 1
9789 _ACEOF
9792 done
9794 LIBS="$ac_save_LIBS"
9795 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9796 case "x$with_curses" in
9797 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9798 xno) ;;
9799 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9800 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9801 esac
9804 if test "x$with_sane" != "xno"
9805 then
9806 ac_save_CPPFLAGS="$CPPFLAGS"
9807 # Extract the first word of "sane-config", so it can be a program name with args.
9808 set dummy sane-config; ac_word=$2
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9810 $as_echo_n "checking for $ac_word... " >&6; }
9811 if ${ac_cv_prog_sane_devel+:} false; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 if test -n "$sane_devel"; then
9815 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9816 else
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818 for as_dir in $PATH
9820 IFS=$as_save_IFS
9821 test -z "$as_dir" && as_dir=.
9822 for ac_exec_ext in '' $ac_executable_extensions; do
9823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9824 ac_cv_prog_sane_devel="sane-config"
9825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9826 break 2
9828 done
9829 done
9830 IFS=$as_save_IFS
9832 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9835 sane_devel=$ac_cv_prog_sane_devel
9836 if test -n "$sane_devel"; then
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9838 $as_echo "$sane_devel" >&6; }
9839 else
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841 $as_echo "no" >&6; }
9845 if test "$sane_devel" != "no"
9846 then
9847 ac_sane_incl="`$sane_devel --cflags`"
9848 ac_sane_libs="`$sane_devel --ldflags`"
9849 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9851 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9852 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9854 $as_echo_n "checking for -lsane... " >&6; }
9855 if ${ac_cv_lib_soname_sane+:} false; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 ac_check_soname_save_LIBS=$LIBS
9859 LIBS="-lsane $ac_sane_libs $LIBS"
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9863 /* Override any GCC internal prototype to avoid an error.
9864 Use char because int might match the return type of a GCC
9865 builtin and then its argument prototype would still apply. */
9866 #ifdef __cplusplus
9867 extern "C"
9868 #endif
9869 char sane_init ();
9871 main ()
9873 return sane_init ();
9875 return 0;
9877 _ACEOF
9878 if ac_fn_c_try_link "$LINENO"; then :
9879 case "$LIBEXT" in
9880 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9881 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'` ;;
9882 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9883 esac
9885 rm -f core conftest.err conftest.$ac_objext \
9886 conftest$ac_exeext conftest.$ac_ext
9887 LIBS=$ac_check_soname_save_LIBS
9889 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9891 $as_echo "not found" >&6; }
9893 else
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9895 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9897 cat >>confdefs.h <<_ACEOF
9898 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9899 _ACEOF
9901 SANEINCL="$ac_sane_incl"
9907 CPPFLAGS="$ac_save_CPPFLAGS"
9909 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9910 case "x$with_sane" in
9911 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9912 xno) ;;
9913 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9914 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9915 esac
9918 if test "x$with_v4l" != "xno"
9919 then
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9921 $as_echo_n "checking for -lv4l1... " >&6; }
9922 if ${ac_cv_lib_soname_v4l1+:} false; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 ac_check_soname_save_LIBS=$LIBS
9926 LIBS="-lv4l1 $LIBS"
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9930 /* Override any GCC internal prototype to avoid an error.
9931 Use char because int might match the return type of a GCC
9932 builtin and then its argument prototype would still apply. */
9933 #ifdef __cplusplus
9934 extern "C"
9935 #endif
9936 char v4l1_open ();
9938 main ()
9940 return v4l1_open ();
9942 return 0;
9944 _ACEOF
9945 if ac_fn_c_try_link "$LINENO"; then :
9946 case "$LIBEXT" in
9947 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9948 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'` ;;
9949 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9950 esac
9952 rm -f core conftest.err conftest.$ac_objext \
9953 conftest$ac_exeext conftest.$ac_ext
9954 LIBS=$ac_check_soname_save_LIBS
9956 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9958 $as_echo "not found" >&6; }
9960 else
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9962 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9964 cat >>confdefs.h <<_ACEOF
9965 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9966 _ACEOF
9971 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9972 case "x$with_v4l" in
9973 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
9974 xno) ;;
9975 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
9976 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9977 esac
9980 if test "x$with_gphoto" != "xno"
9981 then
9982 ac_save_CPPFLAGS="$CPPFLAGS"
9983 # Extract the first word of "gphoto2-config", so it can be a program name with args.
9984 set dummy gphoto2-config; ac_word=$2
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986 $as_echo_n "checking for $ac_word... " >&6; }
9987 if ${ac_cv_prog_gphoto2_devel+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 if test -n "$gphoto2_devel"; then
9991 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9992 else
9993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994 for as_dir in $PATH
9996 IFS=$as_save_IFS
9997 test -z "$as_dir" && as_dir=.
9998 for ac_exec_ext in '' $ac_executable_extensions; do
9999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10000 ac_cv_prog_gphoto2_devel="gphoto2-config"
10001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 break 2
10004 done
10005 done
10006 IFS=$as_save_IFS
10008 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10011 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10012 if test -n "$gphoto2_devel"; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10014 $as_echo "$gphoto2_devel" >&6; }
10015 else
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10021 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10022 set dummy gphoto2-port-config; ac_word=$2
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10024 $as_echo_n "checking for $ac_word... " >&6; }
10025 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 if test -n "$gphoto2port_devel"; then
10029 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10030 else
10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032 for as_dir in $PATH
10034 IFS=$as_save_IFS
10035 test -z "$as_dir" && as_dir=.
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10038 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10040 break 2
10042 done
10043 done
10044 IFS=$as_save_IFS
10046 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10049 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10050 if test -n "$gphoto2port_devel"; then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10052 $as_echo "$gphoto2port_devel" >&6; }
10053 else
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10059 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10060 then
10061 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10062 ac_gphoto2_libs=""
10063 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10065 case "$i" in
10066 -L/usr/lib|-L/usr/lib64) ;;
10067 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10068 esac
10069 done
10070 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10072 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10073 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10074 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10076 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10077 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 ac_check_lib_save_LIBS=$LIBS
10081 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10085 /* Override any GCC internal prototype to avoid an error.
10086 Use char because int might match the return type of a GCC
10087 builtin and then its argument prototype would still apply. */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 char gp_camera_new ();
10093 main ()
10095 return gp_camera_new ();
10097 return 0;
10099 _ACEOF
10100 if ac_fn_c_try_link "$LINENO"; then :
10101 ac_cv_lib_gphoto2_gp_camera_new=yes
10102 else
10103 ac_cv_lib_gphoto2_gp_camera_new=no
10105 rm -f core conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107 LIBS=$ac_check_lib_save_LIBS
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10110 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10111 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10113 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10115 GPHOTO2LIBS="$ac_gphoto2_libs"
10117 GPHOTO2INCL="$ac_gphoto2_incl"
10124 CPPFLAGS="$ac_save_CPPFLAGS"
10126 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10127 case "x$with_gphoto" in
10128 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10129 xno) ;;
10130 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10131 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10132 esac
10136 if test "$ac_cv_header_resolv_h" = "yes"
10137 then
10138 ac_save_LIBS="$LIBS"
10139 for lib in '' -lresolv
10141 LIBS="$lib $ac_save_LIBS"
10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143 /* end confdefs.h. */
10144 #ifdef HAVE_NETINET_IN_H
10145 #include <netinet/in.h>
10146 #endif
10147 #include <resolv.h>
10149 main ()
10151 res_query("foo",ns_c_in,0,0,0);
10153 return 0;
10155 _ACEOF
10156 if ac_fn_c_try_link "$LINENO"; then :
10158 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10160 RESOLVLIBS="$lib"
10163 rm -f core conftest.err conftest.$ac_objext \
10164 conftest$ac_exeext conftest.$ac_ext
10165 if test "${RESOLVLIBS+set}" = set; then
10166 break
10168 done
10169 LIBS="$ac_save_LIBS"
10172 LCMSLIBS=""
10174 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10175 then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10177 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10178 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10179 $as_echo_n "(cached) " >&6
10180 else
10181 ac_check_lib_save_LIBS=$LIBS
10182 LIBS="-llcms $LIBS"
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10186 /* Override any GCC internal prototype to avoid an error.
10187 Use char because int might match the return type of a GCC
10188 builtin and then its argument prototype would still apply. */
10189 #ifdef __cplusplus
10190 extern "C"
10191 #endif
10192 char cmsOpenProfileFromFile ();
10194 main ()
10196 return cmsOpenProfileFromFile ();
10198 return 0;
10200 _ACEOF
10201 if ac_fn_c_try_link "$LINENO"; then :
10202 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10203 else
10204 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10206 rm -f core conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
10208 LIBS=$ac_check_lib_save_LIBS
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10211 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10212 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10214 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10216 LCMSLIBS="-llcms"
10220 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10221 case "x$with_cms" in
10222 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10223 xno) ;;
10224 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10225 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10226 esac
10229 if test "x$with_freetype" != "xno"
10230 then
10231 for ac_prog in freetype-config freetype2-config
10233 # Extract the first word of "$ac_prog", so it can be a program name with args.
10234 set dummy $ac_prog; ac_word=$2
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10236 $as_echo_n "checking for $ac_word... " >&6; }
10237 if ${ac_cv_prog_ft_devel+:} false; then :
10238 $as_echo_n "(cached) " >&6
10239 else
10240 if test -n "$ft_devel"; then
10241 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10242 else
10243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10244 for as_dir in $PATH
10246 IFS=$as_save_IFS
10247 test -z "$as_dir" && as_dir=.
10248 for ac_exec_ext in '' $ac_executable_extensions; do
10249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10250 ac_cv_prog_ft_devel="$ac_prog"
10251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10252 break 2
10254 done
10255 done
10256 IFS=$as_save_IFS
10260 ft_devel=$ac_cv_prog_ft_devel
10261 if test -n "$ft_devel"; then
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10263 $as_echo "$ft_devel" >&6; }
10264 else
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10266 $as_echo "no" >&6; }
10270 test -n "$ft_devel" && break
10271 done
10272 test -n "$ft_devel" || ft_devel="no"
10274 if test "$ft_devel" != "no"
10275 then
10276 ac_freetype_incl=`$ft_devel --cflags`
10277 ac_freetype_libs=`$ft_devel --libs`
10279 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10281 $as_echo_n "checking for -lfreetype... " >&6; }
10282 if ${ac_cv_lib_soname_freetype+:} false; then :
10283 $as_echo_n "(cached) " >&6
10284 else
10285 ac_check_soname_save_LIBS=$LIBS
10286 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288 /* end confdefs.h. */
10290 /* Override any GCC internal prototype to avoid an error.
10291 Use char because int might match the return type of a GCC
10292 builtin and then its argument prototype would still apply. */
10293 #ifdef __cplusplus
10294 extern "C"
10295 #endif
10296 char FT_Init_FreeType ();
10298 main ()
10300 return FT_Init_FreeType ();
10302 return 0;
10304 _ACEOF
10305 if ac_fn_c_try_link "$LINENO"; then :
10306 case "$LIBEXT" in
10307 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10308 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'` ;;
10309 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10310 esac
10312 rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10314 LIBS=$ac_check_soname_save_LIBS
10316 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10318 $as_echo "not found" >&6; }
10319 ft_lib=no
10320 else
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10322 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10324 cat >>confdefs.h <<_ACEOF
10325 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10326 _ACEOF
10328 ft_lib=yes
10330 if test "$ft_lib" = "yes"
10331 then
10332 ac_save_CPPFLAGS="$CPPFLAGS"
10333 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10334 for ac_header in ft2build.h \
10335 freetype/freetype.h \
10336 freetype/ftglyph.h \
10337 freetype/fttypes.h \
10338 freetype/tttables.h \
10339 freetype/ftsnames.h \
10340 freetype/ttnameid.h \
10341 freetype/ftoutln.h \
10342 freetype/ftwinfnt.h \
10343 freetype/ftmodapi.h \
10344 freetype/ftlcdfil.h
10345 do :
10346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10347 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10348 # include <ft2build.h>
10349 #endif
10351 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10352 cat >>confdefs.h <<_ACEOF
10353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10354 _ACEOF
10358 done
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10362 #include <ft2build.h>
10363 #include <freetype/fttrigon.h>
10364 _ACEOF
10365 if ac_fn_c_try_cpp "$LINENO"; then :
10367 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10369 wine_cv_fttrigon=yes
10370 else
10371 wine_cv_fttrigon=no
10373 rm -f conftest.err conftest.i conftest.$ac_ext
10374 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10376 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10378 cat >>confdefs.h <<_ACEOF
10379 #define HAVE_FT_TRUETYPEENGINETYPE 1
10380 _ACEOF
10385 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10386 then
10388 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10390 FREETYPELIBS="$ac_freetype_libs"
10392 FREETYPEINCL="$ac_freetype_incl"
10397 if test "x$FREETYPELIBS" = "x"; then :
10398 case "x$with_freetype" in
10399 xno) ;;
10400 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10401 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10402 esac
10404 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10407 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10408 if ${ac_cv_c_ppdev+:} false; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413 #ifdef HAVE_SYS_IOCTL_H
10414 # include <sys/ioctl.h>
10415 #endif
10416 #include <linux/ppdev.h>
10418 main ()
10420 ioctl (1,PPCLAIM,0)
10422 return 0;
10424 _ACEOF
10425 if ac_fn_c_try_compile "$LINENO"; then :
10426 ac_cv_c_ppdev="yes"
10427 else
10428 ac_cv_c_ppdev="no"
10430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10433 $as_echo "$ac_cv_c_ppdev" >&6; }
10434 if test "$ac_cv_c_ppdev" = "yes"
10435 then
10437 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10441 ac_wine_check_funcs_save_LIBS="$LIBS"
10442 LIBS="$LIBS $LIBPTHREAD"
10443 for ac_func in \
10444 pthread_attr_get_np \
10445 pthread_getattr_np \
10446 pthread_get_stackaddr_np \
10447 pthread_get_stacksize_np
10448 do :
10449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10450 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10451 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10452 cat >>confdefs.h <<_ACEOF
10453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10454 _ACEOF
10457 done
10459 LIBS="$ac_wine_check_funcs_save_LIBS"
10461 if test "$ac_cv_header_zlib_h" = "yes"
10462 then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10464 $as_echo_n "checking for inflate in -lz... " >&6; }
10465 if ${ac_cv_lib_z_inflate+:} false; then :
10466 $as_echo_n "(cached) " >&6
10467 else
10468 ac_check_lib_save_LIBS=$LIBS
10469 LIBS="-lz $LIBS"
10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h. */
10473 /* Override any GCC internal prototype to avoid an error.
10474 Use char because int might match the return type of a GCC
10475 builtin and then its argument prototype would still apply. */
10476 #ifdef __cplusplus
10477 extern "C"
10478 #endif
10479 char inflate ();
10481 main ()
10483 return inflate ();
10485 return 0;
10487 _ACEOF
10488 if ac_fn_c_try_link "$LINENO"; then :
10489 ac_cv_lib_z_inflate=yes
10490 else
10491 ac_cv_lib_z_inflate=no
10493 rm -f core conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10498 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10499 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10501 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10503 ZLIB="-lz"
10508 if test "x$ZLIB" = "x"; then :
10509 case "x$with_zlib" in
10510 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10511 xno) ;;
10512 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10513 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10514 esac
10517 if test "x$enable_tools" != xno
10518 then
10519 if test "$ac_cv_header_gettext_po_h" = "yes"
10520 then
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10522 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10523 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10524 $as_echo_n "(cached) " >&6
10525 else
10526 ac_check_lib_save_LIBS=$LIBS
10527 LIBS="-lgettextpo $LIBS"
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10531 /* Override any GCC internal prototype to avoid an error.
10532 Use char because int might match the return type of a GCC
10533 builtin and then its argument prototype would still apply. */
10534 #ifdef __cplusplus
10535 extern "C"
10536 #endif
10537 char po_message_msgctxt ();
10539 main ()
10541 return po_message_msgctxt ();
10543 return 0;
10545 _ACEOF
10546 if ac_fn_c_try_link "$LINENO"; then :
10547 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10548 else
10549 ac_cv_lib_gettextpo_po_message_msgctxt=no
10551 rm -f core conftest.err conftest.$ac_objext \
10552 conftest$ac_exeext conftest.$ac_ext
10553 LIBS=$ac_check_lib_save_LIBS
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10556 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10557 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10559 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10561 LIBGETTEXTPO="-lgettextpo"
10566 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10567 case "x$with_gettextpo" in
10568 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10569 xno) ;;
10570 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10571 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10572 esac
10576 if test "x$with_gstreamer" != "xno"
10577 then
10578 ac_save_CPPFLAGS="$CPPFLAGS"
10579 if test "$PKG_CONFIG" != "false"; then
10580 ac_gst_incl=""
10581 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10583 case "$i" in
10584 -I*) ac_gst_incl="$ac_gst_incl $i";;
10585 esac
10586 done
10587 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10588 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10589 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10590 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10591 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10592 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10594 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 #include <gst/app/gstappsink.h>
10599 main ()
10601 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10603 return 0;
10605 _ACEOF
10606 if ac_fn_c_try_compile "$LINENO"; then :
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10608 $as_echo "yes" >&6; }
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10610 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10611 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10612 $as_echo_n "(cached) " >&6
10613 else
10614 ac_check_lib_save_LIBS=$LIBS
10615 LIBS="-lgstreamer-0.10 $LIBS"
10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h. */
10619 /* Override any GCC internal prototype to avoid an error.
10620 Use char because int might match the return type of a GCC
10621 builtin and then its argument prototype would still apply. */
10622 #ifdef __cplusplus
10623 extern "C"
10624 #endif
10625 char gst_pad_get_caps_reffed ();
10627 main ()
10629 return gst_pad_get_caps_reffed ();
10631 return 0;
10633 _ACEOF
10634 if ac_fn_c_try_link "$LINENO"; then :
10635 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10636 else
10637 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10639 rm -f core conftest.err conftest.$ac_objext \
10640 conftest$ac_exeext conftest.$ac_ext
10641 LIBS=$ac_check_lib_save_LIBS
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10644 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10645 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10647 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10648 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10649 $as_echo_n "(cached) " >&6
10650 else
10651 ac_check_lib_save_LIBS=$LIBS
10652 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654 /* end confdefs.h. */
10656 /* Override any GCC internal prototype to avoid an error.
10657 Use char because int might match the return type of a GCC
10658 builtin and then its argument prototype would still apply. */
10659 #ifdef __cplusplus
10660 extern "C"
10661 #endif
10662 char gst_app_buffer_new ();
10664 main ()
10666 return gst_app_buffer_new ();
10668 return 0;
10670 _ACEOF
10671 if ac_fn_c_try_link "$LINENO"; then :
10672 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10673 else
10674 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10676 rm -f core conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10678 LIBS=$ac_check_lib_save_LIBS
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10681 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10682 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10683 GSTREAMER_LIBS="$ac_gst_libs"
10685 GSTREAMER_INCL="$ac_gst_incl"
10691 else
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693 $as_echo "no" >&6; }
10695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10703 CPPFLAGS="$ac_save_CPPFLAGS"
10705 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10706 case "x$with_gstreamer" in
10707 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10708 xno) ;;
10709 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10710 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10711 esac
10713 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10715 ALSALIBS=""
10717 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10718 then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10720 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10721 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10722 $as_echo_n "(cached) " >&6
10723 else
10724 ac_check_lib_save_LIBS=$LIBS
10725 LIBS="-lasound $LIBS"
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10729 /* Override any GCC internal prototype to avoid an error.
10730 Use char because int might match the return type of a GCC
10731 builtin and then its argument prototype would still apply. */
10732 #ifdef __cplusplus
10733 extern "C"
10734 #endif
10735 char snd_pcm_hw_params_get_access_mask ();
10737 main ()
10739 return snd_pcm_hw_params_get_access_mask ();
10741 return 0;
10743 _ACEOF
10744 if ac_fn_c_try_link "$LINENO"; then :
10745 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10746 else
10747 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10749 rm -f core conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 LIBS=$ac_check_lib_save_LIBS
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10754 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10755 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10758 #ifdef HAVE_ALSA_ASOUNDLIB_H
10759 #include <alsa/asoundlib.h>
10760 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10761 #include <sys/asoundlib.h>
10762 #endif
10764 main ()
10766 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10768 return 0;
10770 _ACEOF
10771 if ac_fn_c_try_compile "$LINENO"; then :
10772 ALSALIBS="-lasound"
10774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10779 if test "x$with_oss" != xno
10780 then
10781 ac_save_CPPFLAGS="$CPPFLAGS"
10782 if test -f /etc/oss.conf
10783 then
10784 . /etc/oss.conf
10786 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10787 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10788 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10789 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10790 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10792 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10794 cat >>confdefs.h <<_ACEOF
10795 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10796 _ACEOF
10798 OSS4INCL="$ac_oss_incl"
10805 CPPFLAGS="$ac_save_CPPFLAGS"
10806 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10807 then
10808 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10813 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10814 then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10816 $as_echo_n "checking for -lcapi20... " >&6; }
10817 if ${ac_cv_lib_soname_capi20+:} false; then :
10818 $as_echo_n "(cached) " >&6
10819 else
10820 ac_check_soname_save_LIBS=$LIBS
10821 LIBS="-lcapi20 $LIBS"
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10825 /* Override any GCC internal prototype to avoid an error.
10826 Use char because int might match the return type of a GCC
10827 builtin and then its argument prototype would still apply. */
10828 #ifdef __cplusplus
10829 extern "C"
10830 #endif
10831 char capi20_register ();
10833 main ()
10835 return capi20_register ();
10837 return 0;
10839 _ACEOF
10840 if ac_fn_c_try_link "$LINENO"; then :
10841 case "$LIBEXT" in
10842 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10843 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'` ;;
10844 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10845 esac
10847 rm -f core conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_soname_save_LIBS
10851 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10853 $as_echo "not found" >&6; }
10855 else
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10857 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10859 cat >>confdefs.h <<_ACEOF
10860 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10861 _ACEOF
10866 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10867 case "x$with_capi" in
10868 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10869 xno) ;;
10870 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10871 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10872 esac
10875 CUPSINCL=""
10877 if test "x$with_cups" != "xno"
10878 then
10879 ac_save_CPPFLAGS="$CPPFLAGS"
10880 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10881 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10882 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10883 for ac_header in cups/cups.h
10884 do :
10885 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10886 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
10887 cat >>confdefs.h <<_ACEOF
10888 #define HAVE_CUPS_CUPS_H 1
10889 _ACEOF
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10891 $as_echo_n "checking for -lcups... " >&6; }
10892 if ${ac_cv_lib_soname_cups+:} false; then :
10893 $as_echo_n "(cached) " >&6
10894 else
10895 ac_check_soname_save_LIBS=$LIBS
10896 LIBS="-lcups $ac_cups_libs $LIBS"
10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10900 /* Override any GCC internal prototype to avoid an error.
10901 Use char because int might match the return type of a GCC
10902 builtin and then its argument prototype would still apply. */
10903 #ifdef __cplusplus
10904 extern "C"
10905 #endif
10906 char cupsGetDefault ();
10908 main ()
10910 return cupsGetDefault ();
10912 return 0;
10914 _ACEOF
10915 if ac_fn_c_try_link "$LINENO"; then :
10916 case "$LIBEXT" in
10917 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10918 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'` ;;
10919 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10920 esac
10922 rm -f core conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10924 LIBS=$ac_check_soname_save_LIBS
10926 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10928 $as_echo "not found" >&6; }
10930 else
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10932 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10934 cat >>confdefs.h <<_ACEOF
10935 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10936 _ACEOF
10938 CUPSINCL="$ac_cups_cflags"
10942 done
10944 CPPFLAGS="$ac_save_CPPFLAGS"
10946 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10947 case "x$with_cups" in
10948 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10949 xno) ;;
10950 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
10951 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10952 esac
10955 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10956 then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10958 $as_echo_n "checking for -lfontconfig... " >&6; }
10959 if ${ac_cv_lib_soname_fontconfig+:} false; then :
10960 $as_echo_n "(cached) " >&6
10961 else
10962 ac_check_soname_save_LIBS=$LIBS
10963 LIBS="-lfontconfig $LIBS"
10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h. */
10967 /* Override any GCC internal prototype to avoid an error.
10968 Use char because int might match the return type of a GCC
10969 builtin and then its argument prototype would still apply. */
10970 #ifdef __cplusplus
10971 extern "C"
10972 #endif
10973 char FcInit ();
10975 main ()
10977 return FcInit ();
10979 return 0;
10981 _ACEOF
10982 if ac_fn_c_try_link "$LINENO"; then :
10983 case "$LIBEXT" in
10984 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10985 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'` ;;
10986 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10987 esac
10989 rm -f core conftest.err conftest.$ac_objext \
10990 conftest$ac_exeext conftest.$ac_ext
10991 LIBS=$ac_check_soname_save_LIBS
10993 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10995 $as_echo "not found" >&6; }
10997 else
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10999 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11001 cat >>confdefs.h <<_ACEOF
11002 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11003 _ACEOF
11007 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11008 then
11009 ac_save_CPPFLAGS="$CPPFLAGS"
11010 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11011 $as_unset ac_cv_header_fontconfig_fontconfig_h
11012 for ac_header in fontconfig/fontconfig.h
11013 do :
11014 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11015 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11016 cat >>confdefs.h <<_ACEOF
11017 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11018 _ACEOF
11022 done
11024 CPPFLAGS="$ac_save_CPPFLAGS"
11025 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11026 then
11027 FONTCONFIGINCL="$X_CFLAGS"
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11030 $as_echo_n "checking for -lfontconfig... " >&6; }
11031 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11032 $as_echo_n "(cached) " >&6
11033 else
11034 ac_check_soname_save_LIBS=$LIBS
11035 LIBS="-lfontconfig $X_LIBS $LIBS"
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 char FcInit ();
11047 main ()
11049 return FcInit ();
11051 return 0;
11053 _ACEOF
11054 if ac_fn_c_try_link "$LINENO"; then :
11055 case "$LIBEXT" in
11056 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11057 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'` ;;
11058 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11059 esac
11061 rm -f core conftest.err conftest.$ac_objext \
11062 conftest$ac_exeext conftest.$ac_ext
11063 LIBS=$ac_check_soname_save_LIBS
11065 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11067 $as_echo "not found" >&6; }
11069 else
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11071 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11073 cat >>confdefs.h <<_ACEOF
11074 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11075 _ACEOF
11081 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11082 case "x$with_fontconfig" in
11083 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11084 xno) ;;
11085 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11086 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11087 esac
11090 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11091 then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11093 $as_echo_n "checking for -lssl... " >&6; }
11094 if ${ac_cv_lib_soname_ssl+:} false; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 ac_check_soname_save_LIBS=$LIBS
11098 LIBS="-lssl $LIBS"
11099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100 /* end confdefs.h. */
11102 /* Override any GCC internal prototype to avoid an error.
11103 Use char because int might match the return type of a GCC
11104 builtin and then its argument prototype would still apply. */
11105 #ifdef __cplusplus
11106 extern "C"
11107 #endif
11108 char SSL_library_init ();
11110 main ()
11112 return SSL_library_init ();
11114 return 0;
11116 _ACEOF
11117 if ac_fn_c_try_link "$LINENO"; then :
11118 case "$LIBEXT" in
11119 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11120 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'` ;;
11121 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11122 esac
11124 rm -f core conftest.err conftest.$ac_objext \
11125 conftest$ac_exeext conftest.$ac_ext
11126 LIBS=$ac_check_soname_save_LIBS
11128 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11130 $as_echo "not found" >&6; }
11132 else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11134 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11136 cat >>confdefs.h <<_ACEOF
11137 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11138 _ACEOF
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11143 $as_echo_n "checking for -lcrypto... " >&6; }
11144 if ${ac_cv_lib_soname_crypto+:} false; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 ac_check_soname_save_LIBS=$LIBS
11148 LIBS="-lcrypto $LIBS"
11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11152 /* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11155 #ifdef __cplusplus
11156 extern "C"
11157 #endif
11158 char BIO_new_socket ();
11160 main ()
11162 return BIO_new_socket ();
11164 return 0;
11166 _ACEOF
11167 if ac_fn_c_try_link "$LINENO"; then :
11168 case "$LIBEXT" in
11169 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11170 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'` ;;
11171 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11172 esac
11174 rm -f core conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
11176 LIBS=$ac_check_soname_save_LIBS
11178 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11180 $as_echo "not found" >&6; }
11182 else
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11184 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11186 cat >>confdefs.h <<_ACEOF
11187 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11188 _ACEOF
11193 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11194 case "x$with_openssl" in
11195 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11196 xno) ;;
11197 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11198 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11199 esac
11202 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11203 then
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11205 $as_echo_n "checking for -lgsm... " >&6; }
11206 if ${ac_cv_lib_soname_gsm+:} false; then :
11207 $as_echo_n "(cached) " >&6
11208 else
11209 ac_check_soname_save_LIBS=$LIBS
11210 LIBS="-lgsm $LIBS"
11211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11212 /* end confdefs.h. */
11214 /* Override any GCC internal prototype to avoid an error.
11215 Use char because int might match the return type of a GCC
11216 builtin and then its argument prototype would still apply. */
11217 #ifdef __cplusplus
11218 extern "C"
11219 #endif
11220 char gsm_create ();
11222 main ()
11224 return gsm_create ();
11226 return 0;
11228 _ACEOF
11229 if ac_fn_c_try_link "$LINENO"; then :
11230 case "$LIBEXT" in
11231 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11232 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'` ;;
11233 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11234 esac
11236 rm -f core conftest.err conftest.$ac_objext \
11237 conftest$ac_exeext conftest.$ac_ext
11238 LIBS=$ac_check_soname_save_LIBS
11240 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11242 $as_echo "not found" >&6; }
11244 else
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11246 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11248 cat >>confdefs.h <<_ACEOF
11249 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11250 _ACEOF
11255 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11256 case "x$with_gsm" in
11257 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11258 xno) ;;
11259 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11260 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11261 esac
11264 if test "$ac_cv_header_jpeglib_h" = "yes"
11265 then
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11267 $as_echo_n "checking for -ljpeg... " >&6; }
11268 if ${ac_cv_lib_soname_jpeg+:} false; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 ac_check_soname_save_LIBS=$LIBS
11272 LIBS="-ljpeg $LIBS"
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11276 /* Override any GCC internal prototype to avoid an error.
11277 Use char because int might match the return type of a GCC
11278 builtin and then its argument prototype would still apply. */
11279 #ifdef __cplusplus
11280 extern "C"
11281 #endif
11282 char jpeg_start_decompress ();
11284 main ()
11286 return jpeg_start_decompress ();
11288 return 0;
11290 _ACEOF
11291 if ac_fn_c_try_link "$LINENO"; then :
11292 case "$LIBEXT" in
11293 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11294 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'` ;;
11295 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11296 esac
11298 rm -f core conftest.err conftest.$ac_objext \
11299 conftest$ac_exeext conftest.$ac_ext
11300 LIBS=$ac_check_soname_save_LIBS
11302 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11304 $as_echo "not found" >&6; }
11306 else
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11308 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11310 cat >>confdefs.h <<_ACEOF
11311 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11312 _ACEOF
11317 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11318 case "x$with_jpeg" in
11319 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11320 xno) ;;
11321 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11322 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11323 esac
11326 if test "$ac_cv_header_png_h" = "yes"
11327 then
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11329 $as_echo_n "checking for -lpng... " >&6; }
11330 if ${ac_cv_lib_soname_png+:} false; then :
11331 $as_echo_n "(cached) " >&6
11332 else
11333 ac_check_soname_save_LIBS=$LIBS
11334 LIBS="-lpng -lm -lz $LIBS"
11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h. */
11338 /* Override any GCC internal prototype to avoid an error.
11339 Use char because int might match the return type of a GCC
11340 builtin and then its argument prototype would still apply. */
11341 #ifdef __cplusplus
11342 extern "C"
11343 #endif
11344 char png_create_read_struct ();
11346 main ()
11348 return png_create_read_struct ();
11350 return 0;
11352 _ACEOF
11353 if ac_fn_c_try_link "$LINENO"; then :
11354 case "$LIBEXT" in
11355 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11356 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'` ;;
11357 *) 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'` ;;
11358 esac
11360 rm -f core conftest.err conftest.$ac_objext \
11361 conftest$ac_exeext conftest.$ac_ext
11362 LIBS=$ac_check_soname_save_LIBS
11364 if test "x$ac_cv_lib_soname_png" = "x"; then :
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11366 $as_echo "not found" >&6; }
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11370 $as_echo "$ac_cv_lib_soname_png" >&6; }
11372 cat >>confdefs.h <<_ACEOF
11373 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11374 _ACEOF
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11379 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11380 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 ac_check_lib_save_LIBS=$LIBS
11384 LIBS="-lpng -lm -lz $LIBS"
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11391 #ifdef __cplusplus
11392 extern "C"
11393 #endif
11394 char png_set_expand_gray_1_2_4_to_8 ();
11396 main ()
11398 return png_set_expand_gray_1_2_4_to_8 ();
11400 return 0;
11402 _ACEOF
11403 if ac_fn_c_try_link "$LINENO"; then :
11404 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11405 else
11406 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11408 rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
11410 LIBS=$ac_check_lib_save_LIBS
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11413 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11414 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11416 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11421 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11422 then
11423 ac_save_CPPFLAGS="$CPPFLAGS"
11424 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11425 $as_unset ac_cv_header_png_h
11426 for ac_header in png.h
11427 do :
11428 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11429 if test "x$ac_cv_header_png_h" = xyes; then :
11430 cat >>confdefs.h <<_ACEOF
11431 #define HAVE_PNG_H 1
11432 _ACEOF
11436 done
11438 CPPFLAGS="$ac_save_CPPFLAGS"
11439 if test "$ac_cv_header_png_h" = "yes"
11440 then
11441 PNGINCL="$X_CFLAGS"
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11444 $as_echo_n "checking for -lpng... " >&6; }
11445 if ${ac_cv_lib_soname_png+:} false; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 ac_check_soname_save_LIBS=$LIBS
11449 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451 /* end confdefs.h. */
11453 /* Override any GCC internal prototype to avoid an error.
11454 Use char because int might match the return type of a GCC
11455 builtin and then its argument prototype would still apply. */
11456 #ifdef __cplusplus
11457 extern "C"
11458 #endif
11459 char png_create_read_struct ();
11461 main ()
11463 return png_create_read_struct ();
11465 return 0;
11467 _ACEOF
11468 if ac_fn_c_try_link "$LINENO"; then :
11469 case "$LIBEXT" in
11470 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11471 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'` ;;
11472 *) 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'` ;;
11473 esac
11475 rm -f core conftest.err conftest.$ac_objext \
11476 conftest$ac_exeext conftest.$ac_ext
11477 LIBS=$ac_check_soname_save_LIBS
11479 if test "x$ac_cv_lib_soname_png" = "x"; then :
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11481 $as_echo "not found" >&6; }
11483 else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11485 $as_echo "$ac_cv_lib_soname_png" >&6; }
11487 cat >>confdefs.h <<_ACEOF
11488 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11489 _ACEOF
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11494 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11495 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11496 $as_echo_n "(cached) " >&6
11497 else
11498 ac_check_lib_save_LIBS=$LIBS
11499 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11503 /* Override any GCC internal prototype to avoid an error.
11504 Use char because int might match the return type of a GCC
11505 builtin and then its argument prototype would still apply. */
11506 #ifdef __cplusplus
11507 extern "C"
11508 #endif
11509 char png_set_expand_gray_1_2_4_to_8 ();
11511 main ()
11513 return png_set_expand_gray_1_2_4_to_8 ();
11515 return 0;
11517 _ACEOF
11518 if ac_fn_c_try_link "$LINENO"; then :
11519 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11520 else
11521 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11523 rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_lib_save_LIBS
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11528 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11529 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11530 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11536 if test "x$ac_cv_lib_soname_png" = "x"; then :
11537 case "x$with_png" in
11538 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11539 xno) ;;
11540 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11541 This is an error since --with-png was requested." "$LINENO" 5 ;;
11542 esac
11545 if test "$ac_cv_header_tiffio_h" = "yes"
11546 then
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11548 $as_echo_n "checking for -ltiff... " >&6; }
11549 if ${ac_cv_lib_soname_tiff+:} false; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 ac_check_soname_save_LIBS=$LIBS
11553 LIBS="-ltiff $LIBS"
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11557 /* Override any GCC internal prototype to avoid an error.
11558 Use char because int might match the return type of a GCC
11559 builtin and then its argument prototype would still apply. */
11560 #ifdef __cplusplus
11561 extern "C"
11562 #endif
11563 char TIFFClientOpen ();
11565 main ()
11567 return TIFFClientOpen ();
11569 return 0;
11571 _ACEOF
11572 if ac_fn_c_try_link "$LINENO"; then :
11573 case "$LIBEXT" in
11574 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11575 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'` ;;
11576 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11577 esac
11579 rm -f core conftest.err conftest.$ac_objext \
11580 conftest$ac_exeext conftest.$ac_ext
11581 LIBS=$ac_check_soname_save_LIBS
11583 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11585 $as_echo "not found" >&6; }
11587 else
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11589 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11591 cat >>confdefs.h <<_ACEOF
11592 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11593 _ACEOF
11598 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11599 case "x$with_tiff" in
11600 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11601 xno) ;;
11602 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11603 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11604 esac
11607 if test "$ac_cv_header_mpg123_h" = "yes"
11608 then
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11610 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11611 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11612 $as_echo_n "(cached) " >&6
11613 else
11614 ac_check_lib_save_LIBS=$LIBS
11615 LIBS="-lmpg123 $LIBS"
11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h. */
11619 /* Override any GCC internal prototype to avoid an error.
11620 Use char because int might match the return type of a GCC
11621 builtin and then its argument prototype would still apply. */
11622 #ifdef __cplusplus
11623 extern "C"
11624 #endif
11625 char mpg123_feed ();
11627 main ()
11629 return mpg123_feed ();
11631 return 0;
11633 _ACEOF
11634 if ac_fn_c_try_link "$LINENO"; then :
11635 ac_cv_lib_mpg123_mpg123_feed=yes
11636 else
11637 ac_cv_lib_mpg123_mpg123_feed=no
11639 rm -f core conftest.err conftest.$ac_objext \
11640 conftest$ac_exeext conftest.$ac_ext
11641 LIBS=$ac_check_lib_save_LIBS
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11644 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11645 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11646 LIBMPG123="-lmpg123"
11651 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11652 case "x$with_mpg123" in
11653 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11654 xno) ;;
11655 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11656 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11657 esac
11659 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}
11661 if test "$ac_cv_header_AL_al_h" = "yes"
11662 then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11664 $as_echo_n "checking for -lopenal... " >&6; }
11665 if ${ac_cv_lib_soname_openal+:} false; then :
11666 $as_echo_n "(cached) " >&6
11667 else
11668 ac_check_soname_save_LIBS=$LIBS
11669 LIBS="-lopenal $LIBS"
11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11673 /* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11676 #ifdef __cplusplus
11677 extern "C"
11678 #endif
11679 char alGetSource3i ();
11681 main ()
11683 return alGetSource3i ();
11685 return 0;
11687 _ACEOF
11688 if ac_fn_c_try_link "$LINENO"; then :
11689 case "$LIBEXT" in
11690 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11691 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'` ;;
11692 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11693 esac
11695 rm -f core conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11697 LIBS=$ac_check_soname_save_LIBS
11699 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11701 $as_echo "not found" >&6; }
11703 else
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11705 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11707 cat >>confdefs.h <<_ACEOF
11708 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11709 _ACEOF
11711 LIBOPENAL="-lopenal"
11713 ac_cv_lib_openal=yes
11715 cat >>confdefs.h <<_ACEOF
11716 #define HAVE_OPENAL 1
11717 _ACEOF
11721 if test "x$ac_cv_lib_openal" != xyes; then :
11722 case "x$with_openal" in
11723 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11724 xno) ;;
11725 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11726 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11727 esac
11729 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11731 if test "$ac_cv_header_kstat_h" = "yes"
11732 then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11734 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11735 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 ac_check_lib_save_LIBS=$LIBS
11739 LIBS="-lkstat $LIBS"
11740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11743 /* Override any GCC internal prototype to avoid an error.
11744 Use char because int might match the return type of a GCC
11745 builtin and then its argument prototype would still apply. */
11746 #ifdef __cplusplus
11747 extern "C"
11748 #endif
11749 char kstat_open ();
11751 main ()
11753 return kstat_open ();
11755 return 0;
11757 _ACEOF
11758 if ac_fn_c_try_link "$LINENO"; then :
11759 ac_cv_lib_kstat_kstat_open=yes
11760 else
11761 ac_cv_lib_kstat_kstat_open=no
11763 rm -f core conftest.err conftest.$ac_objext \
11764 conftest$ac_exeext conftest.$ac_ext
11765 LIBS=$ac_check_lib_save_LIBS
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11768 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11769 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11771 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11773 LIBKSTAT="-lkstat"
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11780 $as_echo_n "checking for -lodbc... " >&6; }
11781 if ${ac_cv_lib_soname_odbc+:} false; then :
11782 $as_echo_n "(cached) " >&6
11783 else
11784 ac_check_soname_save_LIBS=$LIBS
11785 LIBS="-lodbc $LIBS"
11786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787 /* end confdefs.h. */
11789 /* Override any GCC internal prototype to avoid an error.
11790 Use char because int might match the return type of a GCC
11791 builtin and then its argument prototype would still apply. */
11792 #ifdef __cplusplus
11793 extern "C"
11794 #endif
11795 char SQLConnect ();
11797 main ()
11799 return SQLConnect ();
11801 return 0;
11803 _ACEOF
11804 if ac_fn_c_try_link "$LINENO"; then :
11805 case "$LIBEXT" in
11806 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11807 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'` ;;
11808 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11809 esac
11811 rm -f core conftest.err conftest.$ac_objext \
11812 conftest$ac_exeext conftest.$ac_ext
11813 LIBS=$ac_check_soname_save_LIBS
11815 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11817 $as_echo "not found" >&6; }
11818 cat >>confdefs.h <<_ACEOF
11819 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11820 _ACEOF
11822 else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11824 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11826 cat >>confdefs.h <<_ACEOF
11827 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11828 _ACEOF
11833 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11834 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
11835 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
11836 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11838 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
11839 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
11840 "x$with_alsa$with_coreaudio$with_oss" != xnonono
11841 then
11842 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11846 EXTRACFLAGS=""
11848 if test "x${GCC}" = "xyes"
11849 then
11850 EXTRACFLAGS="-Wall -pipe"
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11853 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11854 if ${ac_cv_c_gcc_strength_bug+:} false; then :
11855 $as_echo_n "(cached) " >&6
11856 else
11857 if test "$cross_compiling" = yes; then :
11858 ac_cv_c_gcc_strength_bug="yes"
11859 else
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11862 int L[4] = {0,1,2,3};
11864 main ()
11866 static int Array[3];
11867 unsigned int B = 3;
11868 int i;
11869 for(i=0; i<B; i++) Array[i] = i - 3;
11870 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11871 L[i] = 4;
11872 return (Array[1] != -2 || L[2] != 3)
11874 return 0;
11876 _ACEOF
11877 if ac_fn_c_try_run "$LINENO"; then :
11878 ac_cv_c_gcc_strength_bug="no"
11879 else
11880 ac_cv_c_gcc_strength_bug="yes"
11882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11883 conftest.$ac_objext conftest.beam conftest.$ac_ext
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11888 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11889 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11890 then
11891 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11895 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11896 if ${ac_cv_cflags__fno_builtin+:} false; then :
11897 $as_echo_n "(cached) " >&6
11898 else
11899 ac_wine_try_cflags_saved=$CFLAGS
11900 CFLAGS="$CFLAGS -fno-builtin"
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11903 int main(int argc, char **argv) { return 0; }
11904 _ACEOF
11905 if ac_fn_c_try_link "$LINENO"; then :
11906 ac_cv_cflags__fno_builtin=yes
11907 else
11908 ac_cv_cflags__fno_builtin=no
11910 rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 CFLAGS=$ac_wine_try_cflags_saved
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11915 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11916 if test $ac_cv_cflags__fno_builtin = yes; then :
11917 BUILTINFLAG="-fno-builtin"
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11921 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11922 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
11923 $as_echo_n "(cached) " >&6
11924 else
11925 ac_wine_try_cflags_saved=$CFLAGS
11926 CFLAGS="$CFLAGS -fno-strict-aliasing"
11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h. */
11929 int main(int argc, char **argv) { return 0; }
11930 _ACEOF
11931 if ac_fn_c_try_link "$LINENO"; then :
11932 ac_cv_cflags__fno_strict_aliasing=yes
11933 else
11934 ac_cv_cflags__fno_strict_aliasing=no
11936 rm -f core conftest.err conftest.$ac_objext \
11937 conftest$ac_exeext conftest.$ac_ext
11938 CFLAGS=$ac_wine_try_cflags_saved
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11941 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11942 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11943 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11946 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11947 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
11948 $as_echo_n "(cached) " >&6
11949 else
11950 ac_wine_try_cflags_saved=$CFLAGS
11951 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11954 int main(int argc, char **argv) { return 0; }
11955 _ACEOF
11956 if ac_fn_c_try_link "$LINENO"; then :
11957 ac_cv_cflags__Wdeclaration_after_statement=yes
11958 else
11959 ac_cv_cflags__Wdeclaration_after_statement=no
11961 rm -f core conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11963 CFLAGS=$ac_wine_try_cflags_saved
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
11966 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
11967 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
11968 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
11971 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
11972 if ${ac_cv_cflags__Wempty_body+:} false; then :
11973 $as_echo_n "(cached) " >&6
11974 else
11975 ac_wine_try_cflags_saved=$CFLAGS
11976 CFLAGS="$CFLAGS -Wempty-body"
11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h. */
11979 int main(int argc, char **argv) { return 0; }
11980 _ACEOF
11981 if ac_fn_c_try_link "$LINENO"; then :
11982 ac_cv_cflags__Wempty_body=yes
11983 else
11984 ac_cv_cflags__Wempty_body=no
11986 rm -f core conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11988 CFLAGS=$ac_wine_try_cflags_saved
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
11991 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
11992 if test $ac_cv_cflags__Wempty_body = yes; then :
11993 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11996 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11997 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 ac_wine_try_cflags_saved=$CFLAGS
12001 CFLAGS="$CFLAGS -Wstrict-prototypes"
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12004 int main(int argc, char **argv) { return 0; }
12005 _ACEOF
12006 if ac_fn_c_try_link "$LINENO"; then :
12007 ac_cv_cflags__Wstrict_prototypes=yes
12008 else
12009 ac_cv_cflags__Wstrict_prototypes=no
12011 rm -f core conftest.err conftest.$ac_objext \
12012 conftest$ac_exeext conftest.$ac_ext
12013 CFLAGS=$ac_wine_try_cflags_saved
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12016 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12017 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12018 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12021 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12022 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12023 $as_echo_n "(cached) " >&6
12024 else
12025 ac_wine_try_cflags_saved=$CFLAGS
12026 CFLAGS="$CFLAGS -Wtype-limits"
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h. */
12029 int main(int argc, char **argv) { return 0; }
12030 _ACEOF
12031 if ac_fn_c_try_link "$LINENO"; then :
12032 ac_cv_cflags__Wtype_limits=yes
12033 else
12034 ac_cv_cflags__Wtype_limits=no
12036 rm -f core conftest.err conftest.$ac_objext \
12037 conftest$ac_exeext conftest.$ac_ext
12038 CFLAGS=$ac_wine_try_cflags_saved
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12041 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12042 if test $ac_cv_cflags__Wtype_limits = yes; then :
12043 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12046 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12047 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050 ac_wine_try_cflags_saved=$CFLAGS
12051 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h. */
12054 int main(int argc, char **argv) { return 0; }
12055 _ACEOF
12056 if ac_fn_c_try_link "$LINENO"; then :
12057 ac_cv_cflags__Wunused_but_set_parameter=yes
12058 else
12059 ac_cv_cflags__Wunused_but_set_parameter=no
12061 rm -f core conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12063 CFLAGS=$ac_wine_try_cflags_saved
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12066 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12067 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12068 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12071 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12072 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12073 $as_echo_n "(cached) " >&6
12074 else
12075 ac_wine_try_cflags_saved=$CFLAGS
12076 CFLAGS="$CFLAGS -Wwrite-strings"
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079 int main(int argc, char **argv) { return 0; }
12080 _ACEOF
12081 if ac_fn_c_try_link "$LINENO"; then :
12082 ac_cv_cflags__Wwrite_strings=yes
12083 else
12084 ac_cv_cflags__Wwrite_strings=no
12086 rm -f core conftest.err conftest.$ac_objext \
12087 conftest$ac_exeext conftest.$ac_ext
12088 CFLAGS=$ac_wine_try_cflags_saved
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12091 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12092 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12093 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12096 case $host_cpu in
12097 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12098 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12099 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12100 $as_echo_n "(cached) " >&6
12101 else
12102 ac_wine_try_cflags_saved=$CFLAGS
12103 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12106 int main(int argc, char **argv) { return 0; }
12107 _ACEOF
12108 if ac_fn_c_try_link "$LINENO"; then :
12109 ac_cv_cflags__fno_omit_frame_pointer=yes
12110 else
12111 ac_cv_cflags__fno_omit_frame_pointer=no
12113 rm -f core conftest.err conftest.$ac_objext \
12114 conftest$ac_exeext conftest.$ac_ext
12115 CFLAGS=$ac_wine_try_cflags_saved
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12118 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12119 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12120 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12121 fi ;;
12122 esac
12124 saved_CFLAGS="$CFLAGS"
12125 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12127 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12128 if ${ac_cv_c_string_h_warnings+:} false; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133 #include <string.h>
12135 main ()
12139 return 0;
12141 _ACEOF
12142 if ac_fn_c_try_compile "$LINENO"; then :
12143 ac_cv_c_string_h_warnings=no
12144 else
12145 ac_cv_c_string_h_warnings=yes
12147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12150 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12151 CFLAGS="$saved_CFLAGS"
12152 if test "$ac_cv_c_string_h_warnings" = "no"
12153 then
12154 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12157 saved_CFLAGS="$CFLAGS"
12158 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12160 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12161 if ${ac_cv_c_logicalop_noisy+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 #include <string.h>
12168 main ()
12170 char*f(const char *h,char n) {return strchr(h,n);}
12172 return 0;
12174 _ACEOF
12175 if ac_fn_c_try_compile "$LINENO"; then :
12176 ac_cv_c_logicalop_noisy=no
12177 else
12178 ac_cv_c_logicalop_noisy=yes
12180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12183 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12184 CFLAGS="$saved_CFLAGS"
12185 if test "$ac_cv_c_logicalop_noisy" = "no"
12186 then
12187 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12190 if test "x$enable_maintainer_mode" = "xyes"
12191 then
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12193 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12194 if ${ac_cv_cflags__Werror+:} false; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 ac_wine_try_cflags_saved=$CFLAGS
12198 CFLAGS="$CFLAGS -Werror"
12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200 /* end confdefs.h. */
12201 int main(int argc, char **argv) { return 0; }
12202 _ACEOF
12203 if ac_fn_c_try_link "$LINENO"; then :
12204 ac_cv_cflags__Werror=yes
12205 else
12206 ac_cv_cflags__Werror=no
12208 rm -f core conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext conftest.$ac_ext
12210 CFLAGS=$ac_wine_try_cflags_saved
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12213 $as_echo "$ac_cv_cflags__Werror" >&6; }
12214 if test $ac_cv_cflags__Werror = yes; then :
12215 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12219 saved_CFLAGS="$CFLAGS"
12220 CFLAGS="$CFLAGS -Werror"
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12222 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12223 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h. */
12228 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12230 main ()
12234 return 0;
12236 _ACEOF
12237 if ac_fn_c_try_compile "$LINENO"; then :
12238 ac_cv_have_ms_hook_prologue="yes"
12239 else
12240 ac_cv_have_ms_hook_prologue="no"
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12245 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12246 CFLAGS="$saved_CFLAGS"
12247 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12248 then
12250 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12252 else
12253 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12260 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12261 if ${ac_cv_c_fortify_enabled+:} false; then :
12262 $as_echo_n "(cached) " >&6
12263 else
12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h. */
12266 #include <string.h>
12268 main ()
12270 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12271 #error Fortify enabled
12272 #endif
12274 return 0;
12276 _ACEOF
12277 if ac_fn_c_try_compile "$LINENO"; then :
12278 ac_cv_c_fortify_enabled=no
12279 else
12280 ac_cv_c_fortify_enabled=yes
12282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12285 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12286 if test "$ac_cv_c_fortify_enabled" = yes
12287 then
12288 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12293 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12294 if ${ac_cv_c_extern_prefix+:} false; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12299 extern int ac_test;
12301 main ()
12303 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12305 return 0;
12307 _ACEOF
12308 if ac_fn_c_try_link "$LINENO"; then :
12309 ac_cv_c_extern_prefix="yes"
12310 else
12311 ac_cv_c_extern_prefix="no"
12313 rm -f core conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12317 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12319 case $host_cpu in
12320 *i[3456789]86*)
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12322 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12323 if ${ac_cv_c_stdcall_suffix+:} false; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12328 #ifndef _MSC_VER
12329 #define __stdcall __attribute__((__stdcall__))
12330 #endif
12331 int __stdcall ac_test(int i) { return i; }
12333 main ()
12335 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12337 return 0;
12339 _ACEOF
12340 if ac_fn_c_try_link "$LINENO"; then :
12341 ac_cv_c_stdcall_suffix="yes"
12342 else
12343 ac_cv_c_stdcall_suffix="no"
12345 rm -f core conftest.err conftest.$ac_objext \
12346 conftest$ac_exeext conftest.$ac_ext
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12349 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12350 *) ac_cv_c_stdcall_suffix="no" ;;
12351 esac
12354 if test "$ac_cv_c_extern_prefix" = "yes"
12355 then
12356 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12358 asm_name_prefix="_"
12359 else
12360 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12362 asm_name_prefix=""
12366 if test "$ac_cv_c_stdcall_suffix" = "yes"
12367 then
12368 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12370 else
12371 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12377 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12378 if ${ac_cv_asm_func_def+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12385 main ()
12387 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12389 return 0;
12391 _ACEOF
12392 if ac_fn_c_try_link "$LINENO"; then :
12393 ac_cv_asm_func_def=".def"
12394 else
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12399 main ()
12401 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12403 return 0;
12405 _ACEOF
12406 if ac_fn_c_try_link "$LINENO"; then :
12407 ac_cv_asm_func_def=".type @function"
12408 else
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12413 main ()
12415 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12417 return 0;
12419 _ACEOF
12420 if ac_fn_c_try_link "$LINENO"; then :
12421 ac_cv_asm_func_def=".type 2"
12422 else
12423 ac_cv_asm_func_def="unknown"
12425 rm -f core conftest.err conftest.$ac_objext \
12426 conftest$ac_exeext conftest.$ac_ext
12428 rm -f core conftest.err conftest.$ac_objext \
12429 conftest$ac_exeext conftest.$ac_ext
12431 rm -f core conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12435 $as_echo "$ac_cv_asm_func_def" >&6; }
12438 case "$ac_cv_asm_func_def" in
12439 ".def")
12440 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12442 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12443 ".type @function")
12444 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12446 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12447 ".type 2")
12448 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12450 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12452 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12454 asm_func_header="" ;;
12455 esac
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12458 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12459 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12460 $as_echo_n "(cached) " >&6
12461 else
12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h. */
12464 asm(".text\n\t.long 0");
12466 main ()
12470 return 0;
12472 _ACEOF
12473 if ac_fn_c_try_compile "$LINENO"; then :
12474 ac_cv_c_asm_outside_funcs="yes"
12475 else
12476 ac_cv_c_asm_outside_funcs="no"
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12481 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12484 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12485 if ${ac_cv_c_dot_previous+:} false; then :
12486 $as_echo_n "(cached) " >&6
12487 else
12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12492 main ()
12494 asm(".text\nac_test:\t.long 0\n\t.previous");
12496 return 0;
12498 _ACEOF
12499 if ac_fn_c_try_link "$LINENO"; then :
12500 ac_cv_c_dot_previous="yes"
12501 else
12502 ac_cv_c_dot_previous="no"
12504 rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12508 $as_echo "$ac_cv_c_dot_previous" >&6; }
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12511 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12512 if ${ac_cv_c_cfi_support+:} false; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12517 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12519 main ()
12523 return 0;
12525 _ACEOF
12526 if ac_fn_c_try_compile "$LINENO"; then :
12527 ac_cv_c_cfi_support="yes"
12528 else
12529 ac_cv_c_cfi_support="no"
12531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12534 $as_echo "$ac_cv_c_cfi_support" >&6; }
12536 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12537 asm_func_trailer=""
12538 if test "$ac_cv_c_dot_previous" = "yes"
12539 then
12540 asm_func_trailer="\\n\\t.previous"
12542 if test "$ac_cv_c_cfi_support" = "yes"
12543 then
12544 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12545 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12547 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12549 UNWINDFLAGS=-fasynchronous-unwind-tables
12551 else
12552 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12556 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12559 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12560 then
12561 cat >>confdefs.h <<_ACEOF
12562 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12563 _ACEOF
12565 else
12566 cat >>confdefs.h <<_ACEOF
12567 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12568 _ACEOF
12572 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12575 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12579 LDPATH=""
12581 case $build_os in
12582 cygwin*|mingw32*)
12583 TOOLSEXT=".exe"
12585 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12587 darwin*|macosx*)
12590 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12592 esac
12594 case $host_os in
12595 mingw32*)
12596 CRTLIBS="-lmsvcrt"
12598 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12601 esac
12603 MAIN_BINARY="wine"
12605 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12607 case $host_os in
12608 linux*)
12609 case $host_cpu in
12610 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12612 x86_64*) EXTRA_BINARIES="wine64-preloader"
12614 esac
12616 esac
12619 ac_save_CFLAGS="$CFLAGS"
12620 CFLAGS="$CFLAGS $BUILTINFLAG"
12621 for ac_func in \
12622 _finite \
12623 _isnan \
12624 _pclose \
12625 _popen \
12626 _snprintf \
12627 _spawnvp \
12628 _strdup \
12629 _stricmp \
12630 _strnicmp \
12631 _strtoi64 \
12632 _strtoui64 \
12633 _vsnprintf \
12634 asctime_r \
12635 chsize \
12636 dlopen \
12637 epoll_create \
12638 ffs \
12639 finite \
12640 fnmatch \
12641 fork \
12642 fpclass \
12643 fstatfs \
12644 fstatvfs \
12645 ftruncate \
12646 futimes \
12647 futimesat \
12648 getattrlist \
12649 getdirentries \
12650 getopt_long \
12651 getpagesize \
12652 getpwuid \
12653 gettimeofday \
12654 getuid \
12655 kqueue \
12656 lstat \
12657 memmove \
12658 mmap \
12659 pclose \
12660 pipe2 \
12661 poll \
12662 popen \
12663 port_create \
12664 prctl \
12665 pread \
12666 pwrite \
12667 readdir \
12668 readlink \
12669 sched_yield \
12670 select \
12671 setproctitle \
12672 setrlimit \
12673 settimeofday \
12674 sigaltstack \
12675 sigprocmask \
12676 snprintf \
12677 spawnvp \
12678 statfs \
12679 statvfs \
12680 strcasecmp \
12681 strdup \
12682 strerror \
12683 strncasecmp \
12684 strtold \
12685 strtoll \
12686 strtoull \
12687 symlink \
12688 tcgetattr \
12689 thr_kill2 \
12690 timegm \
12691 usleep \
12692 vsnprintf \
12693 wait4 \
12694 waitpid \
12696 do :
12697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12700 cat >>confdefs.h <<_ACEOF
12701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12702 _ACEOF
12705 done
12707 CFLAGS="$ac_save_CFLAGS"
12709 if test "$ac_cv_func_dlopen" = no
12710 then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12712 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12713 if ${ac_cv_lib_dl_dlopen+:} false; then :
12714 $as_echo_n "(cached) " >&6
12715 else
12716 ac_check_lib_save_LIBS=$LIBS
12717 LIBS="-ldl $LIBS"
12718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12721 /* Override any GCC internal prototype to avoid an error.
12722 Use char because int might match the return type of a GCC
12723 builtin and then its argument prototype would still apply. */
12724 #ifdef __cplusplus
12725 extern "C"
12726 #endif
12727 char dlopen ();
12729 main ()
12731 return dlopen ();
12733 return 0;
12735 _ACEOF
12736 if ac_fn_c_try_link "$LINENO"; then :
12737 ac_cv_lib_dl_dlopen=yes
12738 else
12739 ac_cv_lib_dl_dlopen=no
12741 rm -f core conftest.err conftest.$ac_objext \
12742 conftest$ac_exeext conftest.$ac_ext
12743 LIBS=$ac_check_lib_save_LIBS
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12746 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12747 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12748 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12749 LIBDL="-ldl"
12754 ac_wine_check_funcs_save_LIBS="$LIBS"
12755 LIBS="$LIBS $LIBDL"
12756 for ac_func in dladdr
12757 do :
12758 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12759 if test "x$ac_cv_func_dladdr" = xyes; then :
12760 cat >>confdefs.h <<_ACEOF
12761 #define HAVE_DLADDR 1
12762 _ACEOF
12765 done
12767 LIBS="$ac_wine_check_funcs_save_LIBS"
12769 if test "$ac_cv_func_poll" = no
12770 then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12772 $as_echo_n "checking for poll in -lpoll... " >&6; }
12773 if ${ac_cv_lib_poll_poll+:} false; then :
12774 $as_echo_n "(cached) " >&6
12775 else
12776 ac_check_lib_save_LIBS=$LIBS
12777 LIBS="-lpoll $LIBS"
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12781 /* Override any GCC internal prototype to avoid an error.
12782 Use char because int might match the return type of a GCC
12783 builtin and then its argument prototype would still apply. */
12784 #ifdef __cplusplus
12785 extern "C"
12786 #endif
12787 char poll ();
12789 main ()
12791 return poll ();
12793 return 0;
12795 _ACEOF
12796 if ac_fn_c_try_link "$LINENO"; then :
12797 ac_cv_lib_poll_poll=yes
12798 else
12799 ac_cv_lib_poll_poll=no
12801 rm -f core conftest.err conftest.$ac_objext \
12802 conftest$ac_exeext conftest.$ac_ext
12803 LIBS=$ac_check_lib_save_LIBS
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12806 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12807 if test "x$ac_cv_lib_poll_poll" = xyes; then :
12808 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12809 LIBPOLL="-lpoll"
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12816 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12817 if ${ac_cv_search_gethostbyname+:} false; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 ac_func_search_save_LIBS=$LIBS
12821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h. */
12824 /* Override any GCC internal prototype to avoid an error.
12825 Use char because int might match the return type of a GCC
12826 builtin and then its argument prototype would still apply. */
12827 #ifdef __cplusplus
12828 extern "C"
12829 #endif
12830 char gethostbyname ();
12832 main ()
12834 return gethostbyname ();
12836 return 0;
12838 _ACEOF
12839 for ac_lib in '' nsl; do
12840 if test -z "$ac_lib"; then
12841 ac_res="none required"
12842 else
12843 ac_res=-l$ac_lib
12844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12846 if ac_fn_c_try_link "$LINENO"; then :
12847 ac_cv_search_gethostbyname=$ac_res
12849 rm -f core conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext
12851 if ${ac_cv_search_gethostbyname+:} false; then :
12852 break
12854 done
12855 if ${ac_cv_search_gethostbyname+:} false; then :
12857 else
12858 ac_cv_search_gethostbyname=no
12860 rm conftest.$ac_ext
12861 LIBS=$ac_func_search_save_LIBS
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12864 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12865 ac_res=$ac_cv_search_gethostbyname
12866 if test "$ac_res" != no; then :
12867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12873 $as_echo_n "checking for library containing connect... " >&6; }
12874 if ${ac_cv_search_connect+:} false; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 ac_func_search_save_LIBS=$LIBS
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12881 /* Override any GCC internal prototype to avoid an error.
12882 Use char because int might match the return type of a GCC
12883 builtin and then its argument prototype would still apply. */
12884 #ifdef __cplusplus
12885 extern "C"
12886 #endif
12887 char connect ();
12889 main ()
12891 return connect ();
12893 return 0;
12895 _ACEOF
12896 for ac_lib in '' socket; do
12897 if test -z "$ac_lib"; then
12898 ac_res="none required"
12899 else
12900 ac_res=-l$ac_lib
12901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12903 if ac_fn_c_try_link "$LINENO"; then :
12904 ac_cv_search_connect=$ac_res
12906 rm -f core conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext
12908 if ${ac_cv_search_connect+:} false; then :
12909 break
12911 done
12912 if ${ac_cv_search_connect+:} false; then :
12914 else
12915 ac_cv_search_connect=no
12917 rm conftest.$ac_ext
12918 LIBS=$ac_func_search_save_LIBS
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12921 $as_echo "$ac_cv_search_connect" >&6; }
12922 ac_res=$ac_cv_search_connect
12923 if test "$ac_res" != no; then :
12924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12930 $as_echo_n "checking for library containing inet_aton... " >&6; }
12931 if ${ac_cv_search_inet_aton+:} false; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 ac_func_search_save_LIBS=$LIBS
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12938 /* Override any GCC internal prototype to avoid an error.
12939 Use char because int might match the return type of a GCC
12940 builtin and then its argument prototype would still apply. */
12941 #ifdef __cplusplus
12942 extern "C"
12943 #endif
12944 char inet_aton ();
12946 main ()
12948 return inet_aton ();
12950 return 0;
12952 _ACEOF
12953 for ac_lib in '' resolv; do
12954 if test -z "$ac_lib"; then
12955 ac_res="none required"
12956 else
12957 ac_res=-l$ac_lib
12958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12960 if ac_fn_c_try_link "$LINENO"; then :
12961 ac_cv_search_inet_aton=$ac_res
12963 rm -f core conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext
12965 if ${ac_cv_search_inet_aton+:} false; then :
12966 break
12968 done
12969 if ${ac_cv_search_inet_aton+:} false; then :
12971 else
12972 ac_cv_search_inet_aton=no
12974 rm conftest.$ac_ext
12975 LIBS=$ac_func_search_save_LIBS
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12978 $as_echo "$ac_cv_search_inet_aton" >&6; }
12979 ac_res=$ac_cv_search_inet_aton
12980 if test "$ac_res" != no; then :
12981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12986 for ac_func in \
12987 getaddrinfo \
12988 getnameinfo \
12989 getnetbyname \
12990 getprotobyname \
12991 getprotobynumber \
12992 getservbyport \
12993 inet_network \
12994 inet_ntop \
12995 inet_pton \
12996 sendmsg \
12997 socketpair \
12999 do :
13000 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13001 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13002 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13003 cat >>confdefs.h <<_ACEOF
13004 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13005 _ACEOF
13008 done
13011 LDAPLIBS=""
13013 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13014 then
13015 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13017 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13019 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13020 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13021 $as_echo_n "(cached) " >&6
13022 else
13023 ac_check_lib_save_LIBS=$LIBS
13024 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13028 /* Override any GCC internal prototype to avoid an error.
13029 Use char because int might match the return type of a GCC
13030 builtin and then its argument prototype would still apply. */
13031 #ifdef __cplusplus
13032 extern "C"
13033 #endif
13034 char ldap_initialize ();
13036 main ()
13038 return ldap_initialize ();
13040 return 0;
13042 _ACEOF
13043 if ac_fn_c_try_link "$LINENO"; then :
13044 ac_cv_lib_ldap_r_ldap_initialize=yes
13045 else
13046 ac_cv_lib_ldap_r_ldap_initialize=no
13048 rm -f core conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext conftest.$ac_ext
13050 LIBS=$ac_check_lib_save_LIBS
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13053 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13054 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13056 $as_echo_n "checking for ber_init in -llber... " >&6; }
13057 if ${ac_cv_lib_lber_ber_init+:} false; then :
13058 $as_echo_n "(cached) " >&6
13059 else
13060 ac_check_lib_save_LIBS=$LIBS
13061 LIBS="-llber $LIBPTHREAD $LIBS"
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13065 /* Override any GCC internal prototype to avoid an error.
13066 Use char because int might match the return type of a GCC
13067 builtin and then its argument prototype would still apply. */
13068 #ifdef __cplusplus
13069 extern "C"
13070 #endif
13071 char ber_init ();
13073 main ()
13075 return ber_init ();
13077 return 0;
13079 _ACEOF
13080 if ac_fn_c_try_link "$LINENO"; then :
13081 ac_cv_lib_lber_ber_init=yes
13082 else
13083 ac_cv_lib_lber_ber_init=no
13085 rm -f core conftest.err conftest.$ac_objext \
13086 conftest$ac_exeext conftest.$ac_ext
13087 LIBS=$ac_check_lib_save_LIBS
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13090 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13091 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13093 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13095 LDAPLIBS="-lldap_r -llber"
13102 ac_wine_check_funcs_save_LIBS="$LIBS"
13103 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13104 for ac_func in \
13105 ldap_count_references \
13106 ldap_first_reference \
13107 ldap_next_reference \
13108 ldap_parse_reference \
13109 ldap_parse_sort_control \
13110 ldap_parse_sortresponse_control \
13111 ldap_parse_vlv_control \
13112 ldap_parse_vlvresponse_control
13113 do :
13114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13115 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13116 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13117 cat >>confdefs.h <<_ACEOF
13118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13119 _ACEOF
13122 done
13124 LIBS="$ac_wine_check_funcs_save_LIBS"
13126 if test "x$LDAPLIBS" = "x"; then :
13127 case "x$with_ldap" in
13128 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13129 xno) ;;
13130 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13131 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13132 esac
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13136 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13137 if ${wine_cv_one_arg_mkdir+:} false; then :
13138 $as_echo_n "(cached) " >&6
13139 else
13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141 /* end confdefs.h. */
13142 #include <sys/stat.h>
13144 main ()
13146 mkdir("foo");
13148 return 0;
13150 _ACEOF
13151 if ac_fn_c_try_compile "$LINENO"; then :
13152 wine_cv_one_arg_mkdir=yes
13153 else
13154 wine_cv_one_arg_mkdir=no
13156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13159 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13160 if test "$wine_cv_one_arg_mkdir" = "yes"
13161 then
13163 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13168 $as_echo_n "checking for sched_setaffinity... " >&6; }
13169 if ${wine_cv_have_sched_setaffinity+:} false; then :
13170 $as_echo_n "(cached) " >&6
13171 else
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13174 #define _GNU_SOURCE
13175 #include <sched.h>
13177 main ()
13179 sched_setaffinity(0, 0, 0);
13181 return 0;
13183 _ACEOF
13184 if ac_fn_c_try_link "$LINENO"; then :
13185 wine_cv_have_sched_setaffinity=yes
13186 else
13187 wine_cv_have_sched_setaffinity=no
13189 rm -f core conftest.err conftest.$ac_objext \
13190 conftest$ac_exeext conftest.$ac_ext
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13193 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13194 if test "$wine_cv_have_sched_setaffinity" = "yes"
13195 then
13197 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13203 $as_echo_n "checking for inline... " >&6; }
13204 if ${ac_cv_c_inline+:} false; then :
13205 $as_echo_n "(cached) " >&6
13206 else
13207 ac_cv_c_inline=no
13208 for ac_kw in inline __inline__ __inline; do
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13211 #ifndef __cplusplus
13212 typedef int foo_t;
13213 static $ac_kw foo_t static_foo () {return 0; }
13214 $ac_kw foo_t foo () {return 0; }
13215 #endif
13217 _ACEOF
13218 if ac_fn_c_try_compile "$LINENO"; then :
13219 ac_cv_c_inline=$ac_kw
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222 test "$ac_cv_c_inline" != no && break
13223 done
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13227 $as_echo "$ac_cv_c_inline" >&6; }
13229 case $ac_cv_c_inline in
13230 inline | yes) ;;
13232 case $ac_cv_c_inline in
13233 no) ac_val=;;
13234 *) ac_val=$ac_cv_c_inline;;
13235 esac
13236 cat >>confdefs.h <<_ACEOF
13237 #ifndef __cplusplus
13238 #define inline $ac_val
13239 #endif
13240 _ACEOF
13242 esac
13244 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13245 if test "x$ac_cv_type_mode_t" = xyes; then :
13247 cat >>confdefs.h <<_ACEOF
13248 #define HAVE_MODE_T 1
13249 _ACEOF
13253 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13254 if test "x$ac_cv_type_off_t" = xyes; then :
13256 cat >>confdefs.h <<_ACEOF
13257 #define HAVE_OFF_T 1
13258 _ACEOF
13262 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13263 if test "x$ac_cv_type_pid_t" = xyes; then :
13265 cat >>confdefs.h <<_ACEOF
13266 #define HAVE_PID_T 1
13267 _ACEOF
13271 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13272 if test "x$ac_cv_type_size_t" = xyes; then :
13274 cat >>confdefs.h <<_ACEOF
13275 #define HAVE_SIZE_T 1
13276 _ACEOF
13280 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13281 if test "x$ac_cv_type_ssize_t" = xyes; then :
13283 cat >>confdefs.h <<_ACEOF
13284 #define HAVE_SSIZE_T 1
13285 _ACEOF
13289 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13290 if test "x$ac_cv_type_long_long" = xyes; then :
13292 cat >>confdefs.h <<_ACEOF
13293 #define HAVE_LONG_LONG 1
13294 _ACEOF
13298 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13299 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13301 cat >>confdefs.h <<_ACEOF
13302 #define HAVE_FSBLKCNT_T 1
13303 _ACEOF
13307 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13308 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13310 cat >>confdefs.h <<_ACEOF
13311 #define HAVE_FSFILCNT_T 1
13312 _ACEOF
13317 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13318 #include <signal.h>
13320 if test "x$ac_cv_type_sigset_t" = xyes; then :
13322 cat >>confdefs.h <<_ACEOF
13323 #define HAVE_SIGSET_T 1
13324 _ACEOF
13329 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13331 if test "x$ac_cv_type_request_sense" = xyes; then :
13333 cat >>confdefs.h <<_ACEOF
13334 #define HAVE_REQUEST_SENSE 1
13335 _ACEOF
13341 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13342 #ifdef HAVE_SYS_SOCKET_H
13343 #include <sys/socket.h>
13344 #endif
13345 #ifdef HAVE_SYS_SOCKETVAR_H
13346 #include <sys/socketvar.h>
13347 #endif
13348 #ifdef HAVE_NET_ROUTE_H
13349 #include <net/route.h>
13350 #endif
13351 #ifdef HAVE_NETINET_IN_H
13352 #include <netinet/in.h>
13353 #endif
13354 #ifdef HAVE_NETINET_IN_SYSTM_H
13355 #include <netinet/in_systm.h>
13356 #endif
13357 #ifdef HAVE_NETINET_IP_H
13358 #include <netinet/ip.h>
13359 #endif
13360 #ifdef HAVE_NETINET_IN_PCB_H
13361 #include <netinet/in_pcb.h>
13362 #endif
13364 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13366 cat >>confdefs.h <<_ACEOF
13367 #define HAVE_STRUCT_XINPGEN 1
13368 _ACEOF
13374 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13375 #include <linux/input.h>
13376 #endif
13378 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13380 cat >>confdefs.h <<_ACEOF
13381 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13382 _ACEOF
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13389 $as_echo_n "checking for sigaddset... " >&6; }
13390 if ${wine_cv_have_sigaddset+:} false; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13395 #include <signal.h>
13397 main ()
13399 sigset_t set; sigaddset(&set,SIGTERM);
13401 return 0;
13403 _ACEOF
13404 if ac_fn_c_try_link "$LINENO"; then :
13405 wine_cv_have_sigaddset=yes
13406 else
13407 wine_cv_have_sigaddset=no
13409 rm -f core conftest.err conftest.$ac_objext \
13410 conftest$ac_exeext conftest.$ac_ext
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13413 $as_echo "$wine_cv_have_sigaddset" >&6; }
13414 if test "$wine_cv_have_sigaddset" = "yes"
13415 then
13417 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13423 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13424 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13425 $as_echo_n "(cached) " >&6
13426 else
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13429 #include <netdb.h>
13431 main ()
13434 char *name=0;
13435 struct hostent he;
13436 struct hostent *result;
13437 char *buf=0;
13438 int bufsize=0;
13439 int errnr;
13440 char *addr=0;
13441 int addrlen=0;
13442 int addrtype=0;
13443 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13444 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13447 return 0;
13449 _ACEOF
13450 if ac_fn_c_try_link "$LINENO"; then :
13451 wine_cv_linux_gethostbyname_r_6=yes
13452 else
13453 wine_cv_linux_gethostbyname_r_6=no
13456 rm -f core conftest.err conftest.$ac_objext \
13457 conftest$ac_exeext conftest.$ac_ext
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13461 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13462 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13463 then
13465 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13469 if test "$ac_cv_header_linux_joystick_h" = "yes"
13470 then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13472 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13473 if ${wine_cv_linux_joystick_22_api+:} false; then :
13474 $as_echo_n "(cached) " >&6
13475 else
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13479 #include <sys/ioctl.h>
13480 #include <sys/types.h>
13481 #include <linux/joystick.h>
13483 struct js_event blub;
13484 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13485 #error "no 2.2 header"
13486 #endif
13489 main ()
13491 /*empty*/
13493 return 0;
13495 _ACEOF
13496 if ac_fn_c_try_compile "$LINENO"; then :
13497 wine_cv_linux_joystick_22_api=yes
13498 else
13499 wine_cv_linux_joystick_22_api=no
13501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13505 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13506 if test "$wine_cv_linux_joystick_22_api" = "yes"
13507 then
13509 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13515 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13516 #ifdef HAVE_SYS_PARAM_H
13517 # include <sys/param.h>
13518 #endif
13519 #ifdef HAVE_SYS_MOUNT_H
13520 # include <sys/mount.h>
13521 #endif
13522 #ifdef HAVE_SYS_VFS_H
13523 # include <sys/vfs.h>
13524 #endif
13525 #ifdef HAVE_SYS_STATFS_H
13526 # include <sys/statfs.h>
13527 #endif
13529 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13531 cat >>confdefs.h <<_ACEOF
13532 #define HAVE_STRUCT_STATFS_F_BFREE 1
13533 _ACEOF
13537 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13538 #ifdef HAVE_SYS_PARAM_H
13539 # include <sys/param.h>
13540 #endif
13541 #ifdef HAVE_SYS_MOUNT_H
13542 # include <sys/mount.h>
13543 #endif
13544 #ifdef HAVE_SYS_VFS_H
13545 # include <sys/vfs.h>
13546 #endif
13547 #ifdef HAVE_SYS_STATFS_H
13548 # include <sys/statfs.h>
13549 #endif
13551 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13553 cat >>confdefs.h <<_ACEOF
13554 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13555 _ACEOF
13559 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13560 #ifdef HAVE_SYS_PARAM_H
13561 # include <sys/param.h>
13562 #endif
13563 #ifdef HAVE_SYS_MOUNT_H
13564 # include <sys/mount.h>
13565 #endif
13566 #ifdef HAVE_SYS_VFS_H
13567 # include <sys/vfs.h>
13568 #endif
13569 #ifdef HAVE_SYS_STATFS_H
13570 # include <sys/statfs.h>
13571 #endif
13573 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13575 cat >>confdefs.h <<_ACEOF
13576 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13577 _ACEOF
13581 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13582 #ifdef HAVE_SYS_PARAM_H
13583 # include <sys/param.h>
13584 #endif
13585 #ifdef HAVE_SYS_MOUNT_H
13586 # include <sys/mount.h>
13587 #endif
13588 #ifdef HAVE_SYS_VFS_H
13589 # include <sys/vfs.h>
13590 #endif
13591 #ifdef HAVE_SYS_STATFS_H
13592 # include <sys/statfs.h>
13593 #endif
13595 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13597 cat >>confdefs.h <<_ACEOF
13598 #define HAVE_STRUCT_STATFS_F_FFREE 1
13599 _ACEOF
13603 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13604 #ifdef HAVE_SYS_PARAM_H
13605 # include <sys/param.h>
13606 #endif
13607 #ifdef HAVE_SYS_MOUNT_H
13608 # include <sys/mount.h>
13609 #endif
13610 #ifdef HAVE_SYS_VFS_H
13611 # include <sys/vfs.h>
13612 #endif
13613 #ifdef HAVE_SYS_STATFS_H
13614 # include <sys/statfs.h>
13615 #endif
13617 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13619 cat >>confdefs.h <<_ACEOF
13620 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13621 _ACEOF
13625 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13626 #ifdef HAVE_SYS_PARAM_H
13627 # include <sys/param.h>
13628 #endif
13629 #ifdef HAVE_SYS_MOUNT_H
13630 # include <sys/mount.h>
13631 #endif
13632 #ifdef HAVE_SYS_VFS_H
13633 # include <sys/vfs.h>
13634 #endif
13635 #ifdef HAVE_SYS_STATFS_H
13636 # include <sys/statfs.h>
13637 #endif
13639 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13641 cat >>confdefs.h <<_ACEOF
13642 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13643 _ACEOF
13649 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13650 #include <sys/statvfs.h>
13651 #endif
13653 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13655 cat >>confdefs.h <<_ACEOF
13656 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13657 _ACEOF
13663 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13664 #ifdef HAVE_SYS_SOCKET_H
13665 # include <sys/socket.h>
13666 #endif
13667 #ifdef HAVE_SYS_UN_H
13668 # include <sys/un.h>
13669 #endif
13671 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13673 cat >>confdefs.h <<_ACEOF
13674 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13675 _ACEOF
13679 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13680 #ifdef HAVE_SYS_SOCKET_H
13681 # include <sys/socket.h>
13682 #endif
13683 #ifdef HAVE_SYS_UN_H
13684 # include <sys/un.h>
13685 #endif
13687 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13689 cat >>confdefs.h <<_ACEOF
13690 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13691 _ACEOF
13695 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13696 #ifdef HAVE_SYS_SOCKET_H
13697 # include <sys/socket.h>
13698 #endif
13699 #ifdef HAVE_SYS_UN_H
13700 # include <sys/un.h>
13701 #endif
13703 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13705 cat >>confdefs.h <<_ACEOF
13706 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13707 _ACEOF
13713 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13714 #ifdef HAVE_SCSI_SG_H
13715 #include <scsi/sg.h>
13716 #endif
13718 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13720 cat >>confdefs.h <<_ACEOF
13721 #define HAVE_SCSIREQ_T_CMD 1
13722 _ACEOF
13726 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>
13727 #ifdef HAVE_SCSI_SG_H
13728 #include <scsi/sg.h>
13729 #endif
13731 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13733 cat >>confdefs.h <<_ACEOF
13734 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13735 _ACEOF
13741 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13743 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
13745 cat >>confdefs.h <<_ACEOF
13746 #define HAVE_SIGINFO_T_SI_FD 1
13747 _ACEOF
13753 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13754 #ifdef HAVE_SYS_MTIO_H
13755 #include <sys/mtio.h>
13756 #endif
13758 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
13760 cat >>confdefs.h <<_ACEOF
13761 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13762 _ACEOF
13766 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13767 #ifdef HAVE_SYS_MTIO_H
13768 #include <sys/mtio.h>
13769 #endif
13771 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
13773 cat >>confdefs.h <<_ACEOF
13774 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13775 _ACEOF
13779 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13780 #ifdef HAVE_SYS_MTIO_H
13781 #include <sys/mtio.h>
13782 #endif
13784 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
13786 cat >>confdefs.h <<_ACEOF
13787 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13788 _ACEOF
13794 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13795 #include <getopt.h>
13796 #endif
13798 if test "x$ac_cv_member_struct_option_name" = xyes; then :
13800 cat >>confdefs.h <<_ACEOF
13801 #define HAVE_STRUCT_OPTION_NAME 1
13802 _ACEOF
13808 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13809 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13811 cat >>confdefs.h <<_ACEOF
13812 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13813 _ACEOF
13817 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13818 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13820 cat >>confdefs.h <<_ACEOF
13821 #define HAVE_STRUCT_STAT_ST_MTIM 1
13822 _ACEOF
13826 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13827 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
13829 cat >>confdefs.h <<_ACEOF
13830 #define HAVE_STRUCT_STAT_ST_CTIM 1
13831 _ACEOF
13835 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13836 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
13838 cat >>confdefs.h <<_ACEOF
13839 #define HAVE_STRUCT_STAT_ST_ATIM 1
13840 _ACEOF
13846 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
13847 #include <sys/types.h>
13848 #endif
13849 #ifdef HAVE_NETINET_IN_H
13850 #include <netinet/in.h>
13851 #endif
13853 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13855 cat >>confdefs.h <<_ACEOF
13856 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13857 _ACEOF
13863 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13864 #include <sys/types.h>
13865 #endif
13866 #ifdef HAVE_NETINET_IN_H
13867 # include <netinet/in.h>
13868 #endif
13869 #ifdef HAVE_ARPA_NAMESER_H
13870 # include <arpa/nameser.h>
13871 #endif
13873 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
13875 cat >>confdefs.h <<_ACEOF
13876 #define HAVE_NS_MSG__MSG_PTR 1
13877 _ACEOF
13883 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13884 #include <sys/types.h>
13885 #endif
13886 #ifdef HAVE_ALIAS_H
13887 #include <alias.h>
13888 #endif
13889 #ifdef HAVE_SYS_SOCKET_H
13890 #include <sys/socket.h>
13891 #endif
13892 #ifdef HAVE_SYS_SOCKETVAR_H
13893 #include <sys/socketvar.h>
13894 #endif
13895 #ifdef HAVE_SYS_TIMEOUT_H
13896 #include <sys/timeout.h>
13897 #endif
13898 #ifdef HAVE_NETINET_IN_H
13899 #include <netinet/in.h>
13900 #endif
13901 #ifdef HAVE_NETINET_IN_SYSTM_H
13902 #include <netinet/in_systm.h>
13903 #endif
13904 #ifdef HAVE_NETINET_IP_H
13905 #include <netinet/ip.h>
13906 #endif
13907 #ifdef HAVE_NETINET_IP_VAR_H
13908 #include <netinet/ip_var.h>
13909 #endif
13910 #ifdef HAVE_NETINET_IP_ICMP_H
13911 #include <netinet/ip_icmp.h>
13912 #endif
13913 #ifdef HAVE_NETINET_ICMP_VAR
13914 #include <netinet/icmp_var.h>
13915 #endif
13917 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
13919 cat >>confdefs.h <<_ACEOF
13920 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13921 _ACEOF
13927 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13928 #include <sys/types.h>
13929 #endif
13930 #ifdef HAVE_NET_IF_H
13931 # include <net/if.h>
13932 #endif
13934 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
13936 cat >>confdefs.h <<_ACEOF
13937 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13938 _ACEOF
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
13945 $as_echo_n "checking for timezone variable... " >&6; }
13946 if ${ac_cv_have_timezone+:} false; then :
13947 $as_echo_n "(cached) " >&6
13948 else
13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h. */
13951 #include <time.h>
13953 main ()
13955 timezone = 1
13957 return 0;
13959 _ACEOF
13960 if ac_fn_c_try_link "$LINENO"; then :
13961 ac_cv_have_timezone="yes"
13962 else
13963 ac_cv_have_timezone="no"
13965 rm -f core conftest.err conftest.$ac_objext \
13966 conftest$ac_exeext conftest.$ac_ext
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
13969 $as_echo "$ac_cv_have_timezone" >&6; }
13970 if test "$ac_cv_have_timezone" = "yes"
13971 then
13973 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
13977 $as_echo_n "checking for daylight variable... " >&6; }
13978 if ${ac_cv_have_daylight+:} false; then :
13979 $as_echo_n "(cached) " >&6
13980 else
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13983 #include <time.h>
13985 main ()
13987 daylight = 1
13989 return 0;
13991 _ACEOF
13992 if ac_fn_c_try_link "$LINENO"; then :
13993 ac_cv_have_daylight="yes"
13994 else
13995 ac_cv_have_daylight="no"
13997 rm -f core conftest.err conftest.$ac_objext \
13998 conftest$ac_exeext conftest.$ac_ext
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14001 $as_echo "$ac_cv_have_daylight" >&6; }
14002 if test "$ac_cv_have_daylight" = "yes"
14003 then
14005 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14009 ac_save_LIBS="$LIBS"
14010 LIBS="$LIBS -lm"
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14012 $as_echo_n "checking for isinf... " >&6; }
14013 if ${ac_cv_have_isinf+:} false; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h. */
14018 #include <math.h>
14020 main ()
14022 float f = 0.0; return isinf(f)
14024 return 0;
14026 _ACEOF
14027 if ac_fn_c_try_link "$LINENO"; then :
14028 ac_cv_have_isinf="yes"
14029 else
14030 ac_cv_have_isinf="no"
14032 rm -f core conftest.err conftest.$ac_objext \
14033 conftest$ac_exeext conftest.$ac_ext
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14036 $as_echo "$ac_cv_have_isinf" >&6; }
14037 if test "$ac_cv_have_isinf" = "yes"
14038 then
14040 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14045 $as_echo_n "checking for isnan... " >&6; }
14046 if ${ac_cv_have_isnan+:} false; then :
14047 $as_echo_n "(cached) " >&6
14048 else
14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14050 /* end confdefs.h. */
14051 #include <math.h>
14053 main ()
14055 float f = 0.0; return isnan(f)
14057 return 0;
14059 _ACEOF
14060 if ac_fn_c_try_link "$LINENO"; then :
14061 ac_cv_have_isnan="yes"
14062 else
14063 ac_cv_have_isnan="no"
14065 rm -f core conftest.err conftest.$ac_objext \
14066 conftest$ac_exeext conftest.$ac_ext
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14069 $as_echo "$ac_cv_have_isnan" >&6; }
14070 if test "$ac_cv_have_isnan" = "yes"
14071 then
14073 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14076 LIBS="$ac_save_LIBS"
14079 case $host_cpu in
14080 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14081 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14082 if ${ac_cv_cpp_def___i386__+:} false; then :
14083 $as_echo_n "(cached) " >&6
14084 else
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14087 #ifndef __i386__
14089 #endif
14090 _ACEOF
14091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14092 $EGREP "yes" >/dev/null 2>&1; then :
14093 ac_cv_cpp_def___i386__=yes
14094 else
14095 ac_cv_cpp_def___i386__=no
14097 rm -f conftest*
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14101 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14102 if test $ac_cv_cpp_def___i386__ = yes; then :
14103 CFLAGS="$CFLAGS -D__i386__"
14104 LINTFLAGS="$LINTFLAGS -D__i386__"
14105 fi ;;
14106 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14107 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14108 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14113 #ifndef __x86_64__
14115 #endif
14116 _ACEOF
14117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14118 $EGREP "yes" >/dev/null 2>&1; then :
14119 ac_cv_cpp_def___x86_64__=yes
14120 else
14121 ac_cv_cpp_def___x86_64__=no
14123 rm -f conftest*
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14127 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14128 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14129 CFLAGS="$CFLAGS -D__x86_64__"
14130 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14131 fi ;;
14132 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14133 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14134 if ${ac_cv_cpp_def___sparc__+:} false; then :
14135 $as_echo_n "(cached) " >&6
14136 else
14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h. */
14139 #ifndef __sparc__
14141 #endif
14142 _ACEOF
14143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14144 $EGREP "yes" >/dev/null 2>&1; then :
14145 ac_cv_cpp_def___sparc__=yes
14146 else
14147 ac_cv_cpp_def___sparc__=no
14149 rm -f conftest*
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14153 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14154 if test $ac_cv_cpp_def___sparc__ = yes; then :
14155 CFLAGS="$CFLAGS -D__sparc__"
14156 LINTFLAGS="$LINTFLAGS -D__sparc__"
14157 fi ;;
14158 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14159 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14160 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14161 $as_echo_n "(cached) " >&6
14162 else
14163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14165 #ifndef __powerpc__
14167 #endif
14168 _ACEOF
14169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14170 $EGREP "yes" >/dev/null 2>&1; then :
14171 ac_cv_cpp_def___powerpc__=yes
14172 else
14173 ac_cv_cpp_def___powerpc__=no
14175 rm -f conftest*
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14179 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14180 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14181 CFLAGS="$CFLAGS -D__powerpc__"
14182 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14183 fi ;;
14184 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14185 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14186 if ${ac_cv_cpp_def___arm__+:} false; then :
14187 $as_echo_n "(cached) " >&6
14188 else
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14191 #ifndef __arm__
14193 #endif
14194 _ACEOF
14195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14196 $EGREP "yes" >/dev/null 2>&1; then :
14197 ac_cv_cpp_def___arm__=yes
14198 else
14199 ac_cv_cpp_def___arm__=no
14201 rm -f conftest*
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14205 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14206 if test $ac_cv_cpp_def___arm__ = yes; then :
14207 CFLAGS="$CFLAGS -D__arm__"
14208 LINTFLAGS="$LINTFLAGS -D__arm__"
14209 fi ;;
14210 esac
14212 case $host_vendor in
14213 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14214 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14215 if ${ac_cv_cpp_def___sun__+:} false; then :
14216 $as_echo_n "(cached) " >&6
14217 else
14218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h. */
14220 #ifndef __sun__
14222 #endif
14223 _ACEOF
14224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14225 $EGREP "yes" >/dev/null 2>&1; then :
14226 ac_cv_cpp_def___sun__=yes
14227 else
14228 ac_cv_cpp_def___sun__=no
14230 rm -f conftest*
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14234 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14235 if test $ac_cv_cpp_def___sun__ = yes; then :
14236 CFLAGS="$CFLAGS -D__sun__"
14237 LINTFLAGS="$LINTFLAGS -D__sun__"
14238 fi ;;
14239 esac
14245 ac_config_commands="$ac_config_commands include/stamp-h"
14248 ALL_MAKEFILE_DEPENDS="
14249 # Rules automatically generated by configure
14251 .INIT: Makefile
14252 .MAKEFILEDEPS:
14253 all: Makefile
14254 Makefile: Makefile.in Make.vars.in Make.rules config.status
14255 @./config.status Make.tmp Makefile"
14257 ALL_POT_FILES=""
14258 ALL_TEST_RESOURCES=""
14261 wine_fn_append_file ()
14263 as_fn_append $1 " \\$as_nl $2"
14266 wine_fn_append_rule ()
14268 as_fn_append $1 "$as_nl$2"
14271 wine_fn_has_flag ()
14273 expr ",$2," : ".*,$1,.*" >/dev/null
14276 wine_fn_all_dir_rules ()
14278 ac_dir=$1
14279 ac_alldeps=$2
14280 ac_makedep="\$(MAKEDEP)"
14281 ac_input=Make.vars.in:$ac_dir/Makefile.in
14282 if test $ac_dir != tools
14283 then
14284 ac_alldeps="$2 $ac_makedep"
14286 case $2 in
14287 *.in) ac_input=$ac_input:$2 ;;
14288 *) ac_makedep="$2 $ac_makedep" ;;
14289 esac
14291 wine_fn_append_file ALL_DIRS $ac_dir
14292 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14293 "__clean__: $ac_dir/__clean__
14294 .PHONY: $ac_dir/__clean__
14295 $ac_dir/__clean__: $ac_dir/Makefile
14296 @cd $ac_dir && \$(MAKE) clean
14297 \$(RM) $ac_dir/Makefile
14298 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14299 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14300 depend: $ac_dir/__depend__
14301 .PHONY: $ac_dir/__depend__
14302 $ac_dir/__depend__: $ac_makedep dummy
14303 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14306 wine_fn_pot_rules ()
14308 ac_dir=$1
14309 ac_flags=$2
14311 test "x$with_gettextpo" = xyes || return
14313 if wine_fn_has_flag mc $ac_flags
14314 then
14315 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14316 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14317 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
14318 @cd $ac_dir && \$(MAKE) msg.pot
14319 $ac_dir/msg.pot: tools/wmc include"
14321 if wine_fn_has_flag po $ac_flags
14322 then
14323 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14324 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14325 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14326 @cd $ac_dir && \$(MAKE) rsrc.pot
14327 $ac_dir/srsrc.pot: tools/wrc include"
14331 wine_fn_config_makefile ()
14333 ac_dir=$1
14334 ac_enable=$2
14335 ac_flags=$3
14336 ac_rules=$4
14337 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14338 return 0
14341 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
14342 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14343 "all: $ac_dir
14344 .PHONY: $ac_dir
14345 $ac_dir: $ac_dir/Makefile dummy
14346 @cd $ac_dir && \$(MAKE)"
14348 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14350 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14351 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14352 $ac_dir/__install__:: $ac_dir
14353 @cd $ac_dir && \$(MAKE) install
14354 $ac_dir/__uninstall__:: $ac_dir/Makefile
14355 @cd $ac_dir && \$(MAKE) uninstall
14356 install:: $ac_dir/__install__
14357 __uninstall__: $ac_dir/__uninstall__"
14359 if wine_fn_has_flag install-lib $ac_flags
14360 then
14361 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14362 ".PHONY: $ac_dir/__install-lib__
14363 $ac_dir/__install-lib__:: $ac_dir
14364 @cd $ac_dir && \$(MAKE) install-lib
14365 install-lib:: $ac_dir/__install-lib__"
14368 if wine_fn_has_flag install-dev $ac_flags
14369 then
14370 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14371 ".PHONY: $ac_dir/__install-dev
14372 $ac_dir/__install-dev__:: $ac_dir
14373 @cd $ac_dir && \$(MAKE) install-dev
14374 install-dev:: $ac_dir/__install-dev__"
14378 wine_fn_config_lib ()
14380 ac_name=$1
14381 ac_flags=$2
14382 ac_dir=dlls/$ac_name
14383 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14385 if wine_fn_has_flag install-dev $ac_flags
14386 then :
14387 else
14388 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14389 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14390 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14391 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14392 $ac_dir/__uninstall__::
14393 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14394 install install-dev:: $ac_dir/__install__
14395 __uninstall__: $ac_dir/__uninstall__"
14398 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14399 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14402 wine_fn_config_dll ()
14404 ac_name=$1
14405 ac_dir=dlls/$ac_name
14406 ac_enable=$2
14407 ac_flags=$3
14408 ac_implib=${4:-$ac_name}
14409 ac_file=$ac_dir/lib$ac_implib
14410 ac_dll=$ac_name
14411 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14412 ac_implibflags=""
14414 case $ac_name in
14415 *16) ac_implibflags=" -m16" ;;
14416 *.*) ;;
14417 *) ac_dll=$ac_dll.dll ;;
14418 esac
14420 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
14422 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14423 test "$ac_enable" != enable_win16 || return 0
14424 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14425 else
14426 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14427 "$ac_dir: __builddeps__
14428 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14429 @cd $ac_dir && \$(MAKE) \$@"
14431 if wine_fn_has_flag install-lib $ac_flags
14432 then :
14433 else
14434 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14435 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14436 install install-lib:: $ac_dir/__install-lib__
14437 __uninstall__: $ac_dir/__uninstall__"
14438 if test -n "$DLLEXT"
14439 then
14440 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14441 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14442 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14443 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14444 $ac_dir/__uninstall__::
14445 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14446 else
14447 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14448 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14449 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14450 $ac_dir/__uninstall__::
14451 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14455 wine_fn_pot_rules $ac_dir $ac_flags
14458 if wine_fn_has_flag staticimplib $ac_flags
14459 then
14460 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14461 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14462 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14463 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14464 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14465 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14466 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14467 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14468 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14469 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14470 $ac_dir/__uninstall__::
14471 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14472 install install-dev:: $ac_dir/__install-dev__
14473 __uninstall__: $ac_dir/__uninstall__"
14475 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14476 then
14477 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14478 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14479 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14480 $ac_dir/__uninstall__::
14481 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14484 if test "x$CROSSTEST_DISABLE" = x
14485 then
14486 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14487 "__builddeps__: $ac_file.cross.a
14488 $ac_file.cross.a: $ac_dir/Makefile dummy
14489 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14492 elif wine_fn_has_flag implib $ac_flags
14493 then
14494 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14495 "__builddeps__: $ac_file.$IMPLIBEXT
14496 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14497 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14498 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14499 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14500 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14501 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14502 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14503 $ac_dir/__uninstall__::
14504 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14505 install install-dev:: $ac_dir/__install-dev__
14506 __uninstall__: $ac_dir/__uninstall__"
14507 if test "x$CROSSTEST_DISABLE" = x
14508 then
14509 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14510 "__builddeps__: $ac_file.cross.a
14511 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14512 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14515 if test "$ac_name" != "$ac_implib"
14516 then
14517 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14518 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14519 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14520 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14521 clean::
14522 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14523 if test "x$CROSSTEST_DISABLE" = x
14524 then
14525 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14526 "__builddeps__: dlls/lib$ac_implib.cross.a
14527 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14528 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14534 wine_fn_config_program ()
14536 ac_name=$1
14537 ac_dir=programs/$ac_name
14538 ac_enable=$2
14539 ac_flags=$3
14540 ac_program=$ac_name
14542 case $ac_name in
14543 *.*) ;;
14544 *) ac_program=$ac_program.exe ;;
14545 esac
14547 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
14549 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14551 else
14552 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14553 "$ac_dir: __builddeps__"
14555 wine_fn_pot_rules $ac_dir $ac_flags
14557 wine_fn_has_flag install $ac_flags || return
14558 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14559 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14560 install install-lib:: $ac_dir/__install__
14561 __uninstall__: $ac_dir/__uninstall__"
14563 if test -n "$DLLEXT"
14564 then
14565 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14566 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14567 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14568 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14569 $ac_dir/__uninstall__::
14570 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14572 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14573 then
14574 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14575 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
14576 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14577 $ac_dir/__uninstall__::
14578 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14580 else
14581 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14582 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14583 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14584 $ac_dir/__uninstall__::
14585 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
14588 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14589 then
14590 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14591 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14592 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14593 $ac_dir/__uninstall__::
14594 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14599 wine_fn_config_test ()
14601 ac_dir=$1
14602 ac_name=$2
14603 ac_flags=$3
14604 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14605 wine_fn_all_dir_rules $ac_dir Maketest.rules
14607 if test "x$enable_tests" = xno; then :
14609 else
14610 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14611 "all: $ac_dir
14612 .PHONY: $ac_dir
14613 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14614 @cd $ac_dir && \$(MAKE)
14615 programs/winetest: $ac_dir
14616 check test: $ac_dir/__test__
14617 .PHONY: $ac_dir/__test__
14618 $ac_dir/__test__: dummy
14619 @cd $ac_dir && \$(MAKE) test
14620 testclean::
14621 \$(RM) $ac_dir/*.ok"
14623 if test "x$CROSSTEST_DISABLE" = x
14624 then
14625 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14626 "crosstest: $ac_dir/__crosstest__
14627 .PHONY: $ac_dir/__crosstest__
14628 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14629 @cd $ac_dir && \$(MAKE) crosstest"
14634 wine_fn_config_tool ()
14636 ac_dir=$1
14637 ac_flags=$2
14638 if test "x$enable_tools" = xno; then :
14639 return 0
14642 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
14644 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14645 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
14646 case $ac_dir in
14647 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14648 esac
14651 wine_fn_config_makerules ()
14653 ac_rules=$1
14654 ac_deps=$2
14655 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14656 "$ac_rules: $ac_rules.in $ac_deps config.status
14657 @./config.status $ac_rules
14658 distclean::
14659 \$(RM) $ac_rules"
14662 wine_fn_config_symlink ()
14664 ac_link=$1
14665 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14666 "$ac_link:
14667 @./config.status $ac_link
14668 distclean::
14669 \$(RM) $ac_link"
14672 if test "x$CROSSTEST_DISABLE" != x
14673 then
14674 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14675 "crosstest:
14676 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14678 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14679 wine_fn_config_symlink dlls/shell32/AUTHORS
14680 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14681 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14682 if test "x$enable_fonts" != xno; then
14683 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14684 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14686 if test "x$enable_fonts" != xno; then
14687 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14688 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14690 if test "x$enable_fonts" != xno; then
14691 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14692 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14694 if test "x$enable_fonts" != xno; then
14695 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14696 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14698 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
14699 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
14700 if test "x$enable_tools" != xno; then
14701 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14702 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14704 ac_config_links="$ac_config_links wine:tools/winewrapper"
14705 wine_fn_config_symlink wine
14706 if test "x$enable_win64" != xno; then
14707 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14708 wine_fn_config_symlink wine64
14711 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14713 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14715 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14717 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14719 ac_config_commands="$ac_config_commands dlls/user32/resources"
14721 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14723 ac_config_commands="$ac_config_commands include/wine"
14726 wine_fn_config_makerules Make.rules
14727 MAKE_RULES=Make.rules
14728 ac_config_files="$ac_config_files Make.rules"
14730 wine_fn_config_makerules Maketest.rules Make.rules
14731 MAKE_TEST_RULES=Maketest.rules
14732 ac_config_files="$ac_config_files Maketest.rules"
14734 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14735 MAKE_DLL_RULES=dlls/Makedll.rules
14736 ac_config_files="$ac_config_files dlls/Makedll.rules"
14738 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14739 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14740 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14742 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14743 MAKE_PROG_RULES=programs/Makeprog.rules
14744 ac_config_files="$ac_config_files programs/Makeprog.rules"
14747 wine_fn_config_dll acledit enable_acledit
14748 wine_fn_config_dll aclui enable_aclui implib
14749 wine_fn_config_dll activeds enable_activeds implib
14750 wine_fn_config_dll actxprxy enable_actxprxy
14751 wine_fn_config_lib adsiid
14752 wine_fn_config_dll advapi32 enable_advapi32 implib
14753 wine_fn_config_test dlls/advapi32/tests advapi32_test
14754 wine_fn_config_dll advpack enable_advpack implib
14755 wine_fn_config_test dlls/advpack/tests advpack_test
14756 wine_fn_config_dll amstream enable_amstream
14757 wine_fn_config_test dlls/amstream/tests amstream_test
14758 wine_fn_config_dll apphelp enable_apphelp
14759 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14760 wine_fn_config_dll atl enable_atl implib
14761 wine_fn_config_test dlls/atl/tests atl_test
14762 wine_fn_config_dll authz enable_authz
14763 wine_fn_config_dll avicap32 enable_avicap32 implib
14764 wine_fn_config_dll avifil32 enable_avifil32 implib,po
14765 wine_fn_config_test dlls/avifil32/tests avifil32_test
14766 wine_fn_config_dll avifile.dll16 enable_win16
14767 wine_fn_config_dll avrt enable_avrt implib
14768 wine_fn_config_dll bcrypt enable_bcrypt
14769 wine_fn_config_dll browseui enable_browseui po
14770 wine_fn_config_test dlls/browseui/tests browseui_test
14771 wine_fn_config_dll cabinet enable_cabinet implib
14772 wine_fn_config_test dlls/cabinet/tests cabinet_test
14773 wine_fn_config_dll capi2032 enable_capi2032 implib
14774 wine_fn_config_dll cards enable_cards implib
14775 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14776 wine_fn_config_dll clusapi enable_clusapi implib
14777 wine_fn_config_dll comcat enable_comcat
14778 wine_fn_config_test dlls/comcat/tests comcat_test
14779 wine_fn_config_dll comctl32 enable_comctl32 implib,po
14780 wine_fn_config_test dlls/comctl32/tests comctl32_test
14781 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
14782 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14783 wine_fn_config_dll comm.drv16 enable_win16
14784 wine_fn_config_dll commdlg.dll16 enable_win16
14785 wine_fn_config_dll compobj.dll16 enable_win16
14786 wine_fn_config_dll compstui enable_compstui implib
14787 wine_fn_config_dll credui enable_credui implib,po
14788 wine_fn_config_test dlls/credui/tests credui_test
14789 wine_fn_config_dll crtdll enable_crtdll implib
14790 wine_fn_config_dll crypt32 enable_crypt32 implib,po
14791 wine_fn_config_test dlls/crypt32/tests crypt32_test
14792 wine_fn_config_dll cryptdlg enable_cryptdlg po
14793 wine_fn_config_dll cryptdll enable_cryptdll implib
14794 wine_fn_config_dll cryptnet enable_cryptnet implib
14795 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14796 wine_fn_config_dll cryptui enable_cryptui implib,po
14797 wine_fn_config_test dlls/cryptui/tests cryptui_test
14798 wine_fn_config_dll ctapi32 enable_ctapi32
14799 wine_fn_config_dll ctl3d.dll16 enable_win16
14800 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14801 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14802 wine_fn_config_dll d3d10 enable_d3d10 implib
14803 wine_fn_config_test dlls/d3d10/tests d3d10_test
14804 wine_fn_config_dll d3d10core enable_d3d10core implib
14805 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14806 wine_fn_config_dll d3d8 enable_d3d8 implib
14807 wine_fn_config_test dlls/d3d8/tests d3d8_test
14808 wine_fn_config_dll d3d9 enable_d3d9 implib
14809 wine_fn_config_test dlls/d3d9/tests d3d9_test
14810 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14811 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14812 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14813 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14814 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14815 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14816 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14817 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14818 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14819 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14820 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14821 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14822 wine_fn_config_dll d3dim enable_d3dim implib
14823 wine_fn_config_dll d3drm enable_d3drm implib
14824 wine_fn_config_test dlls/d3drm/tests d3drm_test
14825 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14826 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14827 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14828 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14829 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14830 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14831 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14832 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14833 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14834 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14835 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14836 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14837 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14838 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14839 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14840 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14841 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14842 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14843 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14844 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14845 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14846 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14847 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14848 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14849 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14850 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14851 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14852 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14853 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14854 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14855 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14856 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14857 wine_fn_config_dll d3dxof enable_d3dxof implib
14858 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14859 wine_fn_config_dll dbgeng enable_dbgeng implib
14860 wine_fn_config_dll dbghelp enable_dbghelp implib
14861 wine_fn_config_dll dciman32 enable_dciman32 implib
14862 wine_fn_config_dll ddeml.dll16 enable_win16
14863 wine_fn_config_dll ddraw enable_ddraw implib
14864 wine_fn_config_test dlls/ddraw/tests ddraw_test
14865 wine_fn_config_dll ddrawex enable_ddrawex
14866 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14867 wine_fn_config_dll devenum enable_devenum po
14868 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
14869 wine_fn_config_test dlls/dinput/tests dinput_test
14870 wine_fn_config_dll dinput8 enable_dinput8 implib
14871 wine_fn_config_test dlls/dinput8/tests dinput8_test
14872 wine_fn_config_dll dispdib.dll16 enable_win16
14873 wine_fn_config_dll dispex enable_dispex
14874 wine_fn_config_test dlls/dispex/tests dispex_test
14875 wine_fn_config_dll display.drv16 enable_win16
14876 wine_fn_config_dll dmband enable_dmband
14877 wine_fn_config_dll dmcompos enable_dmcompos
14878 wine_fn_config_dll dmime enable_dmime
14879 wine_fn_config_test dlls/dmime/tests dmime_test
14880 wine_fn_config_dll dmloader enable_dmloader
14881 wine_fn_config_test dlls/dmloader/tests dmloader_test
14882 wine_fn_config_dll dmscript enable_dmscript
14883 wine_fn_config_dll dmstyle enable_dmstyle
14884 wine_fn_config_dll dmsynth enable_dmsynth
14885 wine_fn_config_dll dmusic enable_dmusic
14886 wine_fn_config_dll dmusic32 enable_dmusic32 implib
14887 wine_fn_config_dll dnsapi enable_dnsapi implib
14888 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14889 wine_fn_config_dll dplay enable_dplay implib
14890 wine_fn_config_dll dplayx enable_dplayx implib
14891 wine_fn_config_test dlls/dplayx/tests dplayx_test
14892 wine_fn_config_dll dpnaddr enable_dpnaddr
14893 wine_fn_config_dll dpnet enable_dpnet implib
14894 wine_fn_config_test dlls/dpnet/tests dpnet_test
14895 wine_fn_config_dll dpnhpast enable_dpnhpast
14896 wine_fn_config_dll dpnlobby enable_dpnlobby
14897 wine_fn_config_dll dpwsockx enable_dpwsockx
14898 wine_fn_config_dll drmclien enable_drmclien
14899 wine_fn_config_dll dsound enable_dsound implib
14900 wine_fn_config_test dlls/dsound/tests dsound_test
14901 wine_fn_config_dll dssenh enable_dssenh
14902 wine_fn_config_dll dswave enable_dswave
14903 wine_fn_config_dll dwmapi enable_dwmapi implib
14904 wine_fn_config_dll dxdiagn enable_dxdiagn po
14905 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14906 wine_fn_config_lib dxerr8
14907 wine_fn_config_lib dxerr9
14908 wine_fn_config_dll dxgi enable_dxgi implib
14909 wine_fn_config_test dlls/dxgi/tests dxgi_test
14910 wine_fn_config_lib dxguid
14911 wine_fn_config_dll explorerframe enable_explorerframe
14912 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
14913 wine_fn_config_dll faultrep enable_faultrep implib
14914 wine_fn_config_test dlls/faultrep/tests faultrep_test
14915 wine_fn_config_dll fltlib enable_fltlib
14916 wine_fn_config_dll fusion enable_fusion
14917 wine_fn_config_test dlls/fusion/tests fusion_test
14918 wine_fn_config_dll fwpuclnt enable_fwpuclnt
14919 wine_fn_config_dll gameux enable_gameux
14920 wine_fn_config_test dlls/gameux/tests gameux_test
14921 wine_fn_config_dll gdi.exe16 enable_win16
14922 wine_fn_config_dll gdi32 enable_gdi32 implib
14923 wine_fn_config_test dlls/gdi32/tests gdi32_test
14924 wine_fn_config_dll gdiplus enable_gdiplus implib
14925 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
14926 wine_fn_config_dll glu32 enable_glu32 implib
14927 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14928 wine_fn_config_dll gpkcsp enable_gpkcsp
14929 wine_fn_config_dll hal enable_hal
14930 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
14931 wine_fn_config_dll hid enable_hid implib
14932 wine_fn_config_dll hlink enable_hlink implib
14933 wine_fn_config_test dlls/hlink/tests hlink_test
14934 wine_fn_config_dll hnetcfg enable_hnetcfg
14935 wine_fn_config_dll httpapi enable_httpapi
14936 wine_fn_config_dll iccvid enable_iccvid po
14937 wine_fn_config_dll icmp enable_icmp
14938 wine_fn_config_dll ieframe enable_ieframe implib,po
14939 wine_fn_config_test dlls/ieframe/tests ieframe_test
14940 wine_fn_config_dll ifsmgr.vxd enable_win16
14941 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14942 wine_fn_config_dll imagehlp enable_imagehlp implib
14943 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
14944 wine_fn_config_dll imm.dll16 enable_win16
14945 wine_fn_config_dll imm32 enable_imm32 implib
14946 wine_fn_config_test dlls/imm32/tests imm32_test
14947 wine_fn_config_dll inetcomm enable_inetcomm implib
14948 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
14949 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
14950 wine_fn_config_dll inetmib1 enable_inetmib1
14951 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
14952 wine_fn_config_dll infosoft enable_infosoft
14953 wine_fn_config_test dlls/infosoft/tests infosoft_test
14954 wine_fn_config_dll initpki enable_initpki
14955 wine_fn_config_dll inkobj enable_inkobj
14956 wine_fn_config_dll inseng enable_inseng
14957 wine_fn_config_dll iphlpapi enable_iphlpapi implib
14958 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
14959 wine_fn_config_dll itircl enable_itircl
14960 wine_fn_config_dll itss enable_itss
14961 wine_fn_config_test dlls/itss/tests itss_test
14962 wine_fn_config_dll jscript enable_jscript po
14963 wine_fn_config_test dlls/jscript/tests jscript_test
14964 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
14965 wine_fn_config_test dlls/kernel32/tests kernel32_test
14966 wine_fn_config_dll keyboard.drv16 enable_win16
14967 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
14968 wine_fn_config_dll ktmw32 enable_ktmw32
14969 wine_fn_config_dll loadperf enable_loadperf implib
14970 wine_fn_config_dll localspl enable_localspl po
14971 wine_fn_config_test dlls/localspl/tests localspl_test
14972 wine_fn_config_dll localui enable_localui po
14973 wine_fn_config_test dlls/localui/tests localui_test
14974 wine_fn_config_dll lz32 enable_lz32 implib
14975 wine_fn_config_test dlls/lz32/tests lz32_test
14976 wine_fn_config_dll lzexpand.dll16 enable_win16
14977 wine_fn_config_dll mapi32 enable_mapi32 implib,po
14978 wine_fn_config_test dlls/mapi32/tests mapi32_test
14979 wine_fn_config_dll mapistub enable_mapistub
14980 wine_fn_config_dll mciavi32 enable_mciavi32
14981 wine_fn_config_dll mcicda enable_mcicda
14982 wine_fn_config_dll mciqtz32 enable_mciqtz32
14983 wine_fn_config_dll mciseq enable_mciseq
14984 wine_fn_config_dll mciwave enable_mciwave
14985 wine_fn_config_dll midimap enable_midimap
14986 wine_fn_config_dll mlang enable_mlang implib
14987 wine_fn_config_test dlls/mlang/tests mlang_test
14988 wine_fn_config_dll mmcndmgr enable_mmcndmgr
14989 wine_fn_config_dll mmdevapi enable_mmdevapi
14990 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
14991 wine_fn_config_dll mmdevldr.vxd enable_win16
14992 wine_fn_config_dll mmsystem.dll16 enable_win16
14993 wine_fn_config_dll monodebg.vxd enable_win16
14994 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14995 wine_fn_config_dll mouse.drv16 enable_win16
14996 wine_fn_config_dll mpr enable_mpr implib,po
14997 wine_fn_config_dll mprapi enable_mprapi implib
14998 wine_fn_config_dll msacm.dll16 enable_win16
14999 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15000 wine_fn_config_dll msacm32 enable_msacm32 implib
15001 wine_fn_config_test dlls/msacm32/tests msacm32_test
15002 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15003 wine_fn_config_dll mscat32 enable_mscat32
15004 wine_fn_config_dll mscms enable_mscms implib
15005 wine_fn_config_test dlls/mscms/tests mscms_test
15006 wine_fn_config_dll mscoree enable_mscoree
15007 wine_fn_config_test dlls/mscoree/tests mscoree_test
15008 wine_fn_config_dll msctf enable_msctf
15009 wine_fn_config_test dlls/msctf/tests msctf_test
15010 wine_fn_config_dll msdaps enable_msdaps
15011 wine_fn_config_dll msdmo enable_msdmo implib
15012 wine_fn_config_dll msftedit enable_msftedit
15013 wine_fn_config_dll msg711.acm enable_msg711_acm
15014 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15015 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15016 wine_fn_config_dll mshtml enable_mshtml implib,po
15017 wine_fn_config_test dlls/mshtml/tests mshtml_test
15018 wine_fn_config_dll msi enable_msi implib,po
15019 wine_fn_config_test dlls/msi/tests msi_test
15020 wine_fn_config_dll msimg32 enable_msimg32 implib
15021 wine_fn_config_dll msimsg enable_msimsg
15022 wine_fn_config_dll msimtf enable_msimtf
15023 wine_fn_config_dll msisip enable_msisip
15024 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15025 wine_fn_config_dll msnet32 enable_msnet32
15026 wine_fn_config_dll mspatcha enable_mspatcha
15027 wine_fn_config_dll msrle32 enable_msrle32 po
15028 wine_fn_config_dll mssign32 enable_mssign32
15029 wine_fn_config_dll mssip32 enable_mssip32
15030 wine_fn_config_dll mstask enable_mstask
15031 wine_fn_config_test dlls/mstask/tests mstask_test
15032 wine_fn_config_dll msvcirt enable_msvcirt
15033 wine_fn_config_dll msvcp100 enable_msvcp100
15034 wine_fn_config_dll msvcp60 enable_msvcp60
15035 wine_fn_config_dll msvcp70 enable_msvcp70
15036 wine_fn_config_dll msvcp71 enable_msvcp71
15037 wine_fn_config_dll msvcp80 enable_msvcp80
15038 wine_fn_config_dll msvcp90 enable_msvcp90
15039 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15040 wine_fn_config_dll msvcr100 enable_msvcr100
15041 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15042 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15043 wine_fn_config_dll msvcr80 enable_msvcr80
15044 wine_fn_config_dll msvcr90 enable_msvcr90
15045 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15046 wine_fn_config_dll msvcrt enable_msvcrt implib
15047 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15048 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15049 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15050 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15051 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15052 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15053 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15054 wine_fn_config_dll msvidc32 enable_msvidc32 po
15055 wine_fn_config_dll msvideo.dll16 enable_win16
15056 wine_fn_config_dll mswsock enable_mswsock implib
15057 wine_fn_config_dll msxml enable_msxml
15058 wine_fn_config_dll msxml2 enable_msxml2
15059 wine_fn_config_dll msxml3 enable_msxml3
15060 wine_fn_config_test dlls/msxml3/tests msxml3_test
15061 wine_fn_config_dll msxml4 enable_msxml4
15062 wine_fn_config_dll msxml6 enable_msxml6
15063 wine_fn_config_dll nddeapi enable_nddeapi implib
15064 wine_fn_config_dll netapi32 enable_netapi32 implib
15065 wine_fn_config_test dlls/netapi32/tests netapi32_test
15066 wine_fn_config_dll newdev enable_newdev implib
15067 wine_fn_config_dll normaliz enable_normaliz implib
15068 wine_fn_config_dll npmshtml enable_npmshtml
15069 wine_fn_config_dll ntdll enable_ntdll implib
15070 wine_fn_config_test dlls/ntdll/tests ntdll_test
15071 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15072 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15073 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15074 wine_fn_config_dll ntprint enable_ntprint
15075 wine_fn_config_test dlls/ntprint/tests ntprint_test
15076 wine_fn_config_dll objsel enable_objsel
15077 wine_fn_config_dll odbc32 enable_odbc32 implib
15078 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15079 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15080 wine_fn_config_dll ole2.dll16 enable_win16
15081 wine_fn_config_dll ole2conv.dll16 enable_win16
15082 wine_fn_config_dll ole2disp.dll16 enable_win16
15083 wine_fn_config_dll ole2nls.dll16 enable_win16
15084 wine_fn_config_dll ole2prox.dll16 enable_win16
15085 wine_fn_config_dll ole2thk.dll16 enable_win16
15086 wine_fn_config_dll ole32 enable_ole32 implib
15087 wine_fn_config_test dlls/ole32/tests ole32_test
15088 wine_fn_config_dll oleacc enable_oleacc implib,po
15089 wine_fn_config_test dlls/oleacc/tests oleacc_test
15090 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15091 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15092 wine_fn_config_dll olecli.dll16 enable_win16
15093 wine_fn_config_dll olecli32 enable_olecli32 implib
15094 wine_fn_config_dll oledb32 enable_oledb32
15095 wine_fn_config_test dlls/oledb32/tests oledb32_test
15096 wine_fn_config_dll oledlg enable_oledlg implib,po
15097 wine_fn_config_dll olepro32 enable_olepro32 implib
15098 wine_fn_config_dll olesvr.dll16 enable_win16
15099 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15100 wine_fn_config_dll olethk32 enable_olethk32
15101 wine_fn_config_dll openal32 enable_openal32
15102 wine_fn_config_dll opencl enable_opencl
15103 wine_fn_config_dll opengl32 enable_opengl32 implib
15104 wine_fn_config_test dlls/opengl32/tests opengl32_test
15105 wine_fn_config_dll pdh enable_pdh implib
15106 wine_fn_config_test dlls/pdh/tests pdh_test
15107 wine_fn_config_dll pidgen enable_pidgen
15108 wine_fn_config_dll powrprof enable_powrprof implib
15109 wine_fn_config_dll printui enable_printui
15110 wine_fn_config_dll propsys enable_propsys implib
15111 wine_fn_config_test dlls/propsys/tests propsys_test
15112 wine_fn_config_dll psapi enable_psapi implib
15113 wine_fn_config_test dlls/psapi/tests psapi_test
15114 wine_fn_config_dll pstorec enable_pstorec
15115 wine_fn_config_dll qcap enable_qcap
15116 wine_fn_config_dll qedit enable_qedit
15117 wine_fn_config_test dlls/qedit/tests qedit_test
15118 wine_fn_config_dll qmgr enable_qmgr
15119 wine_fn_config_test dlls/qmgr/tests qmgr_test
15120 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15121 wine_fn_config_dll quartz enable_quartz implib
15122 wine_fn_config_test dlls/quartz/tests quartz_test
15123 wine_fn_config_dll query enable_query
15124 wine_fn_config_dll rasapi16.dll16 enable_win16
15125 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15126 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15127 wine_fn_config_dll rasdlg enable_rasdlg implib
15128 wine_fn_config_dll regapi enable_regapi
15129 wine_fn_config_dll resutils enable_resutils implib
15130 wine_fn_config_dll riched20 enable_riched20 implib
15131 wine_fn_config_test dlls/riched20/tests riched20_test
15132 wine_fn_config_dll riched32 enable_riched32
15133 wine_fn_config_test dlls/riched32/tests riched32_test
15134 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15135 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15136 wine_fn_config_dll rsabase enable_rsabase
15137 wine_fn_config_dll rsaenh enable_rsaenh implib
15138 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15139 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15140 wine_fn_config_dll rtutils enable_rtutils implib
15141 wine_fn_config_dll samlib enable_samlib
15142 wine_fn_config_dll sane.ds enable_sane_ds po
15143 wine_fn_config_dll scarddlg enable_scarddlg
15144 wine_fn_config_dll sccbase enable_sccbase
15145 wine_fn_config_dll schannel enable_schannel
15146 wine_fn_config_test dlls/schannel/tests schannel_test
15147 wine_fn_config_dll secur32 enable_secur32 implib
15148 wine_fn_config_test dlls/secur32/tests secur32_test
15149 wine_fn_config_dll security enable_security
15150 wine_fn_config_dll sensapi enable_sensapi implib
15151 wine_fn_config_dll serialui enable_serialui implib
15152 wine_fn_config_test dlls/serialui/tests serialui_test
15153 wine_fn_config_dll setupapi enable_setupapi implib,po
15154 wine_fn_config_test dlls/setupapi/tests setupapi_test
15155 wine_fn_config_dll setupx.dll16 enable_win16
15156 wine_fn_config_dll sfc enable_sfc implib
15157 wine_fn_config_dll sfc_os enable_sfc_os implib
15158 wine_fn_config_dll shdoclc enable_shdoclc po
15159 wine_fn_config_dll shdocvw enable_shdocvw implib
15160 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15161 wine_fn_config_dll shell.dll16 enable_win16
15162 wine_fn_config_dll shell32 enable_shell32 implib,po
15163 wine_fn_config_test dlls/shell32/tests shell32_test
15164 wine_fn_config_dll shfolder enable_shfolder implib
15165 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15166 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15167 wine_fn_config_dll slbcsp enable_slbcsp
15168 wine_fn_config_dll slc enable_slc implib
15169 wine_fn_config_dll snmpapi enable_snmpapi implib
15170 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15171 wine_fn_config_dll softpub enable_softpub
15172 wine_fn_config_dll sound.drv16 enable_win16
15173 wine_fn_config_dll spoolss enable_spoolss implib
15174 wine_fn_config_test dlls/spoolss/tests spoolss_test
15175 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15176 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15177 wine_fn_config_dll sti enable_sti implib
15178 wine_fn_config_test dlls/sti/tests sti_test
15179 wine_fn_config_dll storage.dll16 enable_win16
15180 wine_fn_config_dll stress.dll16 enable_win16
15181 wine_fn_config_lib strmbase
15182 wine_fn_config_lib strmiids
15183 wine_fn_config_dll svrapi enable_svrapi
15184 wine_fn_config_dll sxs enable_sxs
15185 wine_fn_config_dll system.drv16 enable_win16
15186 wine_fn_config_dll t2embed enable_t2embed
15187 wine_fn_config_dll tapi32 enable_tapi32 implib
15188 wine_fn_config_dll toolhelp.dll16 enable_win16
15189 wine_fn_config_dll traffic enable_traffic
15190 wine_fn_config_dll twain.dll16 enable_win16
15191 wine_fn_config_dll twain_32 enable_twain_32
15192 wine_fn_config_test dlls/twain_32/tests twain_32_test
15193 wine_fn_config_dll typelib.dll16 enable_win16
15194 wine_fn_config_dll unicows enable_unicows implib
15195 wine_fn_config_dll updspapi enable_updspapi
15196 wine_fn_config_dll url enable_url implib
15197 wine_fn_config_dll urlmon enable_urlmon implib
15198 wine_fn_config_test dlls/urlmon/tests urlmon_test
15199 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15200 wine_fn_config_dll user.exe16 enable_win16
15201 wine_fn_config_dll user32 enable_user32 implib,po
15202 wine_fn_config_test dlls/user32/tests user32_test
15203 wine_fn_config_dll userenv enable_userenv implib
15204 wine_fn_config_test dlls/userenv/tests userenv_test
15205 wine_fn_config_dll usp10 enable_usp10 implib
15206 wine_fn_config_test dlls/usp10/tests usp10_test
15207 wine_fn_config_lib uuid
15208 wine_fn_config_dll uxtheme enable_uxtheme implib
15209 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15210 wine_fn_config_dll vbscript enable_vbscript
15211 wine_fn_config_test dlls/vbscript/tests vbscript_test
15212 wine_fn_config_dll vcomp enable_vcomp
15213 wine_fn_config_dll vdhcp.vxd enable_win16
15214 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15215 wine_fn_config_dll ver.dll16 enable_win16
15216 wine_fn_config_dll version enable_version implib
15217 wine_fn_config_test dlls/version/tests version_test
15218 wine_fn_config_dll vmm.vxd enable_win16
15219 wine_fn_config_dll vnbt.vxd enable_win16
15220 wine_fn_config_dll vnetbios.vxd enable_win16
15221 wine_fn_config_dll vtdapi.vxd enable_win16
15222 wine_fn_config_dll vwin32.vxd enable_win16
15223 wine_fn_config_dll w32skrnl enable_win16
15224 wine_fn_config_dll w32sys.dll16 enable_win16
15225 wine_fn_config_dll wbemprox enable_wbemprox
15226 wine_fn_config_dll wer enable_wer implib
15227 wine_fn_config_test dlls/wer/tests wer_test
15228 wine_fn_config_dll wiaservc enable_wiaservc
15229 wine_fn_config_dll win32s16.dll16 enable_win16
15230 wine_fn_config_dll win87em.dll16 enable_win16
15231 wine_fn_config_dll winaspi.dll16 enable_win16
15232 wine_fn_config_dll windebug.dll16 enable_win16
15233 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15234 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15235 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15236 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15237 wine_fn_config_lib winecrt0
15238 wine_fn_config_dll wined3d enable_wined3d implib
15239 wine_fn_config_dll winegstreamer enable_winegstreamer
15240 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15241 wine_fn_config_dll winemapi enable_winemapi
15242 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15243 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15244 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib
15245 wine_fn_config_dll wineps16.drv16 enable_win16
15246 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15247 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15248 wine_fn_config_dll winex11.drv enable_winex11_drv
15249 wine_fn_config_dll wing.dll16 enable_win16
15250 wine_fn_config_dll wing32 enable_wing32
15251 wine_fn_config_dll winhttp enable_winhttp implib
15252 wine_fn_config_test dlls/winhttp/tests winhttp_test
15253 wine_fn_config_dll wininet enable_wininet implib,po
15254 wine_fn_config_test dlls/wininet/tests wininet_test
15255 wine_fn_config_dll winmm enable_winmm implib,po
15256 wine_fn_config_test dlls/winmm/tests winmm_test
15257 wine_fn_config_dll winnls.dll16 enable_win16
15258 wine_fn_config_dll winnls32 enable_winnls32 implib
15259 wine_fn_config_dll winscard enable_winscard implib
15260 wine_fn_config_dll winsock.dll16 enable_win16
15261 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15262 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15263 wine_fn_config_dll winsta enable_winsta
15264 wine_fn_config_dll wintab.dll16 enable_win16
15265 wine_fn_config_dll wintab32 enable_wintab32 implib
15266 wine_fn_config_test dlls/wintab32/tests wintab32_test
15267 wine_fn_config_dll wintrust enable_wintrust implib
15268 wine_fn_config_test dlls/wintrust/tests wintrust_test
15269 wine_fn_config_dll wlanapi enable_wlanapi
15270 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15271 wine_fn_config_test dlls/wldap32/tests wldap32_test
15272 wine_fn_config_dll wmi enable_wmi
15273 wine_fn_config_dll wmiutils enable_wmiutils
15274 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15275 wine_fn_config_dll wow32 enable_win16 implib
15276 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15277 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15278 wine_fn_config_dll wshom.ocx enable_wshom_ocx
15279 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
15280 wine_fn_config_dll wsock32 enable_wsock32 implib
15281 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15282 wine_fn_config_dll wuapi enable_wuapi
15283 wine_fn_config_dll wuaueng enable_wuaueng
15284 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15285 wine_fn_config_dll xinput1_1 enable_xinput1_1
15286 wine_fn_config_dll xinput1_2 enable_xinput1_2
15287 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15288 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15289 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15290 wine_fn_config_dll xmllite enable_xmllite
15291 wine_fn_config_test dlls/xmllite/tests xmllite_test
15292 wine_fn_config_dll xolehlp enable_xolehlp
15293 wine_fn_config_makefile documentation enable_documentation
15294 wine_fn_config_makefile fonts enable_fonts install-lib
15295 wine_fn_config_makefile include enable_include install-dev
15296 wine_fn_config_makefile libs/port enable_libs_port
15297 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15298 wine_fn_config_makefile libs/wpp enable_libs_wpp
15299 wine_fn_config_makefile loader enable_loader install-lib,manpage
15300 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15301 wine_fn_config_program attrib enable_attrib install,po
15302 wine_fn_config_program cabarc enable_cabarc install
15303 wine_fn_config_program cacls enable_cacls install
15304 wine_fn_config_program clock enable_clock install,po
15305 wine_fn_config_program cmd enable_cmd install,po
15306 wine_fn_config_test programs/cmd/tests cmd.exe_test
15307 wine_fn_config_program cmdlgtst enable_cmdlgtst
15308 wine_fn_config_program control enable_control install
15309 wine_fn_config_program dxdiag enable_dxdiag install,po
15310 wine_fn_config_program eject enable_eject install
15311 wine_fn_config_program expand enable_expand install
15312 wine_fn_config_program explorer enable_explorer install,po
15313 wine_fn_config_program extrac32 enable_extrac32 install
15314 wine_fn_config_program hh enable_hh install
15315 wine_fn_config_program hostname enable_hostname install,po
15316 wine_fn_config_program icinfo enable_icinfo install
15317 wine_fn_config_program iexplore enable_iexplore install
15318 wine_fn_config_program ipconfig enable_ipconfig install,po
15319 wine_fn_config_program lodctr enable_lodctr install
15320 wine_fn_config_program mofcomp enable_mofcomp install
15321 wine_fn_config_program mshta enable_mshta install
15322 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
15323 wine_fn_config_program net enable_net install,po
15324 wine_fn_config_program netsh enable_netsh install
15325 wine_fn_config_program ngen enable_ngen install
15326 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
15327 wine_fn_config_program oleview enable_oleview install,po
15328 wine_fn_config_program ping enable_ping install
15329 wine_fn_config_program plugplay enable_plugplay install
15330 wine_fn_config_program presentationfontcache enable_presentationfontcache install
15331 wine_fn_config_program progman enable_progman install,po
15332 wine_fn_config_program reg enable_reg install,po
15333 wine_fn_config_program regasm enable_regasm install
15334 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
15335 wine_fn_config_test programs/regedit/tests regedit.exe_test
15336 wine_fn_config_program regsvcs enable_regsvcs install
15337 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
15338 wine_fn_config_program rpcss enable_rpcss install
15339 wine_fn_config_program rundll.exe16 enable_win16 install
15340 wine_fn_config_program rundll32 enable_rundll32 install
15341 wine_fn_config_program sc enable_sc install
15342 wine_fn_config_program secedit enable_secedit install
15343 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15344 wine_fn_config_program services enable_services install
15345 wine_fn_config_program spoolsv enable_spoolsv install
15346 wine_fn_config_program start enable_start install,po
15347 wine_fn_config_program svchost enable_svchost install
15348 wine_fn_config_program taskkill enable_taskkill install,po
15349 wine_fn_config_program taskmgr enable_taskmgr install,po
15350 wine_fn_config_program termsv enable_termsv install
15351 wine_fn_config_program uninstaller enable_uninstaller install,po
15352 wine_fn_config_program unlodctr enable_unlodctr install
15353 wine_fn_config_program view enable_view install,po
15354 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
15355 wine_fn_config_program winebrowser enable_winebrowser install
15356 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15357 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15358 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
15359 wine_fn_config_program winedevice enable_winedevice install
15360 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
15361 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15362 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
15363 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15364 wine_fn_config_program winepath enable_winepath install,installbin,manpage
15365 wine_fn_config_program winetest enable_winetest
15366 wine_fn_config_program winevdm enable_win16 install
15367 wine_fn_config_program winhelp.exe16 enable_win16 install
15368 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15369 wine_fn_config_program winoldap.mod16 enable_win16 install
15370 wine_fn_config_program winver enable_winver install
15371 wine_fn_config_program wmic enable_wmic install
15372 wine_fn_config_program wordpad enable_wordpad install,po
15373 wine_fn_config_program write enable_write install,po
15374 wine_fn_config_program wscript enable_wscript install
15375 wine_fn_config_test programs/wscript/tests wscript.exe_test
15376 wine_fn_config_program xcopy enable_xcopy install,po
15377 wine_fn_config_makefile server enable_server install-lib,manpage
15378 wine_fn_config_tool tools install-dev,install-lib,manpage
15379 wine_fn_config_tool tools/widl install-dev,manpage
15380 wine_fn_config_tool tools/winebuild install-dev,manpage
15381 wine_fn_config_tool tools/winedump install-dev,manpage
15382 wine_fn_config_tool tools/winegcc install-dev,manpage
15383 wine_fn_config_tool tools/wmc install-dev,manpage
15384 wine_fn_config_tool tools/wrc install-dev,manpage
15386 LINGUAS="\
15387 ar \
15388 bg \
15389 ca \
15390 cs \
15391 da \
15392 de \
15393 el \
15394 en \
15395 en_US \
15396 eo \
15397 es \
15398 fa \
15399 fi \
15400 fr \
15401 he \
15402 hi \
15403 hu \
15404 it \
15405 ja \
15406 ko \
15407 lt \
15408 ml \
15409 nb_NO \
15410 nl \
15411 or \
15412 pa \
15413 pl \
15414 pt_BR \
15415 pt_PT \
15416 rm \
15417 ro \
15418 ru \
15419 sk \
15420 sl \
15421 sr_RS@cyrillic \
15422 sr_RS@latin \
15423 sv \
15424 te \
15425 th \
15426 tr \
15427 uk \
15428 wa \
15429 zh_CN \
15430 zh_TW"
15434 ac_config_commands="$ac_config_commands Makefile"
15437 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15441 if test "x$enable_maintainer_mode" = xyes
15442 then
15443 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15444 cd \$(srcdir) && autoconf --warnings=all
15445 \$(srcdir)/include/config.h.in: include/stamp-h.in
15446 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15447 cd \$(srcdir) && autoheader --warnings=all
15448 @echo timestamp > \$@"
15451 if test "x$with_gettextpo" = xyes
15452 then
15453 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15454 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15455 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
15456 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15457 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15458 msgcat -o \$@ \$(ALL_POT_FILES)"
15461 if test "$MSGFMT" != false
15462 then
15463 PORCFLAGS="--po-dir=\$(top_builddir)/po"
15465 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
15466 else
15467 LINGUAS=
15470 if test "x$enable_tools" != xno
15471 then
15472 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15473 clean:: __clean__
15474 \$(RM) tools/makedep\$(EXEEXT)"
15477 if test -n "$with_wine64"
15478 then
15479 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15480 fonts server tools:
15481 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15482 $with_wine64/loader/wine:
15483 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15484 $with_wine64/loader/wine-preloader:
15485 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15486 clean::
15487 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15490 cat >confcache <<\_ACEOF
15491 # This file is a shell script that caches the results of configure
15492 # tests run on this system so they can be shared between configure
15493 # scripts and configure runs, see configure's option --config-cache.
15494 # It is not useful on other systems. If it contains results you don't
15495 # want to keep, you may remove or edit it.
15497 # config.status only pays attention to the cache file if you give it
15498 # the --recheck option to rerun configure.
15500 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15501 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15502 # following values.
15504 _ACEOF
15506 # The following way of writing the cache mishandles newlines in values,
15507 # but we know of no workaround that is simple, portable, and efficient.
15508 # So, we kill variables containing newlines.
15509 # Ultrix sh set writes to stderr and can't be redirected directly,
15510 # and sets the high bit in the cache file unless we assign to the vars.
15512 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15513 eval ac_val=\$$ac_var
15514 case $ac_val in #(
15515 *${as_nl}*)
15516 case $ac_var in #(
15517 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15518 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15519 esac
15520 case $ac_var in #(
15521 _ | IFS | as_nl) ;; #(
15522 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15523 *) { eval $ac_var=; unset $ac_var;} ;;
15524 esac ;;
15525 esac
15526 done
15528 (set) 2>&1 |
15529 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15530 *${as_nl}ac_space=\ *)
15531 # `set' does not quote correctly, so add quotes: double-quote
15532 # substitution turns \\\\ into \\, and sed turns \\ into \.
15533 sed -n \
15534 "s/'/'\\\\''/g;
15535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15536 ;; #(
15538 # `set' quotes correctly as required by POSIX, so do not add quotes.
15539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15541 esac |
15542 sort
15544 sed '
15545 /^ac_cv_env_/b end
15546 t clear
15547 :clear
15548 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15549 t end
15550 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15551 :end' >>confcache
15552 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15553 if test -w "$cache_file"; then
15554 if test "x$cache_file" != "x/dev/null"; then
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15556 $as_echo "$as_me: updating cache $cache_file" >&6;}
15557 if test ! -f "$cache_file" || test -h "$cache_file"; then
15558 cat confcache >"$cache_file"
15559 else
15560 case $cache_file in #(
15561 */* | ?:*)
15562 mv -f confcache "$cache_file"$$ &&
15563 mv -f "$cache_file"$$ "$cache_file" ;; #(
15565 mv -f confcache "$cache_file" ;;
15566 esac
15569 else
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15571 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15574 rm -f confcache
15576 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15577 # Let make expand exec_prefix.
15578 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15580 DEFS=-DHAVE_CONFIG_H
15582 ac_libobjs=
15583 ac_ltlibobjs=
15585 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15586 # 1. Remove the extension, and $U if already installed.
15587 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15588 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15589 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15590 # will be set to the directory where LIBOBJS objects are built.
15591 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15592 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15593 done
15594 LIBOBJS=$ac_libobjs
15596 LTLIBOBJS=$ac_ltlibobjs
15600 : "${CONFIG_STATUS=./config.status}"
15601 ac_write_fail=0
15602 ac_clean_files_save=$ac_clean_files
15603 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15605 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15606 as_write_fail=0
15607 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15608 #! $SHELL
15609 # Generated by $as_me.
15610 # Run this file to recreate the current configuration.
15611 # Compiler output produced by configure, useful for debugging
15612 # configure, is in config.log if it exists.
15614 debug=false
15615 ac_cs_recheck=false
15616 ac_cs_silent=false
15618 SHELL=\${CONFIG_SHELL-$SHELL}
15619 export SHELL
15620 _ASEOF
15621 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15622 ## -------------------- ##
15623 ## M4sh Initialization. ##
15624 ## -------------------- ##
15626 # Be more Bourne compatible
15627 DUALCASE=1; export DUALCASE # for MKS sh
15628 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15629 emulate sh
15630 NULLCMD=:
15631 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15632 # is contrary to our usage. Disable this feature.
15633 alias -g '${1+"$@"}'='"$@"'
15634 setopt NO_GLOB_SUBST
15635 else
15636 case `(set -o) 2>/dev/null` in #(
15637 *posix*) :
15638 set -o posix ;; #(
15639 *) :
15641 esac
15645 as_nl='
15647 export as_nl
15648 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15649 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15650 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15652 # Prefer a ksh shell builtin over an external printf program on Solaris,
15653 # but without wasting forks for bash or zsh.
15654 if test -z "$BASH_VERSION$ZSH_VERSION" \
15655 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15656 as_echo='print -r --'
15657 as_echo_n='print -rn --'
15658 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15659 as_echo='printf %s\n'
15660 as_echo_n='printf %s'
15661 else
15662 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15663 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15664 as_echo_n='/usr/ucb/echo -n'
15665 else
15666 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15667 as_echo_n_body='eval
15668 arg=$1;
15669 case $arg in #(
15670 *"$as_nl"*)
15671 expr "X$arg" : "X\\(.*\\)$as_nl";
15672 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15673 esac;
15674 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15676 export as_echo_n_body
15677 as_echo_n='sh -c $as_echo_n_body as_echo'
15679 export as_echo_body
15680 as_echo='sh -c $as_echo_body as_echo'
15683 # The user is always right.
15684 if test "${PATH_SEPARATOR+set}" != set; then
15685 PATH_SEPARATOR=:
15686 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15687 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15688 PATH_SEPARATOR=';'
15693 # IFS
15694 # We need space, tab and new line, in precisely that order. Quoting is
15695 # there to prevent editors from complaining about space-tab.
15696 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15697 # splitting by setting IFS to empty value.)
15698 IFS=" "" $as_nl"
15700 # Find who we are. Look in the path if we contain no directory separator.
15701 as_myself=
15702 case $0 in #((
15703 *[\\/]* ) as_myself=$0 ;;
15704 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15705 for as_dir in $PATH
15707 IFS=$as_save_IFS
15708 test -z "$as_dir" && as_dir=.
15709 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15710 done
15711 IFS=$as_save_IFS
15714 esac
15715 # We did not find ourselves, most probably we were run as `sh COMMAND'
15716 # in which case we are not to be found in the path.
15717 if test "x$as_myself" = x; then
15718 as_myself=$0
15720 if test ! -f "$as_myself"; then
15721 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15722 exit 1
15725 # Unset variables that we do not need and which cause bugs (e.g. in
15726 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15727 # suppresses any "Segmentation fault" message there. '((' could
15728 # trigger a bug in pdksh 5.2.14.
15729 for as_var in BASH_ENV ENV MAIL MAILPATH
15730 do eval test x\${$as_var+set} = xset \
15731 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15732 done
15733 PS1='$ '
15734 PS2='> '
15735 PS4='+ '
15737 # NLS nuisances.
15738 LC_ALL=C
15739 export LC_ALL
15740 LANGUAGE=C
15741 export LANGUAGE
15743 # CDPATH.
15744 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15747 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15748 # ----------------------------------------
15749 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15750 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15751 # script with STATUS, using 1 if that was 0.
15752 as_fn_error ()
15754 as_status=$1; test $as_status -eq 0 && as_status=1
15755 if test "$4"; then
15756 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15757 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15759 $as_echo "$as_me: error: $2" >&2
15760 as_fn_exit $as_status
15761 } # as_fn_error
15764 # as_fn_set_status STATUS
15765 # -----------------------
15766 # Set $? to STATUS, without forking.
15767 as_fn_set_status ()
15769 return $1
15770 } # as_fn_set_status
15772 # as_fn_exit STATUS
15773 # -----------------
15774 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15775 as_fn_exit ()
15777 set +e
15778 as_fn_set_status $1
15779 exit $1
15780 } # as_fn_exit
15782 # as_fn_unset VAR
15783 # ---------------
15784 # Portably unset VAR.
15785 as_fn_unset ()
15787 { eval $1=; unset $1;}
15789 as_unset=as_fn_unset
15790 # as_fn_append VAR VALUE
15791 # ----------------------
15792 # Append the text in VALUE to the end of the definition contained in VAR. Take
15793 # advantage of any shell optimizations that allow amortized linear growth over
15794 # repeated appends, instead of the typical quadratic growth present in naive
15795 # implementations.
15796 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15797 eval 'as_fn_append ()
15799 eval $1+=\$2
15801 else
15802 as_fn_append ()
15804 eval $1=\$$1\$2
15806 fi # as_fn_append
15808 # as_fn_arith ARG...
15809 # ------------------
15810 # Perform arithmetic evaluation on the ARGs, and store the result in the
15811 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15812 # must be portable across $(()) and expr.
15813 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15814 eval 'as_fn_arith ()
15816 as_val=$(( $* ))
15818 else
15819 as_fn_arith ()
15821 as_val=`expr "$@" || test $? -eq 1`
15823 fi # as_fn_arith
15826 if expr a : '\(a\)' >/dev/null 2>&1 &&
15827 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15828 as_expr=expr
15829 else
15830 as_expr=false
15833 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15834 as_basename=basename
15835 else
15836 as_basename=false
15839 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15840 as_dirname=dirname
15841 else
15842 as_dirname=false
15845 as_me=`$as_basename -- "$0" ||
15846 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15847 X"$0" : 'X\(//\)$' \| \
15848 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15849 $as_echo X/"$0" |
15850 sed '/^.*\/\([^/][^/]*\)\/*$/{
15851 s//\1/
15854 /^X\/\(\/\/\)$/{
15855 s//\1/
15858 /^X\/\(\/\).*/{
15859 s//\1/
15862 s/.*/./; q'`
15864 # Avoid depending upon Character Ranges.
15865 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15866 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15867 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15868 as_cr_digits='0123456789'
15869 as_cr_alnum=$as_cr_Letters$as_cr_digits
15871 ECHO_C= ECHO_N= ECHO_T=
15872 case `echo -n x` in #(((((
15873 -n*)
15874 case `echo 'xy\c'` in
15875 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15876 xy) ECHO_C='\c';;
15877 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15878 ECHO_T=' ';;
15879 esac;;
15881 ECHO_N='-n';;
15882 esac
15884 rm -f conf$$ conf$$.exe conf$$.file
15885 if test -d conf$$.dir; then
15886 rm -f conf$$.dir/conf$$.file
15887 else
15888 rm -f conf$$.dir
15889 mkdir conf$$.dir 2>/dev/null
15891 if (echo >conf$$.file) 2>/dev/null; then
15892 if ln -s conf$$.file conf$$ 2>/dev/null; then
15893 as_ln_s='ln -s'
15894 # ... but there are two gotchas:
15895 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15896 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15897 # In both cases, we have to default to `cp -p'.
15898 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15899 as_ln_s='cp -p'
15900 elif ln conf$$.file conf$$ 2>/dev/null; then
15901 as_ln_s=ln
15902 else
15903 as_ln_s='cp -p'
15905 else
15906 as_ln_s='cp -p'
15908 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15909 rmdir conf$$.dir 2>/dev/null
15912 # as_fn_mkdir_p
15913 # -------------
15914 # Create "$as_dir" as a directory, including parents if necessary.
15915 as_fn_mkdir_p ()
15918 case $as_dir in #(
15919 -*) as_dir=./$as_dir;;
15920 esac
15921 test -d "$as_dir" || eval $as_mkdir_p || {
15922 as_dirs=
15923 while :; do
15924 case $as_dir in #(
15925 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15926 *) as_qdir=$as_dir;;
15927 esac
15928 as_dirs="'$as_qdir' $as_dirs"
15929 as_dir=`$as_dirname -- "$as_dir" ||
15930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15931 X"$as_dir" : 'X\(//\)[^/]' \| \
15932 X"$as_dir" : 'X\(//\)$' \| \
15933 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15934 $as_echo X"$as_dir" |
15935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15936 s//\1/
15939 /^X\(\/\/\)[^/].*/{
15940 s//\1/
15943 /^X\(\/\/\)$/{
15944 s//\1/
15947 /^X\(\/\).*/{
15948 s//\1/
15951 s/.*/./; q'`
15952 test -d "$as_dir" && break
15953 done
15954 test -z "$as_dirs" || eval "mkdir $as_dirs"
15955 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15958 } # as_fn_mkdir_p
15959 if mkdir -p . 2>/dev/null; then
15960 as_mkdir_p='mkdir -p "$as_dir"'
15961 else
15962 test -d ./-p && rmdir ./-p
15963 as_mkdir_p=false
15966 if test -x / >/dev/null 2>&1; then
15967 as_test_x='test -x'
15968 else
15969 if ls -dL / >/dev/null 2>&1; then
15970 as_ls_L_option=L
15971 else
15972 as_ls_L_option=
15974 as_test_x='
15975 eval sh -c '\''
15976 if test -d "$1"; then
15977 test -d "$1/.";
15978 else
15979 case $1 in #(
15980 -*)set "./$1";;
15981 esac;
15982 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15983 ???[sx]*):;;*)false;;esac;fi
15984 '\'' sh
15987 as_executable_p=$as_test_x
15989 # Sed expression to map a string onto a valid CPP name.
15990 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15992 # Sed expression to map a string onto a valid variable name.
15993 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15996 exec 6>&1
15997 ## ----------------------------------- ##
15998 ## Main body of $CONFIG_STATUS script. ##
15999 ## ----------------------------------- ##
16000 _ASEOF
16001 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16004 # Save the log message, to keep $0 and so on meaningful, and to
16005 # report actual input values of CONFIG_FILES etc. instead of their
16006 # values after options handling.
16007 ac_log="
16008 This file was extended by Wine $as_me 1.3.32, which was
16009 generated by GNU Autoconf 2.68. Invocation command line was
16011 CONFIG_FILES = $CONFIG_FILES
16012 CONFIG_HEADERS = $CONFIG_HEADERS
16013 CONFIG_LINKS = $CONFIG_LINKS
16014 CONFIG_COMMANDS = $CONFIG_COMMANDS
16015 $ $0 $@
16017 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16020 _ACEOF
16022 case $ac_config_files in *"
16023 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16024 esac
16026 case $ac_config_headers in *"
16027 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16028 esac
16031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16032 # Files that config.status was made for.
16033 config_files="$ac_config_files"
16034 config_headers="$ac_config_headers"
16035 config_links="$ac_config_links"
16036 config_commands="$ac_config_commands"
16038 _ACEOF
16040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16041 ac_cs_usage="\
16042 \`$as_me' instantiates files and other configuration actions
16043 from templates according to the current configuration. Unless the files
16044 and actions are specified as TAGs, all are instantiated by default.
16046 Usage: $0 [OPTION]... [TAG]...
16048 -h, --help print this help, then exit
16049 -V, --version print version number and configuration settings, then exit
16050 --config print configuration, then exit
16051 -q, --quiet, --silent
16052 do not print progress messages
16053 -d, --debug don't remove temporary files
16054 --recheck update $as_me by reconfiguring in the same conditions
16055 --file=FILE[:TEMPLATE]
16056 instantiate the configuration file FILE
16057 --header=FILE[:TEMPLATE]
16058 instantiate the configuration header FILE
16060 Configuration files:
16061 $config_files
16063 Configuration headers:
16064 $config_headers
16066 Configuration links:
16067 $config_links
16069 Configuration commands:
16070 $config_commands
16072 Report bugs to <wine-devel@winehq.org>.
16073 Wine home page: <http://www.winehq.org>."
16075 _ACEOF
16076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16077 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16078 ac_cs_version="\\
16079 Wine config.status 1.3.32
16080 configured by $0, generated by GNU Autoconf 2.68,
16081 with options \\"\$ac_cs_config\\"
16083 Copyright (C) 2010 Free Software Foundation, Inc.
16084 This config.status script is free software; the Free Software Foundation
16085 gives unlimited permission to copy, distribute and modify it."
16087 ac_pwd='$ac_pwd'
16088 srcdir='$srcdir'
16089 INSTALL='$INSTALL'
16090 test -n "\$AWK" || AWK=awk
16091 _ACEOF
16093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16094 # The default lists apply if the user does not specify any file.
16095 ac_need_defaults=:
16096 while test $# != 0
16098 case $1 in
16099 --*=?*)
16100 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16101 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16102 ac_shift=:
16104 --*=)
16105 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16106 ac_optarg=
16107 ac_shift=:
16110 ac_option=$1
16111 ac_optarg=$2
16112 ac_shift=shift
16114 esac
16116 case $ac_option in
16117 # Handling of the options.
16118 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16119 ac_cs_recheck=: ;;
16120 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16121 $as_echo "$ac_cs_version"; exit ;;
16122 --config | --confi | --conf | --con | --co | --c )
16123 $as_echo "$ac_cs_config"; exit ;;
16124 --debug | --debu | --deb | --de | --d | -d )
16125 debug=: ;;
16126 --file | --fil | --fi | --f )
16127 $ac_shift
16128 case $ac_optarg in
16129 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16130 '') as_fn_error $? "missing file argument" ;;
16131 esac
16132 as_fn_append CONFIG_FILES " '$ac_optarg'"
16133 ac_need_defaults=false;;
16134 --header | --heade | --head | --hea )
16135 $ac_shift
16136 case $ac_optarg in
16137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16138 esac
16139 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16140 ac_need_defaults=false;;
16141 --he | --h)
16142 # Conflict between --help and --header
16143 as_fn_error $? "ambiguous option: \`$1'
16144 Try \`$0 --help' for more information.";;
16145 --help | --hel | -h )
16146 $as_echo "$ac_cs_usage"; exit ;;
16147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16149 ac_cs_silent=: ;;
16151 # This is an error.
16152 -*) as_fn_error $? "unrecognized option: \`$1'
16153 Try \`$0 --help' for more information." ;;
16155 *) as_fn_append ac_config_targets " $1"
16156 ac_need_defaults=false ;;
16158 esac
16159 shift
16160 done
16162 ac_configure_extra_args=
16164 if $ac_cs_silent; then
16165 exec 6>/dev/null
16166 ac_configure_extra_args="$ac_configure_extra_args --silent"
16169 _ACEOF
16170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16171 if \$ac_cs_recheck; then
16172 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16173 shift
16174 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16175 CONFIG_SHELL='$SHELL'
16176 export CONFIG_SHELL
16177 exec "\$@"
16180 _ACEOF
16181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16182 exec 5>>config.log
16184 echo
16185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16186 ## Running $as_me. ##
16187 _ASBOX
16188 $as_echo "$ac_log"
16189 } >&5
16191 _ACEOF
16192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16194 # INIT-COMMANDS
16196 wine_fn_output_makefile ()
16198 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16199 $ALL_MAKEFILE_DEPENDS
16200 _WINE_EOF
16201 as_fn_error $? "could not create Makefile" "$LINENO" 5
16204 _ACEOF
16206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16208 # Handling of arguments.
16209 for ac_config_target in $ac_config_targets
16211 case $ac_config_target in
16212 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16213 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16214 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16215 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16216 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16217 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16218 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16219 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16220 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
16221 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16222 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16223 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16224 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16225 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16226 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16227 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16228 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16229 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16230 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16231 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16232 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16233 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16234 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16235 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16236 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16237 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16239 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16240 esac
16241 done
16244 # If the user did not use the arguments to specify the items to instantiate,
16245 # then the envvar interface is used. Set only those that are not.
16246 # We use the long form for the default assignment because of an extremely
16247 # bizarre bug on SunOS 4.1.3.
16248 if $ac_need_defaults; then
16249 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16250 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16251 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16252 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16255 # Have a temporary directory for convenience. Make it in the build tree
16256 # simply because there is no reason against having it here, and in addition,
16257 # creating and moving files from /tmp can sometimes cause problems.
16258 # Hook for its removal unless debugging.
16259 # Note that there is a small window in which the directory will not be cleaned:
16260 # after its creation but before its name has been assigned to `$tmp'.
16261 $debug ||
16263 tmp= ac_tmp=
16264 trap 'exit_status=$?
16265 : "${ac_tmp:=$tmp}"
16266 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16268 trap 'as_fn_exit 1' 1 2 13 15
16270 # Create a (secure) tmp directory for tmp files.
16273 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16274 test -d "$tmp"
16275 } ||
16277 tmp=./conf$$-$RANDOM
16278 (umask 077 && mkdir "$tmp")
16279 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16280 ac_tmp=$tmp
16282 # Set up the scripts for CONFIG_FILES section.
16283 # No need to generate them if there are no CONFIG_FILES.
16284 # This happens for instance with `./config.status config.h'.
16285 if test -n "$CONFIG_FILES"; then
16287 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16288 ac_cs_awk_getline=:
16289 ac_cs_awk_pipe_init=
16290 ac_cs_awk_read_file='
16291 while ((getline aline < (F[key])) > 0)
16292 print(aline)
16293 close(F[key])'
16294 ac_cs_awk_pipe_fini=
16295 else
16296 ac_cs_awk_getline=false
16297 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16298 ac_cs_awk_read_file='
16299 print "|#_!!_#|"
16300 print "cat " F[key] " &&"
16301 '$ac_cs_awk_pipe_init
16302 # The final `:' finishes the AND list.
16303 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16305 ac_cr=`echo X | tr X '\015'`
16306 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16307 # But we know of no other shell where ac_cr would be empty at this
16308 # point, so we can use a bashism as a fallback.
16309 if test "x$ac_cr" = x; then
16310 eval ac_cr=\$\'\\r\'
16312 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16313 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16314 ac_cs_awk_cr='\\r'
16315 else
16316 ac_cs_awk_cr=$ac_cr
16319 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16320 _ACEOF
16322 # Create commands to substitute file output variables.
16324 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16325 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16326 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16327 echo "_ACAWK" &&
16328 echo "_ACEOF"
16329 } >conf$$files.sh &&
16330 . ./conf$$files.sh ||
16331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16332 rm -f conf$$files.sh
16335 echo "cat >conf$$subs.awk <<_ACEOF" &&
16336 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16337 echo "_ACEOF"
16338 } >conf$$subs.sh ||
16339 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16340 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16341 ac_delim='%!_!# '
16342 for ac_last_try in false false false false false :; do
16343 . ./conf$$subs.sh ||
16344 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16346 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16347 if test $ac_delim_n = $ac_delim_num; then
16348 break
16349 elif $ac_last_try; then
16350 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16351 else
16352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16354 done
16355 rm -f conf$$subs.sh
16357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16358 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16359 _ACEOF
16360 sed -n '
16362 s/^/S["/; s/!.*/"]=/
16365 s/^[^!]*!//
16366 :repl
16367 t repl
16368 s/'"$ac_delim"'$//
16369 t delim
16372 s/\(.\{148\}\)..*/\1/
16373 t more1
16374 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16377 b repl
16378 :more1
16379 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16382 s/.\{148\}//
16383 t nl
16384 :delim
16386 s/\(.\{148\}\)..*/\1/
16387 t more2
16388 s/["\\]/\\&/g; s/^/"/; s/$/"/
16391 :more2
16392 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16395 s/.\{148\}//
16396 t delim
16397 ' <conf$$subs.awk | sed '
16398 /^[^""]/{
16400 s/\n//
16402 ' >>$CONFIG_STATUS || ac_write_fail=1
16403 rm -f conf$$subs.awk
16404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16405 _ACAWK
16406 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16407 for (key in S) S_is_set[key] = 1
16408 FS = "\a"
16409 \$ac_cs_awk_pipe_init
16412 line = $ 0
16413 nfields = split(line, field, "@")
16414 substed = 0
16415 len = length(field[1])
16416 for (i = 2; i < nfields; i++) {
16417 key = field[i]
16418 keylen = length(key)
16419 if (S_is_set[key]) {
16420 value = S[key]
16421 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16422 len += length(value) + length(field[++i])
16423 substed = 1
16424 } else
16425 len += 1 + keylen
16427 if (nfields == 3 && !substed) {
16428 key = field[2]
16429 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16430 \$ac_cs_awk_read_file
16431 next
16434 print line
16436 \$ac_cs_awk_pipe_fini
16437 _ACAWK
16438 _ACEOF
16439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16440 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16441 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16442 else
16444 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16445 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16446 _ACEOF
16448 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16449 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16450 # trailing colons and then remove the whole line if VPATH becomes empty
16451 # (actually we leave an empty line to preserve line numbers).
16452 if test "x$srcdir" = x.; then
16453 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16455 s///
16456 s/^/:/
16457 s/[ ]*$/:/
16458 s/:\$(srcdir):/:/g
16459 s/:\${srcdir}:/:/g
16460 s/:@srcdir@:/:/g
16461 s/^:*//
16462 s/:*$//
16464 s/\(=[ ]*\).*/\1/
16466 s/\n//
16467 s/^[^=]*=[ ]*$//
16471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16472 fi # test -n "$CONFIG_FILES"
16474 # Set up the scripts for CONFIG_HEADERS section.
16475 # No need to generate them if there are no CONFIG_HEADERS.
16476 # This happens for instance with `./config.status Makefile'.
16477 if test -n "$CONFIG_HEADERS"; then
16478 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16479 BEGIN {
16480 _ACEOF
16482 # Transform confdefs.h into an awk script `defines.awk', embedded as
16483 # here-document in config.status, that substitutes the proper values into
16484 # config.h.in to produce config.h.
16486 # Create a delimiter string that does not exist in confdefs.h, to ease
16487 # handling of long lines.
16488 ac_delim='%!_!# '
16489 for ac_last_try in false false :; do
16490 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16491 if test -z "$ac_tt"; then
16492 break
16493 elif $ac_last_try; then
16494 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16495 else
16496 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16498 done
16500 # For the awk script, D is an array of macro values keyed by name,
16501 # likewise P contains macro parameters if any. Preserve backslash
16502 # newline sequences.
16504 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16505 sed -n '
16506 s/.\{148\}/&'"$ac_delim"'/g
16507 t rset
16508 :rset
16509 s/^[ ]*#[ ]*define[ ][ ]*/ /
16510 t def
16512 :def
16513 s/\\$//
16514 t bsnl
16515 s/["\\]/\\&/g
16516 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16517 D["\1"]=" \3"/p
16518 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16520 :bsnl
16521 s/["\\]/\\&/g
16522 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16523 D["\1"]=" \3\\\\\\n"\\/p
16524 t cont
16525 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16526 t cont
16528 :cont
16530 s/.\{148\}/&'"$ac_delim"'/g
16531 t clear
16532 :clear
16533 s/\\$//
16534 t bsnlc
16535 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16537 :bsnlc
16538 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16539 b cont
16540 ' <confdefs.h | sed '
16541 s/'"$ac_delim"'/"\\\
16542 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16545 for (key in D) D_is_set[key] = 1
16546 FS = "\a"
16548 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16549 line = \$ 0
16550 split(line, arg, " ")
16551 if (arg[1] == "#") {
16552 defundef = arg[2]
16553 mac1 = arg[3]
16554 } else {
16555 defundef = substr(arg[1], 2)
16556 mac1 = arg[2]
16558 split(mac1, mac2, "(") #)
16559 macro = mac2[1]
16560 prefix = substr(line, 1, index(line, defundef) - 1)
16561 if (D_is_set[macro]) {
16562 # Preserve the white space surrounding the "#".
16563 print prefix "define", macro P[macro] D[macro]
16564 next
16565 } else {
16566 # Replace #undef with comments. This is necessary, for example,
16567 # in the case of _POSIX_SOURCE, which is predefined and required
16568 # on some systems where configure will not decide to define it.
16569 if (defundef == "undef") {
16570 print "/*", prefix defundef, macro, "*/"
16571 next
16575 { print }
16576 _ACAWK
16577 _ACEOF
16578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16579 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16580 fi # test -n "$CONFIG_HEADERS"
16583 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16584 shift
16585 for ac_tag
16587 case $ac_tag in
16588 :[FHLC]) ac_mode=$ac_tag; continue;;
16589 esac
16590 case $ac_mode$ac_tag in
16591 :[FHL]*:*);;
16592 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16593 :[FH]-) ac_tag=-:-;;
16594 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16595 esac
16596 ac_save_IFS=$IFS
16597 IFS=:
16598 set x $ac_tag
16599 IFS=$ac_save_IFS
16600 shift
16601 ac_file=$1
16602 shift
16604 case $ac_mode in
16605 :L) ac_source=$1;;
16606 :[FH])
16607 ac_file_inputs=
16608 for ac_f
16610 case $ac_f in
16611 -) ac_f="$ac_tmp/stdin";;
16612 *) # Look for the file first in the build tree, then in the source tree
16613 # (if the path is not absolute). The absolute path cannot be DOS-style,
16614 # because $ac_f cannot contain `:'.
16615 test -f "$ac_f" ||
16616 case $ac_f in
16617 [\\/$]*) false;;
16618 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16619 esac ||
16620 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16621 esac
16622 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16623 as_fn_append ac_file_inputs " '$ac_f'"
16624 done
16626 # Let's still pretend it is `configure' which instantiates (i.e., don't
16627 # use $as_me), people would be surprised to read:
16628 # /* config.h. Generated by config.status. */
16629 configure_input='Generated from '`
16630 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16631 `' by configure.'
16632 if test x"$ac_file" != x-; then
16633 configure_input="$ac_file. $configure_input"
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16635 $as_echo "$as_me: creating $ac_file" >&6;}
16637 # Neutralize special characters interpreted by sed in replacement strings.
16638 case $configure_input in #(
16639 *\&* | *\|* | *\\* )
16640 ac_sed_conf_input=`$as_echo "$configure_input" |
16641 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16642 *) ac_sed_conf_input=$configure_input;;
16643 esac
16645 case $ac_tag in
16646 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16647 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16648 esac
16650 esac
16652 ac_dir=`$as_dirname -- "$ac_file" ||
16653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16654 X"$ac_file" : 'X\(//\)[^/]' \| \
16655 X"$ac_file" : 'X\(//\)$' \| \
16656 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16657 $as_echo X"$ac_file" |
16658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16659 s//\1/
16662 /^X\(\/\/\)[^/].*/{
16663 s//\1/
16666 /^X\(\/\/\)$/{
16667 s//\1/
16670 /^X\(\/\).*/{
16671 s//\1/
16674 s/.*/./; q'`
16675 as_dir="$ac_dir"; as_fn_mkdir_p
16676 ac_builddir=.
16678 case "$ac_dir" in
16679 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16681 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16682 # A ".." for each directory in $ac_dir_suffix.
16683 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16684 case $ac_top_builddir_sub in
16685 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16686 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16687 esac ;;
16688 esac
16689 ac_abs_top_builddir=$ac_pwd
16690 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16691 # for backward compatibility:
16692 ac_top_builddir=$ac_top_build_prefix
16694 case $srcdir in
16695 .) # We are building in place.
16696 ac_srcdir=.
16697 ac_top_srcdir=$ac_top_builddir_sub
16698 ac_abs_top_srcdir=$ac_pwd ;;
16699 [\\/]* | ?:[\\/]* ) # Absolute name.
16700 ac_srcdir=$srcdir$ac_dir_suffix;
16701 ac_top_srcdir=$srcdir
16702 ac_abs_top_srcdir=$srcdir ;;
16703 *) # Relative name.
16704 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16705 ac_top_srcdir=$ac_top_build_prefix$srcdir
16706 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16707 esac
16708 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16711 case $ac_mode in
16714 # CONFIG_FILE
16717 case $INSTALL in
16718 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16719 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16720 esac
16721 _ACEOF
16723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16724 # If the template does not know about datarootdir, expand it.
16725 # FIXME: This hack should be removed a few years after 2.60.
16726 ac_datarootdir_hack=; ac_datarootdir_seen=
16727 ac_sed_dataroot='
16728 /datarootdir/ {
16732 /@datadir@/p
16733 /@docdir@/p
16734 /@infodir@/p
16735 /@localedir@/p
16736 /@mandir@/p'
16737 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16738 *datarootdir*) ac_datarootdir_seen=yes;;
16739 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16741 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16742 _ACEOF
16743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16744 ac_datarootdir_hack='
16745 s&@datadir@&$datadir&g
16746 s&@docdir@&$docdir&g
16747 s&@infodir@&$infodir&g
16748 s&@localedir@&$localedir&g
16749 s&@mandir@&$mandir&g
16750 s&\\\${datarootdir}&$datarootdir&g' ;;
16751 esac
16752 _ACEOF
16754 # Neutralize VPATH when `$srcdir' = `.'.
16755 # Shell code in configure.ac might set extrasub.
16756 # FIXME: do we really want to maintain this feature?
16757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16758 ac_sed_extra="$ac_vpsub
16759 $extrasub
16760 _ACEOF
16761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16764 s|@configure_input@|$ac_sed_conf_input|;t t
16765 s&@top_builddir@&$ac_top_builddir_sub&;t t
16766 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16767 s&@srcdir@&$ac_srcdir&;t t
16768 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16769 s&@top_srcdir@&$ac_top_srcdir&;t t
16770 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16771 s&@builddir@&$ac_builddir&;t t
16772 s&@abs_builddir@&$ac_abs_builddir&;t t
16773 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16774 s&@INSTALL@&$ac_INSTALL&;t t
16775 $ac_datarootdir_hack
16777 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16778 if $ac_cs_awk_getline; then
16779 $AWK -f "$ac_tmp/subs.awk"
16780 else
16781 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16782 fi \
16783 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16785 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16786 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16787 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16788 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16790 which seems to be undefined. Please make sure it is defined" >&5
16791 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16792 which seems to be undefined. Please make sure it is defined" >&2;}
16794 rm -f "$ac_tmp/stdin"
16795 case $ac_file in
16796 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16797 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16798 esac \
16799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16803 # CONFIG_HEADER
16805 if test x"$ac_file" != x-; then
16807 $as_echo "/* $configure_input */" \
16808 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16809 } >"$ac_tmp/config.h" \
16810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16811 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16813 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16814 else
16815 rm -f "$ac_file"
16816 mv "$ac_tmp/config.h" "$ac_file" \
16817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16819 else
16820 $as_echo "/* $configure_input */" \
16821 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16822 || as_fn_error $? "could not create -" "$LINENO" 5
16827 # CONFIG_LINK
16830 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16832 else
16833 # Prefer the file from the source tree if names are identical.
16834 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16835 ac_source=$srcdir/$ac_source
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16839 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16841 if test ! -r "$ac_source"; then
16842 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16844 rm -f "$ac_file"
16846 # Try a relative symlink, then a hard link, then a copy.
16847 case $ac_source in
16848 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16849 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16850 esac
16851 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16852 ln "$ac_source" "$ac_file" 2>/dev/null ||
16853 cp -p "$ac_source" "$ac_file" ||
16854 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16857 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16858 $as_echo "$as_me: executing $ac_file commands" >&6;}
16860 esac
16863 case $ac_file$ac_mode in
16864 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16865 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
16866 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
16867 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16868 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16869 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16870 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16871 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16872 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16873 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16874 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16875 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16876 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16877 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16878 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16879 "Makefile":C) wine_fn_output_makefile Makefile ;;
16881 esac
16882 done # for ac_tag
16885 as_fn_exit 0
16886 _ACEOF
16887 ac_clean_files=$ac_clean_files_save
16889 test $ac_write_fail = 0 ||
16890 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16893 # configure is writing to config.log, and then calls config.status.
16894 # config.status does its own redirection, appending to config.log.
16895 # Unfortunately, on DOS this fails, as config.log is still kept open
16896 # by configure, so config.status won't be able to write to it; its
16897 # output is simply discarded. So we exec the FD to /dev/null,
16898 # effectively closing config.log, so it can be properly (re)opened and
16899 # appended to by config.status. When coming back to configure, we
16900 # need to make the FD available again.
16901 if test "$no_create" != yes; then
16902 ac_cs_success=:
16903 ac_config_status_args=
16904 test "$silent" = yes &&
16905 ac_config_status_args="$ac_config_status_args --quiet"
16906 exec 5>/dev/null
16907 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16908 exec 5>>config.log
16909 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16910 # would make configure fail if this is the last instruction.
16911 $ac_cs_success || as_fn_exit 1
16913 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16915 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16919 if test "$no_create" = "yes"
16920 then
16921 exit 0
16924 ac_save_IFS="$IFS"
16925 if test "x$wine_notices != "x; then
16926 echo >&6
16927 IFS="|"
16928 for msg in $wine_notices; do
16929 IFS="$ac_save_IFS"
16930 if test -n "$msg"; then
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16932 $as_echo "$as_me: $msg" >&6;}
16934 done
16936 IFS="|"
16937 for msg in $wine_warnings; do
16938 IFS="$ac_save_IFS"
16939 if test -n "$msg"; then
16940 echo >&2
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16942 $as_echo "$as_me: WARNING: $msg" >&2;}
16944 done
16945 IFS="$ac_save_IFS"
16947 echo "
16948 $as_me: Finished. Do '${ac_make}' to compile Wine.
16949 " >&6