Release 1.5.3.
[wine/multimedia.git] / configure
blob46827c11c4d13634407e144d90b33235c243a061
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.5.3.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: wine-devel@winehq.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
247 exit 1
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
265 { eval $1=; unset $1;}
267 as_unset=as_fn_unset
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
274 return $1
275 } # as_fn_set_status
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
318 /^X\(\/\/\)$/{
319 s//\1/
322 /^X\(\/\).*/{
323 s//\1/
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
343 eval $1+=\$2
345 else
346 as_fn_append ()
348 eval $1=\$$1\$2
350 fi # as_fn_append
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
360 as_val=$(( $* ))
362 else
363 as_fn_arith ()
365 as_val=`expr "$@" || test $? -eq 1`
367 fi # as_fn_arith
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
414 /^X\/\(\/\/\)$/{
415 s//\1/
418 /^X\/\(\/\).*/{
419 s//\1/
422 s/.*/./; q'`
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
445 :lineno
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
473 ECHO_N='-n';;
474 esac
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
497 else
498 as_ln_s='cp -p'
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
560 # Identity of this package.
561 PACKAGE_NAME='Wine'
562 PACKAGE_TARNAME='wine'
563 PACKAGE_VERSION='1.5.3'
564 PACKAGE_STRING='Wine 1.5.3'
565 PACKAGE_BUGREPORT='wine-devel@winehq.org'
566 PACKAGE_URL='http://www.winehq.org'
568 ac_unique_file="server/atom.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 PORCFLAGS
608 LINGUAS
609 ALL_TEST_RESOURCES
610 LDAPLIBS
611 LIBPOLL
612 LIBDL
613 EXTRA_BINARIES
614 MAIN_BINARY
615 SOCKETLIBS
616 CRTLIBS
617 TOOLSEXT
618 LDPATH
619 UNWINDFLAGS
620 BUILTINFLAG
621 EXTRACFLAGS
622 LIBKSTAT
623 LIBOPENAL
624 LIBMPG123
625 PNGINCL
626 FONTCONFIGINCL
627 CUPSINCL
628 OSS4INCL
629 ALSALIBS
630 GSTREAMER_INCL
631 GSTREAMER_LIBS
632 LIBGETTEXTPO
633 ZLIB
634 FREETYPEINCL
635 FREETYPELIBS
636 ft_devel
637 LCMSLIBS
638 RESOLVLIBS
639 GPHOTO2INCL
640 GPHOTO2LIBS
641 gphoto2port_devel
642 gphoto2_devel
643 SANEINCL
644 sane_devel
645 GNUTLSINCL
646 HALINCL
647 DBUSINCL
648 XSLTINCL
649 XML2INCL
650 XML2LIBS
651 X_EXTRA_LIBS
652 X_LIBS
653 X_PRE_LIBS
654 X_CFLAGS
655 XMKMF
656 LIBPTHREAD
657 CROSSTARGET
658 CROSSCC
659 CROSSTEST_DISABLE
660 PRELINK
661 CARBONLIB
662 QUICKTIMELIB
663 LIBOPENCL
664 FRAMEWORK_OPENAL
665 COREAUDIO
666 SECURITYLIB
667 DISKARBITRATIONLIB
668 LDEXECFLAGS
669 CORESERVICESLIB
670 APPLICATIONSERVICESLIB
671 IOKITLIB
672 COREFOUNDATIONLIB
673 DLLWRAP
674 DLLTOOL
676 LDRPATH_LOCAL
677 LDRPATH_INSTALL
678 IMPLIBEXT
679 LIBEXT
680 LDDLLFLAGS
681 LDSHARED
682 DLLFLAGS
683 DLLEXT
685 OPENGL_LIBS
686 XLIB
687 MAINTAINER_MODE
688 MSGFMT
689 ICOTOOL
690 CONVERT
691 RSVG
692 PKG_CONFIG
693 FONTFORGE
694 LINTFLAGS
695 LINT
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 LDCONFIG
700 EGREP
701 GREP
702 LN_S
703 RANLIB
704 ARFLAGS
705 ac_ct_AR
707 BISON
708 FLEX
709 TOOLSDIR
710 WOW64_DISABLE
711 TARGETFLAGS
712 CPPBIN
713 ac_ct_CXX
714 CXXFLAGS
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
723 SET_MAKE
724 host_os
725 host_vendor
726 host_cpu
727 host
728 build_os
729 build_vendor
730 build_cpu
731 build
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files='MAKE_RULES
771 MAKE_TEST_RULES
772 MAKE_DLL_RULES
773 MAKE_IMPLIB_RULES
774 MAKE_PROG_RULES'
775 ac_user_opts='
776 enable_option_checking
777 enable_win16
778 enable_win64
779 enable_tests
780 enable_maintainer_mode
781 with_alsa
782 with_capi
783 with_cms
784 with_coreaudio
785 with_cups
786 with_curses
787 with_dbus
788 with_fontconfig
789 with_freetype
790 with_gettext
791 with_gettextpo
792 with_gphoto
793 with_glu
794 with_gnutls
795 with_gsm
796 with_gstreamer
797 with_hal
798 with_jpeg
799 with_ldap
800 with_mpg123
801 with_openal
802 with_opencl
803 with_opengl
804 with_openssl
805 with_oss
806 with_png
807 with_pthread
808 with_sane
809 with_tiff
810 with_v4l
811 with_xcomposite
812 with_xcursor
813 with_xinerama
814 with_xinput
815 with_xinput2
816 with_xml
817 with_xrandr
818 with_xrender
819 with_xshape
820 with_xslt
821 with_xxf86vm
822 with_zlib
823 with_wine_tools
824 with_wine64
825 enable_largefile
826 with_x
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
837 CXXFLAGS
840 XMKMF'
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
891 ac_prev=
892 ac_dashdash=
893 for ac_option
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
902 case $ac_option in
903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *=) ac_optarg= ;;
905 *) ac_optarg=yes ;;
906 esac
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
912 ac_dashdash=yes ;;
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
931 --config-cache | -C)
932 cache_file=config.cache ;;
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1226 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information"
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248 esac
1249 done
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error $? "missing argument to $ac_option"
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used" >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306 test "$silent" = yes && exec 6>/dev/null
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $? "pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1335 /^X\(\/\/\)$/{
1336 s//\1/
1339 /^X\(\/\).*/{
1340 s//\1/
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1348 else
1349 ac_srcdir_defaulted=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures Wine 1.5.3 to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1438 cat <<\_ACEOF
1440 X features:
1441 --x-includes=DIR X include files are in DIR
1442 --x-libraries=DIR X library files are in DIR
1444 System types:
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 _ACEOF
1450 if test -n "$ac_init_help"; then
1451 case $ac_init_help in
1452 short | recursive ) echo "Configuration of Wine 1.5.3:";;
1453 esac
1454 cat <<\_ACEOF
1456 Optional Features:
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --disable-win16 do not include Win16 support
1461 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1462 binaries)
1463 --disable-tests do not build the regression tests
1464 --enable-maintainer-mode
1465 enable maintainer-specific build rules
1466 --disable-largefile omit support for large files
1468 Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1471 --without-alsa do not use the Alsa sound support
1472 --without-capi do not use CAPI (ISDN support)
1473 --without-cms do not use CMS (color management support)
1474 --without-coreaudio do not use the CoreAudio sound support
1475 --without-cups do not use CUPS
1476 --without-curses do not use (n)curses
1477 --without-dbus do not use DBus (dynamic device support)
1478 --without-fontconfig do not use fontconfig
1479 --without-freetype do not use the FreeType library
1480 --without-gettext do not use gettext
1481 --with-gettextpo use the GetTextPO library to rebuild po files
1482 --without-gphoto do not use gphoto (Digital Camera support)
1483 --without-glu do not use the GLU library
1484 --without-gnutls do not use GnuTLS (schannel support)
1485 --without-gsm do not use libgsm (GSM 06.10 codec support)
1486 --without-gstreamer do not use GStreamer (codecs support)
1487 --without-hal do not use HAL (dynamic device support)
1488 --without-jpeg do not use JPEG
1489 --without-ldap do not use LDAP
1490 --without-mpg123 do not use the mpg123 library
1491 --without-openal do not use OpenAL
1492 --without-opencl do not use OpenCL
1493 --without-opengl do not use OpenGL
1494 --without-openssl do not use OpenSSL
1495 --without-oss do not use the OSS sound support
1496 --without-png do not use PNG
1497 --without-pthread do not use the pthread library
1498 --without-sane do not use SANE (scanner support)
1499 --without-tiff do not use TIFF
1500 --without-v4l do not use v4l1 (v4l support)
1501 --without-xcomposite do not use the Xcomposite extension
1502 --without-xcursor do not use the Xcursor extension
1503 --without-xinerama do not use Xinerama (multi-monitor support)
1504 --without-xinput do not use the Xinput extension
1505 --without-xinput2 do not use the Xinput 2 extension
1506 --without-xml do not use XML
1507 --without-xrandr do not use Xrandr (resolution changes)
1508 --without-xrender do not use the Xrender extension
1509 --without-xshape do not use the Xshape extension
1510 --without-xslt do not use XSLT
1511 --without-xxf86vm do not use XFree video mode extension
1512 --without-zlib do not use Zlib (data compression)
1513 --with-wine-tools=DIR use Wine tools from directory DIR
1514 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1515 --with-x use the X Window System
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 CXX C++ compiler command
1526 CXXFLAGS C++ compiler flags
1527 CPP C preprocessor
1528 XMKMF Path to xmkmf, Makefile generator for X Window System
1530 Use these variables to override the choices made by `configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1533 Report bugs to <wine-devel@winehq.org>.
1534 Wine home page: <http://www.winehq.org>.
1535 _ACEOF
1536 ac_status=$?
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 Wine configure 1.5.3
1598 generated by GNU Autoconf 2.68
1600 Copyright (C) 2010 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1603 _ACEOF
1604 exit
1607 ## ------------------------ ##
1608 ## Autoconf initialization. ##
1609 ## ------------------------ ##
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1642 ac_retval=1
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1647 } # ac_fn_c_try_compile
1649 # ac_fn_cxx_try_compile LINENO
1650 # ----------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_cxx_try_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_cxx_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1680 ac_retval=1
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1685 } # ac_fn_cxx_try_compile
1687 # ac_fn_c_try_link LINENO
1688 # -----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_link ()
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext conftest$ac_exeext
1694 if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest$ac_exeext && {
1713 test "$cross_compiling" = yes ||
1714 $as_test_x conftest$ac_exeext
1715 }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1721 ac_retval=1
1723 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1724 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1725 # interfere with the next link command; also delete a directory that is
1726 # left behind by Apple's compiler. We do this before executing the actions.
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1731 } # ac_fn_c_try_link
1733 # ac_fn_c_try_cpp LINENO
1734 # ----------------------
1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_cpp ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_cpp conftest.$ac_ext"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } > conftest.i && {
1755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 }; then :
1758 ac_retval=0
1759 else
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1763 ac_retval=1
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1768 } # ac_fn_c_try_cpp
1770 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773 # the include files in INCLUDES and setting the cache variable VAR
1774 # accordingly.
1775 ac_fn_c_check_header_mongrel ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if eval \${$3+:} false; then :
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 else
1788 # Is the header compilable?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790 $as_echo_n "checking $2 usability... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 ac_header_compiler=yes
1798 else
1799 ac_header_compiler=no
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803 $as_echo "$ac_header_compiler" >&6; }
1805 # Is the header present?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807 $as_echo_n "checking $2 presence... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_cpp "$LINENO"; then :
1813 ac_header_preproc=yes
1814 else
1815 ac_header_preproc=no
1817 rm -f conftest.err conftest.i conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819 $as_echo "$ac_header_preproc" >&6; }
1821 # So? What about this header?
1822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1823 yes:no: )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829 no:yes:* )
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1833 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1837 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 ( $as_echo "## ------------------------------------ ##
1841 ## Report this to wine-devel@winehq.org ##
1842 ## ------------------------------------ ##"
1843 ) | sed "s/^/$as_me: WARNING: /" >&2
1845 esac
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1850 else
1851 eval "$3=\$ac_header_compiler"
1853 eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 } # ac_fn_c_check_header_mongrel
1861 # ac_fn_c_try_run LINENO
1862 # ----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1864 # that executables *can* be run.
1865 ac_fn_c_try_run ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>&5
1876 ac_status=$?
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1879 { { case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_try") 2>&5
1886 ac_status=$?
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; }; }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: program exited with status $ac_status" >&5
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1895 ac_retval=$ac_status
1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 as_fn_set_status $ac_retval
1901 } # ac_fn_c_try_run
1903 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists and can be compiled using the include files in
1906 # INCLUDES, setting the cache variable VAR accordingly.
1907 ac_fn_c_check_header_compile ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1918 #include <$2>
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 eval "$3=yes"
1922 else
1923 eval "$3=no"
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 } # ac_fn_c_check_header_compile
1934 # ac_fn_c_check_func LINENO FUNC VAR
1935 # ----------------------------------
1936 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1937 ac_fn_c_check_func ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1944 else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1949 #define $2 innocuous_$2
1951 /* System header to define __stub macros and hopefully few prototypes,
1952 which can conflict with char $2 (); below.
1953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1954 <limits.h> exists even on freestanding compilers. */
1956 #ifdef __STDC__
1957 # include <limits.h>
1958 #else
1959 # include <assert.h>
1960 #endif
1962 #undef $2
1964 /* Override any GCC internal prototype to avoid an error.
1965 Use char because int might match the return type of a GCC
1966 builtin and then its argument prototype would still apply. */
1967 #ifdef __cplusplus
1968 extern "C"
1969 #endif
1970 char $2 ();
1971 /* The GNU C library defines this for functions which it implements
1972 to always fail with ENOSYS. Some functions are actually named
1973 something starting with __ and the normal name is an alias. */
1974 #if defined __stub_$2 || defined __stub___$2
1975 choke me
1976 #endif
1979 main ()
1981 return $2 ();
1983 return 0;
1985 _ACEOF
1986 if ac_fn_c_try_link "$LINENO"; then :
1987 eval "$3=yes"
1988 else
1989 eval "$3=no"
1991 rm -f core conftest.err conftest.$ac_objext \
1992 conftest$ac_exeext conftest.$ac_ext
1994 eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 } # ac_fn_c_check_func
2001 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2002 # ----------------------------------------------------
2003 # Tries to find if the field MEMBER exists in type AGGR, after including
2004 # INCLUDES, setting cache variable VAR accordingly.
2005 ac_fn_c_check_member ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2009 $as_echo_n "checking for $2.$3... " >&6; }
2010 if eval \${$4+:} false; then :
2011 $as_echo_n "(cached) " >&6
2012 else
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2017 main ()
2019 static $2 ac_aggr;
2020 if (ac_aggr.$3)
2021 return 0;
2023 return 0;
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 eval "$4=yes"
2028 else
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2033 main ()
2035 static $2 ac_aggr;
2036 if (sizeof ac_aggr.$3)
2037 return 0;
2039 return 0;
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043 eval "$4=yes"
2044 else
2045 eval "$4=no"
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 eval ac_res=\$$4
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_member
2058 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2059 # -------------------------------------------
2060 # Tests whether TYPE exists after having included INCLUDES, setting cache
2061 # variable VAR accordingly.
2062 ac_fn_c_check_type ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066 $as_echo_n "checking for $2... " >&6; }
2067 if eval \${$3+:} false; then :
2068 $as_echo_n "(cached) " >&6
2069 else
2070 eval "$3=no"
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2075 main ()
2077 if (sizeof ($2))
2078 return 0;
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2088 main ()
2090 if (sizeof (($2)))
2091 return 0;
2093 return 0;
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2098 else
2099 eval "$3=yes"
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 } # ac_fn_c_check_type
2111 cat >config.log <<_ACEOF
2112 This file contains any messages produced by compilers while
2113 running configure, to aid debugging if configure makes a mistake.
2115 It was created by Wine $as_me 1.5.3, which was
2116 generated by GNU Autoconf 2.68. Invocation command line was
2118 $ $0 $@
2120 _ACEOF
2121 exec 5>>config.log
2123 cat <<_ASUNAME
2124 ## --------- ##
2125 ## Platform. ##
2126 ## --------- ##
2128 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2129 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2130 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2131 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2132 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2134 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2135 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2137 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2138 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2139 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2140 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2141 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2142 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2143 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2145 _ASUNAME
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2150 IFS=$as_save_IFS
2151 test -z "$as_dir" && as_dir=.
2152 $as_echo "PATH: $as_dir"
2153 done
2154 IFS=$as_save_IFS
2156 } >&5
2158 cat >&5 <<_ACEOF
2161 ## ----------- ##
2162 ## Core tests. ##
2163 ## ----------- ##
2165 _ACEOF
2168 # Keep a trace of the command line.
2169 # Strip out --no-create and --no-recursion so they do not pile up.
2170 # Strip out --silent because we don't want to record it for future runs.
2171 # Also quote any args containing shell meta-characters.
2172 # Make two passes to allow for proper duplicate-argument suppression.
2173 ac_configure_args=
2174 ac_configure_args0=
2175 ac_configure_args1=
2176 ac_must_keep_next=false
2177 for ac_pass in 1 2
2179 for ac_arg
2181 case $ac_arg in
2182 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2184 | -silent | --silent | --silen | --sile | --sil)
2185 continue ;;
2186 *\'*)
2187 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2188 esac
2189 case $ac_pass in
2190 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2192 as_fn_append ac_configure_args1 " '$ac_arg'"
2193 if test $ac_must_keep_next = true; then
2194 ac_must_keep_next=false # Got value, back to normal.
2195 else
2196 case $ac_arg in
2197 *=* | --config-cache | -C | -disable-* | --disable-* \
2198 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2199 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2200 | -with-* | --with-* | -without-* | --without-* | --x)
2201 case "$ac_configure_args0 " in
2202 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2203 esac
2205 -* ) ac_must_keep_next=true ;;
2206 esac
2208 as_fn_append ac_configure_args " '$ac_arg'"
2210 esac
2211 done
2212 done
2213 { ac_configure_args0=; unset ac_configure_args0;}
2214 { ac_configure_args1=; unset ac_configure_args1;}
2216 # When interrupted or exit'd, cleanup temporary files, and complete
2217 # config.log. We remove comments because anyway the quotes in there
2218 # would cause problems or look ugly.
2219 # WARNING: Use '\'' to represent an apostrophe within the trap.
2220 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2221 trap 'exit_status=$?
2222 # Save into config.log some information that might help in debugging.
2224 echo
2226 $as_echo "## ---------------- ##
2227 ## Cache variables. ##
2228 ## ---------------- ##"
2229 echo
2230 # The following way of writing the cache mishandles newlines in values,
2232 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2233 eval ac_val=\$$ac_var
2234 case $ac_val in #(
2235 *${as_nl}*)
2236 case $ac_var in #(
2237 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2238 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2239 esac
2240 case $ac_var in #(
2241 _ | IFS | as_nl) ;; #(
2242 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2243 *) { eval $ac_var=; unset $ac_var;} ;;
2244 esac ;;
2245 esac
2246 done
2247 (set) 2>&1 |
2248 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2249 *${as_nl}ac_space=\ *)
2250 sed -n \
2251 "s/'\''/'\''\\\\'\'''\''/g;
2252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2253 ;; #(
2255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2257 esac |
2258 sort
2260 echo
2262 $as_echo "## ----------------- ##
2263 ## Output variables. ##
2264 ## ----------------- ##"
2265 echo
2266 for ac_var in $ac_subst_vars
2268 eval ac_val=\$$ac_var
2269 case $ac_val in
2270 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271 esac
2272 $as_echo "$ac_var='\''$ac_val'\''"
2273 done | sort
2274 echo
2276 if test -n "$ac_subst_files"; then
2277 $as_echo "## ------------------- ##
2278 ## File substitutions. ##
2279 ## ------------------- ##"
2280 echo
2281 for ac_var in $ac_subst_files
2283 eval ac_val=\$$ac_var
2284 case $ac_val in
2285 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2286 esac
2287 $as_echo "$ac_var='\''$ac_val'\''"
2288 done | sort
2289 echo
2292 if test -s confdefs.h; then
2293 $as_echo "## ----------- ##
2294 ## confdefs.h. ##
2295 ## ----------- ##"
2296 echo
2297 cat confdefs.h
2298 echo
2300 test "$ac_signal" != 0 &&
2301 $as_echo "$as_me: caught signal $ac_signal"
2302 $as_echo "$as_me: exit $exit_status"
2303 } >&5
2304 rm -f core *.core core.conftest.* &&
2305 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2306 exit $exit_status
2308 for ac_signal in 1 2 13 15; do
2309 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2310 done
2311 ac_signal=0
2313 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2314 rm -f -r conftest* confdefs.h
2316 $as_echo "/* confdefs.h */" > confdefs.h
2318 # Predefined preprocessor variables.
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_NAME "$PACKAGE_NAME"
2322 _ACEOF
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2326 _ACEOF
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2330 _ACEOF
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_STRING "$PACKAGE_STRING"
2334 _ACEOF
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2338 _ACEOF
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_URL "$PACKAGE_URL"
2342 _ACEOF
2345 # Let the site file select an alternate cache file if it wants to.
2346 # Prefer an explicitly selected file to automatically selected ones.
2347 ac_site_file1=NONE
2348 ac_site_file2=NONE
2349 if test -n "$CONFIG_SITE"; then
2350 # We do not want a PATH search for config.site.
2351 case $CONFIG_SITE in #((
2352 -*) ac_site_file1=./$CONFIG_SITE;;
2353 */*) ac_site_file1=$CONFIG_SITE;;
2354 *) ac_site_file1=./$CONFIG_SITE;;
2355 esac
2356 elif test "x$prefix" != xNONE; then
2357 ac_site_file1=$prefix/share/config.site
2358 ac_site_file2=$prefix/etc/config.site
2359 else
2360 ac_site_file1=$ac_default_prefix/share/config.site
2361 ac_site_file2=$ac_default_prefix/etc/config.site
2363 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2365 test "x$ac_site_file" = xNONE && continue
2366 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2368 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2369 sed 's/^/| /' "$ac_site_file" >&5
2370 . "$ac_site_file" \
2371 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2373 as_fn_error $? "failed to load site script $ac_site_file
2374 See \`config.log' for more details" "$LINENO" 5; }
2376 done
2378 if test -r "$cache_file"; then
2379 # Some versions of bash will fail to source /dev/null (special files
2380 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2381 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2383 $as_echo "$as_me: loading cache $cache_file" >&6;}
2384 case $cache_file in
2385 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2386 *) . "./$cache_file";;
2387 esac
2389 else
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2391 $as_echo "$as_me: creating cache $cache_file" >&6;}
2392 >$cache_file
2395 # Check that the precious variables saved in the cache have kept the same
2396 # value.
2397 ac_cache_corrupted=false
2398 for ac_var in $ac_precious_vars; do
2399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2400 eval ac_new_set=\$ac_env_${ac_var}_set
2401 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2402 eval ac_new_val=\$ac_env_${ac_var}_value
2403 case $ac_old_set,$ac_new_set in
2404 set,)
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2406 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2407 ac_cache_corrupted=: ;;
2408 ,set)
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2410 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2411 ac_cache_corrupted=: ;;
2412 ,);;
2414 if test "x$ac_old_val" != "x$ac_new_val"; then
2415 # differences in whitespace do not lead to failure.
2416 ac_old_val_w=`echo x $ac_old_val`
2417 ac_new_val_w=`echo x $ac_new_val`
2418 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2420 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2421 ac_cache_corrupted=:
2422 else
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2424 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2425 eval $ac_var=\$ac_old_val
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2428 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2430 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2431 fi;;
2432 esac
2433 # Pass precious variables to config.status.
2434 if test "$ac_new_set" = set; then
2435 case $ac_new_val in
2436 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2437 *) ac_arg=$ac_var=$ac_new_val ;;
2438 esac
2439 case " $ac_configure_args " in
2440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2441 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2442 esac
2444 done
2445 if $ac_cache_corrupted; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2449 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2450 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2452 ## -------------------- ##
2453 ## Main body of script. ##
2454 ## -------------------- ##
2456 ac_ext=c
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464 ac_config_headers="$ac_config_headers include/config.h"
2466 ac_aux_dir=
2467 for ac_dir in tools "$srcdir"/tools; do
2468 if test -f "$ac_dir/install-sh"; then
2469 ac_aux_dir=$ac_dir
2470 ac_install_sh="$ac_aux_dir/install-sh -c"
2471 break
2472 elif test -f "$ac_dir/install.sh"; then
2473 ac_aux_dir=$ac_dir
2474 ac_install_sh="$ac_aux_dir/install.sh -c"
2475 break
2476 elif test -f "$ac_dir/shtool"; then
2477 ac_aux_dir=$ac_dir
2478 ac_install_sh="$ac_aux_dir/shtool install -c"
2479 break
2481 done
2482 if test -z "$ac_aux_dir"; then
2483 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2486 # These three variables are undocumented and unsupported,
2487 # and are intended to be withdrawn in a future Autoconf release.
2488 # They can cause serious problems if a builder's source tree is in a directory
2489 # whose full name contains unusual characters.
2490 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2491 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2492 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2498 # Check whether --enable-win16 was given.
2499 if test "${enable_win16+set}" = set; then :
2500 enableval=$enable_win16;
2503 # Check whether --enable-win64 was given.
2504 if test "${enable_win64+set}" = set; then :
2505 enableval=$enable_win64;
2508 # Check whether --enable-tests was given.
2509 if test "${enable_tests+set}" = set; then :
2510 enableval=$enable_tests;
2513 # Check whether --enable-maintainer-mode was given.
2514 if test "${enable_maintainer_mode+set}" = set; then :
2515 enableval=$enable_maintainer_mode;
2520 # Check whether --with-alsa was given.
2521 if test "${with_alsa+set}" = set; then :
2522 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2526 # Check whether --with-capi was given.
2527 if test "${with_capi+set}" = set; then :
2528 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2532 # Check whether --with-cms was given.
2533 if test "${with_cms+set}" = set; then :
2534 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2538 # Check whether --with-coreaudio was given.
2539 if test "${with_coreaudio+set}" = set; then :
2540 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2544 # Check whether --with-cups was given.
2545 if test "${with_cups+set}" = set; then :
2546 withval=$with_cups;
2550 # Check whether --with-curses was given.
2551 if test "${with_curses+set}" = set; then :
2552 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2556 # Check whether --with-dbus was given.
2557 if test "${with_dbus+set}" = set; then :
2558 withval=$with_dbus;
2562 # Check whether --with-fontconfig was given.
2563 if test "${with_fontconfig+set}" = set; then :
2564 withval=$with_fontconfig;
2568 # Check whether --with-freetype was given.
2569 if test "${with_freetype+set}" = set; then :
2570 withval=$with_freetype;
2574 # Check whether --with-gettext was given.
2575 if test "${with_gettext+set}" = set; then :
2576 withval=$with_gettext;
2580 # Check whether --with-gettextpo was given.
2581 if test "${with_gettextpo+set}" = set; then :
2582 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2586 # Check whether --with-gphoto was given.
2587 if test "${with_gphoto+set}" = set; then :
2588 withval=$with_gphoto;
2592 # Check whether --with-glu was given.
2593 if test "${with_glu+set}" = set; then :
2594 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2598 # Check whether --with-gnutls was given.
2599 if test "${with_gnutls+set}" = set; then :
2600 withval=$with_gnutls;
2604 # Check whether --with-gsm was given.
2605 if test "${with_gsm+set}" = set; then :
2606 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2610 # Check whether --with-gstreamer was given.
2611 if test "${with_gstreamer+set}" = set; then :
2612 withval=$with_gstreamer;
2616 # Check whether --with-hal was given.
2617 if test "${with_hal+set}" = set; then :
2618 withval=$with_hal;
2622 # Check whether --with-jpeg was given.
2623 if test "${with_jpeg+set}" = set; then :
2624 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2628 # Check whether --with-ldap was given.
2629 if test "${with_ldap+set}" = set; then :
2630 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2634 # Check whether --with-mpg123 was given.
2635 if test "${with_mpg123+set}" = set; then :
2636 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2640 # Check whether --with-openal was given.
2641 if test "${with_openal+set}" = set; then :
2642 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2646 # Check whether --with-opencl was given.
2647 if test "${with_opencl+set}" = set; then :
2648 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2652 # Check whether --with-opengl was given.
2653 if test "${with_opengl+set}" = set; then :
2654 withval=$with_opengl;
2658 # Check whether --with-openssl was given.
2659 if test "${with_openssl+set}" = set; then :
2660 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2664 # Check whether --with-oss was given.
2665 if test "${with_oss+set}" = set; then :
2666 withval=$with_oss;
2670 # Check whether --with-png was given.
2671 if test "${with_png+set}" = set; then :
2672 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2676 # Check whether --with-pthread was given.
2677 if test "${with_pthread+set}" = set; then :
2678 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2682 # Check whether --with-sane was given.
2683 if test "${with_sane+set}" = set; then :
2684 withval=$with_sane;
2688 # Check whether --with-tiff was given.
2689 if test "${with_tiff+set}" = set; then :
2690 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2694 # Check whether --with-v4l was given.
2695 if test "${with_v4l+set}" = set; then :
2696 withval=$with_v4l;
2700 # Check whether --with-xcomposite was given.
2701 if test "${with_xcomposite+set}" = set; then :
2702 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2706 # Check whether --with-xcursor was given.
2707 if test "${with_xcursor+set}" = set; then :
2708 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2712 # Check whether --with-xinerama was given.
2713 if test "${with_xinerama+set}" = set; then :
2714 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2718 # Check whether --with-xinput was given.
2719 if test "${with_xinput+set}" = set; then :
2720 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2724 # Check whether --with-xinput2 was given.
2725 if test "${with_xinput2+set}" = set; then :
2726 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2730 # Check whether --with-xml was given.
2731 if test "${with_xml+set}" = set; then :
2732 withval=$with_xml;
2736 # Check whether --with-xrandr was given.
2737 if test "${with_xrandr+set}" = set; then :
2738 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2742 # Check whether --with-xrender was given.
2743 if test "${with_xrender+set}" = set; then :
2744 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2748 # Check whether --with-xshape was given.
2749 if test "${with_xshape+set}" = set; then :
2750 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2754 # Check whether --with-xslt was given.
2755 if test "${with_xslt+set}" = set; then :
2756 withval=$with_xslt;
2760 # Check whether --with-xxf86vm was given.
2761 if test "${with_xxf86vm+set}" = set; then :
2762 withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; ac_cv_header_X11_extensions_xf86vmproto_h=no; fi
2766 # Check whether --with-zlib was given.
2767 if test "${with_zlib+set}" = set; then :
2768 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2773 # Check whether --with-wine-tools was given.
2774 if test "${with_wine_tools+set}" = set; then :
2775 withval=$with_wine_tools;
2779 # Check whether --with-wine64 was given.
2780 if test "${with_wine64+set}" = set; then :
2781 withval=$with_wine64;
2785 # Make sure we can run config.sub.
2786 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2787 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2790 $as_echo_n "checking build system type... " >&6; }
2791 if ${ac_cv_build+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 ac_build_alias=$build_alias
2795 test "x$ac_build_alias" = x &&
2796 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2797 test "x$ac_build_alias" = x &&
2798 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2799 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2800 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2804 $as_echo "$ac_cv_build" >&6; }
2805 case $ac_cv_build in
2806 *-*-*) ;;
2807 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2808 esac
2809 build=$ac_cv_build
2810 ac_save_IFS=$IFS; IFS='-'
2811 set x $ac_cv_build
2812 shift
2813 build_cpu=$1
2814 build_vendor=$2
2815 shift; shift
2816 # Remember, the first character of IFS is used to create $*,
2817 # except with old shells:
2818 build_os=$*
2819 IFS=$ac_save_IFS
2820 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2824 $as_echo_n "checking host system type... " >&6; }
2825 if ${ac_cv_host+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test "x$host_alias" = x; then
2829 ac_cv_host=$ac_cv_build
2830 else
2831 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2832 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2837 $as_echo "$ac_cv_host" >&6; }
2838 case $ac_cv_host in
2839 *-*-*) ;;
2840 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2841 esac
2842 host=$ac_cv_host
2843 ac_save_IFS=$IFS; IFS='-'
2844 set x $ac_cv_host
2845 shift
2846 host_cpu=$1
2847 host_vendor=$2
2848 shift; shift
2849 # Remember, the first character of IFS is used to create $*,
2850 # except with old shells:
2851 host_os=$*
2852 IFS=$ac_save_IFS
2853 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2857 case "$srcdir" in
2858 .) ;;
2859 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2860 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2861 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2862 fi ;;
2863 esac
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2867 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2868 set x ${MAKE-make}
2869 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2870 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 cat >conftest.make <<\_ACEOF
2874 SHELL = /bin/sh
2875 all:
2876 @echo '@@@%%%=$(MAKE)=@@@%%%'
2877 _ACEOF
2878 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2879 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2880 *@@@%%%=?*=@@@%%%*)
2881 eval ac_cv_prog_make_${ac_make}_set=yes;;
2883 eval ac_cv_prog_make_${ac_make}_set=no;;
2884 esac
2885 rm -f conftest.make
2887 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2889 $as_echo "yes" >&6; }
2890 SET_MAKE=
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2894 SET_MAKE="MAKE=${MAKE-make}"
2897 ac_ext=c
2898 ac_cpp='$CPP $CPPFLAGS'
2899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902 if test -n "$ac_tool_prefix"; then
2903 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2904 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if ${ac_cv_prog_CC+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$CC"; then
2911 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2924 done
2925 done
2926 IFS=$as_save_IFS
2930 CC=$ac_cv_prog_CC
2931 if test -n "$CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933 $as_echo "$CC" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2941 if test -z "$ac_cv_prog_CC"; then
2942 ac_ct_CC=$CC
2943 # Extract the first word of "gcc", so it can be a program name with args.
2944 set dummy gcc; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$ac_ct_CC"; then
2951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960 ac_cv_prog_ac_ct_CC="gcc"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2964 done
2965 done
2966 IFS=$as_save_IFS
2970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2971 if test -n "$ac_ct_CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2973 $as_echo "$ac_ct_CC" >&6; }
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2979 if test "x$ac_ct_CC" = x; then
2980 CC=""
2981 else
2982 case $cross_compiling:$ac_tool_warned in
2983 yes:)
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2986 ac_tool_warned=yes ;;
2987 esac
2988 CC=$ac_ct_CC
2990 else
2991 CC="$ac_cv_prog_CC"
2994 if test -z "$CC"; then
2995 if test -n "$ac_tool_prefix"; then
2996 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2997 set dummy ${ac_tool_prefix}cc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_CC+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_CC="${ac_tool_prefix}cc"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 break 2
3017 done
3018 done
3019 IFS=$as_save_IFS
3023 CC=$ac_cv_prog_CC
3024 if test -n "$CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3027 else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3035 if test -z "$CC"; then
3036 # Extract the first word of "cc", so it can be a program name with args.
3037 set dummy cc; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_CC+:} false; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC="$CC" # Let the user override the test.
3045 else
3046 ac_prog_rejected=no
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3055 ac_prog_rejected=yes
3056 continue
3058 ac_cv_prog_CC="cc"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3062 done
3063 done
3064 IFS=$as_save_IFS
3066 if test $ac_prog_rejected = yes; then
3067 # We found a bogon in the path, so make sure we never use it.
3068 set dummy $ac_cv_prog_CC
3069 shift
3070 if test $# != 0; then
3071 # We chose a different compiler from the bogus one.
3072 # However, it has the same basename, so the bogon will be chosen
3073 # first if we set CC to just the basename; use the full file name.
3074 shift
3075 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3091 if test -z "$CC"; then
3092 if test -n "$ac_tool_prefix"; then
3093 for ac_prog in cl.exe
3095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_CC+:} false; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3116 done
3117 done
3118 IFS=$as_save_IFS
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3132 test -n "$CC" && break
3133 done
3135 if test -z "$CC"; then
3136 ac_ct_CC=$CC
3137 for ac_prog in cl.exe
3139 # Extract the first word of "$ac_prog", so it can be a program name with args.
3140 set dummy $ac_prog; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 if test -n "$ac_ct_CC"; then
3147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156 ac_cv_prog_ac_ct_CC="$ac_prog"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3160 done
3161 done
3162 IFS=$as_save_IFS
3166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167 if test -n "$ac_ct_CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3169 $as_echo "$ac_ct_CC" >&6; }
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3176 test -n "$ac_ct_CC" && break
3177 done
3179 if test "x$ac_ct_CC" = x; then
3180 CC=""
3181 else
3182 case $cross_compiling:$ac_tool_warned in
3183 yes:)
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186 ac_tool_warned=yes ;;
3187 esac
3188 CC=$ac_ct_CC
3195 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error $? "no acceptable C compiler found in \$PATH
3198 See \`config.log' for more details" "$LINENO" 5; }
3200 # Provide some information about the compiler.
3201 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3202 set X $ac_compile
3203 ac_compiler=$2
3204 for ac_option in --version -v -V -qversion; do
3205 { { ac_try="$ac_compiler $ac_option >&5"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3213 ac_status=$?
3214 if test -s conftest.err; then
3215 sed '10a\
3216 ... rest of stderr output deleted ...
3217 10q' conftest.err >conftest.er1
3218 cat conftest.er1 >&5
3220 rm -f conftest.er1 conftest.err
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }
3223 done
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3229 main ()
3233 return 0;
3235 _ACEOF
3236 ac_clean_files_save=$ac_clean_files
3237 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3238 # Try to create an executable without -o first, disregard a.out.
3239 # It will help us diagnose broken compilers, and finding out an intuition
3240 # of exeext.
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3242 $as_echo_n "checking whether the C compiler works... " >&6; }
3243 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3245 # The possible output files:
3246 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3248 ac_rmfiles=
3249 for ac_file in $ac_files
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3254 esac
3255 done
3256 rm -f $ac_rmfiles
3258 if { { ac_try="$ac_link_default"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_link_default") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
3269 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3270 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3271 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3272 # so that the user can short-circuit this test for compilers unknown to
3273 # Autoconf.
3274 for ac_file in $ac_files ''
3276 test -f "$ac_file" || continue
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3280 [ab].out )
3281 # We found the default executable, but exeext='' is most
3282 # certainly right.
3283 break;;
3284 *.* )
3285 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3286 then :; else
3287 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289 # We set ac_cv_exeext here because the later test for it is not
3290 # safe: cross compilers may not add the suffix if given an `-o'
3291 # argument, so we may need to know it at that point already.
3292 # Even if this section looks crufty: it has the advantage of
3293 # actually working.
3294 break;;
3296 break;;
3297 esac
3298 done
3299 test "$ac_cv_exeext" = no && ac_cv_exeext=
3301 else
3302 ac_file=''
3304 if test -z "$ac_file"; then :
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 $as_echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error 77 "C compiler cannot create executables
3313 See \`config.log' for more details" "$LINENO" 5; }
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3319 $as_echo_n "checking for C compiler default output file name... " >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3321 $as_echo "$ac_file" >&6; }
3322 ac_exeext=$ac_cv_exeext
3324 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3325 ac_clean_files=$ac_clean_files_save
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3327 $as_echo_n "checking for suffix of executables... " >&6; }
3328 if { { ac_try="$ac_link"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_link") 2>&5
3336 ac_status=$?
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }; then :
3339 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3340 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3341 # work properly (i.e., refer to `conftest.exe'), while it won't with
3342 # `rm'.
3343 for ac_file in conftest.exe conftest conftest.*; do
3344 test -f "$ac_file" || continue
3345 case $ac_file in
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3347 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 break;;
3349 * ) break;;
3350 esac
3351 done
3352 else
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3356 See \`config.log' for more details" "$LINENO" 5; }
3358 rm -f conftest conftest$ac_cv_exeext
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3360 $as_echo "$ac_cv_exeext" >&6; }
3362 rm -f conftest.$ac_ext
3363 EXEEXT=$ac_cv_exeext
3364 ac_exeext=$EXEEXT
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367 #include <stdio.h>
3369 main ()
3371 FILE *f = fopen ("conftest.out", "w");
3372 return ferror (f) || fclose (f) != 0;
3375 return 0;
3377 _ACEOF
3378 ac_clean_files="$ac_clean_files conftest.out"
3379 # Check that the compiler produces executables we can run. If not, either
3380 # the compiler is broken, or we cross compile.
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3382 $as_echo_n "checking whether we are cross compiling... " >&6; }
3383 if test "$cross_compiling" != yes; then
3384 { { ac_try="$ac_link"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_link") 2>&5
3392 ac_status=$?
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }
3395 if { ac_try='./conftest$ac_cv_exeext'
3396 { { case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_try") 2>&5
3403 ac_status=$?
3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405 test $ac_status = 0; }; }; then
3406 cross_compiling=no
3407 else
3408 if test "$cross_compiling" = maybe; then
3409 cross_compiling=yes
3410 else
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $? "cannot run C compiled programs.
3414 If you meant to cross compile, use \`--host'.
3415 See \`config.log' for more details" "$LINENO" 5; }
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3420 $as_echo "$cross_compiling" >&6; }
3422 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3425 $as_echo_n "checking for suffix of object files... " >&6; }
3426 if ${ac_cv_objext+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3433 main ()
3437 return 0;
3439 _ACEOF
3440 rm -f conftest.o conftest.obj
3441 if { { ac_try="$ac_compile"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_compile") 2>&5
3449 ac_status=$?
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; then :
3452 for ac_file in conftest.o conftest.obj conftest.*; do
3453 test -f "$ac_file" || continue;
3454 case $ac_file in
3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3456 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3457 break;;
3458 esac
3459 done
3460 else
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot compute suffix of object files: cannot compile
3467 See \`config.log' for more details" "$LINENO" 5; }
3469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3472 $as_echo "$ac_cv_objext" >&6; }
3473 OBJEXT=$ac_cv_objext
3474 ac_objext=$OBJEXT
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3476 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3477 if ${ac_cv_c_compiler_gnu+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3484 main ()
3486 #ifndef __GNUC__
3487 choke me
3488 #endif
3491 return 0;
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_compiler_gnu=yes
3496 else
3497 ac_compiler_gnu=no
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3504 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3505 if test $ac_compiler_gnu = yes; then
3506 GCC=yes
3507 else
3508 GCC=
3510 ac_test_CFLAGS=${CFLAGS+set}
3511 ac_save_CFLAGS=$CFLAGS
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3513 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3514 if ${ac_cv_prog_cc_g+:} false; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 ac_save_c_werror_flag=$ac_c_werror_flag
3518 ac_c_werror_flag=yes
3519 ac_cv_prog_cc_g=no
3520 CFLAGS="-g"
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3525 main ()
3529 return 0;
3531 _ACEOF
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533 ac_cv_prog_cc_g=yes
3534 else
3535 CFLAGS=""
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3540 main ()
3544 return 0;
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3549 else
3550 ac_c_werror_flag=$ac_save_c_werror_flag
3551 CFLAGS="-g"
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3556 main ()
3560 return 0;
3562 _ACEOF
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564 ac_cv_prog_cc_g=yes
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 ac_c_werror_flag=$ac_save_c_werror_flag
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3574 $as_echo "$ac_cv_prog_cc_g" >&6; }
3575 if test "$ac_test_CFLAGS" = set; then
3576 CFLAGS=$ac_save_CFLAGS
3577 elif test $ac_cv_prog_cc_g = yes; then
3578 if test "$GCC" = yes; then
3579 CFLAGS="-g -O2"
3580 else
3581 CFLAGS="-g"
3583 else
3584 if test "$GCC" = yes; then
3585 CFLAGS="-O2"
3586 else
3587 CFLAGS=
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3591 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3592 if ${ac_cv_prog_cc_c89+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 ac_cv_prog_cc_c89=no
3596 ac_save_CC=$CC
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3599 #include <stdarg.h>
3600 #include <stdio.h>
3601 #include <sys/types.h>
3602 #include <sys/stat.h>
3603 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3604 struct buf { int x; };
3605 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3606 static char *e (p, i)
3607 char **p;
3608 int i;
3610 return p[i];
3612 static char *f (char * (*g) (char **, int), char **p, ...)
3614 char *s;
3615 va_list v;
3616 va_start (v,p);
3617 s = g (p, va_arg (v,int));
3618 va_end (v);
3619 return s;
3622 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3623 function prototypes and stuff, but not '\xHH' hex character constants.
3624 These don't provoke an error unfortunately, instead are silently treated
3625 as 'x'. The following induces an error, until -std is added to get
3626 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3627 array size at least. It's necessary to write '\x00'==0 to get something
3628 that's true only with -std. */
3629 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3631 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3632 inside strings and character constants. */
3633 #define FOO(x) 'x'
3634 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3636 int test (int i, double x);
3637 struct s1 {int (*f) (int a);};
3638 struct s2 {int (*f) (double a);};
3639 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3640 int argc;
3641 char **argv;
3643 main ()
3645 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3647 return 0;
3649 _ACEOF
3650 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3651 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3653 CC="$ac_save_CC $ac_arg"
3654 if ac_fn_c_try_compile "$LINENO"; then :
3655 ac_cv_prog_cc_c89=$ac_arg
3657 rm -f core conftest.err conftest.$ac_objext
3658 test "x$ac_cv_prog_cc_c89" != "xno" && break
3659 done
3660 rm -f conftest.$ac_ext
3661 CC=$ac_save_CC
3664 # AC_CACHE_VAL
3665 case "x$ac_cv_prog_cc_c89" in
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3668 $as_echo "none needed" >&6; } ;;
3669 xno)
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3671 $as_echo "unsupported" >&6; } ;;
3673 CC="$CC $ac_cv_prog_cc_c89"
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3675 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3676 esac
3677 if test "x$ac_cv_prog_cc_c89" != xno; then :
3681 ac_ext=c
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687 ac_ext=cpp
3688 ac_cpp='$CXXCPP $CPPFLAGS'
3689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3692 if test -z "$CXX"; then
3693 if test -n "$CCC"; then
3694 CXX=$CCC
3695 else
3696 if test -n "$ac_tool_prefix"; then
3697 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if ${ac_cv_prog_CXX+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 if test -n "$CXX"; then
3707 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3716 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 break 2
3720 done
3721 done
3722 IFS=$as_save_IFS
3726 CXX=$ac_cv_prog_CXX
3727 if test -n "$CXX"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3729 $as_echo "$CXX" >&6; }
3730 else
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3736 test -n "$CXX" && break
3737 done
3739 if test -z "$CXX"; then
3740 ac_ct_CXX=$CXX
3741 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$ac_ct_CXX"; then
3751 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_ac_ct_CXX="$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3771 if test -n "$ac_ct_CXX"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3773 $as_echo "$ac_ct_CXX" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3780 test -n "$ac_ct_CXX" && break
3781 done
3783 if test "x$ac_ct_CXX" = x; then
3784 CXX="g++"
3785 else
3786 case $cross_compiling:$ac_tool_warned in
3787 yes:)
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790 ac_tool_warned=yes ;;
3791 esac
3792 CXX=$ac_ct_CXX
3798 # Provide some information about the compiler.
3799 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3800 set X $ac_compile
3801 ac_compiler=$2
3802 for ac_option in --version -v -V -qversion; do
3803 { { ac_try="$ac_compiler $ac_option >&5"
3804 case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3811 ac_status=$?
3812 if test -s conftest.err; then
3813 sed '10a\
3814 ... rest of stderr output deleted ...
3815 10q' conftest.err >conftest.er1
3816 cat conftest.er1 >&5
3818 rm -f conftest.er1 conftest.err
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }
3821 done
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3824 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3825 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3832 main ()
3834 #ifndef __GNUC__
3835 choke me
3836 #endif
3839 return 0;
3841 _ACEOF
3842 if ac_fn_cxx_try_compile "$LINENO"; then :
3843 ac_compiler_gnu=yes
3844 else
3845 ac_compiler_gnu=no
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3852 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3853 if test $ac_compiler_gnu = yes; then
3854 GXX=yes
3855 else
3856 GXX=
3858 ac_test_CXXFLAGS=${CXXFLAGS+set}
3859 ac_save_CXXFLAGS=$CXXFLAGS
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3861 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3862 if ${ac_cv_prog_cxx_g+:} false; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3866 ac_cxx_werror_flag=yes
3867 ac_cv_prog_cxx_g=no
3868 CXXFLAGS="-g"
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3873 main ()
3877 return 0;
3879 _ACEOF
3880 if ac_fn_cxx_try_compile "$LINENO"; then :
3881 ac_cv_prog_cxx_g=yes
3882 else
3883 CXXFLAGS=""
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3888 main ()
3892 return 0;
3894 _ACEOF
3895 if ac_fn_cxx_try_compile "$LINENO"; then :
3897 else
3898 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3899 CXXFLAGS="-g"
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3904 main ()
3908 return 0;
3910 _ACEOF
3911 if ac_fn_cxx_try_compile "$LINENO"; then :
3912 ac_cv_prog_cxx_g=yes
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3922 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3923 if test "$ac_test_CXXFLAGS" = set; then
3924 CXXFLAGS=$ac_save_CXXFLAGS
3925 elif test $ac_cv_prog_cxx_g = yes; then
3926 if test "$GXX" = yes; then
3927 CXXFLAGS="-g -O2"
3928 else
3929 CXXFLAGS="-g"
3931 else
3932 if test "$GXX" = yes; then
3933 CXXFLAGS="-O2"
3934 else
3935 CXXFLAGS=
3938 ac_ext=c
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944 if test -n "$ac_tool_prefix"; then
3945 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3946 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_CPPBIN+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 if test -n "$CPPBIN"; then
3953 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3962 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3966 done
3967 done
3968 IFS=$as_save_IFS
3972 CPPBIN=$ac_cv_prog_CPPBIN
3973 if test -n "$CPPBIN"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3975 $as_echo "$CPPBIN" >&6; }
3976 else
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3983 if test -z "$ac_cv_prog_CPPBIN"; then
3984 ac_ct_CPPBIN=$CPPBIN
3985 # Extract the first word of "cpp", so it can be a program name with args.
3986 set dummy cpp; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if test -n "$ac_ct_CPPBIN"; then
3993 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4002 ac_cv_prog_ac_ct_CPPBIN="cpp"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4006 done
4007 done
4008 IFS=$as_save_IFS
4012 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4013 if test -n "$ac_ct_CPPBIN"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4015 $as_echo "$ac_ct_CPPBIN" >&6; }
4016 else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4021 if test "x$ac_ct_CPPBIN" = x; then
4022 CPPBIN="cpp"
4023 else
4024 case $cross_compiling:$ac_tool_warned in
4025 yes:)
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4028 ac_tool_warned=yes ;;
4029 esac
4030 CPPBIN=$ac_ct_CPPBIN
4032 else
4033 CPPBIN="$ac_cv_prog_CPPBIN"
4037 cat >>confdefs.h <<_ACEOF
4038 #define EXEEXT "$ac_exeext"
4039 _ACEOF
4042 case $host in
4043 *-darwin*)
4044 if test "x$enable_win64" = "xyes"
4045 then
4046 CC="$CC -m64"
4047 CXX="$CXX -m64"
4048 host_cpu="x86_64"
4049 notice_platform="64-bit "
4050 TARGETFLAGS="-m64"
4052 else
4053 CC="$CC -m32"
4054 CXX="$CXX -m32"
4055 host_cpu="i386"
4056 notice_platform="32-bit "
4057 TARGETFLAGS="-m32"
4059 enable_win16=${enable_win16:-yes}
4061 with_fontconfig=${with_fontconfig:-no}
4063 x86_64*)
4064 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4065 then
4066 CC="$CC -m32"
4067 CXX="$CXX -m32"
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4069 $as_echo_n "checking whether $CC works... " >&6; }
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4075 main ()
4079 return 0;
4081 _ACEOF
4082 if ac_fn_c_try_link "$LINENO"; then :
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4084 $as_echo "yes" >&6; }
4085 else
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087 $as_echo "no" >&6; }
4088 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4090 rm -f core conftest.err conftest.$ac_objext \
4091 conftest$ac_exeext conftest.$ac_ext
4092 host_cpu="i386"
4093 notice_platform="32-bit "
4094 TARGETFLAGS="-m32"
4096 enable_win16=${enable_win16:-yes}
4097 else
4098 if test "x${GCC}" = "xyes"
4099 then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4101 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104 #include <stdarg.h>
4106 main ()
4108 void func(__builtin_ms_va_list *args);
4110 return 0;
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4115 $as_echo "yes" >&6; }
4116 else
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 $as_echo "no" >&6; }
4119 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 TARGETFLAGS="-m64"
4127 *-mingw32*|*-cygwin*)
4128 enable_win16=${enable_win16:-no}
4129 CFLAGS="$CFLAGS -D_WIN32"
4131 i[3456789]86*)
4132 enable_win16=${enable_win16:-yes}
4134 esac
4136 enable_win16=${enable_win16:-no}
4137 enable_win64=${enable_win64:-no}
4139 enable_winetest=${enable_winetest:-$enable_tests}
4141 if test -n "$with_wine64"
4142 then
4143 if test "x$enable_win64" = "xyes"
4144 then
4145 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4146 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4148 WOW64_DISABLE=\#
4150 enable_fonts=${enable_fonts:-no}
4151 enable_server=${enable_server:-no}
4152 enable_tools=${enable_tools:-no}
4153 elif test "x$enable_win64" = "xyes"
4154 then
4155 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4159 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4160 if ${wine_cv_toolsdir+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 wine_cv_toolsdir="$with_wine_tools"
4164 if test -z "$with_wine_tools"; then
4165 if test "$cross_compiling" = "yes"; then
4166 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4167 elif test -n "$with_wine64"; then
4168 wine_cv_toolsdir="$with_wine64"
4171 if test -z "$wine_cv_toolsdir"; then
4172 wine_cv_toolsdir="\$(top_builddir)"
4173 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4174 case "$wine_cv_toolsdir" in
4175 /*) ;;
4176 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4177 esac
4178 else
4179 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4183 $as_echo "$wine_cv_toolsdir" >&6; }
4184 TOOLSDIR=$wine_cv_toolsdir
4186 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4187 then
4188 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4192 for ac_prog in flex
4194 # Extract the first word of "$ac_prog", so it can be a program name with args.
4195 set dummy $ac_prog; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_FLEX+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if test -n "$FLEX"; then
4202 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_prog_FLEX="$ac_prog"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4215 done
4216 done
4217 IFS=$as_save_IFS
4221 FLEX=$ac_cv_prog_FLEX
4222 if test -n "$FLEX"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4224 $as_echo "$FLEX" >&6; }
4225 else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4231 test -n "$FLEX" && break
4232 done
4233 test -n "$FLEX" || FLEX="none"
4235 if test "$FLEX" = "none"
4236 then
4237 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4240 $as_echo_n "checking whether flex is recent enough... " >&6; }
4241 cat >conftest.l <<EOF
4242 %top{
4243 #include "prediluvian.h"
4247 if $FLEX -t conftest.l >/dev/null 2>&5
4248 then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4250 $as_echo "yes" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4257 for ac_prog in bison
4259 # Extract the first word of "$ac_prog", so it can be a program name with args.
4260 set dummy $ac_prog; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_prog_BISON+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 if test -n "$BISON"; then
4267 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276 ac_cv_prog_BISON="$ac_prog"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 break 2
4280 done
4281 done
4282 IFS=$as_save_IFS
4286 BISON=$ac_cv_prog_BISON
4287 if test -n "$BISON"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4289 $as_echo "$BISON" >&6; }
4290 else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4296 test -n "$BISON" && break
4297 done
4298 test -n "$BISON" || BISON="none"
4300 if test "$BISON" = "none"
4301 then
4302 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4305 if test -n "$ac_tool_prefix"; then
4306 for ac_prog in ar gar
4308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if ${ac_cv_prog_AR+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 if test -n "$AR"; then
4316 ac_cv_prog_AR="$AR" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4329 done
4330 done
4331 IFS=$as_save_IFS
4335 AR=$ac_cv_prog_AR
4336 if test -n "$AR"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4338 $as_echo "$AR" >&6; }
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4345 test -n "$AR" && break
4346 done
4348 if test -z "$AR"; then
4349 ac_ct_AR=$AR
4350 for ac_prog in ar gar
4352 # Extract the first word of "$ac_prog", so it can be a program name with args.
4353 set dummy $ac_prog; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 if test -n "$ac_ct_AR"; then
4360 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_ac_ct_AR="$ac_prog"
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 break 2
4373 done
4374 done
4375 IFS=$as_save_IFS
4379 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4380 if test -n "$ac_ct_AR"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4382 $as_echo "$ac_ct_AR" >&6; }
4383 else
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4389 test -n "$ac_ct_AR" && break
4390 done
4392 if test "x$ac_ct_AR" = x; then
4393 AR="ar"
4394 else
4395 case $cross_compiling:$ac_tool_warned in
4396 yes:)
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4399 ac_tool_warned=yes ;;
4400 esac
4401 AR=$ac_ct_AR
4405 ARFLAGS=rc
4407 if test -n "$ac_tool_prefix"; then
4408 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4409 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if ${ac_cv_prog_RANLIB+:} false; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 if test -n "$RANLIB"; then
4416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4429 done
4430 done
4431 IFS=$as_save_IFS
4435 RANLIB=$ac_cv_prog_RANLIB
4436 if test -n "$RANLIB"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4438 $as_echo "$RANLIB" >&6; }
4439 else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4446 if test -z "$ac_cv_prog_RANLIB"; then
4447 ac_ct_RANLIB=$RANLIB
4448 # Extract the first word of "ranlib", so it can be a program name with args.
4449 set dummy ranlib; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 if test -n "$ac_ct_RANLIB"; then
4456 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465 ac_cv_prog_ac_ct_RANLIB="ranlib"
4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 break 2
4469 done
4470 done
4471 IFS=$as_save_IFS
4475 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4476 if test -n "$ac_ct_RANLIB"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4478 $as_echo "$ac_ct_RANLIB" >&6; }
4479 else
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4484 if test "x$ac_ct_RANLIB" = x; then
4485 RANLIB=":"
4486 else
4487 case $cross_compiling:$ac_tool_warned in
4488 yes:)
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4491 ac_tool_warned=yes ;;
4492 esac
4493 RANLIB=$ac_ct_RANLIB
4495 else
4496 RANLIB="$ac_cv_prog_RANLIB"
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4500 $as_echo_n "checking whether ln -s works... " >&6; }
4501 LN_S=$as_ln_s
4502 if test "$LN_S" = "ln -s"; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4504 $as_echo "yes" >&6; }
4505 else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4507 $as_echo "no, using $LN_S" >&6; }
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4511 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4512 if ${ac_cv_path_GREP+:} false; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 if test -z "$GREP"; then
4516 ac_path_GREP_found=false
4517 # Loop through the user's path and test for each of PROGNAME-LIST
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_prog in grep ggrep; do
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4526 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4527 # Check for GNU ac_path_GREP and select it if it is found.
4528 # Check for GNU $ac_path_GREP
4529 case `"$ac_path_GREP" --version 2>&1` in
4530 *GNU*)
4531 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4533 ac_count=0
4534 $as_echo_n 0123456789 >"conftest.in"
4535 while :
4537 cat "conftest.in" "conftest.in" >"conftest.tmp"
4538 mv "conftest.tmp" "conftest.in"
4539 cp "conftest.in" "conftest.nl"
4540 $as_echo 'GREP' >> "conftest.nl"
4541 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4543 as_fn_arith $ac_count + 1 && ac_count=$as_val
4544 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4545 # Best one so far, save it but keep looking for a better one
4546 ac_cv_path_GREP="$ac_path_GREP"
4547 ac_path_GREP_max=$ac_count
4549 # 10*(2^10) chars as input seems more than enough
4550 test $ac_count -gt 10 && break
4551 done
4552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4553 esac
4555 $ac_path_GREP_found && break 3
4556 done
4557 done
4558 done
4559 IFS=$as_save_IFS
4560 if test -z "$ac_cv_path_GREP"; then
4561 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4563 else
4564 ac_cv_path_GREP=$GREP
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4569 $as_echo "$ac_cv_path_GREP" >&6; }
4570 GREP="$ac_cv_path_GREP"
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4574 $as_echo_n "checking for egrep... " >&6; }
4575 if ${ac_cv_path_EGREP+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4579 then ac_cv_path_EGREP="$GREP -E"
4580 else
4581 if test -z "$EGREP"; then
4582 ac_path_EGREP_found=false
4583 # Loop through the user's path and test for each of PROGNAME-LIST
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_prog in egrep; do
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4592 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4593 # Check for GNU ac_path_EGREP and select it if it is found.
4594 # Check for GNU $ac_path_EGREP
4595 case `"$ac_path_EGREP" --version 2>&1` in
4596 *GNU*)
4597 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4599 ac_count=0
4600 $as_echo_n 0123456789 >"conftest.in"
4601 while :
4603 cat "conftest.in" "conftest.in" >"conftest.tmp"
4604 mv "conftest.tmp" "conftest.in"
4605 cp "conftest.in" "conftest.nl"
4606 $as_echo 'EGREP' >> "conftest.nl"
4607 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609 as_fn_arith $ac_count + 1 && ac_count=$as_val
4610 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4611 # Best one so far, save it but keep looking for a better one
4612 ac_cv_path_EGREP="$ac_path_EGREP"
4613 ac_path_EGREP_max=$ac_count
4615 # 10*(2^10) chars as input seems more than enough
4616 test $ac_count -gt 10 && break
4617 done
4618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619 esac
4621 $ac_path_EGREP_found && break 3
4622 done
4623 done
4624 done
4625 IFS=$as_save_IFS
4626 if test -z "$ac_cv_path_EGREP"; then
4627 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4629 else
4630 ac_cv_path_EGREP=$EGREP
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4636 $as_echo "$ac_cv_path_EGREP" >&6; }
4637 EGREP="$ac_cv_path_EGREP"
4640 # Extract the first word of "ldconfig", so it can be a program name with args.
4641 set dummy ldconfig; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_path_LDCONFIG+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 case $LDCONFIG in
4648 [\\/]* | ?:[\\/]*)
4649 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in /sbin /usr/sbin $PATH
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4663 done
4664 done
4665 IFS=$as_save_IFS
4667 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4669 esac
4671 LDCONFIG=$ac_cv_path_LDCONFIG
4672 if test -n "$LDCONFIG"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4674 $as_echo "$LDCONFIG" >&6; }
4675 else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4681 # Find a good install program. We prefer a C program (faster),
4682 # so one script is as good as another. But avoid the broken or
4683 # incompatible versions:
4684 # SysV /etc/install, /usr/sbin/install
4685 # SunOS /usr/etc/install
4686 # IRIX /sbin/install
4687 # AIX /bin/install
4688 # AmigaOS /C/install, which installs bootblocks on floppy discs
4689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4692 # OS/2's system install, which has a completely different semantic
4693 # ./install, which can be erroneously created by make from ./install.sh.
4694 # Reject install programs that cannot install multiple files.
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4696 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4697 if test -z "$INSTALL"; then
4698 if ${ac_cv_path_install+:} false; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 # Account for people who put trailing slashes in PATH elements.
4707 case $as_dir/ in #((
4708 ./ | .// | /[cC]/* | \
4709 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4710 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4711 /usr/ucb/* ) ;;
4713 # OSF1 and SCO ODT 3.0 have their own names for install.
4714 # Don't use installbsd from OSF since it installs stuff as root
4715 # by default.
4716 for ac_prog in ginstall scoinst install; do
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4719 if test $ac_prog = install &&
4720 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4721 # AIX install. It has an incompatible calling convention.
4723 elif test $ac_prog = install &&
4724 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4725 # program-specific install script used by HP pwplus--don't use.
4727 else
4728 rm -rf conftest.one conftest.two conftest.dir
4729 echo one > conftest.one
4730 echo two > conftest.two
4731 mkdir conftest.dir
4732 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4733 test -s conftest.one && test -s conftest.two &&
4734 test -s conftest.dir/conftest.one &&
4735 test -s conftest.dir/conftest.two
4736 then
4737 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4738 break 3
4742 done
4743 done
4745 esac
4747 done
4748 IFS=$as_save_IFS
4750 rm -rf conftest.one conftest.two conftest.dir
4753 if test "${ac_cv_path_install+set}" = set; then
4754 INSTALL=$ac_cv_path_install
4755 else
4756 # As a last resort, use the slow shell script. Don't cache a
4757 # value for INSTALL within a source directory, because that will
4758 # break other packages using the cache if that directory is
4759 # removed, or if the value is a relative name.
4760 INSTALL=$ac_install_sh
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4764 $as_echo "$INSTALL" >&6; }
4766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4767 # It thinks the first close brace ends the variable substitution.
4768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4774 case "$INSTALL" in
4775 [\\/$]* | ?:[\\/]* ) ;;
4776 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4777 esac
4779 for ac_prog in lclint lint
4781 # Extract the first word of "$ac_prog", so it can be a program name with args.
4782 set dummy $ac_prog; ac_word=$2
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784 $as_echo_n "checking for $ac_word... " >&6; }
4785 if ${ac_cv_prog_LINT+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 if test -n "$LINT"; then
4789 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4790 else
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_prog_LINT="$ac_prog"
4799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4802 done
4803 done
4804 IFS=$as_save_IFS
4808 LINT=$ac_cv_prog_LINT
4809 if test -n "$LINT"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4811 $as_echo "$LINT" >&6; }
4812 else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 $as_echo "no" >&6; }
4818 test -n "$LINT" && break
4819 done
4821 if test "$LINT" = "lint"
4822 then
4823 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4827 for ac_prog in fontforge
4829 # Extract the first word of "$ac_prog", so it can be a program name with args.
4830 set dummy $ac_prog; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if ${ac_cv_prog_FONTFORGE+:} false; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 if test -n "$FONTFORGE"; then
4837 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4842 IFS=$as_save_IFS
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846 ac_cv_prog_FONTFORGE="$ac_prog"
4847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 break 2
4850 done
4851 done
4852 IFS=$as_save_IFS
4856 FONTFORGE=$ac_cv_prog_FONTFORGE
4857 if test -n "$FONTFORGE"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4859 $as_echo "$FONTFORGE" >&6; }
4860 else
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4866 test -n "$FONTFORGE" && break
4867 done
4868 test -n "$FONTFORGE" || FONTFORGE="false"
4870 for ac_prog in pkg-config
4872 # Extract the first word of "$ac_prog", so it can be a program name with args.
4873 set dummy $ac_prog; ac_word=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 if test -n "$PKG_CONFIG"; then
4880 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4881 else
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_prog_PKG_CONFIG="$ac_prog"
4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 break 2
4893 done
4894 done
4895 IFS=$as_save_IFS
4899 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4900 if test -n "$PKG_CONFIG"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4902 $as_echo "$PKG_CONFIG" >&6; }
4903 else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4909 test -n "$PKG_CONFIG" && break
4910 done
4911 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4913 for ac_prog in rsvg
4915 # Extract the first word of "$ac_prog", so it can be a program name with args.
4916 set dummy $ac_prog; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if ${ac_cv_prog_RSVG+:} false; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test -n "$RSVG"; then
4923 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_RSVG="$ac_prog"
4933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4936 done
4937 done
4938 IFS=$as_save_IFS
4942 RSVG=$ac_cv_prog_RSVG
4943 if test -n "$RSVG"; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4945 $as_echo "$RSVG" >&6; }
4946 else
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4952 test -n "$RSVG" && break
4953 done
4954 test -n "$RSVG" || RSVG="false"
4956 for ac_prog in convert
4958 # Extract the first word of "$ac_prog", so it can be a program name with args.
4959 set dummy $ac_prog; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if ${ac_cv_prog_CONVERT+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if test -n "$CONVERT"; then
4966 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4967 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4971 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975 ac_cv_prog_CONVERT="$ac_prog"
4976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 break 2
4979 done
4980 done
4981 IFS=$as_save_IFS
4985 CONVERT=$ac_cv_prog_CONVERT
4986 if test -n "$CONVERT"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4988 $as_echo "$CONVERT" >&6; }
4989 else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4995 test -n "$CONVERT" && break
4996 done
4997 test -n "$CONVERT" || CONVERT="false"
4999 for ac_prog in icotool
5001 # Extract the first word of "$ac_prog", so it can be a program name with args.
5002 set dummy $ac_prog; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_prog_ICOTOOL+:} false; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 if test -n "$ICOTOOL"; then
5009 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_prog_ICOTOOL="$ac_prog"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5022 done
5023 done
5024 IFS=$as_save_IFS
5028 ICOTOOL=$ac_cv_prog_ICOTOOL
5029 if test -n "$ICOTOOL"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5031 $as_echo "$ICOTOOL" >&6; }
5032 else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5038 test -n "$ICOTOOL" && break
5039 done
5040 test -n "$ICOTOOL" || ICOTOOL="false"
5042 for ac_prog in msgfmt
5044 # Extract the first word of "$ac_prog", so it can be a program name with args.
5045 set dummy $ac_prog; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_prog_MSGFMT+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if test -n "$MSGFMT"; then
5052 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_prog_MSGFMT="$ac_prog"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5065 done
5066 done
5067 IFS=$as_save_IFS
5071 MSGFMT=$ac_cv_prog_MSGFMT
5072 if test -n "$MSGFMT"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5074 $as_echo "$MSGFMT" >&6; }
5075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5081 test -n "$MSGFMT" && break
5082 done
5083 test -n "$MSGFMT" || MSGFMT="false"
5086 if test "x$enable_maintainer_mode" != "xyes"
5087 then
5088 MAINTAINER_MODE=\#
5090 else
5091 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5092 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5094 if test "$CONVERT" = false
5095 then
5096 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5099 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5100 convert_version=`convert --version | head -n1`
5101 if test "x$convert_version" != "x"
5102 then
5103 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5104 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5105 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5106 then
5107 CONVERT=false
5110 if test "$CONVERT" = false
5111 then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5113 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5114 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5115 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5117 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5121 if test "$ICOTOOL" = false
5122 then
5123 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5124 else
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5126 $as_echo_n "checking for recent enough icotool... " >&6; }
5127 icotool_version=`icotool --version | head -n1`
5128 if test "x$icotool_version" != "x"
5129 then
5130 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5131 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5132 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5133 then
5134 ICOTOOL=false
5135 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5138 if test "$ICOTOOL" = false
5139 then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5141 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5142 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5143 else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5145 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5149 with_gettext=yes
5150 with_gettextpo=yes
5151 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5154 test "x$with_gettext" != xno || MSGFMT=false
5155 if test "$MSGFMT" != "false"
5156 then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5158 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5159 cat >conftest.po <<EOF
5160 # comment
5161 msgctxt "ctxt"
5162 msgid "id"
5163 msgstr "str"
5165 if $MSGFMT -o /dev/null conftest.po 2>&5
5166 then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5168 $as_echo "yes" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5172 MSGFMT=false
5175 if test "$MSGFMT" = false; then :
5176 case "x$with_gettext" in
5177 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5178 xno) ;;
5179 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5180 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5181 esac
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5186 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5187 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 ac_check_lib_save_LIBS=$LIBS
5191 LIBS="-li386 $LIBS"
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5195 /* Override any GCC internal prototype to avoid an error.
5196 Use char because int might match the return type of a GCC
5197 builtin and then its argument prototype would still apply. */
5198 #ifdef __cplusplus
5199 extern "C"
5200 #endif
5201 char i386_set_ldt ();
5203 main ()
5205 return i386_set_ldt ();
5207 return 0;
5209 _ACEOF
5210 if ac_fn_c_try_link "$LINENO"; then :
5211 ac_cv_lib_i386_i386_set_ldt=yes
5212 else
5213 ac_cv_lib_i386_i386_set_ldt=no
5215 rm -f core conftest.err conftest.$ac_objext \
5216 conftest$ac_exeext conftest.$ac_ext
5217 LIBS=$ac_check_lib_save_LIBS
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5220 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5221 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5222 cat >>confdefs.h <<_ACEOF
5223 #define HAVE_LIBI386 1
5224 _ACEOF
5226 LIBS="-li386 $LIBS"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5231 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5232 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 ac_check_lib_save_LIBS=$LIBS
5236 LIBS="-lossaudio $LIBS"
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5240 /* Override any GCC internal prototype to avoid an error.
5241 Use char because int might match the return type of a GCC
5242 builtin and then its argument prototype would still apply. */
5243 #ifdef __cplusplus
5244 extern "C"
5245 #endif
5246 char _oss_ioctl ();
5248 main ()
5250 return _oss_ioctl ();
5252 return 0;
5254 _ACEOF
5255 if ac_fn_c_try_link "$LINENO"; then :
5256 ac_cv_lib_ossaudio__oss_ioctl=yes
5257 else
5258 ac_cv_lib_ossaudio__oss_ioctl=no
5260 rm -f core conftest.err conftest.$ac_objext \
5261 conftest$ac_exeext conftest.$ac_ext
5262 LIBS=$ac_check_lib_save_LIBS
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5265 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5266 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5267 cat >>confdefs.h <<_ACEOF
5268 #define HAVE_LIBOSSAUDIO 1
5269 _ACEOF
5271 LIBS="-lossaudio $LIBS"
5276 XLIB=""
5278 OPENGL_LIBS=""
5282 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5284 # Check whether --enable-largefile was given.
5285 if test "${enable_largefile+set}" = set; then :
5286 enableval=$enable_largefile;
5289 if test "$enable_largefile" != no; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5292 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5293 if ${ac_cv_sys_largefile_CC+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 ac_cv_sys_largefile_CC=no
5297 if test "$GCC" != yes; then
5298 ac_save_CC=$CC
5299 while :; do
5300 # IRIX 6.2 and later do not support large files by default,
5301 # so use the C compiler's -n32 option if that helps.
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304 #include <sys/types.h>
5305 /* Check that off_t can represent 2**63 - 1 correctly.
5306 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5307 since some C++ compilers masquerading as C compilers
5308 incorrectly reject 9223372036854775807. */
5309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5311 && LARGE_OFF_T % 2147483647 == 1)
5312 ? 1 : -1];
5314 main ()
5318 return 0;
5320 _ACEOF
5321 if ac_fn_c_try_compile "$LINENO"; then :
5322 break
5324 rm -f core conftest.err conftest.$ac_objext
5325 CC="$CC -n32"
5326 if ac_fn_c_try_compile "$LINENO"; then :
5327 ac_cv_sys_largefile_CC=' -n32'; break
5329 rm -f core conftest.err conftest.$ac_objext
5330 break
5331 done
5332 CC=$ac_save_CC
5333 rm -f conftest.$ac_ext
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5337 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5338 if test "$ac_cv_sys_largefile_CC" != no; then
5339 CC=$CC$ac_cv_sys_largefile_CC
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5343 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5344 if ${ac_cv_sys_file_offset_bits+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 while :; do
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 #include <sys/types.h>
5351 /* Check that off_t can represent 2**63 - 1 correctly.
5352 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5353 since some C++ compilers masquerading as C compilers
5354 incorrectly reject 9223372036854775807. */
5355 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5356 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5357 && LARGE_OFF_T % 2147483647 == 1)
5358 ? 1 : -1];
5360 main ()
5364 return 0;
5366 _ACEOF
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368 ac_cv_sys_file_offset_bits=no; break
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373 #define _FILE_OFFSET_BITS 64
5374 #include <sys/types.h>
5375 /* Check that off_t can represent 2**63 - 1 correctly.
5376 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5377 since some C++ compilers masquerading as C compilers
5378 incorrectly reject 9223372036854775807. */
5379 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5380 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5381 && LARGE_OFF_T % 2147483647 == 1)
5382 ? 1 : -1];
5384 main ()
5388 return 0;
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392 ac_cv_sys_file_offset_bits=64; break
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 ac_cv_sys_file_offset_bits=unknown
5396 break
5397 done
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5400 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5401 case $ac_cv_sys_file_offset_bits in #(
5402 no | unknown) ;;
5404 cat >>confdefs.h <<_ACEOF
5405 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5406 _ACEOF
5408 esac
5409 rm -rf conftest*
5410 if test $ac_cv_sys_file_offset_bits = unknown; then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5412 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5413 if ${ac_cv_sys_large_files+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 while :; do
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 #include <sys/types.h>
5420 /* Check that off_t can represent 2**63 - 1 correctly.
5421 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5422 since some C++ compilers masquerading as C compilers
5423 incorrectly reject 9223372036854775807. */
5424 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5425 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5426 && LARGE_OFF_T % 2147483647 == 1)
5427 ? 1 : -1];
5429 main ()
5433 return 0;
5435 _ACEOF
5436 if ac_fn_c_try_compile "$LINENO"; then :
5437 ac_cv_sys_large_files=no; break
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 #define _LARGE_FILES 1
5443 #include <sys/types.h>
5444 /* Check that off_t can represent 2**63 - 1 correctly.
5445 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5446 since some C++ compilers masquerading as C compilers
5447 incorrectly reject 9223372036854775807. */
5448 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5449 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5450 && LARGE_OFF_T % 2147483647 == 1)
5451 ? 1 : -1];
5453 main ()
5457 return 0;
5459 _ACEOF
5460 if ac_fn_c_try_compile "$LINENO"; then :
5461 ac_cv_sys_large_files=1; break
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464 ac_cv_sys_large_files=unknown
5465 break
5466 done
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5469 $as_echo "$ac_cv_sys_large_files" >&6; }
5470 case $ac_cv_sys_large_files in #(
5471 no | unknown) ;;
5473 cat >>confdefs.h <<_ACEOF
5474 #define _LARGE_FILES $ac_cv_sys_large_files
5475 _ACEOF
5477 esac
5478 rm -rf conftest*
5483 ac_ext=c
5484 ac_cpp='$CPP $CPPFLAGS'
5485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5489 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5490 # On Suns, sometimes $CPP names a directory.
5491 if test -n "$CPP" && test -d "$CPP"; then
5492 CPP=
5494 if test -z "$CPP"; then
5495 if ${ac_cv_prog_CPP+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 # Double quotes because CPP needs to be expanded
5499 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5501 ac_preproc_ok=false
5502 for ac_c_preproc_warn_flag in '' yes
5504 # Use a header file that comes with gcc, so configuring glibc
5505 # with a fresh cross-compiler works.
5506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5507 # <limits.h> exists even on freestanding compilers.
5508 # On the NeXT, cc -E runs the code through the compiler's parser,
5509 # not just through cpp. "Syntax error" is here to catch this case.
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 #ifdef __STDC__
5513 # include <limits.h>
5514 #else
5515 # include <assert.h>
5516 #endif
5517 Syntax error
5518 _ACEOF
5519 if ac_fn_c_try_cpp "$LINENO"; then :
5521 else
5522 # Broken: fails on valid input.
5523 continue
5525 rm -f conftest.err conftest.i conftest.$ac_ext
5527 # OK, works on sane cases. Now check whether nonexistent headers
5528 # can be detected and how.
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 #include <ac_nonexistent.h>
5532 _ACEOF
5533 if ac_fn_c_try_cpp "$LINENO"; then :
5534 # Broken: success on invalid input.
5535 continue
5536 else
5537 # Passes both tests.
5538 ac_preproc_ok=:
5539 break
5541 rm -f conftest.err conftest.i conftest.$ac_ext
5543 done
5544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5545 rm -f conftest.i conftest.err conftest.$ac_ext
5546 if $ac_preproc_ok; then :
5547 break
5550 done
5551 ac_cv_prog_CPP=$CPP
5554 CPP=$ac_cv_prog_CPP
5555 else
5556 ac_cv_prog_CPP=$CPP
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5559 $as_echo "$CPP" >&6; }
5560 ac_preproc_ok=false
5561 for ac_c_preproc_warn_flag in '' yes
5563 # Use a header file that comes with gcc, so configuring glibc
5564 # with a fresh cross-compiler works.
5565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5566 # <limits.h> exists even on freestanding compilers.
5567 # On the NeXT, cc -E runs the code through the compiler's parser,
5568 # not just through cpp. "Syntax error" is here to catch this case.
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 #ifdef __STDC__
5572 # include <limits.h>
5573 #else
5574 # include <assert.h>
5575 #endif
5576 Syntax error
5577 _ACEOF
5578 if ac_fn_c_try_cpp "$LINENO"; then :
5580 else
5581 # Broken: fails on valid input.
5582 continue
5584 rm -f conftest.err conftest.i conftest.$ac_ext
5586 # OK, works on sane cases. Now check whether nonexistent headers
5587 # can be detected and how.
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 #include <ac_nonexistent.h>
5591 _ACEOF
5592 if ac_fn_c_try_cpp "$LINENO"; then :
5593 # Broken: success on invalid input.
5594 continue
5595 else
5596 # Passes both tests.
5597 ac_preproc_ok=:
5598 break
5600 rm -f conftest.err conftest.i conftest.$ac_ext
5602 done
5603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5604 rm -f conftest.i conftest.err conftest.$ac_ext
5605 if $ac_preproc_ok; then :
5607 else
5608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5610 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5611 See \`config.log' for more details" "$LINENO" 5; }
5614 ac_ext=c
5615 ac_cpp='$CPP $CPPFLAGS'
5616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5622 $as_echo_n "checking for ANSI C header files... " >&6; }
5623 if ${ac_cv_header_stdc+:} false; then :
5624 $as_echo_n "(cached) " >&6
5625 else
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5628 #include <stdlib.h>
5629 #include <stdarg.h>
5630 #include <string.h>
5631 #include <float.h>
5634 main ()
5638 return 0;
5640 _ACEOF
5641 if ac_fn_c_try_compile "$LINENO"; then :
5642 ac_cv_header_stdc=yes
5643 else
5644 ac_cv_header_stdc=no
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 if test $ac_cv_header_stdc = yes; then
5649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #include <string.h>
5654 _ACEOF
5655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5656 $EGREP "memchr" >/dev/null 2>&1; then :
5658 else
5659 ac_cv_header_stdc=no
5661 rm -f conftest*
5665 if test $ac_cv_header_stdc = yes; then
5666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <stdlib.h>
5671 _ACEOF
5672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5673 $EGREP "free" >/dev/null 2>&1; then :
5675 else
5676 ac_cv_header_stdc=no
5678 rm -f conftest*
5682 if test $ac_cv_header_stdc = yes; then
5683 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5684 if test "$cross_compiling" = yes; then :
5686 else
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #include <ctype.h>
5690 #include <stdlib.h>
5691 #if ((' ' & 0x0FF) == 0x020)
5692 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5693 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5694 #else
5695 # define ISLOWER(c) \
5696 (('a' <= (c) && (c) <= 'i') \
5697 || ('j' <= (c) && (c) <= 'r') \
5698 || ('s' <= (c) && (c) <= 'z'))
5699 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5700 #endif
5702 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5704 main ()
5706 int i;
5707 for (i = 0; i < 256; i++)
5708 if (XOR (islower (i), ISLOWER (i))
5709 || toupper (i) != TOUPPER (i))
5710 return 2;
5711 return 0;
5713 _ACEOF
5714 if ac_fn_c_try_run "$LINENO"; then :
5716 else
5717 ac_cv_header_stdc=no
5719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5720 conftest.$ac_objext conftest.beam conftest.$ac_ext
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5726 $as_echo "$ac_cv_header_stdc" >&6; }
5727 if test $ac_cv_header_stdc = yes; then
5729 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5733 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5734 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5735 inttypes.h stdint.h unistd.h
5736 do :
5737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5738 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5740 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5741 cat >>confdefs.h <<_ACEOF
5742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5743 _ACEOF
5747 done
5750 for ac_header in \
5751 AL/al.h \
5752 ApplicationServices/ApplicationServices.h \
5753 AudioToolbox/AudioConverter.h \
5754 AudioUnit/AudioUnit.h \
5755 AudioUnit/AudioComponent.h \
5756 CL/cl.h \
5757 Carbon/Carbon.h \
5758 CoreAudio/CoreAudio.h \
5759 CoreServices/CoreServices.h \
5760 DiskArbitration/DiskArbitration.h \
5761 IOKit/IOKitLib.h \
5762 IOKit/hid/IOHIDLib.h \
5763 OpenAL/al.h \
5764 OpenCL/opencl.h \
5765 QuickTime/ImageCompression.h \
5766 Security/Security.h \
5767 alias.h \
5768 alsa/asoundlib.h \
5769 arpa/inet.h \
5770 arpa/nameser.h \
5771 asm/types.h \
5772 capi20.h \
5773 curses.h \
5774 direct.h \
5775 dirent.h \
5776 dlfcn.h \
5777 elf.h \
5778 float.h \
5779 fnmatch.h \
5780 fontconfig/fontconfig.h \
5781 getopt.h \
5782 gettext-po.h \
5783 grp.h \
5784 gsm.h \
5785 gsm/gsm.h \
5786 ieeefp.h \
5787 inet/mib2.h \
5788 io.h \
5789 jpeglib.h \
5790 kstat.h \
5791 lber.h \
5792 lcms.h \
5793 lcms/lcms.h \
5794 ldap.h \
5795 link.h \
5796 linux/cdrom.h \
5797 linux/compiler.h \
5798 linux/hdreg.h \
5799 linux/input.h \
5800 linux/ioctl.h \
5801 linux/joystick.h \
5802 linux/major.h \
5803 linux/param.h \
5804 linux/serial.h \
5805 linux/types.h \
5806 linux/ucdrom.h \
5807 mach-o/nlist.h \
5808 mach-o/loader.h \
5809 mach/mach.h \
5810 mach/machine.h \
5811 machine/cpu.h \
5812 machine/limits.h \
5813 machine/sysarch.h \
5814 mntent.h \
5815 mpg123.h \
5816 ncurses.h \
5817 netdb.h \
5818 netinet/in.h \
5819 netinet/in_systm.h \
5820 netinet/tcp.h \
5821 netinet/tcp_fsm.h \
5822 openssl/err.h \
5823 openssl/ssl.h \
5824 png.h \
5825 poll.h \
5826 port.h \
5827 process.h \
5828 pthread.h \
5829 pwd.h \
5830 sched.h \
5831 scsi/scsi.h \
5832 scsi/scsi_ioctl.h \
5833 scsi/sg.h \
5834 stdbool.h \
5835 stdint.h \
5836 strings.h \
5837 stropts.h \
5838 sys/asoundlib.h \
5839 sys/attr.h \
5840 sys/cdio.h \
5841 sys/elf32.h \
5842 sys/epoll.h \
5843 sys/event.h \
5844 sys/exec_elf.h \
5845 sys/filio.h \
5846 sys/inotify.h \
5847 sys/ioctl.h \
5848 sys/ipc.h \
5849 sys/limits.h \
5850 sys/link.h \
5851 sys/mman.h \
5852 sys/modem.h \
5853 sys/msg.h \
5854 sys/mtio.h \
5855 sys/param.h \
5856 sys/poll.h \
5857 sys/prctl.h \
5858 sys/protosw.h \
5859 sys/ptrace.h \
5860 sys/resource.h \
5861 sys/scsiio.h \
5862 sys/shm.h \
5863 sys/signal.h \
5864 sys/socket.h \
5865 sys/socketvar.h \
5866 sys/sockio.h \
5867 sys/statvfs.h \
5868 sys/strtio.h \
5869 sys/syscall.h \
5870 sys/tihdr.h \
5871 sys/time.h \
5872 sys/timeout.h \
5873 sys/times.h \
5874 sys/uio.h \
5875 sys/un.h \
5876 sys/utsname.h \
5877 sys/vm86.h \
5878 sys/wait.h \
5879 syscall.h \
5880 termios.h \
5881 tiffio.h \
5882 unistd.h \
5883 utime.h \
5884 valgrind/memcheck.h \
5885 valgrind/valgrind.h \
5886 zlib.h
5888 do :
5889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5890 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5891 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5892 cat >>confdefs.h <<_ACEOF
5893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5894 _ACEOF
5898 done
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5901 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5902 if ${ac_cv_header_stat_broken+:} false; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 #include <sys/types.h>
5908 #include <sys/stat.h>
5910 #if defined S_ISBLK && defined S_IFDIR
5911 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5912 #endif
5914 #if defined S_ISBLK && defined S_IFCHR
5915 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5916 #endif
5918 #if defined S_ISLNK && defined S_IFREG
5919 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5920 #endif
5922 #if defined S_ISSOCK && defined S_IFREG
5923 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5924 #endif
5926 _ACEOF
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928 ac_cv_header_stat_broken=no
5929 else
5930 ac_cv_header_stat_broken=yes
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5935 $as_echo "$ac_cv_header_stat_broken" >&6; }
5936 if test $ac_cv_header_stat_broken = yes; then
5938 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5944 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5945 do :
5946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5947 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5948 #ifdef HAVE_SYS_PARAM_H
5949 # include <sys/param.h>
5950 #endif
5952 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5953 cat >>confdefs.h <<_ACEOF
5954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5955 _ACEOF
5959 done
5962 for ac_header in \
5963 netinet/ip.h \
5964 net/if.h \
5965 net/if_arp.h \
5966 net/if_dl.h \
5967 net/if_types.h \
5968 net/route.h \
5969 netinet/if_ether.h \
5970 netinet/if_inarp.h \
5971 netinet/in_pcb.h \
5972 netinet/ip_icmp.h \
5973 netinet/ip_var.h \
5974 netinet/udp.h \
5975 netipx/ipx.h \
5977 do :
5978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5979 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5980 #ifdef HAVE_SYS_SOCKET_H
5981 # include <sys/socket.h>
5982 #endif
5983 #ifdef HAVE_SYS_SOCKETVAR_H
5984 # include <sys/socketvar.h>
5985 #endif
5986 #ifdef HAVE_NET_ROUTE_H
5987 # include <net/route.h>
5988 #endif
5989 #ifdef HAVE_NETINET_IN_H
5990 # include <netinet/in.h>
5991 #endif
5992 #ifdef HAVE_NETINET_IN_SYSTM_H
5993 # include <netinet/in_systm.h>
5994 #endif
5995 #ifdef HAVE_NET_IF_H
5996 # include <net/if.h>
5997 #endif
5998 #ifdef HAVE_NETINET_IP_H
5999 # include <netinet/ip.h>
6000 #endif
6002 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6003 cat >>confdefs.h <<_ACEOF
6004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6005 _ACEOF
6009 done
6012 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6013 do :
6014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6015 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6016 #ifdef HAVE_ALIAS_H
6017 # include <alias.h>
6018 #endif
6019 #ifdef HAVE_SYS_SOCKET_H
6020 # include <sys/socket.h>
6021 #endif
6022 #ifdef HAVE_SYS_SOCKETVAR_H
6023 # include <sys/socketvar.h>
6024 #endif
6025 #ifdef HAVE_SYS_TIMEOUT_H
6026 # include <sys/timeout.h>
6027 #endif
6028 #ifdef HAVE_NETINET_IN_H
6029 # include <netinet/in.h>
6030 #endif
6031 #ifdef HAVE_NETINET_IN_SYSTM_H
6032 # include <netinet/in_systm.h>
6033 #endif
6034 #ifdef HAVE_NETINET_IP_H
6035 # include <netinet/ip.h>
6036 #endif
6037 #ifdef HAVE_NETINET_IP_VAR_H
6038 # include <netinet/ip_var.h>
6039 #endif
6040 #ifdef HAVE_NETINET_IP_ICMP_H
6041 # include <netinet/ip_icmp.h>
6042 #endif
6043 #ifdef HAVE_NETINET_UDP_H
6044 # include <netinet/udp.h>
6045 #endif
6046 #ifdef HAVE_NETINET_TCP_H
6047 # include <netinet/tcp.h>
6048 #endif
6049 #ifdef HAVE_NETINET_TCP_TIMER_H
6050 #include <netinet/tcp_timer.h>
6051 #endif
6053 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6054 cat >>confdefs.h <<_ACEOF
6055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6056 _ACEOF
6060 done
6063 for ac_header in linux/ipx.h linux/irda.h
6064 do :
6065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6066 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6067 #ifdef HAVE_ASM_TYPES_H
6068 # include <asm/types.h>
6069 #endif
6070 #ifdef HAVE_SYS_SOCKET_H
6071 # include <sys/socket.h>
6072 #endif
6073 #ifdef HAVE_LINUX_TYPES_H
6074 # include <linux/types.h>
6075 #endif
6077 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6078 cat >>confdefs.h <<_ACEOF
6079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6080 _ACEOF
6084 done
6087 for ac_header in mach-o/dyld_images.h
6088 do :
6089 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6090 # include <stdbool.h>
6091 #endif
6092 #ifdef HAVE_STDINT_H
6093 # include <stdint.h>
6094 #endif
6096 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6097 cat >>confdefs.h <<_ACEOF
6098 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6099 _ACEOF
6103 done
6106 for ac_header in resolv.h
6107 do :
6108 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6109 #ifdef HAVE_SYS_SOCKET_H
6110 # include <sys/socket.h>
6111 #endif
6112 #ifdef HAVE_NETINET_IN_H
6113 # include <netinet/in.h>
6114 #endif
6115 #ifdef HAVE_ARPA_NAMESER_H
6116 # include <arpa/nameser.h>
6117 #endif
6119 if test "x$ac_cv_header_resolv_h" = xyes; then :
6120 cat >>confdefs.h <<_ACEOF
6121 #define HAVE_RESOLV_H 1
6122 _ACEOF
6126 done
6129 for ac_header in ifaddrs.h
6130 do :
6131 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6133 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6134 cat >>confdefs.h <<_ACEOF
6135 #define HAVE_IFADDRS_H 1
6136 _ACEOF
6140 done
6143 for ac_header in ucontext.h
6144 do :
6145 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6147 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6148 cat >>confdefs.h <<_ACEOF
6149 #define HAVE_UCONTEXT_H 1
6150 _ACEOF
6154 done
6157 for ac_header in sys/thr.h
6158 do :
6159 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6160 #ifdef HAVE_UCONTEXT_H
6161 #include <ucontext.h>
6162 #endif
6164 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6165 cat >>confdefs.h <<_ACEOF
6166 #define HAVE_SYS_THR_H 1
6167 _ACEOF
6171 done
6174 for ac_header in pthread_np.h
6175 do :
6176 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6177 #include <pthread.h>
6178 #endif
6180 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6181 cat >>confdefs.h <<_ACEOF
6182 #define HAVE_PTHREAD_NP_H 1
6183 _ACEOF
6187 done
6190 for ac_header in linux/videodev.h linux/videodev2.h
6191 do :
6192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6193 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6194 #include <sys/time.h>
6195 #endif
6196 #include <sys/types.h>
6197 #ifdef HAVE_ASM_TYPES_H
6198 #include <asm/types.h>
6199 #endif
6201 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6202 cat >>confdefs.h <<_ACEOF
6203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6204 _ACEOF
6208 done
6211 for ac_header in linux/capi.h
6212 do :
6213 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6215 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6216 cat >>confdefs.h <<_ACEOF
6217 #define HAVE_LINUX_CAPI_H 1
6218 _ACEOF
6222 done
6226 DLLEXT=""
6228 DLLFLAGS="-D_REENTRANT"
6230 LDSHARED=""
6232 LDDLLFLAGS=""
6234 LIBEXT="so"
6236 IMPLIBEXT="def"
6238 LDRPATH_INSTALL=""
6240 LDRPATH_LOCAL=""
6242 STATIC_IMPLIBEXT="def.a"
6243 # Extract the first word of "ldd", so it can be a program name with args.
6244 set dummy ldd; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if ${ac_cv_path_LDD+:} false; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 case $LDD in
6251 [\\/]* | ?:[\\/]*)
6252 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 as_dummy="/sbin:/usr/sbin:$PATH"
6257 for as_dir in $as_dummy
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6267 done
6268 done
6269 IFS=$as_save_IFS
6271 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6273 esac
6275 LDD=$ac_cv_path_LDD
6276 if test -n "$LDD"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6278 $as_echo "$LDD" >&6; }
6279 else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6286 case $host_os in
6287 cygwin*|mingw32*)
6288 if test -n "$ac_tool_prefix"; then
6289 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6290 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if ${ac_cv_prog_DLLTOOL+:} false; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6296 if test -n "$DLLTOOL"; then
6297 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 break 2
6310 done
6311 done
6312 IFS=$as_save_IFS
6316 DLLTOOL=$ac_cv_prog_DLLTOOL
6317 if test -n "$DLLTOOL"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6319 $as_echo "$DLLTOOL" >&6; }
6320 else
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6327 if test -z "$ac_cv_prog_DLLTOOL"; then
6328 ac_ct_DLLTOOL=$DLLTOOL
6329 # Extract the first word of "dlltool", so it can be a program name with args.
6330 set dummy dlltool; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 if test -n "$ac_ct_DLLTOOL"; then
6337 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 break 2
6350 done
6351 done
6352 IFS=$as_save_IFS
6356 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6357 if test -n "$ac_ct_DLLTOOL"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6359 $as_echo "$ac_ct_DLLTOOL" >&6; }
6360 else
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6365 if test "x$ac_ct_DLLTOOL" = x; then
6366 DLLTOOL="false"
6367 else
6368 case $cross_compiling:$ac_tool_warned in
6369 yes:)
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372 ac_tool_warned=yes ;;
6373 esac
6374 DLLTOOL=$ac_ct_DLLTOOL
6376 else
6377 DLLTOOL="$ac_cv_prog_DLLTOOL"
6380 if test -n "$ac_tool_prefix"; then
6381 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6382 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if ${ac_cv_prog_DLLWRAP+:} false; then :
6386 $as_echo_n "(cached) " >&6
6387 else
6388 if test -n "$DLLWRAP"; then
6389 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 break 2
6402 done
6403 done
6404 IFS=$as_save_IFS
6408 DLLWRAP=$ac_cv_prog_DLLWRAP
6409 if test -n "$DLLWRAP"; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6411 $as_echo "$DLLWRAP" >&6; }
6412 else
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6419 if test -z "$ac_cv_prog_DLLWRAP"; then
6420 ac_ct_DLLWRAP=$DLLWRAP
6421 # Extract the first word of "dllwrap", so it can be a program name with args.
6422 set dummy dllwrap; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 if test -n "$ac_ct_DLLWRAP"; then
6429 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6434 IFS=$as_save_IFS
6435 test -z "$as_dir" && as_dir=.
6436 for ac_exec_ext in '' $ac_executable_extensions; do
6437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6438 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 break 2
6442 done
6443 done
6444 IFS=$as_save_IFS
6448 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6449 if test -n "$ac_ct_DLLWRAP"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6451 $as_echo "$ac_ct_DLLWRAP" >&6; }
6452 else
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6457 if test "x$ac_ct_DLLWRAP" = x; then
6458 DLLWRAP="false"
6459 else
6460 case $cross_compiling:$ac_tool_warned in
6461 yes:)
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6464 ac_tool_warned=yes ;;
6465 esac
6466 DLLWRAP=$ac_ct_DLLWRAP
6468 else
6469 DLLWRAP="$ac_cv_prog_DLLWRAP"
6472 if test "$DLLWRAP" = "false"; then
6473 LIBEXT="a"
6474 else
6475 LIBEXT="dll"
6477 IMPLIBEXT="a"
6478 STATIC_IMPLIBEXT="a"
6479 enable_iphlpapi=${enable_iphlpapi:-no}
6480 enable_kernel32=${enable_kernel32:-no}
6481 enable_msvcrt=${enable_msvcrt:-no}
6482 enable_ntdll=${enable_ntdll:-no}
6483 enable_ws2_32=${enable_ws2_32:-no}
6484 enable_loader=${enable_loader:-no}
6485 enable_server=${enable_server:-no}
6486 with_x=${with_x:-no}
6487 with_pthread=${with_pthread:-no}
6489 darwin*|macosx*)
6490 DLLEXT=".so"
6491 LIBEXT="dylib"
6492 DLLFLAGS="$DLLFLAGS -fPIC"
6493 LDDLLFLAGS="-bundle -multiply_defined suppress"
6494 LIBWINE_LDFLAGS="-multiply_defined suppress"
6495 LDSHARED="\$(CC) -dynamiclib"
6496 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6497 COREFOUNDATIONLIB="-framework CoreFoundation"
6499 IOKITLIB="-framework IOKit -framework CoreFoundation"
6501 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6503 CORESERVICESLIB="-framework CoreServices"
6505 case $host_os in
6506 darwin11*)
6507 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6510 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6512 esac
6513 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6514 then
6515 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6518 if test "$ac_cv_header_Security_Security_h" = "yes"
6519 then
6520 SECURITYLIB="-framework Security -framework CoreFoundation"
6522 ac_save_LIBS="$LIBS"
6523 LIBS="$LIBS $SECURITYLIB"
6524 for ac_func in SSLCopyPeerCertificates
6525 do :
6526 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6527 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6528 cat >>confdefs.h <<_ACEOF
6529 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6530 _ACEOF
6533 done
6535 LIBS="$ac_save_LIBS"
6536 with_gnutls=${with_gnutls:-no}
6538 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6539 then
6540 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6541 then
6542 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6544 else
6545 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6548 ac_save_LIBS="$LIBS"
6549 LIBS="$LIBS $COREAUDIO"
6550 for ac_func in AUGraphAddNode
6551 do :
6552 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6553 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6554 cat >>confdefs.h <<_ACEOF
6555 #define HAVE_AUGRAPHADDNODE 1
6556 _ACEOF
6559 done
6561 LIBS="$ac_save_LIBS"
6563 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6564 then
6565 FRAMEWORK_OPENAL="-framework OpenAL"
6568 cat >>confdefs.h <<_ACEOF
6569 #define HAVE_OPENAL 1
6570 _ACEOF
6572 ac_cv_lib_openal=yes
6574 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6575 then
6576 LIBOPENCL="-framework OpenCL"
6578 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6580 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6581 then
6582 ac_save_LIBS="$LIBS"
6583 LIBS="$LIBS $IOKITLIB"
6584 for ac_func in IOHIDManagerCreate
6585 do :
6586 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6587 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6588 cat >>confdefs.h <<_ACEOF
6589 #define HAVE_IOHIDMANAGERCREATE 1
6590 _ACEOF
6593 done
6595 LIBS="$ac_save_LIBS"
6597 case $host_cpu in
6598 *powerpc*)
6599 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6600 esac
6601 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6602 then
6603 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6605 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6606 else
6607 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6609 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6610 then
6611 CARBONLIB="-framework Carbon"
6613 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6615 if test "x$enable_win16" = "xyes"
6616 then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6618 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6619 if test "$cross_compiling" = yes; then :
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6621 $as_echo "cross-compiling, assuming yes" >&6; }
6622 else
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625 asm(".text\n"
6626 "bad:\tnop;nop\n"
6627 "good:\tnop;nop\n\t"
6628 ".globl _testfunc\n"
6629 "_testfunc:\tcallw good");
6630 extern void testfunc();
6632 main ()
6634 unsigned short *p = (unsigned short *)testfunc;
6635 return p[0] != 0xe866 || p[1] != 0xfffa
6637 return 0;
6639 _ACEOF
6640 if ac_fn_c_try_run "$LINENO"; then :
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6642 $as_echo "yes" >&6; }
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 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
6648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6649 conftest.$ac_objext conftest.beam conftest.$ac_ext
6655 DLLFLAGS="$DLLFLAGS -fPIC"
6656 DLLEXT=".so"
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6658 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6659 if ${ac_cv_c_dll_gnuelf+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 ac_wine_try_cflags_saved=$CFLAGS
6663 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 void myfunc() {}
6667 _ACEOF
6668 if ac_fn_c_try_link "$LINENO"; then :
6669 ac_cv_c_dll_gnuelf="yes"
6670 else
6671 ac_cv_c_dll_gnuelf="no"
6673 rm -f core conftest.err conftest.$ac_objext \
6674 conftest$ac_exeext conftest.$ac_ext
6675 CFLAGS=$ac_wine_try_cflags_saved
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6678 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6679 if test "$ac_cv_c_dll_gnuelf" = "yes"
6680 then
6681 LDSHARED="\$(CC) -shared"
6682 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6684 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6685 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 ac_wine_try_cflags_saved=$CFLAGS
6689 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 int main(int argc, char **argv) { return 0; }
6693 _ACEOF
6694 if ac_fn_c_try_link "$LINENO"; then :
6695 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6696 else
6697 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6699 rm -f core conftest.err conftest.$ac_objext \
6700 conftest$ac_exeext conftest.$ac_ext
6701 CFLAGS=$ac_wine_try_cflags_saved
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6704 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6705 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6706 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6707 else
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6709 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6710 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 ac_wine_try_cflags_saved=$CFLAGS
6714 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6717 int main(int argc, char **argv) { return 0; }
6718 _ACEOF
6719 if ac_fn_c_try_link "$LINENO"; then :
6720 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6721 else
6722 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6724 rm -f core conftest.err conftest.$ac_objext \
6725 conftest$ac_exeext conftest.$ac_ext
6726 CFLAGS=$ac_wine_try_cflags_saved
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6729 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6730 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6731 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6736 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6737 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 ac_wine_try_cflags_saved=$CFLAGS
6741 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6744 int main(int argc, char **argv) { return 0; }
6745 _ACEOF
6746 if ac_fn_c_try_link "$LINENO"; then :
6747 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6748 else
6749 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6751 rm -f core conftest.err conftest.$ac_objext \
6752 conftest$ac_exeext conftest.$ac_ext
6753 CFLAGS=$ac_wine_try_cflags_saved
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6756 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6757 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6758 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6761 { $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
6762 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6763 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 ac_wine_try_cflags_saved=$CFLAGS
6767 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 int main(int argc, char **argv) { return 0; }
6771 _ACEOF
6772 if ac_fn_c_try_link "$LINENO"; then :
6773 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6774 else
6775 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6777 rm -f core conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
6779 CFLAGS=$ac_wine_try_cflags_saved
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6782 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6783 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6784 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6787 echo '{ global: *; };' >conftest.map
6788 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6790 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6791 if eval \${$as_ac_var+:} false; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 ac_wine_try_cflags_saved=$CFLAGS
6795 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798 int main(int argc, char **argv) { return 0; }
6799 _ACEOF
6800 if ac_fn_c_try_link "$LINENO"; then :
6801 eval "$as_ac_var=yes"
6802 else
6803 eval "$as_ac_var=no"
6805 rm -f core conftest.err conftest.$ac_objext \
6806 conftest$ac_exeext conftest.$ac_ext
6807 CFLAGS=$ac_wine_try_cflags_saved
6809 eval ac_res=\$$as_ac_var
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6811 $as_echo "$ac_res" >&6; }
6812 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6813 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6815 rm -f conftest.map
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6818 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6819 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 ac_wine_try_cflags_saved=$CFLAGS
6823 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6826 int main(int argc, char **argv) { return 0; }
6827 _ACEOF
6828 if ac_fn_c_try_link "$LINENO"; then :
6829 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6830 else
6831 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6833 rm -f core conftest.err conftest.$ac_objext \
6834 conftest$ac_exeext conftest.$ac_ext
6835 CFLAGS=$ac_wine_try_cflags_saved
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6838 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6839 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6840 LDEXECFLAGS="-Wl,--export-dynamic"
6844 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6846 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6847 if eval \${$as_ac_var+:} false; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 ac_wine_try_cflags_saved=$CFLAGS
6851 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854 int main(int argc, char **argv) { return 0; }
6855 _ACEOF
6856 if ac_fn_c_try_link "$LINENO"; then :
6857 eval "$as_ac_var=yes"
6858 else
6859 eval "$as_ac_var=no"
6861 rm -f core conftest.err conftest.$ac_objext \
6862 conftest$ac_exeext conftest.$ac_ext
6863 CFLAGS=$ac_wine_try_cflags_saved
6865 eval ac_res=\$$as_ac_var
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6867 $as_echo "$ac_res" >&6; }
6868 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6869 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6870 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6871 else
6872 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6874 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6875 if eval \${$as_ac_var+:} false; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 ac_wine_try_cflags_saved=$CFLAGS
6879 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6882 int main(int argc, char **argv) { return 0; }
6883 _ACEOF
6884 if ac_fn_c_try_link "$LINENO"; then :
6885 eval "$as_ac_var=yes"
6886 else
6887 eval "$as_ac_var=no"
6889 rm -f core conftest.err conftest.$ac_objext \
6890 conftest$ac_exeext conftest.$ac_ext
6891 CFLAGS=$ac_wine_try_cflags_saved
6893 eval ac_res=\$$as_ac_var
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6895 $as_echo "$ac_res" >&6; }
6896 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6897 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6898 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6903 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6904 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 ac_wine_try_cflags_saved=$CFLAGS
6908 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911 int main(int argc, char **argv) { return 0; }
6912 _ACEOF
6913 if ac_fn_c_try_link "$LINENO"; then :
6914 ac_cv_cflags__Wl___enable_new_dtags=yes
6915 else
6916 ac_cv_cflags__Wl___enable_new_dtags=no
6918 rm -f core conftest.err conftest.$ac_objext \
6919 conftest$ac_exeext conftest.$ac_ext
6920 CFLAGS=$ac_wine_try_cflags_saved
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6923 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6924 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6925 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6928 case $host_cpu in
6929 *i[3456789]86* | x86_64)
6930 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6932 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6933 if eval \${$as_ac_var+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 ac_wine_try_cflags_saved=$CFLAGS
6937 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940 int main(int argc, char **argv) { return 0; }
6941 _ACEOF
6942 if ac_fn_c_try_link "$LINENO"; then :
6943 eval "$as_ac_var=yes"
6944 else
6945 eval "$as_ac_var=no"
6947 rm -f core conftest.err conftest.$ac_objext \
6948 conftest$ac_exeext conftest.$ac_ext
6949 CFLAGS=$ac_wine_try_cflags_saved
6951 eval ac_res=\$$as_ac_var
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6953 $as_echo "$ac_res" >&6; }
6954 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6955 case $host_os in
6956 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6957 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6958 esac
6961 # Extract the first word of "prelink", so it can be a program name with args.
6962 set dummy prelink; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if ${ac_cv_path_PRELINK+:} false; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 case $PRELINK in
6969 [\\/]* | ?:[\\/]*)
6970 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in /sbin /usr/sbin $PATH
6976 IFS=$as_save_IFS
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6980 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 break 2
6984 done
6985 done
6986 IFS=$as_save_IFS
6988 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6990 esac
6992 PRELINK=$ac_cv_path_PRELINK
6993 if test -n "$PRELINK"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6995 $as_echo "$PRELINK" >&6; }
6996 else
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
7002 if test "x$PRELINK" = xfalse
7003 then
7004 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7007 esac
7009 else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7011 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7012 if ${ac_cv_c_dll_unixware+:} false; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 ac_wine_try_cflags_saved=$CFLAGS
7016 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7019 void myfunc() {}
7020 _ACEOF
7021 if ac_fn_c_try_link "$LINENO"; then :
7022 ac_cv_c_dll_unixware="yes"
7023 else
7024 ac_cv_c_dll_unixware="no"
7026 rm -f core conftest.err conftest.$ac_objext \
7027 conftest$ac_exeext conftest.$ac_ext
7028 CFLAGS=$ac_wine_try_cflags_saved
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7031 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7032 if test "$ac_cv_c_dll_unixware" = "yes"
7033 then
7034 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7035 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7039 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7040 if ${ac_cv_c_dll_hpux+:} false; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 ac_wine_try_cflags_saved=$CFLAGS
7044 CFLAGS="$CFLAGS -shared"
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7047 void myfunc() {}
7048 _ACEOF
7049 if ac_fn_c_try_link "$LINENO"; then :
7050 ac_cv_c_dll_hpux="yes"
7051 else
7052 ac_cv_c_dll_hpux="no"
7054 rm -f core conftest.err conftest.$ac_objext \
7055 conftest$ac_exeext conftest.$ac_ext
7056 CFLAGS=$ac_wine_try_cflags_saved
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7059 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7060 if test "$ac_cv_c_dll_hpux" = "yes"
7061 then
7062 LIBEXT="sl"
7063 DLLEXT=".sl"
7064 LDDLLFLAGS="-shared -fPIC"
7065 LDSHARED="\$(CC) -shared"
7070 esac
7072 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7073 enable_winequartz_drv=${enable_winequartz_drv:-no}
7075 if test "$LIBEXT" = "a"; then
7076 as_fn_error $? "could not find a way to build shared libraries.
7077 It is currently not possible to build Wine without shared library
7078 (.so) support to allow transparent switch between .so and .dll files.
7079 If you are using Linux, you will need a newer binutils.
7080 " "$LINENO" 5
7083 CROSSTEST_DISABLE=\#
7085 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7086 then
7087 case "$host_cpu" in
7088 i[3456789]86*)
7089 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 " ;;
7090 x86_64)
7091 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 " ;;
7093 ac_prefix_list="" ;;
7094 esac
7095 for ac_prog in $ac_prefix_list
7097 # Extract the first word of "$ac_prog", so it can be a program name with args.
7098 set dummy $ac_prog; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_CROSSCC+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$CROSSCC"; then
7105 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_prog_CROSSCC="$ac_prog"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7118 done
7119 done
7120 IFS=$as_save_IFS
7124 CROSSCC=$ac_cv_prog_CROSSCC
7125 if test -n "$CROSSCC"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7127 $as_echo "$CROSSCC" >&6; }
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7134 test -n "$CROSSCC" && break
7135 done
7136 test -n "$CROSSCC" || CROSSCC="false"
7138 if test "$CROSSCC" != "false"
7139 then
7140 ac_save_CC="$CC"
7141 CC="$CROSSCC"
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7143 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7148 main ()
7152 return 0;
7154 _ACEOF
7155 if ac_fn_c_try_compile "$LINENO"; then :
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7157 $as_echo "yes" >&6; }
7158 set x $CROSSCC
7159 shift
7160 target=""
7161 while test $# -ge 1
7163 case "$1" in
7164 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7165 esac
7166 shift
7167 done
7168 if test -n "$target"
7169 then
7170 CROSSTEST_DISABLE=""
7171 CROSSTARGET="$target"
7174 else
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179 CC="$ac_save_CC"
7184 if test "$ac_cv_header_pthread_h" = "yes"
7185 then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7187 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7188 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 ac_check_lib_save_LIBS=$LIBS
7192 LIBS="-lpthread $LIBS"
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7196 /* Override any GCC internal prototype to avoid an error.
7197 Use char because int might match the return type of a GCC
7198 builtin and then its argument prototype would still apply. */
7199 #ifdef __cplusplus
7200 extern "C"
7201 #endif
7202 char pthread_create ();
7204 main ()
7206 return pthread_create ();
7208 return 0;
7210 _ACEOF
7211 if ac_fn_c_try_link "$LINENO"; then :
7212 ac_cv_lib_pthread_pthread_create=yes
7213 else
7214 ac_cv_lib_pthread_pthread_create=no
7216 rm -f core conftest.err conftest.$ac_objext \
7217 conftest$ac_exeext conftest.$ac_ext
7218 LIBS=$ac_check_lib_save_LIBS
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7221 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7222 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7223 LIBPTHREAD="-lpthread"
7228 if test "x$LIBPTHREAD" = "x"; then :
7229 case "x$with_pthread" in
7230 xno) ;;
7231 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7232 Wine cannot support threads without libpthread.
7233 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7234 esac
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7239 $as_echo_n "checking for X... " >&6; }
7242 # Check whether --with-x was given.
7243 if test "${with_x+set}" = set; then :
7244 withval=$with_x;
7247 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7248 if test "x$with_x" = xno; then
7249 # The user explicitly disabled X.
7250 have_x=disabled
7251 else
7252 case $x_includes,$x_libraries in #(
7253 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7254 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 # One or both of the vars are not set, and there is no cached value.
7258 ac_x_includes=no ac_x_libraries=no
7259 rm -f -r conftest.dir
7260 if mkdir conftest.dir; then
7261 cd conftest.dir
7262 cat >Imakefile <<'_ACEOF'
7263 incroot:
7264 @echo incroot='${INCROOT}'
7265 usrlibdir:
7266 @echo usrlibdir='${USRLIBDIR}'
7267 libdir:
7268 @echo libdir='${LIBDIR}'
7269 _ACEOF
7270 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7271 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7272 for ac_var in incroot usrlibdir libdir; do
7273 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7274 done
7275 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7276 for ac_extension in a so sl dylib la dll; do
7277 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7278 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7279 ac_im_usrlibdir=$ac_im_libdir; break
7281 done
7282 # Screen out bogus values from the imake configuration. They are
7283 # bogus both because they are the default anyway, and because
7284 # using them would break gcc on systems where it needs fixed includes.
7285 case $ac_im_incroot in
7286 /usr/include) ac_x_includes= ;;
7287 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7288 esac
7289 case $ac_im_usrlibdir in
7290 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7291 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7292 esac
7294 cd ..
7295 rm -f -r conftest.dir
7298 # Standard set of common directories for X headers.
7299 # Check X11 before X11Rn because it is often a symlink to the current release.
7300 ac_x_header_dirs='
7301 /usr/X11/include
7302 /usr/X11R7/include
7303 /usr/X11R6/include
7304 /usr/X11R5/include
7305 /usr/X11R4/include
7307 /usr/include/X11
7308 /usr/include/X11R7
7309 /usr/include/X11R6
7310 /usr/include/X11R5
7311 /usr/include/X11R4
7313 /usr/local/X11/include
7314 /usr/local/X11R7/include
7315 /usr/local/X11R6/include
7316 /usr/local/X11R5/include
7317 /usr/local/X11R4/include
7319 /usr/local/include/X11
7320 /usr/local/include/X11R7
7321 /usr/local/include/X11R6
7322 /usr/local/include/X11R5
7323 /usr/local/include/X11R4
7325 /usr/X386/include
7326 /usr/x386/include
7327 /usr/XFree86/include/X11
7329 /usr/include
7330 /usr/local/include
7331 /usr/unsupported/include
7332 /usr/athena/include
7333 /usr/local/x11r5/include
7334 /usr/lpp/Xamples/include
7336 /usr/openwin/include
7337 /usr/openwin/share/include'
7339 if test "$ac_x_includes" = no; then
7340 # Guess where to find include files, by looking for Xlib.h.
7341 # First, try using that file with no special directory specified.
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344 #include <X11/Xlib.h>
7345 _ACEOF
7346 if ac_fn_c_try_cpp "$LINENO"; then :
7347 # We can compile using X headers with no special include directory.
7348 ac_x_includes=
7349 else
7350 for ac_dir in $ac_x_header_dirs; do
7351 if test -r "$ac_dir/X11/Xlib.h"; then
7352 ac_x_includes=$ac_dir
7353 break
7355 done
7357 rm -f conftest.err conftest.i conftest.$ac_ext
7358 fi # $ac_x_includes = no
7360 if test "$ac_x_libraries" = no; then
7361 # Check for the libraries.
7362 # See if we find them without any special options.
7363 # Don't add to $LIBS permanently.
7364 ac_save_LIBS=$LIBS
7365 LIBS="-lX11 $LIBS"
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7368 #include <X11/Xlib.h>
7370 main ()
7372 XrmInitialize ()
7374 return 0;
7376 _ACEOF
7377 if ac_fn_c_try_link "$LINENO"; then :
7378 LIBS=$ac_save_LIBS
7379 # We can link X programs with no special library path.
7380 ac_x_libraries=
7381 else
7382 LIBS=$ac_save_LIBS
7383 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7385 # Don't even attempt the hair of trying to link an X program!
7386 for ac_extension in a so sl dylib la dll; do
7387 if test -r "$ac_dir/libX11.$ac_extension"; then
7388 ac_x_libraries=$ac_dir
7389 break 2
7391 done
7392 done
7394 rm -f core conftest.err conftest.$ac_objext \
7395 conftest$ac_exeext conftest.$ac_ext
7396 fi # $ac_x_libraries = no
7398 case $ac_x_includes,$ac_x_libraries in #(
7399 no,* | *,no | *\'*)
7400 # Didn't find X, or a directory has "'" in its name.
7401 ac_cv_have_x="have_x=no";; #(
7403 # Record where we found X for the cache.
7404 ac_cv_have_x="have_x=yes\
7405 ac_x_includes='$ac_x_includes'\
7406 ac_x_libraries='$ac_x_libraries'"
7407 esac
7409 ;; #(
7410 *) have_x=yes;;
7411 esac
7412 eval "$ac_cv_have_x"
7413 fi # $with_x != no
7415 if test "$have_x" != yes; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7417 $as_echo "$have_x" >&6; }
7418 no_x=yes
7419 else
7420 # If each of the values was on the command line, it overrides each guess.
7421 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7422 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7423 # Update the cache value to reflect the command line values.
7424 ac_cv_have_x="have_x=yes\
7425 ac_x_includes='$x_includes'\
7426 ac_x_libraries='$x_libraries'"
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7428 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7431 if test "$no_x" = yes; then
7432 # Not all programs may use this symbol, but it does not hurt to define it.
7434 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7436 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7437 else
7438 if test -n "$x_includes"; then
7439 X_CFLAGS="$X_CFLAGS -I$x_includes"
7442 # It would also be nice to do this for all -L options, not just this one.
7443 if test -n "$x_libraries"; then
7444 X_LIBS="$X_LIBS -L$x_libraries"
7445 # For Solaris; some versions of Sun CC require a space after -R and
7446 # others require no space. Words are not sufficient . . . .
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7448 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7449 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7450 ac_xsave_c_werror_flag=$ac_c_werror_flag
7451 ac_c_werror_flag=yes
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7456 main ()
7460 return 0;
7462 _ACEOF
7463 if ac_fn_c_try_link "$LINENO"; then :
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7466 X_LIBS="$X_LIBS -R$x_libraries"
7467 else
7468 LIBS="$ac_xsave_LIBS -R $x_libraries"
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7473 main ()
7477 return 0;
7479 _ACEOF
7480 if ac_fn_c_try_link "$LINENO"; then :
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7482 $as_echo "yes" >&6; }
7483 X_LIBS="$X_LIBS -R $x_libraries"
7484 else
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7486 $as_echo "neither works" >&6; }
7488 rm -f core conftest.err conftest.$ac_objext \
7489 conftest$ac_exeext conftest.$ac_ext
7491 rm -f core conftest.err conftest.$ac_objext \
7492 conftest$ac_exeext conftest.$ac_ext
7493 ac_c_werror_flag=$ac_xsave_c_werror_flag
7494 LIBS=$ac_xsave_LIBS
7497 # Check for system-dependent libraries X programs must link with.
7498 # Do this before checking for the system-independent R6 libraries
7499 # (-lICE), since we may need -lsocket or whatever for X linking.
7501 if test "$ISC" = yes; then
7502 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7503 else
7504 # Martyn Johnson says this is needed for Ultrix, if the X
7505 # libraries were built with DECnet support. And Karl Berry says
7506 # the Alpha needs dnet_stub (dnet does not exist).
7507 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7511 /* Override any GCC internal prototype to avoid an error.
7512 Use char because int might match the return type of a GCC
7513 builtin and then its argument prototype would still apply. */
7514 #ifdef __cplusplus
7515 extern "C"
7516 #endif
7517 char XOpenDisplay ();
7519 main ()
7521 return XOpenDisplay ();
7523 return 0;
7525 _ACEOF
7526 if ac_fn_c_try_link "$LINENO"; then :
7528 else
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7530 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7531 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534 ac_check_lib_save_LIBS=$LIBS
7535 LIBS="-ldnet $LIBS"
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7539 /* Override any GCC internal prototype to avoid an error.
7540 Use char because int might match the return type of a GCC
7541 builtin and then its argument prototype would still apply. */
7542 #ifdef __cplusplus
7543 extern "C"
7544 #endif
7545 char dnet_ntoa ();
7547 main ()
7549 return dnet_ntoa ();
7551 return 0;
7553 _ACEOF
7554 if ac_fn_c_try_link "$LINENO"; then :
7555 ac_cv_lib_dnet_dnet_ntoa=yes
7556 else
7557 ac_cv_lib_dnet_dnet_ntoa=no
7559 rm -f core conftest.err conftest.$ac_objext \
7560 conftest$ac_exeext conftest.$ac_ext
7561 LIBS=$ac_check_lib_save_LIBS
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7564 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7565 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7566 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7569 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7571 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7572 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 ac_check_lib_save_LIBS=$LIBS
7576 LIBS="-ldnet_stub $LIBS"
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7580 /* Override any GCC internal prototype to avoid an error.
7581 Use char because int might match the return type of a GCC
7582 builtin and then its argument prototype would still apply. */
7583 #ifdef __cplusplus
7584 extern "C"
7585 #endif
7586 char dnet_ntoa ();
7588 main ()
7590 return dnet_ntoa ();
7592 return 0;
7594 _ACEOF
7595 if ac_fn_c_try_link "$LINENO"; then :
7596 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7597 else
7598 ac_cv_lib_dnet_stub_dnet_ntoa=no
7600 rm -f core conftest.err conftest.$ac_objext \
7601 conftest$ac_exeext conftest.$ac_ext
7602 LIBS=$ac_check_lib_save_LIBS
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7605 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7606 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7607 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7612 rm -f core conftest.err conftest.$ac_objext \
7613 conftest$ac_exeext conftest.$ac_ext
7614 LIBS="$ac_xsave_LIBS"
7616 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7617 # to get the SysV transport functions.
7618 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7619 # needs -lnsl.
7620 # The nsl library prevents programs from opening the X display
7621 # on Irix 5.2, according to T.E. Dickey.
7622 # The functions gethostbyname, getservbyname, and inet_addr are
7623 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7624 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7625 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7629 if test $ac_cv_func_gethostbyname = no; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7631 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7632 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7633 $as_echo_n "(cached) " >&6
7634 else
7635 ac_check_lib_save_LIBS=$LIBS
7636 LIBS="-lnsl $LIBS"
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7640 /* Override any GCC internal prototype to avoid an error.
7641 Use char because int might match the return type of a GCC
7642 builtin and then its argument prototype would still apply. */
7643 #ifdef __cplusplus
7644 extern "C"
7645 #endif
7646 char gethostbyname ();
7648 main ()
7650 return gethostbyname ();
7652 return 0;
7654 _ACEOF
7655 if ac_fn_c_try_link "$LINENO"; then :
7656 ac_cv_lib_nsl_gethostbyname=yes
7657 else
7658 ac_cv_lib_nsl_gethostbyname=no
7660 rm -f core conftest.err conftest.$ac_objext \
7661 conftest$ac_exeext conftest.$ac_ext
7662 LIBS=$ac_check_lib_save_LIBS
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7665 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7666 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7667 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7670 if test $ac_cv_lib_nsl_gethostbyname = no; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7672 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7673 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 ac_check_lib_save_LIBS=$LIBS
7677 LIBS="-lbsd $LIBS"
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7681 /* Override any GCC internal prototype to avoid an error.
7682 Use char because int might match the return type of a GCC
7683 builtin and then its argument prototype would still apply. */
7684 #ifdef __cplusplus
7685 extern "C"
7686 #endif
7687 char gethostbyname ();
7689 main ()
7691 return gethostbyname ();
7693 return 0;
7695 _ACEOF
7696 if ac_fn_c_try_link "$LINENO"; then :
7697 ac_cv_lib_bsd_gethostbyname=yes
7698 else
7699 ac_cv_lib_bsd_gethostbyname=no
7701 rm -f core conftest.err conftest.$ac_objext \
7702 conftest$ac_exeext conftest.$ac_ext
7703 LIBS=$ac_check_lib_save_LIBS
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7706 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7707 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7708 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7714 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7715 # socket/setsockopt and other routines are undefined under SCO ODT
7716 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7717 # on later versions), says Simon Leinen: it contains gethostby*
7718 # variants that don't use the name server (or something). -lsocket
7719 # must be given before -lnsl if both are needed. We assume that
7720 # if connect needs -lnsl, so does gethostbyname.
7721 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7722 if test "x$ac_cv_func_connect" = xyes; then :
7726 if test $ac_cv_func_connect = no; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7728 $as_echo_n "checking for connect in -lsocket... " >&6; }
7729 if ${ac_cv_lib_socket_connect+:} false; then :
7730 $as_echo_n "(cached) " >&6
7731 else
7732 ac_check_lib_save_LIBS=$LIBS
7733 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7737 /* Override any GCC internal prototype to avoid an error.
7738 Use char because int might match the return type of a GCC
7739 builtin and then its argument prototype would still apply. */
7740 #ifdef __cplusplus
7741 extern "C"
7742 #endif
7743 char connect ();
7745 main ()
7747 return connect ();
7749 return 0;
7751 _ACEOF
7752 if ac_fn_c_try_link "$LINENO"; then :
7753 ac_cv_lib_socket_connect=yes
7754 else
7755 ac_cv_lib_socket_connect=no
7757 rm -f core conftest.err conftest.$ac_objext \
7758 conftest$ac_exeext conftest.$ac_ext
7759 LIBS=$ac_check_lib_save_LIBS
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7762 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7763 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7764 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7769 # Guillermo Gomez says -lposix is necessary on A/UX.
7770 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7771 if test "x$ac_cv_func_remove" = xyes; then :
7775 if test $ac_cv_func_remove = no; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7777 $as_echo_n "checking for remove in -lposix... " >&6; }
7778 if ${ac_cv_lib_posix_remove+:} false; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 ac_check_lib_save_LIBS=$LIBS
7782 LIBS="-lposix $LIBS"
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7786 /* Override any GCC internal prototype to avoid an error.
7787 Use char because int might match the return type of a GCC
7788 builtin and then its argument prototype would still apply. */
7789 #ifdef __cplusplus
7790 extern "C"
7791 #endif
7792 char remove ();
7794 main ()
7796 return remove ();
7798 return 0;
7800 _ACEOF
7801 if ac_fn_c_try_link "$LINENO"; then :
7802 ac_cv_lib_posix_remove=yes
7803 else
7804 ac_cv_lib_posix_remove=no
7806 rm -f core conftest.err conftest.$ac_objext \
7807 conftest$ac_exeext conftest.$ac_ext
7808 LIBS=$ac_check_lib_save_LIBS
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7811 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7812 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7813 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7818 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7819 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7820 if test "x$ac_cv_func_shmat" = xyes; then :
7824 if test $ac_cv_func_shmat = no; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7826 $as_echo_n "checking for shmat in -lipc... " >&6; }
7827 if ${ac_cv_lib_ipc_shmat+:} false; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 ac_check_lib_save_LIBS=$LIBS
7831 LIBS="-lipc $LIBS"
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7835 /* Override any GCC internal prototype to avoid an error.
7836 Use char because int might match the return type of a GCC
7837 builtin and then its argument prototype would still apply. */
7838 #ifdef __cplusplus
7839 extern "C"
7840 #endif
7841 char shmat ();
7843 main ()
7845 return shmat ();
7847 return 0;
7849 _ACEOF
7850 if ac_fn_c_try_link "$LINENO"; then :
7851 ac_cv_lib_ipc_shmat=yes
7852 else
7853 ac_cv_lib_ipc_shmat=no
7855 rm -f core conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
7857 LIBS=$ac_check_lib_save_LIBS
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7860 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7861 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7862 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7868 # Check for libraries that X11R6 Xt/Xaw programs need.
7869 ac_save_LDFLAGS=$LDFLAGS
7870 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7871 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7872 # check for ICE first), but we must link in the order -lSM -lICE or
7873 # we get undefined symbols. So assume we have SM if we have ICE.
7874 # These have to be linked with before -lX11, unlike the other
7875 # libraries we check for below, so use a different variable.
7876 # John Interrante, Karl Berry
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7878 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7879 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 ac_check_lib_save_LIBS=$LIBS
7883 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7887 /* Override any GCC internal prototype to avoid an error.
7888 Use char because int might match the return type of a GCC
7889 builtin and then its argument prototype would still apply. */
7890 #ifdef __cplusplus
7891 extern "C"
7892 #endif
7893 char IceConnectionNumber ();
7895 main ()
7897 return IceConnectionNumber ();
7899 return 0;
7901 _ACEOF
7902 if ac_fn_c_try_link "$LINENO"; then :
7903 ac_cv_lib_ICE_IceConnectionNumber=yes
7904 else
7905 ac_cv_lib_ICE_IceConnectionNumber=no
7907 rm -f core conftest.err conftest.$ac_objext \
7908 conftest$ac_exeext conftest.$ac_ext
7909 LIBS=$ac_check_lib_save_LIBS
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7912 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7913 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7914 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7917 LDFLAGS=$ac_save_LDFLAGS
7922 if test "$have_x" = "yes"
7923 then
7924 XLIB="-lX11"
7925 ac_save_CPPFLAGS="$CPPFLAGS"
7926 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7929 $as_echo_n "checking for -lX11... " >&6; }
7930 if ${ac_cv_lib_soname_X11+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 ac_check_soname_save_LIBS=$LIBS
7934 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7938 /* Override any GCC internal prototype to avoid an error.
7939 Use char because int might match the return type of a GCC
7940 builtin and then its argument prototype would still apply. */
7941 #ifdef __cplusplus
7942 extern "C"
7943 #endif
7944 char XCreateWindow ();
7946 main ()
7948 return XCreateWindow ();
7950 return 0;
7952 _ACEOF
7953 if ac_fn_c_try_link "$LINENO"; then :
7954 case "$LIBEXT" in
7955 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7956 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'` ;;
7957 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7958 esac
7960 rm -f core conftest.err conftest.$ac_objext \
7961 conftest$ac_exeext conftest.$ac_ext
7962 LIBS=$ac_check_soname_save_LIBS
7964 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7966 $as_echo "not found" >&6; }
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7970 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7972 cat >>confdefs.h <<_ACEOF
7973 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7974 _ACEOF
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7979 $as_echo_n "checking for -lXext... " >&6; }
7980 if ${ac_cv_lib_soname_Xext+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 ac_check_soname_save_LIBS=$LIBS
7984 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7988 /* Override any GCC internal prototype to avoid an error.
7989 Use char because int might match the return type of a GCC
7990 builtin and then its argument prototype would still apply. */
7991 #ifdef __cplusplus
7992 extern "C"
7993 #endif
7994 char XextCreateExtension ();
7996 main ()
7998 return XextCreateExtension ();
8000 return 0;
8002 _ACEOF
8003 if ac_fn_c_try_link "$LINENO"; then :
8004 case "$LIBEXT" in
8005 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8006 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'` ;;
8007 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8008 esac
8010 rm -f core conftest.err conftest.$ac_objext \
8011 conftest$ac_exeext conftest.$ac_ext
8012 LIBS=$ac_check_soname_save_LIBS
8014 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8016 $as_echo "not found" >&6; }
8018 else
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8020 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8022 cat >>confdefs.h <<_ACEOF
8023 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8024 _ACEOF
8026 XLIB="-lXext $XLIB"
8029 for ac_header in X11/Xlib.h \
8030 X11/XKBlib.h \
8031 X11/Xutil.h \
8032 X11/Xcursor/Xcursor.h \
8033 X11/extensions/shape.h \
8034 X11/extensions/XInput.h \
8035 X11/extensions/XInput2.h \
8036 X11/extensions/Xcomposite.h \
8037 X11/extensions/Xinerama.h \
8038 X11/extensions/Xrandr.h \
8039 X11/extensions/Xrender.h \
8040 X11/extensions/xf86vmode.h \
8041 X11/extensions/xf86vmproto.h
8042 do :
8043 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8044 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8045 # include <X11/Xlib.h>
8046 #endif
8047 #ifdef HAVE_X11_XUTIL_H
8048 # include <X11/Xutil.h>
8049 #endif
8051 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8052 cat >>confdefs.h <<_ACEOF
8053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8054 _ACEOF
8058 done
8061 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8062 then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8064 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8065 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8068 ac_check_lib_save_LIBS=$LIBS
8069 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8073 /* Override any GCC internal prototype to avoid an error.
8074 Use char because int might match the return type of a GCC
8075 builtin and then its argument prototype would still apply. */
8076 #ifdef __cplusplus
8077 extern "C"
8078 #endif
8079 char XkbQueryExtension ();
8081 main ()
8083 return XkbQueryExtension ();
8085 return 0;
8087 _ACEOF
8088 if ac_fn_c_try_link "$LINENO"; then :
8089 ac_cv_lib_X11_XkbQueryExtension=yes
8090 else
8091 ac_cv_lib_X11_XkbQueryExtension=no
8093 rm -f core conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
8095 LIBS=$ac_check_lib_save_LIBS
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8098 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8099 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8101 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8107 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8108 then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8110 $as_echo_n "checking for -lXcursor... " >&6; }
8111 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 ac_check_soname_save_LIBS=$LIBS
8115 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8119 /* Override any GCC internal prototype to avoid an error.
8120 Use char because int might match the return type of a GCC
8121 builtin and then its argument prototype would still apply. */
8122 #ifdef __cplusplus
8123 extern "C"
8124 #endif
8125 char XcursorImageLoadCursor ();
8127 main ()
8129 return XcursorImageLoadCursor ();
8131 return 0;
8133 _ACEOF
8134 if ac_fn_c_try_link "$LINENO"; then :
8135 case "$LIBEXT" in
8136 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8137 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'` ;;
8138 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8139 esac
8141 rm -f core conftest.err conftest.$ac_objext \
8142 conftest$ac_exeext conftest.$ac_ext
8143 LIBS=$ac_check_soname_save_LIBS
8145 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8147 $as_echo "not found" >&6; }
8149 else
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8151 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8153 cat >>confdefs.h <<_ACEOF
8154 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8155 _ACEOF
8160 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8161 case "x$with_xcursor" in
8162 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8163 xno) ;;
8164 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8165 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8166 esac
8169 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8170 then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8172 $as_echo_n "checking for -lXi... " >&6; }
8173 if ${ac_cv_lib_soname_Xi+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 ac_check_soname_save_LIBS=$LIBS
8177 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8181 /* Override any GCC internal prototype to avoid an error.
8182 Use char because int might match the return type of a GCC
8183 builtin and then its argument prototype would still apply. */
8184 #ifdef __cplusplus
8185 extern "C"
8186 #endif
8187 char XOpenDevice ();
8189 main ()
8191 return XOpenDevice ();
8193 return 0;
8195 _ACEOF
8196 if ac_fn_c_try_link "$LINENO"; then :
8197 case "$LIBEXT" in
8198 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8199 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'` ;;
8200 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8201 esac
8203 rm -f core conftest.err conftest.$ac_objext \
8204 conftest$ac_exeext conftest.$ac_ext
8205 LIBS=$ac_check_soname_save_LIBS
8207 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8209 $as_echo "not found" >&6; }
8211 else
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8213 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8215 cat >>confdefs.h <<_ACEOF
8216 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8217 _ACEOF
8222 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8223 case "x$with_xinput" in
8224 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8225 xno) ;;
8226 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8227 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8228 esac
8231 if test "x$ac_cv_lib_soname_Xi" != x
8232 then
8233 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8234 case "x$with_xinput2" in
8235 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8236 xno) ;;
8237 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8238 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8239 esac
8243 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8244 then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8246 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8247 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 ac_check_lib_save_LIBS=$LIBS
8251 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8255 /* Override any GCC internal prototype to avoid an error.
8256 Use char because int might match the return type of a GCC
8257 builtin and then its argument prototype would still apply. */
8258 #ifdef __cplusplus
8259 extern "C"
8260 #endif
8261 char XShapeQueryExtension ();
8263 main ()
8265 return XShapeQueryExtension ();
8267 return 0;
8269 _ACEOF
8270 if ac_fn_c_try_link "$LINENO"; then :
8271 ac_cv_lib_Xext_XShapeQueryExtension=yes
8272 else
8273 ac_cv_lib_Xext_XShapeQueryExtension=no
8275 rm -f core conftest.err conftest.$ac_objext \
8276 conftest$ac_exeext conftest.$ac_ext
8277 LIBS=$ac_check_lib_save_LIBS
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8280 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8281 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8283 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8288 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8289 case "x$with_xshape" in
8290 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8291 xno) ;;
8292 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8293 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8294 esac
8297 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8298 then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8300 $as_echo_n "checking for -lXxf86vm... " >&6; }
8301 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 ac_check_soname_save_LIBS=$LIBS
8305 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8309 /* Override any GCC internal prototype to avoid an error.
8310 Use char because int might match the return type of a GCC
8311 builtin and then its argument prototype would still apply. */
8312 #ifdef __cplusplus
8313 extern "C"
8314 #endif
8315 char XF86VidModeQueryExtension ();
8317 main ()
8319 return XF86VidModeQueryExtension ();
8321 return 0;
8323 _ACEOF
8324 if ac_fn_c_try_link "$LINENO"; then :
8325 case "$LIBEXT" in
8326 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8327 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'` ;;
8328 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8329 esac
8331 rm -f core conftest.err conftest.$ac_objext \
8332 conftest$ac_exeext conftest.$ac_ext
8333 LIBS=$ac_check_soname_save_LIBS
8335 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8337 $as_echo "not found" >&6; }
8339 else
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8341 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8343 cat >>confdefs.h <<_ACEOF
8344 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8345 _ACEOF
8350 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8351 case "x$with_xxf86vm" in
8352 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8353 xno) ;;
8354 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8355 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8356 esac
8359 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"
8360 then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8362 $as_echo_n "checking for -lXrender... " >&6; }
8363 if ${ac_cv_lib_soname_Xrender+:} false; then :
8364 $as_echo_n "(cached) " >&6
8365 else
8366 ac_check_soname_save_LIBS=$LIBS
8367 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8371 /* Override any GCC internal prototype to avoid an error.
8372 Use char because int might match the return type of a GCC
8373 builtin and then its argument prototype would still apply. */
8374 #ifdef __cplusplus
8375 extern "C"
8376 #endif
8377 char XRenderQueryExtension ();
8379 main ()
8381 return XRenderQueryExtension ();
8383 return 0;
8385 _ACEOF
8386 if ac_fn_c_try_link "$LINENO"; then :
8387 case "$LIBEXT" in
8388 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8389 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'` ;;
8390 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8391 esac
8393 rm -f core conftest.err conftest.$ac_objext \
8394 conftest$ac_exeext conftest.$ac_ext
8395 LIBS=$ac_check_soname_save_LIBS
8397 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8399 $as_echo "not found" >&6; }
8401 else
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8403 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8405 cat >>confdefs.h <<_ACEOF
8406 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8407 _ACEOF
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8410 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8411 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8412 $as_echo_n "(cached) " >&6
8413 else
8414 ac_check_lib_save_LIBS=$LIBS
8415 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8419 /* Override any GCC internal prototype to avoid an error.
8420 Use char because int might match the return type of a GCC
8421 builtin and then its argument prototype would still apply. */
8422 #ifdef __cplusplus
8423 extern "C"
8424 #endif
8425 char XRenderSetPictureTransform ();
8427 main ()
8429 return XRenderSetPictureTransform ();
8431 return 0;
8433 _ACEOF
8434 if ac_fn_c_try_link "$LINENO"; then :
8435 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8436 else
8437 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8439 rm -f core conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8441 LIBS=$ac_check_lib_save_LIBS
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8444 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8445 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8447 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8452 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8453 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 ac_check_lib_save_LIBS=$LIBS
8457 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8461 /* Override any GCC internal prototype to avoid an error.
8462 Use char because int might match the return type of a GCC
8463 builtin and then its argument prototype would still apply. */
8464 #ifdef __cplusplus
8465 extern "C"
8466 #endif
8467 char XRenderCreateLinearGradient ();
8469 main ()
8471 return XRenderCreateLinearGradient ();
8473 return 0;
8475 _ACEOF
8476 if ac_fn_c_try_link "$LINENO"; then :
8477 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8478 else
8479 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8481 rm -f core conftest.err conftest.$ac_objext \
8482 conftest$ac_exeext conftest.$ac_ext
8483 LIBS=$ac_check_lib_save_LIBS
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8486 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8487 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8489 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8496 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8497 case "x$with_xrender" in
8498 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8499 xno) ;;
8500 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8501 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8502 esac
8505 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8506 then
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8509 #include <X11/Xlib.h>
8510 #include <X11/extensions/Xrandr.h>
8512 main ()
8514 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8516 return 0;
8518 _ACEOF
8519 if ac_fn_c_try_compile "$LINENO"; then :
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8521 $as_echo_n "checking for -lXrandr... " >&6; }
8522 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 ac_check_soname_save_LIBS=$LIBS
8526 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8530 /* Override any GCC internal prototype to avoid an error.
8531 Use char because int might match the return type of a GCC
8532 builtin and then its argument prototype would still apply. */
8533 #ifdef __cplusplus
8534 extern "C"
8535 #endif
8536 char XRRQueryExtension ();
8538 main ()
8540 return XRRQueryExtension ();
8542 return 0;
8544 _ACEOF
8545 if ac_fn_c_try_link "$LINENO"; then :
8546 case "$LIBEXT" in
8547 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8548 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'` ;;
8549 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8550 esac
8552 rm -f core conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8554 LIBS=$ac_check_soname_save_LIBS
8556 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8558 $as_echo "not found" >&6; }
8560 else
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8562 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8564 cat >>confdefs.h <<_ACEOF
8565 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8566 _ACEOF
8571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8573 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8574 case "x$with_xrandr" in
8575 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8576 xno) ;;
8577 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8578 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8579 esac
8582 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8583 then
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8586 #include <X11/Xlib.h>
8587 #include <X11/extensions/Xinerama.h>
8589 main ()
8591 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8593 return 0;
8595 _ACEOF
8596 if ac_fn_c_try_compile "$LINENO"; then :
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8598 $as_echo_n "checking for -lXinerama... " >&6; }
8599 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8600 $as_echo_n "(cached) " >&6
8601 else
8602 ac_check_soname_save_LIBS=$LIBS
8603 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8607 /* Override any GCC internal prototype to avoid an error.
8608 Use char because int might match the return type of a GCC
8609 builtin and then its argument prototype would still apply. */
8610 #ifdef __cplusplus
8611 extern "C"
8612 #endif
8613 char XineramaQueryScreens ();
8615 main ()
8617 return XineramaQueryScreens ();
8619 return 0;
8621 _ACEOF
8622 if ac_fn_c_try_link "$LINENO"; then :
8623 case "$LIBEXT" in
8624 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8625 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'` ;;
8626 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8627 esac
8629 rm -f core conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
8631 LIBS=$ac_check_soname_save_LIBS
8633 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8635 $as_echo "not found" >&6; }
8637 else
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8639 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8641 cat >>confdefs.h <<_ACEOF
8642 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8643 _ACEOF
8648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8651 case "x$with_xinerama" in
8652 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8653 xno) ;;
8654 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8655 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8656 esac
8659 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8660 then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8662 $as_echo_n "checking for -lXcomposite... " >&6; }
8663 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8664 $as_echo_n "(cached) " >&6
8665 else
8666 ac_check_soname_save_LIBS=$LIBS
8667 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8671 /* Override any GCC internal prototype to avoid an error.
8672 Use char because int might match the return type of a GCC
8673 builtin and then its argument prototype would still apply. */
8674 #ifdef __cplusplus
8675 extern "C"
8676 #endif
8677 char XCompositeRedirectWindow ();
8679 main ()
8681 return XCompositeRedirectWindow ();
8683 return 0;
8685 _ACEOF
8686 if ac_fn_c_try_link "$LINENO"; then :
8687 case "$LIBEXT" in
8688 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8689 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'` ;;
8690 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8691 esac
8693 rm -f core conftest.err conftest.$ac_objext \
8694 conftest$ac_exeext conftest.$ac_ext
8695 LIBS=$ac_check_soname_save_LIBS
8697 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8699 $as_echo "not found" >&6; }
8701 else
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8703 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8705 cat >>confdefs.h <<_ACEOF
8706 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8707 _ACEOF
8712 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8713 case "x$with_xcomposite" in
8714 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8715 xno) ;;
8716 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8717 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8718 esac
8721 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8722 #include <X11/Xlib.h>
8723 #endif
8725 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8727 cat >>confdefs.h <<_ACEOF
8728 #define HAVE_XICCALLBACK_CALLBACK 1
8729 _ACEOF
8733 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8734 #include <X11/Xlib.h>
8735 #endif
8737 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8739 cat >>confdefs.h <<_ACEOF
8740 #define HAVE_XEVENT_XCOOKIE 1
8741 _ACEOF
8748 opengl_msg=""
8749 if test "x$with_opengl" != "xno"
8750 then
8751 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8752 do :
8753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8754 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8755 # include <GL/glx.h>
8756 #endif
8758 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8759 cat >>confdefs.h <<_ACEOF
8760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8761 _ACEOF
8765 done
8767 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8768 then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8770 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8771 if ${wine_cv_opengl_header_version_OK+:} false; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8776 #include <GL/gl.h>
8778 main ()
8780 GLenum test = GL_UNSIGNED_SHORT_5_6_5; return (test == GL_UNSIGNED_SHORT_5_6_5);
8782 return 0;
8784 _ACEOF
8785 if ac_fn_c_try_compile "$LINENO"; then :
8786 wine_cv_opengl_header_version_OK="yes"
8787 else
8788 wine_cv_opengl_header_version_OK="no"
8790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8793 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8795 if test "$wine_cv_opengl_header_version_OK" = "yes"
8796 then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8798 $as_echo_n "checking for -lGL... " >&6; }
8799 if ${ac_cv_lib_soname_GL+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 ac_check_soname_save_LIBS=$LIBS
8803 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8807 /* Override any GCC internal prototype to avoid an error.
8808 Use char because int might match the return type of a GCC
8809 builtin and then its argument prototype would still apply. */
8810 #ifdef __cplusplus
8811 extern "C"
8812 #endif
8813 char glXCreateContext ();
8815 main ()
8817 return glXCreateContext ();
8819 return 0;
8821 _ACEOF
8822 if ac_fn_c_try_link "$LINENO"; then :
8823 case "$LIBEXT" in
8824 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8825 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'` ;;
8826 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8827 esac
8829 rm -f core conftest.err conftest.$ac_objext \
8830 conftest$ac_exeext conftest.$ac_ext
8831 LIBS=$ac_check_soname_save_LIBS
8833 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8835 $as_echo "not found" >&6; }
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8837 $as_echo_n "checking for -lGL... " >&6; }
8838 if ${ac_cv_lib_soname_GL+:} false; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 ac_check_soname_save_LIBS=$LIBS
8842 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"
8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h. */
8846 /* Override any GCC internal prototype to avoid an error.
8847 Use char because int might match the return type of a GCC
8848 builtin and then its argument prototype would still apply. */
8849 #ifdef __cplusplus
8850 extern "C"
8851 #endif
8852 char glXCreateContext ();
8854 main ()
8856 return glXCreateContext ();
8858 return 0;
8860 _ACEOF
8861 if ac_fn_c_try_link "$LINENO"; then :
8862 case "$LIBEXT" in
8863 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8864 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'` ;;
8865 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8866 esac
8868 rm -f core conftest.err conftest.$ac_objext \
8869 conftest$ac_exeext conftest.$ac_ext
8870 LIBS=$ac_check_soname_save_LIBS
8872 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8874 $as_echo "not found" >&6; }
8875 if test -f /usr/X11R6/lib/libGL.a
8876 then
8877 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8878 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8879 else
8880 opengl_msg="No OpenGL library found on this system."
8882 else
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8884 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8886 cat >>confdefs.h <<_ACEOF
8887 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8888 _ACEOF
8890 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"
8892 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8895 else
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8897 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8899 cat >>confdefs.h <<_ACEOF
8900 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8901 _ACEOF
8903 OPENGL_LIBS="-lGL"
8905 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8908 if test "$ac_cv_header_GL_glu_h" = "yes"
8909 then
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8911 $as_echo_n "checking for -lGLU... " >&6; }
8912 if ${ac_cv_lib_soname_GLU+:} false; then :
8913 $as_echo_n "(cached) " >&6
8914 else
8915 ac_check_soname_save_LIBS=$LIBS
8916 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h. */
8920 /* Override any GCC internal prototype to avoid an error.
8921 Use char because int might match the return type of a GCC
8922 builtin and then its argument prototype would still apply. */
8923 #ifdef __cplusplus
8924 extern "C"
8925 #endif
8926 char gluLookAt ();
8928 main ()
8930 return gluLookAt ();
8932 return 0;
8934 _ACEOF
8935 if ac_fn_c_try_link "$LINENO"; then :
8936 case "$LIBEXT" in
8937 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8938 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'` ;;
8939 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8940 esac
8942 rm -f core conftest.err conftest.$ac_objext \
8943 conftest$ac_exeext conftest.$ac_ext
8944 LIBS=$ac_check_soname_save_LIBS
8946 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8948 $as_echo "not found" >&6; }
8950 else
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8952 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8954 cat >>confdefs.h <<_ACEOF
8955 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8956 _ACEOF
8961 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8962 case "x$with_glu" in
8963 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8964 xno) ;;
8965 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8966 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8967 esac
8969 else
8970 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8972 else
8973 opengl_msg="OpenGL development headers not found."
8975 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8976 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8977 else
8978 enable_opengl32=${enable_opengl32:-no}
8979 enable_glu32=${enable_glu32:-no}
8981 if test -n "$opengl_msg"; then :
8982 case "x$with_opengl" in
8983 x) as_fn_append wine_warnings "|$opengl_msg
8984 OpenGL and Direct3D won't be supported." ;;
8985 xno) ;;
8986 *) as_fn_error $? "$opengl_msg
8987 OpenGL and Direct3D won't be supported.
8988 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8989 esac
8992 CPPFLAGS="$ac_save_CPPFLAGS"
8993 else
8994 XLIB=""
8995 X_CFLAGS=""
8996 X_LIBS=""
8997 enable_winex11_drv=${enable_winex11_drv:-no}
8998 enable_opengl32=${enable_opengl32:-no}
8999 enable_glu32=${enable_glu32:-no}
9001 if test "x$XLIB" = "x"; then :
9002 case "x$with_x" in
9003 xno) ;;
9004 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9005 without X support, which probably isn't what you want. You will need
9006 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9007 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9008 esac
9011 if test "$ac_cv_header_CL_cl_h" = "yes"
9012 then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9014 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9015 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 ac_check_lib_save_LIBS=$LIBS
9019 LIBS="-lOpenCL $LIBS"
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9023 /* Override any GCC internal prototype to avoid an error.
9024 Use char because int might match the return type of a GCC
9025 builtin and then its argument prototype would still apply. */
9026 #ifdef __cplusplus
9027 extern "C"
9028 #endif
9029 char clGetPlatformInfo ();
9031 main ()
9033 return clGetPlatformInfo ();
9035 return 0;
9037 _ACEOF
9038 if ac_fn_c_try_link "$LINENO"; then :
9039 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9040 else
9041 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9043 rm -f core conftest.err conftest.$ac_objext \
9044 conftest$ac_exeext conftest.$ac_ext
9045 LIBS=$ac_check_lib_save_LIBS
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9048 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9049 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9050 LIBOPENCL="-lOpenCL"
9055 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9056 case "x$with_opencl" in
9057 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9058 xno) ;;
9059 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9060 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9061 esac
9063 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9066 XML2LIBS=""
9068 XML2INCL=""
9070 XSLTINCL=""
9072 if test "x$with_xml" != "xno"
9073 then
9074 ac_save_CPPFLAGS="$CPPFLAGS"
9075 if test "$PKG_CONFIG" != "false"
9076 then
9077 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9078 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9079 else
9080 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9081 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9083 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9084 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9085 do :
9086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9087 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9088 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9089 cat >>confdefs.h <<_ACEOF
9090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9091 _ACEOF
9095 done
9097 if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes"
9098 then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9100 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9101 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104 ac_check_lib_save_LIBS=$LIBS
9105 LIBS="-lxml2 $ac_xml_libs $LIBS"
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9109 /* Override any GCC internal prototype to avoid an error.
9110 Use char because int might match the return type of a GCC
9111 builtin and then its argument prototype would still apply. */
9112 #ifdef __cplusplus
9113 extern "C"
9114 #endif
9115 char xmlParseMemory ();
9117 main ()
9119 return xmlParseMemory ();
9121 return 0;
9123 _ACEOF
9124 if ac_fn_c_try_link "$LINENO"; then :
9125 ac_cv_lib_xml2_xmlParseMemory=yes
9126 else
9127 ac_cv_lib_xml2_xmlParseMemory=no
9129 rm -f core conftest.err conftest.$ac_objext \
9130 conftest$ac_exeext conftest.$ac_ext
9131 LIBS=$ac_check_lib_save_LIBS
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9134 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9135 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9137 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9139 XML2LIBS="$ac_xml_libs"
9140 XML2INCL="$ac_xml_cflags"
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9144 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9145 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 ac_check_lib_save_LIBS=$LIBS
9149 LIBS="-lxml2 $ac_xml_libs $LIBS"
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h. */
9153 /* Override any GCC internal prototype to avoid an error.
9154 Use char because int might match the return type of a GCC
9155 builtin and then its argument prototype would still apply. */
9156 #ifdef __cplusplus
9157 extern "C"
9158 #endif
9159 char xmlReadMemory ();
9161 main ()
9163 return xmlReadMemory ();
9165 return 0;
9167 _ACEOF
9168 if ac_fn_c_try_link "$LINENO"; then :
9169 ac_cv_lib_xml2_xmlReadMemory=yes
9170 else
9171 ac_cv_lib_xml2_xmlReadMemory=no
9173 rm -f core conftest.err conftest.$ac_objext \
9174 conftest$ac_exeext conftest.$ac_ext
9175 LIBS=$ac_check_lib_save_LIBS
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9178 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9179 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9181 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9186 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9187 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9188 $as_echo_n "(cached) " >&6
9189 else
9190 ac_check_lib_save_LIBS=$LIBS
9191 LIBS="-lxml2 $ac_xml_libs $LIBS"
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9195 /* Override any GCC internal prototype to avoid an error.
9196 Use char because int might match the return type of a GCC
9197 builtin and then its argument prototype would still apply. */
9198 #ifdef __cplusplus
9199 extern "C"
9200 #endif
9201 char xmlNewDocPI ();
9203 main ()
9205 return xmlNewDocPI ();
9207 return 0;
9209 _ACEOF
9210 if ac_fn_c_try_link "$LINENO"; then :
9211 ac_cv_lib_xml2_xmlNewDocPI=yes
9212 else
9213 ac_cv_lib_xml2_xmlNewDocPI=no
9215 rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217 LIBS=$ac_check_lib_save_LIBS
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9220 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9221 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9223 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9228 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9229 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9230 $as_echo_n "(cached) " >&6
9231 else
9232 ac_check_lib_save_LIBS=$LIBS
9233 LIBS="-lxml2 $ac_xml_libs $LIBS"
9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9237 /* Override any GCC internal prototype to avoid an error.
9238 Use char because int might match the return type of a GCC
9239 builtin and then its argument prototype would still apply. */
9240 #ifdef __cplusplus
9241 extern "C"
9242 #endif
9243 char xmlSchemaSetParserStructuredErrors ();
9245 main ()
9247 return xmlSchemaSetParserStructuredErrors ();
9249 return 0;
9251 _ACEOF
9252 if ac_fn_c_try_link "$LINENO"; then :
9253 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9254 else
9255 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9257 rm -f core conftest.err conftest.$ac_objext \
9258 conftest$ac_exeext conftest.$ac_ext
9259 LIBS=$ac_check_lib_save_LIBS
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9262 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9263 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9265 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9270 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9271 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9272 $as_echo_n "(cached) " >&6
9273 else
9274 ac_check_lib_save_LIBS=$LIBS
9275 LIBS="-lxml2 $ac_xml_libs $LIBS"
9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9279 /* Override any GCC internal prototype to avoid an error.
9280 Use char because int might match the return type of a GCC
9281 builtin and then its argument prototype would still apply. */
9282 #ifdef __cplusplus
9283 extern "C"
9284 #endif
9285 char xmlSchemaSetValidStructuredErrors ();
9287 main ()
9289 return xmlSchemaSetValidStructuredErrors ();
9291 return 0;
9293 _ACEOF
9294 if ac_fn_c_try_link "$LINENO"; then :
9295 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9296 else
9297 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9299 rm -f core conftest.err conftest.$ac_objext \
9300 conftest$ac_exeext conftest.$ac_ext
9301 LIBS=$ac_check_lib_save_LIBS
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9304 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9305 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9307 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9312 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9313 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 ac_check_lib_save_LIBS=$LIBS
9317 LIBS="-lxml2 $ac_xml_libs $LIBS"
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9321 /* Override any GCC internal prototype to avoid an error.
9322 Use char because int might match the return type of a GCC
9323 builtin and then its argument prototype would still apply. */
9324 #ifdef __cplusplus
9325 extern "C"
9326 #endif
9327 char xmlFirstElementChild ();
9329 main ()
9331 return xmlFirstElementChild ();
9333 return 0;
9335 _ACEOF
9336 if ac_fn_c_try_link "$LINENO"; then :
9337 ac_cv_lib_xml2_xmlFirstElementChild=yes
9338 else
9339 ac_cv_lib_xml2_xmlFirstElementChild=no
9341 rm -f core conftest.err conftest.$ac_objext \
9342 conftest$ac_exeext conftest.$ac_ext
9343 LIBS=$ac_check_lib_save_LIBS
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9346 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9347 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9349 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9353 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9355 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9357 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9362 CPPFLAGS="$ac_save_CPPFLAGS"
9364 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9365 case "x$with_xml" in
9366 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9367 xno) ;;
9368 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9369 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9370 esac
9373 if test "x$with_xslt" != "xno"
9374 then
9375 if test "$PKG_CONFIG" != "false"
9376 then
9377 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9378 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9379 else
9380 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9381 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9383 ac_save_CPPFLAGS="$CPPFLAGS"
9384 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9385 for ac_header in libxslt/pattern.h libxslt/transform.h
9386 do :
9387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9388 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9389 # include <libxslt/pattern.h>
9390 #endif
9392 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9393 cat >>confdefs.h <<_ACEOF
9394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9395 _ACEOF
9399 done
9401 CPPFLAGS="$ac_save_CPPFLAGS"
9402 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9403 then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9405 $as_echo_n "checking for -lxslt... " >&6; }
9406 if ${ac_cv_lib_soname_xslt+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 ac_check_soname_save_LIBS=$LIBS
9410 LIBS="-lxslt $ac_xslt_libs $LIBS"
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9414 /* Override any GCC internal prototype to avoid an error.
9415 Use char because int might match the return type of a GCC
9416 builtin and then its argument prototype would still apply. */
9417 #ifdef __cplusplus
9418 extern "C"
9419 #endif
9420 char xsltCompilePattern ();
9422 main ()
9424 return xsltCompilePattern ();
9426 return 0;
9428 _ACEOF
9429 if ac_fn_c_try_link "$LINENO"; then :
9430 case "$LIBEXT" in
9431 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9432 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'` ;;
9433 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9434 esac
9436 rm -f core conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 LIBS=$ac_check_soname_save_LIBS
9440 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9442 $as_echo "not found" >&6; }
9444 else
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9446 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9448 cat >>confdefs.h <<_ACEOF
9449 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9450 _ACEOF
9452 XSLTINCL="$ac_xslt_cflags"
9456 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9457 case "x$with_xslt" in
9458 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9459 xno) ;;
9460 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9461 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9462 esac
9465 if test "x$with_dbus" != "xno"
9466 then
9467 ac_save_CPPFLAGS="$CPPFLAGS"
9468 if test "$PKG_CONFIG" != "false"
9469 then
9470 ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9471 ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9472 CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9474 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9475 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9477 $as_echo_n "checking for -ldbus-1... " >&6; }
9478 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 ac_check_soname_save_LIBS=$LIBS
9482 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9486 /* Override any GCC internal prototype to avoid an error.
9487 Use char because int might match the return type of a GCC
9488 builtin and then its argument prototype would still apply. */
9489 #ifdef __cplusplus
9490 extern "C"
9491 #endif
9492 char dbus_connection_close ();
9494 main ()
9496 return dbus_connection_close ();
9498 return 0;
9500 _ACEOF
9501 if ac_fn_c_try_link "$LINENO"; then :
9502 case "$LIBEXT" in
9503 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9504 dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep "libdbus-1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9505 *) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9506 esac
9508 rm -f core conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext conftest.$ac_ext
9510 LIBS=$ac_check_soname_save_LIBS
9512 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9514 $as_echo "not found" >&6; }
9516 else
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9518 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9520 cat >>confdefs.h <<_ACEOF
9521 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9522 _ACEOF
9524 DBUSINCL="$ac_dbus_cflags"
9530 CPPFLAGS="$ac_save_CPPFLAGS"
9532 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9533 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9534 case "x$with_dbus" in
9535 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9536 xno) ;;
9537 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9538 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9539 esac
9542 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9543 then
9544 ac_save_CPPFLAGS="$CPPFLAGS"
9545 if test "$PKG_CONFIG" != "false"
9546 then
9547 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9548 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9549 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9551 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9552 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9554 $as_echo_n "checking for -lhal... " >&6; }
9555 if ${ac_cv_lib_soname_hal+:} false; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 ac_check_soname_save_LIBS=$LIBS
9559 LIBS="-lhal $ac_hal_libs $LIBS"
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9563 /* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9566 #ifdef __cplusplus
9567 extern "C"
9568 #endif
9569 char libhal_ctx_new ();
9571 main ()
9573 return libhal_ctx_new ();
9575 return 0;
9577 _ACEOF
9578 if ac_fn_c_try_link "$LINENO"; then :
9579 case "$LIBEXT" in
9580 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9581 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'` ;;
9582 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9583 esac
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587 LIBS=$ac_check_soname_save_LIBS
9589 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9591 $as_echo "not found" >&6; }
9593 else
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9595 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9597 cat >>confdefs.h <<_ACEOF
9598 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9599 _ACEOF
9601 HALINCL="$ac_hal_cflags"
9607 CPPFLAGS="$ac_save_CPPFLAGS"
9608 if test "x$ac_cv_lib_soname_hal" = "x" -a \
9609 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9610 case "x$with_hal" in
9611 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9612 xno) ;;
9613 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9614 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9615 esac
9619 if test "x$with_gnutls" != "xno"
9620 then
9621 ac_save_CPPFLAGS="$CPPFLAGS"
9622 if test "$PKG_CONFIG" != "false"
9623 then
9624 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9625 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9626 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9628 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9629 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9632 #include <gnutls/gnutls.h>
9634 main ()
9636 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9638 return 0;
9640 _ACEOF
9641 if ac_fn_c_try_compile "$LINENO"; then :
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9643 $as_echo_n "checking for -lgnutls... " >&6; }
9644 if ${ac_cv_lib_soname_gnutls+:} false; then :
9645 $as_echo_n "(cached) " >&6
9646 else
9647 ac_check_soname_save_LIBS=$LIBS
9648 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9652 /* Override any GCC internal prototype to avoid an error.
9653 Use char because int might match the return type of a GCC
9654 builtin and then its argument prototype would still apply. */
9655 #ifdef __cplusplus
9656 extern "C"
9657 #endif
9658 char gnutls_global_init ();
9660 main ()
9662 return gnutls_global_init ();
9664 return 0;
9666 _ACEOF
9667 if ac_fn_c_try_link "$LINENO"; then :
9668 case "$LIBEXT" in
9669 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9670 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'` ;;
9671 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9672 esac
9674 rm -f core conftest.err conftest.$ac_objext \
9675 conftest$ac_exeext conftest.$ac_ext
9676 LIBS=$ac_check_soname_save_LIBS
9678 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9680 $as_echo "not found" >&6; }
9682 else
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9684 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9686 cat >>confdefs.h <<_ACEOF
9687 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9688 _ACEOF
9690 GNUTLSINCL="$ac_gnutls_cflags"
9694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9698 CPPFLAGS="$ac_save_CPPFLAGS"
9700 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9701 case "x$with_gnutls" in
9702 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9703 xno) ;;
9704 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9705 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9706 esac
9709 CURSESLIBS=""
9710 if test "$ac_cv_header_ncurses_h" = "yes"
9711 then
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9713 $as_echo_n "checking for -lncurses... " >&6; }
9714 if ${ac_cv_lib_soname_ncurses+:} false; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 ac_check_soname_save_LIBS=$LIBS
9718 LIBS="-lncurses $LIBS"
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9722 /* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9725 #ifdef __cplusplus
9726 extern "C"
9727 #endif
9728 char waddch ();
9730 main ()
9732 return waddch ();
9734 return 0;
9736 _ACEOF
9737 if ac_fn_c_try_link "$LINENO"; then :
9738 case "$LIBEXT" in
9739 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9740 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'` ;;
9741 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9742 esac
9744 rm -f core conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
9746 LIBS=$ac_check_soname_save_LIBS
9748 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9750 $as_echo "not found" >&6; }
9752 else
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9754 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9756 cat >>confdefs.h <<_ACEOF
9757 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9758 _ACEOF
9760 CURSESLIBS="-lncurses"
9762 elif test "$ac_cv_header_curses_h" = "yes"
9763 then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9765 $as_echo_n "checking for -lcurses... " >&6; }
9766 if ${ac_cv_lib_soname_curses+:} false; then :
9767 $as_echo_n "(cached) " >&6
9768 else
9769 ac_check_soname_save_LIBS=$LIBS
9770 LIBS="-lcurses $LIBS"
9771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9772 /* end confdefs.h. */
9774 /* Override any GCC internal prototype to avoid an error.
9775 Use char because int might match the return type of a GCC
9776 builtin and then its argument prototype would still apply. */
9777 #ifdef __cplusplus
9778 extern "C"
9779 #endif
9780 char waddch ();
9782 main ()
9784 return waddch ();
9786 return 0;
9788 _ACEOF
9789 if ac_fn_c_try_link "$LINENO"; then :
9790 case "$LIBEXT" in
9791 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9792 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'` ;;
9793 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9794 esac
9796 rm -f core conftest.err conftest.$ac_objext \
9797 conftest$ac_exeext conftest.$ac_ext
9798 LIBS=$ac_check_soname_save_LIBS
9800 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9802 $as_echo "not found" >&6; }
9804 else
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9806 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9808 cat >>confdefs.h <<_ACEOF
9809 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9810 _ACEOF
9812 CURSESLIBS="-lcurses"
9815 ac_save_LIBS="$LIBS"
9816 LIBS="$LIBS $CURSESLIBS"
9817 for ac_func in mousemask
9818 do :
9819 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9820 if test "x$ac_cv_func_mousemask" = xyes; then :
9821 cat >>confdefs.h <<_ACEOF
9822 #define HAVE_MOUSEMASK 1
9823 _ACEOF
9826 done
9828 LIBS="$ac_save_LIBS"
9829 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9830 case "x$with_curses" in
9831 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9832 xno) ;;
9833 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9834 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9835 esac
9838 if test "x$with_sane" != "xno"
9839 then
9840 ac_save_CPPFLAGS="$CPPFLAGS"
9841 # Extract the first word of "sane-config", so it can be a program name with args.
9842 set dummy sane-config; ac_word=$2
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9844 $as_echo_n "checking for $ac_word... " >&6; }
9845 if ${ac_cv_prog_sane_devel+:} false; then :
9846 $as_echo_n "(cached) " >&6
9847 else
9848 if test -n "$sane_devel"; then
9849 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9850 else
9851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9852 for as_dir in $PATH
9854 IFS=$as_save_IFS
9855 test -z "$as_dir" && as_dir=.
9856 for ac_exec_ext in '' $ac_executable_extensions; do
9857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9858 ac_cv_prog_sane_devel="sane-config"
9859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9860 break 2
9862 done
9863 done
9864 IFS=$as_save_IFS
9866 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9869 sane_devel=$ac_cv_prog_sane_devel
9870 if test -n "$sane_devel"; then
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9872 $as_echo "$sane_devel" >&6; }
9873 else
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; }
9879 if test "$sane_devel" != "no"
9880 then
9881 ac_sane_incl="`$sane_devel --cflags`"
9882 ac_sane_libs="`$sane_devel --ldflags`"
9883 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9885 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9886 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9888 $as_echo_n "checking for -lsane... " >&6; }
9889 if ${ac_cv_lib_soname_sane+:} false; then :
9890 $as_echo_n "(cached) " >&6
9891 else
9892 ac_check_soname_save_LIBS=$LIBS
9893 LIBS="-lsane $ac_sane_libs $LIBS"
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9897 /* Override any GCC internal prototype to avoid an error.
9898 Use char because int might match the return type of a GCC
9899 builtin and then its argument prototype would still apply. */
9900 #ifdef __cplusplus
9901 extern "C"
9902 #endif
9903 char sane_init ();
9905 main ()
9907 return sane_init ();
9909 return 0;
9911 _ACEOF
9912 if ac_fn_c_try_link "$LINENO"; then :
9913 case "$LIBEXT" in
9914 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9915 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'` ;;
9916 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9917 esac
9919 rm -f core conftest.err conftest.$ac_objext \
9920 conftest$ac_exeext conftest.$ac_ext
9921 LIBS=$ac_check_soname_save_LIBS
9923 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9925 $as_echo "not found" >&6; }
9927 else
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9929 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9931 cat >>confdefs.h <<_ACEOF
9932 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9933 _ACEOF
9935 SANEINCL="$ac_sane_incl"
9941 CPPFLAGS="$ac_save_CPPFLAGS"
9943 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9944 case "x$with_sane" in
9945 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9946 xno) ;;
9947 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9948 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9949 esac
9952 if test "x$with_v4l" != "xno"
9953 then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9955 $as_echo_n "checking for -lv4l1... " >&6; }
9956 if ${ac_cv_lib_soname_v4l1+:} false; then :
9957 $as_echo_n "(cached) " >&6
9958 else
9959 ac_check_soname_save_LIBS=$LIBS
9960 LIBS="-lv4l1 $LIBS"
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9964 /* Override any GCC internal prototype to avoid an error.
9965 Use char because int might match the return type of a GCC
9966 builtin and then its argument prototype would still apply. */
9967 #ifdef __cplusplus
9968 extern "C"
9969 #endif
9970 char v4l1_open ();
9972 main ()
9974 return v4l1_open ();
9976 return 0;
9978 _ACEOF
9979 if ac_fn_c_try_link "$LINENO"; then :
9980 case "$LIBEXT" in
9981 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9982 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'` ;;
9983 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9984 esac
9986 rm -f core conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9988 LIBS=$ac_check_soname_save_LIBS
9990 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9992 $as_echo "not found" >&6; }
9994 else
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9996 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9998 cat >>confdefs.h <<_ACEOF
9999 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10000 _ACEOF
10005 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10006 case "x$with_v4l" in
10007 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10008 xno) ;;
10009 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10010 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10011 esac
10014 if test "x$with_gphoto" != "xno"
10015 then
10016 ac_save_CPPFLAGS="$CPPFLAGS"
10017 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10018 set dummy gphoto2-config; ac_word=$2
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020 $as_echo_n "checking for $ac_word... " >&6; }
10021 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 if test -n "$gphoto2_devel"; then
10025 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10026 else
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in $PATH
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
10032 for ac_exec_ext in '' $ac_executable_extensions; do
10033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034 ac_cv_prog_gphoto2_devel="gphoto2-config"
10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10036 break 2
10038 done
10039 done
10040 IFS=$as_save_IFS
10042 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10045 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10046 if test -n "$gphoto2_devel"; then
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10048 $as_echo "$gphoto2_devel" >&6; }
10049 else
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; }
10055 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10056 set dummy gphoto2-port-config; ac_word=$2
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10058 $as_echo_n "checking for $ac_word... " >&6; }
10059 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 if test -n "$gphoto2port_devel"; then
10063 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10064 else
10065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066 for as_dir in $PATH
10068 IFS=$as_save_IFS
10069 test -z "$as_dir" && as_dir=.
10070 for ac_exec_ext in '' $ac_executable_extensions; do
10071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10072 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 break 2
10076 done
10077 done
10078 IFS=$as_save_IFS
10080 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10083 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10084 if test -n "$gphoto2port_devel"; then
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10086 $as_echo "$gphoto2port_devel" >&6; }
10087 else
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089 $as_echo "no" >&6; }
10093 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10094 then
10095 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10096 ac_gphoto2_libs=""
10097 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10099 case "$i" in
10100 -L/usr/lib|-L/usr/lib64) ;;
10101 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10102 esac
10103 done
10104 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10106 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10107 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10108 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10110 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10111 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10112 $as_echo_n "(cached) " >&6
10113 else
10114 ac_check_lib_save_LIBS=$LIBS
10115 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10119 /* Override any GCC internal prototype to avoid an error.
10120 Use char because int might match the return type of a GCC
10121 builtin and then its argument prototype would still apply. */
10122 #ifdef __cplusplus
10123 extern "C"
10124 #endif
10125 char gp_camera_new ();
10127 main ()
10129 return gp_camera_new ();
10131 return 0;
10133 _ACEOF
10134 if ac_fn_c_try_link "$LINENO"; then :
10135 ac_cv_lib_gphoto2_gp_camera_new=yes
10136 else
10137 ac_cv_lib_gphoto2_gp_camera_new=no
10139 rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10144 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10145 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10147 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10149 GPHOTO2LIBS="$ac_gphoto2_libs"
10151 GPHOTO2INCL="$ac_gphoto2_incl"
10158 CPPFLAGS="$ac_save_CPPFLAGS"
10160 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10161 case "x$with_gphoto" in
10162 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10163 xno) ;;
10164 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10165 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10166 esac
10170 if test "$ac_cv_header_resolv_h" = "yes"
10171 then
10172 ac_save_LIBS="$LIBS"
10173 for lib in '' -lresolv
10175 LIBS="$lib $ac_save_LIBS"
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10178 #ifdef HAVE_NETINET_IN_H
10179 #include <netinet/in.h>
10180 #endif
10181 #include <resolv.h>
10183 main ()
10185 res_query("foo",ns_c_in,0,0,0);
10187 return 0;
10189 _ACEOF
10190 if ac_fn_c_try_link "$LINENO"; then :
10192 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10194 RESOLVLIBS="$lib"
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10199 if test "${RESOLVLIBS+set}" = set; then
10200 break
10202 done
10203 LIBS="$ac_save_LIBS"
10206 LCMSLIBS=""
10208 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10209 then
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10211 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10212 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 ac_check_lib_save_LIBS=$LIBS
10216 LIBS="-llcms $LIBS"
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10220 /* Override any GCC internal prototype to avoid an error.
10221 Use char because int might match the return type of a GCC
10222 builtin and then its argument prototype would still apply. */
10223 #ifdef __cplusplus
10224 extern "C"
10225 #endif
10226 char cmsOpenProfileFromFile ();
10228 main ()
10230 return cmsOpenProfileFromFile ();
10232 return 0;
10234 _ACEOF
10235 if ac_fn_c_try_link "$LINENO"; then :
10236 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10237 else
10238 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10242 LIBS=$ac_check_lib_save_LIBS
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10245 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10246 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10248 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10250 LCMSLIBS="-llcms"
10254 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10255 case "x$with_cms" in
10256 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10257 xno) ;;
10258 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10259 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10260 esac
10263 if test "x$with_freetype" != "xno"
10264 then
10265 if test "$PKG_CONFIG" != "false"
10266 then
10267 ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
10268 ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
10269 else
10270 for ac_prog in freetype-config freetype2-config
10272 # Extract the first word of "$ac_prog", so it can be a program name with args.
10273 set dummy $ac_prog; ac_word=$2
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275 $as_echo_n "checking for $ac_word... " >&6; }
10276 if ${ac_cv_prog_ft_devel+:} false; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 if test -n "$ft_devel"; then
10280 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10281 else
10282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283 for as_dir in $PATH
10285 IFS=$as_save_IFS
10286 test -z "$as_dir" && as_dir=.
10287 for ac_exec_ext in '' $ac_executable_extensions; do
10288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10289 ac_cv_prog_ft_devel="$ac_prog"
10290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10291 break 2
10293 done
10294 done
10295 IFS=$as_save_IFS
10299 ft_devel=$ac_cv_prog_ft_devel
10300 if test -n "$ft_devel"; then
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10302 $as_echo "$ft_devel" >&6; }
10303 else
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305 $as_echo "no" >&6; }
10309 test -n "$ft_devel" && break
10310 done
10311 test -n "$ft_devel" || ft_devel="no"
10313 if test "$ft_devel" != "no"
10314 then
10315 ac_freetype_incl=`$ft_devel --cflags`
10316 ac_freetype_libs=`$ft_devel --libs`
10319 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10321 $as_echo_n "checking for -lfreetype... " >&6; }
10322 if ${ac_cv_lib_soname_freetype+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 ac_check_soname_save_LIBS=$LIBS
10326 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10330 /* Override any GCC internal prototype to avoid an error.
10331 Use char because int might match the return type of a GCC
10332 builtin and then its argument prototype would still apply. */
10333 #ifdef __cplusplus
10334 extern "C"
10335 #endif
10336 char FT_Init_FreeType ();
10338 main ()
10340 return FT_Init_FreeType ();
10342 return 0;
10344 _ACEOF
10345 if ac_fn_c_try_link "$LINENO"; then :
10346 case "$LIBEXT" in
10347 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10348 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'` ;;
10349 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10350 esac
10352 rm -f core conftest.err conftest.$ac_objext \
10353 conftest$ac_exeext conftest.$ac_ext
10354 LIBS=$ac_check_soname_save_LIBS
10356 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10358 $as_echo "not found" >&6; }
10359 ft_lib=no
10360 else
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10362 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10364 cat >>confdefs.h <<_ACEOF
10365 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10366 _ACEOF
10368 ft_lib=yes
10370 if test "$ft_lib" = "yes"
10371 then
10372 ac_save_CPPFLAGS="$CPPFLAGS"
10373 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10374 for ac_header in ft2build.h \
10375 freetype/freetype.h \
10376 freetype/ftglyph.h \
10377 freetype/fttypes.h \
10378 freetype/tttables.h \
10379 freetype/ftsnames.h \
10380 freetype/ttnameid.h \
10381 freetype/ftoutln.h \
10382 freetype/ftwinfnt.h \
10383 freetype/ftmodapi.h \
10384 freetype/ftlcdfil.h
10385 do :
10386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10387 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10388 # include <ft2build.h>
10389 #endif
10391 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10392 cat >>confdefs.h <<_ACEOF
10393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10394 _ACEOF
10398 done
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402 #include <ft2build.h>
10403 #include <freetype/fttrigon.h>
10404 _ACEOF
10405 if ac_fn_c_try_cpp "$LINENO"; then :
10407 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10409 wine_cv_fttrigon=yes
10410 else
10411 wine_cv_fttrigon=no
10413 rm -f conftest.err conftest.i conftest.$ac_ext
10414 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10416 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10418 cat >>confdefs.h <<_ACEOF
10419 #define HAVE_FT_TRUETYPEENGINETYPE 1
10420 _ACEOF
10425 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10426 then
10428 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10430 FREETYPELIBS="$ac_freetype_libs"
10432 FREETYPEINCL="$ac_freetype_incl"
10437 if test "x$FREETYPELIBS" = "x"; then :
10438 case "x$with_freetype" in
10439 xno) ;;
10440 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10441 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10442 esac
10444 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10447 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10448 if ${ac_cv_c_ppdev+:} false; then :
10449 $as_echo_n "(cached) " >&6
10450 else
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10453 #ifdef HAVE_SYS_IOCTL_H
10454 # include <sys/ioctl.h>
10455 #endif
10456 #include <linux/ppdev.h>
10458 main ()
10460 ioctl (1,PPCLAIM,0)
10462 return 0;
10464 _ACEOF
10465 if ac_fn_c_try_compile "$LINENO"; then :
10466 ac_cv_c_ppdev="yes"
10467 else
10468 ac_cv_c_ppdev="no"
10470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10473 $as_echo "$ac_cv_c_ppdev" >&6; }
10474 if test "$ac_cv_c_ppdev" = "yes"
10475 then
10477 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10481 ac_wine_check_funcs_save_LIBS="$LIBS"
10482 LIBS="$LIBS $LIBPTHREAD"
10483 for ac_func in \
10484 pthread_attr_get_np \
10485 pthread_getattr_np \
10486 pthread_get_stackaddr_np \
10487 pthread_get_stacksize_np
10488 do :
10489 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10491 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10492 cat >>confdefs.h <<_ACEOF
10493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10494 _ACEOF
10497 done
10499 LIBS="$ac_wine_check_funcs_save_LIBS"
10501 if test "$ac_cv_header_zlib_h" = "yes"
10502 then
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10504 $as_echo_n "checking for inflate in -lz... " >&6; }
10505 if ${ac_cv_lib_z_inflate+:} false; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 ac_check_lib_save_LIBS=$LIBS
10509 LIBS="-lz $LIBS"
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10513 /* Override any GCC internal prototype to avoid an error.
10514 Use char because int might match the return type of a GCC
10515 builtin and then its argument prototype would still apply. */
10516 #ifdef __cplusplus
10517 extern "C"
10518 #endif
10519 char inflate ();
10521 main ()
10523 return inflate ();
10525 return 0;
10527 _ACEOF
10528 if ac_fn_c_try_link "$LINENO"; then :
10529 ac_cv_lib_z_inflate=yes
10530 else
10531 ac_cv_lib_z_inflate=no
10533 rm -f core conftest.err conftest.$ac_objext \
10534 conftest$ac_exeext conftest.$ac_ext
10535 LIBS=$ac_check_lib_save_LIBS
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10538 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10539 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10541 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10543 ZLIB="-lz"
10548 if test "x$ZLIB" = "x"; then :
10549 case "x$with_zlib" in
10550 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10551 xno) ;;
10552 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10553 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10554 esac
10557 if test "x$enable_tools" != xno
10558 then
10559 if test "$ac_cv_header_gettext_po_h" = "yes"
10560 then
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10562 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10563 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10564 $as_echo_n "(cached) " >&6
10565 else
10566 ac_check_lib_save_LIBS=$LIBS
10567 LIBS="-lgettextpo $LIBS"
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10571 /* Override any GCC internal prototype to avoid an error.
10572 Use char because int might match the return type of a GCC
10573 builtin and then its argument prototype would still apply. */
10574 #ifdef __cplusplus
10575 extern "C"
10576 #endif
10577 char po_message_msgctxt ();
10579 main ()
10581 return po_message_msgctxt ();
10583 return 0;
10585 _ACEOF
10586 if ac_fn_c_try_link "$LINENO"; then :
10587 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10588 else
10589 ac_cv_lib_gettextpo_po_message_msgctxt=no
10591 rm -f core conftest.err conftest.$ac_objext \
10592 conftest$ac_exeext conftest.$ac_ext
10593 LIBS=$ac_check_lib_save_LIBS
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10596 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10597 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10599 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10601 LIBGETTEXTPO="-lgettextpo"
10606 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10607 case "x$with_gettextpo" in
10608 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10609 xno) ;;
10610 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10611 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10612 esac
10616 if test "x$with_gstreamer" != "xno"
10617 then
10618 ac_save_CPPFLAGS="$CPPFLAGS"
10619 if test "$PKG_CONFIG" != "false"; then
10620 ac_gst_incl=""
10621 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10623 case "$i" in
10624 -I*) ac_gst_incl="$ac_gst_incl $i";;
10625 esac
10626 done
10627 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10628 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10629 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10630 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10631 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10632 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10634 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h. */
10637 #include <gst/app/gstappsink.h>
10639 main ()
10641 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10643 return 0;
10645 _ACEOF
10646 if ac_fn_c_try_compile "$LINENO"; then :
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; }
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10650 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10651 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10652 $as_echo_n "(cached) " >&6
10653 else
10654 ac_check_lib_save_LIBS=$LIBS
10655 LIBS="-lgstreamer-0.10 $LIBS"
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10659 /* Override any GCC internal prototype to avoid an error.
10660 Use char because int might match the return type of a GCC
10661 builtin and then its argument prototype would still apply. */
10662 #ifdef __cplusplus
10663 extern "C"
10664 #endif
10665 char gst_pad_get_caps_reffed ();
10667 main ()
10669 return gst_pad_get_caps_reffed ();
10671 return 0;
10673 _ACEOF
10674 if ac_fn_c_try_link "$LINENO"; then :
10675 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10676 else
10677 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10679 rm -f core conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
10681 LIBS=$ac_check_lib_save_LIBS
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10684 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10685 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10687 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10688 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10689 $as_echo_n "(cached) " >&6
10690 else
10691 ac_check_lib_save_LIBS=$LIBS
10692 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char gst_app_buffer_new ();
10704 main ()
10706 return gst_app_buffer_new ();
10708 return 0;
10710 _ACEOF
10711 if ac_fn_c_try_link "$LINENO"; then :
10712 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10713 else
10714 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10716 rm -f core conftest.err conftest.$ac_objext \
10717 conftest$ac_exeext conftest.$ac_ext
10718 LIBS=$ac_check_lib_save_LIBS
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10721 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10722 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10723 GSTREAMER_LIBS="$ac_gst_libs"
10725 GSTREAMER_INCL="$ac_gst_incl"
10731 else
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 CPPFLAGS="$ac_save_CPPFLAGS"
10745 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10746 case "x$with_gstreamer" in
10747 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10748 xno) ;;
10749 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10750 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10751 esac
10753 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10755 ALSALIBS=""
10757 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10758 then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10760 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10761 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10762 $as_echo_n "(cached) " >&6
10763 else
10764 ac_check_lib_save_LIBS=$LIBS
10765 LIBS="-lasound $LIBS"
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10769 /* Override any GCC internal prototype to avoid an error.
10770 Use char because int might match the return type of a GCC
10771 builtin and then its argument prototype would still apply. */
10772 #ifdef __cplusplus
10773 extern "C"
10774 #endif
10775 char snd_pcm_hw_params_get_access_mask ();
10777 main ()
10779 return snd_pcm_hw_params_get_access_mask ();
10781 return 0;
10783 _ACEOF
10784 if ac_fn_c_try_link "$LINENO"; then :
10785 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10786 else
10787 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10789 rm -f core conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791 LIBS=$ac_check_lib_save_LIBS
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10794 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10795 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10798 #ifdef HAVE_ALSA_ASOUNDLIB_H
10799 #include <alsa/asoundlib.h>
10800 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10801 #include <sys/asoundlib.h>
10802 #endif
10804 main ()
10806 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10808 return 0;
10810 _ACEOF
10811 if ac_fn_c_try_compile "$LINENO"; then :
10812 ALSALIBS="-lasound"
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 if test "x$with_oss" != xno
10820 then
10821 ac_save_CPPFLAGS="$CPPFLAGS"
10822 if test -f /etc/oss.conf
10823 then
10824 . /etc/oss.conf
10826 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10827 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10828 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10829 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10830 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10832 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10834 cat >>confdefs.h <<_ACEOF
10835 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10836 _ACEOF
10838 OSS4INCL="$ac_oss_incl"
10845 CPPFLAGS="$ac_save_CPPFLAGS"
10846 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10847 then
10848 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10853 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10854 then
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10856 $as_echo_n "checking for -lcapi20... " >&6; }
10857 if ${ac_cv_lib_soname_capi20+:} false; then :
10858 $as_echo_n "(cached) " >&6
10859 else
10860 ac_check_soname_save_LIBS=$LIBS
10861 LIBS="-lcapi20 $LIBS"
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10865 /* Override any GCC internal prototype to avoid an error.
10866 Use char because int might match the return type of a GCC
10867 builtin and then its argument prototype would still apply. */
10868 #ifdef __cplusplus
10869 extern "C"
10870 #endif
10871 char capi20_register ();
10873 main ()
10875 return capi20_register ();
10877 return 0;
10879 _ACEOF
10880 if ac_fn_c_try_link "$LINENO"; then :
10881 case "$LIBEXT" in
10882 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10883 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'` ;;
10884 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10885 esac
10887 rm -f core conftest.err conftest.$ac_objext \
10888 conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_soname_save_LIBS
10891 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10893 $as_echo "not found" >&6; }
10895 else
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10897 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10899 cat >>confdefs.h <<_ACEOF
10900 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10901 _ACEOF
10906 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10907 case "x$with_capi" in
10908 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10909 xno) ;;
10910 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10911 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10912 esac
10915 CUPSINCL=""
10917 if test "x$with_cups" != "xno"
10918 then
10919 ac_save_CPPFLAGS="$CPPFLAGS"
10920 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10921 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10922 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10923 for ac_header in cups/cups.h
10924 do :
10925 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10926 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
10927 cat >>confdefs.h <<_ACEOF
10928 #define HAVE_CUPS_CUPS_H 1
10929 _ACEOF
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10931 $as_echo_n "checking for -lcups... " >&6; }
10932 if ${ac_cv_lib_soname_cups+:} false; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935 ac_check_soname_save_LIBS=$LIBS
10936 LIBS="-lcups $ac_cups_libs $LIBS"
10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10940 /* Override any GCC internal prototype to avoid an error.
10941 Use char because int might match the return type of a GCC
10942 builtin and then its argument prototype would still apply. */
10943 #ifdef __cplusplus
10944 extern "C"
10945 #endif
10946 char cupsGetDefault ();
10948 main ()
10950 return cupsGetDefault ();
10952 return 0;
10954 _ACEOF
10955 if ac_fn_c_try_link "$LINENO"; then :
10956 case "$LIBEXT" in
10957 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10958 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'` ;;
10959 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10960 esac
10962 rm -f core conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964 LIBS=$ac_check_soname_save_LIBS
10966 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10968 $as_echo "not found" >&6; }
10970 else
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10972 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10974 cat >>confdefs.h <<_ACEOF
10975 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10976 _ACEOF
10978 CUPSINCL="$ac_cups_cflags"
10982 done
10984 CPPFLAGS="$ac_save_CPPFLAGS"
10986 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10987 case "x$with_cups" in
10988 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10989 xno) ;;
10990 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
10991 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10992 esac
10995 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10996 then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10998 $as_echo_n "checking for -lfontconfig... " >&6; }
10999 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11000 $as_echo_n "(cached) " >&6
11001 else
11002 ac_check_soname_save_LIBS=$LIBS
11003 LIBS="-lfontconfig $LIBS"
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11007 /* Override any GCC internal prototype to avoid an error.
11008 Use char because int might match the return type of a GCC
11009 builtin and then its argument prototype would still apply. */
11010 #ifdef __cplusplus
11011 extern "C"
11012 #endif
11013 char FcInit ();
11015 main ()
11017 return FcInit ();
11019 return 0;
11021 _ACEOF
11022 if ac_fn_c_try_link "$LINENO"; then :
11023 case "$LIBEXT" in
11024 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11025 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'` ;;
11026 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11027 esac
11029 rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_soname_save_LIBS
11033 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11035 $as_echo "not found" >&6; }
11037 else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11039 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11041 cat >>confdefs.h <<_ACEOF
11042 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11043 _ACEOF
11047 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11048 then
11049 ac_save_CPPFLAGS="$CPPFLAGS"
11050 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11051 $as_unset ac_cv_header_fontconfig_fontconfig_h
11052 for ac_header in fontconfig/fontconfig.h
11053 do :
11054 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11055 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11056 cat >>confdefs.h <<_ACEOF
11057 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11058 _ACEOF
11062 done
11064 CPPFLAGS="$ac_save_CPPFLAGS"
11065 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11066 then
11067 FONTCONFIGINCL="$X_CFLAGS"
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11070 $as_echo_n "checking for -lfontconfig... " >&6; }
11071 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 ac_check_soname_save_LIBS=$LIBS
11075 LIBS="-lfontconfig $X_LIBS $LIBS"
11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11079 /* Override any GCC internal prototype to avoid an error.
11080 Use char because int might match the return type of a GCC
11081 builtin and then its argument prototype would still apply. */
11082 #ifdef __cplusplus
11083 extern "C"
11084 #endif
11085 char FcInit ();
11087 main ()
11089 return FcInit ();
11091 return 0;
11093 _ACEOF
11094 if ac_fn_c_try_link "$LINENO"; then :
11095 case "$LIBEXT" in
11096 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11097 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'` ;;
11098 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11099 esac
11101 rm -f core conftest.err conftest.$ac_objext \
11102 conftest$ac_exeext conftest.$ac_ext
11103 LIBS=$ac_check_soname_save_LIBS
11105 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11107 $as_echo "not found" >&6; }
11109 else
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11111 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11113 cat >>confdefs.h <<_ACEOF
11114 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11115 _ACEOF
11121 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11122 case "x$with_fontconfig" in
11123 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11124 xno) ;;
11125 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11126 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11127 esac
11130 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11131 then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11133 $as_echo_n "checking for -lssl... " >&6; }
11134 if ${ac_cv_lib_soname_ssl+:} false; then :
11135 $as_echo_n "(cached) " >&6
11136 else
11137 ac_check_soname_save_LIBS=$LIBS
11138 LIBS="-lssl $LIBS"
11139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h. */
11142 /* Override any GCC internal prototype to avoid an error.
11143 Use char because int might match the return type of a GCC
11144 builtin and then its argument prototype would still apply. */
11145 #ifdef __cplusplus
11146 extern "C"
11147 #endif
11148 char SSL_library_init ();
11150 main ()
11152 return SSL_library_init ();
11154 return 0;
11156 _ACEOF
11157 if ac_fn_c_try_link "$LINENO"; then :
11158 case "$LIBEXT" in
11159 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11160 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'` ;;
11161 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11162 esac
11164 rm -f core conftest.err conftest.$ac_objext \
11165 conftest$ac_exeext conftest.$ac_ext
11166 LIBS=$ac_check_soname_save_LIBS
11168 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11170 $as_echo "not found" >&6; }
11172 else
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11174 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11176 cat >>confdefs.h <<_ACEOF
11177 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11178 _ACEOF
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11183 $as_echo_n "checking for -lcrypto... " >&6; }
11184 if ${ac_cv_lib_soname_crypto+:} false; then :
11185 $as_echo_n "(cached) " >&6
11186 else
11187 ac_check_soname_save_LIBS=$LIBS
11188 LIBS="-lcrypto $LIBS"
11189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h. */
11192 /* Override any GCC internal prototype to avoid an error.
11193 Use char because int might match the return type of a GCC
11194 builtin and then its argument prototype would still apply. */
11195 #ifdef __cplusplus
11196 extern "C"
11197 #endif
11198 char BIO_new_socket ();
11200 main ()
11202 return BIO_new_socket ();
11204 return 0;
11206 _ACEOF
11207 if ac_fn_c_try_link "$LINENO"; then :
11208 case "$LIBEXT" in
11209 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11210 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'` ;;
11211 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11212 esac
11214 rm -f core conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11216 LIBS=$ac_check_soname_save_LIBS
11218 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11220 $as_echo "not found" >&6; }
11222 else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11224 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11226 cat >>confdefs.h <<_ACEOF
11227 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11228 _ACEOF
11233 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11234 case "x$with_openssl" in
11235 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11236 xno) ;;
11237 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11238 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11239 esac
11242 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11243 then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11245 $as_echo_n "checking for -lgsm... " >&6; }
11246 if ${ac_cv_lib_soname_gsm+:} false; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249 ac_check_soname_save_LIBS=$LIBS
11250 LIBS="-lgsm $LIBS"
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11254 /* Override any GCC internal prototype to avoid an error.
11255 Use char because int might match the return type of a GCC
11256 builtin and then its argument prototype would still apply. */
11257 #ifdef __cplusplus
11258 extern "C"
11259 #endif
11260 char gsm_create ();
11262 main ()
11264 return gsm_create ();
11266 return 0;
11268 _ACEOF
11269 if ac_fn_c_try_link "$LINENO"; then :
11270 case "$LIBEXT" in
11271 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11272 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'` ;;
11273 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11274 esac
11276 rm -f core conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11278 LIBS=$ac_check_soname_save_LIBS
11280 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11282 $as_echo "not found" >&6; }
11284 else
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11286 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11288 cat >>confdefs.h <<_ACEOF
11289 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11290 _ACEOF
11295 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11296 case "x$with_gsm" in
11297 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11298 xno) ;;
11299 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11300 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11301 esac
11304 if test "$ac_cv_header_jpeglib_h" = "yes"
11305 then
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11307 $as_echo_n "checking for -ljpeg... " >&6; }
11308 if ${ac_cv_lib_soname_jpeg+:} false; then :
11309 $as_echo_n "(cached) " >&6
11310 else
11311 ac_check_soname_save_LIBS=$LIBS
11312 LIBS="-ljpeg $LIBS"
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11316 /* Override any GCC internal prototype to avoid an error.
11317 Use char because int might match the return type of a GCC
11318 builtin and then its argument prototype would still apply. */
11319 #ifdef __cplusplus
11320 extern "C"
11321 #endif
11322 char jpeg_start_decompress ();
11324 main ()
11326 return jpeg_start_decompress ();
11328 return 0;
11330 _ACEOF
11331 if ac_fn_c_try_link "$LINENO"; then :
11332 case "$LIBEXT" in
11333 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11334 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'` ;;
11335 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11336 esac
11338 rm -f core conftest.err conftest.$ac_objext \
11339 conftest$ac_exeext conftest.$ac_ext
11340 LIBS=$ac_check_soname_save_LIBS
11342 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11344 $as_echo "not found" >&6; }
11346 else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11348 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11350 cat >>confdefs.h <<_ACEOF
11351 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11352 _ACEOF
11357 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11358 case "x$with_jpeg" in
11359 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11360 xno) ;;
11361 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11362 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11363 esac
11366 if test "$ac_cv_header_png_h" = "yes"
11367 then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11369 $as_echo_n "checking for -lpng... " >&6; }
11370 if ${ac_cv_lib_soname_png+:} false; then :
11371 $as_echo_n "(cached) " >&6
11372 else
11373 ac_check_soname_save_LIBS=$LIBS
11374 LIBS="-lpng -lm -lz $LIBS"
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11378 /* Override any GCC internal prototype to avoid an error.
11379 Use char because int might match the return type of a GCC
11380 builtin and then its argument prototype would still apply. */
11381 #ifdef __cplusplus
11382 extern "C"
11383 #endif
11384 char png_create_read_struct ();
11386 main ()
11388 return png_create_read_struct ();
11390 return 0;
11392 _ACEOF
11393 if ac_fn_c_try_link "$LINENO"; then :
11394 case "$LIBEXT" in
11395 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11396 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'` ;;
11397 *) 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'` ;;
11398 esac
11400 rm -f core conftest.err conftest.$ac_objext \
11401 conftest$ac_exeext conftest.$ac_ext
11402 LIBS=$ac_check_soname_save_LIBS
11404 if test "x$ac_cv_lib_soname_png" = "x"; then :
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11406 $as_echo "not found" >&6; }
11408 else
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11410 $as_echo "$ac_cv_lib_soname_png" >&6; }
11412 cat >>confdefs.h <<_ACEOF
11413 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11414 _ACEOF
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11419 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11420 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11423 ac_check_lib_save_LIBS=$LIBS
11424 LIBS="-lpng -lm -lz $LIBS"
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11428 /* Override any GCC internal prototype to avoid an error.
11429 Use char because int might match the return type of a GCC
11430 builtin and then its argument prototype would still apply. */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 char png_set_expand_gray_1_2_4_to_8 ();
11436 main ()
11438 return png_set_expand_gray_1_2_4_to_8 ();
11440 return 0;
11442 _ACEOF
11443 if ac_fn_c_try_link "$LINENO"; then :
11444 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11445 else
11446 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11448 rm -f core conftest.err conftest.$ac_objext \
11449 conftest$ac_exeext conftest.$ac_ext
11450 LIBS=$ac_check_lib_save_LIBS
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11453 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11454 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11456 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11461 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11462 then
11463 ac_save_CPPFLAGS="$CPPFLAGS"
11464 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11465 $as_unset ac_cv_header_png_h
11466 for ac_header in png.h
11467 do :
11468 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11469 if test "x$ac_cv_header_png_h" = xyes; then :
11470 cat >>confdefs.h <<_ACEOF
11471 #define HAVE_PNG_H 1
11472 _ACEOF
11476 done
11478 CPPFLAGS="$ac_save_CPPFLAGS"
11479 if test "$ac_cv_header_png_h" = "yes"
11480 then
11481 PNGINCL="$X_CFLAGS"
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11484 $as_echo_n "checking for -lpng... " >&6; }
11485 if ${ac_cv_lib_soname_png+:} false; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 ac_check_soname_save_LIBS=$LIBS
11489 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11493 /* Override any GCC internal prototype to avoid an error.
11494 Use char because int might match the return type of a GCC
11495 builtin and then its argument prototype would still apply. */
11496 #ifdef __cplusplus
11497 extern "C"
11498 #endif
11499 char png_create_read_struct ();
11501 main ()
11503 return png_create_read_struct ();
11505 return 0;
11507 _ACEOF
11508 if ac_fn_c_try_link "$LINENO"; then :
11509 case "$LIBEXT" in
11510 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11511 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'` ;;
11512 *) 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'` ;;
11513 esac
11515 rm -f core conftest.err conftest.$ac_objext \
11516 conftest$ac_exeext conftest.$ac_ext
11517 LIBS=$ac_check_soname_save_LIBS
11519 if test "x$ac_cv_lib_soname_png" = "x"; then :
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11521 $as_echo "not found" >&6; }
11523 else
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11525 $as_echo "$ac_cv_lib_soname_png" >&6; }
11527 cat >>confdefs.h <<_ACEOF
11528 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11529 _ACEOF
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11534 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11535 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11538 ac_check_lib_save_LIBS=$LIBS
11539 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11546 #ifdef __cplusplus
11547 extern "C"
11548 #endif
11549 char png_set_expand_gray_1_2_4_to_8 ();
11551 main ()
11553 return png_set_expand_gray_1_2_4_to_8 ();
11555 return 0;
11557 _ACEOF
11558 if ac_fn_c_try_link "$LINENO"; then :
11559 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11560 else
11561 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11563 rm -f core conftest.err conftest.$ac_objext \
11564 conftest$ac_exeext conftest.$ac_ext
11565 LIBS=$ac_check_lib_save_LIBS
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11568 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11569 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11570 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11576 if test "x$ac_cv_lib_soname_png" = "x"; then :
11577 case "x$with_png" in
11578 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11579 xno) ;;
11580 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11581 This is an error since --with-png was requested." "$LINENO" 5 ;;
11582 esac
11585 if test "$ac_cv_header_tiffio_h" = "yes"
11586 then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11588 $as_echo_n "checking for -ltiff... " >&6; }
11589 if ${ac_cv_lib_soname_tiff+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 ac_check_soname_save_LIBS=$LIBS
11593 LIBS="-ltiff $LIBS"
11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h. */
11597 /* Override any GCC internal prototype to avoid an error.
11598 Use char because int might match the return type of a GCC
11599 builtin and then its argument prototype would still apply. */
11600 #ifdef __cplusplus
11601 extern "C"
11602 #endif
11603 char TIFFClientOpen ();
11605 main ()
11607 return TIFFClientOpen ();
11609 return 0;
11611 _ACEOF
11612 if ac_fn_c_try_link "$LINENO"; then :
11613 case "$LIBEXT" in
11614 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11615 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'` ;;
11616 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11617 esac
11619 rm -f core conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11621 LIBS=$ac_check_soname_save_LIBS
11623 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11625 $as_echo "not found" >&6; }
11627 else
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11629 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11631 cat >>confdefs.h <<_ACEOF
11632 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11633 _ACEOF
11638 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11639 case "x$with_tiff" in
11640 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11641 xno) ;;
11642 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11643 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11644 esac
11647 if test "$ac_cv_header_mpg123_h" = "yes"
11648 then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11650 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11651 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11652 $as_echo_n "(cached) " >&6
11653 else
11654 ac_check_lib_save_LIBS=$LIBS
11655 LIBS="-lmpg123 $LIBS"
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h. */
11659 /* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 char mpg123_feed ();
11667 main ()
11669 return mpg123_feed ();
11671 return 0;
11673 _ACEOF
11674 if ac_fn_c_try_link "$LINENO"; then :
11675 ac_cv_lib_mpg123_mpg123_feed=yes
11676 else
11677 ac_cv_lib_mpg123_mpg123_feed=no
11679 rm -f core conftest.err conftest.$ac_objext \
11680 conftest$ac_exeext conftest.$ac_ext
11681 LIBS=$ac_check_lib_save_LIBS
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11684 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11685 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11686 LIBMPG123="-lmpg123"
11691 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11692 case "x$with_mpg123" in
11693 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11694 xno) ;;
11695 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11696 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11697 esac
11699 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}
11701 if test "$ac_cv_header_AL_al_h" = "yes"
11702 then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11704 $as_echo_n "checking for -lopenal... " >&6; }
11705 if ${ac_cv_lib_soname_openal+:} false; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 ac_check_soname_save_LIBS=$LIBS
11709 LIBS="-lopenal $LIBS"
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11713 /* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 char alGetSource3i ();
11721 main ()
11723 return alGetSource3i ();
11725 return 0;
11727 _ACEOF
11728 if ac_fn_c_try_link "$LINENO"; then :
11729 case "$LIBEXT" in
11730 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11731 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'` ;;
11732 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11733 esac
11735 rm -f core conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
11737 LIBS=$ac_check_soname_save_LIBS
11739 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11741 $as_echo "not found" >&6; }
11743 else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11745 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11747 cat >>confdefs.h <<_ACEOF
11748 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11749 _ACEOF
11751 LIBOPENAL="-lopenal"
11753 ac_cv_lib_openal=yes
11755 cat >>confdefs.h <<_ACEOF
11756 #define HAVE_OPENAL 1
11757 _ACEOF
11761 if test "x$ac_cv_lib_openal" != xyes; then :
11762 case "x$with_openal" in
11763 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11764 xno) ;;
11765 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11766 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11767 esac
11769 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11771 if test "$ac_cv_header_kstat_h" = "yes"
11772 then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11774 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11775 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11776 $as_echo_n "(cached) " >&6
11777 else
11778 ac_check_lib_save_LIBS=$LIBS
11779 LIBS="-lkstat $LIBS"
11780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11783 /* Override any GCC internal prototype to avoid an error.
11784 Use char because int might match the return type of a GCC
11785 builtin and then its argument prototype would still apply. */
11786 #ifdef __cplusplus
11787 extern "C"
11788 #endif
11789 char kstat_open ();
11791 main ()
11793 return kstat_open ();
11795 return 0;
11797 _ACEOF
11798 if ac_fn_c_try_link "$LINENO"; then :
11799 ac_cv_lib_kstat_kstat_open=yes
11800 else
11801 ac_cv_lib_kstat_kstat_open=no
11803 rm -f core conftest.err conftest.$ac_objext \
11804 conftest$ac_exeext conftest.$ac_ext
11805 LIBS=$ac_check_lib_save_LIBS
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11808 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11809 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11811 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11813 LIBKSTAT="-lkstat"
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11820 $as_echo_n "checking for -lodbc... " >&6; }
11821 if ${ac_cv_lib_soname_odbc+:} false; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 ac_check_soname_save_LIBS=$LIBS
11825 LIBS="-lodbc $LIBS"
11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h. */
11829 /* Override any GCC internal prototype to avoid an error.
11830 Use char because int might match the return type of a GCC
11831 builtin and then its argument prototype would still apply. */
11832 #ifdef __cplusplus
11833 extern "C"
11834 #endif
11835 char SQLConnect ();
11837 main ()
11839 return SQLConnect ();
11841 return 0;
11843 _ACEOF
11844 if ac_fn_c_try_link "$LINENO"; then :
11845 case "$LIBEXT" in
11846 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11847 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'` ;;
11848 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11849 esac
11851 rm -f core conftest.err conftest.$ac_objext \
11852 conftest$ac_exeext conftest.$ac_ext
11853 LIBS=$ac_check_soname_save_LIBS
11855 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11857 $as_echo "not found" >&6; }
11858 cat >>confdefs.h <<_ACEOF
11859 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11860 _ACEOF
11862 else
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11864 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11866 cat >>confdefs.h <<_ACEOF
11867 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11868 _ACEOF
11873 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11874 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
11875 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
11876 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11878 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
11879 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
11880 "x$with_alsa$with_coreaudio$with_oss" != xnonono
11881 then
11882 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11886 EXTRACFLAGS=""
11888 if test "x${GCC}" = "xyes"
11889 then
11890 EXTRACFLAGS="-Wall -pipe"
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11893 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11894 if ${ac_cv_c_gcc_strength_bug+:} false; then :
11895 $as_echo_n "(cached) " >&6
11896 else
11897 if test "$cross_compiling" = yes; then :
11898 ac_cv_c_gcc_strength_bug="yes"
11899 else
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11902 int L[4] = {0,1,2,3};
11904 main ()
11906 static int Array[3];
11907 unsigned int B = 3;
11908 int i;
11909 for(i=0; i<B; i++) Array[i] = i - 3;
11910 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11911 L[i] = 4;
11912 return (Array[1] != -2 || L[2] != 3)
11914 return 0;
11916 _ACEOF
11917 if ac_fn_c_try_run "$LINENO"; then :
11918 ac_cv_c_gcc_strength_bug="no"
11919 else
11920 ac_cv_c_gcc_strength_bug="yes"
11922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11923 conftest.$ac_objext conftest.beam conftest.$ac_ext
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11928 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11929 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11930 then
11931 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11935 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11936 if ${ac_cv_cflags__fno_builtin+:} false; then :
11937 $as_echo_n "(cached) " >&6
11938 else
11939 ac_wine_try_cflags_saved=$CFLAGS
11940 CFLAGS="$CFLAGS -fno-builtin"
11941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942 /* end confdefs.h. */
11943 int main(int argc, char **argv) { return 0; }
11944 _ACEOF
11945 if ac_fn_c_try_link "$LINENO"; then :
11946 ac_cv_cflags__fno_builtin=yes
11947 else
11948 ac_cv_cflags__fno_builtin=no
11950 rm -f core conftest.err conftest.$ac_objext \
11951 conftest$ac_exeext conftest.$ac_ext
11952 CFLAGS=$ac_wine_try_cflags_saved
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11955 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11956 if test $ac_cv_cflags__fno_builtin = yes; then :
11957 BUILTINFLAG="-fno-builtin"
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11961 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11962 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 ac_wine_try_cflags_saved=$CFLAGS
11966 CFLAGS="$CFLAGS -fno-strict-aliasing"
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11969 int main(int argc, char **argv) { return 0; }
11970 _ACEOF
11971 if ac_fn_c_try_link "$LINENO"; then :
11972 ac_cv_cflags__fno_strict_aliasing=yes
11973 else
11974 ac_cv_cflags__fno_strict_aliasing=no
11976 rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext conftest.$ac_ext
11978 CFLAGS=$ac_wine_try_cflags_saved
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11981 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11982 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11983 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11986 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11987 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 ac_wine_try_cflags_saved=$CFLAGS
11991 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11994 int main(int argc, char **argv) { return 0; }
11995 _ACEOF
11996 if ac_fn_c_try_link "$LINENO"; then :
11997 ac_cv_cflags__Wdeclaration_after_statement=yes
11998 else
11999 ac_cv_cflags__Wdeclaration_after_statement=no
12001 rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12003 CFLAGS=$ac_wine_try_cflags_saved
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12006 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12007 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12008 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12011 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12012 if ${ac_cv_cflags__Wempty_body+:} false; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 ac_wine_try_cflags_saved=$CFLAGS
12016 CFLAGS="$CFLAGS -Wempty-body"
12017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018 /* end confdefs.h. */
12019 int main(int argc, char **argv) { return 0; }
12020 _ACEOF
12021 if ac_fn_c_try_link "$LINENO"; then :
12022 ac_cv_cflags__Wempty_body=yes
12023 else
12024 ac_cv_cflags__Wempty_body=no
12026 rm -f core conftest.err conftest.$ac_objext \
12027 conftest$ac_exeext conftest.$ac_ext
12028 CFLAGS=$ac_wine_try_cflags_saved
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12031 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12032 if test $ac_cv_cflags__Wempty_body = yes; then :
12033 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12036 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12037 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 ac_wine_try_cflags_saved=$CFLAGS
12041 CFLAGS="$CFLAGS -Wignored-qualifiers"
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h. */
12044 int main(int argc, char **argv) { return 0; }
12045 _ACEOF
12046 if ac_fn_c_try_link "$LINENO"; then :
12047 ac_cv_cflags__Wignored_qualifiers=yes
12048 else
12049 ac_cv_cflags__Wignored_qualifiers=no
12051 rm -f core conftest.err conftest.$ac_objext \
12052 conftest$ac_exeext conftest.$ac_ext
12053 CFLAGS=$ac_wine_try_cflags_saved
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12056 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12057 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12058 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12061 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12062 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 ac_wine_try_cflags_saved=$CFLAGS
12066 CFLAGS="$CFLAGS -Wstrict-prototypes"
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12069 int main(int argc, char **argv) { return 0; }
12070 _ACEOF
12071 if ac_fn_c_try_link "$LINENO"; then :
12072 ac_cv_cflags__Wstrict_prototypes=yes
12073 else
12074 ac_cv_cflags__Wstrict_prototypes=no
12076 rm -f core conftest.err conftest.$ac_objext \
12077 conftest$ac_exeext conftest.$ac_ext
12078 CFLAGS=$ac_wine_try_cflags_saved
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12081 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12082 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12083 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12086 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12087 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 ac_wine_try_cflags_saved=$CFLAGS
12091 CFLAGS="$CFLAGS -Wtype-limits"
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12094 int main(int argc, char **argv) { return 0; }
12095 _ACEOF
12096 if ac_fn_c_try_link "$LINENO"; then :
12097 ac_cv_cflags__Wtype_limits=yes
12098 else
12099 ac_cv_cflags__Wtype_limits=no
12101 rm -f core conftest.err conftest.$ac_objext \
12102 conftest$ac_exeext conftest.$ac_ext
12103 CFLAGS=$ac_wine_try_cflags_saved
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12106 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12107 if test $ac_cv_cflags__Wtype_limits = yes; then :
12108 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12111 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12112 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12113 $as_echo_n "(cached) " >&6
12114 else
12115 ac_wine_try_cflags_saved=$CFLAGS
12116 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12119 int main(int argc, char **argv) { return 0; }
12120 _ACEOF
12121 if ac_fn_c_try_link "$LINENO"; then :
12122 ac_cv_cflags__Wunused_but_set_parameter=yes
12123 else
12124 ac_cv_cflags__Wunused_but_set_parameter=no
12126 rm -f core conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12128 CFLAGS=$ac_wine_try_cflags_saved
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12131 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12132 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12133 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12136 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12137 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 ac_wine_try_cflags_saved=$CFLAGS
12141 CFLAGS="$CFLAGS -Wwrite-strings"
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12144 int main(int argc, char **argv) { return 0; }
12145 _ACEOF
12146 if ac_fn_c_try_link "$LINENO"; then :
12147 ac_cv_cflags__Wwrite_strings=yes
12148 else
12149 ac_cv_cflags__Wwrite_strings=no
12151 rm -f core conftest.err conftest.$ac_objext \
12152 conftest$ac_exeext conftest.$ac_ext
12153 CFLAGS=$ac_wine_try_cflags_saved
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12156 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12157 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12158 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12161 case $host_cpu in
12162 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12163 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12164 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12165 $as_echo_n "(cached) " >&6
12166 else
12167 ac_wine_try_cflags_saved=$CFLAGS
12168 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12171 int main(int argc, char **argv) { return 0; }
12172 _ACEOF
12173 if ac_fn_c_try_link "$LINENO"; then :
12174 ac_cv_cflags__fno_omit_frame_pointer=yes
12175 else
12176 ac_cv_cflags__fno_omit_frame_pointer=no
12178 rm -f core conftest.err conftest.$ac_objext \
12179 conftest$ac_exeext conftest.$ac_ext
12180 CFLAGS=$ac_wine_try_cflags_saved
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12183 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12184 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12185 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12186 fi ;;
12187 esac
12189 case $host in
12190 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12191 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12192 if ${ac_cv_cflags__Wno_format+:} false; then :
12193 $as_echo_n "(cached) " >&6
12194 else
12195 ac_wine_try_cflags_saved=$CFLAGS
12196 CFLAGS="$CFLAGS -Wno-format"
12197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198 /* end confdefs.h. */
12199 int main(int argc, char **argv) { return 0; }
12200 _ACEOF
12201 if ac_fn_c_try_link "$LINENO"; then :
12202 ac_cv_cflags__Wno_format=yes
12203 else
12204 ac_cv_cflags__Wno_format=no
12206 rm -f core conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
12208 CFLAGS=$ac_wine_try_cflags_saved
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12211 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12212 if test $ac_cv_cflags__Wno_format = yes; then :
12213 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12214 fi ;;
12215 esac
12217 saved_CFLAGS="$CFLAGS"
12218 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12220 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12221 if ${ac_cv_c_string_h_warnings+:} false; then :
12222 $as_echo_n "(cached) " >&6
12223 else
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12226 #include <string.h>
12228 main ()
12232 return 0;
12234 _ACEOF
12235 if ac_fn_c_try_compile "$LINENO"; then :
12236 ac_cv_c_string_h_warnings=no
12237 else
12238 ac_cv_c_string_h_warnings=yes
12240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12243 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12244 CFLAGS="$saved_CFLAGS"
12245 if test "$ac_cv_c_string_h_warnings" = "no"
12246 then
12247 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12250 saved_CFLAGS="$CFLAGS"
12251 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12253 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12254 if ${ac_cv_c_logicalop_noisy+:} false; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12259 #include <string.h>
12261 main ()
12263 char*f(const char *h,char n) {return strchr(h,n);}
12265 return 0;
12267 _ACEOF
12268 if ac_fn_c_try_compile "$LINENO"; then :
12269 ac_cv_c_logicalop_noisy=no
12270 else
12271 ac_cv_c_logicalop_noisy=yes
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12276 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12277 CFLAGS="$saved_CFLAGS"
12278 if test "$ac_cv_c_logicalop_noisy" = "no"
12279 then
12280 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12283 if test "x$enable_maintainer_mode" = "xyes"
12284 then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12286 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12287 if ${ac_cv_cflags__Werror+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 ac_wine_try_cflags_saved=$CFLAGS
12291 CFLAGS="$CFLAGS -Werror"
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12294 int main(int argc, char **argv) { return 0; }
12295 _ACEOF
12296 if ac_fn_c_try_link "$LINENO"; then :
12297 ac_cv_cflags__Werror=yes
12298 else
12299 ac_cv_cflags__Werror=no
12301 rm -f core conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12303 CFLAGS=$ac_wine_try_cflags_saved
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12306 $as_echo "$ac_cv_cflags__Werror" >&6; }
12307 if test $ac_cv_cflags__Werror = yes; then :
12308 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12312 saved_CFLAGS="$CFLAGS"
12313 CFLAGS="$CFLAGS -Werror"
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12315 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12316 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12317 $as_echo_n "(cached) " >&6
12318 else
12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12321 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12323 main ()
12327 return 0;
12329 _ACEOF
12330 if ac_fn_c_try_compile "$LINENO"; then :
12331 ac_cv_have_ms_hook_prologue="yes"
12332 else
12333 ac_cv_have_ms_hook_prologue="no"
12335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12338 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12339 CFLAGS="$saved_CFLAGS"
12340 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12341 then
12343 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12345 else
12346 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12353 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12354 if ${ac_cv_c_fortify_enabled+:} false; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359 #include <string.h>
12361 main ()
12363 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12364 #error Fortify enabled
12365 #endif
12367 return 0;
12369 _ACEOF
12370 if ac_fn_c_try_compile "$LINENO"; then :
12371 ac_cv_c_fortify_enabled=no
12372 else
12373 ac_cv_c_fortify_enabled=yes
12375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12378 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12379 if test "$ac_cv_c_fortify_enabled" = yes
12380 then
12381 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12386 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12387 if ${ac_cv_c_extern_prefix+:} false; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h. */
12392 extern int ac_test;
12394 main ()
12396 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12398 return 0;
12400 _ACEOF
12401 if ac_fn_c_try_link "$LINENO"; then :
12402 ac_cv_c_extern_prefix="yes"
12403 else
12404 ac_cv_c_extern_prefix="no"
12406 rm -f core conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12410 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12412 case $host_cpu in
12413 *i[3456789]86*)
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12415 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12416 if ${ac_cv_c_stdcall_suffix+:} false; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12421 #ifndef _MSC_VER
12422 #define __stdcall __attribute__((__stdcall__))
12423 #endif
12424 int __stdcall ac_test(int i) { return i; }
12426 main ()
12428 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12430 return 0;
12432 _ACEOF
12433 if ac_fn_c_try_link "$LINENO"; then :
12434 ac_cv_c_stdcall_suffix="yes"
12435 else
12436 ac_cv_c_stdcall_suffix="no"
12438 rm -f core conftest.err conftest.$ac_objext \
12439 conftest$ac_exeext conftest.$ac_ext
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12442 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12443 *) ac_cv_c_stdcall_suffix="no" ;;
12444 esac
12447 if test "$ac_cv_c_extern_prefix" = "yes"
12448 then
12449 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12451 asm_name_prefix="_"
12452 else
12453 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12455 asm_name_prefix=""
12459 if test "$ac_cv_c_stdcall_suffix" = "yes"
12460 then
12461 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12463 else
12464 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12470 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12471 if ${ac_cv_asm_func_def+:} false; then :
12472 $as_echo_n "(cached) " >&6
12473 else
12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h. */
12478 main ()
12480 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12482 return 0;
12484 _ACEOF
12485 if ac_fn_c_try_link "$LINENO"; then :
12486 ac_cv_asm_func_def=".def"
12487 else
12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12492 main ()
12494 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12496 return 0;
12498 _ACEOF
12499 if ac_fn_c_try_link "$LINENO"; then :
12500 ac_cv_asm_func_def=".type @function"
12501 else
12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12506 main ()
12508 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12510 return 0;
12512 _ACEOF
12513 if ac_fn_c_try_link "$LINENO"; then :
12514 ac_cv_asm_func_def=".type 2"
12515 else
12516 ac_cv_asm_func_def="unknown"
12518 rm -f core conftest.err conftest.$ac_objext \
12519 conftest$ac_exeext conftest.$ac_ext
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12524 rm -f core conftest.err conftest.$ac_objext \
12525 conftest$ac_exeext conftest.$ac_ext
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12528 $as_echo "$ac_cv_asm_func_def" >&6; }
12531 case "$ac_cv_asm_func_def" in
12532 ".def")
12533 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12535 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12536 ".type @function")
12537 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12539 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12540 ".type 2")
12541 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12543 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12545 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12547 asm_func_header="" ;;
12548 esac
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12551 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12552 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12553 $as_echo_n "(cached) " >&6
12554 else
12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556 /* end confdefs.h. */
12557 asm(".text\n\t.long 0");
12559 main ()
12563 return 0;
12565 _ACEOF
12566 if ac_fn_c_try_compile "$LINENO"; then :
12567 ac_cv_c_asm_outside_funcs="yes"
12568 else
12569 ac_cv_c_asm_outside_funcs="no"
12571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12574 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12577 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12578 if ${ac_cv_c_dot_previous+:} false; then :
12579 $as_echo_n "(cached) " >&6
12580 else
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12585 main ()
12587 asm(".text\nac_test:\t.long 0\n\t.previous");
12589 return 0;
12591 _ACEOF
12592 if ac_fn_c_try_link "$LINENO"; then :
12593 ac_cv_c_dot_previous="yes"
12594 else
12595 ac_cv_c_dot_previous="no"
12597 rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12601 $as_echo "$ac_cv_c_dot_previous" >&6; }
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12604 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12605 if ${ac_cv_c_cfi_support+:} false; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12610 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12612 main ()
12616 return 0;
12618 _ACEOF
12619 if ac_fn_c_try_compile "$LINENO"; then :
12620 ac_cv_c_cfi_support="yes"
12621 else
12622 ac_cv_c_cfi_support="no"
12624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12627 $as_echo "$ac_cv_c_cfi_support" >&6; }
12629 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12630 asm_func_trailer=""
12631 if test "$ac_cv_c_dot_previous" = "yes"
12632 then
12633 asm_func_trailer="\\n\\t.previous"
12635 if test "$ac_cv_c_cfi_support" = "yes"
12636 then
12637 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12638 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12640 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12642 UNWINDFLAGS=-fasynchronous-unwind-tables
12644 else
12645 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12649 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12652 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12653 then
12654 cat >>confdefs.h <<_ACEOF
12655 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12656 _ACEOF
12658 else
12659 cat >>confdefs.h <<_ACEOF
12660 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12661 _ACEOF
12665 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12668 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12672 LDPATH=""
12674 case $build_os in
12675 cygwin*|mingw32*)
12676 TOOLSEXT=".exe"
12678 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12680 darwin*|macosx*)
12683 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12685 esac
12687 case $host_os in
12688 mingw32*)
12689 CRTLIBS="-lmsvcrt"
12691 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12694 esac
12696 MAIN_BINARY="wine"
12698 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12700 case $host_os in
12701 linux*)
12702 case $host_cpu in
12703 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12705 x86_64*) EXTRA_BINARIES="wine64-preloader"
12707 esac
12709 esac
12712 ac_save_CFLAGS="$CFLAGS"
12713 CFLAGS="$CFLAGS $BUILTINFLAG"
12714 for ac_func in \
12715 _finite \
12716 _isnan \
12717 _pclose \
12718 _popen \
12719 _snprintf \
12720 _spawnvp \
12721 _strdup \
12722 _stricmp \
12723 _strnicmp \
12724 _strtoi64 \
12725 _strtoui64 \
12726 _vsnprintf \
12727 asctime_r \
12728 chsize \
12729 dlopen \
12730 epoll_create \
12731 ffs \
12732 finite \
12733 fnmatch \
12734 fork \
12735 fpclass \
12736 fstatfs \
12737 fstatvfs \
12738 ftruncate \
12739 futimes \
12740 futimesat \
12741 getattrlist \
12742 getdirentries \
12743 getopt_long \
12744 getpagesize \
12745 getpwuid \
12746 gettimeofday \
12747 getuid \
12748 kqueue \
12749 lstat \
12750 memmove \
12751 mmap \
12752 pclose \
12753 pipe2 \
12754 poll \
12755 popen \
12756 port_create \
12757 prctl \
12758 pread \
12759 pwrite \
12760 readdir \
12761 readlink \
12762 sched_yield \
12763 select \
12764 setproctitle \
12765 setrlimit \
12766 settimeofday \
12767 sigaltstack \
12768 sigprocmask \
12769 snprintf \
12770 spawnvp \
12771 statfs \
12772 statvfs \
12773 strcasecmp \
12774 strdup \
12775 strerror \
12776 strncasecmp \
12777 strtold \
12778 strtoll \
12779 strtoull \
12780 symlink \
12781 tcgetattr \
12782 thr_kill2 \
12783 timegm \
12784 usleep \
12785 vsnprintf \
12786 wait4 \
12787 waitpid \
12789 do :
12790 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12791 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12792 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12793 cat >>confdefs.h <<_ACEOF
12794 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12795 _ACEOF
12798 done
12800 CFLAGS="$ac_save_CFLAGS"
12802 if test "$ac_cv_func_dlopen" = no
12803 then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12805 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12806 if ${ac_cv_lib_dl_dlopen+:} false; then :
12807 $as_echo_n "(cached) " >&6
12808 else
12809 ac_check_lib_save_LIBS=$LIBS
12810 LIBS="-ldl $LIBS"
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12814 /* Override any GCC internal prototype to avoid an error.
12815 Use char because int might match the return type of a GCC
12816 builtin and then its argument prototype would still apply. */
12817 #ifdef __cplusplus
12818 extern "C"
12819 #endif
12820 char dlopen ();
12822 main ()
12824 return dlopen ();
12826 return 0;
12828 _ACEOF
12829 if ac_fn_c_try_link "$LINENO"; then :
12830 ac_cv_lib_dl_dlopen=yes
12831 else
12832 ac_cv_lib_dl_dlopen=no
12834 rm -f core conftest.err conftest.$ac_objext \
12835 conftest$ac_exeext conftest.$ac_ext
12836 LIBS=$ac_check_lib_save_LIBS
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12839 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12840 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12841 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12842 LIBDL="-ldl"
12847 ac_wine_check_funcs_save_LIBS="$LIBS"
12848 LIBS="$LIBS $LIBDL"
12849 for ac_func in dladdr
12850 do :
12851 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12852 if test "x$ac_cv_func_dladdr" = xyes; then :
12853 cat >>confdefs.h <<_ACEOF
12854 #define HAVE_DLADDR 1
12855 _ACEOF
12858 done
12860 LIBS="$ac_wine_check_funcs_save_LIBS"
12862 if test "$ac_cv_func_poll" = no
12863 then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12865 $as_echo_n "checking for poll in -lpoll... " >&6; }
12866 if ${ac_cv_lib_poll_poll+:} false; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 ac_check_lib_save_LIBS=$LIBS
12870 LIBS="-lpoll $LIBS"
12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h. */
12874 /* Override any GCC internal prototype to avoid an error.
12875 Use char because int might match the return type of a GCC
12876 builtin and then its argument prototype would still apply. */
12877 #ifdef __cplusplus
12878 extern "C"
12879 #endif
12880 char poll ();
12882 main ()
12884 return poll ();
12886 return 0;
12888 _ACEOF
12889 if ac_fn_c_try_link "$LINENO"; then :
12890 ac_cv_lib_poll_poll=yes
12891 else
12892 ac_cv_lib_poll_poll=no
12894 rm -f core conftest.err conftest.$ac_objext \
12895 conftest$ac_exeext conftest.$ac_ext
12896 LIBS=$ac_check_lib_save_LIBS
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12899 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12900 if test "x$ac_cv_lib_poll_poll" = xyes; then :
12901 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12902 LIBPOLL="-lpoll"
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12909 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12910 if ${ac_cv_search_gethostbyname+:} false; then :
12911 $as_echo_n "(cached) " >&6
12912 else
12913 ac_func_search_save_LIBS=$LIBS
12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h. */
12917 /* Override any GCC internal prototype to avoid an error.
12918 Use char because int might match the return type of a GCC
12919 builtin and then its argument prototype would still apply. */
12920 #ifdef __cplusplus
12921 extern "C"
12922 #endif
12923 char gethostbyname ();
12925 main ()
12927 return gethostbyname ();
12929 return 0;
12931 _ACEOF
12932 for ac_lib in '' nsl; do
12933 if test -z "$ac_lib"; then
12934 ac_res="none required"
12935 else
12936 ac_res=-l$ac_lib
12937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12939 if ac_fn_c_try_link "$LINENO"; then :
12940 ac_cv_search_gethostbyname=$ac_res
12942 rm -f core conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext
12944 if ${ac_cv_search_gethostbyname+:} false; then :
12945 break
12947 done
12948 if ${ac_cv_search_gethostbyname+:} false; then :
12950 else
12951 ac_cv_search_gethostbyname=no
12953 rm conftest.$ac_ext
12954 LIBS=$ac_func_search_save_LIBS
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12957 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12958 ac_res=$ac_cv_search_gethostbyname
12959 if test "$ac_res" != no; then :
12960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12966 $as_echo_n "checking for library containing connect... " >&6; }
12967 if ${ac_cv_search_connect+:} false; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970 ac_func_search_save_LIBS=$LIBS
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12974 /* Override any GCC internal prototype to avoid an error.
12975 Use char because int might match the return type of a GCC
12976 builtin and then its argument prototype would still apply. */
12977 #ifdef __cplusplus
12978 extern "C"
12979 #endif
12980 char connect ();
12982 main ()
12984 return connect ();
12986 return 0;
12988 _ACEOF
12989 for ac_lib in '' socket; do
12990 if test -z "$ac_lib"; then
12991 ac_res="none required"
12992 else
12993 ac_res=-l$ac_lib
12994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12996 if ac_fn_c_try_link "$LINENO"; then :
12997 ac_cv_search_connect=$ac_res
12999 rm -f core conftest.err conftest.$ac_objext \
13000 conftest$ac_exeext
13001 if ${ac_cv_search_connect+:} false; then :
13002 break
13004 done
13005 if ${ac_cv_search_connect+:} false; then :
13007 else
13008 ac_cv_search_connect=no
13010 rm conftest.$ac_ext
13011 LIBS=$ac_func_search_save_LIBS
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13014 $as_echo "$ac_cv_search_connect" >&6; }
13015 ac_res=$ac_cv_search_connect
13016 if test "$ac_res" != no; then :
13017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13023 $as_echo_n "checking for library containing inet_aton... " >&6; }
13024 if ${ac_cv_search_inet_aton+:} false; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 ac_func_search_save_LIBS=$LIBS
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13031 /* Override any GCC internal prototype to avoid an error.
13032 Use char because int might match the return type of a GCC
13033 builtin and then its argument prototype would still apply. */
13034 #ifdef __cplusplus
13035 extern "C"
13036 #endif
13037 char inet_aton ();
13039 main ()
13041 return inet_aton ();
13043 return 0;
13045 _ACEOF
13046 for ac_lib in '' resolv; do
13047 if test -z "$ac_lib"; then
13048 ac_res="none required"
13049 else
13050 ac_res=-l$ac_lib
13051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13053 if ac_fn_c_try_link "$LINENO"; then :
13054 ac_cv_search_inet_aton=$ac_res
13056 rm -f core conftest.err conftest.$ac_objext \
13057 conftest$ac_exeext
13058 if ${ac_cv_search_inet_aton+:} false; then :
13059 break
13061 done
13062 if ${ac_cv_search_inet_aton+:} false; then :
13064 else
13065 ac_cv_search_inet_aton=no
13067 rm conftest.$ac_ext
13068 LIBS=$ac_func_search_save_LIBS
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13071 $as_echo "$ac_cv_search_inet_aton" >&6; }
13072 ac_res=$ac_cv_search_inet_aton
13073 if test "$ac_res" != no; then :
13074 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13079 for ac_func in \
13080 getaddrinfo \
13081 getnameinfo \
13082 getnetbyname \
13083 getprotobyname \
13084 getprotobynumber \
13085 getservbyport \
13086 inet_network \
13087 inet_ntop \
13088 inet_pton \
13089 sendmsg \
13090 socketpair \
13092 do :
13093 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13094 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13096 cat >>confdefs.h <<_ACEOF
13097 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13098 _ACEOF
13101 done
13104 LDAPLIBS=""
13106 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13107 then
13108 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13110 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13112 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13113 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13114 $as_echo_n "(cached) " >&6
13115 else
13116 ac_check_lib_save_LIBS=$LIBS
13117 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13121 /* Override any GCC internal prototype to avoid an error.
13122 Use char because int might match the return type of a GCC
13123 builtin and then its argument prototype would still apply. */
13124 #ifdef __cplusplus
13125 extern "C"
13126 #endif
13127 char ldap_initialize ();
13129 main ()
13131 return ldap_initialize ();
13133 return 0;
13135 _ACEOF
13136 if ac_fn_c_try_link "$LINENO"; then :
13137 ac_cv_lib_ldap_r_ldap_initialize=yes
13138 else
13139 ac_cv_lib_ldap_r_ldap_initialize=no
13141 rm -f core conftest.err conftest.$ac_objext \
13142 conftest$ac_exeext conftest.$ac_ext
13143 LIBS=$ac_check_lib_save_LIBS
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13146 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13147 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13149 $as_echo_n "checking for ber_init in -llber... " >&6; }
13150 if ${ac_cv_lib_lber_ber_init+:} false; then :
13151 $as_echo_n "(cached) " >&6
13152 else
13153 ac_check_lib_save_LIBS=$LIBS
13154 LIBS="-llber $LIBPTHREAD $LIBS"
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13158 /* Override any GCC internal prototype to avoid an error.
13159 Use char because int might match the return type of a GCC
13160 builtin and then its argument prototype would still apply. */
13161 #ifdef __cplusplus
13162 extern "C"
13163 #endif
13164 char ber_init ();
13166 main ()
13168 return ber_init ();
13170 return 0;
13172 _ACEOF
13173 if ac_fn_c_try_link "$LINENO"; then :
13174 ac_cv_lib_lber_ber_init=yes
13175 else
13176 ac_cv_lib_lber_ber_init=no
13178 rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext conftest.$ac_ext
13180 LIBS=$ac_check_lib_save_LIBS
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13183 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13184 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13186 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13188 LDAPLIBS="-lldap_r -llber"
13195 ac_wine_check_funcs_save_LIBS="$LIBS"
13196 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13197 for ac_func in \
13198 ldap_count_references \
13199 ldap_first_reference \
13200 ldap_next_reference \
13201 ldap_parse_reference \
13202 ldap_parse_sort_control \
13203 ldap_parse_sortresponse_control \
13204 ldap_parse_vlv_control \
13205 ldap_parse_vlvresponse_control
13206 do :
13207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13208 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13209 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13210 cat >>confdefs.h <<_ACEOF
13211 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13212 _ACEOF
13215 done
13217 LIBS="$ac_wine_check_funcs_save_LIBS"
13219 if test "x$LDAPLIBS" = "x"; then :
13220 case "x$with_ldap" in
13221 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13222 xno) ;;
13223 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13224 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13225 esac
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13229 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13230 if ${wine_cv_one_arg_mkdir+:} false; then :
13231 $as_echo_n "(cached) " >&6
13232 else
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13235 #include <sys/stat.h>
13237 main ()
13239 mkdir("foo");
13241 return 0;
13243 _ACEOF
13244 if ac_fn_c_try_compile "$LINENO"; then :
13245 wine_cv_one_arg_mkdir=yes
13246 else
13247 wine_cv_one_arg_mkdir=no
13249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13252 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13253 if test "$wine_cv_one_arg_mkdir" = "yes"
13254 then
13256 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13261 $as_echo_n "checking for sched_setaffinity... " >&6; }
13262 if ${wine_cv_have_sched_setaffinity+:} false; then :
13263 $as_echo_n "(cached) " >&6
13264 else
13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13267 #define _GNU_SOURCE
13268 #include <sched.h>
13270 main ()
13272 sched_setaffinity(0, 0, 0);
13274 return 0;
13276 _ACEOF
13277 if ac_fn_c_try_link "$LINENO"; then :
13278 wine_cv_have_sched_setaffinity=yes
13279 else
13280 wine_cv_have_sched_setaffinity=no
13282 rm -f core conftest.err conftest.$ac_objext \
13283 conftest$ac_exeext conftest.$ac_ext
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13286 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13287 if test "$wine_cv_have_sched_setaffinity" = "yes"
13288 then
13290 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13296 $as_echo_n "checking for inline... " >&6; }
13297 if ${ac_cv_c_inline+:} false; then :
13298 $as_echo_n "(cached) " >&6
13299 else
13300 ac_cv_c_inline=no
13301 for ac_kw in inline __inline__ __inline; do
13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13304 #ifndef __cplusplus
13305 typedef int foo_t;
13306 static $ac_kw foo_t static_foo () {return 0; }
13307 $ac_kw foo_t foo () {return 0; }
13308 #endif
13310 _ACEOF
13311 if ac_fn_c_try_compile "$LINENO"; then :
13312 ac_cv_c_inline=$ac_kw
13314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13315 test "$ac_cv_c_inline" != no && break
13316 done
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13320 $as_echo "$ac_cv_c_inline" >&6; }
13322 case $ac_cv_c_inline in
13323 inline | yes) ;;
13325 case $ac_cv_c_inline in
13326 no) ac_val=;;
13327 *) ac_val=$ac_cv_c_inline;;
13328 esac
13329 cat >>confdefs.h <<_ACEOF
13330 #ifndef __cplusplus
13331 #define inline $ac_val
13332 #endif
13333 _ACEOF
13335 esac
13337 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13338 if test "x$ac_cv_type_mode_t" = xyes; then :
13340 cat >>confdefs.h <<_ACEOF
13341 #define HAVE_MODE_T 1
13342 _ACEOF
13346 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13347 if test "x$ac_cv_type_off_t" = xyes; then :
13349 cat >>confdefs.h <<_ACEOF
13350 #define HAVE_OFF_T 1
13351 _ACEOF
13355 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13356 if test "x$ac_cv_type_pid_t" = xyes; then :
13358 cat >>confdefs.h <<_ACEOF
13359 #define HAVE_PID_T 1
13360 _ACEOF
13364 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13365 if test "x$ac_cv_type_size_t" = xyes; then :
13367 cat >>confdefs.h <<_ACEOF
13368 #define HAVE_SIZE_T 1
13369 _ACEOF
13373 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13374 if test "x$ac_cv_type_ssize_t" = xyes; then :
13376 cat >>confdefs.h <<_ACEOF
13377 #define HAVE_SSIZE_T 1
13378 _ACEOF
13382 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13383 if test "x$ac_cv_type_long_long" = xyes; then :
13385 cat >>confdefs.h <<_ACEOF
13386 #define HAVE_LONG_LONG 1
13387 _ACEOF
13391 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13392 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13394 cat >>confdefs.h <<_ACEOF
13395 #define HAVE_FSBLKCNT_T 1
13396 _ACEOF
13400 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13401 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13403 cat >>confdefs.h <<_ACEOF
13404 #define HAVE_FSFILCNT_T 1
13405 _ACEOF
13410 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13411 #include <signal.h>
13413 if test "x$ac_cv_type_sigset_t" = xyes; then :
13415 cat >>confdefs.h <<_ACEOF
13416 #define HAVE_SIGSET_T 1
13417 _ACEOF
13422 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13424 if test "x$ac_cv_type_request_sense" = xyes; then :
13426 cat >>confdefs.h <<_ACEOF
13427 #define HAVE_REQUEST_SENSE 1
13428 _ACEOF
13434 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13435 #ifdef HAVE_SYS_SOCKET_H
13436 #include <sys/socket.h>
13437 #endif
13438 #ifdef HAVE_SYS_SOCKETVAR_H
13439 #include <sys/socketvar.h>
13440 #endif
13441 #ifdef HAVE_NET_ROUTE_H
13442 #include <net/route.h>
13443 #endif
13444 #ifdef HAVE_NETINET_IN_H
13445 #include <netinet/in.h>
13446 #endif
13447 #ifdef HAVE_NETINET_IN_SYSTM_H
13448 #include <netinet/in_systm.h>
13449 #endif
13450 #ifdef HAVE_NETINET_IP_H
13451 #include <netinet/ip.h>
13452 #endif
13453 #ifdef HAVE_NETINET_IN_PCB_H
13454 #include <netinet/in_pcb.h>
13455 #endif
13457 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13459 cat >>confdefs.h <<_ACEOF
13460 #define HAVE_STRUCT_XINPGEN 1
13461 _ACEOF
13467 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13468 #include <linux/input.h>
13469 #endif
13471 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13473 cat >>confdefs.h <<_ACEOF
13474 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13475 _ACEOF
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13482 $as_echo_n "checking for sigaddset... " >&6; }
13483 if ${wine_cv_have_sigaddset+:} false; then :
13484 $as_echo_n "(cached) " >&6
13485 else
13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488 #include <signal.h>
13490 main ()
13492 sigset_t set; sigaddset(&set,SIGTERM);
13494 return 0;
13496 _ACEOF
13497 if ac_fn_c_try_link "$LINENO"; then :
13498 wine_cv_have_sigaddset=yes
13499 else
13500 wine_cv_have_sigaddset=no
13502 rm -f core conftest.err conftest.$ac_objext \
13503 conftest$ac_exeext conftest.$ac_ext
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13506 $as_echo "$wine_cv_have_sigaddset" >&6; }
13507 if test "$wine_cv_have_sigaddset" = "yes"
13508 then
13510 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13516 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13517 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13518 $as_echo_n "(cached) " >&6
13519 else
13520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521 /* end confdefs.h. */
13522 #include <netdb.h>
13524 main ()
13527 char *name=0;
13528 struct hostent he;
13529 struct hostent *result;
13530 char *buf=0;
13531 int bufsize=0;
13532 int errnr;
13533 char *addr=0;
13534 int addrlen=0;
13535 int addrtype=0;
13536 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13537 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13540 return 0;
13542 _ACEOF
13543 if ac_fn_c_try_link "$LINENO"; then :
13544 wine_cv_linux_gethostbyname_r_6=yes
13545 else
13546 wine_cv_linux_gethostbyname_r_6=no
13549 rm -f core conftest.err conftest.$ac_objext \
13550 conftest$ac_exeext conftest.$ac_ext
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13554 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13555 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13556 then
13558 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13562 if test "$ac_cv_header_linux_joystick_h" = "yes"
13563 then
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13565 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13566 if ${wine_cv_linux_joystick_22_api+:} false; then :
13567 $as_echo_n "(cached) " >&6
13568 else
13569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570 /* end confdefs.h. */
13572 #include <sys/ioctl.h>
13573 #include <sys/types.h>
13574 #include <linux/joystick.h>
13576 struct js_event blub;
13577 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13578 #error "no 2.2 header"
13579 #endif
13582 main ()
13584 /*empty*/
13586 return 0;
13588 _ACEOF
13589 if ac_fn_c_try_compile "$LINENO"; then :
13590 wine_cv_linux_joystick_22_api=yes
13591 else
13592 wine_cv_linux_joystick_22_api=no
13594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13598 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13599 if test "$wine_cv_linux_joystick_22_api" = "yes"
13600 then
13602 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13608 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13609 #ifdef HAVE_SYS_PARAM_H
13610 # include <sys/param.h>
13611 #endif
13612 #ifdef HAVE_SYS_MOUNT_H
13613 # include <sys/mount.h>
13614 #endif
13615 #ifdef HAVE_SYS_VFS_H
13616 # include <sys/vfs.h>
13617 #endif
13618 #ifdef HAVE_SYS_STATFS_H
13619 # include <sys/statfs.h>
13620 #endif
13622 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13624 cat >>confdefs.h <<_ACEOF
13625 #define HAVE_STRUCT_STATFS_F_BFREE 1
13626 _ACEOF
13630 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13631 #ifdef HAVE_SYS_PARAM_H
13632 # include <sys/param.h>
13633 #endif
13634 #ifdef HAVE_SYS_MOUNT_H
13635 # include <sys/mount.h>
13636 #endif
13637 #ifdef HAVE_SYS_VFS_H
13638 # include <sys/vfs.h>
13639 #endif
13640 #ifdef HAVE_SYS_STATFS_H
13641 # include <sys/statfs.h>
13642 #endif
13644 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13646 cat >>confdefs.h <<_ACEOF
13647 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13648 _ACEOF
13652 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13653 #ifdef HAVE_SYS_PARAM_H
13654 # include <sys/param.h>
13655 #endif
13656 #ifdef HAVE_SYS_MOUNT_H
13657 # include <sys/mount.h>
13658 #endif
13659 #ifdef HAVE_SYS_VFS_H
13660 # include <sys/vfs.h>
13661 #endif
13662 #ifdef HAVE_SYS_STATFS_H
13663 # include <sys/statfs.h>
13664 #endif
13666 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13668 cat >>confdefs.h <<_ACEOF
13669 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13670 _ACEOF
13674 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13675 #ifdef HAVE_SYS_PARAM_H
13676 # include <sys/param.h>
13677 #endif
13678 #ifdef HAVE_SYS_MOUNT_H
13679 # include <sys/mount.h>
13680 #endif
13681 #ifdef HAVE_SYS_VFS_H
13682 # include <sys/vfs.h>
13683 #endif
13684 #ifdef HAVE_SYS_STATFS_H
13685 # include <sys/statfs.h>
13686 #endif
13688 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13690 cat >>confdefs.h <<_ACEOF
13691 #define HAVE_STRUCT_STATFS_F_FFREE 1
13692 _ACEOF
13696 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13697 #ifdef HAVE_SYS_PARAM_H
13698 # include <sys/param.h>
13699 #endif
13700 #ifdef HAVE_SYS_MOUNT_H
13701 # include <sys/mount.h>
13702 #endif
13703 #ifdef HAVE_SYS_VFS_H
13704 # include <sys/vfs.h>
13705 #endif
13706 #ifdef HAVE_SYS_STATFS_H
13707 # include <sys/statfs.h>
13708 #endif
13710 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13712 cat >>confdefs.h <<_ACEOF
13713 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13714 _ACEOF
13718 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13719 #ifdef HAVE_SYS_PARAM_H
13720 # include <sys/param.h>
13721 #endif
13722 #ifdef HAVE_SYS_MOUNT_H
13723 # include <sys/mount.h>
13724 #endif
13725 #ifdef HAVE_SYS_VFS_H
13726 # include <sys/vfs.h>
13727 #endif
13728 #ifdef HAVE_SYS_STATFS_H
13729 # include <sys/statfs.h>
13730 #endif
13732 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13734 cat >>confdefs.h <<_ACEOF
13735 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13736 _ACEOF
13742 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13743 #include <sys/statvfs.h>
13744 #endif
13746 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13748 cat >>confdefs.h <<_ACEOF
13749 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13750 _ACEOF
13756 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13757 #ifdef HAVE_SYS_SOCKET_H
13758 # include <sys/socket.h>
13759 #endif
13760 #ifdef HAVE_SYS_UN_H
13761 # include <sys/un.h>
13762 #endif
13764 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13766 cat >>confdefs.h <<_ACEOF
13767 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13768 _ACEOF
13772 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13773 #ifdef HAVE_SYS_SOCKET_H
13774 # include <sys/socket.h>
13775 #endif
13776 #ifdef HAVE_SYS_UN_H
13777 # include <sys/un.h>
13778 #endif
13780 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13782 cat >>confdefs.h <<_ACEOF
13783 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13784 _ACEOF
13788 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13789 #ifdef HAVE_SYS_SOCKET_H
13790 # include <sys/socket.h>
13791 #endif
13792 #ifdef HAVE_SYS_UN_H
13793 # include <sys/un.h>
13794 #endif
13796 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13798 cat >>confdefs.h <<_ACEOF
13799 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13800 _ACEOF
13806 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13807 #ifdef HAVE_SCSI_SG_H
13808 #include <scsi/sg.h>
13809 #endif
13811 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13813 cat >>confdefs.h <<_ACEOF
13814 #define HAVE_SCSIREQ_T_CMD 1
13815 _ACEOF
13819 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>
13820 #ifdef HAVE_SCSI_SG_H
13821 #include <scsi/sg.h>
13822 #endif
13824 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13826 cat >>confdefs.h <<_ACEOF
13827 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13828 _ACEOF
13834 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13836 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
13838 cat >>confdefs.h <<_ACEOF
13839 #define HAVE_SIGINFO_T_SI_FD 1
13840 _ACEOF
13846 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13847 #ifdef HAVE_SYS_MTIO_H
13848 #include <sys/mtio.h>
13849 #endif
13851 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
13853 cat >>confdefs.h <<_ACEOF
13854 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13855 _ACEOF
13859 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13860 #ifdef HAVE_SYS_MTIO_H
13861 #include <sys/mtio.h>
13862 #endif
13864 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
13866 cat >>confdefs.h <<_ACEOF
13867 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13868 _ACEOF
13872 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13873 #ifdef HAVE_SYS_MTIO_H
13874 #include <sys/mtio.h>
13875 #endif
13877 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
13879 cat >>confdefs.h <<_ACEOF
13880 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13881 _ACEOF
13887 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13888 #include <getopt.h>
13889 #endif
13891 if test "x$ac_cv_member_struct_option_name" = xyes; then :
13893 cat >>confdefs.h <<_ACEOF
13894 #define HAVE_STRUCT_OPTION_NAME 1
13895 _ACEOF
13901 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13902 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13904 cat >>confdefs.h <<_ACEOF
13905 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13906 _ACEOF
13910 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13911 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13913 cat >>confdefs.h <<_ACEOF
13914 #define HAVE_STRUCT_STAT_ST_MTIM 1
13915 _ACEOF
13919 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13920 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
13922 cat >>confdefs.h <<_ACEOF
13923 #define HAVE_STRUCT_STAT_ST_CTIM 1
13924 _ACEOF
13928 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13929 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
13931 cat >>confdefs.h <<_ACEOF
13932 #define HAVE_STRUCT_STAT_ST_ATIM 1
13933 _ACEOF
13939 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
13940 #include <sys/types.h>
13941 #endif
13942 #ifdef HAVE_NETINET_IN_H
13943 #include <netinet/in.h>
13944 #endif
13946 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13948 cat >>confdefs.h <<_ACEOF
13949 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13950 _ACEOF
13956 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13957 #include <sys/types.h>
13958 #endif
13959 #ifdef HAVE_NETINET_IN_H
13960 # include <netinet/in.h>
13961 #endif
13962 #ifdef HAVE_ARPA_NAMESER_H
13963 # include <arpa/nameser.h>
13964 #endif
13966 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
13968 cat >>confdefs.h <<_ACEOF
13969 #define HAVE_NS_MSG__MSG_PTR 1
13970 _ACEOF
13976 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13977 #include <sys/types.h>
13978 #endif
13979 #ifdef HAVE_ALIAS_H
13980 #include <alias.h>
13981 #endif
13982 #ifdef HAVE_SYS_SOCKET_H
13983 #include <sys/socket.h>
13984 #endif
13985 #ifdef HAVE_SYS_SOCKETVAR_H
13986 #include <sys/socketvar.h>
13987 #endif
13988 #ifdef HAVE_SYS_TIMEOUT_H
13989 #include <sys/timeout.h>
13990 #endif
13991 #ifdef HAVE_NETINET_IN_H
13992 #include <netinet/in.h>
13993 #endif
13994 #ifdef HAVE_NETINET_IN_SYSTM_H
13995 #include <netinet/in_systm.h>
13996 #endif
13997 #ifdef HAVE_NETINET_IP_H
13998 #include <netinet/ip.h>
13999 #endif
14000 #ifdef HAVE_NETINET_IP_VAR_H
14001 #include <netinet/ip_var.h>
14002 #endif
14003 #ifdef HAVE_NETINET_IP_ICMP_H
14004 #include <netinet/ip_icmp.h>
14005 #endif
14006 #ifdef HAVE_NETINET_ICMP_VAR
14007 #include <netinet/icmp_var.h>
14008 #endif
14010 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14012 cat >>confdefs.h <<_ACEOF
14013 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14014 _ACEOF
14020 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14021 #include <sys/types.h>
14022 #endif
14023 #ifdef HAVE_NET_IF_H
14024 # include <net/if.h>
14025 #endif
14027 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14029 cat >>confdefs.h <<_ACEOF
14030 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14031 _ACEOF
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14038 $as_echo_n "checking for timezone variable... " >&6; }
14039 if ${ac_cv_have_timezone+:} false; then :
14040 $as_echo_n "(cached) " >&6
14041 else
14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14044 #include <time.h>
14046 main ()
14048 timezone = 1
14050 return 0;
14052 _ACEOF
14053 if ac_fn_c_try_link "$LINENO"; then :
14054 ac_cv_have_timezone="yes"
14055 else
14056 ac_cv_have_timezone="no"
14058 rm -f core conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14062 $as_echo "$ac_cv_have_timezone" >&6; }
14063 if test "$ac_cv_have_timezone" = "yes"
14064 then
14066 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14070 $as_echo_n "checking for daylight variable... " >&6; }
14071 if ${ac_cv_have_daylight+:} false; then :
14072 $as_echo_n "(cached) " >&6
14073 else
14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h. */
14076 #include <time.h>
14078 main ()
14080 daylight = 1
14082 return 0;
14084 _ACEOF
14085 if ac_fn_c_try_link "$LINENO"; then :
14086 ac_cv_have_daylight="yes"
14087 else
14088 ac_cv_have_daylight="no"
14090 rm -f core conftest.err conftest.$ac_objext \
14091 conftest$ac_exeext conftest.$ac_ext
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14094 $as_echo "$ac_cv_have_daylight" >&6; }
14095 if test "$ac_cv_have_daylight" = "yes"
14096 then
14098 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14102 ac_save_LIBS="$LIBS"
14103 LIBS="$LIBS -lm"
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14105 $as_echo_n "checking for isinf... " >&6; }
14106 if ${ac_cv_have_isinf+:} false; then :
14107 $as_echo_n "(cached) " >&6
14108 else
14109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h. */
14111 #include <math.h>
14113 main ()
14115 float f = 0.0; return isinf(f)
14117 return 0;
14119 _ACEOF
14120 if ac_fn_c_try_link "$LINENO"; then :
14121 ac_cv_have_isinf="yes"
14122 else
14123 ac_cv_have_isinf="no"
14125 rm -f core conftest.err conftest.$ac_objext \
14126 conftest$ac_exeext conftest.$ac_ext
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14129 $as_echo "$ac_cv_have_isinf" >&6; }
14130 if test "$ac_cv_have_isinf" = "yes"
14131 then
14133 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14138 $as_echo_n "checking for isnan... " >&6; }
14139 if ${ac_cv_have_isnan+:} false; then :
14140 $as_echo_n "(cached) " >&6
14141 else
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14144 #include <math.h>
14146 main ()
14148 float f = 0.0; return isnan(f)
14150 return 0;
14152 _ACEOF
14153 if ac_fn_c_try_link "$LINENO"; then :
14154 ac_cv_have_isnan="yes"
14155 else
14156 ac_cv_have_isnan="no"
14158 rm -f core conftest.err conftest.$ac_objext \
14159 conftest$ac_exeext conftest.$ac_ext
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14162 $as_echo "$ac_cv_have_isnan" >&6; }
14163 if test "$ac_cv_have_isnan" = "yes"
14164 then
14166 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14169 LIBS="$ac_save_LIBS"
14172 case $host_cpu in
14173 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14174 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14175 if ${ac_cv_cpp_def___i386__+:} false; then :
14176 $as_echo_n "(cached) " >&6
14177 else
14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h. */
14180 #ifndef __i386__
14182 #endif
14183 _ACEOF
14184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14185 $EGREP "yes" >/dev/null 2>&1; then :
14186 ac_cv_cpp_def___i386__=yes
14187 else
14188 ac_cv_cpp_def___i386__=no
14190 rm -f conftest*
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14194 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14195 if test $ac_cv_cpp_def___i386__ = yes; then :
14196 CFLAGS="$CFLAGS -D__i386__"
14197 LINTFLAGS="$LINTFLAGS -D__i386__"
14198 fi ;;
14199 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14200 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14201 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14202 $as_echo_n "(cached) " >&6
14203 else
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14206 #ifndef __x86_64__
14208 #endif
14209 _ACEOF
14210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14211 $EGREP "yes" >/dev/null 2>&1; then :
14212 ac_cv_cpp_def___x86_64__=yes
14213 else
14214 ac_cv_cpp_def___x86_64__=no
14216 rm -f conftest*
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14220 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14221 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14222 CFLAGS="$CFLAGS -D__x86_64__"
14223 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14224 fi ;;
14225 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14226 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14227 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14228 $as_echo_n "(cached) " >&6
14229 else
14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h. */
14232 #ifndef __sparc64__
14234 #endif
14235 _ACEOF
14236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14237 $EGREP "yes" >/dev/null 2>&1; then :
14238 ac_cv_cpp_def___sparc64__=yes
14239 else
14240 ac_cv_cpp_def___sparc64__=no
14242 rm -f conftest*
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14246 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14247 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14248 CFLAGS="$CFLAGS -D__sparc64__"
14249 LINTFLAGS="$LINTFLAGS -D__sparc64__"
14250 fi ;;
14251 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14252 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14253 if ${ac_cv_cpp_def___sparc__+:} false; then :
14254 $as_echo_n "(cached) " >&6
14255 else
14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257 /* end confdefs.h. */
14258 #ifndef __sparc__
14260 #endif
14261 _ACEOF
14262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14263 $EGREP "yes" >/dev/null 2>&1; then :
14264 ac_cv_cpp_def___sparc__=yes
14265 else
14266 ac_cv_cpp_def___sparc__=no
14268 rm -f conftest*
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14272 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14273 if test $ac_cv_cpp_def___sparc__ = yes; then :
14274 CFLAGS="$CFLAGS -D__sparc__"
14275 LINTFLAGS="$LINTFLAGS -D__sparc__"
14276 fi ;;
14277 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14278 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14279 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14280 $as_echo_n "(cached) " >&6
14281 else
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 #ifndef __powerpc64__
14286 #endif
14287 _ACEOF
14288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14289 $EGREP "yes" >/dev/null 2>&1; then :
14290 ac_cv_cpp_def___powerpc64__=yes
14291 else
14292 ac_cv_cpp_def___powerpc64__=no
14294 rm -f conftest*
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14298 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14299 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14300 CFLAGS="$CFLAGS -D__powerpc64__"
14301 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14302 fi ;;
14303 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14304 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14305 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14310 #ifndef __powerpc__
14312 #endif
14313 _ACEOF
14314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14315 $EGREP "yes" >/dev/null 2>&1; then :
14316 ac_cv_cpp_def___powerpc__=yes
14317 else
14318 ac_cv_cpp_def___powerpc__=no
14320 rm -f conftest*
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14324 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14325 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14326 CFLAGS="$CFLAGS -D__powerpc__"
14327 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14328 fi ;;
14329 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14330 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14331 if ${ac_cv_cpp_def___arm__+:} false; then :
14332 $as_echo_n "(cached) " >&6
14333 else
14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14336 #ifndef __arm__
14338 #endif
14339 _ACEOF
14340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14341 $EGREP "yes" >/dev/null 2>&1; then :
14342 ac_cv_cpp_def___arm__=yes
14343 else
14344 ac_cv_cpp_def___arm__=no
14346 rm -f conftest*
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14350 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14351 if test $ac_cv_cpp_def___arm__ = yes; then :
14352 CFLAGS="$CFLAGS -D__arm__"
14353 LINTFLAGS="$LINTFLAGS -D__arm__"
14354 fi ;;
14355 esac
14357 case $host_vendor in
14358 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14359 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14360 if ${ac_cv_cpp_def___sun__+:} false; then :
14361 $as_echo_n "(cached) " >&6
14362 else
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14365 #ifndef __sun__
14367 #endif
14368 _ACEOF
14369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14370 $EGREP "yes" >/dev/null 2>&1; then :
14371 ac_cv_cpp_def___sun__=yes
14372 else
14373 ac_cv_cpp_def___sun__=no
14375 rm -f conftest*
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14379 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14380 if test $ac_cv_cpp_def___sun__ = yes; then :
14381 CFLAGS="$CFLAGS -D__sun__"
14382 LINTFLAGS="$LINTFLAGS -D__sun__"
14383 fi ;;
14384 esac
14390 ac_config_commands="$ac_config_commands include/stamp-h"
14393 ALL_MAKEFILE_DEPENDS="
14394 # Rules automatically generated by configure
14396 .INIT: Makefile
14397 .MAKEFILEDEPS:
14398 all: Makefile
14399 Makefile: Makefile.in Make.vars.in Make.rules config.status
14400 @./config.status Make.tmp Makefile"
14402 ALL_POT_FILES=""
14403 ALL_TEST_RESOURCES=""
14406 wine_fn_append_file ()
14408 as_fn_append $1 " \\$as_nl $2"
14411 wine_fn_append_rule ()
14413 as_fn_append $1 "$as_nl$2"
14416 wine_fn_has_flag ()
14418 expr ",$2," : ".*,$1,.*" >/dev/null
14421 wine_fn_all_dir_rules ()
14423 ac_dir=$1
14424 ac_alldeps=$2
14425 ac_makedep="\$(MAKEDEP)"
14426 ac_input=Make.vars.in:$ac_dir/Makefile.in
14427 if test $ac_dir != tools
14428 then
14429 ac_alldeps="$2 $ac_makedep"
14431 case $2 in
14432 *.in) ac_input=$ac_input:$2 ;;
14433 *) ac_makedep="$2 $ac_makedep" ;;
14434 esac
14436 wine_fn_append_file ALL_DIRS $ac_dir
14437 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14438 "__clean__: $ac_dir/__clean__
14439 .PHONY: $ac_dir/__clean__
14440 $ac_dir/__clean__: $ac_dir/Makefile
14441 @cd $ac_dir && \$(MAKE) clean
14442 \$(RM) $ac_dir/Makefile
14443 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14444 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14445 depend: $ac_dir/__depend__
14446 .PHONY: $ac_dir/__depend__
14447 $ac_dir/__depend__: $ac_makedep dummy
14448 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14451 wine_fn_pot_rules ()
14453 ac_dir=$1
14454 ac_flags=$2
14456 test "x$with_gettextpo" = xyes || return
14458 if wine_fn_has_flag mc $ac_flags
14459 then
14460 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14461 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14462 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
14463 @cd $ac_dir && \$(MAKE) msg.pot
14464 $ac_dir/msg.pot: tools/wmc include"
14466 if wine_fn_has_flag po $ac_flags
14467 then
14468 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14469 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14470 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14471 @cd $ac_dir && \$(MAKE) rsrc.pot
14472 $ac_dir/rsrc.pot: tools/wrc include"
14476 wine_fn_config_makefile ()
14478 ac_dir=$1
14479 ac_enable=$2
14480 ac_flags=$3
14481 ac_rules=$4
14482 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14483 return 0
14486 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
14487 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14488 "all: $ac_dir
14489 .PHONY: $ac_dir
14490 $ac_dir: $ac_dir/Makefile dummy
14491 @cd $ac_dir && \$(MAKE)"
14493 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14495 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14496 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14497 $ac_dir/__install__:: $ac_dir
14498 @cd $ac_dir && \$(MAKE) install
14499 $ac_dir/__uninstall__:: $ac_dir/Makefile
14500 @cd $ac_dir && \$(MAKE) uninstall
14501 install:: $ac_dir/__install__
14502 __uninstall__: $ac_dir/__uninstall__"
14504 if wine_fn_has_flag install-lib $ac_flags
14505 then
14506 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14507 ".PHONY: $ac_dir/__install-lib__
14508 $ac_dir/__install-lib__:: $ac_dir
14509 @cd $ac_dir && \$(MAKE) install-lib
14510 install-lib:: $ac_dir/__install-lib__"
14513 if wine_fn_has_flag install-dev $ac_flags
14514 then
14515 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14516 ".PHONY: $ac_dir/__install-dev
14517 $ac_dir/__install-dev__:: $ac_dir
14518 @cd $ac_dir && \$(MAKE) install-dev
14519 install-dev:: $ac_dir/__install-dev__"
14523 wine_fn_config_lib ()
14525 ac_name=$1
14526 ac_flags=$2
14527 ac_dir=dlls/$ac_name
14528 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14530 if wine_fn_has_flag install-dev $ac_flags
14531 then :
14532 else
14533 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14534 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14535 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14536 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14537 $ac_dir/__uninstall__::
14538 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14539 install install-dev:: $ac_dir/__install__
14540 __uninstall__: $ac_dir/__uninstall__"
14543 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14544 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14547 wine_fn_config_dll ()
14549 ac_name=$1
14550 ac_dir=dlls/$ac_name
14551 ac_enable=$2
14552 ac_flags=$3
14553 ac_implib=${4:-$ac_name}
14554 ac_file=$ac_dir/lib$ac_implib
14555 ac_dll=$ac_name
14556 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14557 ac_implibflags=""
14559 case $ac_name in
14560 *16) ac_implibflags=" -m16" ;;
14561 *.*) ;;
14562 *) ac_dll=$ac_dll.dll ;;
14563 esac
14565 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
14567 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14568 test "$ac_enable" != enable_win16 || return 0
14569 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14570 else
14571 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14572 "$ac_dir: __builddeps__
14573 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14574 @cd $ac_dir && \$(MAKE) \$@"
14576 if wine_fn_has_flag install-lib $ac_flags
14577 then :
14578 else
14579 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14580 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14581 install install-lib:: $ac_dir/__install-lib__
14582 __uninstall__: $ac_dir/__uninstall__"
14583 if test -n "$DLLEXT"
14584 then
14585 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14586 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14587 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14588 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14589 $ac_dir/__uninstall__::
14590 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14591 else
14592 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14593 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14594 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14595 $ac_dir/__uninstall__::
14596 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14600 wine_fn_pot_rules $ac_dir $ac_flags
14603 if wine_fn_has_flag staticimplib $ac_flags
14604 then
14605 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14606 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14607 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14608 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14609 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14610 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14611 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14612 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14613 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14614 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14615 $ac_dir/__uninstall__::
14616 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14617 install install-dev:: $ac_dir/__install-dev__
14618 __uninstall__: $ac_dir/__uninstall__"
14620 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14621 then
14622 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14623 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14624 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14625 $ac_dir/__uninstall__::
14626 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14629 if test "x$CROSSTEST_DISABLE" = x
14630 then
14631 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14632 "__builddeps__: $ac_file.cross.a
14633 $ac_file.cross.a: $ac_dir/Makefile dummy
14634 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14637 elif wine_fn_has_flag implib $ac_flags
14638 then
14639 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14640 "__builddeps__: $ac_file.$IMPLIBEXT
14641 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14642 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14643 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14644 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14645 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14646 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14647 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14648 $ac_dir/__uninstall__::
14649 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14650 install install-dev:: $ac_dir/__install-dev__
14651 __uninstall__: $ac_dir/__uninstall__"
14652 if test "x$CROSSTEST_DISABLE" = x
14653 then
14654 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14655 "__builddeps__: $ac_file.cross.a
14656 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14657 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14660 if test "$ac_name" != "$ac_implib"
14661 then
14662 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14663 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14664 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14665 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14666 clean::
14667 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14668 if test "x$CROSSTEST_DISABLE" = x
14669 then
14670 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14671 "__builddeps__: dlls/lib$ac_implib.cross.a
14672 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14673 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14679 wine_fn_config_program ()
14681 ac_name=$1
14682 ac_dir=programs/$ac_name
14683 ac_enable=$2
14684 ac_flags=$3
14685 ac_program=$ac_name
14687 case $ac_name in
14688 *.*) ;;
14689 *) ac_program=$ac_program.exe ;;
14690 esac
14692 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
14694 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14696 else
14697 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14698 "$ac_dir: __builddeps__"
14700 wine_fn_pot_rules $ac_dir $ac_flags
14702 wine_fn_has_flag install $ac_flags || return
14703 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14704 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14705 install install-lib:: $ac_dir/__install__
14706 __uninstall__: $ac_dir/__uninstall__"
14708 if test -n "$DLLEXT"
14709 then
14710 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14711 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14712 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14713 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14714 $ac_dir/__uninstall__::
14715 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14717 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14718 then
14719 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14720 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
14721 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14722 $ac_dir/__uninstall__::
14723 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14725 else
14726 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14727 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14728 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14729 $ac_dir/__uninstall__::
14730 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
14733 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14734 then
14735 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14736 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14737 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14738 $ac_dir/__uninstall__::
14739 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14744 wine_fn_config_test ()
14746 ac_dir=$1
14747 ac_name=$2
14748 ac_flags=$3
14749 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14750 wine_fn_all_dir_rules $ac_dir Maketest.rules
14752 if test "x$enable_tests" = xno; then :
14754 else
14755 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14756 "all: $ac_dir
14757 .PHONY: $ac_dir
14758 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14759 @cd $ac_dir && \$(MAKE)
14760 programs/winetest: $ac_dir
14761 check test: $ac_dir/__test__
14762 .PHONY: $ac_dir/__test__
14763 $ac_dir/__test__: dummy
14764 @cd $ac_dir && \$(MAKE) test
14765 testclean::
14766 \$(RM) $ac_dir/*.ok"
14768 if test "x$CROSSTEST_DISABLE" = x
14769 then
14770 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14771 "crosstest: $ac_dir/__crosstest__
14772 .PHONY: $ac_dir/__crosstest__
14773 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14774 @cd $ac_dir && \$(MAKE) crosstest"
14779 wine_fn_config_tool ()
14781 ac_dir=$1
14782 ac_flags=$2
14783 if test "x$enable_tools" = xno; then :
14784 return 0
14787 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
14789 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14790 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
14791 case $ac_dir in
14792 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14793 esac
14796 wine_fn_config_makerules ()
14798 ac_rules=$1
14799 ac_deps=$2
14800 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14801 "$ac_rules: $ac_rules.in $ac_deps config.status
14802 @./config.status $ac_rules
14803 distclean::
14804 \$(RM) $ac_rules"
14807 wine_fn_config_symlink ()
14809 ac_link=$1
14810 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14811 "$ac_link:
14812 @./config.status $ac_link
14813 distclean::
14814 \$(RM) $ac_link"
14817 if test "x$CROSSTEST_DISABLE" != x
14818 then
14819 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14820 "crosstest:
14821 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14823 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14824 wine_fn_config_symlink dlls/shell32/AUTHORS
14825 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14826 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14827 if test "x$enable_fonts" != xno; then
14828 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14829 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14831 if test "x$enable_fonts" != xno; then
14832 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14833 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14835 if test "x$enable_fonts" != xno; then
14836 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14837 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14839 if test "x$enable_fonts" != xno; then
14840 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14841 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14843 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
14844 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
14845 if test "x$enable_tools" != xno; then
14846 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14847 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14849 ac_config_links="$ac_config_links wine:tools/winewrapper"
14850 wine_fn_config_symlink wine
14851 if test "x$enable_win64" != xno; then
14852 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14853 wine_fn_config_symlink wine64
14856 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14858 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14860 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14862 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14864 ac_config_commands="$ac_config_commands dlls/user32/resources"
14866 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14868 ac_config_commands="$ac_config_commands include/wine"
14871 wine_fn_config_makerules Make.rules
14872 MAKE_RULES=Make.rules
14873 ac_config_files="$ac_config_files Make.rules"
14875 wine_fn_config_makerules Maketest.rules Make.rules
14876 MAKE_TEST_RULES=Maketest.rules
14877 ac_config_files="$ac_config_files Maketest.rules"
14879 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14880 MAKE_DLL_RULES=dlls/Makedll.rules
14881 ac_config_files="$ac_config_files dlls/Makedll.rules"
14883 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14884 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14885 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14887 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14888 MAKE_PROG_RULES=programs/Makeprog.rules
14889 ac_config_files="$ac_config_files programs/Makeprog.rules"
14892 wine_fn_config_dll acledit enable_acledit
14893 wine_fn_config_dll aclui enable_aclui implib
14894 wine_fn_config_dll activeds enable_activeds implib
14895 wine_fn_config_dll actxprxy enable_actxprxy
14896 wine_fn_config_lib adsiid
14897 wine_fn_config_dll advapi32 enable_advapi32 implib
14898 wine_fn_config_test dlls/advapi32/tests advapi32_test
14899 wine_fn_config_dll advpack enable_advpack implib
14900 wine_fn_config_test dlls/advpack/tests advpack_test
14901 wine_fn_config_dll amstream enable_amstream
14902 wine_fn_config_test dlls/amstream/tests amstream_test
14903 wine_fn_config_dll apphelp enable_apphelp
14904 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14905 wine_fn_config_dll atl enable_atl implib
14906 wine_fn_config_test dlls/atl/tests atl_test
14907 wine_fn_config_dll atl80 enable_atl80
14908 wine_fn_config_dll authz enable_authz
14909 wine_fn_config_dll avicap32 enable_avicap32 implib
14910 wine_fn_config_dll avifil32 enable_avifil32 implib,po
14911 wine_fn_config_test dlls/avifil32/tests avifil32_test
14912 wine_fn_config_dll avifile.dll16 enable_win16
14913 wine_fn_config_dll avrt enable_avrt implib
14914 wine_fn_config_dll bcrypt enable_bcrypt
14915 wine_fn_config_dll browseui enable_browseui po
14916 wine_fn_config_test dlls/browseui/tests browseui_test
14917 wine_fn_config_dll cabinet enable_cabinet implib
14918 wine_fn_config_test dlls/cabinet/tests cabinet_test
14919 wine_fn_config_dll capi2032 enable_capi2032 implib
14920 wine_fn_config_dll cards enable_cards implib
14921 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14922 wine_fn_config_dll clusapi enable_clusapi implib
14923 wine_fn_config_dll comcat enable_comcat
14924 wine_fn_config_test dlls/comcat/tests comcat_test
14925 wine_fn_config_dll comctl32 enable_comctl32 implib,po
14926 wine_fn_config_test dlls/comctl32/tests comctl32_test
14927 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
14928 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14929 wine_fn_config_dll comm.drv16 enable_win16
14930 wine_fn_config_dll commdlg.dll16 enable_win16
14931 wine_fn_config_dll compobj.dll16 enable_win16
14932 wine_fn_config_dll compstui enable_compstui implib
14933 wine_fn_config_dll credui enable_credui implib,po
14934 wine_fn_config_test dlls/credui/tests credui_test
14935 wine_fn_config_dll crtdll enable_crtdll implib
14936 wine_fn_config_dll crypt32 enable_crypt32 implib,po
14937 wine_fn_config_test dlls/crypt32/tests crypt32_test
14938 wine_fn_config_dll cryptdlg enable_cryptdlg po
14939 wine_fn_config_dll cryptdll enable_cryptdll implib
14940 wine_fn_config_dll cryptnet enable_cryptnet implib
14941 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14942 wine_fn_config_dll cryptui enable_cryptui implib,po
14943 wine_fn_config_test dlls/cryptui/tests cryptui_test
14944 wine_fn_config_dll ctapi32 enable_ctapi32
14945 wine_fn_config_dll ctl3d.dll16 enable_win16
14946 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14947 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14948 wine_fn_config_dll d3d10 enable_d3d10 implib
14949 wine_fn_config_test dlls/d3d10/tests d3d10_test
14950 wine_fn_config_dll d3d10core enable_d3d10core implib
14951 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14952 wine_fn_config_dll d3d8 enable_d3d8 implib
14953 wine_fn_config_test dlls/d3d8/tests d3d8_test
14954 wine_fn_config_dll d3d9 enable_d3d9 implib
14955 wine_fn_config_test dlls/d3d9/tests d3d9_test
14956 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14957 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14958 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14959 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14960 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14961 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14962 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14963 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14964 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14965 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14966 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14967 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14968 wine_fn_config_dll d3dim enable_d3dim implib
14969 wine_fn_config_dll d3drm enable_d3drm implib
14970 wine_fn_config_test dlls/d3drm/tests d3drm_test
14971 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14972 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14973 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14974 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14975 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14976 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14977 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14978 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14979 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14980 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14981 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14982 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14983 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14984 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14985 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14986 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14987 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14988 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14989 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14990 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14991 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14992 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14993 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14994 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14995 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14996 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14997 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14998 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14999 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15000 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15001 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15002 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15003 wine_fn_config_dll d3dxof enable_d3dxof implib
15004 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15005 wine_fn_config_dll dbgeng enable_dbgeng implib
15006 wine_fn_config_dll dbghelp enable_dbghelp implib
15007 wine_fn_config_dll dciman32 enable_dciman32 implib
15008 wine_fn_config_dll ddeml.dll16 enable_win16
15009 wine_fn_config_dll ddraw enable_ddraw implib
15010 wine_fn_config_test dlls/ddraw/tests ddraw_test
15011 wine_fn_config_dll ddrawex enable_ddrawex
15012 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15013 wine_fn_config_dll devenum enable_devenum po
15014 wine_fn_config_test dlls/devenum/tests devenum_test
15015 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15016 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15017 wine_fn_config_test dlls/dinput/tests dinput_test
15018 wine_fn_config_dll dinput8 enable_dinput8 implib
15019 wine_fn_config_test dlls/dinput8/tests dinput8_test
15020 wine_fn_config_dll dispdib.dll16 enable_win16
15021 wine_fn_config_dll dispex enable_dispex
15022 wine_fn_config_test dlls/dispex/tests dispex_test
15023 wine_fn_config_dll display.drv16 enable_win16
15024 wine_fn_config_dll dmband enable_dmband
15025 wine_fn_config_test dlls/dmband/tests dmband_test
15026 wine_fn_config_dll dmcompos enable_dmcompos
15027 wine_fn_config_dll dmime enable_dmime
15028 wine_fn_config_test dlls/dmime/tests dmime_test
15029 wine_fn_config_dll dmloader enable_dmloader
15030 wine_fn_config_test dlls/dmloader/tests dmloader_test
15031 wine_fn_config_dll dmscript enable_dmscript
15032 wine_fn_config_dll dmstyle enable_dmstyle
15033 wine_fn_config_dll dmsynth enable_dmsynth
15034 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
15035 wine_fn_config_dll dmusic enable_dmusic
15036 wine_fn_config_test dlls/dmusic/tests dmusic_test
15037 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15038 wine_fn_config_dll dnsapi enable_dnsapi implib
15039 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15040 wine_fn_config_dll dplay enable_dplay implib
15041 wine_fn_config_dll dplayx enable_dplayx implib
15042 wine_fn_config_test dlls/dplayx/tests dplayx_test
15043 wine_fn_config_dll dpnaddr enable_dpnaddr
15044 wine_fn_config_dll dpnet enable_dpnet implib
15045 wine_fn_config_test dlls/dpnet/tests dpnet_test
15046 wine_fn_config_dll dpnhpast enable_dpnhpast
15047 wine_fn_config_dll dpnlobby enable_dpnlobby
15048 wine_fn_config_dll dpwsockx enable_dpwsockx
15049 wine_fn_config_dll drmclien enable_drmclien
15050 wine_fn_config_dll dsound enable_dsound implib
15051 wine_fn_config_test dlls/dsound/tests dsound_test
15052 wine_fn_config_dll dssenh enable_dssenh
15053 wine_fn_config_dll dswave enable_dswave
15054 wine_fn_config_dll dwmapi enable_dwmapi implib
15055 wine_fn_config_dll dxdiagn enable_dxdiagn po
15056 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15057 wine_fn_config_lib dxerr8
15058 wine_fn_config_lib dxerr9
15059 wine_fn_config_dll dxgi enable_dxgi implib
15060 wine_fn_config_test dlls/dxgi/tests dxgi_test
15061 wine_fn_config_lib dxguid
15062 wine_fn_config_dll explorerframe enable_explorerframe
15063 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15064 wine_fn_config_dll faultrep enable_faultrep implib
15065 wine_fn_config_test dlls/faultrep/tests faultrep_test
15066 wine_fn_config_dll fltlib enable_fltlib
15067 wine_fn_config_dll fusion enable_fusion
15068 wine_fn_config_test dlls/fusion/tests fusion_test
15069 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15070 wine_fn_config_dll gameux enable_gameux
15071 wine_fn_config_test dlls/gameux/tests gameux_test
15072 wine_fn_config_dll gdi.exe16 enable_win16
15073 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15074 wine_fn_config_test dlls/gdi32/tests gdi32_test
15075 wine_fn_config_dll gdiplus enable_gdiplus implib
15076 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15077 wine_fn_config_dll glu32 enable_glu32 implib
15078 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15079 wine_fn_config_dll gpkcsp enable_gpkcsp
15080 wine_fn_config_dll hal enable_hal
15081 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15082 wine_fn_config_dll hid enable_hid implib
15083 wine_fn_config_dll hlink enable_hlink implib
15084 wine_fn_config_test dlls/hlink/tests hlink_test
15085 wine_fn_config_dll hnetcfg enable_hnetcfg
15086 wine_fn_config_dll httpapi enable_httpapi
15087 wine_fn_config_dll iccvid enable_iccvid po
15088 wine_fn_config_dll icmp enable_icmp
15089 wine_fn_config_dll ieframe enable_ieframe implib,po
15090 wine_fn_config_test dlls/ieframe/tests ieframe_test
15091 wine_fn_config_dll ifsmgr.vxd enable_win16
15092 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15093 wine_fn_config_dll imagehlp enable_imagehlp implib
15094 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15095 wine_fn_config_dll imm.dll16 enable_win16
15096 wine_fn_config_dll imm32 enable_imm32 implib
15097 wine_fn_config_test dlls/imm32/tests imm32_test
15098 wine_fn_config_dll inetcomm enable_inetcomm implib
15099 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15100 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15101 wine_fn_config_dll inetmib1 enable_inetmib1
15102 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15103 wine_fn_config_dll infosoft enable_infosoft
15104 wine_fn_config_test dlls/infosoft/tests infosoft_test
15105 wine_fn_config_dll initpki enable_initpki
15106 wine_fn_config_dll inkobj enable_inkobj
15107 wine_fn_config_dll inseng enable_inseng
15108 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15109 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15110 wine_fn_config_dll itircl enable_itircl
15111 wine_fn_config_dll itss enable_itss
15112 wine_fn_config_test dlls/itss/tests itss_test
15113 wine_fn_config_dll jscript enable_jscript po
15114 wine_fn_config_test dlls/jscript/tests jscript_test
15115 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15116 wine_fn_config_test dlls/kernel32/tests kernel32_test
15117 wine_fn_config_dll keyboard.drv16 enable_win16
15118 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15119 wine_fn_config_dll ktmw32 enable_ktmw32
15120 wine_fn_config_dll loadperf enable_loadperf implib
15121 wine_fn_config_dll localspl enable_localspl po
15122 wine_fn_config_test dlls/localspl/tests localspl_test
15123 wine_fn_config_dll localui enable_localui po
15124 wine_fn_config_test dlls/localui/tests localui_test
15125 wine_fn_config_dll lz32 enable_lz32 implib
15126 wine_fn_config_test dlls/lz32/tests lz32_test
15127 wine_fn_config_dll lzexpand.dll16 enable_win16
15128 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15129 wine_fn_config_test dlls/mapi32/tests mapi32_test
15130 wine_fn_config_dll mapistub enable_mapistub
15131 wine_fn_config_dll mciavi32 enable_mciavi32
15132 wine_fn_config_dll mcicda enable_mcicda
15133 wine_fn_config_dll mciqtz32 enable_mciqtz32
15134 wine_fn_config_dll mciseq enable_mciseq
15135 wine_fn_config_dll mciwave enable_mciwave
15136 wine_fn_config_dll mgmtapi enable_mgmtapi
15137 wine_fn_config_dll midimap enable_midimap
15138 wine_fn_config_dll mlang enable_mlang implib
15139 wine_fn_config_test dlls/mlang/tests mlang_test
15140 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15141 wine_fn_config_dll mmdevapi enable_mmdevapi
15142 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15143 wine_fn_config_dll mmdevldr.vxd enable_win16
15144 wine_fn_config_dll mmsystem.dll16 enable_win16
15145 wine_fn_config_dll monodebg.vxd enable_win16
15146 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15147 wine_fn_config_dll mouse.drv16 enable_win16
15148 wine_fn_config_dll mpr enable_mpr implib,po
15149 wine_fn_config_dll mprapi enable_mprapi implib
15150 wine_fn_config_dll msacm.dll16 enable_win16
15151 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15152 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15153 wine_fn_config_test dlls/msacm32/tests msacm32_test
15154 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15155 wine_fn_config_dll mscat32 enable_mscat32
15156 wine_fn_config_dll mscms enable_mscms implib
15157 wine_fn_config_test dlls/mscms/tests mscms_test
15158 wine_fn_config_dll mscoree enable_mscoree
15159 wine_fn_config_test dlls/mscoree/tests mscoree_test
15160 wine_fn_config_dll msctf enable_msctf
15161 wine_fn_config_test dlls/msctf/tests msctf_test
15162 wine_fn_config_dll msdaps enable_msdaps
15163 wine_fn_config_dll msdmo enable_msdmo implib
15164 wine_fn_config_dll msftedit enable_msftedit
15165 wine_fn_config_dll msg711.acm enable_msg711_acm
15166 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15167 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15168 wine_fn_config_dll mshtml enable_mshtml implib,po
15169 wine_fn_config_test dlls/mshtml/tests mshtml_test
15170 wine_fn_config_dll msi enable_msi implib,po
15171 wine_fn_config_test dlls/msi/tests msi_test
15172 wine_fn_config_dll msident enable_msident
15173 wine_fn_config_dll msimg32 enable_msimg32 implib
15174 wine_fn_config_dll msimsg enable_msimsg
15175 wine_fn_config_dll msimtf enable_msimtf
15176 wine_fn_config_dll msisip enable_msisip
15177 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15178 wine_fn_config_dll msnet32 enable_msnet32
15179 wine_fn_config_dll mspatcha enable_mspatcha
15180 wine_fn_config_dll msrle32 enable_msrle32 po
15181 wine_fn_config_dll mssign32 enable_mssign32
15182 wine_fn_config_dll mssip32 enable_mssip32
15183 wine_fn_config_dll mstask enable_mstask
15184 wine_fn_config_test dlls/mstask/tests mstask_test
15185 wine_fn_config_dll msvcirt enable_msvcirt
15186 wine_fn_config_dll msvcp100 enable_msvcp100
15187 wine_fn_config_dll msvcp60 enable_msvcp60
15188 wine_fn_config_dll msvcp70 enable_msvcp70
15189 wine_fn_config_dll msvcp71 enable_msvcp71
15190 wine_fn_config_dll msvcp80 enable_msvcp80
15191 wine_fn_config_dll msvcp90 enable_msvcp90
15192 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15193 wine_fn_config_dll msvcr100 enable_msvcr100
15194 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15195 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15196 wine_fn_config_dll msvcr80 enable_msvcr80
15197 wine_fn_config_dll msvcr90 enable_msvcr90
15198 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15199 wine_fn_config_dll msvcrt enable_msvcrt implib
15200 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15201 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15202 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15203 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15204 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15205 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15206 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15207 wine_fn_config_dll msvidc32 enable_msvidc32 po
15208 wine_fn_config_dll msvideo.dll16 enable_win16
15209 wine_fn_config_dll mswsock enable_mswsock implib
15210 wine_fn_config_dll msxml enable_msxml
15211 wine_fn_config_dll msxml2 enable_msxml2
15212 wine_fn_config_dll msxml3 enable_msxml3
15213 wine_fn_config_test dlls/msxml3/tests msxml3_test
15214 wine_fn_config_dll msxml4 enable_msxml4
15215 wine_fn_config_dll msxml6 enable_msxml6
15216 wine_fn_config_dll nddeapi enable_nddeapi implib
15217 wine_fn_config_dll netapi32 enable_netapi32 implib
15218 wine_fn_config_test dlls/netapi32/tests netapi32_test
15219 wine_fn_config_dll newdev enable_newdev implib
15220 wine_fn_config_dll normaliz enable_normaliz implib
15221 wine_fn_config_dll npmshtml enable_npmshtml
15222 wine_fn_config_dll ntdll enable_ntdll implib
15223 wine_fn_config_test dlls/ntdll/tests ntdll_test
15224 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15225 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15226 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15227 wine_fn_config_dll ntprint enable_ntprint
15228 wine_fn_config_test dlls/ntprint/tests ntprint_test
15229 wine_fn_config_dll objsel enable_objsel
15230 wine_fn_config_dll odbc32 enable_odbc32 implib
15231 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15232 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15233 wine_fn_config_dll ole2.dll16 enable_win16
15234 wine_fn_config_dll ole2conv.dll16 enable_win16
15235 wine_fn_config_dll ole2disp.dll16 enable_win16
15236 wine_fn_config_dll ole2nls.dll16 enable_win16
15237 wine_fn_config_dll ole2prox.dll16 enable_win16
15238 wine_fn_config_dll ole2thk.dll16 enable_win16
15239 wine_fn_config_dll ole32 enable_ole32 implib
15240 wine_fn_config_test dlls/ole32/tests ole32_test
15241 wine_fn_config_dll oleacc enable_oleacc implib,po
15242 wine_fn_config_test dlls/oleacc/tests oleacc_test
15243 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15244 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15245 wine_fn_config_dll olecli.dll16 enable_win16
15246 wine_fn_config_dll olecli32 enable_olecli32 implib
15247 wine_fn_config_dll oledb32 enable_oledb32
15248 wine_fn_config_test dlls/oledb32/tests oledb32_test
15249 wine_fn_config_dll oledlg enable_oledlg implib,po
15250 wine_fn_config_dll olepro32 enable_olepro32 implib
15251 wine_fn_config_dll olesvr.dll16 enable_win16
15252 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15253 wine_fn_config_dll olethk32 enable_olethk32
15254 wine_fn_config_dll openal32 enable_openal32
15255 wine_fn_config_dll opencl enable_opencl
15256 wine_fn_config_dll opengl32 enable_opengl32 implib
15257 wine_fn_config_test dlls/opengl32/tests opengl32_test
15258 wine_fn_config_dll pdh enable_pdh implib
15259 wine_fn_config_test dlls/pdh/tests pdh_test
15260 wine_fn_config_dll photometadatahandler enable_photometadatahandler
15261 wine_fn_config_dll pidgen enable_pidgen
15262 wine_fn_config_dll powrprof enable_powrprof implib
15263 wine_fn_config_dll printui enable_printui
15264 wine_fn_config_dll propsys enable_propsys implib
15265 wine_fn_config_test dlls/propsys/tests propsys_test
15266 wine_fn_config_dll psapi enable_psapi implib
15267 wine_fn_config_test dlls/psapi/tests psapi_test
15268 wine_fn_config_dll pstorec enable_pstorec
15269 wine_fn_config_dll qcap enable_qcap
15270 wine_fn_config_dll qedit enable_qedit
15271 wine_fn_config_test dlls/qedit/tests qedit_test
15272 wine_fn_config_dll qmgr enable_qmgr
15273 wine_fn_config_test dlls/qmgr/tests qmgr_test
15274 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15275 wine_fn_config_dll quartz enable_quartz implib
15276 wine_fn_config_test dlls/quartz/tests quartz_test
15277 wine_fn_config_dll query enable_query
15278 wine_fn_config_dll rasapi16.dll16 enable_win16
15279 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15280 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15281 wine_fn_config_dll rasdlg enable_rasdlg implib
15282 wine_fn_config_dll regapi enable_regapi
15283 wine_fn_config_dll resutils enable_resutils implib
15284 wine_fn_config_dll riched20 enable_riched20 implib
15285 wine_fn_config_test dlls/riched20/tests riched20_test
15286 wine_fn_config_dll riched32 enable_riched32
15287 wine_fn_config_test dlls/riched32/tests riched32_test
15288 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15289 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15290 wine_fn_config_dll rsabase enable_rsabase
15291 wine_fn_config_dll rsaenh enable_rsaenh implib
15292 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15293 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15294 wine_fn_config_dll rtutils enable_rtutils implib
15295 wine_fn_config_dll samlib enable_samlib
15296 wine_fn_config_dll sane.ds enable_sane_ds po
15297 wine_fn_config_dll scarddlg enable_scarddlg
15298 wine_fn_config_dll sccbase enable_sccbase
15299 wine_fn_config_dll schannel enable_schannel
15300 wine_fn_config_test dlls/schannel/tests schannel_test
15301 wine_fn_config_dll scrrun enable_scrrun
15302 wine_fn_config_test dlls/scrrun/tests scrrun_test
15303 wine_fn_config_dll secur32 enable_secur32 implib
15304 wine_fn_config_test dlls/secur32/tests secur32_test
15305 wine_fn_config_dll security enable_security
15306 wine_fn_config_dll sensapi enable_sensapi implib
15307 wine_fn_config_dll serialui enable_serialui implib,po
15308 wine_fn_config_test dlls/serialui/tests serialui_test
15309 wine_fn_config_dll setupapi enable_setupapi implib,po
15310 wine_fn_config_test dlls/setupapi/tests setupapi_test
15311 wine_fn_config_dll setupx.dll16 enable_win16
15312 wine_fn_config_dll sfc enable_sfc implib
15313 wine_fn_config_dll sfc_os enable_sfc_os implib
15314 wine_fn_config_dll shdoclc enable_shdoclc po
15315 wine_fn_config_dll shdocvw enable_shdocvw implib
15316 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15317 wine_fn_config_dll shell.dll16 enable_win16
15318 wine_fn_config_dll shell32 enable_shell32 implib,po
15319 wine_fn_config_test dlls/shell32/tests shell32_test
15320 wine_fn_config_dll shfolder enable_shfolder implib
15321 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15322 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15323 wine_fn_config_dll slbcsp enable_slbcsp
15324 wine_fn_config_dll slc enable_slc implib
15325 wine_fn_config_dll snmpapi enable_snmpapi implib
15326 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15327 wine_fn_config_dll softpub enable_softpub
15328 wine_fn_config_dll sound.drv16 enable_win16
15329 wine_fn_config_dll spoolss enable_spoolss implib
15330 wine_fn_config_test dlls/spoolss/tests spoolss_test
15331 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15332 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15333 wine_fn_config_dll sti enable_sti implib
15334 wine_fn_config_test dlls/sti/tests sti_test
15335 wine_fn_config_dll storage.dll16 enable_win16
15336 wine_fn_config_dll stress.dll16 enable_win16
15337 wine_fn_config_lib strmbase
15338 wine_fn_config_lib strmiids
15339 wine_fn_config_dll svrapi enable_svrapi
15340 wine_fn_config_dll sxs enable_sxs implib
15341 wine_fn_config_test dlls/sxs/tests sxs_test
15342 wine_fn_config_dll system.drv16 enable_win16
15343 wine_fn_config_dll t2embed enable_t2embed
15344 wine_fn_config_dll tapi32 enable_tapi32 implib
15345 wine_fn_config_dll toolhelp.dll16 enable_win16
15346 wine_fn_config_dll traffic enable_traffic
15347 wine_fn_config_dll twain.dll16 enable_win16
15348 wine_fn_config_dll twain_32 enable_twain_32
15349 wine_fn_config_test dlls/twain_32/tests twain_32_test
15350 wine_fn_config_dll typelib.dll16 enable_win16
15351 wine_fn_config_dll unicows enable_unicows implib
15352 wine_fn_config_dll updspapi enable_updspapi
15353 wine_fn_config_dll url enable_url implib
15354 wine_fn_config_dll urlmon enable_urlmon implib
15355 wine_fn_config_test dlls/urlmon/tests urlmon_test
15356 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15357 wine_fn_config_dll user.exe16 enable_win16
15358 wine_fn_config_dll user32 enable_user32 implib,po
15359 wine_fn_config_test dlls/user32/tests user32_test
15360 wine_fn_config_dll userenv enable_userenv implib
15361 wine_fn_config_test dlls/userenv/tests userenv_test
15362 wine_fn_config_dll usp10 enable_usp10 implib
15363 wine_fn_config_test dlls/usp10/tests usp10_test
15364 wine_fn_config_lib uuid
15365 wine_fn_config_dll uxtheme enable_uxtheme implib
15366 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15367 wine_fn_config_dll vbscript enable_vbscript
15368 wine_fn_config_test dlls/vbscript/tests vbscript_test
15369 wine_fn_config_dll vcomp enable_vcomp
15370 wine_fn_config_dll vcomp100 enable_vcomp100
15371 wine_fn_config_dll vdhcp.vxd enable_win16
15372 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15373 wine_fn_config_dll ver.dll16 enable_win16
15374 wine_fn_config_dll version enable_version implib
15375 wine_fn_config_test dlls/version/tests version_test
15376 wine_fn_config_dll vmm.vxd enable_win16
15377 wine_fn_config_dll vnbt.vxd enable_win16
15378 wine_fn_config_dll vnetbios.vxd enable_win16
15379 wine_fn_config_dll vtdapi.vxd enable_win16
15380 wine_fn_config_dll vwin32.vxd enable_win16
15381 wine_fn_config_dll w32skrnl enable_win16
15382 wine_fn_config_dll w32sys.dll16 enable_win16
15383 wine_fn_config_dll wbemprox enable_wbemprox
15384 wine_fn_config_dll wer enable_wer implib
15385 wine_fn_config_test dlls/wer/tests wer_test
15386 wine_fn_config_dll wevtapi enable_wevtapi
15387 wine_fn_config_dll wiaservc enable_wiaservc
15388 wine_fn_config_dll win32s16.dll16 enable_win16
15389 wine_fn_config_dll win87em.dll16 enable_win16
15390 wine_fn_config_dll winaspi.dll16 enable_win16
15391 wine_fn_config_dll windebug.dll16 enable_win16
15392 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15393 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15394 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15395 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15396 wine_fn_config_lib winecrt0
15397 wine_fn_config_dll wined3d enable_wined3d implib
15398 wine_fn_config_dll winegstreamer enable_winegstreamer
15399 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15400 wine_fn_config_dll winemapi enable_winemapi
15401 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15402 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15403 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
15404 wine_fn_config_dll wineps16.drv16 enable_win16
15405 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15406 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15407 wine_fn_config_dll winex11.drv enable_winex11_drv
15408 wine_fn_config_dll wing.dll16 enable_win16
15409 wine_fn_config_dll wing32 enable_wing32
15410 wine_fn_config_dll winhttp enable_winhttp implib
15411 wine_fn_config_test dlls/winhttp/tests winhttp_test
15412 wine_fn_config_dll wininet enable_wininet implib,po
15413 wine_fn_config_test dlls/wininet/tests wininet_test
15414 wine_fn_config_dll winmm enable_winmm implib,po
15415 wine_fn_config_test dlls/winmm/tests winmm_test
15416 wine_fn_config_dll winnls.dll16 enable_win16
15417 wine_fn_config_dll winnls32 enable_winnls32 implib
15418 wine_fn_config_dll winscard enable_winscard implib
15419 wine_fn_config_dll winsock.dll16 enable_win16
15420 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15421 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15422 wine_fn_config_dll winsta enable_winsta
15423 wine_fn_config_dll wintab.dll16 enable_win16
15424 wine_fn_config_dll wintab32 enable_wintab32 implib
15425 wine_fn_config_test dlls/wintab32/tests wintab32_test
15426 wine_fn_config_dll wintrust enable_wintrust implib
15427 wine_fn_config_test dlls/wintrust/tests wintrust_test
15428 wine_fn_config_dll wlanapi enable_wlanapi
15429 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15430 wine_fn_config_test dlls/wldap32/tests wldap32_test
15431 wine_fn_config_dll wmi enable_wmi
15432 wine_fn_config_dll wmiutils enable_wmiutils
15433 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15434 wine_fn_config_dll wow32 enable_win16 implib
15435 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15436 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15437 wine_fn_config_dll wshom.ocx enable_wshom_ocx
15438 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
15439 wine_fn_config_dll wsock32 enable_wsock32 implib
15440 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15441 wine_fn_config_dll wuapi enable_wuapi
15442 wine_fn_config_dll wuaueng enable_wuaueng
15443 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15444 wine_fn_config_dll xinput1_1 enable_xinput1_1
15445 wine_fn_config_dll xinput1_2 enable_xinput1_2
15446 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15447 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15448 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15449 wine_fn_config_dll xmllite enable_xmllite
15450 wine_fn_config_test dlls/xmllite/tests xmllite_test
15451 wine_fn_config_dll xolehlp enable_xolehlp
15452 wine_fn_config_dll xpsprint enable_xpsprint
15453 wine_fn_config_makefile documentation enable_documentation
15454 wine_fn_config_makefile fonts enable_fonts install-lib
15455 wine_fn_config_makefile include enable_include install-dev
15456 wine_fn_config_makefile libs/port enable_libs_port
15457 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15458 wine_fn_config_makefile libs/wpp enable_libs_wpp
15459 wine_fn_config_makefile loader enable_loader install-lib,manpage
15460 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15461 wine_fn_config_program attrib enable_attrib install,po
15462 wine_fn_config_program cabarc enable_cabarc install
15463 wine_fn_config_program cacls enable_cacls install
15464 wine_fn_config_program clock enable_clock install,po
15465 wine_fn_config_program cmd enable_cmd install,po
15466 wine_fn_config_test programs/cmd/tests cmd.exe_test
15467 wine_fn_config_program control enable_control install
15468 wine_fn_config_program cscript enable_cscript install
15469 wine_fn_config_program dxdiag enable_dxdiag install,po
15470 wine_fn_config_program eject enable_eject install
15471 wine_fn_config_program expand enable_expand install
15472 wine_fn_config_program explorer enable_explorer install,po
15473 wine_fn_config_program extrac32 enable_extrac32 install
15474 wine_fn_config_program hh enable_hh install
15475 wine_fn_config_program hostname enable_hostname install,po
15476 wine_fn_config_program icinfo enable_icinfo install
15477 wine_fn_config_program iexplore enable_iexplore install
15478 wine_fn_config_program ipconfig enable_ipconfig install,po
15479 wine_fn_config_program lodctr enable_lodctr install
15480 wine_fn_config_program mofcomp enable_mofcomp install
15481 wine_fn_config_program mshta enable_mshta install
15482 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
15483 wine_fn_config_program net enable_net install,po
15484 wine_fn_config_program netsh enable_netsh install
15485 wine_fn_config_program ngen enable_ngen install
15486 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
15487 wine_fn_config_program oleview enable_oleview install,po
15488 wine_fn_config_program ping enable_ping install
15489 wine_fn_config_program plugplay enable_plugplay install
15490 wine_fn_config_program presentationfontcache enable_presentationfontcache install
15491 wine_fn_config_program progman enable_progman install,po
15492 wine_fn_config_program reg enable_reg install,po
15493 wine_fn_config_program regasm enable_regasm install
15494 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
15495 wine_fn_config_test programs/regedit/tests regedit.exe_test
15496 wine_fn_config_program regsvcs enable_regsvcs install
15497 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
15498 wine_fn_config_program rpcss enable_rpcss install
15499 wine_fn_config_program rundll.exe16 enable_win16 install
15500 wine_fn_config_program rundll32 enable_rundll32 install
15501 wine_fn_config_program sc enable_sc install
15502 wine_fn_config_program secedit enable_secedit install
15503 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15504 wine_fn_config_program services enable_services install
15505 wine_fn_config_program spoolsv enable_spoolsv install
15506 wine_fn_config_program start enable_start install,po
15507 wine_fn_config_program svchost enable_svchost install
15508 wine_fn_config_program taskkill enable_taskkill install,po
15509 wine_fn_config_program taskmgr enable_taskmgr install,po
15510 wine_fn_config_program termsv enable_termsv install
15511 wine_fn_config_program uninstaller enable_uninstaller install,po
15512 wine_fn_config_program unlodctr enable_unlodctr install
15513 wine_fn_config_program view enable_view install,po
15514 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
15515 wine_fn_config_program winebrowser enable_winebrowser install
15516 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15517 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15518 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
15519 wine_fn_config_program winedevice enable_winedevice install
15520 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
15521 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15522 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
15523 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15524 wine_fn_config_program winepath enable_winepath install,installbin,manpage
15525 wine_fn_config_program winetest enable_winetest
15526 wine_fn_config_program winevdm enable_win16 install
15527 wine_fn_config_program winhelp.exe16 enable_win16 install
15528 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15529 wine_fn_config_program winoldap.mod16 enable_win16 install
15530 wine_fn_config_program winver enable_winver install
15531 wine_fn_config_program wmic enable_wmic install
15532 wine_fn_config_program wordpad enable_wordpad install,po
15533 wine_fn_config_program write enable_write install,po
15534 wine_fn_config_program wscript enable_wscript install
15535 wine_fn_config_test programs/wscript/tests wscript.exe_test
15536 wine_fn_config_program wusa enable_wusa install
15537 wine_fn_config_program xcopy enable_xcopy install,po
15538 wine_fn_config_makefile server enable_server install-lib,manpage
15539 wine_fn_config_tool tools install-dev,install-lib,manpage
15540 wine_fn_config_tool tools/widl install-dev,manpage
15541 wine_fn_config_tool tools/winebuild install-dev,manpage
15542 wine_fn_config_tool tools/winedump install-dev,manpage
15543 wine_fn_config_tool tools/winegcc install-dev,manpage
15544 wine_fn_config_tool tools/wmc install-dev,manpage
15545 wine_fn_config_tool tools/wrc install-dev,manpage
15547 LINGUAS="\
15548 ar \
15549 bg \
15550 ca \
15551 cs \
15552 da \
15553 de \
15554 el \
15555 en \
15556 en_US \
15557 eo \
15558 es \
15559 fa \
15560 fi \
15561 fr \
15562 he \
15563 hi \
15564 hu \
15565 it \
15566 ja \
15567 ko \
15568 lt \
15569 ml \
15570 nb_NO \
15571 nl \
15572 or \
15573 pa \
15574 pl \
15575 pt_BR \
15576 pt_PT \
15577 rm \
15578 ro \
15579 ru \
15580 sk \
15581 sl \
15582 sr_RS@cyrillic \
15583 sr_RS@latin \
15584 sv \
15585 te \
15586 th \
15587 tr \
15588 uk \
15589 wa \
15590 zh_CN \
15591 zh_TW"
15595 ac_config_commands="$ac_config_commands Makefile"
15598 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15602 if test "x$enable_maintainer_mode" = xyes
15603 then
15604 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15605 cd \$(srcdir) && autoconf --warnings=all
15606 \$(srcdir)/include/config.h.in: include/stamp-h.in
15607 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15608 cd \$(srcdir) && autoheader --warnings=all
15609 @echo timestamp > \$@"
15612 if test "x$with_gettextpo" = xyes
15613 then
15614 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15615 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15616 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
15617 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15618 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15619 msgcat -o \$@ \$(ALL_POT_FILES)"
15622 if test "$MSGFMT" != false
15623 then
15624 PORCFLAGS="--po-dir=\$(top_builddir)/po"
15626 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
15627 else
15628 LINGUAS=
15631 if test "x$enable_tools" != xno
15632 then
15633 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15634 clean:: __clean__
15635 \$(RM) tools/makedep\$(EXEEXT)"
15638 if test -n "$with_wine64"
15639 then
15640 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15641 fonts server tools:
15642 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15643 $with_wine64/loader/wine:
15644 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15645 $with_wine64/loader/wine-preloader:
15646 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15647 clean::
15648 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15651 cat >confcache <<\_ACEOF
15652 # This file is a shell script that caches the results of configure
15653 # tests run on this system so they can be shared between configure
15654 # scripts and configure runs, see configure's option --config-cache.
15655 # It is not useful on other systems. If it contains results you don't
15656 # want to keep, you may remove or edit it.
15658 # config.status only pays attention to the cache file if you give it
15659 # the --recheck option to rerun configure.
15661 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15662 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15663 # following values.
15665 _ACEOF
15667 # The following way of writing the cache mishandles newlines in values,
15668 # but we know of no workaround that is simple, portable, and efficient.
15669 # So, we kill variables containing newlines.
15670 # Ultrix sh set writes to stderr and can't be redirected directly,
15671 # and sets the high bit in the cache file unless we assign to the vars.
15673 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15674 eval ac_val=\$$ac_var
15675 case $ac_val in #(
15676 *${as_nl}*)
15677 case $ac_var in #(
15678 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15679 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15680 esac
15681 case $ac_var in #(
15682 _ | IFS | as_nl) ;; #(
15683 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15684 *) { eval $ac_var=; unset $ac_var;} ;;
15685 esac ;;
15686 esac
15687 done
15689 (set) 2>&1 |
15690 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15691 *${as_nl}ac_space=\ *)
15692 # `set' does not quote correctly, so add quotes: double-quote
15693 # substitution turns \\\\ into \\, and sed turns \\ into \.
15694 sed -n \
15695 "s/'/'\\\\''/g;
15696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15697 ;; #(
15699 # `set' quotes correctly as required by POSIX, so do not add quotes.
15700 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15702 esac |
15703 sort
15705 sed '
15706 /^ac_cv_env_/b end
15707 t clear
15708 :clear
15709 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15710 t end
15711 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15712 :end' >>confcache
15713 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15714 if test -w "$cache_file"; then
15715 if test "x$cache_file" != "x/dev/null"; then
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15717 $as_echo "$as_me: updating cache $cache_file" >&6;}
15718 if test ! -f "$cache_file" || test -h "$cache_file"; then
15719 cat confcache >"$cache_file"
15720 else
15721 case $cache_file in #(
15722 */* | ?:*)
15723 mv -f confcache "$cache_file"$$ &&
15724 mv -f "$cache_file"$$ "$cache_file" ;; #(
15726 mv -f confcache "$cache_file" ;;
15727 esac
15730 else
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15732 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15735 rm -f confcache
15737 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15738 # Let make expand exec_prefix.
15739 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15741 DEFS=-DHAVE_CONFIG_H
15743 ac_libobjs=
15744 ac_ltlibobjs=
15746 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15747 # 1. Remove the extension, and $U if already installed.
15748 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15749 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15750 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15751 # will be set to the directory where LIBOBJS objects are built.
15752 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15753 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15754 done
15755 LIBOBJS=$ac_libobjs
15757 LTLIBOBJS=$ac_ltlibobjs
15761 : "${CONFIG_STATUS=./config.status}"
15762 ac_write_fail=0
15763 ac_clean_files_save=$ac_clean_files
15764 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15766 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15767 as_write_fail=0
15768 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15769 #! $SHELL
15770 # Generated by $as_me.
15771 # Run this file to recreate the current configuration.
15772 # Compiler output produced by configure, useful for debugging
15773 # configure, is in config.log if it exists.
15775 debug=false
15776 ac_cs_recheck=false
15777 ac_cs_silent=false
15779 SHELL=\${CONFIG_SHELL-$SHELL}
15780 export SHELL
15781 _ASEOF
15782 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15783 ## -------------------- ##
15784 ## M4sh Initialization. ##
15785 ## -------------------- ##
15787 # Be more Bourne compatible
15788 DUALCASE=1; export DUALCASE # for MKS sh
15789 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15790 emulate sh
15791 NULLCMD=:
15792 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15793 # is contrary to our usage. Disable this feature.
15794 alias -g '${1+"$@"}'='"$@"'
15795 setopt NO_GLOB_SUBST
15796 else
15797 case `(set -o) 2>/dev/null` in #(
15798 *posix*) :
15799 set -o posix ;; #(
15800 *) :
15802 esac
15806 as_nl='
15808 export as_nl
15809 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15810 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15811 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15812 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15813 # Prefer a ksh shell builtin over an external printf program on Solaris,
15814 # but without wasting forks for bash or zsh.
15815 if test -z "$BASH_VERSION$ZSH_VERSION" \
15816 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15817 as_echo='print -r --'
15818 as_echo_n='print -rn --'
15819 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15820 as_echo='printf %s\n'
15821 as_echo_n='printf %s'
15822 else
15823 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15824 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15825 as_echo_n='/usr/ucb/echo -n'
15826 else
15827 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15828 as_echo_n_body='eval
15829 arg=$1;
15830 case $arg in #(
15831 *"$as_nl"*)
15832 expr "X$arg" : "X\\(.*\\)$as_nl";
15833 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15834 esac;
15835 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15837 export as_echo_n_body
15838 as_echo_n='sh -c $as_echo_n_body as_echo'
15840 export as_echo_body
15841 as_echo='sh -c $as_echo_body as_echo'
15844 # The user is always right.
15845 if test "${PATH_SEPARATOR+set}" != set; then
15846 PATH_SEPARATOR=:
15847 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15848 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15849 PATH_SEPARATOR=';'
15854 # IFS
15855 # We need space, tab and new line, in precisely that order. Quoting is
15856 # there to prevent editors from complaining about space-tab.
15857 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15858 # splitting by setting IFS to empty value.)
15859 IFS=" "" $as_nl"
15861 # Find who we are. Look in the path if we contain no directory separator.
15862 as_myself=
15863 case $0 in #((
15864 *[\\/]* ) as_myself=$0 ;;
15865 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15866 for as_dir in $PATH
15868 IFS=$as_save_IFS
15869 test -z "$as_dir" && as_dir=.
15870 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15871 done
15872 IFS=$as_save_IFS
15875 esac
15876 # We did not find ourselves, most probably we were run as `sh COMMAND'
15877 # in which case we are not to be found in the path.
15878 if test "x$as_myself" = x; then
15879 as_myself=$0
15881 if test ! -f "$as_myself"; then
15882 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15883 exit 1
15886 # Unset variables that we do not need and which cause bugs (e.g. in
15887 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15888 # suppresses any "Segmentation fault" message there. '((' could
15889 # trigger a bug in pdksh 5.2.14.
15890 for as_var in BASH_ENV ENV MAIL MAILPATH
15891 do eval test x\${$as_var+set} = xset \
15892 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15893 done
15894 PS1='$ '
15895 PS2='> '
15896 PS4='+ '
15898 # NLS nuisances.
15899 LC_ALL=C
15900 export LC_ALL
15901 LANGUAGE=C
15902 export LANGUAGE
15904 # CDPATH.
15905 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15908 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15909 # ----------------------------------------
15910 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15911 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15912 # script with STATUS, using 1 if that was 0.
15913 as_fn_error ()
15915 as_status=$1; test $as_status -eq 0 && as_status=1
15916 if test "$4"; then
15917 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15918 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15920 $as_echo "$as_me: error: $2" >&2
15921 as_fn_exit $as_status
15922 } # as_fn_error
15925 # as_fn_set_status STATUS
15926 # -----------------------
15927 # Set $? to STATUS, without forking.
15928 as_fn_set_status ()
15930 return $1
15931 } # as_fn_set_status
15933 # as_fn_exit STATUS
15934 # -----------------
15935 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15936 as_fn_exit ()
15938 set +e
15939 as_fn_set_status $1
15940 exit $1
15941 } # as_fn_exit
15943 # as_fn_unset VAR
15944 # ---------------
15945 # Portably unset VAR.
15946 as_fn_unset ()
15948 { eval $1=; unset $1;}
15950 as_unset=as_fn_unset
15951 # as_fn_append VAR VALUE
15952 # ----------------------
15953 # Append the text in VALUE to the end of the definition contained in VAR. Take
15954 # advantage of any shell optimizations that allow amortized linear growth over
15955 # repeated appends, instead of the typical quadratic growth present in naive
15956 # implementations.
15957 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15958 eval 'as_fn_append ()
15960 eval $1+=\$2
15962 else
15963 as_fn_append ()
15965 eval $1=\$$1\$2
15967 fi # as_fn_append
15969 # as_fn_arith ARG...
15970 # ------------------
15971 # Perform arithmetic evaluation on the ARGs, and store the result in the
15972 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15973 # must be portable across $(()) and expr.
15974 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15975 eval 'as_fn_arith ()
15977 as_val=$(( $* ))
15979 else
15980 as_fn_arith ()
15982 as_val=`expr "$@" || test $? -eq 1`
15984 fi # as_fn_arith
15987 if expr a : '\(a\)' >/dev/null 2>&1 &&
15988 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15989 as_expr=expr
15990 else
15991 as_expr=false
15994 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15995 as_basename=basename
15996 else
15997 as_basename=false
16000 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16001 as_dirname=dirname
16002 else
16003 as_dirname=false
16006 as_me=`$as_basename -- "$0" ||
16007 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16008 X"$0" : 'X\(//\)$' \| \
16009 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16010 $as_echo X/"$0" |
16011 sed '/^.*\/\([^/][^/]*\)\/*$/{
16012 s//\1/
16015 /^X\/\(\/\/\)$/{
16016 s//\1/
16019 /^X\/\(\/\).*/{
16020 s//\1/
16023 s/.*/./; q'`
16025 # Avoid depending upon Character Ranges.
16026 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16027 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16028 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16029 as_cr_digits='0123456789'
16030 as_cr_alnum=$as_cr_Letters$as_cr_digits
16032 ECHO_C= ECHO_N= ECHO_T=
16033 case `echo -n x` in #(((((
16034 -n*)
16035 case `echo 'xy\c'` in
16036 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16037 xy) ECHO_C='\c';;
16038 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16039 ECHO_T=' ';;
16040 esac;;
16042 ECHO_N='-n';;
16043 esac
16045 rm -f conf$$ conf$$.exe conf$$.file
16046 if test -d conf$$.dir; then
16047 rm -f conf$$.dir/conf$$.file
16048 else
16049 rm -f conf$$.dir
16050 mkdir conf$$.dir 2>/dev/null
16052 if (echo >conf$$.file) 2>/dev/null; then
16053 if ln -s conf$$.file conf$$ 2>/dev/null; then
16054 as_ln_s='ln -s'
16055 # ... but there are two gotchas:
16056 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16057 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16058 # In both cases, we have to default to `cp -p'.
16059 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16060 as_ln_s='cp -p'
16061 elif ln conf$$.file conf$$ 2>/dev/null; then
16062 as_ln_s=ln
16063 else
16064 as_ln_s='cp -p'
16066 else
16067 as_ln_s='cp -p'
16069 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16070 rmdir conf$$.dir 2>/dev/null
16073 # as_fn_mkdir_p
16074 # -------------
16075 # Create "$as_dir" as a directory, including parents if necessary.
16076 as_fn_mkdir_p ()
16079 case $as_dir in #(
16080 -*) as_dir=./$as_dir;;
16081 esac
16082 test -d "$as_dir" || eval $as_mkdir_p || {
16083 as_dirs=
16084 while :; do
16085 case $as_dir in #(
16086 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16087 *) as_qdir=$as_dir;;
16088 esac
16089 as_dirs="'$as_qdir' $as_dirs"
16090 as_dir=`$as_dirname -- "$as_dir" ||
16091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16092 X"$as_dir" : 'X\(//\)[^/]' \| \
16093 X"$as_dir" : 'X\(//\)$' \| \
16094 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16095 $as_echo X"$as_dir" |
16096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16097 s//\1/
16100 /^X\(\/\/\)[^/].*/{
16101 s//\1/
16104 /^X\(\/\/\)$/{
16105 s//\1/
16108 /^X\(\/\).*/{
16109 s//\1/
16112 s/.*/./; q'`
16113 test -d "$as_dir" && break
16114 done
16115 test -z "$as_dirs" || eval "mkdir $as_dirs"
16116 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16119 } # as_fn_mkdir_p
16120 if mkdir -p . 2>/dev/null; then
16121 as_mkdir_p='mkdir -p "$as_dir"'
16122 else
16123 test -d ./-p && rmdir ./-p
16124 as_mkdir_p=false
16127 if test -x / >/dev/null 2>&1; then
16128 as_test_x='test -x'
16129 else
16130 if ls -dL / >/dev/null 2>&1; then
16131 as_ls_L_option=L
16132 else
16133 as_ls_L_option=
16135 as_test_x='
16136 eval sh -c '\''
16137 if test -d "$1"; then
16138 test -d "$1/.";
16139 else
16140 case $1 in #(
16141 -*)set "./$1";;
16142 esac;
16143 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16144 ???[sx]*):;;*)false;;esac;fi
16145 '\'' sh
16148 as_executable_p=$as_test_x
16150 # Sed expression to map a string onto a valid CPP name.
16151 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16153 # Sed expression to map a string onto a valid variable name.
16154 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16157 exec 6>&1
16158 ## ----------------------------------- ##
16159 ## Main body of $CONFIG_STATUS script. ##
16160 ## ----------------------------------- ##
16161 _ASEOF
16162 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16165 # Save the log message, to keep $0 and so on meaningful, and to
16166 # report actual input values of CONFIG_FILES etc. instead of their
16167 # values after options handling.
16168 ac_log="
16169 This file was extended by Wine $as_me 1.5.3, which was
16170 generated by GNU Autoconf 2.68. Invocation command line was
16172 CONFIG_FILES = $CONFIG_FILES
16173 CONFIG_HEADERS = $CONFIG_HEADERS
16174 CONFIG_LINKS = $CONFIG_LINKS
16175 CONFIG_COMMANDS = $CONFIG_COMMANDS
16176 $ $0 $@
16178 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16181 _ACEOF
16183 case $ac_config_files in *"
16184 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16185 esac
16187 case $ac_config_headers in *"
16188 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16189 esac
16192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16193 # Files that config.status was made for.
16194 config_files="$ac_config_files"
16195 config_headers="$ac_config_headers"
16196 config_links="$ac_config_links"
16197 config_commands="$ac_config_commands"
16199 _ACEOF
16201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16202 ac_cs_usage="\
16203 \`$as_me' instantiates files and other configuration actions
16204 from templates according to the current configuration. Unless the files
16205 and actions are specified as TAGs, all are instantiated by default.
16207 Usage: $0 [OPTION]... [TAG]...
16209 -h, --help print this help, then exit
16210 -V, --version print version number and configuration settings, then exit
16211 --config print configuration, then exit
16212 -q, --quiet, --silent
16213 do not print progress messages
16214 -d, --debug don't remove temporary files
16215 --recheck update $as_me by reconfiguring in the same conditions
16216 --file=FILE[:TEMPLATE]
16217 instantiate the configuration file FILE
16218 --header=FILE[:TEMPLATE]
16219 instantiate the configuration header FILE
16221 Configuration files:
16222 $config_files
16224 Configuration headers:
16225 $config_headers
16227 Configuration links:
16228 $config_links
16230 Configuration commands:
16231 $config_commands
16233 Report bugs to <wine-devel@winehq.org>.
16234 Wine home page: <http://www.winehq.org>."
16236 _ACEOF
16237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16238 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16239 ac_cs_version="\\
16240 Wine config.status 1.5.3
16241 configured by $0, generated by GNU Autoconf 2.68,
16242 with options \\"\$ac_cs_config\\"
16244 Copyright (C) 2010 Free Software Foundation, Inc.
16245 This config.status script is free software; the Free Software Foundation
16246 gives unlimited permission to copy, distribute and modify it."
16248 ac_pwd='$ac_pwd'
16249 srcdir='$srcdir'
16250 INSTALL='$INSTALL'
16251 test -n "\$AWK" || AWK=awk
16252 _ACEOF
16254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16255 # The default lists apply if the user does not specify any file.
16256 ac_need_defaults=:
16257 while test $# != 0
16259 case $1 in
16260 --*=?*)
16261 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16262 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16263 ac_shift=:
16265 --*=)
16266 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16267 ac_optarg=
16268 ac_shift=:
16271 ac_option=$1
16272 ac_optarg=$2
16273 ac_shift=shift
16275 esac
16277 case $ac_option in
16278 # Handling of the options.
16279 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16280 ac_cs_recheck=: ;;
16281 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16282 $as_echo "$ac_cs_version"; exit ;;
16283 --config | --confi | --conf | --con | --co | --c )
16284 $as_echo "$ac_cs_config"; exit ;;
16285 --debug | --debu | --deb | --de | --d | -d )
16286 debug=: ;;
16287 --file | --fil | --fi | --f )
16288 $ac_shift
16289 case $ac_optarg in
16290 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16291 '') as_fn_error $? "missing file argument" ;;
16292 esac
16293 as_fn_append CONFIG_FILES " '$ac_optarg'"
16294 ac_need_defaults=false;;
16295 --header | --heade | --head | --hea )
16296 $ac_shift
16297 case $ac_optarg in
16298 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16299 esac
16300 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16301 ac_need_defaults=false;;
16302 --he | --h)
16303 # Conflict between --help and --header
16304 as_fn_error $? "ambiguous option: \`$1'
16305 Try \`$0 --help' for more information.";;
16306 --help | --hel | -h )
16307 $as_echo "$ac_cs_usage"; exit ;;
16308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16309 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16310 ac_cs_silent=: ;;
16312 # This is an error.
16313 -*) as_fn_error $? "unrecognized option: \`$1'
16314 Try \`$0 --help' for more information." ;;
16316 *) as_fn_append ac_config_targets " $1"
16317 ac_need_defaults=false ;;
16319 esac
16320 shift
16321 done
16323 ac_configure_extra_args=
16325 if $ac_cs_silent; then
16326 exec 6>/dev/null
16327 ac_configure_extra_args="$ac_configure_extra_args --silent"
16330 _ACEOF
16331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16332 if \$ac_cs_recheck; then
16333 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16334 shift
16335 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16336 CONFIG_SHELL='$SHELL'
16337 export CONFIG_SHELL
16338 exec "\$@"
16341 _ACEOF
16342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16343 exec 5>>config.log
16345 echo
16346 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16347 ## Running $as_me. ##
16348 _ASBOX
16349 $as_echo "$ac_log"
16350 } >&5
16352 _ACEOF
16353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16355 # INIT-COMMANDS
16357 wine_fn_output_makefile ()
16359 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16360 $ALL_MAKEFILE_DEPENDS
16361 _WINE_EOF
16362 as_fn_error $? "could not create Makefile" "$LINENO" 5
16365 _ACEOF
16367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16369 # Handling of arguments.
16370 for ac_config_target in $ac_config_targets
16372 case $ac_config_target in
16373 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16374 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16375 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16376 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16377 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16378 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16379 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16380 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16381 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
16382 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16383 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16384 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16385 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16386 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16387 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16388 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16389 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16390 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16391 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16392 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16393 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16394 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16395 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16396 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16397 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16398 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16400 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16401 esac
16402 done
16405 # If the user did not use the arguments to specify the items to instantiate,
16406 # then the envvar interface is used. Set only those that are not.
16407 # We use the long form for the default assignment because of an extremely
16408 # bizarre bug on SunOS 4.1.3.
16409 if $ac_need_defaults; then
16410 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16411 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16412 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16413 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16416 # Have a temporary directory for convenience. Make it in the build tree
16417 # simply because there is no reason against having it here, and in addition,
16418 # creating and moving files from /tmp can sometimes cause problems.
16419 # Hook for its removal unless debugging.
16420 # Note that there is a small window in which the directory will not be cleaned:
16421 # after its creation but before its name has been assigned to `$tmp'.
16422 $debug ||
16424 tmp= ac_tmp=
16425 trap 'exit_status=$?
16426 : "${ac_tmp:=$tmp}"
16427 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16429 trap 'as_fn_exit 1' 1 2 13 15
16431 # Create a (secure) tmp directory for tmp files.
16434 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16435 test -d "$tmp"
16436 } ||
16438 tmp=./conf$$-$RANDOM
16439 (umask 077 && mkdir "$tmp")
16440 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16441 ac_tmp=$tmp
16443 # Set up the scripts for CONFIG_FILES section.
16444 # No need to generate them if there are no CONFIG_FILES.
16445 # This happens for instance with `./config.status config.h'.
16446 if test -n "$CONFIG_FILES"; then
16448 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16449 ac_cs_awk_getline=:
16450 ac_cs_awk_pipe_init=
16451 ac_cs_awk_read_file='
16452 while ((getline aline < (F[key])) > 0)
16453 print(aline)
16454 close(F[key])'
16455 ac_cs_awk_pipe_fini=
16456 else
16457 ac_cs_awk_getline=false
16458 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16459 ac_cs_awk_read_file='
16460 print "|#_!!_#|"
16461 print "cat " F[key] " &&"
16462 '$ac_cs_awk_pipe_init
16463 # The final `:' finishes the AND list.
16464 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16466 ac_cr=`echo X | tr X '\015'`
16467 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16468 # But we know of no other shell where ac_cr would be empty at this
16469 # point, so we can use a bashism as a fallback.
16470 if test "x$ac_cr" = x; then
16471 eval ac_cr=\$\'\\r\'
16473 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16474 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16475 ac_cs_awk_cr='\\r'
16476 else
16477 ac_cs_awk_cr=$ac_cr
16480 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16481 _ACEOF
16483 # Create commands to substitute file output variables.
16485 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16486 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16487 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16488 echo "_ACAWK" &&
16489 echo "_ACEOF"
16490 } >conf$$files.sh &&
16491 . ./conf$$files.sh ||
16492 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16493 rm -f conf$$files.sh
16496 echo "cat >conf$$subs.awk <<_ACEOF" &&
16497 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16498 echo "_ACEOF"
16499 } >conf$$subs.sh ||
16500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16501 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16502 ac_delim='%!_!# '
16503 for ac_last_try in false false false false false :; do
16504 . ./conf$$subs.sh ||
16505 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16507 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16508 if test $ac_delim_n = $ac_delim_num; then
16509 break
16510 elif $ac_last_try; then
16511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16512 else
16513 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16515 done
16516 rm -f conf$$subs.sh
16518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16519 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16520 _ACEOF
16521 sed -n '
16523 s/^/S["/; s/!.*/"]=/
16526 s/^[^!]*!//
16527 :repl
16528 t repl
16529 s/'"$ac_delim"'$//
16530 t delim
16533 s/\(.\{148\}\)..*/\1/
16534 t more1
16535 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16538 b repl
16539 :more1
16540 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16543 s/.\{148\}//
16544 t nl
16545 :delim
16547 s/\(.\{148\}\)..*/\1/
16548 t more2
16549 s/["\\]/\\&/g; s/^/"/; s/$/"/
16552 :more2
16553 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16556 s/.\{148\}//
16557 t delim
16558 ' <conf$$subs.awk | sed '
16559 /^[^""]/{
16561 s/\n//
16563 ' >>$CONFIG_STATUS || ac_write_fail=1
16564 rm -f conf$$subs.awk
16565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16566 _ACAWK
16567 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16568 for (key in S) S_is_set[key] = 1
16569 FS = "\a"
16570 \$ac_cs_awk_pipe_init
16573 line = $ 0
16574 nfields = split(line, field, "@")
16575 substed = 0
16576 len = length(field[1])
16577 for (i = 2; i < nfields; i++) {
16578 key = field[i]
16579 keylen = length(key)
16580 if (S_is_set[key]) {
16581 value = S[key]
16582 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16583 len += length(value) + length(field[++i])
16584 substed = 1
16585 } else
16586 len += 1 + keylen
16588 if (nfields == 3 && !substed) {
16589 key = field[2]
16590 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16591 \$ac_cs_awk_read_file
16592 next
16595 print line
16597 \$ac_cs_awk_pipe_fini
16598 _ACAWK
16599 _ACEOF
16600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16601 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16602 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16603 else
16605 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16606 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16607 _ACEOF
16609 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16610 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16611 # trailing colons and then remove the whole line if VPATH becomes empty
16612 # (actually we leave an empty line to preserve line numbers).
16613 if test "x$srcdir" = x.; then
16614 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16616 s///
16617 s/^/:/
16618 s/[ ]*$/:/
16619 s/:\$(srcdir):/:/g
16620 s/:\${srcdir}:/:/g
16621 s/:@srcdir@:/:/g
16622 s/^:*//
16623 s/:*$//
16625 s/\(=[ ]*\).*/\1/
16627 s/\n//
16628 s/^[^=]*=[ ]*$//
16632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16633 fi # test -n "$CONFIG_FILES"
16635 # Set up the scripts for CONFIG_HEADERS section.
16636 # No need to generate them if there are no CONFIG_HEADERS.
16637 # This happens for instance with `./config.status Makefile'.
16638 if test -n "$CONFIG_HEADERS"; then
16639 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16640 BEGIN {
16641 _ACEOF
16643 # Transform confdefs.h into an awk script `defines.awk', embedded as
16644 # here-document in config.status, that substitutes the proper values into
16645 # config.h.in to produce config.h.
16647 # Create a delimiter string that does not exist in confdefs.h, to ease
16648 # handling of long lines.
16649 ac_delim='%!_!# '
16650 for ac_last_try in false false :; do
16651 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16652 if test -z "$ac_tt"; then
16653 break
16654 elif $ac_last_try; then
16655 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16656 else
16657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16659 done
16661 # For the awk script, D is an array of macro values keyed by name,
16662 # likewise P contains macro parameters if any. Preserve backslash
16663 # newline sequences.
16665 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16666 sed -n '
16667 s/.\{148\}/&'"$ac_delim"'/g
16668 t rset
16669 :rset
16670 s/^[ ]*#[ ]*define[ ][ ]*/ /
16671 t def
16673 :def
16674 s/\\$//
16675 t bsnl
16676 s/["\\]/\\&/g
16677 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16678 D["\1"]=" \3"/p
16679 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16681 :bsnl
16682 s/["\\]/\\&/g
16683 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16684 D["\1"]=" \3\\\\\\n"\\/p
16685 t cont
16686 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16687 t cont
16689 :cont
16691 s/.\{148\}/&'"$ac_delim"'/g
16692 t clear
16693 :clear
16694 s/\\$//
16695 t bsnlc
16696 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16698 :bsnlc
16699 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16700 b cont
16701 ' <confdefs.h | sed '
16702 s/'"$ac_delim"'/"\\\
16703 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16706 for (key in D) D_is_set[key] = 1
16707 FS = "\a"
16709 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16710 line = \$ 0
16711 split(line, arg, " ")
16712 if (arg[1] == "#") {
16713 defundef = arg[2]
16714 mac1 = arg[3]
16715 } else {
16716 defundef = substr(arg[1], 2)
16717 mac1 = arg[2]
16719 split(mac1, mac2, "(") #)
16720 macro = mac2[1]
16721 prefix = substr(line, 1, index(line, defundef) - 1)
16722 if (D_is_set[macro]) {
16723 # Preserve the white space surrounding the "#".
16724 print prefix "define", macro P[macro] D[macro]
16725 next
16726 } else {
16727 # Replace #undef with comments. This is necessary, for example,
16728 # in the case of _POSIX_SOURCE, which is predefined and required
16729 # on some systems where configure will not decide to define it.
16730 if (defundef == "undef") {
16731 print "/*", prefix defundef, macro, "*/"
16732 next
16736 { print }
16737 _ACAWK
16738 _ACEOF
16739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16740 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16741 fi # test -n "$CONFIG_HEADERS"
16744 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16745 shift
16746 for ac_tag
16748 case $ac_tag in
16749 :[FHLC]) ac_mode=$ac_tag; continue;;
16750 esac
16751 case $ac_mode$ac_tag in
16752 :[FHL]*:*);;
16753 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16754 :[FH]-) ac_tag=-:-;;
16755 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16756 esac
16757 ac_save_IFS=$IFS
16758 IFS=:
16759 set x $ac_tag
16760 IFS=$ac_save_IFS
16761 shift
16762 ac_file=$1
16763 shift
16765 case $ac_mode in
16766 :L) ac_source=$1;;
16767 :[FH])
16768 ac_file_inputs=
16769 for ac_f
16771 case $ac_f in
16772 -) ac_f="$ac_tmp/stdin";;
16773 *) # Look for the file first in the build tree, then in the source tree
16774 # (if the path is not absolute). The absolute path cannot be DOS-style,
16775 # because $ac_f cannot contain `:'.
16776 test -f "$ac_f" ||
16777 case $ac_f in
16778 [\\/$]*) false;;
16779 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16780 esac ||
16781 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16782 esac
16783 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16784 as_fn_append ac_file_inputs " '$ac_f'"
16785 done
16787 # Let's still pretend it is `configure' which instantiates (i.e., don't
16788 # use $as_me), people would be surprised to read:
16789 # /* config.h. Generated by config.status. */
16790 configure_input='Generated from '`
16791 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16792 `' by configure.'
16793 if test x"$ac_file" != x-; then
16794 configure_input="$ac_file. $configure_input"
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16796 $as_echo "$as_me: creating $ac_file" >&6;}
16798 # Neutralize special characters interpreted by sed in replacement strings.
16799 case $configure_input in #(
16800 *\&* | *\|* | *\\* )
16801 ac_sed_conf_input=`$as_echo "$configure_input" |
16802 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16803 *) ac_sed_conf_input=$configure_input;;
16804 esac
16806 case $ac_tag in
16807 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16808 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16809 esac
16811 esac
16813 ac_dir=`$as_dirname -- "$ac_file" ||
16814 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16815 X"$ac_file" : 'X\(//\)[^/]' \| \
16816 X"$ac_file" : 'X\(//\)$' \| \
16817 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16818 $as_echo X"$ac_file" |
16819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16820 s//\1/
16823 /^X\(\/\/\)[^/].*/{
16824 s//\1/
16827 /^X\(\/\/\)$/{
16828 s//\1/
16831 /^X\(\/\).*/{
16832 s//\1/
16835 s/.*/./; q'`
16836 as_dir="$ac_dir"; as_fn_mkdir_p
16837 ac_builddir=.
16839 case "$ac_dir" in
16840 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16842 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16843 # A ".." for each directory in $ac_dir_suffix.
16844 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16845 case $ac_top_builddir_sub in
16846 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16847 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16848 esac ;;
16849 esac
16850 ac_abs_top_builddir=$ac_pwd
16851 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16852 # for backward compatibility:
16853 ac_top_builddir=$ac_top_build_prefix
16855 case $srcdir in
16856 .) # We are building in place.
16857 ac_srcdir=.
16858 ac_top_srcdir=$ac_top_builddir_sub
16859 ac_abs_top_srcdir=$ac_pwd ;;
16860 [\\/]* | ?:[\\/]* ) # Absolute name.
16861 ac_srcdir=$srcdir$ac_dir_suffix;
16862 ac_top_srcdir=$srcdir
16863 ac_abs_top_srcdir=$srcdir ;;
16864 *) # Relative name.
16865 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16866 ac_top_srcdir=$ac_top_build_prefix$srcdir
16867 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16868 esac
16869 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16872 case $ac_mode in
16875 # CONFIG_FILE
16878 case $INSTALL in
16879 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16880 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16881 esac
16882 _ACEOF
16884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16885 # If the template does not know about datarootdir, expand it.
16886 # FIXME: This hack should be removed a few years after 2.60.
16887 ac_datarootdir_hack=; ac_datarootdir_seen=
16888 ac_sed_dataroot='
16889 /datarootdir/ {
16893 /@datadir@/p
16894 /@docdir@/p
16895 /@infodir@/p
16896 /@localedir@/p
16897 /@mandir@/p'
16898 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16899 *datarootdir*) ac_datarootdir_seen=yes;;
16900 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16902 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16903 _ACEOF
16904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16905 ac_datarootdir_hack='
16906 s&@datadir@&$datadir&g
16907 s&@docdir@&$docdir&g
16908 s&@infodir@&$infodir&g
16909 s&@localedir@&$localedir&g
16910 s&@mandir@&$mandir&g
16911 s&\\\${datarootdir}&$datarootdir&g' ;;
16912 esac
16913 _ACEOF
16915 # Neutralize VPATH when `$srcdir' = `.'.
16916 # Shell code in configure.ac might set extrasub.
16917 # FIXME: do we really want to maintain this feature?
16918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16919 ac_sed_extra="$ac_vpsub
16920 $extrasub
16921 _ACEOF
16922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16925 s|@configure_input@|$ac_sed_conf_input|;t t
16926 s&@top_builddir@&$ac_top_builddir_sub&;t t
16927 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16928 s&@srcdir@&$ac_srcdir&;t t
16929 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16930 s&@top_srcdir@&$ac_top_srcdir&;t t
16931 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16932 s&@builddir@&$ac_builddir&;t t
16933 s&@abs_builddir@&$ac_abs_builddir&;t t
16934 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16935 s&@INSTALL@&$ac_INSTALL&;t t
16936 $ac_datarootdir_hack
16938 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16939 if $ac_cs_awk_getline; then
16940 $AWK -f "$ac_tmp/subs.awk"
16941 else
16942 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16943 fi \
16944 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16946 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16947 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16948 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16949 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16951 which seems to be undefined. Please make sure it is defined" >&5
16952 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16953 which seems to be undefined. Please make sure it is defined" >&2;}
16955 rm -f "$ac_tmp/stdin"
16956 case $ac_file in
16957 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16958 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16959 esac \
16960 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16964 # CONFIG_HEADER
16966 if test x"$ac_file" != x-; then
16968 $as_echo "/* $configure_input */" \
16969 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16970 } >"$ac_tmp/config.h" \
16971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16972 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16974 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16975 else
16976 rm -f "$ac_file"
16977 mv "$ac_tmp/config.h" "$ac_file" \
16978 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16980 else
16981 $as_echo "/* $configure_input */" \
16982 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16983 || as_fn_error $? "could not create -" "$LINENO" 5
16988 # CONFIG_LINK
16991 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16993 else
16994 # Prefer the file from the source tree if names are identical.
16995 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16996 ac_source=$srcdir/$ac_source
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17000 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17002 if test ! -r "$ac_source"; then
17003 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17005 rm -f "$ac_file"
17007 # Try a relative symlink, then a hard link, then a copy.
17008 case $ac_source in
17009 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17010 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17011 esac
17012 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17013 ln "$ac_source" "$ac_file" 2>/dev/null ||
17014 cp -p "$ac_source" "$ac_file" ||
17015 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17018 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17019 $as_echo "$as_me: executing $ac_file commands" >&6;}
17021 esac
17024 case $ac_file$ac_mode in
17025 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17026 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17027 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17028 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17029 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17030 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17031 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17032 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17033 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17034 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17035 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17036 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17037 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17038 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17039 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17040 "Makefile":C) wine_fn_output_makefile Makefile ;;
17042 esac
17043 done # for ac_tag
17046 as_fn_exit 0
17047 _ACEOF
17048 ac_clean_files=$ac_clean_files_save
17050 test $ac_write_fail = 0 ||
17051 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17054 # configure is writing to config.log, and then calls config.status.
17055 # config.status does its own redirection, appending to config.log.
17056 # Unfortunately, on DOS this fails, as config.log is still kept open
17057 # by configure, so config.status won't be able to write to it; its
17058 # output is simply discarded. So we exec the FD to /dev/null,
17059 # effectively closing config.log, so it can be properly (re)opened and
17060 # appended to by config.status. When coming back to configure, we
17061 # need to make the FD available again.
17062 if test "$no_create" != yes; then
17063 ac_cs_success=:
17064 ac_config_status_args=
17065 test "$silent" = yes &&
17066 ac_config_status_args="$ac_config_status_args --quiet"
17067 exec 5>/dev/null
17068 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17069 exec 5>>config.log
17070 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17071 # would make configure fail if this is the last instruction.
17072 $ac_cs_success || as_fn_exit 1
17074 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17076 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17080 if test "$no_create" = "yes"
17081 then
17082 exit 0
17085 ac_save_IFS="$IFS"
17086 if test "x$wine_notices != "x; then
17087 echo >&6
17088 IFS="|"
17089 for msg in $wine_notices; do
17090 IFS="$ac_save_IFS"
17091 if test -n "$msg"; then
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17093 $as_echo "$as_me: $msg" >&6;}
17095 done
17097 IFS="|"
17098 for msg in $wine_warnings; do
17099 IFS="$ac_save_IFS"
17100 if test -n "$msg"; then
17101 echo >&2
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17103 $as_echo "$as_me: WARNING: $msg" >&2;}
17105 done
17106 IFS="$ac_save_IFS"
17108 echo "
17109 $as_me: Finished. Do '${ac_make}' to compile Wine.
17110 " >&6