wined3d: Remove IWineD3DBaseTexture::BindTexture() from the public interface.
[wine.git] / configure
bloba49899b371a02075a7c6f181e2a734e145d9d092
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Wine 1.3.10.
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 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: wine-devel@winehq.org about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='Wine'
554 PACKAGE_TARNAME='wine'
555 PACKAGE_VERSION='1.3.10'
556 PACKAGE_STRING='Wine 1.3.10'
557 PACKAGE_BUGREPORT='wine-devel@winehq.org'
558 PACKAGE_URL='http://www.winehq.org'
560 ac_unique_file="server/atom.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 LINGUAS
600 ALL_TEST_BINARIES
601 ALL_WINETEST_DEPENDS
602 LDAPLIBS
603 LIBPOLL
604 LIBDL
605 EXTRA_BINARIES
606 MAIN_BINARY
607 SOCKETLIBS
608 CRTLIBS
609 TOOLSEXT
610 LDPATH
611 UNWINDFLAGS
612 BUILTINFLAG
613 EXTRACFLAGS
614 LIBKSTAT
615 LIBOPENAL
616 LIBMPG123
617 PNGINCL
618 FONTCONFIGINCL
619 CUPSINCL
620 ALSALIBS
621 GSTREAMER_INCL
622 GSTREAMER_LIBS
623 ESDLIBS
624 ESDINCL
625 ESDCONFIG
626 LIBGETTEXTPO
627 ZLIB
628 FREETYPEINCL
629 FREETYPELIBS
630 ft_devel
631 LCMSLIBS
632 RESOLVLIBS
633 GPHOTO2INCL
634 GPHOTO2LIBS
635 gphoto2port_devel
636 gphoto2_devel
637 SANEINCL
638 sane_devel
639 GNUTLSINCL
640 HALINCL
641 XSLTINCL
642 XML2INCL
643 XML2LIBS
644 NASLIBS
645 X_EXTRA_LIBS
646 X_LIBS
647 X_PRE_LIBS
648 X_CFLAGS
649 XMKMF
650 LIBPTHREAD
651 CROSSTARGET
652 CROSSCC
653 CROSSTEST_DISABLE
654 PRELINK
655 CARBONLIB
656 LIBOPENCL
657 FRAMEWORK_OPENAL
658 COREAUDIO
659 DISKARBITRATIONLIB
660 LDEXECFLAGS
661 QUICKTIMELIB
662 IOKITLIB
663 COREFOUNDATIONLIB
664 SECURITYLIB
665 DLLWRAP
666 DLLTOOL
668 LDRPATH_LOCAL
669 LDRPATH_INSTALL
670 IMPLIBEXT
671 LIBEXT
672 LDDLLFLAGS
673 LDSHARED
674 DLLFLAGS
675 DLLEXT
677 OPENGL_LIBS
678 XLIB
679 MAINTAINER_MODE
680 ICOTOOL
681 CONVERT
682 RSVG
683 PKG_CONFIG
684 FONTFORGE
685 LINTFLAGS
686 LINT
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 LDCONFIG
691 EGREP
692 GREP
693 LN_S
694 STRIP
695 RANLIB
696 ARFLAGS
697 ac_ct_AR
699 BISON
700 FLEX
701 TOOLSDIR
702 WOW64_DISABLE
703 TARGETFLAGS
704 CPPBIN
705 ac_ct_CXX
706 CXXFLAGS
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
715 SET_MAKE
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files='MAKE_RULES
763 MAKE_TEST_RULES
764 MAKE_DLL_RULES
765 MAKE_IMPLIB_RULES
766 MAKE_PROG_RULES'
767 ac_user_opts='
768 enable_option_checking
769 enable_win16
770 enable_win64
771 enable_tests
772 enable_maintainer_mode
773 with_alsa
774 with_capi
775 with_cms
776 with_coreaudio
777 with_cups
778 with_curses
779 with_esd
780 with_fontconfig
781 with_freetype
782 with_gettextpo
783 with_gphoto
784 with_glu
785 with_gnutls
786 with_gsm
787 with_gstreamer
788 with_hal
789 with_icns
790 with_jack
791 with_jpeg
792 with_ldap
793 with_mpg123
794 with_nas
795 with_openal
796 with_opencl
797 with_opengl
798 with_openssl
799 with_oss
800 with_png
801 with_pthread
802 with_sane
803 with_tiff
804 with_v4l
805 with_xcomposite
806 with_xcursor
807 with_xinerama
808 with_xinput
809 with_xml
810 with_xrandr
811 with_xrender
812 with_xshape
813 with_xshm
814 with_xslt
815 with_xxf86vm
816 with_wine_tools
817 with_wine64
818 enable_largefile
819 with_x
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
830 CXXFLAGS
833 XMKMF'
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
884 ac_prev=
885 ac_dashdash=
886 for ac_option
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
891 ac_prev=
892 continue
895 case $ac_option in
896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *=) ac_optarg= ;;
898 *) ac_optarg=yes ;;
899 esac
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
905 ac_dashdash=yes ;;
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
924 --config-cache | -C)
925 cache_file=config.cache ;;
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1059 no_create=yes ;;
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1241 esac
1242 done
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error $? "missing argument to $ac_option"
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1290 If a cross compiler is detected then cross compile mode will be used" >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299 test "$silent" = yes && exec 6>/dev/null
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error $? "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error $? "pwd does not report name of working directory"
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1328 /^X\(\/\/\)$/{
1329 s//\1/
1332 /^X\(\/\).*/{
1333 s//\1/
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1341 else
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351 pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1370 # Report the --help message.
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1375 cat <<_ACEOF
1376 \`configure' configures Wine 1.3.10 to adapt to many kinds of systems.
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1383 Defaults for the options are specified in brackets.
1385 Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking ...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 [PREFIX]
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1407 For better control, use the options below.
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
1429 _ACEOF
1431 cat <<\_ACEOF
1433 X features:
1434 --x-includes=DIR X include files are in DIR
1435 --x-libraries=DIR X library files are in DIR
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of Wine 1.3.10:";;
1446 esac
1447 cat <<\_ACEOF
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --disable-win16 do not include Win16 support
1454 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1455 binaries)
1456 --disable-tests do not build the regression tests
1457 --enable-maintainer-mode
1458 enable maintainer-specific build rules
1459 --disable-largefile omit support for large files
1461 Optional Packages:
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --without-alsa do not use the Alsa sound support
1465 --without-capi do not use CAPI (ISDN support)
1466 --without-cms do not use CMS (color management support)
1467 --without-coreaudio do not use the CoreAudio sound support
1468 --without-cups do not use CUPS
1469 --without-curses do not use (n)curses
1470 --without-esd do not use the EsounD sound support
1471 --without-fontconfig do not use fontconfig
1472 --without-freetype do not use the FreeType library
1473 --without-gettextpo do not use the GetTextPO library
1474 --without-gphoto do not use gphoto (Digital Camera support)
1475 --without-glu do not use the GLU library
1476 --without-gnutls do not use GnuTLS (schannel support)
1477 --without-gsm do not use libgsm (GSM 06.10 codec support)
1478 --without-gstreamer do not use GStreamer (codecs support)
1479 --without-hal do not use HAL (dynamic device support)
1480 --without-icns do not use ICNS icon support
1481 --without-jack do not use the Jack sound support
1482 --without-jpeg do not use JPEG
1483 --without-ldap do not use LDAP
1484 --without-mpg123 do not use the mpg123 library
1485 --without-nas do not use the NAS sound support
1486 --without-openal do not use OpenAL
1487 --without-opencl do not use OpenCL
1488 --without-opengl do not use OpenGL
1489 --without-openssl do not use OpenSSL
1490 --without-oss do not use the OSS sound support
1491 --without-png do not use PNG
1492 --without-pthread do not use the pthread library
1493 --without-sane do not use SANE (scanner support)
1494 --without-tiff do not use TIFF
1495 --without-v4l do not use v4l1 (v4l support)
1496 --without-xcomposite do not use the Xcomposite extension
1497 --without-xcursor do not use the Xcursor extension
1498 --without-xinerama do not use Xinerama (multi-monitor support)
1499 --without-xinput do not use the Xinput extension
1500 --without-xml do not use XML
1501 --without-xrandr do not use Xrandr (resolution changes)
1502 --without-xrender do not use the Xrender extension
1503 --without-xshape do not use the Xshape extension
1504 --without-xshm do not use XShm (shared memory extension)
1505 --without-xslt do not use XSLT
1506 --without-xxf86vm do not use XFree video mode extension
1507 --with-wine-tools=DIR use Wine tools from directory DIR
1508 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1509 --with-x use the X Window System
1511 Some influential environment variables:
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
1516 LIBS libraries to pass to the linker, e.g. -l<library>
1517 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1518 you have headers in a nonstandard directory <include dir>
1519 CXX C++ compiler command
1520 CXXFLAGS C++ compiler flags
1521 CPP C preprocessor
1522 XMKMF Path to xmkmf, Makefile generator for X Window System
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1527 Report bugs to <wine-devel@winehq.org>.
1528 Wine home page: <http://www.winehq.org>.
1529 _ACEOF
1530 ac_status=$?
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538 continue
1539 ac_builddir=.
1541 case "$ac_dir" in
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 esac ;;
1551 esac
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1557 case $srcdir in
1558 .) # We are building in place.
1559 ac_srcdir=.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1566 *) # Relative name.
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 esac
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1581 else
1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583 fi || ac_status=$?
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1585 done
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1590 cat <<\_ACEOF
1591 Wine configure 1.3.10
1592 generated by GNU Autoconf 2.67
1594 Copyright (C) 2010 Free Software Foundation, Inc.
1595 This configure script is free software; the Free Software Foundation
1596 gives unlimited permission to copy, distribute and modify it.
1597 _ACEOF
1598 exit
1601 ## ------------------------ ##
1602 ## Autoconf initialization. ##
1603 ## ------------------------ ##
1605 # ac_fn_c_try_compile LINENO
1606 # --------------------------
1607 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_compile ()
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 rm -f conftest.$ac_objext
1612 if { { ac_try="$ac_compile"
1613 case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1616 esac
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_compile") 2>conftest.err
1620 ac_status=$?
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && {
1628 test -z "$ac_c_werror_flag" ||
1629 test ! -s conftest.err
1630 } && test -s conftest.$ac_objext; then :
1631 ac_retval=0
1632 else
1633 $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1636 ac_retval=1
1638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1639 as_fn_set_status $ac_retval
1641 } # ac_fn_c_try_compile
1643 # ac_fn_cxx_try_compile LINENO
1644 # ----------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_cxx_try_compile ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_cxx_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1669 ac_retval=0
1670 else
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1674 ac_retval=1
1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 as_fn_set_status $ac_retval
1679 } # ac_fn_cxx_try_compile
1681 # ac_fn_c_try_link LINENO
1682 # -----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_link ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 $as_test_x conftest$ac_exeext
1709 }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1715 ac_retval=1
1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719 # interfere with the next link command; also delete a directory that is
1720 # left behind by Apple's compiler. We do this before executing the actions.
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 as_fn_set_status $ac_retval
1725 } # ac_fn_c_try_link
1727 # ac_fn_c_try_cpp LINENO
1728 # ----------------------
1729 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_c_try_cpp ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_cpp conftest.$ac_ext"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } > conftest.i && {
1749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1757 ac_retval=1
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 as_fn_set_status $ac_retval
1762 } # ac_fn_c_try_cpp
1764 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1767 # the include files in INCLUDES and setting the cache variable VAR
1768 # accordingly.
1769 ac_fn_c_check_header_mongrel ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if eval "test \"\${$3+set}\"" = set; then :
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval "test \"\${$3+set}\"" = set; then :
1776 $as_echo_n "(cached) " >&6
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 else
1782 # Is the header compilable?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1784 $as_echo_n "checking $2 usability... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1788 #include <$2>
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_header_compiler=yes
1792 else
1793 ac_header_compiler=no
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1797 $as_echo "$ac_header_compiler" >&6; }
1799 # Is the header present?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1801 $as_echo_n "checking $2 presence... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 #include <$2>
1805 _ACEOF
1806 if ac_fn_c_try_cpp "$LINENO"; then :
1807 ac_header_preproc=yes
1808 else
1809 ac_header_preproc=no
1811 rm -f conftest.err conftest.i conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1813 $as_echo "$ac_header_preproc" >&6; }
1815 # So? What about this header?
1816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1817 yes:no: )
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1819 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 no:yes:* )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1825 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1827 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1829 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1831 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834 ( $as_echo "## ------------------------------------ ##
1835 ## Report this to wine-devel@winehq.org ##
1836 ## ------------------------------------ ##"
1837 ) | sed "s/^/$as_me: WARNING: /" >&2
1839 esac
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval "test \"\${$3+set}\"" = set; then :
1843 $as_echo_n "(cached) " >&6
1844 else
1845 eval "$3=\$ac_header_compiler"
1847 eval ac_res=\$$3
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 } # ac_fn_c_check_header_mongrel
1855 # ac_fn_c_try_run LINENO
1856 # ----------------------
1857 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1858 # that executables *can* be run.
1859 ac_fn_c_try_run ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_link"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1873 { { case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_try") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; }; }; then :
1883 ac_retval=0
1884 else
1885 $as_echo "$as_me: program exited with status $ac_status" >&5
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1889 ac_retval=$ac_status
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 as_fn_set_status $ac_retval
1895 } # ac_fn_c_try_run
1897 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists and can be compiled using the include files in
1900 # INCLUDES, setting the cache variable VAR accordingly.
1901 ac_fn_c_check_header_compile ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if eval "test \"\${$3+set}\"" = set; then :
1907 $as_echo_n "(cached) " >&6
1908 else
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 eval "$3=yes"
1916 else
1917 eval "$3=no"
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926 } # ac_fn_c_check_header_compile
1928 # ac_fn_c_check_func LINENO FUNC VAR
1929 # ----------------------------------
1930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1931 ac_fn_c_check_func ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval "test \"\${$3+set}\"" = set; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943 #define $2 innocuous_$2
1945 /* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
1950 #ifdef __STDC__
1951 # include <limits.h>
1952 #else
1953 # include <assert.h>
1954 #endif
1956 #undef $2
1958 /* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1961 #ifdef __cplusplus
1962 extern "C"
1963 #endif
1964 char $2 ();
1965 /* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968 #if defined __stub_$2 || defined __stub___$2
1969 choke me
1970 #endif
1973 main ()
1975 return $2 ();
1977 return 0;
1979 _ACEOF
1980 if ac_fn_c_try_link "$LINENO"; then :
1981 eval "$3=yes"
1982 else
1983 eval "$3=no"
1985 rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1988 eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 } # ac_fn_c_check_func
1995 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1996 # ----------------------------------------------------
1997 # Tries to find if the field MEMBER exists in type AGGR, after including
1998 # INCLUDES, setting cache variable VAR accordingly.
1999 ac_fn_c_check_member ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2003 $as_echo_n "checking for $2.$3... " >&6; }
2004 if eval "test \"\${$4+set}\"" = set; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2011 main ()
2013 static $2 ac_aggr;
2014 if (ac_aggr.$3)
2015 return 0;
2017 return 0;
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 eval "$4=yes"
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2027 main ()
2029 static $2 ac_aggr;
2030 if (sizeof ac_aggr.$3)
2031 return 0;
2033 return 0;
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 eval "$4=yes"
2038 else
2039 eval "$4=no"
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 eval ac_res=\$$4
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050 } # ac_fn_c_check_member
2052 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2053 # -------------------------------------------
2054 # Tests whether TYPE exists after having included INCLUDES, setting cache
2055 # variable VAR accordingly.
2056 ac_fn_c_check_type ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval "test \"\${$3+set}\"" = set; then :
2062 $as_echo_n "(cached) " >&6
2063 else
2064 eval "$3=no"
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 if (sizeof ($2))
2072 return 0;
2074 return 0;
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2082 main ()
2084 if (sizeof (($2)))
2085 return 0;
2087 return 0;
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2092 else
2093 eval "$3=yes"
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 eval ac_res=\$$3
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104 } # ac_fn_c_check_type
2105 cat >config.log <<_ACEOF
2106 This file contains any messages produced by compilers while
2107 running configure, to aid debugging if configure makes a mistake.
2109 It was created by Wine $as_me 1.3.10, which was
2110 generated by GNU Autoconf 2.67. Invocation command line was
2112 $ $0 $@
2114 _ACEOF
2115 exec 5>>config.log
2117 cat <<_ASUNAME
2118 ## --------- ##
2119 ## Platform. ##
2120 ## --------- ##
2122 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2123 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2124 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2125 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2126 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2128 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2129 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2131 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2132 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2133 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2134 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2135 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2136 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2137 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2139 _ASUNAME
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 $as_echo "PATH: $as_dir"
2147 done
2148 IFS=$as_save_IFS
2150 } >&5
2152 cat >&5 <<_ACEOF
2155 ## ----------- ##
2156 ## Core tests. ##
2157 ## ----------- ##
2159 _ACEOF
2162 # Keep a trace of the command line.
2163 # Strip out --no-create and --no-recursion so they do not pile up.
2164 # Strip out --silent because we don't want to record it for future runs.
2165 # Also quote any args containing shell meta-characters.
2166 # Make two passes to allow for proper duplicate-argument suppression.
2167 ac_configure_args=
2168 ac_configure_args0=
2169 ac_configure_args1=
2170 ac_must_keep_next=false
2171 for ac_pass in 1 2
2173 for ac_arg
2175 case $ac_arg in
2176 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178 | -silent | --silent | --silen | --sile | --sil)
2179 continue ;;
2180 *\'*)
2181 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2182 esac
2183 case $ac_pass in
2184 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2186 as_fn_append ac_configure_args1 " '$ac_arg'"
2187 if test $ac_must_keep_next = true; then
2188 ac_must_keep_next=false # Got value, back to normal.
2189 else
2190 case $ac_arg in
2191 *=* | --config-cache | -C | -disable-* | --disable-* \
2192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194 | -with-* | --with-* | -without-* | --without-* | --x)
2195 case "$ac_configure_args0 " in
2196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197 esac
2199 -* ) ac_must_keep_next=true ;;
2200 esac
2202 as_fn_append ac_configure_args " '$ac_arg'"
2204 esac
2205 done
2206 done
2207 { ac_configure_args0=; unset ac_configure_args0;}
2208 { ac_configure_args1=; unset ac_configure_args1;}
2210 # When interrupted or exit'd, cleanup temporary files, and complete
2211 # config.log. We remove comments because anyway the quotes in there
2212 # would cause problems or look ugly.
2213 # WARNING: Use '\'' to represent an apostrophe within the trap.
2214 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2215 trap 'exit_status=$?
2216 # Save into config.log some information that might help in debugging.
2218 echo
2220 $as_echo "## ---------------- ##
2221 ## Cache variables. ##
2222 ## ---------------- ##"
2223 echo
2224 # The following way of writing the cache mishandles newlines in values,
2226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in #(
2229 *${as_nl}*)
2230 case $ac_var in #(
2231 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2232 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2233 esac
2234 case $ac_var in #(
2235 _ | IFS | as_nl) ;; #(
2236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2237 *) { eval $ac_var=; unset $ac_var;} ;;
2238 esac ;;
2239 esac
2240 done
2241 (set) 2>&1 |
2242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243 *${as_nl}ac_space=\ *)
2244 sed -n \
2245 "s/'\''/'\''\\\\'\'''\''/g;
2246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2247 ;; #(
2249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251 esac |
2252 sort
2254 echo
2256 $as_echo "## ----------------- ##
2257 ## Output variables. ##
2258 ## ----------------- ##"
2259 echo
2260 for ac_var in $ac_subst_vars
2262 eval ac_val=\$$ac_var
2263 case $ac_val in
2264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 esac
2266 $as_echo "$ac_var='\''$ac_val'\''"
2267 done | sort
2268 echo
2270 if test -n "$ac_subst_files"; then
2271 $as_echo "## ------------------- ##
2272 ## File substitutions. ##
2273 ## ------------------- ##"
2274 echo
2275 for ac_var in $ac_subst_files
2277 eval ac_val=\$$ac_var
2278 case $ac_val in
2279 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280 esac
2281 $as_echo "$ac_var='\''$ac_val'\''"
2282 done | sort
2283 echo
2286 if test -s confdefs.h; then
2287 $as_echo "## ----------- ##
2288 ## confdefs.h. ##
2289 ## ----------- ##"
2290 echo
2291 cat confdefs.h
2292 echo
2294 test "$ac_signal" != 0 &&
2295 $as_echo "$as_me: caught signal $ac_signal"
2296 $as_echo "$as_me: exit $exit_status"
2297 } >&5
2298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2300 exit $exit_status
2302 for ac_signal in 1 2 13 15; do
2303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2304 done
2305 ac_signal=0
2307 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2308 rm -f -r conftest* confdefs.h
2310 $as_echo "/* confdefs.h */" > confdefs.h
2312 # Predefined preprocessor variables.
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_NAME "$PACKAGE_NAME"
2316 _ACEOF
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2320 _ACEOF
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2324 _ACEOF
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_STRING "$PACKAGE_STRING"
2328 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2332 _ACEOF
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_URL "$PACKAGE_URL"
2336 _ACEOF
2339 # Let the site file select an alternate cache file if it wants to.
2340 # Prefer an explicitly selected file to automatically selected ones.
2341 ac_site_file1=NONE
2342 ac_site_file2=NONE
2343 if test -n "$CONFIG_SITE"; then
2344 # We do not want a PATH search for config.site.
2345 case $CONFIG_SITE in #((
2346 -*) ac_site_file1=./$CONFIG_SITE;;
2347 */*) ac_site_file1=$CONFIG_SITE;;
2348 *) ac_site_file1=./$CONFIG_SITE;;
2349 esac
2350 elif test "x$prefix" != xNONE; then
2351 ac_site_file1=$prefix/share/config.site
2352 ac_site_file2=$prefix/etc/config.site
2353 else
2354 ac_site_file1=$ac_default_prefix/share/config.site
2355 ac_site_file2=$ac_default_prefix/etc/config.site
2357 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2359 test "x$ac_site_file" = xNONE && continue
2360 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2362 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2363 sed 's/^/| /' "$ac_site_file" >&5
2364 . "$ac_site_file" \
2365 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367 as_fn_error $? "failed to load site script $ac_site_file
2368 See \`config.log' for more details" "$LINENO" 5 ; }
2370 done
2372 if test -r "$cache_file"; then
2373 # Some versions of bash will fail to source /dev/null (special files
2374 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2375 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2377 $as_echo "$as_me: loading cache $cache_file" >&6;}
2378 case $cache_file in
2379 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2380 *) . "./$cache_file";;
2381 esac
2383 else
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2385 $as_echo "$as_me: creating cache $cache_file" >&6;}
2386 >$cache_file
2389 # Check that the precious variables saved in the cache have kept the same
2390 # value.
2391 ac_cache_corrupted=false
2392 for ac_var in $ac_precious_vars; do
2393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394 eval ac_new_set=\$ac_env_${ac_var}_set
2395 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396 eval ac_new_val=\$ac_env_${ac_var}_value
2397 case $ac_old_set,$ac_new_set in
2398 set,)
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2401 ac_cache_corrupted=: ;;
2402 ,set)
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2405 ac_cache_corrupted=: ;;
2406 ,);;
2408 if test "x$ac_old_val" != "x$ac_new_val"; then
2409 # differences in whitespace do not lead to failure.
2410 ac_old_val_w=`echo x $ac_old_val`
2411 ac_new_val_w=`echo x $ac_new_val`
2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2414 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415 ac_cache_corrupted=:
2416 else
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2418 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419 eval $ac_var=\$ac_old_val
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2422 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2424 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2425 fi;;
2426 esac
2427 # Pass precious variables to config.status.
2428 if test "$ac_new_set" = set; then
2429 case $ac_new_val in
2430 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2431 *) ac_arg=$ac_var=$ac_new_val ;;
2432 esac
2433 case " $ac_configure_args " in
2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2435 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436 esac
2438 done
2439 if $ac_cache_corrupted; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2443 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2444 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2446 ## -------------------- ##
2447 ## Main body of script. ##
2448 ## -------------------- ##
2450 ac_ext=c
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458 ac_config_headers="$ac_config_headers include/config.h"
2460 ac_aux_dir=
2461 for ac_dir in tools "$srcdir"/tools; do
2462 if test -f "$ac_dir/install-sh"; then
2463 ac_aux_dir=$ac_dir
2464 ac_install_sh="$ac_aux_dir/install-sh -c"
2465 break
2466 elif 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/shtool"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/shtool install -c"
2473 break
2475 done
2476 if test -z "$ac_aux_dir"; then
2477 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2480 # These three variables are undocumented and unsupported,
2481 # and are intended to be withdrawn in a future Autoconf release.
2482 # They can cause serious problems if a builder's source tree is in a directory
2483 # whose full name contains unusual characters.
2484 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2485 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2486 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2492 # Check whether --enable-win16 was given.
2493 if test "${enable_win16+set}" = set; then :
2494 enableval=$enable_win16;
2497 # Check whether --enable-win64 was given.
2498 if test "${enable_win64+set}" = set; then :
2499 enableval=$enable_win64;
2502 # Check whether --enable-tests was given.
2503 if test "${enable_tests+set}" = set; then :
2504 enableval=$enable_tests;
2507 # Check whether --enable-maintainer-mode was given.
2508 if test "${enable_maintainer_mode+set}" = set; then :
2509 enableval=$enable_maintainer_mode;
2514 # Check whether --with-alsa was given.
2515 if test "${with_alsa+set}" = set; then :
2516 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2520 # Check whether --with-capi was given.
2521 if test "${with_capi+set}" = set; then :
2522 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2526 # Check whether --with-cms was given.
2527 if test "${with_cms+set}" = set; then :
2528 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2532 # Check whether --with-coreaudio was given.
2533 if test "${with_coreaudio+set}" = set; then :
2534 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2538 # Check whether --with-cups was given.
2539 if test "${with_cups+set}" = set; then :
2540 withval=$with_cups;
2544 # Check whether --with-curses was given.
2545 if test "${with_curses+set}" = set; then :
2546 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2550 # Check whether --with-esd was given.
2551 if test "${with_esd+set}" = set; then :
2552 withval=$with_esd;
2556 # Check whether --with-fontconfig was given.
2557 if test "${with_fontconfig+set}" = set; then :
2558 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2562 # Check whether --with-freetype was given.
2563 if test "${with_freetype+set}" = set; then :
2564 withval=$with_freetype;
2568 # Check whether --with-gettextpo was given.
2569 if test "${with_gettextpo+set}" = set; then :
2570 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2574 # Check whether --with-gphoto was given.
2575 if test "${with_gphoto+set}" = set; then :
2576 withval=$with_gphoto;
2580 # Check whether --with-glu was given.
2581 if test "${with_glu+set}" = set; then :
2582 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2586 # Check whether --with-gnutls was given.
2587 if test "${with_gnutls+set}" = set; then :
2588 withval=$with_gnutls;
2592 # Check whether --with-gsm was given.
2593 if test "${with_gsm+set}" = set; then :
2594 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2598 # Check whether --with-gstreamer was given.
2599 if test "${with_gstreamer+set}" = set; then :
2600 withval=$with_gstreamer;
2604 # Check whether --with-hal was given.
2605 if test "${with_hal+set}" = set; then :
2606 withval=$with_hal;
2610 # Check whether --with-icns was given.
2611 if test "${with_icns+set}" = set; then :
2612 withval=$with_icns; if test "x$withval" = "xno"; then ac_cv_header_icns_h=no; fi
2616 # Check whether --with-jack was given.
2617 if test "${with_jack+set}" = set; then :
2618 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2622 # Check whether --with-jpeg was given.
2623 if test "${with_jpeg+set}" = set; then :
2624 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2628 # Check whether --with-ldap was given.
2629 if test "${with_ldap+set}" = set; then :
2630 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2634 # Check whether --with-mpg123 was given.
2635 if test "${with_mpg123+set}" = set; then :
2636 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2640 # Check whether --with-nas was given.
2641 if test "${with_nas+set}" = set; then :
2642 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2646 # Check whether --with-openal was given.
2647 if test "${with_openal+set}" = set; then :
2648 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2652 # Check whether --with-opencl was given.
2653 if test "${with_opencl+set}" = set; then :
2654 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2658 # Check whether --with-opengl was given.
2659 if test "${with_opengl+set}" = set; then :
2660 withval=$with_opengl;
2664 # Check whether --with-openssl was given.
2665 if test "${with_openssl+set}" = set; then :
2666 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2670 # Check whether --with-oss was given.
2671 if test "${with_oss+set}" = set; then :
2672 withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2676 # Check whether --with-png was given.
2677 if test "${with_png+set}" = set; then :
2678 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2682 # Check whether --with-pthread was given.
2683 if test "${with_pthread+set}" = set; then :
2684 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2688 # Check whether --with-sane was given.
2689 if test "${with_sane+set}" = set; then :
2690 withval=$with_sane;
2694 # Check whether --with-tiff was given.
2695 if test "${with_tiff+set}" = set; then :
2696 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2700 # Check whether --with-v4l was given.
2701 if test "${with_v4l+set}" = set; then :
2702 withval=$with_v4l;
2706 # Check whether --with-xcomposite was given.
2707 if test "${with_xcomposite+set}" = set; then :
2708 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2712 # Check whether --with-xcursor was given.
2713 if test "${with_xcursor+set}" = set; then :
2714 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2718 # Check whether --with-xinerama was given.
2719 if test "${with_xinerama+set}" = set; then :
2720 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2724 # Check whether --with-xinput was given.
2725 if test "${with_xinput+set}" = set; then :
2726 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2730 # Check whether --with-xml was given.
2731 if test "${with_xml+set}" = set; then :
2732 withval=$with_xml;
2736 # Check whether --with-xrandr was given.
2737 if test "${with_xrandr+set}" = set; then :
2738 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2742 # Check whether --with-xrender was given.
2743 if test "${with_xrender+set}" = set; then :
2744 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2748 # Check whether --with-xshape was given.
2749 if test "${with_xshape+set}" = set; then :
2750 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2754 # Check whether --with-xshm was given.
2755 if test "${with_xshm+set}" = set; then :
2756 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2760 # Check whether --with-xslt was given.
2761 if test "${with_xslt+set}" = set; then :
2762 withval=$with_xslt;
2766 # Check whether --with-xxf86vm was given.
2767 if test "${with_xxf86vm+set}" = set; then :
2768 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
2773 # Check whether --with-wine-tools was given.
2774 if test "${with_wine_tools+set}" = set; then :
2775 withval=$with_wine_tools;
2779 # Check whether --with-wine64 was given.
2780 if test "${with_wine64+set}" = set; then :
2781 withval=$with_wine64;
2785 # Make sure we can run config.sub.
2786 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2787 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2790 $as_echo_n "checking build system type... " >&6; }
2791 if test "${ac_cv_build+set}" = set; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 ac_build_alias=$build_alias
2795 test "x$ac_build_alias" = x &&
2796 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2797 test "x$ac_build_alias" = x &&
2798 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2799 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2800 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2804 $as_echo "$ac_cv_build" >&6; }
2805 case $ac_cv_build in
2806 *-*-*) ;;
2807 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2808 esac
2809 build=$ac_cv_build
2810 ac_save_IFS=$IFS; IFS='-'
2811 set x $ac_cv_build
2812 shift
2813 build_cpu=$1
2814 build_vendor=$2
2815 shift; shift
2816 # Remember, the first character of IFS is used to create $*,
2817 # except with old shells:
2818 build_os=$*
2819 IFS=$ac_save_IFS
2820 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2824 $as_echo_n "checking host system type... " >&6; }
2825 if test "${ac_cv_host+set}" = set; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test "x$host_alias" = x; then
2829 ac_cv_host=$ac_cv_build
2830 else
2831 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2832 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2837 $as_echo "$ac_cv_host" >&6; }
2838 case $ac_cv_host in
2839 *-*-*) ;;
2840 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2841 esac
2842 host=$ac_cv_host
2843 ac_save_IFS=$IFS; IFS='-'
2844 set x $ac_cv_host
2845 shift
2846 host_cpu=$1
2847 host_vendor=$2
2848 shift; shift
2849 # Remember, the first character of IFS is used to create $*,
2850 # except with old shells:
2851 host_os=$*
2852 IFS=$ac_save_IFS
2853 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2857 case "$srcdir" in
2858 .) ;;
2859 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2860 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2861 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2862 fi ;;
2863 esac
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2867 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2868 set x ${MAKE-make}
2869 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2870 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 cat >conftest.make <<\_ACEOF
2874 SHELL = /bin/sh
2875 all:
2876 @echo '@@@%%%=$(MAKE)=@@@%%%'
2877 _ACEOF
2878 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2879 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2880 *@@@%%%=?*=@@@%%%*)
2881 eval ac_cv_prog_make_${ac_make}_set=yes;;
2883 eval ac_cv_prog_make_${ac_make}_set=no;;
2884 esac
2885 rm -f conftest.make
2887 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2889 $as_echo "yes" >&6; }
2890 SET_MAKE=
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2894 SET_MAKE="MAKE=${MAKE-make}"
2897 ac_ext=c
2898 ac_cpp='$CPP $CPPFLAGS'
2899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902 if test -n "$ac_tool_prefix"; then
2903 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2904 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if test "${ac_cv_prog_CC+set}" = set; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$CC"; then
2911 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2924 done
2925 done
2926 IFS=$as_save_IFS
2930 CC=$ac_cv_prog_CC
2931 if test -n "$CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933 $as_echo "$CC" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2941 if test -z "$ac_cv_prog_CC"; then
2942 ac_ct_CC=$CC
2943 # Extract the first word of "gcc", so it can be a program name with args.
2944 set dummy gcc; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$ac_ct_CC"; then
2951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960 ac_cv_prog_ac_ct_CC="gcc"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2964 done
2965 done
2966 IFS=$as_save_IFS
2970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2971 if test -n "$ac_ct_CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2973 $as_echo "$ac_ct_CC" >&6; }
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2979 if test "x$ac_ct_CC" = x; then
2980 CC=""
2981 else
2982 case $cross_compiling:$ac_tool_warned in
2983 yes:)
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2986 ac_tool_warned=yes ;;
2987 esac
2988 CC=$ac_ct_CC
2990 else
2991 CC="$ac_cv_prog_CC"
2994 if test -z "$CC"; then
2995 if test -n "$ac_tool_prefix"; then
2996 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2997 set dummy ${ac_tool_prefix}cc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if test "${ac_cv_prog_CC+set}" = set; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_CC="${ac_tool_prefix}cc"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 break 2
3017 done
3018 done
3019 IFS=$as_save_IFS
3023 CC=$ac_cv_prog_CC
3024 if test -n "$CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3027 else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3035 if test -z "$CC"; then
3036 # Extract the first word of "cc", so it can be a program name with args.
3037 set dummy cc; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if test "${ac_cv_prog_CC+set}" = set; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC="$CC" # Let the user override the test.
3045 else
3046 ac_prog_rejected=no
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3055 ac_prog_rejected=yes
3056 continue
3058 ac_cv_prog_CC="cc"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3062 done
3063 done
3064 IFS=$as_save_IFS
3066 if test $ac_prog_rejected = yes; then
3067 # We found a bogon in the path, so make sure we never use it.
3068 set dummy $ac_cv_prog_CC
3069 shift
3070 if test $# != 0; then
3071 # We chose a different compiler from the bogus one.
3072 # However, it has the same basename, so the bogon will be chosen
3073 # first if we set CC to just the basename; use the full file name.
3074 shift
3075 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3091 if test -z "$CC"; then
3092 if test -n "$ac_tool_prefix"; then
3093 for ac_prog in cl.exe
3095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_CC+set}" = set; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3116 done
3117 done
3118 IFS=$as_save_IFS
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3132 test -n "$CC" && break
3133 done
3135 if test -z "$CC"; then
3136 ac_ct_CC=$CC
3137 for ac_prog in cl.exe
3139 # Extract the first word of "$ac_prog", so it can be a program name with args.
3140 set dummy $ac_prog; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 if test -n "$ac_ct_CC"; then
3147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156 ac_cv_prog_ac_ct_CC="$ac_prog"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3160 done
3161 done
3162 IFS=$as_save_IFS
3166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167 if test -n "$ac_ct_CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3169 $as_echo "$ac_ct_CC" >&6; }
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3176 test -n "$ac_ct_CC" && break
3177 done
3179 if test "x$ac_ct_CC" = x; then
3180 CC=""
3181 else
3182 case $cross_compiling:$ac_tool_warned in
3183 yes:)
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186 ac_tool_warned=yes ;;
3187 esac
3188 CC=$ac_ct_CC
3195 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error $? "no acceptable C compiler found in \$PATH
3198 See \`config.log' for more details" "$LINENO" 5 ; }
3200 # Provide some information about the compiler.
3201 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3202 set X $ac_compile
3203 ac_compiler=$2
3204 for ac_option in --version -v -V -qversion; do
3205 { { ac_try="$ac_compiler $ac_option >&5"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3213 ac_status=$?
3214 if test -s conftest.err; then
3215 sed '10a\
3216 ... rest of stderr output deleted ...
3217 10q' conftest.err >conftest.er1
3218 cat conftest.er1 >&5
3220 rm -f conftest.er1 conftest.err
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }
3223 done
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3229 main ()
3233 return 0;
3235 _ACEOF
3236 ac_clean_files_save=$ac_clean_files
3237 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3238 # Try to create an executable without -o first, disregard a.out.
3239 # It will help us diagnose broken compilers, and finding out an intuition
3240 # of exeext.
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3242 $as_echo_n "checking whether the C compiler works... " >&6; }
3243 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3245 # The possible output files:
3246 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3248 ac_rmfiles=
3249 for ac_file in $ac_files
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3254 esac
3255 done
3256 rm -f $ac_rmfiles
3258 if { { ac_try="$ac_link_default"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_link_default") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
3269 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3270 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3271 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3272 # so that the user can short-circuit this test for compilers unknown to
3273 # Autoconf.
3274 for ac_file in $ac_files ''
3276 test -f "$ac_file" || continue
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3280 [ab].out )
3281 # We found the default executable, but exeext='' is most
3282 # certainly right.
3283 break;;
3284 *.* )
3285 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3286 then :; else
3287 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289 # We set ac_cv_exeext here because the later test for it is not
3290 # safe: cross compilers may not add the suffix if given an `-o'
3291 # argument, so we may need to know it at that point already.
3292 # Even if this section looks crufty: it has the advantage of
3293 # actually working.
3294 break;;
3296 break;;
3297 esac
3298 done
3299 test "$ac_cv_exeext" = no && ac_cv_exeext=
3301 else
3302 ac_file=''
3304 if test -z "$ac_file"; then :
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 $as_echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error 77 "C compiler cannot create executables
3313 See \`config.log' for more details" "$LINENO" 5 ; }
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3319 $as_echo_n "checking for C compiler default output file name... " >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3321 $as_echo "$ac_file" >&6; }
3322 ac_exeext=$ac_cv_exeext
3324 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3325 ac_clean_files=$ac_clean_files_save
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3327 $as_echo_n "checking for suffix of executables... " >&6; }
3328 if { { ac_try="$ac_link"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_link") 2>&5
3336 ac_status=$?
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }; then :
3339 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3340 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3341 # work properly (i.e., refer to `conftest.exe'), while it won't with
3342 # `rm'.
3343 for ac_file in conftest.exe conftest conftest.*; do
3344 test -f "$ac_file" || continue
3345 case $ac_file in
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3347 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 break;;
3349 * ) break;;
3350 esac
3351 done
3352 else
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3356 See \`config.log' for more details" "$LINENO" 5 ; }
3358 rm -f conftest conftest$ac_cv_exeext
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3360 $as_echo "$ac_cv_exeext" >&6; }
3362 rm -f conftest.$ac_ext
3363 EXEEXT=$ac_cv_exeext
3364 ac_exeext=$EXEEXT
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367 #include <stdio.h>
3369 main ()
3371 FILE *f = fopen ("conftest.out", "w");
3372 return ferror (f) || fclose (f) != 0;
3375 return 0;
3377 _ACEOF
3378 ac_clean_files="$ac_clean_files conftest.out"
3379 # Check that the compiler produces executables we can run. If not, either
3380 # the compiler is broken, or we cross compile.
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3382 $as_echo_n "checking whether we are cross compiling... " >&6; }
3383 if test "$cross_compiling" != yes; then
3384 { { ac_try="$ac_link"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_link") 2>&5
3392 ac_status=$?
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }
3395 if { ac_try='./conftest$ac_cv_exeext'
3396 { { case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_try") 2>&5
3403 ac_status=$?
3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405 test $ac_status = 0; }; }; then
3406 cross_compiling=no
3407 else
3408 if test "$cross_compiling" = maybe; then
3409 cross_compiling=yes
3410 else
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $? "cannot run C compiled programs.
3414 If you meant to cross compile, use \`--host'.
3415 See \`config.log' for more details" "$LINENO" 5 ; }
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3420 $as_echo "$cross_compiling" >&6; }
3422 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3425 $as_echo_n "checking for suffix of object files... " >&6; }
3426 if test "${ac_cv_objext+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3433 main ()
3437 return 0;
3439 _ACEOF
3440 rm -f conftest.o conftest.obj
3441 if { { ac_try="$ac_compile"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_compile") 2>&5
3449 ac_status=$?
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; then :
3452 for ac_file in conftest.o conftest.obj conftest.*; do
3453 test -f "$ac_file" || continue;
3454 case $ac_file in
3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3456 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3457 break;;
3458 esac
3459 done
3460 else
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot compute suffix of object files: cannot compile
3467 See \`config.log' for more details" "$LINENO" 5 ; }
3469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3472 $as_echo "$ac_cv_objext" >&6; }
3473 OBJEXT=$ac_cv_objext
3474 ac_objext=$OBJEXT
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3476 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3477 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3484 main ()
3486 #ifndef __GNUC__
3487 choke me
3488 #endif
3491 return 0;
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_compiler_gnu=yes
3496 else
3497 ac_compiler_gnu=no
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3504 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3505 if test $ac_compiler_gnu = yes; then
3506 GCC=yes
3507 else
3508 GCC=
3510 ac_test_CFLAGS=${CFLAGS+set}
3511 ac_save_CFLAGS=$CFLAGS
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3513 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3514 if test "${ac_cv_prog_cc_g+set}" = set; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 ac_save_c_werror_flag=$ac_c_werror_flag
3518 ac_c_werror_flag=yes
3519 ac_cv_prog_cc_g=no
3520 CFLAGS="-g"
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3525 main ()
3529 return 0;
3531 _ACEOF
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533 ac_cv_prog_cc_g=yes
3534 else
3535 CFLAGS=""
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3540 main ()
3544 return 0;
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3549 else
3550 ac_c_werror_flag=$ac_save_c_werror_flag
3551 CFLAGS="-g"
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3556 main ()
3560 return 0;
3562 _ACEOF
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564 ac_cv_prog_cc_g=yes
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 ac_c_werror_flag=$ac_save_c_werror_flag
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3574 $as_echo "$ac_cv_prog_cc_g" >&6; }
3575 if test "$ac_test_CFLAGS" = set; then
3576 CFLAGS=$ac_save_CFLAGS
3577 elif test $ac_cv_prog_cc_g = yes; then
3578 if test "$GCC" = yes; then
3579 CFLAGS="-g -O2"
3580 else
3581 CFLAGS="-g"
3583 else
3584 if test "$GCC" = yes; then
3585 CFLAGS="-O2"
3586 else
3587 CFLAGS=
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3591 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3592 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 ac_cv_prog_cc_c89=no
3596 ac_save_CC=$CC
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3599 #include <stdarg.h>
3600 #include <stdio.h>
3601 #include <sys/types.h>
3602 #include <sys/stat.h>
3603 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3604 struct buf { int x; };
3605 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3606 static char *e (p, i)
3607 char **p;
3608 int i;
3610 return p[i];
3612 static char *f (char * (*g) (char **, int), char **p, ...)
3614 char *s;
3615 va_list v;
3616 va_start (v,p);
3617 s = g (p, va_arg (v,int));
3618 va_end (v);
3619 return s;
3622 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3623 function prototypes and stuff, but not '\xHH' hex character constants.
3624 These don't provoke an error unfortunately, instead are silently treated
3625 as 'x'. The following induces an error, until -std is added to get
3626 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3627 array size at least. It's necessary to write '\x00'==0 to get something
3628 that's true only with -std. */
3629 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3631 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3632 inside strings and character constants. */
3633 #define FOO(x) 'x'
3634 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3636 int test (int i, double x);
3637 struct s1 {int (*f) (int a);};
3638 struct s2 {int (*f) (double a);};
3639 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3640 int argc;
3641 char **argv;
3643 main ()
3645 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3647 return 0;
3649 _ACEOF
3650 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3651 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3653 CC="$ac_save_CC $ac_arg"
3654 if ac_fn_c_try_compile "$LINENO"; then :
3655 ac_cv_prog_cc_c89=$ac_arg
3657 rm -f core conftest.err conftest.$ac_objext
3658 test "x$ac_cv_prog_cc_c89" != "xno" && break
3659 done
3660 rm -f conftest.$ac_ext
3661 CC=$ac_save_CC
3664 # AC_CACHE_VAL
3665 case "x$ac_cv_prog_cc_c89" in
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3668 $as_echo "none needed" >&6; } ;;
3669 xno)
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3671 $as_echo "unsupported" >&6; } ;;
3673 CC="$CC $ac_cv_prog_cc_c89"
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3675 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3676 esac
3677 if test "x$ac_cv_prog_cc_c89" != xno; then :
3681 ac_ext=c
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687 ac_ext=cpp
3688 ac_cpp='$CXXCPP $CPPFLAGS'
3689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3692 if test -z "$CXX"; then
3693 if test -n "$CCC"; then
3694 CXX=$CCC
3695 else
3696 if test -n "$ac_tool_prefix"; then
3697 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if test "${ac_cv_prog_CXX+set}" = set; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 if test -n "$CXX"; then
3707 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3716 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 break 2
3720 done
3721 done
3722 IFS=$as_save_IFS
3726 CXX=$ac_cv_prog_CXX
3727 if test -n "$CXX"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3729 $as_echo "$CXX" >&6; }
3730 else
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3736 test -n "$CXX" && break
3737 done
3739 if test -z "$CXX"; then
3740 ac_ct_CXX=$CXX
3741 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$ac_ct_CXX"; then
3751 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_ac_ct_CXX="$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3771 if test -n "$ac_ct_CXX"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3773 $as_echo "$ac_ct_CXX" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3780 test -n "$ac_ct_CXX" && break
3781 done
3783 if test "x$ac_ct_CXX" = x; then
3784 CXX="g++"
3785 else
3786 case $cross_compiling:$ac_tool_warned in
3787 yes:)
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790 ac_tool_warned=yes ;;
3791 esac
3792 CXX=$ac_ct_CXX
3798 # Provide some information about the compiler.
3799 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3800 set X $ac_compile
3801 ac_compiler=$2
3802 for ac_option in --version -v -V -qversion; do
3803 { { ac_try="$ac_compiler $ac_option >&5"
3804 case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3811 ac_status=$?
3812 if test -s conftest.err; then
3813 sed '10a\
3814 ... rest of stderr output deleted ...
3815 10q' conftest.err >conftest.er1
3816 cat conftest.er1 >&5
3818 rm -f conftest.er1 conftest.err
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }
3821 done
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3824 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3825 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3832 main ()
3834 #ifndef __GNUC__
3835 choke me
3836 #endif
3839 return 0;
3841 _ACEOF
3842 if ac_fn_cxx_try_compile "$LINENO"; then :
3843 ac_compiler_gnu=yes
3844 else
3845 ac_compiler_gnu=no
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3852 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3853 if test $ac_compiler_gnu = yes; then
3854 GXX=yes
3855 else
3856 GXX=
3858 ac_test_CXXFLAGS=${CXXFLAGS+set}
3859 ac_save_CXXFLAGS=$CXXFLAGS
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3861 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3862 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3866 ac_cxx_werror_flag=yes
3867 ac_cv_prog_cxx_g=no
3868 CXXFLAGS="-g"
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3873 main ()
3877 return 0;
3879 _ACEOF
3880 if ac_fn_cxx_try_compile "$LINENO"; then :
3881 ac_cv_prog_cxx_g=yes
3882 else
3883 CXXFLAGS=""
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3888 main ()
3892 return 0;
3894 _ACEOF
3895 if ac_fn_cxx_try_compile "$LINENO"; then :
3897 else
3898 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3899 CXXFLAGS="-g"
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3904 main ()
3908 return 0;
3910 _ACEOF
3911 if ac_fn_cxx_try_compile "$LINENO"; then :
3912 ac_cv_prog_cxx_g=yes
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3922 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3923 if test "$ac_test_CXXFLAGS" = set; then
3924 CXXFLAGS=$ac_save_CXXFLAGS
3925 elif test $ac_cv_prog_cxx_g = yes; then
3926 if test "$GXX" = yes; then
3927 CXXFLAGS="-g -O2"
3928 else
3929 CXXFLAGS="-g"
3931 else
3932 if test "$GXX" = yes; then
3933 CXXFLAGS="-O2"
3934 else
3935 CXXFLAGS=
3938 ac_ext=c
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944 if test -n "$ac_tool_prefix"; then
3945 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3946 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 if test -n "$CPPBIN"; then
3953 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3962 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3966 done
3967 done
3968 IFS=$as_save_IFS
3972 CPPBIN=$ac_cv_prog_CPPBIN
3973 if test -n "$CPPBIN"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3975 $as_echo "$CPPBIN" >&6; }
3976 else
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3983 if test -z "$ac_cv_prog_CPPBIN"; then
3984 ac_ct_CPPBIN=$CPPBIN
3985 # Extract the first word of "cpp", so it can be a program name with args.
3986 set dummy cpp; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if test -n "$ac_ct_CPPBIN"; then
3993 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4002 ac_cv_prog_ac_ct_CPPBIN="cpp"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4006 done
4007 done
4008 IFS=$as_save_IFS
4012 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4013 if test -n "$ac_ct_CPPBIN"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4015 $as_echo "$ac_ct_CPPBIN" >&6; }
4016 else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4021 if test "x$ac_ct_CPPBIN" = x; then
4022 CPPBIN="cpp"
4023 else
4024 case $cross_compiling:$ac_tool_warned in
4025 yes:)
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4028 ac_tool_warned=yes ;;
4029 esac
4030 CPPBIN=$ac_ct_CPPBIN
4032 else
4033 CPPBIN="$ac_cv_prog_CPPBIN"
4037 cat >>confdefs.h <<_ACEOF
4038 #define EXEEXT "$ac_exeext"
4039 _ACEOF
4042 case $host in
4043 *-darwin*)
4044 if test "x$enable_win64" = "xyes"
4045 then
4046 CC="$CC -m64"
4047 CXX="$CXX -m64"
4048 LD="${LD:-ld} -arch x86_64"
4049 AS="${AS:-as} -arch x86_64"
4050 host_cpu="x86_64"
4051 notice_platform="64-bit "
4052 TARGETFLAGS="-m64"
4054 else
4055 CC="$CC -m32"
4056 CXX="$CXX -m32"
4057 LD="${LD:-ld} -arch i386"
4058 AS="${AS:-as} -arch i386"
4059 host_cpu="i386"
4060 notice_platform="32-bit "
4061 TARGETFLAGS="-m32"
4063 enable_win16=${enable_win16:-yes}
4066 x86_64*)
4067 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4068 then
4069 CC="$CC -m32"
4070 CXX="$CXX -m32"
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4072 $as_echo_n "checking whether $CC works... " >&6; }
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4078 main ()
4082 return 0;
4084 _ACEOF
4085 if ac_fn_c_try_link "$LINENO"; then :
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4087 $as_echo "yes" >&6; }
4088 else
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4091 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4093 rm -f core conftest.err conftest.$ac_objext \
4094 conftest$ac_exeext conftest.$ac_ext
4095 LD="${LD:-ld} -m elf_i386"
4096 AS="${AS:-as} --32"
4097 host_cpu="i386"
4098 notice_platform="32-bit "
4099 TARGETFLAGS="-m32"
4101 enable_win16=${enable_win16:-yes}
4102 else
4103 if test "x${GCC}" = "xyes"
4104 then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4106 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109 #include <stdarg.h>
4111 main ()
4113 void func(__builtin_ms_va_list *args);
4115 return 0;
4117 _ACEOF
4118 if ac_fn_c_try_compile "$LINENO"; then :
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4120 $as_echo "yes" >&6; }
4121 else
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4124 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 TARGETFLAGS="-m64"
4132 *-mingw32*|*-cygwin*)
4133 enable_win16=${enable_win16:-no}
4134 CFLAGS="$CFLAGS -D_WIN32"
4136 i[3456789]86*)
4137 enable_win16=${enable_win16:-yes}
4139 esac
4141 enable_win16=${enable_win16:-no}
4143 enable_winetest=${enable_winetest:-$enable_tests}
4145 if test -n "$with_wine64"
4146 then
4147 if test "x$enable_win64" = "xyes"
4148 then
4149 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4150 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4152 WOW64_DISABLE=\#
4154 enable_fonts=${enable_fonts:-no}
4155 enable_server=${enable_server:-no}
4156 enable_tools=${enable_tools:-no}
4157 elif test "x$enable_win64" = "xyes"
4158 then
4159 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4163 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4164 if test "${wine_cv_toolsdir+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 wine_cv_toolsdir="$with_wine_tools"
4168 if test -z "$with_wine_tools"; then
4169 if test "$cross_compiling" = "yes"; then
4170 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4171 elif test -n "$with_wine64"; then
4172 wine_cv_toolsdir="$with_wine64"
4175 if test -z "$wine_cv_toolsdir"; then
4176 wine_cv_toolsdir="\$(top_builddir)"
4177 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4178 case "$wine_cv_toolsdir" in
4179 /*) ;;
4180 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4181 esac
4182 else
4183 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4187 $as_echo "$wine_cv_toolsdir" >&6; }
4188 TOOLSDIR=$wine_cv_toolsdir
4190 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4191 then
4192 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4196 for ac_prog in flex
4198 # Extract the first word of "$ac_prog", so it can be a program name with args.
4199 set dummy $ac_prog; ac_word=$2
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if test "${ac_cv_prog_FLEX+set}" = set; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 if test -n "$FLEX"; then
4206 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_FLEX="$ac_prog"
4216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4219 done
4220 done
4221 IFS=$as_save_IFS
4225 FLEX=$ac_cv_prog_FLEX
4226 if test -n "$FLEX"; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4228 $as_echo "$FLEX" >&6; }
4229 else
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4235 test -n "$FLEX" && break
4236 done
4237 test -n "$FLEX" || FLEX="none"
4239 if test "$FLEX" = "none"
4240 then
4241 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4244 $as_echo_n "checking whether flex is recent enough... " >&6; }
4245 cat >conftest.l <<EOF
4246 %top{
4247 #include "prediluvian.h"
4251 if $FLEX -t conftest.l >/dev/null 2>&5
4252 then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4254 $as_echo "yes" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4258 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4261 for ac_prog in bison
4263 # Extract the first word of "$ac_prog", so it can be a program name with args.
4264 set dummy $ac_prog; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if test "${ac_cv_prog_BISON+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 if test -n "$BISON"; then
4271 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_BISON="$ac_prog"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4284 done
4285 done
4286 IFS=$as_save_IFS
4290 BISON=$ac_cv_prog_BISON
4291 if test -n "$BISON"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4293 $as_echo "$BISON" >&6; }
4294 else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4300 test -n "$BISON" && break
4301 done
4302 test -n "$BISON" || BISON="none"
4304 if test "$BISON" = "none"
4305 then
4306 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4309 if test -n "$ac_tool_prefix"; then
4310 for ac_prog in ar gar
4312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 $as_echo_n "checking for $ac_word... " >&6; }
4316 if test "${ac_cv_prog_AR+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 if test -n "$AR"; then
4320 ac_cv_prog_AR="$AR" # Let the user override the test.
4321 else
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4329 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 break 2
4333 done
4334 done
4335 IFS=$as_save_IFS
4339 AR=$ac_cv_prog_AR
4340 if test -n "$AR"; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4342 $as_echo "$AR" >&6; }
4343 else
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345 $as_echo "no" >&6; }
4349 test -n "$AR" && break
4350 done
4352 if test -z "$AR"; then
4353 ac_ct_AR=$AR
4354 for ac_prog in ar gar
4356 # Extract the first word of "$ac_prog", so it can be a program name with args.
4357 set dummy $ac_prog; ac_word=$2
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359 $as_echo_n "checking for $ac_word... " >&6; }
4360 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 if test -n "$ac_ct_AR"; then
4364 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4365 else
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 ac_cv_prog_ac_ct_AR="$ac_prog"
4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 break 2
4377 done
4378 done
4379 IFS=$as_save_IFS
4383 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4384 if test -n "$ac_ct_AR"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4386 $as_echo "$ac_ct_AR" >&6; }
4387 else
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4393 test -n "$ac_ct_AR" && break
4394 done
4396 if test "x$ac_ct_AR" = x; then
4397 AR="ar"
4398 else
4399 case $cross_compiling:$ac_tool_warned in
4400 yes:)
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4403 ac_tool_warned=yes ;;
4404 esac
4405 AR=$ac_ct_AR
4409 ARFLAGS=rc
4411 if test -n "$ac_tool_prefix"; then
4412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 if test -n "$RANLIB"; then
4420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 break 2
4433 done
4434 done
4435 IFS=$as_save_IFS
4439 RANLIB=$ac_cv_prog_RANLIB
4440 if test -n "$RANLIB"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4442 $as_echo "$RANLIB" >&6; }
4443 else
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4450 if test -z "$ac_cv_prog_RANLIB"; then
4451 ac_ct_RANLIB=$RANLIB
4452 # Extract the first word of "ranlib", so it can be a program name with args.
4453 set dummy ranlib; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 if test -n "$ac_ct_RANLIB"; then
4460 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_ac_ct_RANLIB="ranlib"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4473 done
4474 done
4475 IFS=$as_save_IFS
4479 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4480 if test -n "$ac_ct_RANLIB"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4482 $as_echo "$ac_ct_RANLIB" >&6; }
4483 else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4488 if test "x$ac_ct_RANLIB" = x; then
4489 RANLIB=":"
4490 else
4491 case $cross_compiling:$ac_tool_warned in
4492 yes:)
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4495 ac_tool_warned=yes ;;
4496 esac
4497 RANLIB=$ac_ct_RANLIB
4499 else
4500 RANLIB="$ac_cv_prog_RANLIB"
4503 if test -n "$ac_tool_prefix"; then
4504 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4505 set dummy ${ac_tool_prefix}strip; ac_word=$2
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 $as_echo_n "checking for $ac_word... " >&6; }
4508 if test "${ac_cv_prog_STRIP+set}" = set; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 if test -n "$STRIP"; then
4512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4525 done
4526 done
4527 IFS=$as_save_IFS
4531 STRIP=$ac_cv_prog_STRIP
4532 if test -n "$STRIP"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4534 $as_echo "$STRIP" >&6; }
4535 else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4542 if test -z "$ac_cv_prog_STRIP"; then
4543 ac_ct_STRIP=$STRIP
4544 # Extract the first word of "strip", so it can be a program name with args.
4545 set dummy strip; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if test -n "$ac_ct_STRIP"; then
4552 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_ac_ct_STRIP="strip"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4565 done
4566 done
4567 IFS=$as_save_IFS
4571 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4572 if test -n "$ac_ct_STRIP"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4574 $as_echo "$ac_ct_STRIP" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4580 if test "x$ac_ct_STRIP" = x; then
4581 STRIP="strip"
4582 else
4583 case $cross_compiling:$ac_tool_warned in
4584 yes:)
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4587 ac_tool_warned=yes ;;
4588 esac
4589 STRIP=$ac_ct_STRIP
4591 else
4592 STRIP="$ac_cv_prog_STRIP"
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4596 $as_echo_n "checking whether ln -s works... " >&6; }
4597 LN_S=$as_ln_s
4598 if test "$LN_S" = "ln -s"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4600 $as_echo "yes" >&6; }
4601 else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4603 $as_echo "no, using $LN_S" >&6; }
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4607 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4608 if test "${ac_cv_path_GREP+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -z "$GREP"; then
4612 ac_path_GREP_found=false
4613 # Loop through the user's path and test for each of PROGNAME-LIST
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_prog in grep ggrep; do
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4622 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4623 # Check for GNU ac_path_GREP and select it if it is found.
4624 # Check for GNU $ac_path_GREP
4625 case `"$ac_path_GREP" --version 2>&1` in
4626 *GNU*)
4627 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4629 ac_count=0
4630 $as_echo_n 0123456789 >"conftest.in"
4631 while :
4633 cat "conftest.in" "conftest.in" >"conftest.tmp"
4634 mv "conftest.tmp" "conftest.in"
4635 cp "conftest.in" "conftest.nl"
4636 $as_echo 'GREP' >> "conftest.nl"
4637 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639 as_fn_arith $ac_count + 1 && ac_count=$as_val
4640 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4641 # Best one so far, save it but keep looking for a better one
4642 ac_cv_path_GREP="$ac_path_GREP"
4643 ac_path_GREP_max=$ac_count
4645 # 10*(2^10) chars as input seems more than enough
4646 test $ac_count -gt 10 && break
4647 done
4648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4649 esac
4651 $ac_path_GREP_found && break 3
4652 done
4653 done
4654 done
4655 IFS=$as_save_IFS
4656 if test -z "$ac_cv_path_GREP"; then
4657 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4659 else
4660 ac_cv_path_GREP=$GREP
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4665 $as_echo "$ac_cv_path_GREP" >&6; }
4666 GREP="$ac_cv_path_GREP"
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4670 $as_echo_n "checking for egrep... " >&6; }
4671 if test "${ac_cv_path_EGREP+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4675 then ac_cv_path_EGREP="$GREP -E"
4676 else
4677 if test -z "$EGREP"; then
4678 ac_path_EGREP_found=false
4679 # Loop through the user's path and test for each of PROGNAME-LIST
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_prog in egrep; do
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4688 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4689 # Check for GNU ac_path_EGREP and select it if it is found.
4690 # Check for GNU $ac_path_EGREP
4691 case `"$ac_path_EGREP" --version 2>&1` in
4692 *GNU*)
4693 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4695 ac_count=0
4696 $as_echo_n 0123456789 >"conftest.in"
4697 while :
4699 cat "conftest.in" "conftest.in" >"conftest.tmp"
4700 mv "conftest.tmp" "conftest.in"
4701 cp "conftest.in" "conftest.nl"
4702 $as_echo 'EGREP' >> "conftest.nl"
4703 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4705 as_fn_arith $ac_count + 1 && ac_count=$as_val
4706 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4707 # Best one so far, save it but keep looking for a better one
4708 ac_cv_path_EGREP="$ac_path_EGREP"
4709 ac_path_EGREP_max=$ac_count
4711 # 10*(2^10) chars as input seems more than enough
4712 test $ac_count -gt 10 && break
4713 done
4714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4715 esac
4717 $ac_path_EGREP_found && break 3
4718 done
4719 done
4720 done
4721 IFS=$as_save_IFS
4722 if test -z "$ac_cv_path_EGREP"; then
4723 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4725 else
4726 ac_cv_path_EGREP=$EGREP
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4732 $as_echo "$ac_cv_path_EGREP" >&6; }
4733 EGREP="$ac_cv_path_EGREP"
4736 # Extract the first word of "ldconfig", so it can be a program name with args.
4737 set dummy ldconfig; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 case $LDCONFIG in
4744 [\\/]* | ?:[\\/]*)
4745 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in /sbin /usr/sbin $PATH
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 break 2
4759 done
4760 done
4761 IFS=$as_save_IFS
4763 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4765 esac
4767 LDCONFIG=$ac_cv_path_LDCONFIG
4768 if test -n "$LDCONFIG"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4770 $as_echo "$LDCONFIG" >&6; }
4771 else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4777 # Find a good install program. We prefer a C program (faster),
4778 # so one script is as good as another. But avoid the broken or
4779 # incompatible versions:
4780 # SysV /etc/install, /usr/sbin/install
4781 # SunOS /usr/etc/install
4782 # IRIX /sbin/install
4783 # AIX /bin/install
4784 # AmigaOS /C/install, which installs bootblocks on floppy discs
4785 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4786 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4787 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4788 # OS/2's system install, which has a completely different semantic
4789 # ./install, which can be erroneously created by make from ./install.sh.
4790 # Reject install programs that cannot install multiple files.
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4792 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4793 if test -z "$INSTALL"; then
4794 if test "${ac_cv_path_install+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 # Account for people who put trailing slashes in PATH elements.
4803 case $as_dir/ in #((
4804 ./ | .// | /[cC]/* | \
4805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4806 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4807 /usr/ucb/* ) ;;
4809 # OSF1 and SCO ODT 3.0 have their own names for install.
4810 # Don't use installbsd from OSF since it installs stuff as root
4811 # by default.
4812 for ac_prog in ginstall scoinst install; do
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4815 if test $ac_prog = install &&
4816 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4817 # AIX install. It has an incompatible calling convention.
4819 elif test $ac_prog = install &&
4820 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4821 # program-specific install script used by HP pwplus--don't use.
4823 else
4824 rm -rf conftest.one conftest.two conftest.dir
4825 echo one > conftest.one
4826 echo two > conftest.two
4827 mkdir conftest.dir
4828 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4829 test -s conftest.one && test -s conftest.two &&
4830 test -s conftest.dir/conftest.one &&
4831 test -s conftest.dir/conftest.two
4832 then
4833 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4834 break 3
4838 done
4839 done
4841 esac
4843 done
4844 IFS=$as_save_IFS
4846 rm -rf conftest.one conftest.two conftest.dir
4849 if test "${ac_cv_path_install+set}" = set; then
4850 INSTALL=$ac_cv_path_install
4851 else
4852 # As a last resort, use the slow shell script. Don't cache a
4853 # value for INSTALL within a source directory, because that will
4854 # break other packages using the cache if that directory is
4855 # removed, or if the value is a relative name.
4856 INSTALL=$ac_install_sh
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4860 $as_echo "$INSTALL" >&6; }
4862 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4863 # It thinks the first close brace ends the variable substitution.
4864 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4866 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4868 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4870 case "$INSTALL" in
4871 [\\/$]* | ?:[\\/]* ) ;;
4872 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4873 esac
4875 for ac_prog in lclint lint
4877 # Extract the first word of "$ac_prog", so it can be a program name with args.
4878 set dummy $ac_prog; ac_word=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if test "${ac_cv_prog_LINT+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 if test -n "$LINT"; then
4885 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4886 else
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894 ac_cv_prog_LINT="$ac_prog"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 break 2
4898 done
4899 done
4900 IFS=$as_save_IFS
4904 LINT=$ac_cv_prog_LINT
4905 if test -n "$LINT"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4907 $as_echo "$LINT" >&6; }
4908 else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4914 test -n "$LINT" && break
4915 done
4917 if test "$LINT" = "lint"
4918 then
4919 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4924 for ac_prog in fontforge
4926 # Extract the first word of "$ac_prog", so it can be a program name with args.
4927 set dummy $ac_prog; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -n "$FONTFORGE"; then
4934 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_prog_FONTFORGE="$ac_prog"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4947 done
4948 done
4949 IFS=$as_save_IFS
4953 FONTFORGE=$ac_cv_prog_FONTFORGE
4954 if test -n "$FONTFORGE"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4956 $as_echo "$FONTFORGE" >&6; }
4957 else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4963 test -n "$FONTFORGE" && break
4964 done
4965 test -n "$FONTFORGE" || FONTFORGE="false"
4967 for ac_prog in pkg-config
4969 # Extract the first word of "$ac_prog", so it can be a program name with args.
4970 set dummy $ac_prog; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 if test -n "$PKG_CONFIG"; then
4977 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986 ac_cv_prog_PKG_CONFIG="$ac_prog"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4990 done
4991 done
4992 IFS=$as_save_IFS
4996 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4997 if test -n "$PKG_CONFIG"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4999 $as_echo "$PKG_CONFIG" >&6; }
5000 else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5006 test -n "$PKG_CONFIG" && break
5007 done
5008 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5010 for ac_prog in rsvg
5012 # Extract the first word of "$ac_prog", so it can be a program name with args.
5013 set dummy $ac_prog; ac_word=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if test "${ac_cv_prog_RSVG+set}" = set; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 if test -n "$RSVG"; then
5020 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029 ac_cv_prog_RSVG="$ac_prog"
5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 break 2
5033 done
5034 done
5035 IFS=$as_save_IFS
5039 RSVG=$ac_cv_prog_RSVG
5040 if test -n "$RSVG"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5042 $as_echo "$RSVG" >&6; }
5043 else
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5049 test -n "$RSVG" && break
5050 done
5051 test -n "$RSVG" || RSVG="false"
5053 for ac_prog in convert
5055 # Extract the first word of "$ac_prog", so it can be a program name with args.
5056 set dummy $ac_prog; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if test "${ac_cv_prog_CONVERT+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -n "$CONVERT"; then
5063 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5072 ac_cv_prog_CONVERT="$ac_prog"
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5076 done
5077 done
5078 IFS=$as_save_IFS
5082 CONVERT=$ac_cv_prog_CONVERT
5083 if test -n "$CONVERT"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5085 $as_echo "$CONVERT" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5092 test -n "$CONVERT" && break
5093 done
5094 test -n "$CONVERT" || CONVERT="false"
5096 for ac_prog in icotool
5098 # Extract the first word of "$ac_prog", so it can be a program name with args.
5099 set dummy $ac_prog; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -n "$ICOTOOL"; then
5106 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_prog_ICOTOOL="$ac_prog"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5119 done
5120 done
5121 IFS=$as_save_IFS
5125 ICOTOOL=$ac_cv_prog_ICOTOOL
5126 if test -n "$ICOTOOL"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5128 $as_echo "$ICOTOOL" >&6; }
5129 else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5135 test -n "$ICOTOOL" && break
5136 done
5137 test -n "$ICOTOOL" || ICOTOOL="false"
5140 if test "x$enable_maintainer_mode" != "xyes"
5141 then
5142 MAINTAINER_MODE=\#
5144 else
5145 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi
5146 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5 ; fi
5148 if test "$CONVERT" = false
5149 then
5150 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5151 else
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5153 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5154 convert_version=`convert --version | head -n1`
5155 if test "x$convert_version" != "x"
5156 then
5157 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5158 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5159 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5160 then
5161 CONVERT=false
5164 if test "$CONVERT" = false
5165 then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5167 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5168 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5171 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5175 if test "$ICOTOOL" = false
5176 then
5177 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5178 else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5180 $as_echo_n "checking for recent enough icotool... " >&6; }
5181 icotool_version=`icotool --version | head -n1`
5182 if test "x$icotool_version" != "x"
5183 then
5184 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5185 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5186 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5187 then
5188 ICOTOOL=false
5189 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5192 if test "$ICOTOOL" = false
5193 then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5195 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5196 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5199 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5207 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5208 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 ac_check_lib_save_LIBS=$LIBS
5212 LIBS="-li386 $LIBS"
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5216 /* Override any GCC internal prototype to avoid an error.
5217 Use char because int might match the return type of a GCC
5218 builtin and then its argument prototype would still apply. */
5219 #ifdef __cplusplus
5220 extern "C"
5221 #endif
5222 char i386_set_ldt ();
5224 main ()
5226 return i386_set_ldt ();
5228 return 0;
5230 _ACEOF
5231 if ac_fn_c_try_link "$LINENO"; then :
5232 ac_cv_lib_i386_i386_set_ldt=yes
5233 else
5234 ac_cv_lib_i386_i386_set_ldt=no
5236 rm -f core conftest.err conftest.$ac_objext \
5237 conftest$ac_exeext conftest.$ac_ext
5238 LIBS=$ac_check_lib_save_LIBS
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5241 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5242 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5243 cat >>confdefs.h <<_ACEOF
5244 #define HAVE_LIBI386 1
5245 _ACEOF
5247 LIBS="-li386 $LIBS"
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5252 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5253 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 ac_check_lib_save_LIBS=$LIBS
5257 LIBS="-lossaudio $LIBS"
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5261 /* Override any GCC internal prototype to avoid an error.
5262 Use char because int might match the return type of a GCC
5263 builtin and then its argument prototype would still apply. */
5264 #ifdef __cplusplus
5265 extern "C"
5266 #endif
5267 char _oss_ioctl ();
5269 main ()
5271 return _oss_ioctl ();
5273 return 0;
5275 _ACEOF
5276 if ac_fn_c_try_link "$LINENO"; then :
5277 ac_cv_lib_ossaudio__oss_ioctl=yes
5278 else
5279 ac_cv_lib_ossaudio__oss_ioctl=no
5281 rm -f core conftest.err conftest.$ac_objext \
5282 conftest$ac_exeext conftest.$ac_ext
5283 LIBS=$ac_check_lib_save_LIBS
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5286 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5287 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5288 cat >>confdefs.h <<_ACEOF
5289 #define HAVE_LIBOSSAUDIO 1
5290 _ACEOF
5292 LIBS="-lossaudio $LIBS"
5297 XLIB=""
5299 OPENGL_LIBS=""
5303 # Check whether --enable-largefile was given.
5304 if test "${enable_largefile+set}" = set; then :
5305 enableval=$enable_largefile;
5308 if test "$enable_largefile" != no; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5311 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5312 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 ac_cv_sys_largefile_CC=no
5316 if test "$GCC" != yes; then
5317 ac_save_CC=$CC
5318 while :; do
5319 # IRIX 6.2 and later do not support large files by default,
5320 # so use the C compiler's -n32 option if that helps.
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 #include <sys/types.h>
5324 /* Check that off_t can represent 2**63 - 1 correctly.
5325 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5326 since some C++ compilers masquerading as C compilers
5327 incorrectly reject 9223372036854775807. */
5328 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5329 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5330 && LARGE_OFF_T % 2147483647 == 1)
5331 ? 1 : -1];
5333 main ()
5337 return 0;
5339 _ACEOF
5340 if ac_fn_c_try_compile "$LINENO"; then :
5341 break
5343 rm -f core conftest.err conftest.$ac_objext
5344 CC="$CC -n32"
5345 if ac_fn_c_try_compile "$LINENO"; then :
5346 ac_cv_sys_largefile_CC=' -n32'; break
5348 rm -f core conftest.err conftest.$ac_objext
5349 break
5350 done
5351 CC=$ac_save_CC
5352 rm -f conftest.$ac_ext
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5356 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5357 if test "$ac_cv_sys_largefile_CC" != no; then
5358 CC=$CC$ac_cv_sys_largefile_CC
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5362 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5363 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 while :; do
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 #include <sys/types.h>
5370 /* Check that off_t can represent 2**63 - 1 correctly.
5371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5372 since some C++ compilers masquerading as C compilers
5373 incorrectly reject 9223372036854775807. */
5374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5376 && LARGE_OFF_T % 2147483647 == 1)
5377 ? 1 : -1];
5379 main ()
5383 return 0;
5385 _ACEOF
5386 if ac_fn_c_try_compile "$LINENO"; then :
5387 ac_cv_sys_file_offset_bits=no; break
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392 #define _FILE_OFFSET_BITS 64
5393 #include <sys/types.h>
5394 /* Check that off_t can represent 2**63 - 1 correctly.
5395 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5396 since some C++ compilers masquerading as C compilers
5397 incorrectly reject 9223372036854775807. */
5398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5400 && LARGE_OFF_T % 2147483647 == 1)
5401 ? 1 : -1];
5403 main ()
5407 return 0;
5409 _ACEOF
5410 if ac_fn_c_try_compile "$LINENO"; then :
5411 ac_cv_sys_file_offset_bits=64; break
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 ac_cv_sys_file_offset_bits=unknown
5415 break
5416 done
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5419 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5420 case $ac_cv_sys_file_offset_bits in #(
5421 no | unknown) ;;
5423 cat >>confdefs.h <<_ACEOF
5424 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5425 _ACEOF
5427 esac
5428 rm -rf conftest*
5429 if test $ac_cv_sys_file_offset_bits = unknown; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5431 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5432 if test "${ac_cv_sys_large_files+set}" = set; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 while :; do
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 #include <sys/types.h>
5439 /* Check that off_t can represent 2**63 - 1 correctly.
5440 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5441 since some C++ compilers masquerading as C compilers
5442 incorrectly reject 9223372036854775807. */
5443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5445 && LARGE_OFF_T % 2147483647 == 1)
5446 ? 1 : -1];
5448 main ()
5452 return 0;
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456 ac_cv_sys_large_files=no; break
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 #define _LARGE_FILES 1
5462 #include <sys/types.h>
5463 /* Check that off_t can represent 2**63 - 1 correctly.
5464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5465 since some C++ compilers masquerading as C compilers
5466 incorrectly reject 9223372036854775807. */
5467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5469 && LARGE_OFF_T % 2147483647 == 1)
5470 ? 1 : -1];
5472 main ()
5476 return 0;
5478 _ACEOF
5479 if ac_fn_c_try_compile "$LINENO"; then :
5480 ac_cv_sys_large_files=1; break
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 ac_cv_sys_large_files=unknown
5484 break
5485 done
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5488 $as_echo "$ac_cv_sys_large_files" >&6; }
5489 case $ac_cv_sys_large_files in #(
5490 no | unknown) ;;
5492 cat >>confdefs.h <<_ACEOF
5493 #define _LARGE_FILES $ac_cv_sys_large_files
5494 _ACEOF
5496 esac
5497 rm -rf conftest*
5502 ac_ext=c
5503 ac_cpp='$CPP $CPPFLAGS'
5504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5508 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5509 # On Suns, sometimes $CPP names a directory.
5510 if test -n "$CPP" && test -d "$CPP"; then
5511 CPP=
5513 if test -z "$CPP"; then
5514 if test "${ac_cv_prog_CPP+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 # Double quotes because CPP needs to be expanded
5518 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5520 ac_preproc_ok=false
5521 for ac_c_preproc_warn_flag in '' yes
5523 # Use a header file that comes with gcc, so configuring glibc
5524 # with a fresh cross-compiler works.
5525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5526 # <limits.h> exists even on freestanding compilers.
5527 # On the NeXT, cc -E runs the code through the compiler's parser,
5528 # not just through cpp. "Syntax error" is here to catch this case.
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 #ifdef __STDC__
5532 # include <limits.h>
5533 #else
5534 # include <assert.h>
5535 #endif
5536 Syntax error
5537 _ACEOF
5538 if ac_fn_c_try_cpp "$LINENO"; then :
5540 else
5541 # Broken: fails on valid input.
5542 continue
5544 rm -f conftest.err conftest.i conftest.$ac_ext
5546 # OK, works on sane cases. Now check whether nonexistent headers
5547 # can be detected and how.
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5550 #include <ac_nonexistent.h>
5551 _ACEOF
5552 if ac_fn_c_try_cpp "$LINENO"; then :
5553 # Broken: success on invalid input.
5554 continue
5555 else
5556 # Passes both tests.
5557 ac_preproc_ok=:
5558 break
5560 rm -f conftest.err conftest.i conftest.$ac_ext
5562 done
5563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5564 rm -f conftest.i conftest.err conftest.$ac_ext
5565 if $ac_preproc_ok; then :
5566 break
5569 done
5570 ac_cv_prog_CPP=$CPP
5573 CPP=$ac_cv_prog_CPP
5574 else
5575 ac_cv_prog_CPP=$CPP
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5578 $as_echo "$CPP" >&6; }
5579 ac_preproc_ok=false
5580 for ac_c_preproc_warn_flag in '' yes
5582 # Use a header file that comes with gcc, so configuring glibc
5583 # with a fresh cross-compiler works.
5584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5585 # <limits.h> exists even on freestanding compilers.
5586 # On the NeXT, cc -E runs the code through the compiler's parser,
5587 # not just through cpp. "Syntax error" is here to catch this case.
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 #ifdef __STDC__
5591 # include <limits.h>
5592 #else
5593 # include <assert.h>
5594 #endif
5595 Syntax error
5596 _ACEOF
5597 if ac_fn_c_try_cpp "$LINENO"; then :
5599 else
5600 # Broken: fails on valid input.
5601 continue
5603 rm -f conftest.err conftest.i conftest.$ac_ext
5605 # OK, works on sane cases. Now check whether nonexistent headers
5606 # can be detected and how.
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #include <ac_nonexistent.h>
5610 _ACEOF
5611 if ac_fn_c_try_cpp "$LINENO"; then :
5612 # Broken: success on invalid input.
5613 continue
5614 else
5615 # Passes both tests.
5616 ac_preproc_ok=:
5617 break
5619 rm -f conftest.err conftest.i conftest.$ac_ext
5621 done
5622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5623 rm -f conftest.i conftest.err conftest.$ac_ext
5624 if $ac_preproc_ok; then :
5626 else
5627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5629 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5630 See \`config.log' for more details" "$LINENO" 5 ; }
5633 ac_ext=c
5634 ac_cpp='$CPP $CPPFLAGS'
5635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5641 $as_echo_n "checking for ANSI C header files... " >&6; }
5642 if test "${ac_cv_header_stdc+set}" = set; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647 #include <stdlib.h>
5648 #include <stdarg.h>
5649 #include <string.h>
5650 #include <float.h>
5653 main ()
5657 return 0;
5659 _ACEOF
5660 if ac_fn_c_try_compile "$LINENO"; then :
5661 ac_cv_header_stdc=yes
5662 else
5663 ac_cv_header_stdc=no
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667 if test $ac_cv_header_stdc = yes; then
5668 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 #include <string.h>
5673 _ACEOF
5674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5675 $EGREP "memchr" >/dev/null 2>&1; then :
5677 else
5678 ac_cv_header_stdc=no
5680 rm -f conftest*
5684 if test $ac_cv_header_stdc = yes; then
5685 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 #include <stdlib.h>
5690 _ACEOF
5691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5692 $EGREP "free" >/dev/null 2>&1; then :
5694 else
5695 ac_cv_header_stdc=no
5697 rm -f conftest*
5701 if test $ac_cv_header_stdc = yes; then
5702 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5703 if test "$cross_compiling" = yes; then :
5705 else
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 #include <ctype.h>
5709 #include <stdlib.h>
5710 #if ((' ' & 0x0FF) == 0x020)
5711 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5712 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5713 #else
5714 # define ISLOWER(c) \
5715 (('a' <= (c) && (c) <= 'i') \
5716 || ('j' <= (c) && (c) <= 'r') \
5717 || ('s' <= (c) && (c) <= 'z'))
5718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5719 #endif
5721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5723 main ()
5725 int i;
5726 for (i = 0; i < 256; i++)
5727 if (XOR (islower (i), ISLOWER (i))
5728 || toupper (i) != TOUPPER (i))
5729 return 2;
5730 return 0;
5732 _ACEOF
5733 if ac_fn_c_try_run "$LINENO"; then :
5735 else
5736 ac_cv_header_stdc=no
5738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5739 conftest.$ac_objext conftest.beam conftest.$ac_ext
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5745 $as_echo "$ac_cv_header_stdc" >&6; }
5746 if test $ac_cv_header_stdc = yes; then
5748 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5752 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5753 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5754 inttypes.h stdint.h unistd.h
5755 do :
5756 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5757 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5759 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5760 cat >>confdefs.h <<_ACEOF
5761 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5762 _ACEOF
5766 done
5769 for ac_header in \
5770 AL/al.h \
5771 AudioToolbox/AudioConverter.h \
5772 AudioUnit/AudioUnit.h \
5773 CL/cl.h \
5774 Carbon/Carbon.h \
5775 CoreAudio/CoreAudio.h \
5776 DiskArbitration/DiskArbitration.h \
5777 IOKit/IOKitLib.h \
5778 IOKit/hid/IOHIDLib.h \
5779 OpenAL/al.h \
5780 OpenCL/opencl.h \
5781 alias.h \
5782 alsa/asoundlib.h \
5783 arpa/inet.h \
5784 arpa/nameser.h \
5785 asm/types.h \
5786 capi20.h \
5787 curses.h \
5788 direct.h \
5789 dirent.h \
5790 dlfcn.h \
5791 elf.h \
5792 float.h \
5793 fnmatch.h \
5794 fontconfig/fontconfig.h \
5795 getopt.h \
5796 gettext-po.h \
5797 grp.h \
5798 gsm.h \
5799 gsm/gsm.h \
5800 icns.h \
5801 ieeefp.h \
5802 inet/mib2.h \
5803 io.h \
5804 jack/jack.h \
5805 jpeglib.h \
5806 kstat.h \
5807 lber.h \
5808 lcms.h \
5809 lcms/lcms.h \
5810 ldap.h \
5811 link.h \
5812 linux/cdrom.h \
5813 linux/compiler.h \
5814 linux/hdreg.h \
5815 linux/input.h \
5816 linux/ioctl.h \
5817 linux/joystick.h \
5818 linux/major.h \
5819 linux/param.h \
5820 linux/serial.h \
5821 linux/types.h \
5822 linux/ucdrom.h \
5823 mach-o/nlist.h \
5824 mach-o/loader.h \
5825 mach/mach.h \
5826 mach/machine.h \
5827 machine/cpu.h \
5828 machine/limits.h \
5829 machine/soundcard.h \
5830 machine/sysarch.h \
5831 mntent.h \
5832 mpg123.h \
5833 ncurses.h \
5834 netdb.h \
5835 netinet/in.h \
5836 netinet/in_systm.h \
5837 netinet/tcp.h \
5838 netinet/tcp_fsm.h \
5839 openssl/err.h \
5840 openssl/ssl.h \
5841 png.h \
5842 poll.h \
5843 port.h \
5844 process.h \
5845 pthread.h \
5846 pwd.h \
5847 regex.h \
5848 sched.h \
5849 scsi/scsi.h \
5850 scsi/scsi_ioctl.h \
5851 scsi/sg.h \
5852 soundcard.h \
5853 stdbool.h \
5854 stdint.h \
5855 strings.h \
5856 stropts.h \
5857 sys/asoundlib.h \
5858 sys/cdio.h \
5859 sys/elf32.h \
5860 sys/epoll.h \
5861 sys/errno.h \
5862 sys/event.h \
5863 sys/exec_elf.h \
5864 sys/filio.h \
5865 sys/inotify.h \
5866 sys/ioctl.h \
5867 sys/ipc.h \
5868 sys/limits.h \
5869 sys/link.h \
5870 sys/mman.h \
5871 sys/modem.h \
5872 sys/msg.h \
5873 sys/mtio.h \
5874 sys/param.h \
5875 sys/poll.h \
5876 sys/prctl.h \
5877 sys/protosw.h \
5878 sys/ptrace.h \
5879 sys/resource.h \
5880 sys/scsiio.h \
5881 sys/shm.h \
5882 sys/signal.h \
5883 sys/socket.h \
5884 sys/socketvar.h \
5885 sys/sockio.h \
5886 sys/soundcard.h \
5887 sys/statvfs.h \
5888 sys/strtio.h \
5889 sys/syscall.h \
5890 sys/tihdr.h \
5891 sys/time.h \
5892 sys/timeout.h \
5893 sys/times.h \
5894 sys/uio.h \
5895 sys/un.h \
5896 sys/utsname.h \
5897 sys/vm86.h \
5898 sys/wait.h \
5899 syscall.h \
5900 termios.h \
5901 tiffio.h \
5902 unistd.h \
5903 utime.h \
5904 valgrind/memcheck.h \
5905 valgrind/valgrind.h \
5906 zlib.h
5908 do :
5909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5910 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5911 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5912 cat >>confdefs.h <<_ACEOF
5913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5914 _ACEOF
5918 done
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5921 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5922 if test "${ac_cv_header_stat_broken+set}" = set; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5927 #include <sys/types.h>
5928 #include <sys/stat.h>
5930 #if defined S_ISBLK && defined S_IFDIR
5931 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5932 #endif
5934 #if defined S_ISBLK && defined S_IFCHR
5935 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5936 #endif
5938 #if defined S_ISLNK && defined S_IFREG
5939 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5940 #endif
5942 #if defined S_ISSOCK && defined S_IFREG
5943 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5944 #endif
5946 _ACEOF
5947 if ac_fn_c_try_compile "$LINENO"; then :
5948 ac_cv_header_stat_broken=no
5949 else
5950 ac_cv_header_stat_broken=yes
5952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5955 $as_echo "$ac_cv_header_stat_broken" >&6; }
5956 if test $ac_cv_header_stat_broken = yes; then
5958 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5964 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5965 do :
5966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5967 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5968 #ifdef HAVE_SYS_PARAM_H
5969 # include <sys/param.h>
5970 #endif
5972 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5973 cat >>confdefs.h <<_ACEOF
5974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5975 _ACEOF
5979 done
5982 for ac_header in \
5983 netinet/ip.h \
5984 net/if.h \
5985 net/if_arp.h \
5986 net/if_dl.h \
5987 net/if_types.h \
5988 net/route.h \
5989 netinet/if_ether.h \
5990 netinet/if_inarp.h \
5991 netinet/in_pcb.h \
5992 netinet/ip_icmp.h \
5993 netinet/ip_var.h \
5994 netinet/udp.h \
5995 netipx/ipx.h \
5997 do :
5998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5999 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6000 #ifdef HAVE_SYS_SOCKET_H
6001 # include <sys/socket.h>
6002 #endif
6003 #ifdef HAVE_SYS_SOCKETVAR_H
6004 # include <sys/socketvar.h>
6005 #endif
6006 #ifdef HAVE_NET_ROUTE_H
6007 # include <net/route.h>
6008 #endif
6009 #ifdef HAVE_NETINET_IN_H
6010 # include <netinet/in.h>
6011 #endif
6012 #ifdef HAVE_NETINET_IN_SYSTM_H
6013 # include <netinet/in_systm.h>
6014 #endif
6015 #ifdef HAVE_NET_IF_H
6016 # include <net/if.h>
6017 #endif
6018 #ifdef HAVE_NETINET_IP_H
6019 # include <netinet/ip.h>
6020 #endif
6022 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6023 cat >>confdefs.h <<_ACEOF
6024 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6025 _ACEOF
6029 done
6032 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6033 do :
6034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6035 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6036 #ifdef HAVE_ALIAS_H
6037 # include <alias.h>
6038 #endif
6039 #ifdef HAVE_SYS_SOCKET_H
6040 # include <sys/socket.h>
6041 #endif
6042 #ifdef HAVE_SYS_SOCKETVAR_H
6043 # include <sys/socketvar.h>
6044 #endif
6045 #ifdef HAVE_SYS_TIMEOUT_H
6046 # include <sys/timeout.h>
6047 #endif
6048 #ifdef HAVE_NETINET_IN_H
6049 # include <netinet/in.h>
6050 #endif
6051 #ifdef HAVE_NETINET_IN_SYSTM_H
6052 # include <netinet/in_systm.h>
6053 #endif
6054 #ifdef HAVE_NETINET_IP_H
6055 # include <netinet/ip.h>
6056 #endif
6057 #ifdef HAVE_NETINET_IP_VAR_H
6058 # include <netinet/ip_var.h>
6059 #endif
6060 #ifdef HAVE_NETINET_IP_ICMP_H
6061 # include <netinet/ip_icmp.h>
6062 #endif
6063 #ifdef HAVE_NETINET_UDP_H
6064 # include <netinet/udp.h>
6065 #endif
6066 #ifdef HAVE_NETINET_TCP_H
6067 # include <netinet/tcp.h>
6068 #endif
6069 #ifdef HAVE_NETINET_TCP_TIMER_H
6070 #include <netinet/tcp_timer.h>
6071 #endif
6073 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6074 cat >>confdefs.h <<_ACEOF
6075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6076 _ACEOF
6080 done
6083 for ac_header in linux/ipx.h linux/irda.h
6084 do :
6085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6086 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6087 #ifdef HAVE_ASM_TYPES_H
6088 # include <asm/types.h>
6089 #endif
6090 #ifdef HAVE_SYS_SOCKET_H
6091 # include <sys/socket.h>
6092 #endif
6093 #ifdef HAVE_LINUX_TYPES_H
6094 # include <linux/types.h>
6095 #endif
6097 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6098 cat >>confdefs.h <<_ACEOF
6099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6100 _ACEOF
6104 done
6107 for ac_header in mach-o/dyld_images.h
6108 do :
6109 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6110 # include <stdbool.h>
6111 #endif
6112 #ifdef HAVE_STDINT_H
6113 # include <stdint.h>
6114 #endif
6116 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6117 cat >>confdefs.h <<_ACEOF
6118 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6119 _ACEOF
6123 done
6126 for ac_header in resolv.h
6127 do :
6128 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6129 #ifdef HAVE_SYS_SOCKET_H
6130 # include <sys/socket.h>
6131 #endif
6132 #ifdef HAVE_NETINET_IN_H
6133 # include <netinet/in.h>
6134 #endif
6135 #ifdef HAVE_ARPA_NAMESER_H
6136 # include <arpa/nameser.h>
6137 #endif
6139 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6140 cat >>confdefs.h <<_ACEOF
6141 #define HAVE_RESOLV_H 1
6142 _ACEOF
6146 done
6149 for ac_header in ifaddrs.h
6150 do :
6151 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6153 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6154 cat >>confdefs.h <<_ACEOF
6155 #define HAVE_IFADDRS_H 1
6156 _ACEOF
6160 done
6163 for ac_header in ucontext.h
6164 do :
6165 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6167 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6168 cat >>confdefs.h <<_ACEOF
6169 #define HAVE_UCONTEXT_H 1
6170 _ACEOF
6174 done
6177 for ac_header in sys/thr.h
6178 do :
6179 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6180 #ifdef HAVE_UCONTEXT_H
6181 #include <ucontext.h>
6182 #endif
6184 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6185 cat >>confdefs.h <<_ACEOF
6186 #define HAVE_SYS_THR_H 1
6187 _ACEOF
6191 done
6194 for ac_header in pthread_np.h
6195 do :
6196 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6197 #include <pthread.h>
6198 #endif
6200 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6201 cat >>confdefs.h <<_ACEOF
6202 #define HAVE_PTHREAD_NP_H 1
6203 _ACEOF
6207 done
6210 for ac_header in linux/videodev.h
6211 do :
6212 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6213 #include <sys/time.h>
6214 #endif
6215 #include <sys/types.h>
6216 #ifdef HAVE_ASM_TYPES_H
6217 #include <asm/types.h>
6218 #endif
6220 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6221 cat >>confdefs.h <<_ACEOF
6222 #define HAVE_LINUX_VIDEODEV_H 1
6223 _ACEOF
6227 done
6230 for ac_header in linux/capi.h
6231 do :
6232 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6234 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6235 cat >>confdefs.h <<_ACEOF
6236 #define HAVE_LINUX_CAPI_H 1
6237 _ACEOF
6241 done
6245 DLLEXT=""
6247 DLLFLAGS="-D_REENTRANT"
6249 LDSHARED=""
6251 LDDLLFLAGS=""
6253 LIBEXT="so"
6255 IMPLIBEXT="def"
6257 LDRPATH_INSTALL=""
6259 LDRPATH_LOCAL=""
6261 STATIC_IMPLIBEXT="def.a"
6262 # Extract the first word of "ldd", so it can be a program name with args.
6263 set dummy ldd; ac_word=$2
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if test "${ac_cv_path_LDD+set}" = set; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 case $LDD in
6270 [\\/]* | ?:[\\/]*)
6271 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 as_dummy="/sbin:/usr/sbin:$PATH"
6276 for as_dir in $as_dummy
6278 IFS=$as_save_IFS
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6282 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 break 2
6286 done
6287 done
6288 IFS=$as_save_IFS
6290 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6292 esac
6294 LDD=$ac_cv_path_LDD
6295 if test -n "$LDD"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6297 $as_echo "$LDD" >&6; }
6298 else
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6305 case $host_os in
6306 cygwin*|mingw32*)
6307 if test -n "$ac_tool_prefix"; then
6308 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6309 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 if test -n "$DLLTOOL"; then
6316 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6321 IFS=$as_save_IFS
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 break 2
6329 done
6330 done
6331 IFS=$as_save_IFS
6335 DLLTOOL=$ac_cv_prog_DLLTOOL
6336 if test -n "$DLLTOOL"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6338 $as_echo "$DLLTOOL" >&6; }
6339 else
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6346 if test -z "$ac_cv_prog_DLLTOOL"; then
6347 ac_ct_DLLTOOL=$DLLTOOL
6348 # Extract the first word of "dlltool", so it can be a program name with args.
6349 set dummy dlltool; ac_word=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 if test -n "$ac_ct_DLLTOOL"; then
6356 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6357 else
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6361 IFS=$as_save_IFS
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6365 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 break 2
6369 done
6370 done
6371 IFS=$as_save_IFS
6375 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6376 if test -n "$ac_ct_DLLTOOL"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6378 $as_echo "$ac_ct_DLLTOOL" >&6; }
6379 else
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6384 if test "x$ac_ct_DLLTOOL" = x; then
6385 DLLTOOL="false"
6386 else
6387 case $cross_compiling:$ac_tool_warned in
6388 yes:)
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6391 ac_tool_warned=yes ;;
6392 esac
6393 DLLTOOL=$ac_ct_DLLTOOL
6395 else
6396 DLLTOOL="$ac_cv_prog_DLLTOOL"
6399 if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 if test -n "$DLLWRAP"; then
6408 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6409 else
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6413 IFS=$as_save_IFS
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 break 2
6421 done
6422 done
6423 IFS=$as_save_IFS
6427 DLLWRAP=$ac_cv_prog_DLLWRAP
6428 if test -n "$DLLWRAP"; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6430 $as_echo "$DLLWRAP" >&6; }
6431 else
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 $as_echo "no" >&6; }
6438 if test -z "$ac_cv_prog_DLLWRAP"; then
6439 ac_ct_DLLWRAP=$DLLWRAP
6440 # Extract the first word of "dllwrap", so it can be a program name with args.
6441 set dummy dllwrap; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 if test -n "$ac_ct_DLLWRAP"; then
6448 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 break 2
6461 done
6462 done
6463 IFS=$as_save_IFS
6467 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6468 if test -n "$ac_ct_DLLWRAP"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6470 $as_echo "$ac_ct_DLLWRAP" >&6; }
6471 else
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6476 if test "x$ac_ct_DLLWRAP" = x; then
6477 DLLWRAP="false"
6478 else
6479 case $cross_compiling:$ac_tool_warned in
6480 yes:)
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6484 esac
6485 DLLWRAP=$ac_ct_DLLWRAP
6487 else
6488 DLLWRAP="$ac_cv_prog_DLLWRAP"
6491 if test "$DLLWRAP" = "false"; then
6492 LIBEXT="a"
6493 else
6494 LIBEXT="dll"
6496 IMPLIBEXT="a"
6497 STATIC_IMPLIBEXT="a"
6498 enable_iphlpapi=${enable_iphlpapi:-no}
6499 enable_kernel32=${enable_kernel32:-no}
6500 enable_msvcrt=${enable_msvcrt:-no}
6501 enable_ntdll=${enable_ntdll:-no}
6502 enable_ws2_32=${enable_ws2_32:-no}
6503 enable_loader=${enable_loader:-no}
6504 enable_server=${enable_server:-no}
6505 with_x=${with_x:-no}
6506 with_pthread=${with_pthread:-no}
6508 darwin*|macosx*)
6509 DLLEXT=".so"
6510 LIBEXT="dylib"
6511 DLLFLAGS="$DLLFLAGS -fPIC"
6512 LDDLLFLAGS="-bundle -multiply_defined suppress"
6513 LIBWINE_LDFLAGS="-multiply_defined suppress"
6514 LDSHARED="\$(CC) -dynamiclib"
6515 STRIP="$STRIP -x"
6516 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6517 SECURITYLIB="-framework Security -framework CoreFoundation"
6519 COREFOUNDATIONLIB="-framework CoreFoundation"
6521 IOKITLIB="-framework IOKit -framework CoreFoundation"
6523 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6525 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6527 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6528 then
6529 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6532 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6533 then
6534 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6537 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6538 then
6539 FRAMEWORK_OPENAL="-framework OpenAL"
6542 cat >>confdefs.h <<_ACEOF
6543 #define HAVE_OPENAL 1
6544 _ACEOF
6546 ac_cv_lib_openal=yes
6548 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6549 then
6550 LIBOPENCL="-framework OpenCL"
6552 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6554 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6555 then
6556 ac_save_LIBS="$LIBS"
6557 LIBS="$LIBS $IOKITLIB"
6558 for ac_func in IOHIDManagerCreate
6559 do :
6560 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6561 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6562 cat >>confdefs.h <<_ACEOF
6563 #define HAVE_IOHIDMANAGERCREATE 1
6564 _ACEOF
6567 done
6569 LIBS="$ac_save_LIBS"
6571 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6572 case $host_cpu in
6573 *powerpc*)
6574 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6575 esac
6576 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6577 then
6578 CARBONLIB="-framework Carbon"
6580 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6582 if test "x$enable_win16" = "xyes"
6583 then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6585 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6586 if test "$cross_compiling" = yes; then :
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6588 $as_echo "cross-compiling, assuming yes" >&6; }
6589 else
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 asm(".text\n"
6593 "bad:\tnop;nop\n"
6594 "good:\tnop;nop\n\t"
6595 ".globl _testfunc\n"
6596 "_testfunc:\tcallw good");
6597 extern void testfunc();
6599 main ()
6601 unsigned short *p = (unsigned short *)testfunc;
6602 return p[0] != 0xe866 || p[1] != 0xfffa
6604 return 0;
6606 _ACEOF
6607 if ac_fn_c_try_run "$LINENO"; then :
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6609 $as_echo "yes" >&6; }
6610 else
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6613 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
6615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6616 conftest.$ac_objext conftest.beam conftest.$ac_ext
6622 DLLFLAGS="$DLLFLAGS -fPIC"
6623 DLLEXT=".so"
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6625 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6626 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 ac_wine_try_cflags_saved=$CFLAGS
6630 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6633 void myfunc() {}
6634 _ACEOF
6635 if ac_fn_c_try_link "$LINENO"; then :
6636 ac_cv_c_dll_gnuelf="yes"
6637 else
6638 ac_cv_c_dll_gnuelf="no"
6640 rm -f core conftest.err conftest.$ac_objext \
6641 conftest$ac_exeext conftest.$ac_ext
6642 CFLAGS=$ac_wine_try_cflags_saved
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6645 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6646 if test "$ac_cv_c_dll_gnuelf" = "yes"
6647 then
6648 LDSHARED="\$(CC) -shared"
6649 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6651 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6652 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6653 $as_echo_n "(cached) " >&6
6654 else
6655 ac_wine_try_cflags_saved=$CFLAGS
6656 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 int main(int argc, char **argv) { return 0; }
6660 _ACEOF
6661 if ac_fn_c_try_link "$LINENO"; then :
6662 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6663 else
6664 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6666 rm -f core conftest.err conftest.$ac_objext \
6667 conftest$ac_exeext conftest.$ac_ext
6668 CFLAGS=$ac_wine_try_cflags_saved
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6671 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6672 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6673 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6674 else
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6676 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6677 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 ac_wine_try_cflags_saved=$CFLAGS
6681 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 int main(int argc, char **argv) { return 0; }
6685 _ACEOF
6686 if ac_fn_c_try_link "$LINENO"; then :
6687 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6688 else
6689 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6691 rm -f core conftest.err conftest.$ac_objext \
6692 conftest$ac_exeext conftest.$ac_ext
6693 CFLAGS=$ac_wine_try_cflags_saved
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6696 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6697 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6698 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6703 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6704 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 ac_wine_try_cflags_saved=$CFLAGS
6708 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6711 int main(int argc, char **argv) { return 0; }
6712 _ACEOF
6713 if ac_fn_c_try_link "$LINENO"; then :
6714 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6715 else
6716 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6718 rm -f core conftest.err conftest.$ac_objext \
6719 conftest$ac_exeext conftest.$ac_ext
6720 CFLAGS=$ac_wine_try_cflags_saved
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6723 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6724 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6725 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6728 { $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
6729 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6730 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 ac_wine_try_cflags_saved=$CFLAGS
6734 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737 int main(int argc, char **argv) { return 0; }
6738 _ACEOF
6739 if ac_fn_c_try_link "$LINENO"; then :
6740 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6741 else
6742 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6744 rm -f core conftest.err conftest.$ac_objext \
6745 conftest$ac_exeext conftest.$ac_ext
6746 CFLAGS=$ac_wine_try_cflags_saved
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6749 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6750 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6751 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6754 echo '{ global: *; };' >conftest.map
6755 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6757 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6758 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 ac_wine_try_cflags_saved=$CFLAGS
6762 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765 int main(int argc, char **argv) { return 0; }
6766 _ACEOF
6767 if ac_fn_c_try_link "$LINENO"; then :
6768 eval "$as_ac_var=yes"
6769 else
6770 eval "$as_ac_var=no"
6772 rm -f core conftest.err conftest.$ac_objext \
6773 conftest$ac_exeext conftest.$ac_ext
6774 CFLAGS=$ac_wine_try_cflags_saved
6776 eval ac_res=\$$as_ac_var
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6778 $as_echo "$ac_res" >&6; }
6779 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6780 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6782 rm -f conftest.map
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6785 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6786 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 ac_wine_try_cflags_saved=$CFLAGS
6790 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6793 int main(int argc, char **argv) { return 0; }
6794 _ACEOF
6795 if ac_fn_c_try_link "$LINENO"; then :
6796 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6797 else
6798 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6800 rm -f core conftest.err conftest.$ac_objext \
6801 conftest$ac_exeext conftest.$ac_ext
6802 CFLAGS=$ac_wine_try_cflags_saved
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6805 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6806 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6807 LDEXECFLAGS="-Wl,--export-dynamic"
6811 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6813 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6814 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 ac_wine_try_cflags_saved=$CFLAGS
6818 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6821 int main(int argc, char **argv) { return 0; }
6822 _ACEOF
6823 if ac_fn_c_try_link "$LINENO"; then :
6824 eval "$as_ac_var=yes"
6825 else
6826 eval "$as_ac_var=no"
6828 rm -f core conftest.err conftest.$ac_objext \
6829 conftest$ac_exeext conftest.$ac_ext
6830 CFLAGS=$ac_wine_try_cflags_saved
6832 eval ac_res=\$$as_ac_var
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6834 $as_echo "$ac_res" >&6; }
6835 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6836 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6837 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6838 else
6839 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6841 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6842 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 ac_wine_try_cflags_saved=$CFLAGS
6846 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849 int main(int argc, char **argv) { return 0; }
6850 _ACEOF
6851 if ac_fn_c_try_link "$LINENO"; then :
6852 eval "$as_ac_var=yes"
6853 else
6854 eval "$as_ac_var=no"
6856 rm -f core conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6858 CFLAGS=$ac_wine_try_cflags_saved
6860 eval ac_res=\$$as_ac_var
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6862 $as_echo "$ac_res" >&6; }
6863 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6864 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6865 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6870 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6871 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 ac_wine_try_cflags_saved=$CFLAGS
6875 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6878 int main(int argc, char **argv) { return 0; }
6879 _ACEOF
6880 if ac_fn_c_try_link "$LINENO"; then :
6881 ac_cv_cflags__Wl___enable_new_dtags=yes
6882 else
6883 ac_cv_cflags__Wl___enable_new_dtags=no
6885 rm -f core conftest.err conftest.$ac_objext \
6886 conftest$ac_exeext conftest.$ac_ext
6887 CFLAGS=$ac_wine_try_cflags_saved
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6890 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6891 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6892 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6895 case $host_cpu in
6896 *i[3456789]86* | x86_64)
6897 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6899 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6900 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 ac_wine_try_cflags_saved=$CFLAGS
6904 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6907 int main(int argc, char **argv) { return 0; }
6908 _ACEOF
6909 if ac_fn_c_try_link "$LINENO"; then :
6910 eval "$as_ac_var=yes"
6911 else
6912 eval "$as_ac_var=no"
6914 rm -f core conftest.err conftest.$ac_objext \
6915 conftest$ac_exeext conftest.$ac_ext
6916 CFLAGS=$ac_wine_try_cflags_saved
6918 eval ac_res=\$$as_ac_var
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6920 $as_echo "$ac_res" >&6; }
6921 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6922 case $host_os in
6923 freebsd*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6924 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6925 esac
6928 # Extract the first word of "prelink", so it can be a program name with args.
6929 set dummy prelink; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if test "${ac_cv_path_PRELINK+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 case $PRELINK in
6936 [\\/]* | ?:[\\/]*)
6937 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in /sbin /usr/sbin $PATH
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6947 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 break 2
6951 done
6952 done
6953 IFS=$as_save_IFS
6955 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6957 esac
6959 PRELINK=$ac_cv_path_PRELINK
6960 if test -n "$PRELINK"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6962 $as_echo "$PRELINK" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6969 if test "x$PRELINK" = xfalse
6970 then
6971 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6974 esac
6976 else
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6978 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6979 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 ac_wine_try_cflags_saved=$CFLAGS
6983 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6986 void myfunc() {}
6987 _ACEOF
6988 if ac_fn_c_try_link "$LINENO"; then :
6989 ac_cv_c_dll_unixware="yes"
6990 else
6991 ac_cv_c_dll_unixware="no"
6993 rm -f core conftest.err conftest.$ac_objext \
6994 conftest$ac_exeext conftest.$ac_ext
6995 CFLAGS=$ac_wine_try_cflags_saved
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6998 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6999 if test "$ac_cv_c_dll_unixware" = "yes"
7000 then
7001 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7002 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7004 else
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7006 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7007 if test "${ac_cv_c_dll_hpux+set}" = set; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 ac_wine_try_cflags_saved=$CFLAGS
7011 CFLAGS="$CFLAGS -shared"
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7014 void myfunc() {}
7015 _ACEOF
7016 if ac_fn_c_try_link "$LINENO"; then :
7017 ac_cv_c_dll_hpux="yes"
7018 else
7019 ac_cv_c_dll_hpux="no"
7021 rm -f core conftest.err conftest.$ac_objext \
7022 conftest$ac_exeext conftest.$ac_ext
7023 CFLAGS=$ac_wine_try_cflags_saved
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7026 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7027 if test "$ac_cv_c_dll_hpux" = "yes"
7028 then
7029 LIBEXT="sl"
7030 DLLEXT=".sl"
7031 LDDLLFLAGS="-shared -fPIC"
7032 LDSHARED="\$(CC) -shared"
7037 esac
7039 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7040 enable_winequartz_drv=${enable_winequartz_drv:-no}
7042 if test "$LIBEXT" = "a"; then
7043 as_fn_error $? "could not find a way to build shared libraries.
7044 It is currently not possible to build Wine without shared library
7045 (.so) support to allow transparent switch between .so and .dll files.
7046 If you are using Linux, you will need a newer binutils.
7047 " "$LINENO" 5
7050 CROSSTEST_DISABLE=\#
7052 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7053 then
7054 case "$host_cpu" in
7055 i[3456789]86*)
7056 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 " ;;
7057 x86_64)
7058 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 " ;;
7060 ac_prefix_list="" ;;
7061 esac
7062 for ac_prog in $ac_prefix_list
7064 # Extract the first word of "$ac_prog", so it can be a program name with args.
7065 set dummy $ac_prog; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 if test -n "$CROSSCC"; then
7072 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081 ac_cv_prog_CROSSCC="$ac_prog"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7085 done
7086 done
7087 IFS=$as_save_IFS
7091 CROSSCC=$ac_cv_prog_CROSSCC
7092 if test -n "$CROSSCC"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7094 $as_echo "$CROSSCC" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7101 test -n "$CROSSCC" && break
7102 done
7103 test -n "$CROSSCC" || CROSSCC="false"
7105 if test "$CROSSCC" != "false"
7106 then
7107 ac_save_CC="$CC"
7108 CC="$CROSSCC"
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7110 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7115 main ()
7119 return 0;
7121 _ACEOF
7122 if ac_fn_c_try_compile "$LINENO"; then :
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7124 $as_echo "yes" >&6; }
7125 set x $CROSSCC
7126 shift
7127 target=""
7128 while test $# -ge 1
7130 case "$1" in
7131 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7132 esac
7133 shift
7134 done
7135 if test -n "$target"
7136 then
7137 CROSSTEST_DISABLE=""
7138 CROSSTARGET="$target"
7141 else
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 CC="$ac_save_CC"
7151 if test "$ac_cv_header_pthread_h" = "yes"
7152 then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7154 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7155 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 ac_check_lib_save_LIBS=$LIBS
7159 LIBS="-lpthread $LIBS"
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7163 /* Override any GCC internal prototype to avoid an error.
7164 Use char because int might match the return type of a GCC
7165 builtin and then its argument prototype would still apply. */
7166 #ifdef __cplusplus
7167 extern "C"
7168 #endif
7169 char pthread_create ();
7171 main ()
7173 return pthread_create ();
7175 return 0;
7177 _ACEOF
7178 if ac_fn_c_try_link "$LINENO"; then :
7179 ac_cv_lib_pthread_pthread_create=yes
7180 else
7181 ac_cv_lib_pthread_pthread_create=no
7183 rm -f core conftest.err conftest.$ac_objext \
7184 conftest$ac_exeext conftest.$ac_ext
7185 LIBS=$ac_check_lib_save_LIBS
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7188 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7189 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7190 LIBPTHREAD="-lpthread"
7195 if test "x$LIBPTHREAD" = "x"; then :
7196 case "x$with_pthread" in
7197 xno) ;;
7198 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7199 Wine cannot support threads without libpthread.
7200 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7201 esac
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7206 $as_echo_n "checking for X... " >&6; }
7209 # Check whether --with-x was given.
7210 if test "${with_x+set}" = set; then :
7211 withval=$with_x;
7214 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7215 if test "x$with_x" = xno; then
7216 # The user explicitly disabled X.
7217 have_x=disabled
7218 else
7219 case $x_includes,$x_libraries in #(
7220 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
7221 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7222 $as_echo_n "(cached) " >&6
7223 else
7224 # One or both of the vars are not set, and there is no cached value.
7225 ac_x_includes=no ac_x_libraries=no
7226 rm -f -r conftest.dir
7227 if mkdir conftest.dir; then
7228 cd conftest.dir
7229 cat >Imakefile <<'_ACEOF'
7230 incroot:
7231 @echo incroot='${INCROOT}'
7232 usrlibdir:
7233 @echo usrlibdir='${USRLIBDIR}'
7234 libdir:
7235 @echo libdir='${LIBDIR}'
7236 _ACEOF
7237 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7238 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7239 for ac_var in incroot usrlibdir libdir; do
7240 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7241 done
7242 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7243 for ac_extension in a so sl dylib la dll; do
7244 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7245 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7246 ac_im_usrlibdir=$ac_im_libdir; break
7248 done
7249 # Screen out bogus values from the imake configuration. They are
7250 # bogus both because they are the default anyway, and because
7251 # using them would break gcc on systems where it needs fixed includes.
7252 case $ac_im_incroot in
7253 /usr/include) ac_x_includes= ;;
7254 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7255 esac
7256 case $ac_im_usrlibdir in
7257 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7258 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7259 esac
7261 cd ..
7262 rm -f -r conftest.dir
7265 # Standard set of common directories for X headers.
7266 # Check X11 before X11Rn because it is often a symlink to the current release.
7267 ac_x_header_dirs='
7268 /usr/X11/include
7269 /usr/X11R7/include
7270 /usr/X11R6/include
7271 /usr/X11R5/include
7272 /usr/X11R4/include
7274 /usr/include/X11
7275 /usr/include/X11R7
7276 /usr/include/X11R6
7277 /usr/include/X11R5
7278 /usr/include/X11R4
7280 /usr/local/X11/include
7281 /usr/local/X11R7/include
7282 /usr/local/X11R6/include
7283 /usr/local/X11R5/include
7284 /usr/local/X11R4/include
7286 /usr/local/include/X11
7287 /usr/local/include/X11R7
7288 /usr/local/include/X11R6
7289 /usr/local/include/X11R5
7290 /usr/local/include/X11R4
7292 /usr/X386/include
7293 /usr/x386/include
7294 /usr/XFree86/include/X11
7296 /usr/include
7297 /usr/local/include
7298 /usr/unsupported/include
7299 /usr/athena/include
7300 /usr/local/x11r5/include
7301 /usr/lpp/Xamples/include
7303 /usr/openwin/include
7304 /usr/openwin/share/include'
7306 if test "$ac_x_includes" = no; then
7307 # Guess where to find include files, by looking for Xlib.h.
7308 # First, try using that file with no special directory specified.
7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7311 #include <X11/Xlib.h>
7312 _ACEOF
7313 if ac_fn_c_try_cpp "$LINENO"; then :
7314 # We can compile using X headers with no special include directory.
7315 ac_x_includes=
7316 else
7317 for ac_dir in $ac_x_header_dirs; do
7318 if test -r "$ac_dir/X11/Xlib.h"; then
7319 ac_x_includes=$ac_dir
7320 break
7322 done
7324 rm -f conftest.err conftest.i conftest.$ac_ext
7325 fi # $ac_x_includes = no
7327 if test "$ac_x_libraries" = no; then
7328 # Check for the libraries.
7329 # See if we find them without any special options.
7330 # Don't add to $LIBS permanently.
7331 ac_save_LIBS=$LIBS
7332 LIBS="-lX11 $LIBS"
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7335 #include <X11/Xlib.h>
7337 main ()
7339 XrmInitialize ()
7341 return 0;
7343 _ACEOF
7344 if ac_fn_c_try_link "$LINENO"; then :
7345 LIBS=$ac_save_LIBS
7346 # We can link X programs with no special library path.
7347 ac_x_libraries=
7348 else
7349 LIBS=$ac_save_LIBS
7350 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7352 # Don't even attempt the hair of trying to link an X program!
7353 for ac_extension in a so sl dylib la dll; do
7354 if test -r "$ac_dir/libX11.$ac_extension"; then
7355 ac_x_libraries=$ac_dir
7356 break 2
7358 done
7359 done
7361 rm -f core conftest.err conftest.$ac_objext \
7362 conftest$ac_exeext conftest.$ac_ext
7363 fi # $ac_x_libraries = no
7365 case $ac_x_includes,$ac_x_libraries in #(
7366 no,* | *,no | *\'*)
7367 # Didn't find X, or a directory has "'" in its name.
7368 ac_cv_have_x="have_x=no";; #(
7370 # Record where we found X for the cache.
7371 ac_cv_have_x="have_x=yes\
7372 ac_x_includes='$ac_x_includes'\
7373 ac_x_libraries='$ac_x_libraries'"
7374 esac
7376 ;; #(
7377 *) have_x=yes;;
7378 esac
7379 eval "$ac_cv_have_x"
7380 fi # $with_x != no
7382 if test "$have_x" != yes; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7384 $as_echo "$have_x" >&6; }
7385 no_x=yes
7386 else
7387 # If each of the values was on the command line, it overrides each guess.
7388 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7389 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7390 # Update the cache value to reflect the command line values.
7391 ac_cv_have_x="have_x=yes\
7392 ac_x_includes='$x_includes'\
7393 ac_x_libraries='$x_libraries'"
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7395 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7398 if test "$no_x" = yes; then
7399 # Not all programs may use this symbol, but it does not hurt to define it.
7401 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7403 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7404 else
7405 if test -n "$x_includes"; then
7406 X_CFLAGS="$X_CFLAGS -I$x_includes"
7409 # It would also be nice to do this for all -L options, not just this one.
7410 if test -n "$x_libraries"; then
7411 X_LIBS="$X_LIBS -L$x_libraries"
7412 # For Solaris; some versions of Sun CC require a space after -R and
7413 # others require no space. Words are not sufficient . . . .
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7415 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7416 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7417 ac_xsave_c_werror_flag=$ac_c_werror_flag
7418 ac_c_werror_flag=yes
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7423 main ()
7427 return 0;
7429 _ACEOF
7430 if ac_fn_c_try_link "$LINENO"; then :
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7433 X_LIBS="$X_LIBS -R$x_libraries"
7434 else
7435 LIBS="$ac_xsave_LIBS -R $x_libraries"
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7440 main ()
7444 return 0;
7446 _ACEOF
7447 if ac_fn_c_try_link "$LINENO"; then :
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7449 $as_echo "yes" >&6; }
7450 X_LIBS="$X_LIBS -R $x_libraries"
7451 else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7453 $as_echo "neither works" >&6; }
7455 rm -f core conftest.err conftest.$ac_objext \
7456 conftest$ac_exeext conftest.$ac_ext
7458 rm -f core conftest.err conftest.$ac_objext \
7459 conftest$ac_exeext conftest.$ac_ext
7460 ac_c_werror_flag=$ac_xsave_c_werror_flag
7461 LIBS=$ac_xsave_LIBS
7464 # Check for system-dependent libraries X programs must link with.
7465 # Do this before checking for the system-independent R6 libraries
7466 # (-lICE), since we may need -lsocket or whatever for X linking.
7468 if test "$ISC" = yes; then
7469 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7470 else
7471 # Martyn Johnson says this is needed for Ultrix, if the X
7472 # libraries were built with DECnet support. And Karl Berry says
7473 # the Alpha needs dnet_stub (dnet does not exist).
7474 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7478 /* Override any GCC internal prototype to avoid an error.
7479 Use char because int might match the return type of a GCC
7480 builtin and then its argument prototype would still apply. */
7481 #ifdef __cplusplus
7482 extern "C"
7483 #endif
7484 char XOpenDisplay ();
7486 main ()
7488 return XOpenDisplay ();
7490 return 0;
7492 _ACEOF
7493 if ac_fn_c_try_link "$LINENO"; then :
7495 else
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7497 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7498 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 ac_check_lib_save_LIBS=$LIBS
7502 LIBS="-ldnet $LIBS"
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7506 /* Override any GCC internal prototype to avoid an error.
7507 Use char because int might match the return type of a GCC
7508 builtin and then its argument prototype would still apply. */
7509 #ifdef __cplusplus
7510 extern "C"
7511 #endif
7512 char dnet_ntoa ();
7514 main ()
7516 return dnet_ntoa ();
7518 return 0;
7520 _ACEOF
7521 if ac_fn_c_try_link "$LINENO"; then :
7522 ac_cv_lib_dnet_dnet_ntoa=yes
7523 else
7524 ac_cv_lib_dnet_dnet_ntoa=no
7526 rm -f core conftest.err conftest.$ac_objext \
7527 conftest$ac_exeext conftest.$ac_ext
7528 LIBS=$ac_check_lib_save_LIBS
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7531 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7532 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7533 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7536 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7538 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7539 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 ac_check_lib_save_LIBS=$LIBS
7543 LIBS="-ldnet_stub $LIBS"
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7547 /* Override any GCC internal prototype to avoid an error.
7548 Use char because int might match the return type of a GCC
7549 builtin and then its argument prototype would still apply. */
7550 #ifdef __cplusplus
7551 extern "C"
7552 #endif
7553 char dnet_ntoa ();
7555 main ()
7557 return dnet_ntoa ();
7559 return 0;
7561 _ACEOF
7562 if ac_fn_c_try_link "$LINENO"; then :
7563 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7564 else
7565 ac_cv_lib_dnet_stub_dnet_ntoa=no
7567 rm -f core conftest.err conftest.$ac_objext \
7568 conftest$ac_exeext conftest.$ac_ext
7569 LIBS=$ac_check_lib_save_LIBS
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7572 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7573 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7574 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7579 rm -f core conftest.err conftest.$ac_objext \
7580 conftest$ac_exeext conftest.$ac_ext
7581 LIBS="$ac_xsave_LIBS"
7583 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7584 # to get the SysV transport functions.
7585 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7586 # needs -lnsl.
7587 # The nsl library prevents programs from opening the X display
7588 # on Irix 5.2, according to T.E. Dickey.
7589 # The functions gethostbyname, getservbyname, and inet_addr are
7590 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7591 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7592 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7596 if test $ac_cv_func_gethostbyname = no; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7598 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7599 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7602 ac_check_lib_save_LIBS=$LIBS
7603 LIBS="-lnsl $LIBS"
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7607 /* Override any GCC internal prototype to avoid an error.
7608 Use char because int might match the return type of a GCC
7609 builtin and then its argument prototype would still apply. */
7610 #ifdef __cplusplus
7611 extern "C"
7612 #endif
7613 char gethostbyname ();
7615 main ()
7617 return gethostbyname ();
7619 return 0;
7621 _ACEOF
7622 if ac_fn_c_try_link "$LINENO"; then :
7623 ac_cv_lib_nsl_gethostbyname=yes
7624 else
7625 ac_cv_lib_nsl_gethostbyname=no
7627 rm -f core conftest.err conftest.$ac_objext \
7628 conftest$ac_exeext conftest.$ac_ext
7629 LIBS=$ac_check_lib_save_LIBS
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7632 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7633 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7634 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7637 if test $ac_cv_lib_nsl_gethostbyname = no; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7639 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7640 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643 ac_check_lib_save_LIBS=$LIBS
7644 LIBS="-lbsd $LIBS"
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7648 /* Override any GCC internal prototype to avoid an error.
7649 Use char because int might match the return type of a GCC
7650 builtin and then its argument prototype would still apply. */
7651 #ifdef __cplusplus
7652 extern "C"
7653 #endif
7654 char gethostbyname ();
7656 main ()
7658 return gethostbyname ();
7660 return 0;
7662 _ACEOF
7663 if ac_fn_c_try_link "$LINENO"; then :
7664 ac_cv_lib_bsd_gethostbyname=yes
7665 else
7666 ac_cv_lib_bsd_gethostbyname=no
7668 rm -f core conftest.err conftest.$ac_objext \
7669 conftest$ac_exeext conftest.$ac_ext
7670 LIBS=$ac_check_lib_save_LIBS
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7673 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7674 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7675 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7681 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7682 # socket/setsockopt and other routines are undefined under SCO ODT
7683 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7684 # on later versions), says Simon Leinen: it contains gethostby*
7685 # variants that don't use the name server (or something). -lsocket
7686 # must be given before -lnsl if both are needed. We assume that
7687 # if connect needs -lnsl, so does gethostbyname.
7688 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7689 if test "x$ac_cv_func_connect" = x""yes; then :
7693 if test $ac_cv_func_connect = no; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7695 $as_echo_n "checking for connect in -lsocket... " >&6; }
7696 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 ac_check_lib_save_LIBS=$LIBS
7700 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7704 /* Override any GCC internal prototype to avoid an error.
7705 Use char because int might match the return type of a GCC
7706 builtin and then its argument prototype would still apply. */
7707 #ifdef __cplusplus
7708 extern "C"
7709 #endif
7710 char connect ();
7712 main ()
7714 return connect ();
7716 return 0;
7718 _ACEOF
7719 if ac_fn_c_try_link "$LINENO"; then :
7720 ac_cv_lib_socket_connect=yes
7721 else
7722 ac_cv_lib_socket_connect=no
7724 rm -f core conftest.err conftest.$ac_objext \
7725 conftest$ac_exeext conftest.$ac_ext
7726 LIBS=$ac_check_lib_save_LIBS
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7729 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7730 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7731 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7736 # Guillermo Gomez says -lposix is necessary on A/UX.
7737 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7738 if test "x$ac_cv_func_remove" = x""yes; then :
7742 if test $ac_cv_func_remove = no; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7744 $as_echo_n "checking for remove in -lposix... " >&6; }
7745 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 ac_check_lib_save_LIBS=$LIBS
7749 LIBS="-lposix $LIBS"
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7753 /* Override any GCC internal prototype to avoid an error.
7754 Use char because int might match the return type of a GCC
7755 builtin and then its argument prototype would still apply. */
7756 #ifdef __cplusplus
7757 extern "C"
7758 #endif
7759 char remove ();
7761 main ()
7763 return remove ();
7765 return 0;
7767 _ACEOF
7768 if ac_fn_c_try_link "$LINENO"; then :
7769 ac_cv_lib_posix_remove=yes
7770 else
7771 ac_cv_lib_posix_remove=no
7773 rm -f core conftest.err conftest.$ac_objext \
7774 conftest$ac_exeext conftest.$ac_ext
7775 LIBS=$ac_check_lib_save_LIBS
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7778 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7779 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7780 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7785 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7786 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7787 if test "x$ac_cv_func_shmat" = x""yes; then :
7791 if test $ac_cv_func_shmat = no; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7793 $as_echo_n "checking for shmat in -lipc... " >&6; }
7794 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 ac_check_lib_save_LIBS=$LIBS
7798 LIBS="-lipc $LIBS"
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7802 /* Override any GCC internal prototype to avoid an error.
7803 Use char because int might match the return type of a GCC
7804 builtin and then its argument prototype would still apply. */
7805 #ifdef __cplusplus
7806 extern "C"
7807 #endif
7808 char shmat ();
7810 main ()
7812 return shmat ();
7814 return 0;
7816 _ACEOF
7817 if ac_fn_c_try_link "$LINENO"; then :
7818 ac_cv_lib_ipc_shmat=yes
7819 else
7820 ac_cv_lib_ipc_shmat=no
7822 rm -f core conftest.err conftest.$ac_objext \
7823 conftest$ac_exeext conftest.$ac_ext
7824 LIBS=$ac_check_lib_save_LIBS
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7827 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7828 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7829 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7835 # Check for libraries that X11R6 Xt/Xaw programs need.
7836 ac_save_LDFLAGS=$LDFLAGS
7837 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7838 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7839 # check for ICE first), but we must link in the order -lSM -lICE or
7840 # we get undefined symbols. So assume we have SM if we have ICE.
7841 # These have to be linked with before -lX11, unlike the other
7842 # libraries we check for below, so use a different variable.
7843 # John Interrante, Karl Berry
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7845 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7846 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 ac_check_lib_save_LIBS=$LIBS
7850 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7854 /* Override any GCC internal prototype to avoid an error.
7855 Use char because int might match the return type of a GCC
7856 builtin and then its argument prototype would still apply. */
7857 #ifdef __cplusplus
7858 extern "C"
7859 #endif
7860 char IceConnectionNumber ();
7862 main ()
7864 return IceConnectionNumber ();
7866 return 0;
7868 _ACEOF
7869 if ac_fn_c_try_link "$LINENO"; then :
7870 ac_cv_lib_ICE_IceConnectionNumber=yes
7871 else
7872 ac_cv_lib_ICE_IceConnectionNumber=no
7874 rm -f core conftest.err conftest.$ac_objext \
7875 conftest$ac_exeext conftest.$ac_ext
7876 LIBS=$ac_check_lib_save_LIBS
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7879 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7880 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7881 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7884 LDFLAGS=$ac_save_LDFLAGS
7889 if test "$have_x" = "yes"
7890 then
7891 XLIB="-lX11"
7892 ac_save_CPPFLAGS="$CPPFLAGS"
7893 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7896 $as_echo_n "checking for -lX11... " >&6; }
7897 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 ac_check_soname_save_LIBS=$LIBS
7901 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7905 /* Override any GCC internal prototype to avoid an error.
7906 Use char because int might match the return type of a GCC
7907 builtin and then its argument prototype would still apply. */
7908 #ifdef __cplusplus
7909 extern "C"
7910 #endif
7911 char XCreateWindow ();
7913 main ()
7915 return XCreateWindow ();
7917 return 0;
7919 _ACEOF
7920 if ac_fn_c_try_link "$LINENO"; then :
7921 case "$LIBEXT" in
7922 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7923 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'` ;;
7924 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7925 esac
7927 rm -f core conftest.err conftest.$ac_objext \
7928 conftest$ac_exeext conftest.$ac_ext
7929 LIBS=$ac_check_soname_save_LIBS
7931 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7933 $as_echo "not found" >&6; }
7935 else
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7937 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7939 cat >>confdefs.h <<_ACEOF
7940 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7941 _ACEOF
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7946 $as_echo_n "checking for -lXext... " >&6; }
7947 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 ac_check_soname_save_LIBS=$LIBS
7951 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7955 /* Override any GCC internal prototype to avoid an error.
7956 Use char because int might match the return type of a GCC
7957 builtin and then its argument prototype would still apply. */
7958 #ifdef __cplusplus
7959 extern "C"
7960 #endif
7961 char XextCreateExtension ();
7963 main ()
7965 return XextCreateExtension ();
7967 return 0;
7969 _ACEOF
7970 if ac_fn_c_try_link "$LINENO"; then :
7971 case "$LIBEXT" in
7972 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7973 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'` ;;
7974 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7975 esac
7977 rm -f core conftest.err conftest.$ac_objext \
7978 conftest$ac_exeext conftest.$ac_ext
7979 LIBS=$ac_check_soname_save_LIBS
7981 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7983 $as_echo "not found" >&6; }
7985 else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7987 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7989 cat >>confdefs.h <<_ACEOF
7990 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7991 _ACEOF
7993 XLIB="-lXext $XLIB"
7996 for ac_header in X11/Xlib.h \
7997 X11/XKBlib.h \
7998 X11/Xutil.h \
7999 X11/Xcursor/Xcursor.h \
8000 X11/extensions/shape.h \
8001 X11/extensions/XInput.h \
8002 X11/extensions/XShm.h \
8003 X11/extensions/Xcomposite.h \
8004 X11/extensions/Xinerama.h \
8005 X11/extensions/Xrandr.h \
8006 X11/extensions/Xrender.h \
8007 X11/extensions/xf86vmode.h \
8008 X11/extensions/xf86vmproto.h
8009 do :
8010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8011 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8012 # include <X11/Xlib.h>
8013 #endif
8014 #ifdef HAVE_X11_XUTIL_H
8015 # include <X11/Xutil.h>
8016 #endif
8018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8019 cat >>confdefs.h <<_ACEOF
8020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8021 _ACEOF
8025 done
8028 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8029 then
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8031 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8032 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 ac_check_lib_save_LIBS=$LIBS
8036 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8040 /* Override any GCC internal prototype to avoid an error.
8041 Use char because int might match the return type of a GCC
8042 builtin and then its argument prototype would still apply. */
8043 #ifdef __cplusplus
8044 extern "C"
8045 #endif
8046 char XkbQueryExtension ();
8048 main ()
8050 return XkbQueryExtension ();
8052 return 0;
8054 _ACEOF
8055 if ac_fn_c_try_link "$LINENO"; then :
8056 ac_cv_lib_X11_XkbQueryExtension=yes
8057 else
8058 ac_cv_lib_X11_XkbQueryExtension=no
8060 rm -f core conftest.err conftest.$ac_objext \
8061 conftest$ac_exeext conftest.$ac_ext
8062 LIBS=$ac_check_lib_save_LIBS
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8065 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8066 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
8068 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8074 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8075 then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8077 $as_echo_n "checking for -lXcursor... " >&6; }
8078 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 ac_check_soname_save_LIBS=$LIBS
8082 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8086 /* Override any GCC internal prototype to avoid an error.
8087 Use char because int might match the return type of a GCC
8088 builtin and then its argument prototype would still apply. */
8089 #ifdef __cplusplus
8090 extern "C"
8091 #endif
8092 char XcursorImageLoadCursor ();
8094 main ()
8096 return XcursorImageLoadCursor ();
8098 return 0;
8100 _ACEOF
8101 if ac_fn_c_try_link "$LINENO"; then :
8102 case "$LIBEXT" in
8103 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8104 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'` ;;
8105 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8106 esac
8108 rm -f core conftest.err conftest.$ac_objext \
8109 conftest$ac_exeext conftest.$ac_ext
8110 LIBS=$ac_check_soname_save_LIBS
8112 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8114 $as_echo "not found" >&6; }
8116 else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8118 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8120 cat >>confdefs.h <<_ACEOF
8121 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8122 _ACEOF
8127 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8128 case "x$with_xcursor" in
8129 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8130 xno) ;;
8131 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8132 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8133 esac
8136 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8137 then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8139 $as_echo_n "checking for -lXi... " >&6; }
8140 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 ac_check_soname_save_LIBS=$LIBS
8144 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8148 /* Override any GCC internal prototype to avoid an error.
8149 Use char because int might match the return type of a GCC
8150 builtin and then its argument prototype would still apply. */
8151 #ifdef __cplusplus
8152 extern "C"
8153 #endif
8154 char XOpenDevice ();
8156 main ()
8158 return XOpenDevice ();
8160 return 0;
8162 _ACEOF
8163 if ac_fn_c_try_link "$LINENO"; then :
8164 case "$LIBEXT" in
8165 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8166 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'` ;;
8167 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8168 esac
8170 rm -f core conftest.err conftest.$ac_objext \
8171 conftest$ac_exeext conftest.$ac_ext
8172 LIBS=$ac_check_soname_save_LIBS
8174 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8176 $as_echo "not found" >&6; }
8178 else
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8180 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8182 cat >>confdefs.h <<_ACEOF
8183 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8184 _ACEOF
8189 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8190 case "x$with_xinput" in
8191 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8192 xno) ;;
8193 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8194 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8195 esac
8198 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8199 then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8201 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8202 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 ac_check_lib_save_LIBS=$LIBS
8206 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8210 /* Override any GCC internal prototype to avoid an error.
8211 Use char because int might match the return type of a GCC
8212 builtin and then its argument prototype would still apply. */
8213 #ifdef __cplusplus
8214 extern "C"
8215 #endif
8216 char XShmQueryExtension ();
8218 main ()
8220 return XShmQueryExtension ();
8222 return 0;
8224 _ACEOF
8225 if ac_fn_c_try_link "$LINENO"; then :
8226 ac_cv_lib_Xext_XShmQueryExtension=yes
8227 else
8228 ac_cv_lib_Xext_XShmQueryExtension=no
8230 rm -f core conftest.err conftest.$ac_objext \
8231 conftest$ac_exeext conftest.$ac_ext
8232 LIBS=$ac_check_lib_save_LIBS
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8235 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8236 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8238 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8243 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8244 case "x$with_xshm" in
8245 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8246 xno) ;;
8247 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8248 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8249 esac
8252 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8253 then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8255 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8256 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 ac_check_lib_save_LIBS=$LIBS
8260 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8264 /* Override any GCC internal prototype to avoid an error.
8265 Use char because int might match the return type of a GCC
8266 builtin and then its argument prototype would still apply. */
8267 #ifdef __cplusplus
8268 extern "C"
8269 #endif
8270 char XShapeQueryExtension ();
8272 main ()
8274 return XShapeQueryExtension ();
8276 return 0;
8278 _ACEOF
8279 if ac_fn_c_try_link "$LINENO"; then :
8280 ac_cv_lib_Xext_XShapeQueryExtension=yes
8281 else
8282 ac_cv_lib_Xext_XShapeQueryExtension=no
8284 rm -f core conftest.err conftest.$ac_objext \
8285 conftest$ac_exeext conftest.$ac_ext
8286 LIBS=$ac_check_lib_save_LIBS
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8289 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8290 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8292 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8297 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8298 case "x$with_xshape" in
8299 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8300 xno) ;;
8301 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8302 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8303 esac
8306 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8307 then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8309 $as_echo_n "checking for -lXxf86vm... " >&6; }
8310 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8311 $as_echo_n "(cached) " >&6
8312 else
8313 ac_check_soname_save_LIBS=$LIBS
8314 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8318 /* Override any GCC internal prototype to avoid an error.
8319 Use char because int might match the return type of a GCC
8320 builtin and then its argument prototype would still apply. */
8321 #ifdef __cplusplus
8322 extern "C"
8323 #endif
8324 char XF86VidModeQueryExtension ();
8326 main ()
8328 return XF86VidModeQueryExtension ();
8330 return 0;
8332 _ACEOF
8333 if ac_fn_c_try_link "$LINENO"; then :
8334 case "$LIBEXT" in
8335 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8336 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'` ;;
8337 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8338 esac
8340 rm -f core conftest.err conftest.$ac_objext \
8341 conftest$ac_exeext conftest.$ac_ext
8342 LIBS=$ac_check_soname_save_LIBS
8344 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8346 $as_echo "not found" >&6; }
8348 else
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8350 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8352 cat >>confdefs.h <<_ACEOF
8353 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8354 _ACEOF
8359 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8360 case "x$with_xxf86vm" in
8361 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8362 xno) ;;
8363 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8364 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8365 esac
8368 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"
8369 then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8371 $as_echo_n "checking for -lXrender... " >&6; }
8372 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 ac_check_soname_save_LIBS=$LIBS
8376 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8380 /* Override any GCC internal prototype to avoid an error.
8381 Use char because int might match the return type of a GCC
8382 builtin and then its argument prototype would still apply. */
8383 #ifdef __cplusplus
8384 extern "C"
8385 #endif
8386 char XRenderQueryExtension ();
8388 main ()
8390 return XRenderQueryExtension ();
8392 return 0;
8394 _ACEOF
8395 if ac_fn_c_try_link "$LINENO"; then :
8396 case "$LIBEXT" in
8397 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8398 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'` ;;
8399 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8400 esac
8402 rm -f core conftest.err conftest.$ac_objext \
8403 conftest$ac_exeext conftest.$ac_ext
8404 LIBS=$ac_check_soname_save_LIBS
8406 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8408 $as_echo "not found" >&6; }
8410 else
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8412 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8414 cat >>confdefs.h <<_ACEOF
8415 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8416 _ACEOF
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8419 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8420 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 ac_check_lib_save_LIBS=$LIBS
8424 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8428 /* Override any GCC internal prototype to avoid an error.
8429 Use char because int might match the return type of a GCC
8430 builtin and then its argument prototype would still apply. */
8431 #ifdef __cplusplus
8432 extern "C"
8433 #endif
8434 char XRenderSetPictureTransform ();
8436 main ()
8438 return XRenderSetPictureTransform ();
8440 return 0;
8442 _ACEOF
8443 if ac_fn_c_try_link "$LINENO"; then :
8444 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8445 else
8446 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8448 rm -f core conftest.err conftest.$ac_objext \
8449 conftest$ac_exeext conftest.$ac_ext
8450 LIBS=$ac_check_lib_save_LIBS
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8453 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8454 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8456 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8463 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8464 case "x$with_xrender" in
8465 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8466 xno) ;;
8467 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8468 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8469 esac
8472 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8473 then
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 #include <X11/Xlib.h>
8477 #include <X11/extensions/Xrandr.h>
8479 main ()
8481 static typeof(XRRSetScreenConfigAndRate) * func;
8483 return 0;
8485 _ACEOF
8486 if ac_fn_c_try_compile "$LINENO"; then :
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8488 $as_echo_n "checking for -lXrandr... " >&6; }
8489 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 ac_check_soname_save_LIBS=$LIBS
8493 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8497 /* Override any GCC internal prototype to avoid an error.
8498 Use char because int might match the return type of a GCC
8499 builtin and then its argument prototype would still apply. */
8500 #ifdef __cplusplus
8501 extern "C"
8502 #endif
8503 char XRRQueryExtension ();
8505 main ()
8507 return XRRQueryExtension ();
8509 return 0;
8511 _ACEOF
8512 if ac_fn_c_try_link "$LINENO"; then :
8513 case "$LIBEXT" in
8514 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8515 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'` ;;
8516 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8517 esac
8519 rm -f core conftest.err conftest.$ac_objext \
8520 conftest$ac_exeext conftest.$ac_ext
8521 LIBS=$ac_check_soname_save_LIBS
8523 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8525 $as_echo "not found" >&6; }
8527 else
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8529 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8531 cat >>confdefs.h <<_ACEOF
8532 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8533 _ACEOF
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8541 case "x$with_xrandr" in
8542 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8543 xno) ;;
8544 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8545 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8546 esac
8549 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8550 then
8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8553 #include <X11/Xlib.h>
8554 #include <X11/extensions/Xinerama.h>
8556 main ()
8558 static typeof(XineramaQueryScreens) * func;
8560 return 0;
8562 _ACEOF
8563 if ac_fn_c_try_compile "$LINENO"; then :
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8565 $as_echo_n "checking for -lXinerama... " >&6; }
8566 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 ac_check_soname_save_LIBS=$LIBS
8570 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8574 /* Override any GCC internal prototype to avoid an error.
8575 Use char because int might match the return type of a GCC
8576 builtin and then its argument prototype would still apply. */
8577 #ifdef __cplusplus
8578 extern "C"
8579 #endif
8580 char XineramaQueryScreens ();
8582 main ()
8584 return XineramaQueryScreens ();
8586 return 0;
8588 _ACEOF
8589 if ac_fn_c_try_link "$LINENO"; then :
8590 case "$LIBEXT" in
8591 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8592 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'` ;;
8593 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8594 esac
8596 rm -f core conftest.err conftest.$ac_objext \
8597 conftest$ac_exeext conftest.$ac_ext
8598 LIBS=$ac_check_soname_save_LIBS
8600 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8602 $as_echo "not found" >&6; }
8604 else
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8606 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8608 cat >>confdefs.h <<_ACEOF
8609 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8610 _ACEOF
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8618 case "x$with_xinerama" in
8619 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8620 xno) ;;
8621 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8622 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8623 esac
8626 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8627 then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8629 $as_echo_n "checking for -lXcomposite... " >&6; }
8630 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 ac_check_soname_save_LIBS=$LIBS
8634 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8638 /* Override any GCC internal prototype to avoid an error.
8639 Use char because int might match the return type of a GCC
8640 builtin and then its argument prototype would still apply. */
8641 #ifdef __cplusplus
8642 extern "C"
8643 #endif
8644 char XCompositeRedirectWindow ();
8646 main ()
8648 return XCompositeRedirectWindow ();
8650 return 0;
8652 _ACEOF
8653 if ac_fn_c_try_link "$LINENO"; then :
8654 case "$LIBEXT" in
8655 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8656 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'` ;;
8657 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8658 esac
8660 rm -f core conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8662 LIBS=$ac_check_soname_save_LIBS
8664 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8666 $as_echo "not found" >&6; }
8668 else
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8670 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8672 cat >>confdefs.h <<_ACEOF
8673 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8674 _ACEOF
8679 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8680 case "x$with_xcomposite" in
8681 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8682 xno) ;;
8683 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8684 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8685 esac
8688 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8689 #include <X11/Xlib.h>
8690 #endif
8692 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8694 cat >>confdefs.h <<_ACEOF
8695 #define HAVE_XICCALLBACK_CALLBACK 1
8696 _ACEOF
8703 opengl_msg=""
8704 if test "x$with_opengl" != "xno"
8705 then
8706 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8707 do :
8708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8709 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8710 # include <GL/glx.h>
8711 #endif
8713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8714 cat >>confdefs.h <<_ACEOF
8715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8716 _ACEOF
8720 done
8722 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8723 then
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8725 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8726 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8731 #include <GL/gl.h>
8733 main ()
8735 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8737 return 0;
8739 _ACEOF
8740 if ac_fn_c_try_compile "$LINENO"; then :
8741 wine_cv_opengl_header_version_OK="yes"
8742 else
8743 wine_cv_opengl_header_version_OK="no"
8745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8748 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8750 if test "$wine_cv_opengl_header_version_OK" = "yes"
8751 then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8753 $as_echo_n "checking for -lGL... " >&6; }
8754 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8755 $as_echo_n "(cached) " >&6
8756 else
8757 ac_check_soname_save_LIBS=$LIBS
8758 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8762 /* Override any GCC internal prototype to avoid an error.
8763 Use char because int might match the return type of a GCC
8764 builtin and then its argument prototype would still apply. */
8765 #ifdef __cplusplus
8766 extern "C"
8767 #endif
8768 char glXCreateContext ();
8770 main ()
8772 return glXCreateContext ();
8774 return 0;
8776 _ACEOF
8777 if ac_fn_c_try_link "$LINENO"; then :
8778 case "$LIBEXT" in
8779 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8780 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'` ;;
8781 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8782 esac
8784 rm -f core conftest.err conftest.$ac_objext \
8785 conftest$ac_exeext conftest.$ac_ext
8786 LIBS=$ac_check_soname_save_LIBS
8788 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8790 $as_echo "not found" >&6; }
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8792 $as_echo_n "checking for -lGL... " >&6; }
8793 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 ac_check_soname_save_LIBS=$LIBS
8797 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"
8798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h. */
8801 /* Override any GCC internal prototype to avoid an error.
8802 Use char because int might match the return type of a GCC
8803 builtin and then its argument prototype would still apply. */
8804 #ifdef __cplusplus
8805 extern "C"
8806 #endif
8807 char glXCreateContext ();
8809 main ()
8811 return glXCreateContext ();
8813 return 0;
8815 _ACEOF
8816 if ac_fn_c_try_link "$LINENO"; then :
8817 case "$LIBEXT" in
8818 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8819 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'` ;;
8820 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8821 esac
8823 rm -f core conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext conftest.$ac_ext
8825 LIBS=$ac_check_soname_save_LIBS
8827 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8829 $as_echo "not found" >&6; }
8830 if test -f /usr/X11R6/lib/libGL.a
8831 then
8832 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8833 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8834 else
8835 opengl_msg="No OpenGL library found on this system."
8837 else
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8839 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8841 cat >>confdefs.h <<_ACEOF
8842 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8843 _ACEOF
8845 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"
8847 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8850 else
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8852 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8854 cat >>confdefs.h <<_ACEOF
8855 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8856 _ACEOF
8858 OPENGL_LIBS="-lGL"
8860 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8863 if test "$ac_cv_header_GL_glu_h" = "yes"
8864 then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8866 $as_echo_n "checking for -lGLU... " >&6; }
8867 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 ac_check_soname_save_LIBS=$LIBS
8871 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8875 /* Override any GCC internal prototype to avoid an error.
8876 Use char because int might match the return type of a GCC
8877 builtin and then its argument prototype would still apply. */
8878 #ifdef __cplusplus
8879 extern "C"
8880 #endif
8881 char gluLookAt ();
8883 main ()
8885 return gluLookAt ();
8887 return 0;
8889 _ACEOF
8890 if ac_fn_c_try_link "$LINENO"; then :
8891 case "$LIBEXT" in
8892 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8893 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'` ;;
8894 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8895 esac
8897 rm -f core conftest.err conftest.$ac_objext \
8898 conftest$ac_exeext conftest.$ac_ext
8899 LIBS=$ac_check_soname_save_LIBS
8901 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8903 $as_echo "not found" >&6; }
8905 else
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8907 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8909 cat >>confdefs.h <<_ACEOF
8910 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8911 _ACEOF
8916 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8917 case "x$with_glu" in
8918 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8919 xno) ;;
8920 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8921 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8922 esac
8924 else
8925 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8927 else
8928 opengl_msg="OpenGL development headers not found."
8930 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8931 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8932 else
8933 enable_opengl32=${enable_opengl32:-no}
8934 enable_glu32=${enable_glu32:-no}
8936 if test -n "$opengl_msg"; then :
8937 case "x$with_opengl" in
8938 x) as_fn_append wine_warnings "|$opengl_msg
8939 OpenGL and Direct3D won't be supported." ;;
8940 xno) ;;
8941 *) as_fn_error $? "$opengl_msg
8942 OpenGL and Direct3D won't be supported.
8943 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8944 esac
8947 NASLIBS=""
8949 for ac_header in audio/audiolib.h
8950 do :
8951 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8952 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8953 cat >>confdefs.h <<_ACEOF
8954 #define HAVE_AUDIO_AUDIOLIB_H 1
8955 _ACEOF
8956 for ac_header in audio/soundlib.h
8957 do :
8958 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8960 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8961 cat >>confdefs.h <<_ACEOF
8962 #define HAVE_AUDIO_SOUNDLIB_H 1
8963 _ACEOF
8967 done
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8970 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8971 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 ac_check_lib_save_LIBS=$LIBS
8975 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8979 /* Override any GCC internal prototype to avoid an error.
8980 Use char because int might match the return type of a GCC
8981 builtin and then its argument prototype would still apply. */
8982 #ifdef __cplusplus
8983 extern "C"
8984 #endif
8985 char AuCreateFlow ();
8987 main ()
8989 return AuCreateFlow ();
8991 return 0;
8993 _ACEOF
8994 if ac_fn_c_try_link "$LINENO"; then :
8995 ac_cv_lib_audio_AuCreateFlow=yes
8996 else
8997 ac_cv_lib_audio_AuCreateFlow=no
8999 rm -f core conftest.err conftest.$ac_objext \
9000 conftest$ac_exeext conftest.$ac_ext
9001 LIBS=$ac_check_lib_save_LIBS
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9004 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
9005 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
9007 $as_echo "#define HAVE_NAS 1" >>confdefs.h
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
9010 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
9011 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 ac_check_lib_save_LIBS=$LIBS
9015 LIBS="-lXau $X_LIBS $LIBS"
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9019 /* Override any GCC internal prototype to avoid an error.
9020 Use char because int might match the return type of a GCC
9021 builtin and then its argument prototype would still apply. */
9022 #ifdef __cplusplus
9023 extern "C"
9024 #endif
9025 char XauGetBestAuthByAddr ();
9027 main ()
9029 return XauGetBestAuthByAddr ();
9031 return 0;
9033 _ACEOF
9034 if ac_fn_c_try_link "$LINENO"; then :
9035 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9036 else
9037 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9039 rm -f core conftest.err conftest.$ac_objext \
9040 conftest$ac_exeext conftest.$ac_ext
9041 LIBS=$ac_check_lib_save_LIBS
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9044 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9045 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
9046 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9047 else
9048 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9056 done
9059 CPPFLAGS="$ac_save_CPPFLAGS"
9060 else
9061 XLIB=""
9062 X_CFLAGS=""
9063 X_LIBS=""
9064 enable_winex11_drv=${enable_winex11_drv:-no}
9065 enable_opengl32=${enable_opengl32:-no}
9066 enable_glu32=${enable_glu32:-no}
9068 if test "x$XLIB" = "x"; then :
9069 case "x$with_x" in
9070 xno) ;;
9071 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9072 without X support, which probably isn't what you want. You will need
9073 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9074 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9075 esac
9078 if test "$ac_cv_header_CL_cl_h" = "yes"
9079 then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9081 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9082 if test "${ac_cv_lib_OpenCL_clGetPlatformInfo+set}" = set; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 ac_check_lib_save_LIBS=$LIBS
9086 LIBS="-lOpenCL $LIBS"
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9090 /* Override any GCC internal prototype to avoid an error.
9091 Use char because int might match the return type of a GCC
9092 builtin and then its argument prototype would still apply. */
9093 #ifdef __cplusplus
9094 extern "C"
9095 #endif
9096 char clGetPlatformInfo ();
9098 main ()
9100 return clGetPlatformInfo ();
9102 return 0;
9104 _ACEOF
9105 if ac_fn_c_try_link "$LINENO"; then :
9106 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9107 else
9108 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9110 rm -f core conftest.err conftest.$ac_objext \
9111 conftest$ac_exeext conftest.$ac_ext
9112 LIBS=$ac_check_lib_save_LIBS
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9115 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9116 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = x""yes; then :
9117 LIBOPENCL="-lOpenCL"
9122 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9123 case "x$with_opencl" in
9124 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9125 xno) ;;
9126 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9127 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9128 esac
9130 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9133 XML2LIBS=""
9135 XML2INCL=""
9137 XSLTINCL=""
9139 if test "x$with_xml" != "xno"
9140 then
9141 ac_save_CPPFLAGS="$CPPFLAGS"
9142 if test "$PKG_CONFIG" != "false"
9143 then
9144 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9145 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9146 else
9147 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9148 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9150 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9151 for ac_header in libxml/parser.h
9152 do :
9153 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9154 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
9155 cat >>confdefs.h <<_ACEOF
9156 #define HAVE_LIBXML_PARSER_H 1
9157 _ACEOF
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9159 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9160 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
9161 $as_echo_n "(cached) " >&6
9162 else
9163 ac_check_lib_save_LIBS=$LIBS
9164 LIBS="-lxml2 $ac_xml_libs $LIBS"
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9168 /* Override any GCC internal prototype to avoid an error.
9169 Use char because int might match the return type of a GCC
9170 builtin and then its argument prototype would still apply. */
9171 #ifdef __cplusplus
9172 extern "C"
9173 #endif
9174 char xmlParseMemory ();
9176 main ()
9178 return xmlParseMemory ();
9180 return 0;
9182 _ACEOF
9183 if ac_fn_c_try_link "$LINENO"; then :
9184 ac_cv_lib_xml2_xmlParseMemory=yes
9185 else
9186 ac_cv_lib_xml2_xmlParseMemory=no
9188 rm -f core conftest.err conftest.$ac_objext \
9189 conftest$ac_exeext conftest.$ac_ext
9190 LIBS=$ac_check_lib_save_LIBS
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9193 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9194 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
9196 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9198 XML2LIBS="$ac_xml_libs"
9199 XML2INCL="$ac_xml_cflags"
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9203 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9204 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 ac_check_lib_save_LIBS=$LIBS
9208 LIBS="-lxml2 $ac_xml_libs $LIBS"
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9212 /* Override any GCC internal prototype to avoid an error.
9213 Use char because int might match the return type of a GCC
9214 builtin and then its argument prototype would still apply. */
9215 #ifdef __cplusplus
9216 extern "C"
9217 #endif
9218 char xmlReadMemory ();
9220 main ()
9222 return xmlReadMemory ();
9224 return 0;
9226 _ACEOF
9227 if ac_fn_c_try_link "$LINENO"; then :
9228 ac_cv_lib_xml2_xmlReadMemory=yes
9229 else
9230 ac_cv_lib_xml2_xmlReadMemory=no
9232 rm -f core conftest.err conftest.$ac_objext \
9233 conftest$ac_exeext conftest.$ac_ext
9234 LIBS=$ac_check_lib_save_LIBS
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9237 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9238 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9240 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9245 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9246 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9247 $as_echo_n "(cached) " >&6
9248 else
9249 ac_check_lib_save_LIBS=$LIBS
9250 LIBS="-lxml2 $ac_xml_libs $LIBS"
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9254 /* Override any GCC internal prototype to avoid an error.
9255 Use char because int might match the return type of a GCC
9256 builtin and then its argument prototype would still apply. */
9257 #ifdef __cplusplus
9258 extern "C"
9259 #endif
9260 char xmlNewDocPI ();
9262 main ()
9264 return xmlNewDocPI ();
9266 return 0;
9268 _ACEOF
9269 if ac_fn_c_try_link "$LINENO"; then :
9270 ac_cv_lib_xml2_xmlNewDocPI=yes
9271 else
9272 ac_cv_lib_xml2_xmlNewDocPI=no
9274 rm -f core conftest.err conftest.$ac_objext \
9275 conftest$ac_exeext conftest.$ac_ext
9276 LIBS=$ac_check_lib_save_LIBS
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9279 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9280 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9282 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9287 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9288 if test "${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+set}" = set; then :
9289 $as_echo_n "(cached) " >&6
9290 else
9291 ac_check_lib_save_LIBS=$LIBS
9292 LIBS="-lxml2 $ac_xml_libs $LIBS"
9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h. */
9296 /* Override any GCC internal prototype to avoid an error.
9297 Use char because int might match the return type of a GCC
9298 builtin and then its argument prototype would still apply. */
9299 #ifdef __cplusplus
9300 extern "C"
9301 #endif
9302 char xmlSchemaSetParserStructuredErrors ();
9304 main ()
9306 return xmlSchemaSetParserStructuredErrors ();
9308 return 0;
9310 _ACEOF
9311 if ac_fn_c_try_link "$LINENO"; then :
9312 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9313 else
9314 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9316 rm -f core conftest.err conftest.$ac_objext \
9317 conftest$ac_exeext conftest.$ac_ext
9318 LIBS=$ac_check_lib_save_LIBS
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9321 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9322 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = x""yes; then :
9324 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9329 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9330 if test "${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+set}" = set; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 ac_check_lib_save_LIBS=$LIBS
9334 LIBS="-lxml2 $ac_xml_libs $LIBS"
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h. */
9338 /* Override any GCC internal prototype to avoid an error.
9339 Use char because int might match the return type of a GCC
9340 builtin and then its argument prototype would still apply. */
9341 #ifdef __cplusplus
9342 extern "C"
9343 #endif
9344 char xmlSchemaSetValidStructuredErrors ();
9346 main ()
9348 return xmlSchemaSetValidStructuredErrors ();
9350 return 0;
9352 _ACEOF
9353 if ac_fn_c_try_link "$LINENO"; then :
9354 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9355 else
9356 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9358 rm -f core conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
9360 LIBS=$ac_check_lib_save_LIBS
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9363 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9364 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then :
9366 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9371 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9372 if test "${ac_cv_lib_xml2_xmlFirstElementChild+set}" = set; then :
9373 $as_echo_n "(cached) " >&6
9374 else
9375 ac_check_lib_save_LIBS=$LIBS
9376 LIBS="-lxml2 $ac_xml_libs $LIBS"
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9380 /* Override any GCC internal prototype to avoid an error.
9381 Use char because int might match the return type of a GCC
9382 builtin and then its argument prototype would still apply. */
9383 #ifdef __cplusplus
9384 extern "C"
9385 #endif
9386 char xmlFirstElementChild ();
9388 main ()
9390 return xmlFirstElementChild ();
9392 return 0;
9394 _ACEOF
9395 if ac_fn_c_try_link "$LINENO"; then :
9396 ac_cv_lib_xml2_xmlFirstElementChild=yes
9397 else
9398 ac_cv_lib_xml2_xmlFirstElementChild=no
9400 rm -f core conftest.err conftest.$ac_objext \
9401 conftest$ac_exeext conftest.$ac_ext
9402 LIBS=$ac_check_lib_save_LIBS
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9405 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9406 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = x""yes; then :
9408 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9412 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9414 if test "x$ac_cv_type_xmlDocProperties" = x""yes; then :
9416 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9423 done
9425 CPPFLAGS="$ac_save_CPPFLAGS"
9427 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9428 case "x$with_xml" in
9429 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9430 xno) ;;
9431 *) as_fn_error $? "libxml2 ${notice_platform}development files not found, XML won't be supported.
9432 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9433 esac
9436 if test "x$with_xslt" != "xno"
9437 then
9438 if test "$PKG_CONFIG" != "false"
9439 then
9440 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9441 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9442 else
9443 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9444 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9446 ac_save_CPPFLAGS="$CPPFLAGS"
9447 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9448 for ac_header in libxslt/pattern.h libxslt/transform.h
9449 do :
9450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9451 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9452 # include <libxslt/pattern.h>
9453 #endif
9455 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9456 cat >>confdefs.h <<_ACEOF
9457 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9458 _ACEOF
9462 done
9464 CPPFLAGS="$ac_save_CPPFLAGS"
9465 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9466 then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9468 $as_echo_n "checking for -lxslt... " >&6; }
9469 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 ac_check_soname_save_LIBS=$LIBS
9473 LIBS="-lxslt $ac_xslt_libs $LIBS"
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9477 /* Override any GCC internal prototype to avoid an error.
9478 Use char because int might match the return type of a GCC
9479 builtin and then its argument prototype would still apply. */
9480 #ifdef __cplusplus
9481 extern "C"
9482 #endif
9483 char xsltCompilePattern ();
9485 main ()
9487 return xsltCompilePattern ();
9489 return 0;
9491 _ACEOF
9492 if ac_fn_c_try_link "$LINENO"; then :
9493 case "$LIBEXT" in
9494 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9495 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'` ;;
9496 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9497 esac
9499 rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
9501 LIBS=$ac_check_soname_save_LIBS
9503 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9505 $as_echo "not found" >&6; }
9507 else
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9509 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9511 cat >>confdefs.h <<_ACEOF
9512 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9513 _ACEOF
9515 XSLTINCL="$ac_xslt_cflags"
9519 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9520 case "x$with_xslt" in
9521 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9522 xno) ;;
9523 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9524 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9525 esac
9528 HALINCL=""
9530 if test "x$with_hal" != "xno"
9531 then
9532 ac_save_CPPFLAGS="$CPPFLAGS"
9533 if test "$PKG_CONFIG" != "false"
9534 then
9535 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9536 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9537 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9539 for ac_header in dbus/dbus.h hal/libhal.h
9540 do :
9541 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9542 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9543 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9544 cat >>confdefs.h <<_ACEOF
9545 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9546 _ACEOF
9550 done
9552 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9553 then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9555 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9556 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 ac_check_lib_save_LIBS=$LIBS
9560 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h. */
9564 /* Override any GCC internal prototype to avoid an error.
9565 Use char because int might match the return type of a GCC
9566 builtin and then its argument prototype would still apply. */
9567 #ifdef __cplusplus
9568 extern "C"
9569 #endif
9570 char dbus_connection_close ();
9572 main ()
9574 return dbus_connection_close ();
9576 return 0;
9578 _ACEOF
9579 if ac_fn_c_try_link "$LINENO"; then :
9580 ac_cv_lib_dbus_1_dbus_connection_close=yes
9581 else
9582 ac_cv_lib_dbus_1_dbus_connection_close=no
9584 rm -f core conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586 LIBS=$ac_check_lib_save_LIBS
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9589 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9590 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9592 $as_echo_n "checking for -lhal... " >&6; }
9593 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 ac_check_soname_save_LIBS=$LIBS
9597 LIBS="-lhal $ac_hal_libs $LIBS"
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9601 /* Override any GCC internal prototype to avoid an error.
9602 Use char because int might match the return type of a GCC
9603 builtin and then its argument prototype would still apply. */
9604 #ifdef __cplusplus
9605 extern "C"
9606 #endif
9607 char libhal_ctx_new ();
9609 main ()
9611 return libhal_ctx_new ();
9613 return 0;
9615 _ACEOF
9616 if ac_fn_c_try_link "$LINENO"; then :
9617 case "$LIBEXT" in
9618 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9619 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'` ;;
9620 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9621 esac
9623 rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 LIBS=$ac_check_soname_save_LIBS
9627 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9629 $as_echo "not found" >&6; }
9631 else
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9633 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9635 cat >>confdefs.h <<_ACEOF
9636 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9637 _ACEOF
9639 HALINCL="$ac_hal_cflags"
9644 CPPFLAGS="$ac_save_CPPFLAGS"
9646 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9647 case "x$with_hal" in
9648 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9649 xno) ;;
9650 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9651 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9652 esac
9655 if test "x$with_gnutls" != "xno"
9656 then
9657 ac_save_CPPFLAGS="$CPPFLAGS"
9658 if test "$PKG_CONFIG" != "false"
9659 then
9660 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9661 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9662 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9664 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9665 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9668 #include <gnutls/gnutls.h>
9670 main ()
9672 typeof(gnutls_mac_get_key_size) *pfunc;
9674 return 0;
9676 _ACEOF
9677 if ac_fn_c_try_compile "$LINENO"; then :
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9679 $as_echo_n "checking for -lgnutls... " >&6; }
9680 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9681 $as_echo_n "(cached) " >&6
9682 else
9683 ac_check_soname_save_LIBS=$LIBS
9684 LIBS="-lgnutls $ac_gnutls_libs $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 gnutls_global_init ();
9696 main ()
9698 return gnutls_global_init ();
9700 return 0;
9702 _ACEOF
9703 if ac_fn_c_try_link "$LINENO"; then :
9704 case "$LIBEXT" in
9705 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9706 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'` ;;
9707 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$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_gnutls" = "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_gnutls" >&5
9720 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9722 cat >>confdefs.h <<_ACEOF
9723 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9724 _ACEOF
9726 GNUTLSINCL="$ac_gnutls_cflags"
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9734 CPPFLAGS="$ac_save_CPPFLAGS"
9736 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9737 case "x$with_gnutls" in
9738 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9739 xno) ;;
9740 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9741 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9742 esac
9745 CURSESLIBS=""
9746 if test "$ac_cv_header_ncurses_h" = "yes"
9747 then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9749 $as_echo_n "checking for -lncurses... " >&6; }
9750 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9751 $as_echo_n "(cached) " >&6
9752 else
9753 ac_check_soname_save_LIBS=$LIBS
9754 LIBS="-lncurses $LIBS"
9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h. */
9758 /* Override any GCC internal prototype to avoid an error.
9759 Use char because int might match the return type of a GCC
9760 builtin and then its argument prototype would still apply. */
9761 #ifdef __cplusplus
9762 extern "C"
9763 #endif
9764 char waddch ();
9766 main ()
9768 return waddch ();
9770 return 0;
9772 _ACEOF
9773 if ac_fn_c_try_link "$LINENO"; then :
9774 case "$LIBEXT" in
9775 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9776 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'` ;;
9777 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9778 esac
9780 rm -f core conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
9782 LIBS=$ac_check_soname_save_LIBS
9784 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9786 $as_echo "not found" >&6; }
9788 else
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9790 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9792 cat >>confdefs.h <<_ACEOF
9793 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9794 _ACEOF
9796 CURSESLIBS="-lncurses"
9798 elif test "$ac_cv_header_curses_h" = "yes"
9799 then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9801 $as_echo_n "checking for -lcurses... " >&6; }
9802 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 ac_check_soname_save_LIBS=$LIBS
9806 LIBS="-lcurses $LIBS"
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9810 /* Override any GCC internal prototype to avoid an error.
9811 Use char because int might match the return type of a GCC
9812 builtin and then its argument prototype would still apply. */
9813 #ifdef __cplusplus
9814 extern "C"
9815 #endif
9816 char waddch ();
9818 main ()
9820 return waddch ();
9822 return 0;
9824 _ACEOF
9825 if ac_fn_c_try_link "$LINENO"; then :
9826 case "$LIBEXT" in
9827 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9828 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'` ;;
9829 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9830 esac
9832 rm -f core conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
9834 LIBS=$ac_check_soname_save_LIBS
9836 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9838 $as_echo "not found" >&6; }
9840 else
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9842 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9844 cat >>confdefs.h <<_ACEOF
9845 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9846 _ACEOF
9848 CURSESLIBS="-lcurses"
9851 ac_save_LIBS="$LIBS"
9852 LIBS="$LIBS $CURSESLIBS"
9853 for ac_func in mousemask
9854 do :
9855 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9856 if test "x$ac_cv_func_mousemask" = x""yes; then :
9857 cat >>confdefs.h <<_ACEOF
9858 #define HAVE_MOUSEMASK 1
9859 _ACEOF
9862 done
9864 LIBS="$ac_save_LIBS"
9865 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9866 case "x$with_curses" in
9867 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9868 xno) ;;
9869 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9870 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9871 esac
9874 if test "x$with_sane" != "xno"
9875 then
9876 ac_save_CPPFLAGS="$CPPFLAGS"
9877 # Extract the first word of "sane-config", so it can be a program name with args.
9878 set dummy sane-config; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 if test -n "$sane_devel"; then
9885 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9886 else
9887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888 for as_dir in $PATH
9890 IFS=$as_save_IFS
9891 test -z "$as_dir" && as_dir=.
9892 for ac_exec_ext in '' $ac_executable_extensions; do
9893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9894 ac_cv_prog_sane_devel="sane-config"
9895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9896 break 2
9898 done
9899 done
9900 IFS=$as_save_IFS
9902 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9905 sane_devel=$ac_cv_prog_sane_devel
9906 if test -n "$sane_devel"; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9908 $as_echo "$sane_devel" >&6; }
9909 else
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9911 $as_echo "no" >&6; }
9915 if test "$sane_devel" != "no"
9916 then
9917 ac_sane_incl="`$sane_devel --cflags`"
9918 ac_sane_libs="`$sane_devel --ldflags`"
9919 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9921 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9922 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9924 $as_echo_n "checking for -lsane... " >&6; }
9925 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 ac_check_soname_save_LIBS=$LIBS
9929 LIBS="-lsane $ac_sane_libs $LIBS"
9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9933 /* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
9936 #ifdef __cplusplus
9937 extern "C"
9938 #endif
9939 char sane_init ();
9941 main ()
9943 return sane_init ();
9945 return 0;
9947 _ACEOF
9948 if ac_fn_c_try_link "$LINENO"; then :
9949 case "$LIBEXT" in
9950 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9951 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'` ;;
9952 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9953 esac
9955 rm -f core conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9957 LIBS=$ac_check_soname_save_LIBS
9959 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9961 $as_echo "not found" >&6; }
9963 else
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9965 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9967 cat >>confdefs.h <<_ACEOF
9968 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9969 _ACEOF
9971 SANEINCL="$ac_sane_incl"
9977 CPPFLAGS="$ac_save_CPPFLAGS"
9979 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9980 case "x$with_sane" in
9981 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9982 xno) ;;
9983 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9984 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9985 esac
9988 if test "x$with_v4l" != "xno"
9989 then
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9991 $as_echo_n "checking for -lv4l1... " >&6; }
9992 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9993 $as_echo_n "(cached) " >&6
9994 else
9995 ac_check_soname_save_LIBS=$LIBS
9996 LIBS="-lv4l1 $LIBS"
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
10000 /* Override any GCC internal prototype to avoid an error.
10001 Use char because int might match the return type of a GCC
10002 builtin and then its argument prototype would still apply. */
10003 #ifdef __cplusplus
10004 extern "C"
10005 #endif
10006 char v4l1_open ();
10008 main ()
10010 return v4l1_open ();
10012 return 0;
10014 _ACEOF
10015 if ac_fn_c_try_link "$LINENO"; then :
10016 case "$LIBEXT" in
10017 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10018 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'` ;;
10019 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10020 esac
10022 rm -f core conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
10024 LIBS=$ac_check_soname_save_LIBS
10026 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10028 $as_echo "not found" >&6; }
10030 else
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10032 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10034 cat >>confdefs.h <<_ACEOF
10035 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10036 _ACEOF
10041 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10042 case "x$with_v4l" in
10043 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10044 xno) ;;
10045 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10046 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10047 esac
10050 if test "x$with_gphoto" != "xno"
10051 then
10052 ac_save_CPPFLAGS="$CPPFLAGS"
10053 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10054 set dummy gphoto2-config; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 if test -n "$gphoto2_devel"; then
10061 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10062 else
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10070 ac_cv_prog_gphoto2_devel="gphoto2-config"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10074 done
10075 done
10076 IFS=$as_save_IFS
10078 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10081 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10082 if test -n "$gphoto2_devel"; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10084 $as_echo "$gphoto2_devel" >&6; }
10085 else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10091 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10092 set dummy gphoto2-port-config; ac_word=$2
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094 $as_echo_n "checking for $ac_word... " >&6; }
10095 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098 if test -n "$gphoto2port_devel"; then
10099 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10100 else
10101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102 for as_dir in $PATH
10104 IFS=$as_save_IFS
10105 test -z "$as_dir" && as_dir=.
10106 for ac_exec_ext in '' $ac_executable_extensions; do
10107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10108 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110 break 2
10112 done
10113 done
10114 IFS=$as_save_IFS
10116 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10119 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10120 if test -n "$gphoto2port_devel"; then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10122 $as_echo "$gphoto2port_devel" >&6; }
10123 else
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125 $as_echo "no" >&6; }
10129 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10130 then
10131 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10132 ac_gphoto2_libs=""
10133 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10135 case "$i" in
10136 -L/usr/lib|-L/usr/lib64) ;;
10137 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10138 esac
10139 done
10140 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10142 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10143 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10144 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10146 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10147 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 ac_check_lib_save_LIBS=$LIBS
10151 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h. */
10155 /* Override any GCC internal prototype to avoid an error.
10156 Use char because int might match the return type of a GCC
10157 builtin and then its argument prototype would still apply. */
10158 #ifdef __cplusplus
10159 extern "C"
10160 #endif
10161 char gp_camera_new ();
10163 main ()
10165 return gp_camera_new ();
10167 return 0;
10169 _ACEOF
10170 if ac_fn_c_try_link "$LINENO"; then :
10171 ac_cv_lib_gphoto2_gp_camera_new=yes
10172 else
10173 ac_cv_lib_gphoto2_gp_camera_new=no
10175 rm -f core conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10180 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10181 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
10183 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10185 GPHOTO2LIBS="$ac_gphoto2_libs"
10187 GPHOTO2INCL="$ac_gphoto2_incl"
10194 CPPFLAGS="$ac_save_CPPFLAGS"
10196 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10197 case "x$with_gphoto" in
10198 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10199 xno) ;;
10200 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10201 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10202 esac
10206 if test "$ac_cv_header_resolv_h" = "yes"
10207 then
10208 ac_save_LIBS="$LIBS"
10209 for lib in '' -lresolv
10211 LIBS="$lib $ac_save_LIBS"
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10214 #ifdef HAVE_NETINET_IN_H
10215 #include <netinet/in.h>
10216 #endif
10217 #include <resolv.h>
10219 main ()
10221 res_query("foo",ns_c_in,0,0,0);
10223 return 0;
10225 _ACEOF
10226 if ac_fn_c_try_link "$LINENO"; then :
10228 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10230 RESOLVLIBS="$lib"
10233 rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235 if test "${RESOLVLIBS+set}" = set; then
10236 break
10238 done
10239 LIBS="$ac_save_LIBS"
10242 LCMSLIBS=""
10244 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10245 then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10247 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10248 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 ac_check_lib_save_LIBS=$LIBS
10252 LIBS="-llcms $LIBS"
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10256 /* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
10259 #ifdef __cplusplus
10260 extern "C"
10261 #endif
10262 char cmsOpenProfileFromFile ();
10264 main ()
10266 return cmsOpenProfileFromFile ();
10268 return 0;
10270 _ACEOF
10271 if ac_fn_c_try_link "$LINENO"; then :
10272 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10273 else
10274 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10276 rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10278 LIBS=$ac_check_lib_save_LIBS
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10281 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10282 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
10284 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10286 LCMSLIBS="-llcms"
10290 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10291 case "x$with_cms" in
10292 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10293 xno) ;;
10294 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10295 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10296 esac
10299 if test "x$with_freetype" != "xno"
10300 then
10301 for ac_prog in freetype-config freetype2-config
10303 # Extract the first word of "$ac_prog", so it can be a program name with args.
10304 set dummy $ac_prog; ac_word=$2
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306 $as_echo_n "checking for $ac_word... " >&6; }
10307 if test "${ac_cv_prog_ft_devel+set}" = set; then :
10308 $as_echo_n "(cached) " >&6
10309 else
10310 if test -n "$ft_devel"; then
10311 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10312 else
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10320 ac_cv_prog_ft_devel="$ac_prog"
10321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 break 2
10324 done
10325 done
10326 IFS=$as_save_IFS
10330 ft_devel=$ac_cv_prog_ft_devel
10331 if test -n "$ft_devel"; then
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10333 $as_echo "$ft_devel" >&6; }
10334 else
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336 $as_echo "no" >&6; }
10340 test -n "$ft_devel" && break
10341 done
10342 test -n "$ft_devel" || ft_devel="no"
10344 if test "$ft_devel" != "no"
10345 then
10346 ac_freetype_incl=`$ft_devel --cflags`
10347 ac_freetype_libs=`$ft_devel --libs`
10349 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10351 $as_echo_n "checking for -lfreetype... " >&6; }
10352 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 ac_check_soname_save_LIBS=$LIBS
10356 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10360 /* Override any GCC internal prototype to avoid an error.
10361 Use char because int might match the return type of a GCC
10362 builtin and then its argument prototype would still apply. */
10363 #ifdef __cplusplus
10364 extern "C"
10365 #endif
10366 char FT_Init_FreeType ();
10368 main ()
10370 return FT_Init_FreeType ();
10372 return 0;
10374 _ACEOF
10375 if ac_fn_c_try_link "$LINENO"; then :
10376 case "$LIBEXT" in
10377 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10378 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'` ;;
10379 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10380 esac
10382 rm -f core conftest.err conftest.$ac_objext \
10383 conftest$ac_exeext conftest.$ac_ext
10384 LIBS=$ac_check_soname_save_LIBS
10386 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10388 $as_echo "not found" >&6; }
10389 ft_lib=no
10390 else
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10392 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10394 cat >>confdefs.h <<_ACEOF
10395 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10396 _ACEOF
10398 ft_lib=yes
10400 if test "$ft_lib" = "yes"
10401 then
10402 ac_save_CPPFLAGS="$CPPFLAGS"
10403 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10404 for ac_header in ft2build.h \
10405 freetype/freetype.h \
10406 freetype/ftglyph.h \
10407 freetype/fttypes.h \
10408 freetype/tttables.h \
10409 freetype/ftsnames.h \
10410 freetype/ttnameid.h \
10411 freetype/ftoutln.h \
10412 freetype/ftwinfnt.h \
10413 freetype/ftmodapi.h \
10414 freetype/ftlcdfil.h \
10415 freetype/internal/sfnt.h
10416 do :
10417 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10418 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10419 # include <ft2build.h>
10420 #endif
10422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10423 cat >>confdefs.h <<_ACEOF
10424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10425 _ACEOF
10429 done
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433 #include <ft2build.h>
10434 #include <freetype/fttrigon.h>
10435 _ACEOF
10436 if ac_fn_c_try_cpp "$LINENO"; then :
10438 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10440 wine_cv_fttrigon=yes
10441 else
10442 wine_cv_fttrigon=no
10444 rm -f conftest.err conftest.i conftest.$ac_ext
10445 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10447 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10449 cat >>confdefs.h <<_ACEOF
10450 #define HAVE_FT_TRUETYPEENGINETYPE 1
10451 _ACEOF
10456 ac_save_CFLAGS="$CFLAGS"
10457 CFLAGS="$CFLAGS $ac_freetype_libs"
10458 for ac_func in FT_Load_Sfnt_Table
10459 do :
10460 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10461 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10462 cat >>confdefs.h <<_ACEOF
10463 #define HAVE_FT_LOAD_SFNT_TABLE 1
10464 _ACEOF
10467 done
10469 CFLAGS="$ac_save_CFLAGS"
10470 CPPFLAGS="$ac_save_CPPFLAGS"
10471 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10472 then
10474 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10476 FREETYPELIBS="$ac_freetype_libs"
10478 FREETYPEINCL="$ac_freetype_incl"
10483 if test "x$FREETYPELIBS" = "x"; then :
10484 case "x$with_freetype" in
10485 xno) ;;
10486 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10487 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10488 esac
10490 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10493 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10494 if test "${ac_cv_c_ppdev+set}" = set; then :
10495 $as_echo_n "(cached) " >&6
10496 else
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10499 #ifdef HAVE_SYS_IOCTL_H
10500 # include <sys/ioctl.h>
10501 #endif
10502 #include <linux/ppdev.h>
10504 main ()
10506 ioctl (1,PPCLAIM,0)
10508 return 0;
10510 _ACEOF
10511 if ac_fn_c_try_compile "$LINENO"; then :
10512 ac_cv_c_ppdev="yes"
10513 else
10514 ac_cv_c_ppdev="no"
10516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10519 $as_echo "$ac_cv_c_ppdev" >&6; }
10520 if test "$ac_cv_c_ppdev" = "yes"
10521 then
10523 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10527 ac_wine_check_funcs_save_LIBS="$LIBS"
10528 LIBS="$LIBS $LIBPTHREAD"
10529 for ac_func in \
10530 pthread_attr_get_np \
10531 pthread_getattr_np \
10532 pthread_get_stackaddr_np \
10533 pthread_get_stacksize_np
10534 do :
10535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10536 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10537 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10538 cat >>confdefs.h <<_ACEOF
10539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10540 _ACEOF
10543 done
10545 LIBS="$ac_wine_check_funcs_save_LIBS"
10547 if test "$ac_cv_header_zlib_h" = "yes"
10548 then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10550 $as_echo_n "checking for inflate in -lz... " >&6; }
10551 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10552 $as_echo_n "(cached) " >&6
10553 else
10554 ac_check_lib_save_LIBS=$LIBS
10555 LIBS="-lz $LIBS"
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10559 /* Override any GCC internal prototype to avoid an error.
10560 Use char because int might match the return type of a GCC
10561 builtin and then its argument prototype would still apply. */
10562 #ifdef __cplusplus
10563 extern "C"
10564 #endif
10565 char inflate ();
10567 main ()
10569 return inflate ();
10571 return 0;
10573 _ACEOF
10574 if ac_fn_c_try_link "$LINENO"; then :
10575 ac_cv_lib_z_inflate=yes
10576 else
10577 ac_cv_lib_z_inflate=no
10579 rm -f core conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10584 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10585 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10587 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10589 ZLIB="-lz"
10595 if test "x$enable_tools" != xno
10596 then
10597 if test "$ac_cv_header_gettext_po_h" = "yes"
10598 then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_file_write in -lgettextpo" >&5
10600 $as_echo_n "checking for po_file_write in -lgettextpo... " >&6; }
10601 if test "${ac_cv_lib_gettextpo_po_file_write+set}" = set; then :
10602 $as_echo_n "(cached) " >&6
10603 else
10604 ac_check_lib_save_LIBS=$LIBS
10605 LIBS="-lgettextpo $LIBS"
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10609 /* Override any GCC internal prototype to avoid an error.
10610 Use char because int might match the return type of a GCC
10611 builtin and then its argument prototype would still apply. */
10612 #ifdef __cplusplus
10613 extern "C"
10614 #endif
10615 char po_file_write ();
10617 main ()
10619 return po_file_write ();
10621 return 0;
10623 _ACEOF
10624 if ac_fn_c_try_link "$LINENO"; then :
10625 ac_cv_lib_gettextpo_po_file_write=yes
10626 else
10627 ac_cv_lib_gettextpo_po_file_write=no
10629 rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_file_write" >&5
10634 $as_echo "$ac_cv_lib_gettextpo_po_file_write" >&6; }
10635 if test "x$ac_cv_lib_gettextpo_po_file_write" = x""yes; then :
10637 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10639 LIBGETTEXTPO="-lgettextpo"
10644 if test "x$LIBGETTEXTPO" = "x"; then :
10645 case "x$with_gettextpo" in
10646 x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found. Internationalization won't be fully supported." ;;
10647 xno) ;;
10648 *) as_fn_error $? "GetText ${notice_platform}development files not found. Internationalization won't be fully supported.
10649 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10650 esac
10654 if test "x$with_esd" != xno
10655 then
10656 save_CFLAGS="$CFLAGS"
10657 # Extract the first word of "esd-config", so it can be a program name with args.
10658 set dummy esd-config; ac_word=$2
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10660 $as_echo_n "checking for $ac_word... " >&6; }
10661 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664 case $ESDCONFIG in
10665 [\\/]* | ?:[\\/]*)
10666 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670 for as_dir in $PATH
10672 IFS=$as_save_IFS
10673 test -z "$as_dir" && as_dir=.
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10676 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10678 break 2
10680 done
10681 done
10682 IFS=$as_save_IFS
10684 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10686 esac
10688 ESDCONFIG=$ac_cv_path_ESDCONFIG
10689 if test -n "$ESDCONFIG"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10691 $as_echo "$ESDCONFIG" >&6; }
10692 else
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10698 if test "x$ESDCONFIG" != "xno"
10699 then
10700 ac_esd_incl=""
10701 for i in `$ESDCONFIG --cflags`
10703 case "$i" in
10704 -I*) ac_esd_incl="$ac_esd_incl $i";;
10705 esac
10706 done
10707 ac_esd_libs=`$ESDCONFIG --libs`
10708 CFLAGS="$CFLAGS $ac_esd_incl"
10710 ac_esd_libs=${ac_esd_libs:-"-lesd"}
10711 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10712 if test "x$ac_cv_header_esd_h" = x""yes; then :
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10714 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10715 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 ac_check_lib_save_LIBS=$LIBS
10719 LIBS="-lesd $ac_esd_libs $LIBS"
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10723 /* Override any GCC internal prototype to avoid an error.
10724 Use char because int might match the return type of a GCC
10725 builtin and then its argument prototype would still apply. */
10726 #ifdef __cplusplus
10727 extern "C"
10728 #endif
10729 char esd_open_sound ();
10731 main ()
10733 return esd_open_sound ();
10735 return 0;
10737 _ACEOF
10738 if ac_fn_c_try_link "$LINENO"; then :
10739 ac_cv_lib_esd_esd_open_sound=yes
10740 else
10741 ac_cv_lib_esd_esd_open_sound=no
10743 rm -f core conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745 LIBS=$ac_check_lib_save_LIBS
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10748 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10749 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10750 ESDINCL="$ac_esd_incl"
10752 ESDLIBS="$ac_esd_libs"
10755 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10762 CFLAGS="$save_CFLAGS"
10765 if test "x$with_gstreamer" != "xno"
10766 then
10767 ac_save_CPPFLAGS="$CPPFLAGS"
10768 if test "$PKG_CONFIG" != "false"; then
10769 ac_gst_incl=""
10770 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10772 case "$i" in
10773 -I*) ac_gst_incl="$ac_gst_incl $i";;
10774 esac
10775 done
10776 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10777 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10778 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10779 if test "x$ac_cv_header_gst_gstpad_h" = x""yes; then :
10780 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10781 if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10783 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10784 if test "${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+set}" = set; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10787 ac_check_lib_save_LIBS=$LIBS
10788 LIBS="-lgstreamer-0.10 $LIBS"
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10795 #ifdef __cplusplus
10796 extern "C"
10797 #endif
10798 char gst_pad_get_caps_reffed ();
10800 main ()
10802 return gst_pad_get_caps_reffed ();
10804 return 0;
10806 _ACEOF
10807 if ac_fn_c_try_link "$LINENO"; then :
10808 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10809 else
10810 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10812 rm -f core conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10817 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10818 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = x""yes; then :
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10820 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10821 if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then :
10822 $as_echo_n "(cached) " >&6
10823 else
10824 ac_check_lib_save_LIBS=$LIBS
10825 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10829 /* Override any GCC internal prototype to avoid an error.
10830 Use char because int might match the return type of a GCC
10831 builtin and then its argument prototype would still apply. */
10832 #ifdef __cplusplus
10833 extern "C"
10834 #endif
10835 char gst_app_buffer_new ();
10837 main ()
10839 return gst_app_buffer_new ();
10841 return 0;
10843 _ACEOF
10844 if ac_fn_c_try_link "$LINENO"; then :
10845 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10846 else
10847 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10849 rm -f core conftest.err conftest.$ac_objext \
10850 conftest$ac_exeext conftest.$ac_ext
10851 LIBS=$ac_check_lib_save_LIBS
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10854 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10855 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then :
10856 GSTREAMER_LIBS="$ac_gst_libs"
10858 GSTREAMER_INCL="$ac_gst_incl"
10871 CPPFLAGS="$ac_save_CPPFLAGS"
10873 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes; then :
10874 case "x$with_gstreamer" in
10875 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10876 xno) ;;
10877 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10878 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10879 esac
10881 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10883 ALSALIBS=""
10885 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10886 then
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10888 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10889 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10890 $as_echo_n "(cached) " >&6
10891 else
10892 ac_check_lib_save_LIBS=$LIBS
10893 LIBS="-lasound $LIBS"
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10897 /* Override any GCC internal prototype to avoid an error.
10898 Use char because int might match the return type of a GCC
10899 builtin and then its argument prototype would still apply. */
10900 #ifdef __cplusplus
10901 extern "C"
10902 #endif
10903 char snd_pcm_hw_params_get_access ();
10905 main ()
10907 return snd_pcm_hw_params_get_access ();
10909 return 0;
10911 _ACEOF
10912 if ac_fn_c_try_link "$LINENO"; then :
10913 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10914 else
10915 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10917 rm -f core conftest.err conftest.$ac_objext \
10918 conftest$ac_exeext conftest.$ac_ext
10919 LIBS=$ac_check_lib_save_LIBS
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10922 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10923 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10926 #ifdef HAVE_ALSA_ASOUNDLIB_H
10927 #include <alsa/asoundlib.h>
10928 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10929 #include <sys/asoundlib.h>
10930 #endif
10932 main ()
10934 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10936 return 0;
10938 _ACEOF
10939 if ac_fn_c_try_compile "$LINENO"; then :
10941 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10943 ALSALIBS="-lasound"
10945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10951 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10952 then
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10954 $as_echo_n "checking for -lcapi20... " >&6; }
10955 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10956 $as_echo_n "(cached) " >&6
10957 else
10958 ac_check_soname_save_LIBS=$LIBS
10959 LIBS="-lcapi20 $LIBS"
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10963 /* Override any GCC internal prototype to avoid an error.
10964 Use char because int might match the return type of a GCC
10965 builtin and then its argument prototype would still apply. */
10966 #ifdef __cplusplus
10967 extern "C"
10968 #endif
10969 char capi20_register ();
10971 main ()
10973 return capi20_register ();
10975 return 0;
10977 _ACEOF
10978 if ac_fn_c_try_link "$LINENO"; then :
10979 case "$LIBEXT" in
10980 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10981 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'` ;;
10982 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10983 esac
10985 rm -f core conftest.err conftest.$ac_objext \
10986 conftest$ac_exeext conftest.$ac_ext
10987 LIBS=$ac_check_soname_save_LIBS
10989 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10991 $as_echo "not found" >&6; }
10993 else
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10995 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10997 cat >>confdefs.h <<_ACEOF
10998 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10999 _ACEOF
11004 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11005 case "x$with_capi" in
11006 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11007 xno) ;;
11008 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11009 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11010 esac
11013 CUPSINCL=""
11015 if test "x$with_cups" != "xno"
11016 then
11017 ac_save_CPPFLAGS="$CPPFLAGS"
11018 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11019 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11020 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11021 for ac_header in cups/cups.h
11022 do :
11023 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11024 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
11025 cat >>confdefs.h <<_ACEOF
11026 #define HAVE_CUPS_CUPS_H 1
11027 _ACEOF
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11029 $as_echo_n "checking for -lcups... " >&6; }
11030 if test "${ac_cv_lib_soname_cups+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 ac_check_soname_save_LIBS=$LIBS
11034 LIBS="-lcups $ac_cups_libs $LIBS"
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char cupsGetDefault ();
11046 main ()
11048 return cupsGetDefault ();
11050 return 0;
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054 case "$LIBEXT" in
11055 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11056 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'` ;;
11057 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11058 esac
11060 rm -f core conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
11062 LIBS=$ac_check_soname_save_LIBS
11064 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11066 $as_echo "not found" >&6; }
11068 else
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11070 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11072 cat >>confdefs.h <<_ACEOF
11073 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11074 _ACEOF
11076 CUPSINCL="$ac_cups_cflags"
11080 done
11082 CPPFLAGS="$ac_save_CPPFLAGS"
11084 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11085 case "x$with_cups" in
11086 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11087 xno) ;;
11088 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11089 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11090 esac
11093 if test "$ac_cv_header_jack_jack_h" = "yes"
11094 then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
11096 $as_echo_n "checking for -ljack... " >&6; }
11097 if test "${ac_cv_lib_soname_jack+set}" = set; then :
11098 $as_echo_n "(cached) " >&6
11099 else
11100 ac_check_soname_save_LIBS=$LIBS
11101 LIBS="-ljack $LIBS"
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11105 /* Override any GCC internal prototype to avoid an error.
11106 Use char because int might match the return type of a GCC
11107 builtin and then its argument prototype would still apply. */
11108 #ifdef __cplusplus
11109 extern "C"
11110 #endif
11111 char jack_client_new ();
11113 main ()
11115 return jack_client_new ();
11117 return 0;
11119 _ACEOF
11120 if ac_fn_c_try_link "$LINENO"; then :
11121 case "$LIBEXT" in
11122 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11123 dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11124 *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11125 esac
11127 rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
11129 LIBS=$ac_check_soname_save_LIBS
11131 if test "x$ac_cv_lib_soname_jack" = "x"; then :
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11133 $as_echo "not found" >&6; }
11135 else
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
11137 $as_echo "$ac_cv_lib_soname_jack" >&6; }
11139 cat >>confdefs.h <<_ACEOF
11140 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11141 _ACEOF
11147 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11148 then
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11150 $as_echo_n "checking for -lfontconfig... " >&6; }
11151 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11152 $as_echo_n "(cached) " >&6
11153 else
11154 ac_check_soname_save_LIBS=$LIBS
11155 LIBS="-lfontconfig $LIBS"
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11159 /* Override any GCC internal prototype to avoid an error.
11160 Use char because int might match the return type of a GCC
11161 builtin and then its argument prototype would still apply. */
11162 #ifdef __cplusplus
11163 extern "C"
11164 #endif
11165 char FcInit ();
11167 main ()
11169 return FcInit ();
11171 return 0;
11173 _ACEOF
11174 if ac_fn_c_try_link "$LINENO"; then :
11175 case "$LIBEXT" in
11176 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11177 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'` ;;
11178 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11179 esac
11181 rm -f core conftest.err conftest.$ac_objext \
11182 conftest$ac_exeext conftest.$ac_ext
11183 LIBS=$ac_check_soname_save_LIBS
11185 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11187 $as_echo "not found" >&6; }
11189 else
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11191 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11193 cat >>confdefs.h <<_ACEOF
11194 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11195 _ACEOF
11199 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11200 then
11201 ac_save_CPPFLAGS="$CPPFLAGS"
11202 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11203 $as_unset ac_cv_header_fontconfig_fontconfig_h
11204 for ac_header in fontconfig/fontconfig.h
11205 do :
11206 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11207 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
11208 cat >>confdefs.h <<_ACEOF
11209 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11210 _ACEOF
11214 done
11216 CPPFLAGS="$ac_save_CPPFLAGS"
11217 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11218 then
11219 FONTCONFIGINCL="$X_CFLAGS"
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11222 $as_echo_n "checking for -lfontconfig... " >&6; }
11223 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 ac_check_soname_save_LIBS=$LIBS
11227 LIBS="-lfontconfig $X_LIBS $LIBS"
11228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11231 /* Override any GCC internal prototype to avoid an error.
11232 Use char because int might match the return type of a GCC
11233 builtin and then its argument prototype would still apply. */
11234 #ifdef __cplusplus
11235 extern "C"
11236 #endif
11237 char FcInit ();
11239 main ()
11241 return FcInit ();
11243 return 0;
11245 _ACEOF
11246 if ac_fn_c_try_link "$LINENO"; then :
11247 case "$LIBEXT" in
11248 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11249 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'` ;;
11250 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11251 esac
11253 rm -f core conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255 LIBS=$ac_check_soname_save_LIBS
11257 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11259 $as_echo "not found" >&6; }
11261 else
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11263 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11265 cat >>confdefs.h <<_ACEOF
11266 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11267 _ACEOF
11273 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11274 case "x$with_fontconfig" in
11275 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11276 xno) ;;
11277 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11278 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11279 esac
11282 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11283 then
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11285 $as_echo_n "checking for -lssl... " >&6; }
11286 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
11287 $as_echo_n "(cached) " >&6
11288 else
11289 ac_check_soname_save_LIBS=$LIBS
11290 LIBS="-lssl $LIBS"
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11294 /* Override any GCC internal prototype to avoid an error.
11295 Use char because int might match the return type of a GCC
11296 builtin and then its argument prototype would still apply. */
11297 #ifdef __cplusplus
11298 extern "C"
11299 #endif
11300 char SSL_library_init ();
11302 main ()
11304 return SSL_library_init ();
11306 return 0;
11308 _ACEOF
11309 if ac_fn_c_try_link "$LINENO"; then :
11310 case "$LIBEXT" in
11311 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11312 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'` ;;
11313 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11314 esac
11316 rm -f core conftest.err conftest.$ac_objext \
11317 conftest$ac_exeext conftest.$ac_ext
11318 LIBS=$ac_check_soname_save_LIBS
11320 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11322 $as_echo "not found" >&6; }
11324 else
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11326 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11328 cat >>confdefs.h <<_ACEOF
11329 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11330 _ACEOF
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11335 $as_echo_n "checking for -lcrypto... " >&6; }
11336 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
11337 $as_echo_n "(cached) " >&6
11338 else
11339 ac_check_soname_save_LIBS=$LIBS
11340 LIBS="-lcrypto $LIBS"
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11344 /* Override any GCC internal prototype to avoid an error.
11345 Use char because int might match the return type of a GCC
11346 builtin and then its argument prototype would still apply. */
11347 #ifdef __cplusplus
11348 extern "C"
11349 #endif
11350 char BIO_new_socket ();
11352 main ()
11354 return BIO_new_socket ();
11356 return 0;
11358 _ACEOF
11359 if ac_fn_c_try_link "$LINENO"; then :
11360 case "$LIBEXT" in
11361 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11362 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'` ;;
11363 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11364 esac
11366 rm -f core conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11368 LIBS=$ac_check_soname_save_LIBS
11370 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11372 $as_echo "not found" >&6; }
11374 else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11376 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11378 cat >>confdefs.h <<_ACEOF
11379 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11380 _ACEOF
11385 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11386 case "x$with_openssl" in
11387 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11388 xno) ;;
11389 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11390 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11391 esac
11394 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11395 then
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11397 $as_echo_n "checking for -lgsm... " >&6; }
11398 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 ac_check_soname_save_LIBS=$LIBS
11402 LIBS="-lgsm $LIBS"
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11406 /* Override any GCC internal prototype to avoid an error.
11407 Use char because int might match the return type of a GCC
11408 builtin and then its argument prototype would still apply. */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 char gsm_create ();
11414 main ()
11416 return gsm_create ();
11418 return 0;
11420 _ACEOF
11421 if ac_fn_c_try_link "$LINENO"; then :
11422 case "$LIBEXT" in
11423 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11424 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'` ;;
11425 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11426 esac
11428 rm -f core conftest.err conftest.$ac_objext \
11429 conftest$ac_exeext conftest.$ac_ext
11430 LIBS=$ac_check_soname_save_LIBS
11432 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11434 $as_echo "not found" >&6; }
11436 else
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11438 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11440 cat >>confdefs.h <<_ACEOF
11441 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11442 _ACEOF
11447 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11448 case "x$with_gsm" in
11449 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11450 xno) ;;
11451 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11452 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11453 esac
11456 if test "$ac_cv_header_icns_h" = "yes"
11457 then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -licns" >&5
11459 $as_echo_n "checking for -licns... " >&6; }
11460 if test "${ac_cv_lib_soname_icns+set}" = set; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 ac_check_soname_save_LIBS=$LIBS
11464 LIBS="-licns $LIBS"
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11468 /* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 char icns_write_family_to_file ();
11476 main ()
11478 return icns_write_family_to_file ();
11480 return 0;
11482 _ACEOF
11483 if ac_fn_c_try_link "$LINENO"; then :
11484 case "$LIBEXT" in
11485 dll) ac_cv_lib_soname_icns=`$ac_cv_path_LDD conftest.exe | grep "icns" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11486 dylib) ac_cv_lib_soname_icns=`otool -L conftest$ac_exeext | grep "libicns\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libicns\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11487 *) ac_cv_lib_soname_icns=`$ac_cv_path_LDD conftest$ac_exeext | grep "libicns\\.$LIBEXT" | sed -e "s/^.*\(libicns\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11488 esac
11490 rm -f core conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 LIBS=$ac_check_soname_save_LIBS
11494 if test "x$ac_cv_lib_soname_icns" = "x"; then :
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11496 $as_echo "not found" >&6; }
11498 else
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_icns" >&5
11500 $as_echo "$ac_cv_lib_soname_icns" >&6; }
11502 cat >>confdefs.h <<_ACEOF
11503 #define SONAME_LIBICNS "$ac_cv_lib_soname_icns"
11504 _ACEOF
11509 case $host_os in
11510 darwin*|macosx*)
11511 if test "x$ac_cv_lib_soname_icns" = "x"; then :
11512 case "x$with_icns" in
11513 x) as_fn_append wine_notices "|libicns ${notice_platform}development files not found, ICNS icons won't be supported." ;;
11514 xno) ;;
11515 *) as_fn_error $? "libicns ${notice_platform}development files not found, ICNS icons won't be supported.
11516 This is an error since --with-icns was requested." "$LINENO" 5 ;;
11517 esac
11518 fi ;;
11519 esac
11521 if test "$ac_cv_header_jpeglib_h" = "yes"
11522 then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11524 $as_echo_n "checking for -ljpeg... " >&6; }
11525 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 ac_check_soname_save_LIBS=$LIBS
11529 LIBS="-ljpeg $LIBS"
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11533 /* Override any GCC internal prototype to avoid an error.
11534 Use char because int might match the return type of a GCC
11535 builtin and then its argument prototype would still apply. */
11536 #ifdef __cplusplus
11537 extern "C"
11538 #endif
11539 char jpeg_start_decompress ();
11541 main ()
11543 return jpeg_start_decompress ();
11545 return 0;
11547 _ACEOF
11548 if ac_fn_c_try_link "$LINENO"; then :
11549 case "$LIBEXT" in
11550 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11551 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'` ;;
11552 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11553 esac
11555 rm -f core conftest.err conftest.$ac_objext \
11556 conftest$ac_exeext conftest.$ac_ext
11557 LIBS=$ac_check_soname_save_LIBS
11559 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11561 $as_echo "not found" >&6; }
11563 else
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11565 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11567 cat >>confdefs.h <<_ACEOF
11568 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11569 _ACEOF
11574 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11575 case "x$with_jpeg" in
11576 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11577 xno) ;;
11578 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11579 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11580 esac
11583 if test "$ac_cv_header_png_h" = "yes"
11584 then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11586 $as_echo_n "checking for -lpng... " >&6; }
11587 if test "${ac_cv_lib_soname_png+set}" = set; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 ac_check_soname_save_LIBS=$LIBS
11591 LIBS="-lpng -lm -lz $LIBS"
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11595 /* Override any GCC internal prototype to avoid an error.
11596 Use char because int might match the return type of a GCC
11597 builtin and then its argument prototype would still apply. */
11598 #ifdef __cplusplus
11599 extern "C"
11600 #endif
11601 char png_create_read_struct ();
11603 main ()
11605 return png_create_read_struct ();
11607 return 0;
11609 _ACEOF
11610 if ac_fn_c_try_link "$LINENO"; then :
11611 case "$LIBEXT" in
11612 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11613 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'` ;;
11614 *) 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'` ;;
11615 esac
11617 rm -f core conftest.err conftest.$ac_objext \
11618 conftest$ac_exeext conftest.$ac_ext
11619 LIBS=$ac_check_soname_save_LIBS
11621 if test "x$ac_cv_lib_soname_png" = "x"; then :
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11623 $as_echo "not found" >&6; }
11625 else
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11627 $as_echo "$ac_cv_lib_soname_png" >&6; }
11629 cat >>confdefs.h <<_ACEOF
11630 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11631 _ACEOF
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11636 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11637 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11638 $as_echo_n "(cached) " >&6
11639 else
11640 ac_check_lib_save_LIBS=$LIBS
11641 LIBS="-lpng -lm -lz $LIBS"
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11645 /* Override any GCC internal prototype to avoid an error.
11646 Use char because int might match the return type of a GCC
11647 builtin and then its argument prototype would still apply. */
11648 #ifdef __cplusplus
11649 extern "C"
11650 #endif
11651 char png_set_expand_gray_1_2_4_to_8 ();
11653 main ()
11655 return png_set_expand_gray_1_2_4_to_8 ();
11657 return 0;
11659 _ACEOF
11660 if ac_fn_c_try_link "$LINENO"; then :
11661 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11662 else
11663 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11665 rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667 LIBS=$ac_check_lib_save_LIBS
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11670 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11671 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11673 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11678 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11679 then
11680 ac_save_CPPFLAGS="$CPPFLAGS"
11681 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11682 $as_unset ac_cv_header_png_h
11683 for ac_header in png.h
11684 do :
11685 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11686 if test "x$ac_cv_header_png_h" = x""yes; then :
11687 cat >>confdefs.h <<_ACEOF
11688 #define HAVE_PNG_H 1
11689 _ACEOF
11693 done
11695 CPPFLAGS="$ac_save_CPPFLAGS"
11696 if test "$ac_cv_header_png_h" = "yes"
11697 then
11698 PNGINCL="$X_CFLAGS"
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11701 $as_echo_n "checking for -lpng... " >&6; }
11702 if test "${ac_cv_lib_soname_png+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 ac_check_soname_save_LIBS=$LIBS
11706 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11710 /* Override any GCC internal prototype to avoid an error.
11711 Use char because int might match the return type of a GCC
11712 builtin and then its argument prototype would still apply. */
11713 #ifdef __cplusplus
11714 extern "C"
11715 #endif
11716 char png_create_read_struct ();
11718 main ()
11720 return png_create_read_struct ();
11722 return 0;
11724 _ACEOF
11725 if ac_fn_c_try_link "$LINENO"; then :
11726 case "$LIBEXT" in
11727 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11728 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'` ;;
11729 *) 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'` ;;
11730 esac
11732 rm -f core conftest.err conftest.$ac_objext \
11733 conftest$ac_exeext conftest.$ac_ext
11734 LIBS=$ac_check_soname_save_LIBS
11736 if test "x$ac_cv_lib_soname_png" = "x"; then :
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11738 $as_echo "not found" >&6; }
11740 else
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11742 $as_echo "$ac_cv_lib_soname_png" >&6; }
11744 cat >>confdefs.h <<_ACEOF
11745 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11746 _ACEOF
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11751 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11752 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755 ac_check_lib_save_LIBS=$LIBS
11756 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h. */
11760 /* Override any GCC internal prototype to avoid an error.
11761 Use char because int might match the return type of a GCC
11762 builtin and then its argument prototype would still apply. */
11763 #ifdef __cplusplus
11764 extern "C"
11765 #endif
11766 char png_set_expand_gray_1_2_4_to_8 ();
11768 main ()
11770 return png_set_expand_gray_1_2_4_to_8 ();
11772 return 0;
11774 _ACEOF
11775 if ac_fn_c_try_link "$LINENO"; then :
11776 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11777 else
11778 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11780 rm -f core conftest.err conftest.$ac_objext \
11781 conftest$ac_exeext conftest.$ac_ext
11782 LIBS=$ac_check_lib_save_LIBS
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11785 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11786 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11787 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11793 if test "x$ac_cv_lib_soname_png" = "x"; then :
11794 case "x$with_png" in
11795 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11796 xno) ;;
11797 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11798 This is an error since --with-png was requested." "$LINENO" 5 ;;
11799 esac
11802 if test "$ac_cv_header_tiffio_h" = "yes"
11803 then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11805 $as_echo_n "checking for -ltiff... " >&6; }
11806 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11809 ac_check_soname_save_LIBS=$LIBS
11810 LIBS="-ltiff $LIBS"
11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h. */
11814 /* Override any GCC internal prototype to avoid an error.
11815 Use char because int might match the return type of a GCC
11816 builtin and then its argument prototype would still apply. */
11817 #ifdef __cplusplus
11818 extern "C"
11819 #endif
11820 char TIFFClientOpen ();
11822 main ()
11824 return TIFFClientOpen ();
11826 return 0;
11828 _ACEOF
11829 if ac_fn_c_try_link "$LINENO"; then :
11830 case "$LIBEXT" in
11831 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11832 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'` ;;
11833 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11834 esac
11836 rm -f core conftest.err conftest.$ac_objext \
11837 conftest$ac_exeext conftest.$ac_ext
11838 LIBS=$ac_check_soname_save_LIBS
11840 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11842 $as_echo "not found" >&6; }
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11846 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11848 cat >>confdefs.h <<_ACEOF
11849 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11850 _ACEOF
11855 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11856 case "x$with_tiff" in
11857 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11858 xno) ;;
11859 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11860 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11861 esac
11864 if test "$ac_cv_header_mpg123_h" = "yes"
11865 then
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11867 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11868 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 ac_check_lib_save_LIBS=$LIBS
11872 LIBS="-lmpg123 $LIBS"
11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h. */
11876 /* Override any GCC internal prototype to avoid an error.
11877 Use char because int might match the return type of a GCC
11878 builtin and then its argument prototype would still apply. */
11879 #ifdef __cplusplus
11880 extern "C"
11881 #endif
11882 char mpg123_feed ();
11884 main ()
11886 return mpg123_feed ();
11888 return 0;
11890 _ACEOF
11891 if ac_fn_c_try_link "$LINENO"; then :
11892 ac_cv_lib_mpg123_mpg123_feed=yes
11893 else
11894 ac_cv_lib_mpg123_mpg123_feed=no
11896 rm -f core conftest.err conftest.$ac_objext \
11897 conftest$ac_exeext conftest.$ac_ext
11898 LIBS=$ac_check_lib_save_LIBS
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11901 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11902 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11903 LIBMPG123="-lmpg123"
11908 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11909 case "x$with_mpg123" in
11910 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11911 xno) ;;
11912 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11913 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11914 esac
11916 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}
11918 if test "$ac_cv_header_AL_al_h" = "yes"
11919 then
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11921 $as_echo_n "checking for -lopenal... " >&6; }
11922 if test "${ac_cv_lib_soname_openal+set}" = set; then :
11923 $as_echo_n "(cached) " >&6
11924 else
11925 ac_check_soname_save_LIBS=$LIBS
11926 LIBS="-lopenal $LIBS"
11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h. */
11930 /* Override any GCC internal prototype to avoid an error.
11931 Use char because int might match the return type of a GCC
11932 builtin and then its argument prototype would still apply. */
11933 #ifdef __cplusplus
11934 extern "C"
11935 #endif
11936 char alGetSource3i ();
11938 main ()
11940 return alGetSource3i ();
11942 return 0;
11944 _ACEOF
11945 if ac_fn_c_try_link "$LINENO"; then :
11946 case "$LIBEXT" in
11947 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11948 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'` ;;
11949 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11950 esac
11952 rm -f core conftest.err conftest.$ac_objext \
11953 conftest$ac_exeext conftest.$ac_ext
11954 LIBS=$ac_check_soname_save_LIBS
11956 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11958 $as_echo "not found" >&6; }
11960 else
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11962 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11964 cat >>confdefs.h <<_ACEOF
11965 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11966 _ACEOF
11968 LIBOPENAL="-lopenal"
11970 ac_cv_lib_openal=yes
11972 cat >>confdefs.h <<_ACEOF
11973 #define HAVE_OPENAL 1
11974 _ACEOF
11978 if test "x$ac_cv_lib_openal" != xyes; then :
11979 case "x$with_openal" in
11980 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11981 xno) ;;
11982 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11983 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11984 esac
11986 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11988 if test "$ac_cv_header_kstat_h" = "yes"
11989 then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11991 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11992 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11993 $as_echo_n "(cached) " >&6
11994 else
11995 ac_check_lib_save_LIBS=$LIBS
11996 LIBS="-lkstat $LIBS"
11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h. */
12000 /* Override any GCC internal prototype to avoid an error.
12001 Use char because int might match the return type of a GCC
12002 builtin and then its argument prototype would still apply. */
12003 #ifdef __cplusplus
12004 extern "C"
12005 #endif
12006 char kstat_open ();
12008 main ()
12010 return kstat_open ();
12012 return 0;
12014 _ACEOF
12015 if ac_fn_c_try_link "$LINENO"; then :
12016 ac_cv_lib_kstat_kstat_open=yes
12017 else
12018 ac_cv_lib_kstat_kstat_open=no
12020 rm -f core conftest.err conftest.$ac_objext \
12021 conftest$ac_exeext conftest.$ac_ext
12022 LIBS=$ac_check_lib_save_LIBS
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12025 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12026 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12028 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12030 LIBKSTAT="-lkstat"
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12037 $as_echo_n "checking for -lodbc... " >&6; }
12038 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 ac_check_soname_save_LIBS=$LIBS
12042 LIBS="-lodbc $LIBS"
12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h. */
12046 /* Override any GCC internal prototype to avoid an error.
12047 Use char because int might match the return type of a GCC
12048 builtin and then its argument prototype would still apply. */
12049 #ifdef __cplusplus
12050 extern "C"
12051 #endif
12052 char SQLConnect ();
12054 main ()
12056 return SQLConnect ();
12058 return 0;
12060 _ACEOF
12061 if ac_fn_c_try_link "$LINENO"; then :
12062 case "$LIBEXT" in
12063 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12064 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'` ;;
12065 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
12066 esac
12068 rm -f core conftest.err conftest.$ac_objext \
12069 conftest$ac_exeext conftest.$ac_ext
12070 LIBS=$ac_check_soname_save_LIBS
12072 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12074 $as_echo "not found" >&6; }
12075 cat >>confdefs.h <<_ACEOF
12076 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12077 _ACEOF
12079 else
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12081 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12083 cat >>confdefs.h <<_ACEOF
12084 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12085 _ACEOF
12090 if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
12091 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
12092 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
12093 "$ac_cv_header_soundcard_h" != "yes" -a \
12094 "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
12095 then
12096 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12100 EXTRACFLAGS=""
12102 if test "x${GCC}" = "xyes"
12103 then
12104 EXTRACFLAGS="-Wall -pipe"
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12107 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12108 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111 if test "$cross_compiling" = yes; then :
12112 ac_cv_c_gcc_strength_bug="yes"
12113 else
12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h. */
12116 int L[4] = {0,1,2,3};
12118 main ()
12120 static int Array[3];
12121 unsigned int B = 3;
12122 int i;
12123 for(i=0; i<B; i++) Array[i] = i - 3;
12124 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12125 L[i] = 4;
12126 return (Array[1] != -2 || L[2] != 3)
12128 return 0;
12130 _ACEOF
12131 if ac_fn_c_try_run "$LINENO"; then :
12132 ac_cv_c_gcc_strength_bug="no"
12133 else
12134 ac_cv_c_gcc_strength_bug="yes"
12136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12137 conftest.$ac_objext conftest.beam conftest.$ac_ext
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12142 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12143 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12144 then
12145 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12149 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12150 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 ac_wine_try_cflags_saved=$CFLAGS
12154 CFLAGS="$CFLAGS -fno-builtin"
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12157 int main(int argc, char **argv) { return 0; }
12158 _ACEOF
12159 if ac_fn_c_try_link "$LINENO"; then :
12160 ac_cv_cflags__fno_builtin=yes
12161 else
12162 ac_cv_cflags__fno_builtin=no
12164 rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12166 CFLAGS=$ac_wine_try_cflags_saved
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12169 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12170 if test $ac_cv_cflags__fno_builtin = yes; then :
12171 BUILTINFLAG="-fno-builtin"
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12175 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12176 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
12177 $as_echo_n "(cached) " >&6
12178 else
12179 ac_wine_try_cflags_saved=$CFLAGS
12180 CFLAGS="$CFLAGS -fno-strict-aliasing"
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183 int main(int argc, char **argv) { return 0; }
12184 _ACEOF
12185 if ac_fn_c_try_link "$LINENO"; then :
12186 ac_cv_cflags__fno_strict_aliasing=yes
12187 else
12188 ac_cv_cflags__fno_strict_aliasing=no
12190 rm -f core conftest.err conftest.$ac_objext \
12191 conftest$ac_exeext conftest.$ac_ext
12192 CFLAGS=$ac_wine_try_cflags_saved
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12195 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12196 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12197 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12200 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12201 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
12202 $as_echo_n "(cached) " >&6
12203 else
12204 ac_wine_try_cflags_saved=$CFLAGS
12205 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12208 int main(int argc, char **argv) { return 0; }
12209 _ACEOF
12210 if ac_fn_c_try_link "$LINENO"; then :
12211 ac_cv_cflags__Wdeclaration_after_statement=yes
12212 else
12213 ac_cv_cflags__Wdeclaration_after_statement=no
12215 rm -f core conftest.err conftest.$ac_objext \
12216 conftest$ac_exeext conftest.$ac_ext
12217 CFLAGS=$ac_wine_try_cflags_saved
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12220 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12221 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12222 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12225 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12226 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 ac_wine_try_cflags_saved=$CFLAGS
12230 CFLAGS="$CFLAGS -Wstrict-prototypes"
12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232 /* end confdefs.h. */
12233 int main(int argc, char **argv) { return 0; }
12234 _ACEOF
12235 if ac_fn_c_try_link "$LINENO"; then :
12236 ac_cv_cflags__Wstrict_prototypes=yes
12237 else
12238 ac_cv_cflags__Wstrict_prototypes=no
12240 rm -f core conftest.err conftest.$ac_objext \
12241 conftest$ac_exeext conftest.$ac_ext
12242 CFLAGS=$ac_wine_try_cflags_saved
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12245 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12246 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12247 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12250 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12251 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 ac_wine_try_cflags_saved=$CFLAGS
12255 CFLAGS="$CFLAGS -Wtype-limits"
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12258 int main(int argc, char **argv) { return 0; }
12259 _ACEOF
12260 if ac_fn_c_try_link "$LINENO"; then :
12261 ac_cv_cflags__Wtype_limits=yes
12262 else
12263 ac_cv_cflags__Wtype_limits=no
12265 rm -f core conftest.err conftest.$ac_objext \
12266 conftest$ac_exeext conftest.$ac_ext
12267 CFLAGS=$ac_wine_try_cflags_saved
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12270 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12271 if test $ac_cv_cflags__Wtype_limits = yes; then :
12272 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12275 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12276 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 ac_wine_try_cflags_saved=$CFLAGS
12280 CFLAGS="$CFLAGS -Wwrite-strings"
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12283 int main(int argc, char **argv) { return 0; }
12284 _ACEOF
12285 if ac_fn_c_try_link "$LINENO"; then :
12286 ac_cv_cflags__Wwrite_strings=yes
12287 else
12288 ac_cv_cflags__Wwrite_strings=no
12290 rm -f core conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext conftest.$ac_ext
12292 CFLAGS=$ac_wine_try_cflags_saved
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12295 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12296 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12297 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12300 saved_CFLAGS="$CFLAGS"
12301 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12303 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12304 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12309 #include <string.h>
12311 main ()
12315 return 0;
12317 _ACEOF
12318 if ac_fn_c_try_compile "$LINENO"; then :
12319 ac_cv_c_string_h_warnings=no
12320 else
12321 ac_cv_c_string_h_warnings=yes
12323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12326 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12327 CFLAGS="$saved_CFLAGS"
12328 if test "$ac_cv_c_string_h_warnings" = "no"
12329 then
12330 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12333 saved_CFLAGS="$CFLAGS"
12334 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12336 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12337 if test "${ac_cv_c_logicalop_noisy+set}" = set; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h. */
12342 #include <string.h>
12344 main ()
12346 char*f(const char *h,char n) {return strchr(h,n);}
12348 return 0;
12350 _ACEOF
12351 if ac_fn_c_try_compile "$LINENO"; then :
12352 ac_cv_c_logicalop_noisy=no
12353 else
12354 ac_cv_c_logicalop_noisy=yes
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12359 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12360 CFLAGS="$saved_CFLAGS"
12361 if test "$ac_cv_c_logicalop_noisy" = "no"
12362 then
12363 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12366 if test "x$enable_maintainer_mode" = "xyes"
12367 then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12369 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12370 if test "${ac_cv_cflags__Werror+set}" = set; then :
12371 $as_echo_n "(cached) " >&6
12372 else
12373 ac_wine_try_cflags_saved=$CFLAGS
12374 CFLAGS="$CFLAGS -Werror"
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12377 int main(int argc, char **argv) { return 0; }
12378 _ACEOF
12379 if ac_fn_c_try_link "$LINENO"; then :
12380 ac_cv_cflags__Werror=yes
12381 else
12382 ac_cv_cflags__Werror=no
12384 rm -f core conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12386 CFLAGS=$ac_wine_try_cflags_saved
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12389 $as_echo "$ac_cv_cflags__Werror" >&6; }
12390 if test $ac_cv_cflags__Werror = yes; then :
12391 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12395 saved_CFLAGS="$CFLAGS"
12396 CFLAGS="$CFLAGS -Werror"
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12398 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12399 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12404 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12406 main ()
12410 return 0;
12412 _ACEOF
12413 if ac_fn_c_try_compile "$LINENO"; then :
12414 ac_cv_have_ms_hook_prologue="yes"
12415 else
12416 ac_cv_have_ms_hook_prologue="no"
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12421 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12422 CFLAGS="$saved_CFLAGS"
12423 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12424 then
12426 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12428 else
12429 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12436 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12437 if test "${ac_cv_c_fortify_enabled+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442 #include <string.h>
12444 main ()
12446 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12447 #error Fortify enabled
12448 #endif
12450 return 0;
12452 _ACEOF
12453 if ac_fn_c_try_compile "$LINENO"; then :
12454 ac_cv_c_fortify_enabled=no
12455 else
12456 ac_cv_c_fortify_enabled=yes
12458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12461 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12462 if test "$ac_cv_c_fortify_enabled" = yes
12463 then
12464 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12469 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12470 if test "${ac_cv_c_extern_prefix+set}" = set; then :
12471 $as_echo_n "(cached) " >&6
12472 else
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h. */
12475 extern int ac_test;
12477 main ()
12479 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12481 return 0;
12483 _ACEOF
12484 if ac_fn_c_try_link "$LINENO"; then :
12485 ac_cv_c_extern_prefix="yes"
12486 else
12487 ac_cv_c_extern_prefix="no"
12489 rm -f core conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12493 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12495 case $host_cpu in
12496 *i[3456789]86*)
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12498 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12499 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
12500 $as_echo_n "(cached) " >&6
12501 else
12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12504 #ifndef _MSC_VER
12505 #define __stdcall __attribute__((__stdcall__))
12506 #endif
12507 int __stdcall ac_test(int i) { return i; }
12509 main ()
12511 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12513 return 0;
12515 _ACEOF
12516 if ac_fn_c_try_link "$LINENO"; then :
12517 ac_cv_c_stdcall_suffix="yes"
12518 else
12519 ac_cv_c_stdcall_suffix="no"
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12525 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12526 *) ac_cv_c_stdcall_suffix="no" ;;
12527 esac
12530 if test "$ac_cv_c_extern_prefix" = "yes"
12531 then
12532 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12534 asm_name_prefix="_"
12535 else
12536 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12538 asm_name_prefix=""
12542 if test "$ac_cv_c_stdcall_suffix" = "yes"
12543 then
12544 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12546 else
12547 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12553 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12554 if test "${ac_cv_asm_func_def+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12561 main ()
12563 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12565 return 0;
12567 _ACEOF
12568 if ac_fn_c_try_link "$LINENO"; then :
12569 ac_cv_asm_func_def=".def"
12570 else
12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12575 main ()
12577 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12579 return 0;
12581 _ACEOF
12582 if ac_fn_c_try_link "$LINENO"; then :
12583 ac_cv_asm_func_def=".type @function"
12584 else
12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12589 main ()
12591 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12593 return 0;
12595 _ACEOF
12596 if ac_fn_c_try_link "$LINENO"; then :
12597 ac_cv_asm_func_def=".type 2"
12598 else
12599 ac_cv_asm_func_def="unknown"
12601 rm -f core conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12604 rm -f core conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12607 rm -f core conftest.err conftest.$ac_objext \
12608 conftest$ac_exeext conftest.$ac_ext
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12611 $as_echo "$ac_cv_asm_func_def" >&6; }
12614 case "$ac_cv_asm_func_def" in
12615 ".def")
12616 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12618 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12619 ".type @function")
12620 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12622 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12623 ".type 2")
12624 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12626 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12628 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12630 asm_func_header="" ;;
12631 esac
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12634 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12635 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12640 asm(".text\n\t.long 0");
12642 main ()
12646 return 0;
12648 _ACEOF
12649 if ac_fn_c_try_compile "$LINENO"; then :
12650 ac_cv_c_asm_outside_funcs="yes"
12651 else
12652 ac_cv_c_asm_outside_funcs="no"
12654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12657 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12660 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12661 if test "${ac_cv_c_dot_previous+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
12663 else
12664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h. */
12668 main ()
12670 asm(".text\nac_test:\t.long 0\n\t.previous");
12672 return 0;
12674 _ACEOF
12675 if ac_fn_c_try_link "$LINENO"; then :
12676 ac_cv_c_dot_previous="yes"
12677 else
12678 ac_cv_c_dot_previous="no"
12680 rm -f core conftest.err conftest.$ac_objext \
12681 conftest$ac_exeext conftest.$ac_ext
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12684 $as_echo "$ac_cv_c_dot_previous" >&6; }
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12687 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12688 if test "${ac_cv_c_cfi_support+set}" = set; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12693 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12695 main ()
12699 return 0;
12701 _ACEOF
12702 if ac_fn_c_try_compile "$LINENO"; then :
12703 ac_cv_c_cfi_support="yes"
12704 else
12705 ac_cv_c_cfi_support="no"
12707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12710 $as_echo "$ac_cv_c_cfi_support" >&6; }
12712 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12713 asm_func_trailer=""
12714 if test "$ac_cv_c_dot_previous" = "yes"
12715 then
12716 asm_func_trailer="\\n\\t.previous"
12718 if test "$ac_cv_c_cfi_support" = "yes"
12719 then
12720 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12721 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12723 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12725 UNWINDFLAGS=-fasynchronous-unwind-tables
12727 else
12728 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12732 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12735 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12736 then
12737 cat >>confdefs.h <<_ACEOF
12738 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12739 _ACEOF
12741 else
12742 cat >>confdefs.h <<_ACEOF
12743 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12744 _ACEOF
12748 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12751 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12755 LDPATH=""
12757 case $build_os in
12758 cygwin*|mingw32*)
12759 TOOLSEXT=".exe"
12761 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12763 darwin*|macosx*)
12766 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12768 esac
12770 case $host_os in
12771 mingw32*)
12772 CRTLIBS="-lmsvcrt"
12774 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12777 esac
12779 MAIN_BINARY="wine"
12781 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12783 case $host_os in
12784 linux*)
12785 case $host_cpu in
12786 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12788 x86_64*) EXTRA_BINARIES="wine64-preloader"
12790 esac
12792 esac
12795 ac_save_CFLAGS="$CFLAGS"
12796 CFLAGS="$CFLAGS $BUILTINFLAG"
12797 for ac_func in \
12798 _pclose \
12799 _popen \
12800 _snprintf \
12801 _spawnvp \
12802 _strdup \
12803 _stricmp \
12804 _strnicmp \
12805 _strtoi64 \
12806 _strtoui64 \
12807 _vsnprintf \
12808 asctime_r \
12809 chsize \
12810 dlopen \
12811 epoll_create \
12812 ffs \
12813 finite \
12814 fnmatch \
12815 fork \
12816 fpclass \
12817 fstatfs \
12818 fstatvfs \
12819 ftruncate \
12820 futimes \
12821 futimesat \
12822 getdirentries \
12823 getopt_long \
12824 getpagesize \
12825 getpwuid \
12826 gettimeofday \
12827 getuid \
12828 kqueue \
12829 lstat \
12830 memmove \
12831 mmap \
12832 pclose \
12833 pipe2 \
12834 poll \
12835 popen \
12836 port_create \
12837 prctl \
12838 pread \
12839 pwrite \
12840 readdir \
12841 readlink \
12842 sched_setaffinity \
12843 sched_yield \
12844 select \
12845 setproctitle \
12846 setrlimit \
12847 settimeofday \
12848 sigaltstack \
12849 sigprocmask \
12850 snprintf \
12851 spawnvp \
12852 statfs \
12853 statvfs \
12854 strcasecmp \
12855 strdup \
12856 strerror \
12857 strncasecmp \
12858 strtold \
12859 strtoll \
12860 strtoull \
12861 symlink \
12862 tcgetattr \
12863 thr_kill2 \
12864 timegm \
12865 usleep \
12866 vsnprintf \
12867 wait4 \
12868 waitpid \
12870 do :
12871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12872 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12873 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12874 cat >>confdefs.h <<_ACEOF
12875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12876 _ACEOF
12879 done
12881 CFLAGS="$ac_save_CFLAGS"
12883 if test "$ac_cv_func_dlopen" = no
12884 then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12886 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12887 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 ac_check_lib_save_LIBS=$LIBS
12891 LIBS="-ldl $LIBS"
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12895 /* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12898 #ifdef __cplusplus
12899 extern "C"
12900 #endif
12901 char dlopen ();
12903 main ()
12905 return dlopen ();
12907 return 0;
12909 _ACEOF
12910 if ac_fn_c_try_link "$LINENO"; then :
12911 ac_cv_lib_dl_dlopen=yes
12912 else
12913 ac_cv_lib_dl_dlopen=no
12915 rm -f core conftest.err conftest.$ac_objext \
12916 conftest$ac_exeext conftest.$ac_ext
12917 LIBS=$ac_check_lib_save_LIBS
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12920 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12921 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12922 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12923 LIBDL="-ldl"
12928 ac_wine_check_funcs_save_LIBS="$LIBS"
12929 LIBS="$LIBS $LIBDL"
12930 for ac_func in dladdr
12931 do :
12932 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12933 if test "x$ac_cv_func_dladdr" = x""yes; then :
12934 cat >>confdefs.h <<_ACEOF
12935 #define HAVE_DLADDR 1
12936 _ACEOF
12939 done
12941 LIBS="$ac_wine_check_funcs_save_LIBS"
12943 if test "$ac_cv_func_poll" = no
12944 then
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12946 $as_echo_n "checking for poll in -lpoll... " >&6; }
12947 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12950 ac_check_lib_save_LIBS=$LIBS
12951 LIBS="-lpoll $LIBS"
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h. */
12955 /* Override any GCC internal prototype to avoid an error.
12956 Use char because int might match the return type of a GCC
12957 builtin and then its argument prototype would still apply. */
12958 #ifdef __cplusplus
12959 extern "C"
12960 #endif
12961 char poll ();
12963 main ()
12965 return poll ();
12967 return 0;
12969 _ACEOF
12970 if ac_fn_c_try_link "$LINENO"; then :
12971 ac_cv_lib_poll_poll=yes
12972 else
12973 ac_cv_lib_poll_poll=no
12975 rm -f core conftest.err conftest.$ac_objext \
12976 conftest$ac_exeext conftest.$ac_ext
12977 LIBS=$ac_check_lib_save_LIBS
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12980 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12981 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12982 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12983 LIBPOLL="-lpoll"
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12990 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12991 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12992 $as_echo_n "(cached) " >&6
12993 else
12994 ac_func_search_save_LIBS=$LIBS
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
12998 /* Override any GCC internal prototype to avoid an error.
12999 Use char because int might match the return type of a GCC
13000 builtin and then its argument prototype would still apply. */
13001 #ifdef __cplusplus
13002 extern "C"
13003 #endif
13004 char gethostbyname ();
13006 main ()
13008 return gethostbyname ();
13010 return 0;
13012 _ACEOF
13013 for ac_lib in '' nsl; do
13014 if test -z "$ac_lib"; then
13015 ac_res="none required"
13016 else
13017 ac_res=-l$ac_lib
13018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13020 if ac_fn_c_try_link "$LINENO"; then :
13021 ac_cv_search_gethostbyname=$ac_res
13023 rm -f core conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext
13025 if test "${ac_cv_search_gethostbyname+set}" = set; then :
13026 break
13028 done
13029 if test "${ac_cv_search_gethostbyname+set}" = set; then :
13031 else
13032 ac_cv_search_gethostbyname=no
13034 rm conftest.$ac_ext
13035 LIBS=$ac_func_search_save_LIBS
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13038 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13039 ac_res=$ac_cv_search_gethostbyname
13040 if test "$ac_res" != no; then :
13041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13047 $as_echo_n "checking for library containing connect... " >&6; }
13048 if test "${ac_cv_search_connect+set}" = set; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 ac_func_search_save_LIBS=$LIBS
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13055 /* Override any GCC internal prototype to avoid an error.
13056 Use char because int might match the return type of a GCC
13057 builtin and then its argument prototype would still apply. */
13058 #ifdef __cplusplus
13059 extern "C"
13060 #endif
13061 char connect ();
13063 main ()
13065 return connect ();
13067 return 0;
13069 _ACEOF
13070 for ac_lib in '' socket; do
13071 if test -z "$ac_lib"; then
13072 ac_res="none required"
13073 else
13074 ac_res=-l$ac_lib
13075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13077 if ac_fn_c_try_link "$LINENO"; then :
13078 ac_cv_search_connect=$ac_res
13080 rm -f core conftest.err conftest.$ac_objext \
13081 conftest$ac_exeext
13082 if test "${ac_cv_search_connect+set}" = set; then :
13083 break
13085 done
13086 if test "${ac_cv_search_connect+set}" = set; then :
13088 else
13089 ac_cv_search_connect=no
13091 rm conftest.$ac_ext
13092 LIBS=$ac_func_search_save_LIBS
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13095 $as_echo "$ac_cv_search_connect" >&6; }
13096 ac_res=$ac_cv_search_connect
13097 if test "$ac_res" != no; then :
13098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13104 $as_echo_n "checking for library containing inet_aton... " >&6; }
13105 if test "${ac_cv_search_inet_aton+set}" = set; then :
13106 $as_echo_n "(cached) " >&6
13107 else
13108 ac_func_search_save_LIBS=$LIBS
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13112 /* Override any GCC internal prototype to avoid an error.
13113 Use char because int might match the return type of a GCC
13114 builtin and then its argument prototype would still apply. */
13115 #ifdef __cplusplus
13116 extern "C"
13117 #endif
13118 char inet_aton ();
13120 main ()
13122 return inet_aton ();
13124 return 0;
13126 _ACEOF
13127 for ac_lib in '' resolv; do
13128 if test -z "$ac_lib"; then
13129 ac_res="none required"
13130 else
13131 ac_res=-l$ac_lib
13132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13134 if ac_fn_c_try_link "$LINENO"; then :
13135 ac_cv_search_inet_aton=$ac_res
13137 rm -f core conftest.err conftest.$ac_objext \
13138 conftest$ac_exeext
13139 if test "${ac_cv_search_inet_aton+set}" = set; then :
13140 break
13142 done
13143 if test "${ac_cv_search_inet_aton+set}" = set; then :
13145 else
13146 ac_cv_search_inet_aton=no
13148 rm conftest.$ac_ext
13149 LIBS=$ac_func_search_save_LIBS
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13152 $as_echo "$ac_cv_search_inet_aton" >&6; }
13153 ac_res=$ac_cv_search_inet_aton
13154 if test "$ac_res" != no; then :
13155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13160 for ac_func in \
13161 getaddrinfo \
13162 getnameinfo \
13163 getnetbyname \
13164 getprotobyname \
13165 getprotobynumber \
13166 getservbyport \
13167 inet_network \
13168 inet_ntop \
13169 inet_pton \
13170 sendmsg \
13171 socketpair \
13173 do :
13174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13175 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13176 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13177 cat >>confdefs.h <<_ACEOF
13178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13179 _ACEOF
13182 done
13185 LDAPLIBS=""
13187 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13188 then
13189 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13191 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13193 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13194 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
13195 $as_echo_n "(cached) " >&6
13196 else
13197 ac_check_lib_save_LIBS=$LIBS
13198 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13202 /* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13205 #ifdef __cplusplus
13206 extern "C"
13207 #endif
13208 char ldap_initialize ();
13210 main ()
13212 return ldap_initialize ();
13214 return 0;
13216 _ACEOF
13217 if ac_fn_c_try_link "$LINENO"; then :
13218 ac_cv_lib_ldap_r_ldap_initialize=yes
13219 else
13220 ac_cv_lib_ldap_r_ldap_initialize=no
13222 rm -f core conftest.err conftest.$ac_objext \
13223 conftest$ac_exeext conftest.$ac_ext
13224 LIBS=$ac_check_lib_save_LIBS
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13227 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13228 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13230 $as_echo_n "checking for ber_init in -llber... " >&6; }
13231 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 ac_check_lib_save_LIBS=$LIBS
13235 LIBS="-llber $LIBPTHREAD $LIBS"
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13239 /* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13242 #ifdef __cplusplus
13243 extern "C"
13244 #endif
13245 char ber_init ();
13247 main ()
13249 return ber_init ();
13251 return 0;
13253 _ACEOF
13254 if ac_fn_c_try_link "$LINENO"; then :
13255 ac_cv_lib_lber_ber_init=yes
13256 else
13257 ac_cv_lib_lber_ber_init=no
13259 rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13261 LIBS=$ac_check_lib_save_LIBS
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13264 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13265 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
13267 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13269 LDAPLIBS="-lldap_r -llber"
13276 ac_wine_check_funcs_save_LIBS="$LIBS"
13277 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13278 for ac_func in \
13279 ldap_count_references \
13280 ldap_first_reference \
13281 ldap_next_reference \
13282 ldap_parse_reference \
13283 ldap_parse_sort_control \
13284 ldap_parse_sortresponse_control \
13285 ldap_parse_vlv_control \
13286 ldap_parse_vlvresponse_control
13287 do :
13288 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13289 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13290 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13291 cat >>confdefs.h <<_ACEOF
13292 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13293 _ACEOF
13296 done
13298 LIBS="$ac_wine_check_funcs_save_LIBS"
13300 if test "x$LDAPLIBS" = "x"; then :
13301 case "x$with_ldap" in
13302 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13303 xno) ;;
13304 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13305 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13306 esac
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13310 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13311 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
13312 $as_echo_n "(cached) " >&6
13313 else
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h. */
13316 #include <sys/stat.h>
13318 main ()
13320 mkdir("foo");
13322 return 0;
13324 _ACEOF
13325 if ac_fn_c_try_compile "$LINENO"; then :
13326 wine_cv_one_arg_mkdir=yes
13327 else
13328 wine_cv_one_arg_mkdir=no
13330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13333 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13334 if test "$wine_cv_one_arg_mkdir" = "yes"
13335 then
13337 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13343 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13344 if test "${ac_cv_c_const+set}" = set; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13351 main ()
13353 /* FIXME: Include the comments suggested by Paul. */
13354 #ifndef __cplusplus
13355 /* Ultrix mips cc rejects this. */
13356 typedef int charset[2];
13357 const charset cs;
13358 /* SunOS 4.1.1 cc rejects this. */
13359 char const *const *pcpcc;
13360 char **ppc;
13361 /* NEC SVR4.0.2 mips cc rejects this. */
13362 struct point {int x, y;};
13363 static struct point const zero = {0,0};
13364 /* AIX XL C 1.02.0.0 rejects this.
13365 It does not let you subtract one const X* pointer from another in
13366 an arm of an if-expression whose if-part is not a constant
13367 expression */
13368 const char *g = "string";
13369 pcpcc = &g + (g ? g-g : 0);
13370 /* HPUX 7.0 cc rejects these. */
13371 ++pcpcc;
13372 ppc = (char**) pcpcc;
13373 pcpcc = (char const *const *) ppc;
13374 { /* SCO 3.2v4 cc rejects this. */
13375 char *t;
13376 char const *s = 0 ? (char *) 0 : (char const *) 0;
13378 *t++ = 0;
13379 if (s) return 0;
13381 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13382 int x[] = {25, 17};
13383 const int *foo = &x[0];
13384 ++foo;
13386 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13387 typedef const int *iptr;
13388 iptr p = 0;
13389 ++p;
13391 { /* AIX XL C 1.02.0.0 rejects this saying
13392 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13393 struct s { int j; const int *ap[3]; };
13394 struct s *b; b->j = 5;
13396 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13397 const int foo = 10;
13398 if (!foo) return 0;
13400 return !cs[0] && !zero.x;
13401 #endif
13404 return 0;
13406 _ACEOF
13407 if ac_fn_c_try_compile "$LINENO"; then :
13408 ac_cv_c_const=yes
13409 else
13410 ac_cv_c_const=no
13412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13415 $as_echo "$ac_cv_c_const" >&6; }
13416 if test $ac_cv_c_const = no; then
13418 $as_echo "#define const /**/" >>confdefs.h
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13423 $as_echo_n "checking for inline... " >&6; }
13424 if test "${ac_cv_c_inline+set}" = set; then :
13425 $as_echo_n "(cached) " >&6
13426 else
13427 ac_cv_c_inline=no
13428 for ac_kw in inline __inline__ __inline; do
13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13431 #ifndef __cplusplus
13432 typedef int foo_t;
13433 static $ac_kw foo_t static_foo () {return 0; }
13434 $ac_kw foo_t foo () {return 0; }
13435 #endif
13437 _ACEOF
13438 if ac_fn_c_try_compile "$LINENO"; then :
13439 ac_cv_c_inline=$ac_kw
13441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13442 test "$ac_cv_c_inline" != no && break
13443 done
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13447 $as_echo "$ac_cv_c_inline" >&6; }
13449 case $ac_cv_c_inline in
13450 inline | yes) ;;
13452 case $ac_cv_c_inline in
13453 no) ac_val=;;
13454 *) ac_val=$ac_cv_c_inline;;
13455 esac
13456 cat >>confdefs.h <<_ACEOF
13457 #ifndef __cplusplus
13458 #define inline $ac_val
13459 #endif
13460 _ACEOF
13462 esac
13464 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13465 if test "x$ac_cv_type_mode_t" = x""yes; then :
13467 cat >>confdefs.h <<_ACEOF
13468 #define HAVE_MODE_T 1
13469 _ACEOF
13473 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13474 if test "x$ac_cv_type_off_t" = x""yes; then :
13476 cat >>confdefs.h <<_ACEOF
13477 #define HAVE_OFF_T 1
13478 _ACEOF
13482 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13483 if test "x$ac_cv_type_pid_t" = x""yes; then :
13485 cat >>confdefs.h <<_ACEOF
13486 #define HAVE_PID_T 1
13487 _ACEOF
13491 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13492 if test "x$ac_cv_type_size_t" = x""yes; then :
13494 cat >>confdefs.h <<_ACEOF
13495 #define HAVE_SIZE_T 1
13496 _ACEOF
13500 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13501 if test "x$ac_cv_type_ssize_t" = x""yes; then :
13503 cat >>confdefs.h <<_ACEOF
13504 #define HAVE_SSIZE_T 1
13505 _ACEOF
13509 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13510 if test "x$ac_cv_type_long_long" = x""yes; then :
13512 cat >>confdefs.h <<_ACEOF
13513 #define HAVE_LONG_LONG 1
13514 _ACEOF
13518 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13519 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
13521 cat >>confdefs.h <<_ACEOF
13522 #define HAVE_FSBLKCNT_T 1
13523 _ACEOF
13527 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13528 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
13530 cat >>confdefs.h <<_ACEOF
13531 #define HAVE_FSFILCNT_T 1
13532 _ACEOF
13537 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13538 #include <signal.h>
13540 if test "x$ac_cv_type_sigset_t" = x""yes; then :
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_SIGSET_T 1
13544 _ACEOF
13549 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13551 if test "x$ac_cv_type_request_sense" = x""yes; then :
13553 cat >>confdefs.h <<_ACEOF
13554 #define HAVE_REQUEST_SENSE 1
13555 _ACEOF
13561 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13562 #ifdef HAVE_SYS_SOCKET_H
13563 #include <sys/socket.h>
13564 #endif
13565 #ifdef HAVE_SYS_SOCKETVAR_H
13566 #include <sys/socketvar.h>
13567 #endif
13568 #ifdef HAVE_NET_ROUTE_H
13569 #include <net/route.h>
13570 #endif
13571 #ifdef HAVE_NETINET_IN_H
13572 #include <netinet/in.h>
13573 #endif
13574 #ifdef HAVE_NETINET_IN_SYSTM_H
13575 #include <netinet/in_systm.h>
13576 #endif
13577 #ifdef HAVE_NETINET_IP_H
13578 #include <netinet/ip.h>
13579 #endif
13580 #ifdef HAVE_NETINET_IN_PCB_H
13581 #include <netinet/in_pcb.h>
13582 #endif
13584 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
13586 cat >>confdefs.h <<_ACEOF
13587 #define HAVE_STRUCT_XINPGEN 1
13588 _ACEOF
13594 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13595 #include <linux/input.h>
13596 #endif
13598 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
13600 cat >>confdefs.h <<_ACEOF
13601 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13602 _ACEOF
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13609 $as_echo_n "checking for sigaddset... " >&6; }
13610 if test "${wine_cv_have_sigaddset+set}" = set; then :
13611 $as_echo_n "(cached) " >&6
13612 else
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13615 #include <signal.h>
13617 main ()
13619 sigset_t set; sigaddset(&set,SIGTERM);
13621 return 0;
13623 _ACEOF
13624 if ac_fn_c_try_link "$LINENO"; then :
13625 wine_cv_have_sigaddset=yes
13626 else
13627 wine_cv_have_sigaddset=no
13629 rm -f core conftest.err conftest.$ac_objext \
13630 conftest$ac_exeext conftest.$ac_ext
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13633 $as_echo "$wine_cv_have_sigaddset" >&6; }
13634 if test "$wine_cv_have_sigaddset" = "yes"
13635 then
13637 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13643 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13644 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13645 $as_echo_n "(cached) " >&6
13646 else
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13649 #include <netdb.h>
13651 main ()
13654 char *name=0;
13655 struct hostent he;
13656 struct hostent *result;
13657 char *buf=0;
13658 int bufsize=0;
13659 int res,errnr;
13660 char *addr=0;
13661 int addrlen=0;
13662 int addrtype=0;
13663 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13664 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13667 return 0;
13669 _ACEOF
13670 if ac_fn_c_try_link "$LINENO"; then :
13671 wine_cv_linux_gethostbyname_r_6=yes
13672 else
13673 wine_cv_linux_gethostbyname_r_6=no
13676 rm -f core conftest.err conftest.$ac_objext \
13677 conftest$ac_exeext conftest.$ac_ext
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13681 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13682 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13683 then
13685 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13689 if test "$ac_cv_header_linux_joystick_h" = "yes"
13690 then
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13692 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13693 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13694 $as_echo_n "(cached) " >&6
13695 else
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13699 #include <sys/ioctl.h>
13700 #include <sys/types.h>
13701 #include <linux/joystick.h>
13703 struct js_event blub;
13704 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13705 #error "no 2.2 header"
13706 #endif
13709 main ()
13711 /*empty*/
13713 return 0;
13715 _ACEOF
13716 if ac_fn_c_try_compile "$LINENO"; then :
13717 wine_cv_linux_joystick_22_api=yes
13718 else
13719 wine_cv_linux_joystick_22_api=no
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13725 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13726 if test "$wine_cv_linux_joystick_22_api" = "yes"
13727 then
13729 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13735 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13736 #ifdef HAVE_SYS_PARAM_H
13737 # include <sys/param.h>
13738 #endif
13739 #ifdef HAVE_SYS_MOUNT_H
13740 # include <sys/mount.h>
13741 #endif
13742 #ifdef HAVE_SYS_VFS_H
13743 # include <sys/vfs.h>
13744 #endif
13745 #ifdef HAVE_SYS_STATFS_H
13746 # include <sys/statfs.h>
13747 #endif
13749 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13751 cat >>confdefs.h <<_ACEOF
13752 #define HAVE_STRUCT_STATFS_F_BFREE 1
13753 _ACEOF
13757 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13758 #ifdef HAVE_SYS_PARAM_H
13759 # include <sys/param.h>
13760 #endif
13761 #ifdef HAVE_SYS_MOUNT_H
13762 # include <sys/mount.h>
13763 #endif
13764 #ifdef HAVE_SYS_VFS_H
13765 # include <sys/vfs.h>
13766 #endif
13767 #ifdef HAVE_SYS_STATFS_H
13768 # include <sys/statfs.h>
13769 #endif
13771 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13773 cat >>confdefs.h <<_ACEOF
13774 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13775 _ACEOF
13779 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13780 #ifdef HAVE_SYS_PARAM_H
13781 # include <sys/param.h>
13782 #endif
13783 #ifdef HAVE_SYS_MOUNT_H
13784 # include <sys/mount.h>
13785 #endif
13786 #ifdef HAVE_SYS_VFS_H
13787 # include <sys/vfs.h>
13788 #endif
13789 #ifdef HAVE_SYS_STATFS_H
13790 # include <sys/statfs.h>
13791 #endif
13793 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13795 cat >>confdefs.h <<_ACEOF
13796 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13797 _ACEOF
13801 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13802 #ifdef HAVE_SYS_PARAM_H
13803 # include <sys/param.h>
13804 #endif
13805 #ifdef HAVE_SYS_MOUNT_H
13806 # include <sys/mount.h>
13807 #endif
13808 #ifdef HAVE_SYS_VFS_H
13809 # include <sys/vfs.h>
13810 #endif
13811 #ifdef HAVE_SYS_STATFS_H
13812 # include <sys/statfs.h>
13813 #endif
13815 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13817 cat >>confdefs.h <<_ACEOF
13818 #define HAVE_STRUCT_STATFS_F_FFREE 1
13819 _ACEOF
13823 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13824 #ifdef HAVE_SYS_PARAM_H
13825 # include <sys/param.h>
13826 #endif
13827 #ifdef HAVE_SYS_MOUNT_H
13828 # include <sys/mount.h>
13829 #endif
13830 #ifdef HAVE_SYS_VFS_H
13831 # include <sys/vfs.h>
13832 #endif
13833 #ifdef HAVE_SYS_STATFS_H
13834 # include <sys/statfs.h>
13835 #endif
13837 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13839 cat >>confdefs.h <<_ACEOF
13840 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13841 _ACEOF
13845 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13846 #ifdef HAVE_SYS_PARAM_H
13847 # include <sys/param.h>
13848 #endif
13849 #ifdef HAVE_SYS_MOUNT_H
13850 # include <sys/mount.h>
13851 #endif
13852 #ifdef HAVE_SYS_VFS_H
13853 # include <sys/vfs.h>
13854 #endif
13855 #ifdef HAVE_SYS_STATFS_H
13856 # include <sys/statfs.h>
13857 #endif
13859 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13861 cat >>confdefs.h <<_ACEOF
13862 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13863 _ACEOF
13869 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13870 #include <sys/statvfs.h>
13871 #endif
13873 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13875 cat >>confdefs.h <<_ACEOF
13876 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13877 _ACEOF
13883 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13884 #ifdef HAVE_SYS_SOCKET_H
13885 # include <sys/socket.h>
13886 #endif
13887 #ifdef HAVE_SYS_UN_H
13888 # include <sys/un.h>
13889 #endif
13891 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13893 cat >>confdefs.h <<_ACEOF
13894 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13895 _ACEOF
13899 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13900 #ifdef HAVE_SYS_SOCKET_H
13901 # include <sys/socket.h>
13902 #endif
13903 #ifdef HAVE_SYS_UN_H
13904 # include <sys/un.h>
13905 #endif
13907 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13909 cat >>confdefs.h <<_ACEOF
13910 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13911 _ACEOF
13915 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13916 #ifdef HAVE_SYS_SOCKET_H
13917 # include <sys/socket.h>
13918 #endif
13919 #ifdef HAVE_SYS_UN_H
13920 # include <sys/un.h>
13921 #endif
13923 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13925 cat >>confdefs.h <<_ACEOF
13926 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13927 _ACEOF
13933 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13934 #ifdef HAVE_SCSI_SG_H
13935 #include <scsi/sg.h>
13936 #endif
13938 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13940 cat >>confdefs.h <<_ACEOF
13941 #define HAVE_SCSIREQ_T_CMD 1
13942 _ACEOF
13946 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>
13947 #ifdef HAVE_SCSI_SG_H
13948 #include <scsi/sg.h>
13949 #endif
13951 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13953 cat >>confdefs.h <<_ACEOF
13954 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13955 _ACEOF
13961 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13963 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13965 cat >>confdefs.h <<_ACEOF
13966 #define HAVE_SIGINFO_T_SI_FD 1
13967 _ACEOF
13973 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13974 #ifdef HAVE_SYS_MTIO_H
13975 #include <sys/mtio.h>
13976 #endif
13978 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13980 cat >>confdefs.h <<_ACEOF
13981 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13982 _ACEOF
13986 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13987 #ifdef HAVE_SYS_MTIO_H
13988 #include <sys/mtio.h>
13989 #endif
13991 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13993 cat >>confdefs.h <<_ACEOF
13994 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13995 _ACEOF
13999 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14000 #ifdef HAVE_SYS_MTIO_H
14001 #include <sys/mtio.h>
14002 #endif
14004 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
14006 cat >>confdefs.h <<_ACEOF
14007 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14008 _ACEOF
14014 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14015 #include <getopt.h>
14016 #endif
14018 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
14020 cat >>confdefs.h <<_ACEOF
14021 #define HAVE_STRUCT_OPTION_NAME 1
14022 _ACEOF
14028 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14029 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
14031 cat >>confdefs.h <<_ACEOF
14032 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14033 _ACEOF
14037 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14038 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
14040 cat >>confdefs.h <<_ACEOF
14041 #define HAVE_STRUCT_STAT_ST_MTIM 1
14042 _ACEOF
14046 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14047 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
14049 cat >>confdefs.h <<_ACEOF
14050 #define HAVE_STRUCT_STAT_ST_CTIM 1
14051 _ACEOF
14055 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14056 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
14058 cat >>confdefs.h <<_ACEOF
14059 #define HAVE_STRUCT_STAT_ST_ATIM 1
14060 _ACEOF
14066 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
14067 #include <sys/types.h>
14068 #endif
14069 #ifdef HAVE_NETINET_IN_H
14070 #include <netinet/in.h>
14071 #endif
14073 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
14075 cat >>confdefs.h <<_ACEOF
14076 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14077 _ACEOF
14083 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14084 #include <sys/types.h>
14085 #endif
14086 #ifdef HAVE_NETINET_IN_H
14087 # include <netinet/in.h>
14088 #endif
14089 #ifdef HAVE_ARPA_NAMESER_H
14090 # include <arpa/nameser.h>
14091 #endif
14093 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
14095 cat >>confdefs.h <<_ACEOF
14096 #define HAVE_NS_MSG__MSG_PTR 1
14097 _ACEOF
14103 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14104 #include <sys/types.h>
14105 #endif
14106 #ifdef HAVE_ALIAS_H
14107 #include <alias.h>
14108 #endif
14109 #ifdef HAVE_SYS_SOCKET_H
14110 #include <sys/socket.h>
14111 #endif
14112 #ifdef HAVE_SYS_SOCKETVAR_H
14113 #include <sys/socketvar.h>
14114 #endif
14115 #ifdef HAVE_SYS_TIMEOUT_H
14116 #include <sys/timeout.h>
14117 #endif
14118 #ifdef HAVE_NETINET_IN_H
14119 #include <netinet/in.h>
14120 #endif
14121 #ifdef HAVE_NETINET_IN_SYSTM_H
14122 #include <netinet/in_systm.h>
14123 #endif
14124 #ifdef HAVE_NETINET_IP_H
14125 #include <netinet/ip.h>
14126 #endif
14127 #ifdef HAVE_NETINET_IP_VAR_H
14128 #include <netinet/ip_var.h>
14129 #endif
14130 #ifdef HAVE_NETINET_IP_ICMP_H
14131 #include <netinet/ip_icmp.h>
14132 #endif
14133 #ifdef HAVE_NETINET_ICMP_VAR
14134 #include <netinet/icmp_var.h>
14135 #endif
14137 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
14139 cat >>confdefs.h <<_ACEOF
14140 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14141 _ACEOF
14147 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14148 #include <sys/types.h>
14149 #endif
14150 #ifdef HAVE_NET_IF_H
14151 # include <net/if.h>
14152 #endif
14154 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
14156 cat >>confdefs.h <<_ACEOF
14157 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14158 _ACEOF
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14165 $as_echo_n "checking for timezone variable... " >&6; }
14166 if test "${ac_cv_have_timezone+set}" = set; then :
14167 $as_echo_n "(cached) " >&6
14168 else
14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14171 #include <time.h>
14173 main ()
14175 timezone = 1
14177 return 0;
14179 _ACEOF
14180 if ac_fn_c_try_link "$LINENO"; then :
14181 ac_cv_have_timezone="yes"
14182 else
14183 ac_cv_have_timezone="no"
14185 rm -f core conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14189 $as_echo "$ac_cv_have_timezone" >&6; }
14190 if test "$ac_cv_have_timezone" = "yes"
14191 then
14193 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14197 $as_echo_n "checking for daylight variable... " >&6; }
14198 if test "${ac_cv_have_daylight+set}" = set; then :
14199 $as_echo_n "(cached) " >&6
14200 else
14201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14203 #include <time.h>
14205 main ()
14207 daylight = 1
14209 return 0;
14211 _ACEOF
14212 if ac_fn_c_try_link "$LINENO"; then :
14213 ac_cv_have_daylight="yes"
14214 else
14215 ac_cv_have_daylight="no"
14217 rm -f core conftest.err conftest.$ac_objext \
14218 conftest$ac_exeext conftest.$ac_ext
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14221 $as_echo "$ac_cv_have_daylight" >&6; }
14222 if test "$ac_cv_have_daylight" = "yes"
14223 then
14225 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14230 $as_echo_n "checking for isinf... " >&6; }
14231 if test "${ac_cv_have_isinf+set}" = set; then :
14232 $as_echo_n "(cached) " >&6
14233 else
14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14236 #include <math.h>
14238 main ()
14240 float f = 0.0; int i=isinf(f)
14242 return 0;
14244 _ACEOF
14245 if ac_fn_c_try_link "$LINENO"; then :
14246 ac_cv_have_isinf="yes"
14247 else
14248 ac_cv_have_isinf="no"
14250 rm -f core conftest.err conftest.$ac_objext \
14251 conftest$ac_exeext conftest.$ac_ext
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14254 $as_echo "$ac_cv_have_isinf" >&6; }
14255 if test "$ac_cv_have_isinf" = "yes"
14256 then
14258 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14263 $as_echo_n "checking for isnan... " >&6; }
14264 if test "${ac_cv_have_isnan+set}" = set; then :
14265 $as_echo_n "(cached) " >&6
14266 else
14267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14269 #include <math.h>
14271 main ()
14273 float f = 0.0; int i=isnan(f)
14275 return 0;
14277 _ACEOF
14278 if ac_fn_c_try_link "$LINENO"; then :
14279 ac_cv_have_isnan="yes"
14280 else
14281 ac_cv_have_isnan="no"
14283 rm -f core conftest.err conftest.$ac_objext \
14284 conftest$ac_exeext conftest.$ac_ext
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14287 $as_echo "$ac_cv_have_isnan" >&6; }
14288 if test "$ac_cv_have_isnan" = "yes"
14289 then
14291 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14296 case $host_cpu in
14297 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14298 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14299 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
14300 $as_echo_n "(cached) " >&6
14301 else
14302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14304 #ifndef __i386__
14306 #endif
14307 _ACEOF
14308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14309 $EGREP "yes" >/dev/null 2>&1; then :
14310 ac_cv_cpp_def___i386__=yes
14311 else
14312 ac_cv_cpp_def___i386__=no
14314 rm -f conftest*
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14318 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14319 if test $ac_cv_cpp_def___i386__ = yes; then :
14320 CFLAGS="$CFLAGS -D__i386__"
14321 LINTFLAGS="$LINTFLAGS -D__i386__"
14322 fi ;;
14323 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14324 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14325 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
14326 $as_echo_n "(cached) " >&6
14327 else
14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329 /* end confdefs.h. */
14330 #ifndef __x86_64__
14332 #endif
14333 _ACEOF
14334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14335 $EGREP "yes" >/dev/null 2>&1; then :
14336 ac_cv_cpp_def___x86_64__=yes
14337 else
14338 ac_cv_cpp_def___x86_64__=no
14340 rm -f conftest*
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14344 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14345 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14346 CFLAGS="$CFLAGS -D__x86_64__"
14347 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14348 fi ;;
14349 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
14350 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
14351 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
14352 $as_echo_n "(cached) " >&6
14353 else
14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14356 #ifndef __ALPHA__
14358 #endif
14359 _ACEOF
14360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14361 $EGREP "yes" >/dev/null 2>&1; then :
14362 ac_cv_cpp_def___ALPHA__=yes
14363 else
14364 ac_cv_cpp_def___ALPHA__=no
14366 rm -f conftest*
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
14370 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
14371 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
14372 CFLAGS="$CFLAGS -D__ALPHA__"
14373 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
14374 fi ;;
14375 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14376 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14377 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
14378 $as_echo_n "(cached) " >&6
14379 else
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14382 #ifndef __sparc__
14384 #endif
14385 _ACEOF
14386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14387 $EGREP "yes" >/dev/null 2>&1; then :
14388 ac_cv_cpp_def___sparc__=yes
14389 else
14390 ac_cv_cpp_def___sparc__=no
14392 rm -f conftest*
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14396 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14397 if test $ac_cv_cpp_def___sparc__ = yes; then :
14398 CFLAGS="$CFLAGS -D__sparc__"
14399 LINTFLAGS="$LINTFLAGS -D__sparc__"
14400 fi ;;
14401 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14402 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14403 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
14404 $as_echo_n "(cached) " >&6
14405 else
14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h. */
14408 #ifndef __powerpc__
14410 #endif
14411 _ACEOF
14412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14413 $EGREP "yes" >/dev/null 2>&1; then :
14414 ac_cv_cpp_def___powerpc__=yes
14415 else
14416 ac_cv_cpp_def___powerpc__=no
14418 rm -f conftest*
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14422 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14423 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14424 CFLAGS="$CFLAGS -D__powerpc__"
14425 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14426 fi ;;
14427 esac
14429 case $host_vendor in
14430 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14431 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14432 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
14433 $as_echo_n "(cached) " >&6
14434 else
14435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436 /* end confdefs.h. */
14437 #ifndef __sun__
14439 #endif
14440 _ACEOF
14441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14442 $EGREP "yes" >/dev/null 2>&1; then :
14443 ac_cv_cpp_def___sun__=yes
14444 else
14445 ac_cv_cpp_def___sun__=no
14447 rm -f conftest*
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14451 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14452 if test $ac_cv_cpp_def___sun__ = yes; then :
14453 CFLAGS="$CFLAGS -D__sun__"
14454 LINTFLAGS="$LINTFLAGS -D__sun__"
14455 fi ;;
14456 esac
14462 ac_config_commands="$ac_config_commands include/stamp-h"
14465 ALL_MAKEFILE_DEPENDS="
14466 # Rules automatically generated by configure
14468 .INIT: Makefile
14469 .MAKEFILEDEPS:
14470 all: Makefile
14471 Makefile: Makefile.in Make.vars.in Make.rules config.status
14472 @./config.status Make.tmp Makefile"
14474 ALL_POT_FILES=""
14475 ALL_WINETEST_DEPENDS="# Test binaries"
14477 ALL_TEST_BINARIES=""
14480 wine_fn_append_file ()
14482 as_fn_append $1 " \\$as_nl $2"
14485 wine_fn_append_rule ()
14487 as_fn_append $1 "$as_nl$2"
14490 wine_fn_has_flag ()
14492 expr ",$2," : ".*,$1,.*" >/dev/null
14495 wine_fn_all_dir_rules ()
14497 ac_dir=$1
14498 ac_alldeps=$2
14499 ac_makedep="\$(MAKEDEP)"
14500 ac_input=Make.vars.in:$ac_dir/Makefile.in
14501 if test $ac_dir != tools
14502 then
14503 ac_alldeps="$2 $ac_makedep"
14505 case $2 in
14506 *.in) ac_input=$ac_input:$2 ;;
14507 *) ac_makedep="$2 $ac_makedep" ;;
14508 esac
14510 wine_fn_append_file ALL_DIRS $ac_dir
14511 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14512 "__clean__: $ac_dir/__clean__
14513 .PHONY: $ac_dir/__clean__
14514 $ac_dir/__clean__: $ac_dir/Makefile
14515 @cd $ac_dir && \$(MAKE) clean
14516 \$(RM) $ac_dir/Makefile
14517 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14518 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14519 depend: $ac_dir/__depend__
14520 .PHONY: $ac_dir/__depend__
14521 $ac_dir/__depend__: $ac_makedep dummy
14522 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14525 wine_fn_config_makefile ()
14527 ac_dir=$1
14528 ac_enable=$2
14529 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14530 return 0
14533 wine_fn_all_dir_rules $ac_dir Make.rules
14534 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14535 "all: $ac_dir
14536 .PHONY: $ac_dir
14537 $ac_dir: $ac_dir/Makefile dummy
14538 @cd $ac_dir && \$(MAKE)
14539 install:: $ac_dir
14540 @cd $ac_dir && \$(MAKE) install
14541 install-lib:: $ac_dir
14542 @cd $ac_dir && \$(MAKE) install-lib
14543 install-dev:: $ac_dir
14544 @cd $ac_dir && \$(MAKE) install-dev
14545 uninstall:: $ac_dir/Makefile
14546 @cd $ac_dir && \$(MAKE) uninstall"
14549 wine_fn_config_lib ()
14551 ac_name=$1
14552 ac_dir=dlls/$ac_name
14553 wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
14554 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14555 "all __builddeps__: $ac_dir
14556 $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
14557 @cd $ac_dir && \$(MAKE)
14558 install install-dev:: $ac_dir
14559 @cd $ac_dir && \$(MAKE) install
14560 uninstall:: $ac_dir/Makefile
14561 @cd $ac_dir && \$(MAKE) uninstall"
14564 wine_fn_config_dll ()
14566 ac_name=$1
14567 ac_dir=dlls/$ac_name
14568 ac_enable=$2
14569 ac_flags=$3
14570 ac_implib=${4:-$ac_name}
14571 ac_file=$ac_dir/lib$ac_implib
14572 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14573 ac_implibflags=""
14575 case $ac_name in
14576 *16) ac_implibflags=" -m16" ;;
14577 esac
14579 wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14581 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14582 test "$ac_enable" != enable_win16 || return 0
14583 else
14584 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14585 "all: $ac_dir
14586 .PHONY: $ac_dir
14587 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14588 @cd $ac_dir && \$(MAKE)
14589 install:: $ac_dir/Makefile __builddeps__
14590 @cd $ac_dir && \$(MAKE) install
14591 install-lib:: $ac_dir/Makefile __builddeps__
14592 @cd $ac_dir && \$(MAKE) install-lib
14593 uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14594 @cd $ac_dir && \$(MAKE) \$@"
14596 if test "x$enable_maintainer_mode" = xyes && wine_fn_has_flag po $ac_flags
14597 then
14598 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14599 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14600 "$ac_dir/rsrc.pot: $ac_dir"
14604 if wine_fn_has_flag staticimplib $ac_flags
14605 then
14606 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14607 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14608 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14609 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14610 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14611 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14612 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14613 install-dev:: $ac_dir/Makefile __builddeps__
14614 @cd $ac_dir && \$(MAKE) install-dev"
14615 if test "x$CROSSTEST_DISABLE" = x
14616 then
14617 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14618 "__builddeps__: $ac_file.cross.a
14619 $ac_file.cross.a: $ac_dir/Makefile dummy
14620 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14623 elif wine_fn_has_flag implib $ac_flags
14624 then
14625 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14626 "__builddeps__: $ac_file.$IMPLIBEXT
14627 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14628 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14629 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14630 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14631 install-dev:: $ac_dir/Makefile __builddeps__
14632 @cd $ac_dir && \$(MAKE) install-dev"
14633 if test "x$CROSSTEST_DISABLE" = x
14634 then
14635 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14636 "__builddeps__: $ac_file.cross.a
14637 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14638 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14641 if test "$ac_name" != "$ac_implib"
14642 then
14643 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14644 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14645 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14646 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14647 clean::
14648 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14649 if test "x$CROSSTEST_DISABLE" = x
14650 then
14651 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14652 "__builddeps__: dlls/lib$ac_implib.cross.a
14653 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14654 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14660 wine_fn_config_program ()
14662 ac_name=$1
14663 ac_dir=programs/$ac_name
14664 ac_enable=$2
14665 ac_flags=$3
14666 wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
14668 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14670 else
14671 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14672 "all: $ac_dir
14673 .PHONY: $ac_dir
14674 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14675 @cd $ac_dir && \$(MAKE)"
14677 if test "x$enable_maintainer_mode" = xyes && wine_fn_has_flag po $ac_flags
14678 then
14679 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14680 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14681 "$ac_dir/rsrc.pot: $ac_dir"
14684 wine_fn_has_flag install $ac_flags || return
14685 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14686 "install install-lib:: $ac_dir/Makefile __builddeps__
14687 @cd $ac_dir && \$(MAKE) install
14688 uninstall:: $ac_dir/Makefile
14689 @cd $ac_dir && \$(MAKE) uninstall"
14690 if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14691 then
14692 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14693 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14694 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14695 uninstall::
14696 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14701 wine_fn_config_test ()
14703 ac_dir=$1
14704 ac_name=$2
14705 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14706 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14707 "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14708 cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14709 $ac_name.rc:
14710 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14711 $ac_name.res: $ac_name.rc $ac_name.exe"
14712 wine_fn_all_dir_rules $ac_dir Maketest.rules
14714 if test "x$enable_tests" = x""no; then :
14716 else
14717 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14718 "all programs/winetest: $ac_dir
14719 .PHONY: $ac_dir
14720 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14721 @cd $ac_dir && \$(MAKE)
14722 test: $ac_dir/__test__
14723 .PHONY: $ac_dir/__test__
14724 $ac_dir/__test__: dummy
14725 @cd $ac_dir && \$(MAKE) test
14726 testclean::
14727 \$(RM) $ac_dir/*.ok"
14729 if test "x$CROSSTEST_DISABLE" = x
14730 then
14731 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14732 "crosstest: $ac_dir/__crosstest__
14733 .PHONY: $ac_dir/__crosstest__
14734 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14735 @cd $ac_dir && \$(MAKE) crosstest"
14740 wine_fn_config_tool ()
14742 ac_dir=$1
14743 wine_fn_all_dir_rules $ac_dir Make.rules
14745 if test "x$enable_tools" = x""no; then :
14747 else
14748 case $ac_dir in
14749 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14750 "install:: $ac_dir
14751 @cd $ac_dir && \$(MAKE) install
14752 install-lib:: $ac_dir
14753 @cd $ac_dir && \$(MAKE) install-lib
14754 install-dev:: $ac_dir
14755 @cd $ac_dir && \$(MAKE) install-dev" ;;
14756 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14757 "install install-dev:: $ac_dir
14758 @cd $ac_dir && \$(MAKE) install" ;;
14759 esac
14760 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14761 "uninstall:: $ac_dir/Makefile
14762 @cd $ac_dir && \$(MAKE) uninstall
14763 all __tooldeps__: $ac_dir
14764 .PHONY: $ac_dir
14765 $ac_dir: $ac_dir/Makefile libs/port dummy
14766 @cd $ac_dir && \$(MAKE)"
14767 case $ac_dir in
14768 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14769 esac
14773 wine_fn_config_makerules ()
14775 ac_rules=$1
14776 ac_deps=$2
14777 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14778 "$ac_rules: $ac_rules.in $ac_deps config.status
14779 @./config.status $ac_rules
14780 distclean::
14781 \$(RM) $ac_rules"
14784 wine_fn_config_symlink ()
14786 ac_link=$1
14787 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14788 "$ac_link:
14789 @./config.status $ac_link
14790 distclean::
14791 \$(RM) $ac_link"
14794 if test "x$CROSSTEST_DISABLE" != x
14795 then
14796 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14797 "crosstest:
14798 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14800 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14801 wine_fn_config_symlink dlls/shell32/AUTHORS
14802 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14803 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14804 if test "x$enable_fonts" != xno; then
14805 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14806 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14808 if test "x$enable_fonts" != xno; then
14809 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14810 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14812 if test "x$enable_fonts" != xno; then
14813 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14814 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14816 if test "x$enable_fonts" != xno; then
14817 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14818 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14820 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14821 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14822 ac_config_links="$ac_config_links wine:tools/winewrapper"
14823 wine_fn_config_symlink wine
14825 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14827 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14829 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14831 ac_config_commands="$ac_config_commands dlls/user32/resources"
14833 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14835 ac_config_commands="$ac_config_commands include/wine"
14838 wine_fn_config_makerules Make.rules
14839 MAKE_RULES=Make.rules
14840 ac_config_files="$ac_config_files Make.rules"
14842 wine_fn_config_makerules Maketest.rules Make.rules
14843 MAKE_TEST_RULES=Maketest.rules
14844 ac_config_files="$ac_config_files Maketest.rules"
14846 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14847 MAKE_DLL_RULES=dlls/Makedll.rules
14848 ac_config_files="$ac_config_files dlls/Makedll.rules"
14850 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14851 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14852 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14854 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14855 MAKE_PROG_RULES=programs/Makeprog.rules
14856 ac_config_files="$ac_config_files programs/Makeprog.rules"
14859 wine_fn_config_dll acledit enable_acledit
14860 wine_fn_config_dll aclui enable_aclui implib
14861 wine_fn_config_dll activeds enable_activeds implib
14862 wine_fn_config_dll actxprxy enable_actxprxy
14863 wine_fn_config_lib adsiid
14864 wine_fn_config_dll advapi32 enable_advapi32 implib
14865 wine_fn_config_test dlls/advapi32/tests advapi32_test
14866 wine_fn_config_dll advpack enable_advpack implib
14867 wine_fn_config_test dlls/advpack/tests advpack_test
14868 wine_fn_config_dll amstream enable_amstream
14869 wine_fn_config_test dlls/amstream/tests amstream_test
14870 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14871 wine_fn_config_dll atl enable_atl implib
14872 wine_fn_config_test dlls/atl/tests atl_test
14873 wine_fn_config_dll authz enable_authz
14874 wine_fn_config_dll avicap32 enable_avicap32 implib
14875 wine_fn_config_dll avifil32 enable_avifil32 implib
14876 wine_fn_config_test dlls/avifil32/tests avifil32_test
14877 wine_fn_config_dll avifile.dll16 enable_win16
14878 wine_fn_config_dll avrt enable_avrt implib
14879 wine_fn_config_dll bcrypt enable_bcrypt
14880 wine_fn_config_dll browseui enable_browseui
14881 wine_fn_config_test dlls/browseui/tests browseui_test
14882 wine_fn_config_dll cabinet enable_cabinet implib
14883 wine_fn_config_test dlls/cabinet/tests cabinet_test
14884 wine_fn_config_dll capi2032 enable_capi2032 implib
14885 wine_fn_config_dll cards enable_cards implib
14886 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14887 wine_fn_config_dll clusapi enable_clusapi implib
14888 wine_fn_config_dll comcat enable_comcat
14889 wine_fn_config_test dlls/comcat/tests comcat_test
14890 wine_fn_config_dll comctl32 enable_comctl32 implib
14891 wine_fn_config_test dlls/comctl32/tests comctl32_test
14892 wine_fn_config_dll comdlg32 enable_comdlg32 implib
14893 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14894 wine_fn_config_dll comm.drv16 enable_win16
14895 wine_fn_config_dll commdlg.dll16 enable_win16
14896 wine_fn_config_dll compobj.dll16 enable_win16
14897 wine_fn_config_dll compstui enable_compstui implib
14898 wine_fn_config_dll credui enable_credui implib
14899 wine_fn_config_test dlls/credui/tests credui_test
14900 wine_fn_config_dll crtdll enable_crtdll implib
14901 wine_fn_config_dll crypt32 enable_crypt32 implib
14902 wine_fn_config_test dlls/crypt32/tests crypt32_test
14903 wine_fn_config_dll cryptdlg enable_cryptdlg
14904 wine_fn_config_dll cryptdll enable_cryptdll implib
14905 wine_fn_config_dll cryptnet enable_cryptnet implib
14906 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14907 wine_fn_config_dll cryptui enable_cryptui implib
14908 wine_fn_config_test dlls/cryptui/tests cryptui_test
14909 wine_fn_config_dll ctapi32 enable_ctapi32
14910 wine_fn_config_dll ctl3d.dll16 enable_win16
14911 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14912 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14913 wine_fn_config_dll d3d10 enable_d3d10 implib
14914 wine_fn_config_test dlls/d3d10/tests d3d10_test
14915 wine_fn_config_dll d3d10core enable_d3d10core implib
14916 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14917 wine_fn_config_dll d3d8 enable_d3d8 implib
14918 wine_fn_config_test dlls/d3d8/tests d3d8_test
14919 wine_fn_config_dll d3d9 enable_d3d9 implib
14920 wine_fn_config_test dlls/d3d9/tests d3d9_test
14921 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14922 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14923 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14924 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14925 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14926 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14927 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14928 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14929 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14930 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14931 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14932 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14933 wine_fn_config_dll d3dim enable_d3dim implib
14934 wine_fn_config_dll d3drm enable_d3drm implib
14935 wine_fn_config_test dlls/d3drm/tests d3drm_test
14936 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14937 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14938 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14939 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14940 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14941 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14942 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14943 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14944 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14945 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14946 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14947 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14948 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14949 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14950 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14951 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14952 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14953 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14954 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14955 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14956 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14957 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14958 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14959 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14960 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14961 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14962 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14963 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14964 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14965 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14966 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14967 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14968 wine_fn_config_dll d3dxof enable_d3dxof implib
14969 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14970 wine_fn_config_dll dbgeng enable_dbgeng implib
14971 wine_fn_config_dll dbghelp enable_dbghelp implib
14972 wine_fn_config_dll dciman32 enable_dciman32 implib
14973 wine_fn_config_dll ddeml.dll16 enable_win16
14974 wine_fn_config_dll ddraw enable_ddraw implib
14975 wine_fn_config_test dlls/ddraw/tests ddraw_test
14976 wine_fn_config_dll ddrawex enable_ddrawex
14977 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14978 wine_fn_config_dll devenum enable_devenum
14979 wine_fn_config_dll dinput enable_dinput implib,staticimplib
14980 wine_fn_config_test dlls/dinput/tests dinput_test
14981 wine_fn_config_dll dinput8 enable_dinput8 implib
14982 wine_fn_config_dll dispdib.dll16 enable_win16
14983 wine_fn_config_dll dispex enable_dispex
14984 wine_fn_config_test dlls/dispex/tests dispex_test
14985 wine_fn_config_dll display.drv16 enable_win16
14986 wine_fn_config_dll dmband enable_dmband
14987 wine_fn_config_dll dmcompos enable_dmcompos
14988 wine_fn_config_dll dmime enable_dmime
14989 wine_fn_config_test dlls/dmime/tests dmime_test
14990 wine_fn_config_dll dmloader enable_dmloader
14991 wine_fn_config_test dlls/dmloader/tests dmloader_test
14992 wine_fn_config_dll dmscript enable_dmscript
14993 wine_fn_config_dll dmstyle enable_dmstyle
14994 wine_fn_config_dll dmsynth enable_dmsynth
14995 wine_fn_config_dll dmusic enable_dmusic
14996 wine_fn_config_dll dmusic32 enable_dmusic32 implib
14997 wine_fn_config_dll dnsapi enable_dnsapi implib
14998 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14999 wine_fn_config_dll dplay enable_dplay implib
15000 wine_fn_config_dll dplayx enable_dplayx implib
15001 wine_fn_config_test dlls/dplayx/tests dplayx_test
15002 wine_fn_config_dll dpnaddr enable_dpnaddr
15003 wine_fn_config_dll dpnet enable_dpnet implib
15004 wine_fn_config_dll dpnhpast enable_dpnhpast
15005 wine_fn_config_dll dpnlobby enable_dpnlobby
15006 wine_fn_config_dll dpwsockx enable_dpwsockx
15007 wine_fn_config_dll drmclien enable_drmclien
15008 wine_fn_config_dll dsound enable_dsound implib
15009 wine_fn_config_test dlls/dsound/tests dsound_test
15010 wine_fn_config_dll dssenh enable_dssenh
15011 wine_fn_config_dll dswave enable_dswave
15012 wine_fn_config_dll dwmapi enable_dwmapi implib
15013 wine_fn_config_dll dxdiagn enable_dxdiagn
15014 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15015 wine_fn_config_lib dxerr8
15016 wine_fn_config_lib dxerr9
15017 wine_fn_config_dll dxgi enable_dxgi implib
15018 wine_fn_config_test dlls/dxgi/tests dxgi_test
15019 wine_fn_config_lib dxguid
15020 wine_fn_config_dll explorerframe enable_explorerframe
15021 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15022 wine_fn_config_dll faultrep enable_faultrep implib
15023 wine_fn_config_test dlls/faultrep/tests faultrep_test
15024 wine_fn_config_dll fltlib enable_fltlib
15025 wine_fn_config_dll fusion enable_fusion
15026 wine_fn_config_test dlls/fusion/tests fusion_test
15027 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15028 wine_fn_config_dll gameux enable_gameux
15029 wine_fn_config_test dlls/gameux/tests gameux_test
15030 wine_fn_config_dll gdi.exe16 enable_win16
15031 wine_fn_config_dll gdi32 enable_gdi32 implib
15032 wine_fn_config_test dlls/gdi32/tests gdi32_test
15033 wine_fn_config_dll gdiplus enable_gdiplus implib
15034 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15035 wine_fn_config_dll glu32 enable_glu32 implib
15036 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
15037 wine_fn_config_dll gpkcsp enable_gpkcsp
15038 wine_fn_config_dll hal enable_hal
15039 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
15040 wine_fn_config_dll hid enable_hid implib
15041 wine_fn_config_dll hlink enable_hlink implib
15042 wine_fn_config_test dlls/hlink/tests hlink_test
15043 wine_fn_config_dll hnetcfg enable_hnetcfg
15044 wine_fn_config_dll httpapi enable_httpapi
15045 wine_fn_config_dll iccvid enable_iccvid
15046 wine_fn_config_dll icmp enable_icmp
15047 wine_fn_config_dll ifsmgr.vxd enable_win16
15048 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15049 wine_fn_config_dll imagehlp enable_imagehlp implib
15050 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15051 wine_fn_config_dll imm.dll16 enable_win16
15052 wine_fn_config_dll imm32 enable_imm32 implib
15053 wine_fn_config_test dlls/imm32/tests imm32_test
15054 wine_fn_config_dll inetcomm enable_inetcomm implib
15055 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15056 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl
15057 wine_fn_config_dll inetmib1 enable_inetmib1
15058 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15059 wine_fn_config_dll infosoft enable_infosoft
15060 wine_fn_config_test dlls/infosoft/tests infosoft_test
15061 wine_fn_config_dll initpki enable_initpki
15062 wine_fn_config_dll inkobj enable_inkobj
15063 wine_fn_config_dll inseng enable_inseng
15064 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15065 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15066 wine_fn_config_dll itircl enable_itircl
15067 wine_fn_config_dll itss enable_itss
15068 wine_fn_config_test dlls/itss/tests itss_test
15069 wine_fn_config_dll jscript enable_jscript
15070 wine_fn_config_test dlls/jscript/tests jscript_test
15071 wine_fn_config_dll kernel32 enable_kernel32 implib
15072 wine_fn_config_test dlls/kernel32/tests kernel32_test
15073 wine_fn_config_dll keyboard.drv16 enable_win16
15074 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15075 wine_fn_config_dll ktmw32 enable_ktmw32
15076 wine_fn_config_dll loadperf enable_loadperf implib
15077 wine_fn_config_dll localspl enable_localspl
15078 wine_fn_config_test dlls/localspl/tests localspl_test
15079 wine_fn_config_dll localui enable_localui
15080 wine_fn_config_test dlls/localui/tests localui_test
15081 wine_fn_config_dll lz32 enable_lz32 implib
15082 wine_fn_config_test dlls/lz32/tests lz32_test
15083 wine_fn_config_dll lzexpand.dll16 enable_win16
15084 wine_fn_config_dll mapi32 enable_mapi32 implib
15085 wine_fn_config_test dlls/mapi32/tests mapi32_test
15086 wine_fn_config_dll mapistub enable_mapistub
15087 wine_fn_config_dll mciavi32 enable_mciavi32
15088 wine_fn_config_dll mcicda enable_mcicda
15089 wine_fn_config_dll mciqtz32 enable_mciqtz32
15090 wine_fn_config_dll mciseq enable_mciseq
15091 wine_fn_config_dll mciwave enable_mciwave
15092 wine_fn_config_dll midimap enable_midimap
15093 wine_fn_config_dll mlang enable_mlang implib
15094 wine_fn_config_test dlls/mlang/tests mlang_test
15095 wine_fn_config_dll mmdevapi enable_mmdevapi
15096 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15097 wine_fn_config_dll mmdevldr.vxd enable_win16
15098 wine_fn_config_dll mmsystem.dll16 enable_win16
15099 wine_fn_config_dll monodebg.vxd enable_win16
15100 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15101 wine_fn_config_dll mouse.drv16 enable_win16
15102 wine_fn_config_dll mpr enable_mpr implib
15103 wine_fn_config_dll mprapi enable_mprapi implib
15104 wine_fn_config_dll msacm.dll16 enable_win16
15105 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15106 wine_fn_config_dll msacm32 enable_msacm32 implib
15107 wine_fn_config_test dlls/msacm32/tests msacm32_test
15108 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15109 wine_fn_config_dll mscat32 enable_mscat32
15110 wine_fn_config_dll mscms enable_mscms implib
15111 wine_fn_config_test dlls/mscms/tests mscms_test
15112 wine_fn_config_dll mscoree enable_mscoree
15113 wine_fn_config_test dlls/mscoree/tests mscoree_test
15114 wine_fn_config_dll msctf enable_msctf
15115 wine_fn_config_test dlls/msctf/tests msctf_test
15116 wine_fn_config_dll msdaps enable_msdaps
15117 wine_fn_config_dll msdmo enable_msdmo implib
15118 wine_fn_config_dll msftedit enable_msftedit
15119 wine_fn_config_dll msg711.acm enable_msg711_acm
15120 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15121 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15122 wine_fn_config_dll mshtml enable_mshtml implib
15123 wine_fn_config_test dlls/mshtml/tests mshtml_test
15124 wine_fn_config_dll msi enable_msi implib
15125 wine_fn_config_test dlls/msi/tests msi_test
15126 wine_fn_config_dll msimg32 enable_msimg32 implib
15127 wine_fn_config_dll msimtf enable_msimtf
15128 wine_fn_config_dll msisip enable_msisip
15129 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15130 wine_fn_config_dll msnet32 enable_msnet32
15131 wine_fn_config_dll msrle32 enable_msrle32
15132 wine_fn_config_dll mssign32 enable_mssign32
15133 wine_fn_config_dll mssip32 enable_mssip32
15134 wine_fn_config_dll mstask enable_mstask
15135 wine_fn_config_test dlls/mstask/tests mstask_test
15136 wine_fn_config_dll msvcirt enable_msvcirt
15137 wine_fn_config_dll msvcp80 enable_msvcp80
15138 wine_fn_config_dll msvcp90 enable_msvcp90
15139 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15140 wine_fn_config_dll msvcr100 enable_msvcr100
15141 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15142 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15143 wine_fn_config_dll msvcr80 enable_msvcr80
15144 wine_fn_config_dll msvcr90 enable_msvcr90
15145 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15146 wine_fn_config_dll msvcrt enable_msvcrt implib
15147 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15148 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15149 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15150 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15151 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15152 wine_fn_config_dll msvfw32 enable_msvfw32 implib
15153 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15154 wine_fn_config_dll msvidc32 enable_msvidc32
15155 wine_fn_config_dll msvideo.dll16 enable_win16
15156 wine_fn_config_dll mswsock enable_mswsock implib
15157 wine_fn_config_dll msxml enable_msxml
15158 wine_fn_config_dll msxml2 enable_msxml2
15159 wine_fn_config_dll msxml3 enable_msxml3
15160 wine_fn_config_test dlls/msxml3/tests msxml3_test
15161 wine_fn_config_dll msxml4 enable_msxml4
15162 wine_fn_config_dll msxml6 enable_msxml6
15163 wine_fn_config_dll nddeapi enable_nddeapi implib
15164 wine_fn_config_dll netapi32 enable_netapi32 implib
15165 wine_fn_config_test dlls/netapi32/tests netapi32_test
15166 wine_fn_config_dll newdev enable_newdev implib
15167 wine_fn_config_dll normaliz enable_normaliz implib
15168 wine_fn_config_dll npmshtml enable_npmshtml
15169 wine_fn_config_dll ntdll enable_ntdll implib
15170 wine_fn_config_test dlls/ntdll/tests ntdll_test
15171 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15172 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15173 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15174 wine_fn_config_dll ntprint enable_ntprint
15175 wine_fn_config_test dlls/ntprint/tests ntprint_test
15176 wine_fn_config_dll objsel enable_objsel
15177 wine_fn_config_dll odbc32 enable_odbc32 implib
15178 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15179 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15180 wine_fn_config_dll ole2.dll16 enable_win16
15181 wine_fn_config_dll ole2conv.dll16 enable_win16
15182 wine_fn_config_dll ole2disp.dll16 enable_win16
15183 wine_fn_config_dll ole2nls.dll16 enable_win16
15184 wine_fn_config_dll ole2prox.dll16 enable_win16
15185 wine_fn_config_dll ole2thk.dll16 enable_win16
15186 wine_fn_config_dll ole32 enable_ole32 implib
15187 wine_fn_config_test dlls/ole32/tests ole32_test
15188 wine_fn_config_dll oleacc enable_oleacc implib
15189 wine_fn_config_test dlls/oleacc/tests oleacc_test
15190 wine_fn_config_dll oleaut32 enable_oleaut32 implib
15191 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15192 wine_fn_config_dll olecli.dll16 enable_win16
15193 wine_fn_config_dll olecli32 enable_olecli32 implib
15194 wine_fn_config_dll oledb32 enable_oledb32
15195 wine_fn_config_test dlls/oledb32/tests oledb32_test
15196 wine_fn_config_dll oledlg enable_oledlg implib
15197 wine_fn_config_dll olepro32 enable_olepro32 implib
15198 wine_fn_config_dll olesvr.dll16 enable_win16
15199 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15200 wine_fn_config_dll olethk32 enable_olethk32
15201 wine_fn_config_dll openal32 enable_openal32
15202 wine_fn_config_dll opencl enable_opencl
15203 wine_fn_config_dll opengl32 enable_opengl32 implib
15204 wine_fn_config_test dlls/opengl32/tests opengl32_test
15205 wine_fn_config_dll pdh enable_pdh implib
15206 wine_fn_config_test dlls/pdh/tests pdh_test
15207 wine_fn_config_dll pidgen enable_pidgen
15208 wine_fn_config_dll powrprof enable_powrprof implib
15209 wine_fn_config_dll printui enable_printui
15210 wine_fn_config_dll propsys enable_propsys implib
15211 wine_fn_config_test dlls/propsys/tests propsys_test
15212 wine_fn_config_dll psapi enable_psapi implib
15213 wine_fn_config_test dlls/psapi/tests psapi_test
15214 wine_fn_config_dll pstorec enable_pstorec
15215 wine_fn_config_dll qcap enable_qcap
15216 wine_fn_config_dll qedit enable_qedit
15217 wine_fn_config_test dlls/qedit/tests qedit_test
15218 wine_fn_config_dll qmgr enable_qmgr
15219 wine_fn_config_test dlls/qmgr/tests qmgr_test
15220 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15221 wine_fn_config_dll quartz enable_quartz implib
15222 wine_fn_config_test dlls/quartz/tests quartz_test
15223 wine_fn_config_dll query enable_query
15224 wine_fn_config_dll rasapi16.dll16 enable_win16
15225 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15226 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15227 wine_fn_config_dll rasdlg enable_rasdlg implib
15228 wine_fn_config_dll resutils enable_resutils implib
15229 wine_fn_config_dll riched20 enable_riched20 implib
15230 wine_fn_config_test dlls/riched20/tests riched20_test
15231 wine_fn_config_dll riched32 enable_riched32
15232 wine_fn_config_test dlls/riched32/tests riched32_test
15233 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15234 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15235 wine_fn_config_dll rsabase enable_rsabase
15236 wine_fn_config_dll rsaenh enable_rsaenh implib
15237 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15238 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15239 wine_fn_config_dll rtutils enable_rtutils implib
15240 wine_fn_config_dll samlib enable_samlib
15241 wine_fn_config_dll sane.ds enable_sane_ds
15242 wine_fn_config_dll sccbase enable_sccbase
15243 wine_fn_config_dll schannel enable_schannel
15244 wine_fn_config_test dlls/schannel/tests schannel_test
15245 wine_fn_config_dll secur32 enable_secur32 implib
15246 wine_fn_config_test dlls/secur32/tests secur32_test
15247 wine_fn_config_dll security enable_security
15248 wine_fn_config_dll sensapi enable_sensapi implib
15249 wine_fn_config_dll serialui enable_serialui implib
15250 wine_fn_config_test dlls/serialui/tests serialui_test
15251 wine_fn_config_dll setupapi enable_setupapi implib
15252 wine_fn_config_test dlls/setupapi/tests setupapi_test
15253 wine_fn_config_dll setupx.dll16 enable_win16
15254 wine_fn_config_dll sfc enable_sfc implib
15255 wine_fn_config_dll sfc_os enable_sfc_os implib
15256 wine_fn_config_dll shdoclc enable_shdoclc
15257 wine_fn_config_dll shdocvw enable_shdocvw implib
15258 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15259 wine_fn_config_dll shell.dll16 enable_win16
15260 wine_fn_config_dll shell32 enable_shell32 implib
15261 wine_fn_config_test dlls/shell32/tests shell32_test
15262 wine_fn_config_dll shfolder enable_shfolder implib
15263 wine_fn_config_dll shlwapi enable_shlwapi implib
15264 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15265 wine_fn_config_dll slbcsp enable_slbcsp
15266 wine_fn_config_dll slc enable_slc implib
15267 wine_fn_config_dll snmpapi enable_snmpapi implib
15268 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15269 wine_fn_config_dll softpub enable_softpub
15270 wine_fn_config_dll sound.drv16 enable_win16
15271 wine_fn_config_dll spoolss enable_spoolss implib
15272 wine_fn_config_test dlls/spoolss/tests spoolss_test
15273 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15274 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15275 wine_fn_config_dll sti enable_sti implib
15276 wine_fn_config_test dlls/sti/tests sti_test
15277 wine_fn_config_dll storage.dll16 enable_win16
15278 wine_fn_config_dll stress.dll16 enable_win16
15279 wine_fn_config_lib strmbase
15280 wine_fn_config_lib strmiids
15281 wine_fn_config_dll svrapi enable_svrapi
15282 wine_fn_config_dll sxs enable_sxs
15283 wine_fn_config_dll system.drv16 enable_win16
15284 wine_fn_config_dll t2embed enable_t2embed
15285 wine_fn_config_dll tapi32 enable_tapi32 implib
15286 wine_fn_config_dll toolhelp.dll16 enable_win16
15287 wine_fn_config_dll traffic enable_traffic
15288 wine_fn_config_dll twain.dll16 enable_win16
15289 wine_fn_config_dll twain_32 enable_twain_32
15290 wine_fn_config_test dlls/twain_32/tests twain_32_test
15291 wine_fn_config_dll typelib.dll16 enable_win16
15292 wine_fn_config_dll unicows enable_unicows implib
15293 wine_fn_config_dll updspapi enable_updspapi
15294 wine_fn_config_dll url enable_url implib
15295 wine_fn_config_dll urlmon enable_urlmon implib
15296 wine_fn_config_test dlls/urlmon/tests urlmon_test
15297 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15298 wine_fn_config_dll user.exe16 enable_win16
15299 wine_fn_config_dll user32 enable_user32 implib
15300 wine_fn_config_test dlls/user32/tests user32_test
15301 wine_fn_config_dll userenv enable_userenv implib
15302 wine_fn_config_test dlls/userenv/tests userenv_test
15303 wine_fn_config_dll usp10 enable_usp10 implib
15304 wine_fn_config_test dlls/usp10/tests usp10_test
15305 wine_fn_config_lib uuid
15306 wine_fn_config_dll uxtheme enable_uxtheme implib
15307 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15308 wine_fn_config_dll vdhcp.vxd enable_win16
15309 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15310 wine_fn_config_dll ver.dll16 enable_win16
15311 wine_fn_config_dll version enable_version implib
15312 wine_fn_config_test dlls/version/tests version_test
15313 wine_fn_config_dll vmm.vxd enable_win16
15314 wine_fn_config_dll vnbt.vxd enable_win16
15315 wine_fn_config_dll vnetbios.vxd enable_win16
15316 wine_fn_config_dll vtdapi.vxd enable_win16
15317 wine_fn_config_dll vwin32.vxd enable_win16
15318 wine_fn_config_dll w32skrnl enable_win16
15319 wine_fn_config_dll w32sys.dll16 enable_win16
15320 wine_fn_config_dll wbemprox enable_wbemprox
15321 wine_fn_config_dll wer enable_wer implib
15322 wine_fn_config_test dlls/wer/tests wer_test
15323 wine_fn_config_dll wiaservc enable_wiaservc
15324 wine_fn_config_dll win32s16.dll16 enable_win16
15325 wine_fn_config_dll win87em.dll16 enable_win16
15326 wine_fn_config_dll winaspi.dll16 enable_win16
15327 wine_fn_config_dll windebug.dll16 enable_win16
15328 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15329 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15330 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15331 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15332 wine_fn_config_lib winecrt0
15333 wine_fn_config_dll wined3d enable_wined3d implib
15334 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15335 wine_fn_config_dll winegstreamer enable_winegstreamer
15336 wine_fn_config_dll winejack.drv enable_winejack_drv
15337 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15338 wine_fn_config_dll winemapi enable_winemapi
15339 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15340 wine_fn_config_dll winenas.drv enable_winenas_drv
15341 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15342 wine_fn_config_dll wineps.drv enable_wineps_drv
15343 wine_fn_config_dll wineps16.drv16 enable_win16
15344 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15345 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15346 wine_fn_config_dll winex11.drv enable_winex11_drv
15347 wine_fn_config_dll wing.dll16 enable_win16
15348 wine_fn_config_dll wing32 enable_wing32
15349 wine_fn_config_dll winhttp enable_winhttp implib
15350 wine_fn_config_test dlls/winhttp/tests winhttp_test
15351 wine_fn_config_dll wininet enable_wininet implib
15352 wine_fn_config_test dlls/wininet/tests wininet_test
15353 wine_fn_config_dll winmm enable_winmm implib
15354 wine_fn_config_test dlls/winmm/tests winmm_test
15355 wine_fn_config_dll winnls.dll16 enable_win16
15356 wine_fn_config_dll winnls32 enable_winnls32 implib
15357 wine_fn_config_dll winscard enable_winscard implib
15358 wine_fn_config_dll winsock.dll16 enable_win16
15359 wine_fn_config_dll winspool.drv enable_winspool_drv implib winspool
15360 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15361 wine_fn_config_dll wintab.dll16 enable_win16
15362 wine_fn_config_dll wintab32 enable_wintab32 implib
15363 wine_fn_config_test dlls/wintab32/tests wintab32_test
15364 wine_fn_config_dll wintrust enable_wintrust implib
15365 wine_fn_config_test dlls/wintrust/tests wintrust_test
15366 wine_fn_config_dll wlanapi enable_wlanapi
15367 wine_fn_config_dll wldap32 enable_wldap32 implib
15368 wine_fn_config_test dlls/wldap32/tests wldap32_test
15369 wine_fn_config_dll wmi enable_wmi
15370 wine_fn_config_dll wmiutils enable_wmiutils
15371 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15372 wine_fn_config_dll wow32 enable_win16 implib
15373 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15374 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15375 wine_fn_config_dll wsock32 enable_wsock32 implib
15376 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15377 wine_fn_config_dll wuapi enable_wuapi
15378 wine_fn_config_dll wuaueng enable_wuaueng
15379 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15380 wine_fn_config_dll xinput1_1 enable_xinput1_1
15381 wine_fn_config_dll xinput1_2 enable_xinput1_2
15382 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15383 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15384 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15385 wine_fn_config_dll xmllite enable_xmllite
15386 wine_fn_config_test dlls/xmllite/tests xmllite_test
15387 wine_fn_config_makefile documentation enable_documentation
15388 wine_fn_config_makefile fonts enable_fonts
15389 wine_fn_config_makefile include enable_include
15390 wine_fn_config_makefile libs/port enable_libs_port
15391 wine_fn_config_makefile libs/wine enable_libs_wine
15392 wine_fn_config_makefile libs/wpp enable_libs_wpp
15393 wine_fn_config_makefile loader enable_loader
15394 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15395 wine_fn_config_program attrib enable_attrib install
15396 wine_fn_config_program cacls enable_cacls install
15397 wine_fn_config_program clock enable_clock po,install
15398 wine_fn_config_program cmd enable_cmd po,install
15399 wine_fn_config_test programs/cmd/tests cmd.exe_test
15400 wine_fn_config_program cmdlgtst enable_cmdlgtst
15401 wine_fn_config_program control enable_control install
15402 wine_fn_config_program dxdiag enable_dxdiag install
15403 wine_fn_config_program eject enable_eject install
15404 wine_fn_config_program expand enable_expand install
15405 wine_fn_config_program explorer enable_explorer install
15406 wine_fn_config_program extrac32 enable_extrac32 install
15407 wine_fn_config_program hh enable_hh install
15408 wine_fn_config_program icinfo enable_icinfo install
15409 wine_fn_config_program iexplore enable_iexplore install
15410 wine_fn_config_program ipconfig enable_ipconfig po,install
15411 wine_fn_config_program lodctr enable_lodctr install
15412 wine_fn_config_program mofcomp enable_mofcomp install
15413 wine_fn_config_program mshta enable_mshta install
15414 wine_fn_config_program msiexec enable_msiexec install,installbin
15415 wine_fn_config_program net enable_net po,install
15416 wine_fn_config_program netsh enable_netsh install
15417 wine_fn_config_program ngen enable_ngen install
15418 wine_fn_config_program notepad enable_notepad install,installbin
15419 wine_fn_config_program oleview enable_oleview install
15420 wine_fn_config_program ping enable_ping install
15421 wine_fn_config_program progman enable_progman install
15422 wine_fn_config_program reg enable_reg po,install
15423 wine_fn_config_program regedit enable_regedit install,installbin
15424 wine_fn_config_test programs/regedit/tests regedit.exe_test
15425 wine_fn_config_program regsvcs enable_regsvcs install
15426 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
15427 wine_fn_config_program rpcss enable_rpcss install
15428 wine_fn_config_program rundll.exe16 enable_win16 install
15429 wine_fn_config_program rundll32 enable_rundll32 install
15430 wine_fn_config_program sc enable_sc install
15431 wine_fn_config_program secedit enable_secedit install
15432 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15433 wine_fn_config_program services enable_services install
15434 wine_fn_config_program spoolsv enable_spoolsv install
15435 wine_fn_config_program start enable_start po,install
15436 wine_fn_config_program svchost enable_svchost install
15437 wine_fn_config_program taskkill enable_taskkill po,install
15438 wine_fn_config_program taskmgr enable_taskmgr install
15439 wine_fn_config_program termsv enable_termsv install
15440 wine_fn_config_program uninstaller enable_uninstaller po,install
15441 wine_fn_config_program unlodctr enable_unlodctr install
15442 wine_fn_config_program view enable_view
15443 wine_fn_config_program wineboot enable_wineboot install,installbin
15444 wine_fn_config_program winebrowser enable_winebrowser install
15445 wine_fn_config_program winecfg enable_winecfg install,installbin
15446 wine_fn_config_program wineconsole enable_wineconsole install,installbin
15447 wine_fn_config_program winedbg enable_winedbg install,installbin
15448 wine_fn_config_program winedevice enable_winedevice install
15449 wine_fn_config_program winefile enable_winefile install,installbin
15450 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15451 wine_fn_config_program winemine enable_winemine install,installbin
15452 wine_fn_config_program winepath enable_winepath install,installbin
15453 wine_fn_config_program winetest enable_winetest
15454 wine_fn_config_program winevdm enable_win16 install
15455 wine_fn_config_program winhelp.exe16 enable_win16 install
15456 wine_fn_config_program winhlp32 enable_winhlp32 install
15457 wine_fn_config_program winoldap.mod16 enable_win16 install
15458 wine_fn_config_program winver enable_winver install
15459 wine_fn_config_program wmic enable_wmic install
15460 wine_fn_config_program wordpad enable_wordpad install
15461 wine_fn_config_program write enable_write po,install
15462 wine_fn_config_program wscript enable_wscript install
15463 wine_fn_config_program xcopy enable_xcopy po,install
15464 wine_fn_config_makefile server enable_server
15465 wine_fn_config_tool tools
15466 wine_fn_config_tool tools/widl
15467 wine_fn_config_tool tools/winebuild
15468 wine_fn_config_tool tools/winedump
15469 wine_fn_config_tool tools/winegcc
15470 wine_fn_config_tool tools/wmc
15471 wine_fn_config_tool tools/wrc
15473 LINGUAS="\
15474 bg \
15475 cs \
15476 da \
15477 de \
15478 en_US \
15479 eo \
15480 es \
15481 fi \
15482 fr \
15483 he \
15484 hi \
15485 hu \
15486 it \
15487 ja \
15488 ko \
15489 lt \
15490 ml \
15491 nb_NO \
15492 nl \
15493 or \
15494 pa \
15495 pl \
15496 pt_BR \
15497 pt_PT \
15498 ro \
15499 ru \
15500 sk \
15501 sl \
15502 sr_Latn_SP \
15503 sr_SP \
15504 sv \
15505 te \
15506 th \
15507 tr \
15508 uk \
15509 wa \
15510 zh_CN \
15511 zh_TW"
15515 ac_config_commands="$ac_config_commands Makefile"
15518 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15522 if test "x$enable_maintainer_mode" = xyes
15523 then
15524 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15525 cd \$(srcdir) && autoconf --warnings=all
15526 \$(srcdir)/include/config.h.in: include/stamp-h.in
15527 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15528 cd \$(srcdir) && autoheader --warnings=all
15529 @echo timestamp > \$@
15531 ALL_POT_FILES =$ALL_POT_FILES
15532 all: \$(ALL_PO_FILES)
15533 \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
15534 msgmerge -U -q --backup=none \$@ \$(srcdir)/po/wine.pot && touch \$@
15535 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15536 msgcat -o \$@ \$(ALL_POT_FILES)"
15539 if test -n "$with_wine64"
15540 then
15541 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15542 fonts server:
15543 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15544 $with_wine64/loader/wine:
15545 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15546 $with_wine64/loader/wine-preloader:
15547 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15548 clean::
15549 \$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15552 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15553 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15555 cat >confcache <<\_ACEOF
15556 # This file is a shell script that caches the results of configure
15557 # tests run on this system so they can be shared between configure
15558 # scripts and configure runs, see configure's option --config-cache.
15559 # It is not useful on other systems. If it contains results you don't
15560 # want to keep, you may remove or edit it.
15562 # config.status only pays attention to the cache file if you give it
15563 # the --recheck option to rerun configure.
15565 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15566 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15567 # following values.
15569 _ACEOF
15571 # The following way of writing the cache mishandles newlines in values,
15572 # but we know of no workaround that is simple, portable, and efficient.
15573 # So, we kill variables containing newlines.
15574 # Ultrix sh set writes to stderr and can't be redirected directly,
15575 # and sets the high bit in the cache file unless we assign to the vars.
15577 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15578 eval ac_val=\$$ac_var
15579 case $ac_val in #(
15580 *${as_nl}*)
15581 case $ac_var in #(
15582 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15583 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15584 esac
15585 case $ac_var in #(
15586 _ | IFS | as_nl) ;; #(
15587 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15588 *) { eval $ac_var=; unset $ac_var;} ;;
15589 esac ;;
15590 esac
15591 done
15593 (set) 2>&1 |
15594 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15595 *${as_nl}ac_space=\ *)
15596 # `set' does not quote correctly, so add quotes: double-quote
15597 # substitution turns \\\\ into \\, and sed turns \\ into \.
15598 sed -n \
15599 "s/'/'\\\\''/g;
15600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15601 ;; #(
15603 # `set' quotes correctly as required by POSIX, so do not add quotes.
15604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15606 esac |
15607 sort
15609 sed '
15610 /^ac_cv_env_/b end
15611 t clear
15612 :clear
15613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15614 t end
15615 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15616 :end' >>confcache
15617 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15618 if test -w "$cache_file"; then
15619 test "x$cache_file" != "x/dev/null" &&
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15621 $as_echo "$as_me: updating cache $cache_file" >&6;}
15622 cat confcache >$cache_file
15623 else
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15625 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15628 rm -f confcache
15630 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15631 # Let make expand exec_prefix.
15632 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15634 DEFS=-DHAVE_CONFIG_H
15636 ac_libobjs=
15637 ac_ltlibobjs=
15639 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15640 # 1. Remove the extension, and $U if already installed.
15641 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15642 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15643 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15644 # will be set to the directory where LIBOBJS objects are built.
15645 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15646 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15647 done
15648 LIBOBJS=$ac_libobjs
15650 LTLIBOBJS=$ac_ltlibobjs
15654 : ${CONFIG_STATUS=./config.status}
15655 ac_write_fail=0
15656 ac_clean_files_save=$ac_clean_files
15657 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15659 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15660 as_write_fail=0
15661 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15662 #! $SHELL
15663 # Generated by $as_me.
15664 # Run this file to recreate the current configuration.
15665 # Compiler output produced by configure, useful for debugging
15666 # configure, is in config.log if it exists.
15668 debug=false
15669 ac_cs_recheck=false
15670 ac_cs_silent=false
15672 SHELL=\${CONFIG_SHELL-$SHELL}
15673 export SHELL
15674 _ASEOF
15675 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15676 ## -------------------- ##
15677 ## M4sh Initialization. ##
15678 ## -------------------- ##
15680 # Be more Bourne compatible
15681 DUALCASE=1; export DUALCASE # for MKS sh
15682 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15683 emulate sh
15684 NULLCMD=:
15685 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15686 # is contrary to our usage. Disable this feature.
15687 alias -g '${1+"$@"}'='"$@"'
15688 setopt NO_GLOB_SUBST
15689 else
15690 case `(set -o) 2>/dev/null` in #(
15691 *posix*) :
15692 set -o posix ;; #(
15693 *) :
15695 esac
15699 as_nl='
15701 export as_nl
15702 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15703 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15705 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15706 # Prefer a ksh shell builtin over an external printf program on Solaris,
15707 # but without wasting forks for bash or zsh.
15708 if test -z "$BASH_VERSION$ZSH_VERSION" \
15709 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15710 as_echo='print -r --'
15711 as_echo_n='print -rn --'
15712 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15713 as_echo='printf %s\n'
15714 as_echo_n='printf %s'
15715 else
15716 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15717 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15718 as_echo_n='/usr/ucb/echo -n'
15719 else
15720 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15721 as_echo_n_body='eval
15722 arg=$1;
15723 case $arg in #(
15724 *"$as_nl"*)
15725 expr "X$arg" : "X\\(.*\\)$as_nl";
15726 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15727 esac;
15728 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15730 export as_echo_n_body
15731 as_echo_n='sh -c $as_echo_n_body as_echo'
15733 export as_echo_body
15734 as_echo='sh -c $as_echo_body as_echo'
15737 # The user is always right.
15738 if test "${PATH_SEPARATOR+set}" != set; then
15739 PATH_SEPARATOR=:
15740 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15741 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15742 PATH_SEPARATOR=';'
15747 # IFS
15748 # We need space, tab and new line, in precisely that order. Quoting is
15749 # there to prevent editors from complaining about space-tab.
15750 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15751 # splitting by setting IFS to empty value.)
15752 IFS=" "" $as_nl"
15754 # Find who we are. Look in the path if we contain no directory separator.
15755 case $0 in #((
15756 *[\\/]* ) as_myself=$0 ;;
15757 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758 for as_dir in $PATH
15760 IFS=$as_save_IFS
15761 test -z "$as_dir" && as_dir=.
15762 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15763 done
15764 IFS=$as_save_IFS
15767 esac
15768 # We did not find ourselves, most probably we were run as `sh COMMAND'
15769 # in which case we are not to be found in the path.
15770 if test "x$as_myself" = x; then
15771 as_myself=$0
15773 if test ! -f "$as_myself"; then
15774 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15775 exit 1
15778 # Unset variables that we do not need and which cause bugs (e.g. in
15779 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15780 # suppresses any "Segmentation fault" message there. '((' could
15781 # trigger a bug in pdksh 5.2.14.
15782 for as_var in BASH_ENV ENV MAIL MAILPATH
15783 do eval test x\${$as_var+set} = xset \
15784 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15785 done
15786 PS1='$ '
15787 PS2='> '
15788 PS4='+ '
15790 # NLS nuisances.
15791 LC_ALL=C
15792 export LC_ALL
15793 LANGUAGE=C
15794 export LANGUAGE
15796 # CDPATH.
15797 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15800 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15801 # ----------------------------------------
15802 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15803 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15804 # script with STATUS, using 1 if that was 0.
15805 as_fn_error ()
15807 as_status=$1; test $as_status -eq 0 && as_status=1
15808 if test "$4"; then
15809 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15810 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15812 $as_echo "$as_me: error: $2" >&2
15813 as_fn_exit $as_status
15814 } # as_fn_error
15817 # as_fn_set_status STATUS
15818 # -----------------------
15819 # Set $? to STATUS, without forking.
15820 as_fn_set_status ()
15822 return $1
15823 } # as_fn_set_status
15825 # as_fn_exit STATUS
15826 # -----------------
15827 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15828 as_fn_exit ()
15830 set +e
15831 as_fn_set_status $1
15832 exit $1
15833 } # as_fn_exit
15835 # as_fn_unset VAR
15836 # ---------------
15837 # Portably unset VAR.
15838 as_fn_unset ()
15840 { eval $1=; unset $1;}
15842 as_unset=as_fn_unset
15843 # as_fn_append VAR VALUE
15844 # ----------------------
15845 # Append the text in VALUE to the end of the definition contained in VAR. Take
15846 # advantage of any shell optimizations that allow amortized linear growth over
15847 # repeated appends, instead of the typical quadratic growth present in naive
15848 # implementations.
15849 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15850 eval 'as_fn_append ()
15852 eval $1+=\$2
15854 else
15855 as_fn_append ()
15857 eval $1=\$$1\$2
15859 fi # as_fn_append
15861 # as_fn_arith ARG...
15862 # ------------------
15863 # Perform arithmetic evaluation on the ARGs, and store the result in the
15864 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15865 # must be portable across $(()) and expr.
15866 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15867 eval 'as_fn_arith ()
15869 as_val=$(( $* ))
15871 else
15872 as_fn_arith ()
15874 as_val=`expr "$@" || test $? -eq 1`
15876 fi # as_fn_arith
15879 if expr a : '\(a\)' >/dev/null 2>&1 &&
15880 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15881 as_expr=expr
15882 else
15883 as_expr=false
15886 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15887 as_basename=basename
15888 else
15889 as_basename=false
15892 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15893 as_dirname=dirname
15894 else
15895 as_dirname=false
15898 as_me=`$as_basename -- "$0" ||
15899 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15900 X"$0" : 'X\(//\)$' \| \
15901 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15902 $as_echo X/"$0" |
15903 sed '/^.*\/\([^/][^/]*\)\/*$/{
15904 s//\1/
15907 /^X\/\(\/\/\)$/{
15908 s//\1/
15911 /^X\/\(\/\).*/{
15912 s//\1/
15915 s/.*/./; q'`
15917 # Avoid depending upon Character Ranges.
15918 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15919 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15920 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15921 as_cr_digits='0123456789'
15922 as_cr_alnum=$as_cr_Letters$as_cr_digits
15924 ECHO_C= ECHO_N= ECHO_T=
15925 case `echo -n x` in #(((((
15926 -n*)
15927 case `echo 'xy\c'` in
15928 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15929 xy) ECHO_C='\c';;
15930 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15931 ECHO_T=' ';;
15932 esac;;
15934 ECHO_N='-n';;
15935 esac
15937 rm -f conf$$ conf$$.exe conf$$.file
15938 if test -d conf$$.dir; then
15939 rm -f conf$$.dir/conf$$.file
15940 else
15941 rm -f conf$$.dir
15942 mkdir conf$$.dir 2>/dev/null
15944 if (echo >conf$$.file) 2>/dev/null; then
15945 if ln -s conf$$.file conf$$ 2>/dev/null; then
15946 as_ln_s='ln -s'
15947 # ... but there are two gotchas:
15948 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15949 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15950 # In both cases, we have to default to `cp -p'.
15951 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15952 as_ln_s='cp -p'
15953 elif ln conf$$.file conf$$ 2>/dev/null; then
15954 as_ln_s=ln
15955 else
15956 as_ln_s='cp -p'
15958 else
15959 as_ln_s='cp -p'
15961 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15962 rmdir conf$$.dir 2>/dev/null
15965 # as_fn_mkdir_p
15966 # -------------
15967 # Create "$as_dir" as a directory, including parents if necessary.
15968 as_fn_mkdir_p ()
15971 case $as_dir in #(
15972 -*) as_dir=./$as_dir;;
15973 esac
15974 test -d "$as_dir" || eval $as_mkdir_p || {
15975 as_dirs=
15976 while :; do
15977 case $as_dir in #(
15978 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15979 *) as_qdir=$as_dir;;
15980 esac
15981 as_dirs="'$as_qdir' $as_dirs"
15982 as_dir=`$as_dirname -- "$as_dir" ||
15983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15984 X"$as_dir" : 'X\(//\)[^/]' \| \
15985 X"$as_dir" : 'X\(//\)$' \| \
15986 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15987 $as_echo X"$as_dir" |
15988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15989 s//\1/
15992 /^X\(\/\/\)[^/].*/{
15993 s//\1/
15996 /^X\(\/\/\)$/{
15997 s//\1/
16000 /^X\(\/\).*/{
16001 s//\1/
16004 s/.*/./; q'`
16005 test -d "$as_dir" && break
16006 done
16007 test -z "$as_dirs" || eval "mkdir $as_dirs"
16008 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16011 } # as_fn_mkdir_p
16012 if mkdir -p . 2>/dev/null; then
16013 as_mkdir_p='mkdir -p "$as_dir"'
16014 else
16015 test -d ./-p && rmdir ./-p
16016 as_mkdir_p=false
16019 if test -x / >/dev/null 2>&1; then
16020 as_test_x='test -x'
16021 else
16022 if ls -dL / >/dev/null 2>&1; then
16023 as_ls_L_option=L
16024 else
16025 as_ls_L_option=
16027 as_test_x='
16028 eval sh -c '\''
16029 if test -d "$1"; then
16030 test -d "$1/.";
16031 else
16032 case $1 in #(
16033 -*)set "./$1";;
16034 esac;
16035 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16036 ???[sx]*):;;*)false;;esac;fi
16037 '\'' sh
16040 as_executable_p=$as_test_x
16042 # Sed expression to map a string onto a valid CPP name.
16043 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16045 # Sed expression to map a string onto a valid variable name.
16046 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16049 exec 6>&1
16050 ## ----------------------------------- ##
16051 ## Main body of $CONFIG_STATUS script. ##
16052 ## ----------------------------------- ##
16053 _ASEOF
16054 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16057 # Save the log message, to keep $0 and so on meaningful, and to
16058 # report actual input values of CONFIG_FILES etc. instead of their
16059 # values after options handling.
16060 ac_log="
16061 This file was extended by Wine $as_me 1.3.10, which was
16062 generated by GNU Autoconf 2.67. Invocation command line was
16064 CONFIG_FILES = $CONFIG_FILES
16065 CONFIG_HEADERS = $CONFIG_HEADERS
16066 CONFIG_LINKS = $CONFIG_LINKS
16067 CONFIG_COMMANDS = $CONFIG_COMMANDS
16068 $ $0 $@
16070 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16073 _ACEOF
16075 case $ac_config_files in *"
16076 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16077 esac
16079 case $ac_config_headers in *"
16080 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16081 esac
16084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16085 # Files that config.status was made for.
16086 config_files="$ac_config_files"
16087 config_headers="$ac_config_headers"
16088 config_links="$ac_config_links"
16089 config_commands="$ac_config_commands"
16091 _ACEOF
16093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16094 ac_cs_usage="\
16095 \`$as_me' instantiates files and other configuration actions
16096 from templates according to the current configuration. Unless the files
16097 and actions are specified as TAGs, all are instantiated by default.
16099 Usage: $0 [OPTION]... [TAG]...
16101 -h, --help print this help, then exit
16102 -V, --version print version number and configuration settings, then exit
16103 --config print configuration, then exit
16104 -q, --quiet, --silent
16105 do not print progress messages
16106 -d, --debug don't remove temporary files
16107 --recheck update $as_me by reconfiguring in the same conditions
16108 --file=FILE[:TEMPLATE]
16109 instantiate the configuration file FILE
16110 --header=FILE[:TEMPLATE]
16111 instantiate the configuration header FILE
16113 Configuration files:
16114 $config_files
16116 Configuration headers:
16117 $config_headers
16119 Configuration links:
16120 $config_links
16122 Configuration commands:
16123 $config_commands
16125 Report bugs to <wine-devel@winehq.org>.
16126 Wine home page: <http://www.winehq.org>."
16128 _ACEOF
16129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16130 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16131 ac_cs_version="\\
16132 Wine config.status 1.3.10
16133 configured by $0, generated by GNU Autoconf 2.67,
16134 with options \\"\$ac_cs_config\\"
16136 Copyright (C) 2010 Free Software Foundation, Inc.
16137 This config.status script is free software; the Free Software Foundation
16138 gives unlimited permission to copy, distribute and modify it."
16140 ac_pwd='$ac_pwd'
16141 srcdir='$srcdir'
16142 INSTALL='$INSTALL'
16143 test -n "\$AWK" || AWK=awk
16144 _ACEOF
16146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16147 # The default lists apply if the user does not specify any file.
16148 ac_need_defaults=:
16149 while test $# != 0
16151 case $1 in
16152 --*=?*)
16153 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16154 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16155 ac_shift=:
16157 --*=)
16158 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16159 ac_optarg=
16160 ac_shift=:
16163 ac_option=$1
16164 ac_optarg=$2
16165 ac_shift=shift
16167 esac
16169 case $ac_option in
16170 # Handling of the options.
16171 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16172 ac_cs_recheck=: ;;
16173 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16174 $as_echo "$ac_cs_version"; exit ;;
16175 --config | --confi | --conf | --con | --co | --c )
16176 $as_echo "$ac_cs_config"; exit ;;
16177 --debug | --debu | --deb | --de | --d | -d )
16178 debug=: ;;
16179 --file | --fil | --fi | --f )
16180 $ac_shift
16181 case $ac_optarg in
16182 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16183 '') as_fn_error $? "missing file argument" ;;
16184 esac
16185 as_fn_append CONFIG_FILES " '$ac_optarg'"
16186 ac_need_defaults=false;;
16187 --header | --heade | --head | --hea )
16188 $ac_shift
16189 case $ac_optarg in
16190 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16191 esac
16192 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16193 ac_need_defaults=false;;
16194 --he | --h)
16195 # Conflict between --help and --header
16196 as_fn_error $? "ambiguous option: \`$1'
16197 Try \`$0 --help' for more information.";;
16198 --help | --hel | -h )
16199 $as_echo "$ac_cs_usage"; exit ;;
16200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16201 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16202 ac_cs_silent=: ;;
16204 # This is an error.
16205 -*) as_fn_error $? "unrecognized option: \`$1'
16206 Try \`$0 --help' for more information." ;;
16208 *) as_fn_append ac_config_targets " $1"
16209 ac_need_defaults=false ;;
16211 esac
16212 shift
16213 done
16215 ac_configure_extra_args=
16217 if $ac_cs_silent; then
16218 exec 6>/dev/null
16219 ac_configure_extra_args="$ac_configure_extra_args --silent"
16222 _ACEOF
16223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16224 if \$ac_cs_recheck; then
16225 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16226 shift
16227 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16228 CONFIG_SHELL='$SHELL'
16229 export CONFIG_SHELL
16230 exec "\$@"
16233 _ACEOF
16234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16235 exec 5>>config.log
16237 echo
16238 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16239 ## Running $as_me. ##
16240 _ASBOX
16241 $as_echo "$ac_log"
16242 } >&5
16244 _ACEOF
16245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16247 # INIT-COMMANDS
16249 wine_fn_output_makefile ()
16251 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16252 $ALL_MAKEFILE_DEPENDS
16253 _WINE_EOF
16254 as_fn_error $? "could not create Makefile" "$LINENO" 5
16257 _ACEOF
16259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16261 # Handling of arguments.
16262 for ac_config_target in $ac_config_targets
16264 case $ac_config_target in
16265 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16266 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16267 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16268 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16269 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16270 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16271 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16272 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16273 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16274 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16275 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16276 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16277 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16278 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16279 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16280 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16281 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16282 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16283 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16284 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16285 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16286 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16287 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16289 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16290 esac
16291 done
16294 # If the user did not use the arguments to specify the items to instantiate,
16295 # then the envvar interface is used. Set only those that are not.
16296 # We use the long form for the default assignment because of an extremely
16297 # bizarre bug on SunOS 4.1.3.
16298 if $ac_need_defaults; then
16299 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16300 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16301 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16302 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16305 # Have a temporary directory for convenience. Make it in the build tree
16306 # simply because there is no reason against having it here, and in addition,
16307 # creating and moving files from /tmp can sometimes cause problems.
16308 # Hook for its removal unless debugging.
16309 # Note that there is a small window in which the directory will not be cleaned:
16310 # after its creation but before its name has been assigned to `$tmp'.
16311 $debug ||
16313 tmp=
16314 trap 'exit_status=$?
16315 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16317 trap 'as_fn_exit 1' 1 2 13 15
16319 # Create a (secure) tmp directory for tmp files.
16322 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16323 test -n "$tmp" && test -d "$tmp"
16324 } ||
16326 tmp=./conf$$-$RANDOM
16327 (umask 077 && mkdir "$tmp")
16328 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16330 # Set up the scripts for CONFIG_FILES section.
16331 # No need to generate them if there are no CONFIG_FILES.
16332 # This happens for instance with `./config.status config.h'.
16333 if test -n "$CONFIG_FILES"; then
16335 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16336 ac_cs_awk_getline=:
16337 ac_cs_awk_pipe_init=
16338 ac_cs_awk_read_file='
16339 while ((getline aline < (F[key])) > 0)
16340 print(aline)
16341 close(F[key])'
16342 ac_cs_awk_pipe_fini=
16343 else
16344 ac_cs_awk_getline=false
16345 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16346 ac_cs_awk_read_file='
16347 print "|#_!!_#|"
16348 print "cat " F[key] " &&"
16349 '$ac_cs_awk_pipe_init
16350 # The final `:' finishes the AND list.
16351 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16353 ac_cr=`echo X | tr X '\015'`
16354 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16355 # But we know of no other shell where ac_cr would be empty at this
16356 # point, so we can use a bashism as a fallback.
16357 if test "x$ac_cr" = x; then
16358 eval ac_cr=\$\'\\r\'
16360 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16361 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16362 ac_cs_awk_cr='\\r'
16363 else
16364 ac_cs_awk_cr=$ac_cr
16367 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16368 _ACEOF
16370 # Create commands to substitute file output variables.
16372 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16373 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16374 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16375 echo "_ACAWK" &&
16376 echo "_ACEOF"
16377 } >conf$$files.sh &&
16378 . ./conf$$files.sh ||
16379 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16380 rm -f conf$$files.sh
16383 echo "cat >conf$$subs.awk <<_ACEOF" &&
16384 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16385 echo "_ACEOF"
16386 } >conf$$subs.sh ||
16387 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16388 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16389 ac_delim='%!_!# '
16390 for ac_last_try in false false false false false :; do
16391 . ./conf$$subs.sh ||
16392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16394 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16395 if test $ac_delim_n = $ac_delim_num; then
16396 break
16397 elif $ac_last_try; then
16398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16399 else
16400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16402 done
16403 rm -f conf$$subs.sh
16405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16406 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16407 _ACEOF
16408 sed -n '
16410 s/^/S["/; s/!.*/"]=/
16413 s/^[^!]*!//
16414 :repl
16415 t repl
16416 s/'"$ac_delim"'$//
16417 t delim
16420 s/\(.\{148\}\)..*/\1/
16421 t more1
16422 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16425 b repl
16426 :more1
16427 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16430 s/.\{148\}//
16431 t nl
16432 :delim
16434 s/\(.\{148\}\)..*/\1/
16435 t more2
16436 s/["\\]/\\&/g; s/^/"/; s/$/"/
16439 :more2
16440 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16443 s/.\{148\}//
16444 t delim
16445 ' <conf$$subs.awk | sed '
16446 /^[^""]/{
16448 s/\n//
16450 ' >>$CONFIG_STATUS || ac_write_fail=1
16451 rm -f conf$$subs.awk
16452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16453 _ACAWK
16454 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16455 for (key in S) S_is_set[key] = 1
16456 FS = "\a"
16457 \$ac_cs_awk_pipe_init
16460 line = $ 0
16461 nfields = split(line, field, "@")
16462 substed = 0
16463 len = length(field[1])
16464 for (i = 2; i < nfields; i++) {
16465 key = field[i]
16466 keylen = length(key)
16467 if (S_is_set[key]) {
16468 value = S[key]
16469 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16470 len += length(value) + length(field[++i])
16471 substed = 1
16472 } else
16473 len += 1 + keylen
16475 if (nfields == 3 && !substed) {
16476 key = field[2]
16477 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16478 \$ac_cs_awk_read_file
16479 next
16482 print line
16484 \$ac_cs_awk_pipe_fini
16485 _ACAWK
16486 _ACEOF
16487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16488 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16489 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16490 else
16492 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16493 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16494 _ACEOF
16496 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16497 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16498 # trailing colons and then remove the whole line if VPATH becomes empty
16499 # (actually we leave an empty line to preserve line numbers).
16500 if test "x$srcdir" = x.; then
16501 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16503 s///
16504 s/^/:/
16505 s/[ ]*$/:/
16506 s/:\$(srcdir):/:/g
16507 s/:\${srcdir}:/:/g
16508 s/:@srcdir@:/:/g
16509 s/^:*//
16510 s/:*$//
16512 s/\(=[ ]*\).*/\1/
16514 s/\n//
16515 s/^[^=]*=[ ]*$//
16519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16520 fi # test -n "$CONFIG_FILES"
16522 # Set up the scripts for CONFIG_HEADERS section.
16523 # No need to generate them if there are no CONFIG_HEADERS.
16524 # This happens for instance with `./config.status Makefile'.
16525 if test -n "$CONFIG_HEADERS"; then
16526 cat >"$tmp/defines.awk" <<\_ACAWK ||
16527 BEGIN {
16528 _ACEOF
16530 # Transform confdefs.h into an awk script `defines.awk', embedded as
16531 # here-document in config.status, that substitutes the proper values into
16532 # config.h.in to produce config.h.
16534 # Create a delimiter string that does not exist in confdefs.h, to ease
16535 # handling of long lines.
16536 ac_delim='%!_!# '
16537 for ac_last_try in false false :; do
16538 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16539 if test -z "$ac_t"; then
16540 break
16541 elif $ac_last_try; then
16542 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16543 else
16544 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16546 done
16548 # For the awk script, D is an array of macro values keyed by name,
16549 # likewise P contains macro parameters if any. Preserve backslash
16550 # newline sequences.
16552 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16553 sed -n '
16554 s/.\{148\}/&'"$ac_delim"'/g
16555 t rset
16556 :rset
16557 s/^[ ]*#[ ]*define[ ][ ]*/ /
16558 t def
16560 :def
16561 s/\\$//
16562 t bsnl
16563 s/["\\]/\\&/g
16564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16565 D["\1"]=" \3"/p
16566 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16568 :bsnl
16569 s/["\\]/\\&/g
16570 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16571 D["\1"]=" \3\\\\\\n"\\/p
16572 t cont
16573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16574 t cont
16576 :cont
16578 s/.\{148\}/&'"$ac_delim"'/g
16579 t clear
16580 :clear
16581 s/\\$//
16582 t bsnlc
16583 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16585 :bsnlc
16586 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16587 b cont
16588 ' <confdefs.h | sed '
16589 s/'"$ac_delim"'/"\\\
16590 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16593 for (key in D) D_is_set[key] = 1
16594 FS = "\a"
16596 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16597 line = \$ 0
16598 split(line, arg, " ")
16599 if (arg[1] == "#") {
16600 defundef = arg[2]
16601 mac1 = arg[3]
16602 } else {
16603 defundef = substr(arg[1], 2)
16604 mac1 = arg[2]
16606 split(mac1, mac2, "(") #)
16607 macro = mac2[1]
16608 prefix = substr(line, 1, index(line, defundef) - 1)
16609 if (D_is_set[macro]) {
16610 # Preserve the white space surrounding the "#".
16611 print prefix "define", macro P[macro] D[macro]
16612 next
16613 } else {
16614 # Replace #undef with comments. This is necessary, for example,
16615 # in the case of _POSIX_SOURCE, which is predefined and required
16616 # on some systems where configure will not decide to define it.
16617 if (defundef == "undef") {
16618 print "/*", prefix defundef, macro, "*/"
16619 next
16623 { print }
16624 _ACAWK
16625 _ACEOF
16626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16627 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16628 fi # test -n "$CONFIG_HEADERS"
16631 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16632 shift
16633 for ac_tag
16635 case $ac_tag in
16636 :[FHLC]) ac_mode=$ac_tag; continue;;
16637 esac
16638 case $ac_mode$ac_tag in
16639 :[FHL]*:*);;
16640 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16641 :[FH]-) ac_tag=-:-;;
16642 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16643 esac
16644 ac_save_IFS=$IFS
16645 IFS=:
16646 set x $ac_tag
16647 IFS=$ac_save_IFS
16648 shift
16649 ac_file=$1
16650 shift
16652 case $ac_mode in
16653 :L) ac_source=$1;;
16654 :[FH])
16655 ac_file_inputs=
16656 for ac_f
16658 case $ac_f in
16659 -) ac_f="$tmp/stdin";;
16660 *) # Look for the file first in the build tree, then in the source tree
16661 # (if the path is not absolute). The absolute path cannot be DOS-style,
16662 # because $ac_f cannot contain `:'.
16663 test -f "$ac_f" ||
16664 case $ac_f in
16665 [\\/$]*) false;;
16666 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16667 esac ||
16668 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16669 esac
16670 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16671 as_fn_append ac_file_inputs " '$ac_f'"
16672 done
16674 # Let's still pretend it is `configure' which instantiates (i.e., don't
16675 # use $as_me), people would be surprised to read:
16676 # /* config.h. Generated by config.status. */
16677 configure_input='Generated from '`
16678 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16679 `' by configure.'
16680 if test x"$ac_file" != x-; then
16681 configure_input="$ac_file. $configure_input"
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16683 $as_echo "$as_me: creating $ac_file" >&6;}
16685 # Neutralize special characters interpreted by sed in replacement strings.
16686 case $configure_input in #(
16687 *\&* | *\|* | *\\* )
16688 ac_sed_conf_input=`$as_echo "$configure_input" |
16689 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16690 *) ac_sed_conf_input=$configure_input;;
16691 esac
16693 case $ac_tag in
16694 *:-:* | *:-) cat >"$tmp/stdin" \
16695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16696 esac
16698 esac
16700 ac_dir=`$as_dirname -- "$ac_file" ||
16701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16702 X"$ac_file" : 'X\(//\)[^/]' \| \
16703 X"$ac_file" : 'X\(//\)$' \| \
16704 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16705 $as_echo X"$ac_file" |
16706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16707 s//\1/
16710 /^X\(\/\/\)[^/].*/{
16711 s//\1/
16714 /^X\(\/\/\)$/{
16715 s//\1/
16718 /^X\(\/\).*/{
16719 s//\1/
16722 s/.*/./; q'`
16723 as_dir="$ac_dir"; as_fn_mkdir_p
16724 ac_builddir=.
16726 case "$ac_dir" in
16727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16729 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16730 # A ".." for each directory in $ac_dir_suffix.
16731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16732 case $ac_top_builddir_sub in
16733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16735 esac ;;
16736 esac
16737 ac_abs_top_builddir=$ac_pwd
16738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16739 # for backward compatibility:
16740 ac_top_builddir=$ac_top_build_prefix
16742 case $srcdir in
16743 .) # We are building in place.
16744 ac_srcdir=.
16745 ac_top_srcdir=$ac_top_builddir_sub
16746 ac_abs_top_srcdir=$ac_pwd ;;
16747 [\\/]* | ?:[\\/]* ) # Absolute name.
16748 ac_srcdir=$srcdir$ac_dir_suffix;
16749 ac_top_srcdir=$srcdir
16750 ac_abs_top_srcdir=$srcdir ;;
16751 *) # Relative name.
16752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16753 ac_top_srcdir=$ac_top_build_prefix$srcdir
16754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16755 esac
16756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16759 case $ac_mode in
16762 # CONFIG_FILE
16765 case $INSTALL in
16766 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16767 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16768 esac
16769 _ACEOF
16771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16772 # If the template does not know about datarootdir, expand it.
16773 # FIXME: This hack should be removed a few years after 2.60.
16774 ac_datarootdir_hack=; ac_datarootdir_seen=
16775 ac_sed_dataroot='
16776 /datarootdir/ {
16780 /@datadir@/p
16781 /@docdir@/p
16782 /@infodir@/p
16783 /@localedir@/p
16784 /@mandir@/p'
16785 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16786 *datarootdir*) ac_datarootdir_seen=yes;;
16787 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16789 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16790 _ACEOF
16791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16792 ac_datarootdir_hack='
16793 s&@datadir@&$datadir&g
16794 s&@docdir@&$docdir&g
16795 s&@infodir@&$infodir&g
16796 s&@localedir@&$localedir&g
16797 s&@mandir@&$mandir&g
16798 s&\\\${datarootdir}&$datarootdir&g' ;;
16799 esac
16800 _ACEOF
16802 # Neutralize VPATH when `$srcdir' = `.'.
16803 # Shell code in configure.ac might set extrasub.
16804 # FIXME: do we really want to maintain this feature?
16805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16806 ac_sed_extra="$ac_vpsub
16807 $extrasub
16808 _ACEOF
16809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16812 s|@configure_input@|$ac_sed_conf_input|;t t
16813 s&@top_builddir@&$ac_top_builddir_sub&;t t
16814 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16815 s&@srcdir@&$ac_srcdir&;t t
16816 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16817 s&@top_srcdir@&$ac_top_srcdir&;t t
16818 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16819 s&@builddir@&$ac_builddir&;t t
16820 s&@abs_builddir@&$ac_abs_builddir&;t t
16821 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16822 s&@INSTALL@&$ac_INSTALL&;t t
16823 $ac_datarootdir_hack
16825 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16826 if $ac_cs_awk_getline; then
16827 $AWK -f "$tmp/subs.awk"
16828 else
16829 $AWK -f "$tmp/subs.awk" | $SHELL
16830 fi >$tmp/out \
16831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16833 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16834 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16835 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16837 which seems to be undefined. Please make sure it is defined" >&5
16838 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16839 which seems to be undefined. Please make sure it is defined" >&2;}
16841 rm -f "$tmp/stdin"
16842 case $ac_file in
16843 -) cat "$tmp/out" && rm -f "$tmp/out";;
16844 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16845 esac \
16846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16850 # CONFIG_HEADER
16852 if test x"$ac_file" != x-; then
16854 $as_echo "/* $configure_input */" \
16855 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16856 } >"$tmp/config.h" \
16857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16858 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16860 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16861 else
16862 rm -f "$ac_file"
16863 mv "$tmp/config.h" "$ac_file" \
16864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16866 else
16867 $as_echo "/* $configure_input */" \
16868 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16869 || as_fn_error $? "could not create -" "$LINENO" 5
16874 # CONFIG_LINK
16877 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16879 else
16880 # Prefer the file from the source tree if names are identical.
16881 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16882 ac_source=$srcdir/$ac_source
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16886 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16888 if test ! -r "$ac_source"; then
16889 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16891 rm -f "$ac_file"
16893 # Try a relative symlink, then a hard link, then a copy.
16894 case $ac_source in
16895 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16896 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16897 esac
16898 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16899 ln "$ac_source" "$ac_file" 2>/dev/null ||
16900 cp -p "$ac_source" "$ac_file" ||
16901 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16904 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16905 $as_echo "$as_me: executing $ac_file commands" >&6;}
16907 esac
16910 case $ac_file$ac_mode in
16911 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16912 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16913 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16914 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16915 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16916 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16917 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16918 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16919 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16920 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16921 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16922 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16923 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16924 "Makefile":C) wine_fn_output_makefile Makefile ;;
16926 esac
16927 done # for ac_tag
16930 as_fn_exit 0
16931 _ACEOF
16932 ac_clean_files=$ac_clean_files_save
16934 test $ac_write_fail = 0 ||
16935 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16938 # configure is writing to config.log, and then calls config.status.
16939 # config.status does its own redirection, appending to config.log.
16940 # Unfortunately, on DOS this fails, as config.log is still kept open
16941 # by configure, so config.status won't be able to write to it; its
16942 # output is simply discarded. So we exec the FD to /dev/null,
16943 # effectively closing config.log, so it can be properly (re)opened and
16944 # appended to by config.status. When coming back to configure, we
16945 # need to make the FD available again.
16946 if test "$no_create" != yes; then
16947 ac_cs_success=:
16948 ac_config_status_args=
16949 test "$silent" = yes &&
16950 ac_config_status_args="$ac_config_status_args --quiet"
16951 exec 5>/dev/null
16952 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16953 exec 5>>config.log
16954 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16955 # would make configure fail if this is the last instruction.
16956 $ac_cs_success || as_fn_exit 1
16958 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16960 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16964 if test "$no_create" = "yes"
16965 then
16966 exit 0
16969 ac_save_IFS="$IFS"
16970 if test "x$wine_notices != "x; then
16971 echo >&6
16972 IFS="|"
16973 for msg in $wine_notices; do
16974 IFS="$ac_save_IFS"
16975 if test -n "$msg"; then
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16977 $as_echo "$as_me: $msg" >&6;}
16979 done
16981 IFS="|"
16982 for msg in $wine_warnings; do
16983 IFS="$ac_save_IFS"
16984 if test -n "$msg"; then
16985 echo >&2
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16987 $as_echo "$as_me: WARNING: $msg" >&2;}
16989 done
16990 IFS="$ac_save_IFS"
16992 echo "
16993 $as_me: Finished. Do '${ac_make}' to compile Wine.
16994 " >&6