push ae213db8a0a10274c7ff1cf3fe2cc79b8605f44c
[wine/hacks.git] / configure
blob8d7532df1caf51644fb4fb4e1cb19fe8da5cd370
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Wine 1.2-rc2.
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 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: wine-devel@winehq.org about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='Wine'
554 PACKAGE_TARNAME='wine'
555 PACKAGE_VERSION='1.2-rc2'
556 PACKAGE_STRING='Wine 1.2-rc2'
557 PACKAGE_BUGREPORT='wine-devel@winehq.org'
558 PACKAGE_URL='http://www.winehq.org'
560 ac_unique_file="server/atom.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 ALL_TEST_BINARIES
600 ALL_WINETEST_DEPENDS
601 LDAPLIBS
602 LIBPOLL
603 LIBDL
604 EXTRA_BINARIES
605 MAIN_BINARY
606 SOCKETLIBS
607 CRTLIBS
608 TOOLSEXT
609 LDPATH
610 UNWINDFLAGS
611 BUILTINFLAG
612 EXTRACFLAGS
613 LIBKSTAT
614 LIBOPENAL
615 LIBMPG123
616 PNGINCL
617 FONTCONFIGINCL
618 CUPSINCL
619 AUDIOIOLIBS
620 ALSALIBS
621 PULSECFLAGS
622 PULSELIBS
623 ESDLIBS
624 ESDINCL
625 ESDCONFIG
626 ZLIB
627 FREETYPEINCL
628 FREETYPELIBS
629 ft_devel
630 LCMSLIBS
631 RESOLVLIBS
632 GPHOTO2INCL
633 GPHOTO2LIBS
634 gphoto2port_devel
635 gphoto2_devel
636 SANEINCL
637 sane_devel
638 GNUTLSINCL
639 HALINCL
640 XSLTINCL
641 XML2INCL
642 XML2LIBS
643 NASLIBS
644 X_EXTRA_LIBS
645 X_LIBS
646 X_PRE_LIBS
647 X_CFLAGS
648 XMKMF
649 LIBPTHREAD
650 CROSSTARGET
651 CROSSTEST
652 CROSSCC
653 CARBONLIB
654 FRAMEWORK_OPENAL
655 COREAUDIO
656 DISKARBITRATIONLIB
657 LDEXECFLAGS
658 IOKITLIB
659 COREFOUNDATIONLIB
660 SECURITYLIB
661 DLLWRAP
662 DLLTOOL
664 LDRPATH_LOCAL
665 LDRPATH_INSTALL
666 IMPLIBEXT
667 LIBEXT
668 LDDLLFLAGS
669 LDSHARED
670 DLLFLAGS
671 DLLEXT
673 OPENGL_LIBS
674 XLIB
675 PRELINK
676 MAINTAINER_MODE
677 ICOTOOL
678 CONVERT
679 RSVG
680 PKG_CONFIG
681 FONTFORGE
682 LINTFLAGS
683 LINT
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 LDCONFIG
688 EGREP
689 GREP
690 LN_S
691 STRIP
692 RANLIB
693 ARFLAGS
694 ac_ct_AR
696 BISON
697 FLEX
698 TOOLSDIR
699 WOW64_DISABLE
700 TARGETFLAGS
701 CPPBIN
702 ac_ct_CXX
703 CXXFLAGS
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
712 SET_MAKE
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files='MAKE_RULES
760 MAKE_TEST_RULES
761 MAKE_DLL_RULES
762 MAKE_IMPLIB_RULES
763 MAKE_PROG_RULES'
764 ac_user_opts='
765 enable_option_checking
766 enable_win16
767 enable_win64
768 enable_tests
769 enable_maintainer_mode
770 with_alsa
771 with_audioio
772 with_capi
773 with_cms
774 with_coreaudio
775 with_cups
776 with_curses
777 with_esd
778 with_fontconfig
779 with_freetype
780 with_gphoto
781 with_glu
782 with_gnutls
783 with_gsm
784 with_hal
785 with_jack
786 with_jpeg
787 with_ldap
788 with_mpg123
789 with_nas
790 with_openal
791 with_opengl
792 with_openssl
793 with_oss
794 with_png
795 with_pthread
796 with_pulse
797 with_sane
798 with_tiff
799 with_v4l
800 with_xcomposite
801 with_xcursor
802 with_xinerama
803 with_xinput
804 with_xml
805 with_xrandr
806 with_xrender
807 with_xshape
808 with_xshm
809 with_xslt
810 with_xxf86vm
811 with_wine_tools
812 with_wine64
813 enable_largefile
814 with_x
816 ac_precious_vars='build_alias
817 host_alias
818 target_alias
820 CFLAGS
821 LDFLAGS
822 LIBS
823 CPPFLAGS
825 CXXFLAGS
828 XMKMF'
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
879 ac_prev=
880 ac_dashdash=
881 for ac_option
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
890 case $ac_option in
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *) ac_optarg=yes ;;
893 esac
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
899 ac_dashdash=yes ;;
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 bindir=$ac_optarg ;;
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
918 --config-cache | -C)
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
922 ac_prev=datadir ;;
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=no ;;
949 -docdir | --docdir | --docdi | --doc | --do)
950 ac_prev=docdir ;;
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 docdir=$ac_optarg ;;
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 ac_prev=dvidir ;;
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 dvidir=$ac_optarg ;;
959 -enable-* | --enable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=\$ac_optarg ;;
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
982 exec_prefix=$ac_optarg ;;
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
986 with_gas=yes ;;
988 -help | --help | --hel | --he | -h)
989 ac_init_help=long ;;
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
995 -host | --host | --hos | --ho)
996 ac_prev=host_alias ;;
997 -host=* | --host=* | --hos=* | --ho=*)
998 host_alias=$ac_optarg ;;
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 ac_prev=htmldir ;;
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 | --ht=*)
1004 htmldir=$ac_optarg ;;
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
1011 includedir=$ac_optarg ;;
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 ac_prev=infodir ;;
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016 infodir=$ac_optarg ;;
1018 -libdir | --libdir | --libdi | --libd)
1019 ac_prev=libdir ;;
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021 libdir=$ac_optarg ;;
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
1028 libexecdir=$ac_optarg ;;
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
1036 | --localstate | --localstat | --localsta | --localst | --locals)
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040 localstatedir=$ac_optarg ;;
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 ac_prev=mandir ;;
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045 mandir=$ac_optarg ;;
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1049 with_fp=no ;;
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052 | --no-cr | --no-c | -n)
1053 no_create=yes ;;
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 no_recursion=yes ;;
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066 oldincludedir=$ac_optarg ;;
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 ac_prev=prefix ;;
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071 prefix=$ac_optarg ;;
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078 program_prefix=$ac_optarg ;;
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085 program_suffix=$ac_optarg ;;
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
1102 program_transform_name=$ac_optarg ;;
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 ac_prev=pdfdir ;;
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1109 -psdir | --psdir | --psdi | --psd | --ps)
1110 ac_prev=psdir ;;
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 psdir=$ac_optarg ;;
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1116 silent=yes ;;
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 ac_prev=sbindir ;;
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 | --sbi=* | --sb=*)
1122 sbindir=$ac_optarg ;;
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1127 | --sha | --sh)
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
1133 sharedstatedir=$ac_optarg ;;
1135 -site | --site | --sit)
1136 ac_prev=site ;;
1137 -site=* | --site=* | --sit=*)
1138 site=$ac_optarg ;;
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 ac_prev=srcdir ;;
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143 srcdir=$ac_optarg ;;
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150 sysconfdir=$ac_optarg ;;
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
1153 ac_prev=target_alias ;;
1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155 target_alias=$ac_optarg ;;
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 verbose=yes ;;
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
1163 -with-* | --with-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=\$ac_optarg ;;
1179 -without-* | --without-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204 x_includes=$ac_optarg ;;
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211 x_libraries=$ac_optarg ;;
1213 -*) as_fn_error "unrecognized option: \`$ac_option'
1214 Try \`$0 --help' for more information."
1217 *=*)
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1223 esac
1224 eval $ac_envvar=\$ac_optarg
1225 export $ac_envvar ;;
1228 # FIXME: should be removed in autoconf 3.0.
1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1235 esac
1236 done
1238 if test -n "$ac_prev"; then
1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240 as_fn_error "missing argument to $ac_option"
1243 if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1245 no) ;;
1246 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248 esac
1251 # Check all directory arguments for consistency.
1252 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1259 case $ac_val in
1260 */ )
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1263 esac
1264 # Be sure to have absolute directory names.
1265 case $ac_val in
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268 esac
1269 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1270 done
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293 test "$silent" = yes && exec 6>/dev/null
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error "pwd does not report name of working directory"
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1322 /^X\(\/\/\)$/{
1323 s//\1/
1326 /^X\(\/\).*/{
1327 s//\1/
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1335 else
1336 ac_srcdir_defaulted=no
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1364 # Report the --help message.
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 \`configure' configures Wine 1.2-rc2 to adapt to many kinds of systems.
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1377 Defaults for the options are specified in brackets.
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1401 For better control, use the options below.
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1423 _ACEOF
1425 cat <<\_ACEOF
1427 X features:
1428 --x-includes=DIR X include files are in DIR
1429 --x-libraries=DIR X library files are in DIR
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of Wine 1.2-rc2:";;
1440 esac
1441 cat <<\_ACEOF
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --disable-win16 do not include Win16 support
1448 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1449 binaries)
1450 --disable-tests do not build the regression tests
1451 --enable-maintainer-mode
1452 enable maintainer-specific build rules
1453 --disable-largefile omit support for large files
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --without-alsa do not use the Alsa sound support
1459 --without-audioio do not use the AudioIO sound support
1460 --without-capi do not use CAPI (ISDN support)
1461 --without-cms do not use CMS (color management support)
1462 --without-coreaudio do not use the CoreAudio sound support
1463 --without-cups do not use CUPS
1464 --without-curses do not use (n)curses
1465 --without-esd do not use the EsounD sound support
1466 --without-fontconfig do not use fontconfig
1467 --without-freetype do not use the FreeType library
1468 --without-gphoto do not use gphoto (Digital Camera support)
1469 --without-glu do not use the GLU library
1470 --without-gnutls do not use GnuTLS (schannel support)
1471 --without-gsm do not use libgsm (GSM 06.10 codec support)
1472 --without-hal do not use HAL (dynamic device support)
1473 --without-jack do not use the Jack sound support
1474 --without-jpeg do not use JPEG
1475 --without-ldap do not use LDAP
1476 --without-mpg123 do not use the mpg123 library
1477 --without-nas do not use the NAS sound support
1478 --without-openal do not use OpenAL
1479 --without-opengl do not use OpenGL
1480 --without-openssl do not use OpenSSL
1481 --without-oss do not use the OSS sound support
1482 --without-png do not use PNG
1483 --without-pthread do not use the pthread library
1484 --without-pulse do not use PulseAudio sound support
1485 --without-sane do not use SANE (scanner support)
1486 --without-tiff do not use TIFF
1487 --without-v4l do not use v4l1 (v4l support)
1488 --without-xcomposite do not use the Xcomposite extension
1489 --without-xcursor do not use the Xcursor extension
1490 --without-xinerama do not use Xinerama (multi-monitor support)
1491 --without-xinput do not use the Xinput extension
1492 --without-xml do not use XML
1493 --without-xrandr do not use Xrandr (resolution changes)
1494 --without-xrender do not use the Xrender extension
1495 --without-xshape do not use the Xshape extension
1496 --without-xshm do not use XShm (shared memory extension)
1497 --without-xslt do not use XSLT
1498 --without-xxf86vm do not use XFree video mode extension
1499 --with-wine-tools=DIR use Wine tools from directory DIR
1500 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1501 --with-x use the X Window System
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
1513 CPP C preprocessor
1514 XMKMF Path to xmkmf, Makefile generator for X Window System
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1519 Report bugs to <wine-devel@winehq.org>.
1520 Wine home page: <http://www.winehq.org>.
1521 _ACEOF
1522 ac_status=$?
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 continue
1531 ac_builddir=.
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1549 case $srcdir in
1550 .) # We are building in place.
1551 ac_srcdir=.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1558 *) # Relative name.
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1573 else
1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 fi || ac_status=$?
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1577 done
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582 cat <<\_ACEOF
1583 Wine configure 1.2-rc2
1584 generated by GNU Autoconf 2.65
1586 Copyright (C) 2009 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590 exit
1593 ## ------------------------ ##
1594 ## Autoconf initialization. ##
1595 ## ------------------------ ##
1597 # ac_fn_c_try_compile LINENO
1598 # --------------------------
1599 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_compile ()
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext
1604 if { { ac_try="$ac_compile"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_compile") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest.$ac_objext; then :
1623 ac_retval=0
1624 else
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1628 ac_retval=1
1630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631 as_fn_set_status $ac_retval
1633 } # ac_fn_c_try_compile
1635 # ac_fn_cxx_try_compile LINENO
1636 # ----------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_cxx_try_compile ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext
1642 if { { ac_try="$ac_compile"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_compile") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_cxx_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest.$ac_objext; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1666 ac_retval=1
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 as_fn_set_status $ac_retval
1671 } # ac_fn_cxx_try_compile
1673 # ac_fn_c_try_link LINENO
1674 # -----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_link ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext conftest$ac_exeext
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest$ac_exeext && {
1699 test "$cross_compiling" = yes ||
1700 $as_test_x conftest$ac_exeext
1701 }; then :
1702 ac_retval=0
1703 else
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1707 ac_retval=1
1709 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1710 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1711 # interfere with the next link command; also delete a directory that is
1712 # left behind by Apple's compiler. We do this before executing the actions.
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715 as_fn_set_status $ac_retval
1717 } # ac_fn_c_try_link
1719 # ac_fn_c_try_cpp LINENO
1720 # ----------------------
1721 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_cpp ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_cpp conftest.$ac_ext"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } >/dev/null && {
1741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1749 ac_retval=1
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 as_fn_set_status $ac_retval
1754 } # ac_fn_c_try_cpp
1756 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1759 # the include files in INCLUDES and setting the cache variable VAR
1760 # accordingly.
1761 ac_fn_c_check_header_mongrel ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1768 $as_echo_n "(cached) " >&6
1770 eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 else
1774 # Is the header compilable?
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1776 $as_echo_n "checking $2 usability... " >&6; }
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783 ac_header_compiler=yes
1784 else
1785 ac_header_compiler=no
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1789 $as_echo "$ac_header_compiler" >&6; }
1791 # Is the header present?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1793 $as_echo_n "checking $2 presence... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 #include <$2>
1797 _ACEOF
1798 if ac_fn_c_try_cpp "$LINENO"; then :
1799 ac_header_preproc=yes
1800 else
1801 ac_header_preproc=no
1803 rm -f conftest.err conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1805 $as_echo "$ac_header_preproc" >&6; }
1807 # So? What about this header?
1808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1809 yes:no: )
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1811 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1813 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815 no:yes:* )
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1817 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1819 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1821 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1823 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 ( cat <<\_ASBOX
1827 ## ------------------------------------ ##
1828 ## Report this to wine-devel@winehq.org ##
1829 ## ------------------------------------ ##
1830 _ASBOX
1831 ) | sed "s/^/$as_me: WARNING: /" >&2
1833 esac
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837 $as_echo_n "(cached) " >&6
1838 else
1839 eval "$3=\$ac_header_compiler"
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_c_check_header_mongrel
1849 # ac_fn_c_try_run LINENO
1850 # ----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1852 # that executables *can* be run.
1853 ac_fn_c_try_run ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_link"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>&5
1864 ac_status=$?
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1867 { { case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_try") 2>&5
1874 ac_status=$?
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; }; }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: program exited with status $ac_status" >&5
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1883 ac_retval=$ac_status
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_c_try_run
1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists and can be compiled using the include files in
1894 # INCLUDES, setting the cache variable VAR accordingly.
1895 ac_fn_c_check_header_compile ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909 eval "$3=yes"
1910 else
1911 eval "$3=no"
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 } # ac_fn_c_check_header_compile
1922 # ac_fn_c_check_func LINENO FUNC VAR
1923 # ----------------------------------
1924 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1925 ac_fn_c_check_func ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1935 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1937 #define $2 innocuous_$2
1939 /* System header to define __stub macros and hopefully few prototypes,
1940 which can conflict with char $2 (); below.
1941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1942 <limits.h> exists even on freestanding compilers. */
1944 #ifdef __STDC__
1945 # include <limits.h>
1946 #else
1947 # include <assert.h>
1948 #endif
1950 #undef $2
1952 /* Override any GCC internal prototype to avoid an error.
1953 Use char because int might match the return type of a GCC
1954 builtin and then its argument prototype would still apply. */
1955 #ifdef __cplusplus
1956 extern "C"
1957 #endif
1958 char $2 ();
1959 /* The GNU C library defines this for functions which it implements
1960 to always fail with ENOSYS. Some functions are actually named
1961 something starting with __ and the normal name is an alias. */
1962 #if defined __stub_$2 || defined __stub___$2
1963 choke me
1964 #endif
1967 main ()
1969 return $2 ();
1971 return 0;
1973 _ACEOF
1974 if ac_fn_c_try_link "$LINENO"; then :
1975 eval "$3=yes"
1976 else
1977 eval "$3=no"
1979 rm -f core conftest.err conftest.$ac_objext \
1980 conftest$ac_exeext conftest.$ac_ext
1982 eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987 } # ac_fn_c_check_func
1989 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1990 # ----------------------------------------------------
1991 # Tries to find if the field MEMBER exists in type AGGR, after including
1992 # INCLUDES, setting cache variable VAR accordingly.
1993 ac_fn_c_check_member ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1997 $as_echo_n "checking for $2.$3... " >&6; }
1998 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2005 main ()
2007 static $2 ac_aggr;
2008 if (ac_aggr.$3)
2009 return 0;
2011 return 0;
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 eval "$4=yes"
2016 else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2021 main ()
2023 static $2 ac_aggr;
2024 if (sizeof ac_aggr.$3)
2025 return 0;
2027 return 0;
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$4=yes"
2032 else
2033 eval "$4=no"
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 eval ac_res=\$$4
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044 } # ac_fn_c_check_member
2046 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2047 # -------------------------------------------
2048 # Tests whether TYPE exists after having included INCLUDES, setting cache
2049 # variable VAR accordingly.
2050 ac_fn_c_check_type ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2056 $as_echo_n "(cached) " >&6
2057 else
2058 eval "$3=no"
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2063 main ()
2065 if (sizeof ($2))
2066 return 0;
2068 return 0;
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2076 main ()
2078 if (sizeof (($2)))
2079 return 0;
2081 return 0;
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2086 else
2087 eval "$3=yes"
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 eval ac_res=\$$3
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2098 } # ac_fn_c_check_type
2099 cat >config.log <<_ACEOF
2100 This file contains any messages produced by compilers while
2101 running configure, to aid debugging if configure makes a mistake.
2103 It was created by Wine $as_me 1.2-rc2, which was
2104 generated by GNU Autoconf 2.65. Invocation command line was
2106 $ $0 $@
2108 _ACEOF
2109 exec 5>>config.log
2111 cat <<_ASUNAME
2112 ## --------- ##
2113 ## Platform. ##
2114 ## --------- ##
2116 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2117 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2118 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2119 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2120 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2122 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2123 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2125 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2126 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2127 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2128 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2129 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2130 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2131 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2133 _ASUNAME
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2138 IFS=$as_save_IFS
2139 test -z "$as_dir" && as_dir=.
2140 $as_echo "PATH: $as_dir"
2141 done
2142 IFS=$as_save_IFS
2144 } >&5
2146 cat >&5 <<_ACEOF
2149 ## ----------- ##
2150 ## Core tests. ##
2151 ## ----------- ##
2153 _ACEOF
2156 # Keep a trace of the command line.
2157 # Strip out --no-create and --no-recursion so they do not pile up.
2158 # Strip out --silent because we don't want to record it for future runs.
2159 # Also quote any args containing shell meta-characters.
2160 # Make two passes to allow for proper duplicate-argument suppression.
2161 ac_configure_args=
2162 ac_configure_args0=
2163 ac_configure_args1=
2164 ac_must_keep_next=false
2165 for ac_pass in 1 2
2167 for ac_arg
2169 case $ac_arg in
2170 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2172 | -silent | --silent | --silen | --sile | --sil)
2173 continue ;;
2174 *\'*)
2175 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 esac
2177 case $ac_pass in
2178 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2180 as_fn_append ac_configure_args1 " '$ac_arg'"
2181 if test $ac_must_keep_next = true; then
2182 ac_must_keep_next=false # Got value, back to normal.
2183 else
2184 case $ac_arg in
2185 *=* | --config-cache | -C | -disable-* | --disable-* \
2186 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2187 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2188 | -with-* | --with-* | -without-* | --without-* | --x)
2189 case "$ac_configure_args0 " in
2190 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2191 esac
2193 -* ) ac_must_keep_next=true ;;
2194 esac
2196 as_fn_append ac_configure_args " '$ac_arg'"
2198 esac
2199 done
2200 done
2201 { ac_configure_args0=; unset ac_configure_args0;}
2202 { ac_configure_args1=; unset ac_configure_args1;}
2204 # When interrupted or exit'd, cleanup temporary files, and complete
2205 # config.log. We remove comments because anyway the quotes in there
2206 # would cause problems or look ugly.
2207 # WARNING: Use '\'' to represent an apostrophe within the trap.
2208 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2209 trap 'exit_status=$?
2210 # Save into config.log some information that might help in debugging.
2212 echo
2214 cat <<\_ASBOX
2215 ## ---------------- ##
2216 ## Cache variables. ##
2217 ## ---------------- ##
2218 _ASBOX
2219 echo
2220 # The following way of writing the cache mishandles newlines in values,
2222 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2223 eval ac_val=\$$ac_var
2224 case $ac_val in #(
2225 *${as_nl}*)
2226 case $ac_var in #(
2227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2229 esac
2230 case $ac_var in #(
2231 _ | IFS | as_nl) ;; #(
2232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2233 *) { eval $ac_var=; unset $ac_var;} ;;
2234 esac ;;
2235 esac
2236 done
2237 (set) 2>&1 |
2238 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2239 *${as_nl}ac_space=\ *)
2240 sed -n \
2241 "s/'\''/'\''\\\\'\'''\''/g;
2242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2243 ;; #(
2245 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2247 esac |
2248 sort
2250 echo
2252 cat <<\_ASBOX
2253 ## ----------------- ##
2254 ## Output variables. ##
2255 ## ----------------- ##
2256 _ASBOX
2257 echo
2258 for ac_var in $ac_subst_vars
2260 eval ac_val=\$$ac_var
2261 case $ac_val in
2262 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263 esac
2264 $as_echo "$ac_var='\''$ac_val'\''"
2265 done | sort
2266 echo
2268 if test -n "$ac_subst_files"; then
2269 cat <<\_ASBOX
2270 ## ------------------- ##
2271 ## File substitutions. ##
2272 ## ------------------- ##
2273 _ASBOX
2274 echo
2275 for ac_var in $ac_subst_files
2277 eval ac_val=\$$ac_var
2278 case $ac_val in
2279 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280 esac
2281 $as_echo "$ac_var='\''$ac_val'\''"
2282 done | sort
2283 echo
2286 if test -s confdefs.h; then
2287 cat <<\_ASBOX
2288 ## ----------- ##
2289 ## confdefs.h. ##
2290 ## ----------- ##
2291 _ASBOX
2292 echo
2293 cat confdefs.h
2294 echo
2296 test "$ac_signal" != 0 &&
2297 $as_echo "$as_me: caught signal $ac_signal"
2298 $as_echo "$as_me: exit $exit_status"
2299 } >&5
2300 rm -f core *.core core.conftest.* &&
2301 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2302 exit $exit_status
2304 for ac_signal in 1 2 13 15; do
2305 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2306 done
2307 ac_signal=0
2309 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2310 rm -f -r conftest* confdefs.h
2312 $as_echo "/* confdefs.h */" > confdefs.h
2314 # Predefined preprocessor variables.
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_NAME "$PACKAGE_NAME"
2318 _ACEOF
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2322 _ACEOF
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2326 _ACEOF
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_STRING "$PACKAGE_STRING"
2330 _ACEOF
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2334 _ACEOF
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_URL "$PACKAGE_URL"
2338 _ACEOF
2341 # Let the site file select an alternate cache file if it wants to.
2342 # Prefer an explicitly selected file to automatically selected ones.
2343 ac_site_file1=NONE
2344 ac_site_file2=NONE
2345 if test -n "$CONFIG_SITE"; then
2346 ac_site_file1=$CONFIG_SITE
2347 elif test "x$prefix" != xNONE; then
2348 ac_site_file1=$prefix/share/config.site
2349 ac_site_file2=$prefix/etc/config.site
2350 else
2351 ac_site_file1=$ac_default_prefix/share/config.site
2352 ac_site_file2=$ac_default_prefix/etc/config.site
2354 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2356 test "x$ac_site_file" = xNONE && continue
2357 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2359 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2360 sed 's/^/| /' "$ac_site_file" >&5
2361 . "$ac_site_file"
2363 done
2365 if test -r "$cache_file"; then
2366 # Some versions of bash will fail to source /dev/null (special files
2367 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2368 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2370 $as_echo "$as_me: loading cache $cache_file" >&6;}
2371 case $cache_file in
2372 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2373 *) . "./$cache_file";;
2374 esac
2376 else
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2378 $as_echo "$as_me: creating cache $cache_file" >&6;}
2379 >$cache_file
2382 # Check that the precious variables saved in the cache have kept the same
2383 # value.
2384 ac_cache_corrupted=false
2385 for ac_var in $ac_precious_vars; do
2386 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2387 eval ac_new_set=\$ac_env_${ac_var}_set
2388 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2389 eval ac_new_val=\$ac_env_${ac_var}_value
2390 case $ac_old_set,$ac_new_set in
2391 set,)
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2393 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2394 ac_cache_corrupted=: ;;
2395 ,set)
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2397 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2398 ac_cache_corrupted=: ;;
2399 ,);;
2401 if test "x$ac_old_val" != "x$ac_new_val"; then
2402 # differences in whitespace do not lead to failure.
2403 ac_old_val_w=`echo x $ac_old_val`
2404 ac_new_val_w=`echo x $ac_new_val`
2405 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2407 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2408 ac_cache_corrupted=:
2409 else
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2411 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2412 eval $ac_var=\$ac_old_val
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2415 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2417 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2418 fi;;
2419 esac
2420 # Pass precious variables to config.status.
2421 if test "$ac_new_set" = set; then
2422 case $ac_new_val in
2423 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2424 *) ac_arg=$ac_var=$ac_new_val ;;
2425 esac
2426 case " $ac_configure_args " in
2427 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2428 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2429 esac
2431 done
2432 if $ac_cache_corrupted; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2436 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2437 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2439 ## -------------------- ##
2440 ## Main body of script. ##
2441 ## -------------------- ##
2443 ac_ext=c
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451 ac_config_headers="$ac_config_headers include/config.h"
2453 ac_aux_dir=
2454 for ac_dir in tools "$srcdir"/tools; do
2455 for ac_t in install-sh install.sh shtool; do
2456 if test -f "$ac_dir/$ac_t"; then
2457 ac_aux_dir=$ac_dir
2458 ac_install_sh="$ac_aux_dir/$ac_t -c"
2459 break 2
2461 done
2462 done
2463 if test -z "$ac_aux_dir"; then
2464 as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2467 # These three variables are undocumented and unsupported,
2468 # and are intended to be withdrawn in a future Autoconf release.
2469 # They can cause serious problems if a builder's source tree is in a directory
2470 # whose full name contains unusual characters.
2471 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2472 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2473 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2479 # Check whether --enable-win16 was given.
2480 if test "${enable_win16+set}" = set; then :
2481 enableval=$enable_win16;
2484 # Check whether --enable-win64 was given.
2485 if test "${enable_win64+set}" = set; then :
2486 enableval=$enable_win64;
2489 # Check whether --enable-tests was given.
2490 if test "${enable_tests+set}" = set; then :
2491 enableval=$enable_tests;
2494 # Check whether --enable-maintainer-mode was given.
2495 if test "${enable_maintainer_mode+set}" = set; then :
2496 enableval=$enable_maintainer_mode;
2501 # Check whether --with-alsa was given.
2502 if test "${with_alsa+set}" = set; then :
2503 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2507 # Check whether --with-audioio was given.
2508 if test "${with_audioio+set}" = set; then :
2509 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2513 # Check whether --with-capi was given.
2514 if test "${with_capi+set}" = set; then :
2515 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2519 # Check whether --with-cms was given.
2520 if test "${with_cms+set}" = set; then :
2521 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2525 # Check whether --with-coreaudio was given.
2526 if test "${with_coreaudio+set}" = set; then :
2527 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2531 # Check whether --with-cups was given.
2532 if test "${with_cups+set}" = set; then :
2533 withval=$with_cups;
2537 # Check whether --with-curses was given.
2538 if test "${with_curses+set}" = set; then :
2539 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2543 # Check whether --with-esd was given.
2544 if test "${with_esd+set}" = set; then :
2545 withval=$with_esd;
2549 # Check whether --with-fontconfig was given.
2550 if test "${with_fontconfig+set}" = set; then :
2551 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2555 # Check whether --with-freetype was given.
2556 if test "${with_freetype+set}" = set; then :
2557 withval=$with_freetype;
2561 # Check whether --with-gphoto was given.
2562 if test "${with_gphoto+set}" = set; then :
2563 withval=$with_gphoto;
2567 # Check whether --with-glu was given.
2568 if test "${with_glu+set}" = set; then :
2569 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2573 # Check whether --with-gnutls was given.
2574 if test "${with_gnutls+set}" = set; then :
2575 withval=$with_gnutls;
2579 # Check whether --with-gsm was given.
2580 if test "${with_gsm+set}" = set; then :
2581 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2585 # Check whether --with-hal was given.
2586 if test "${with_hal+set}" = set; then :
2587 withval=$with_hal;
2591 # Check whether --with-jack was given.
2592 if test "${with_jack+set}" = set; then :
2593 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2597 # Check whether --with-jpeg was given.
2598 if test "${with_jpeg+set}" = set; then :
2599 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2603 # Check whether --with-ldap was given.
2604 if test "${with_ldap+set}" = set; then :
2605 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2609 # Check whether --with-mpg123 was given.
2610 if test "${with_mpg123+set}" = set; then :
2611 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2615 # Check whether --with-nas was given.
2616 if test "${with_nas+set}" = set; then :
2617 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2621 # Check whether --with-openal was given.
2622 if test "${with_openal+set}" = set; then :
2623 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2627 # Check whether --with-opengl was given.
2628 if test "${with_opengl+set}" = set; then :
2629 withval=$with_opengl;
2633 # Check whether --with-openssl was given.
2634 if test "${with_openssl+set}" = set; then :
2635 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2639 # Check whether --with-oss was given.
2640 if test "${with_oss+set}" = set; then :
2641 withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2645 # Check whether --with-png was given.
2646 if test "${with_png+set}" = set; then :
2647 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2651 # Check whether --with-pthread was given.
2652 if test "${with_pthread+set}" = set; then :
2653 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2657 # Check whether --with-pulse was given.
2658 if test "${with_pulse+set}" = set; then :
2659 withval=$with_pulse;
2663 # Check whether --with-sane was given.
2664 if test "${with_sane+set}" = set; then :
2665 withval=$with_sane;
2669 # Check whether --with-tiff was given.
2670 if test "${with_tiff+set}" = set; then :
2671 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2675 # Check whether --with-v4l was given.
2676 if test "${with_v4l+set}" = set; then :
2677 withval=$with_v4l;
2681 # Check whether --with-xcomposite was given.
2682 if test "${with_xcomposite+set}" = set; then :
2683 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2687 # Check whether --with-xcursor was given.
2688 if test "${with_xcursor+set}" = set; then :
2689 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2693 # Check whether --with-xinerama was given.
2694 if test "${with_xinerama+set}" = set; then :
2695 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2699 # Check whether --with-xinput was given.
2700 if test "${with_xinput+set}" = set; then :
2701 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2705 # Check whether --with-xml was given.
2706 if test "${with_xml+set}" = set; then :
2707 withval=$with_xml;
2711 # Check whether --with-xrandr was given.
2712 if test "${with_xrandr+set}" = set; then :
2713 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2717 # Check whether --with-xrender was given.
2718 if test "${with_xrender+set}" = set; then :
2719 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2723 # Check whether --with-xshape was given.
2724 if test "${with_xshape+set}" = set; then :
2725 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2729 # Check whether --with-xshm was given.
2730 if test "${with_xshm+set}" = set; then :
2731 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2735 # Check whether --with-xslt was given.
2736 if test "${with_xslt+set}" = set; then :
2737 withval=$with_xslt;
2741 # Check whether --with-xxf86vm was given.
2742 if test "${with_xxf86vm+set}" = set; then :
2743 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
2748 # Check whether --with-wine-tools was given.
2749 if test "${with_wine_tools+set}" = set; then :
2750 withval=$with_wine_tools;
2754 # Check whether --with-wine64 was given.
2755 if test "${with_wine64+set}" = set; then :
2756 withval=$with_wine64;
2760 # Make sure we can run config.sub.
2761 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2762 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2765 $as_echo_n "checking build system type... " >&6; }
2766 if test "${ac_cv_build+set}" = set; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 ac_build_alias=$build_alias
2770 test "x$ac_build_alias" = x &&
2771 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2772 test "x$ac_build_alias" = x &&
2773 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2774 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2775 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2779 $as_echo "$ac_cv_build" >&6; }
2780 case $ac_cv_build in
2781 *-*-*) ;;
2782 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2783 esac
2784 build=$ac_cv_build
2785 ac_save_IFS=$IFS; IFS='-'
2786 set x $ac_cv_build
2787 shift
2788 build_cpu=$1
2789 build_vendor=$2
2790 shift; shift
2791 # Remember, the first character of IFS is used to create $*,
2792 # except with old shells:
2793 build_os=$*
2794 IFS=$ac_save_IFS
2795 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2799 $as_echo_n "checking host system type... " >&6; }
2800 if test "${ac_cv_host+set}" = set; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 if test "x$host_alias" = x; then
2804 ac_cv_host=$ac_cv_build
2805 else
2806 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2807 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2812 $as_echo "$ac_cv_host" >&6; }
2813 case $ac_cv_host in
2814 *-*-*) ;;
2815 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2816 esac
2817 host=$ac_cv_host
2818 ac_save_IFS=$IFS; IFS='-'
2819 set x $ac_cv_host
2820 shift
2821 host_cpu=$1
2822 host_vendor=$2
2823 shift; shift
2824 # Remember, the first character of IFS is used to create $*,
2825 # except with old shells:
2826 host_os=$*
2827 IFS=$ac_save_IFS
2828 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2832 case "$srcdir" in
2833 .) ;;
2834 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2835 as_fn_error "you are building out of the source tree, but the source tree contains object files.
2836 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2837 fi ;;
2838 esac
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2842 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2843 set x ${MAKE-make}
2844 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2845 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 cat >conftest.make <<\_ACEOF
2849 SHELL = /bin/sh
2850 all:
2851 @echo '@@@%%%=$(MAKE)=@@@%%%'
2852 _ACEOF
2853 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2854 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2855 *@@@%%%=?*=@@@%%%*)
2856 eval ac_cv_prog_make_${ac_make}_set=yes;;
2858 eval ac_cv_prog_make_${ac_make}_set=no;;
2859 esac
2860 rm -f conftest.make
2862 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2864 $as_echo "yes" >&6; }
2865 SET_MAKE=
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 SET_MAKE="MAKE=${MAKE-make}"
2872 ac_ext=c
2873 ac_cpp='$CPP $CPPFLAGS'
2874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877 if test -n "$ac_tool_prefix"; then
2878 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2879 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if test "${ac_cv_prog_CC+set}" = set; then :
2883 $as_echo_n "(cached) " >&6
2884 else
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2899 done
2900 done
2901 IFS=$as_save_IFS
2905 CC=$ac_cv_prog_CC
2906 if test -n "$CC"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2908 $as_echo "$CC" >&6; }
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2916 if test -z "$ac_cv_prog_CC"; then
2917 ac_ct_CC=$CC
2918 # Extract the first word of "gcc", so it can be a program name with args.
2919 set dummy gcc; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test -n "$ac_ct_CC"; then
2926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_ac_ct_CC="gcc"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2939 done
2940 done
2941 IFS=$as_save_IFS
2945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2946 if test -n "$ac_ct_CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2948 $as_echo "$ac_ct_CC" >&6; }
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2954 if test "x$ac_ct_CC" = x; then
2955 CC=""
2956 else
2957 case $cross_compiling:$ac_tool_warned in
2958 yes:)
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2961 ac_tool_warned=yes ;;
2962 esac
2963 CC=$ac_ct_CC
2965 else
2966 CC="$ac_cv_prog_CC"
2969 if test -z "$CC"; then
2970 if test -n "$ac_tool_prefix"; then
2971 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2972 set dummy ${ac_tool_prefix}cc; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if test "${ac_cv_prog_CC+set}" = set; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_CC="${ac_tool_prefix}cc"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2992 done
2993 done
2994 IFS=$as_save_IFS
2998 CC=$ac_cv_prog_CC
2999 if test -n "$CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3001 $as_echo "$CC" >&6; }
3002 else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3010 if test -z "$CC"; then
3011 # Extract the first word of "cc", so it can be a program name with args.
3012 set dummy cc; ac_word=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if test "${ac_cv_prog_CC+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 if test -n "$CC"; then
3019 ac_cv_prog_CC="$CC" # Let the user override the test.
3020 else
3021 ac_prog_rejected=no
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3030 ac_prog_rejected=yes
3031 continue
3033 ac_cv_prog_CC="cc"
3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3037 done
3038 done
3039 IFS=$as_save_IFS
3041 if test $ac_prog_rejected = yes; then
3042 # We found a bogon in the path, so make sure we never use it.
3043 set dummy $ac_cv_prog_CC
3044 shift
3045 if test $# != 0; then
3046 # We chose a different compiler from the bogus one.
3047 # However, it has the same basename, so the bogon will be chosen
3048 # first if we set CC to just the basename; use the full file name.
3049 shift
3050 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3055 CC=$ac_cv_prog_CC
3056 if test -n "$CC"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058 $as_echo "$CC" >&6; }
3059 else
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3066 if test -z "$CC"; then
3067 if test -n "$ac_tool_prefix"; then
3068 for ac_prog in cl.exe
3070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3071 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if test "${ac_cv_prog_CC+set}" = set; then :
3075 $as_echo_n "(cached) " >&6
3076 else
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3091 done
3092 done
3093 IFS=$as_save_IFS
3097 CC=$ac_cv_prog_CC
3098 if test -n "$CC"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3100 $as_echo "$CC" >&6; }
3101 else
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3107 test -n "$CC" && break
3108 done
3110 if test -z "$CC"; then
3111 ac_ct_CC=$CC
3112 for ac_prog in cl.exe
3114 # Extract the first word of "$ac_prog", so it can be a program name with args.
3115 set dummy $ac_prog; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
3120 else
3121 if test -n "$ac_ct_CC"; then
3122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3127 IFS=$as_save_IFS
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131 ac_cv_prog_ac_ct_CC="$ac_prog"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 break 2
3135 done
3136 done
3137 IFS=$as_save_IFS
3141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3142 if test -n "$ac_ct_CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3144 $as_echo "$ac_ct_CC" >&6; }
3145 else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3151 test -n "$ac_ct_CC" && break
3152 done
3154 if test "x$ac_ct_CC" = x; then
3155 CC=""
3156 else
3157 case $cross_compiling:$ac_tool_warned in
3158 yes:)
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3161 ac_tool_warned=yes ;;
3162 esac
3163 CC=$ac_ct_CC
3170 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172 as_fn_error "no acceptable C compiler found in \$PATH
3173 See \`config.log' for more details." "$LINENO" 5; }
3175 # Provide some information about the compiler.
3176 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3177 set X $ac_compile
3178 ac_compiler=$2
3179 for ac_option in --version -v -V -qversion; do
3180 { { ac_try="$ac_compiler $ac_option >&5"
3181 case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184 esac
3185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186 $as_echo "$ac_try_echo"; } >&5
3187 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3188 ac_status=$?
3189 if test -s conftest.err; then
3190 sed '10a\
3191 ... rest of stderr output deleted ...
3192 10q' conftest.err >conftest.er1
3193 cat conftest.er1 >&5
3195 rm -f conftest.er1 conftest.err
3196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197 test $ac_status = 0; }
3198 done
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3204 main ()
3208 return 0;
3210 _ACEOF
3211 ac_clean_files_save=$ac_clean_files
3212 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3213 # Try to create an executable without -o first, disregard a.out.
3214 # It will help us diagnose broken compilers, and finding out an intuition
3215 # of exeext.
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3217 $as_echo_n "checking whether the C compiler works... " >&6; }
3218 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3220 # The possible output files:
3221 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3223 ac_rmfiles=
3224 for ac_file in $ac_files
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3228 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3229 esac
3230 done
3231 rm -f $ac_rmfiles
3233 if { { ac_try="$ac_link_default"
3234 case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240 (eval "$ac_link_default") 2>&5
3241 ac_status=$?
3242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243 test $ac_status = 0; }; then :
3244 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3245 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3246 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3247 # so that the user can short-circuit this test for compilers unknown to
3248 # Autoconf.
3249 for ac_file in $ac_files ''
3251 test -f "$ac_file" || continue
3252 case $ac_file in
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3255 [ab].out )
3256 # We found the default executable, but exeext='' is most
3257 # certainly right.
3258 break;;
3259 *.* )
3260 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3261 then :; else
3262 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3264 # We set ac_cv_exeext here because the later test for it is not
3265 # safe: cross compilers may not add the suffix if given an `-o'
3266 # argument, so we may need to know it at that point already.
3267 # Even if this section looks crufty: it has the advantage of
3268 # actually working.
3269 break;;
3271 break;;
3272 esac
3273 done
3274 test "$ac_cv_exeext" = no && ac_cv_exeext=
3276 else
3277 ac_file=''
3279 if test -z "$ac_file"; then :
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3282 $as_echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 { as_fn_set_status 77
3288 as_fn_error "C compiler cannot create executables
3289 See \`config.log' for more details." "$LINENO" 5; }; }
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3295 $as_echo_n "checking for C compiler default output file name... " >&6; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3297 $as_echo "$ac_file" >&6; }
3298 ac_exeext=$ac_cv_exeext
3300 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3301 ac_clean_files=$ac_clean_files_save
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3303 $as_echo_n "checking for suffix of executables... " >&6; }
3304 if { { ac_try="$ac_link"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link") 2>&5
3312 ac_status=$?
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3316 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3317 # work properly (i.e., refer to `conftest.exe'), while it won't with
3318 # `rm'.
3319 for ac_file in conftest.exe conftest conftest.*; do
3320 test -f "$ac_file" || continue
3321 case $ac_file in
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3323 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324 break;;
3325 * ) break;;
3326 esac
3327 done
3328 else
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error "cannot compute suffix of executables: cannot compile and link
3332 See \`config.log' for more details." "$LINENO" 5; }
3334 rm -f conftest conftest$ac_cv_exeext
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3336 $as_echo "$ac_cv_exeext" >&6; }
3338 rm -f conftest.$ac_ext
3339 EXEEXT=$ac_cv_exeext
3340 ac_exeext=$EXEEXT
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3343 #include <stdio.h>
3345 main ()
3347 FILE *f = fopen ("conftest.out", "w");
3348 return ferror (f) || fclose (f) != 0;
3351 return 0;
3353 _ACEOF
3354 ac_clean_files="$ac_clean_files conftest.out"
3355 # Check that the compiler produces executables we can run. If not, either
3356 # the compiler is broken, or we cross compile.
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3358 $as_echo_n "checking whether we are cross compiling... " >&6; }
3359 if test "$cross_compiling" != yes; then
3360 { { ac_try="$ac_link"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366 $as_echo "$ac_try_echo"; } >&5
3367 (eval "$ac_link") 2>&5
3368 ac_status=$?
3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370 test $ac_status = 0; }
3371 if { ac_try='./conftest$ac_cv_exeext'
3372 { { case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_try") 2>&5
3379 ac_status=$?
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }; }; then
3382 cross_compiling=no
3383 else
3384 if test "$cross_compiling" = maybe; then
3385 cross_compiling=yes
3386 else
3387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 as_fn_error "cannot run C compiled programs.
3390 If you meant to cross compile, use \`--host'.
3391 See \`config.log' for more details." "$LINENO" 5; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3396 $as_echo "$cross_compiling" >&6; }
3398 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3399 ac_clean_files=$ac_clean_files_save
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3401 $as_echo_n "checking for suffix of object files... " >&6; }
3402 if test "${ac_cv_objext+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3409 main ()
3413 return 0;
3415 _ACEOF
3416 rm -f conftest.o conftest.obj
3417 if { { ac_try="$ac_compile"
3418 case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 $as_echo "$ac_try_echo"; } >&5
3424 (eval "$ac_compile") 2>&5
3425 ac_status=$?
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }; then :
3428 for ac_file in conftest.o conftest.obj conftest.*; do
3429 test -f "$ac_file" || continue;
3430 case $ac_file in
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3432 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3433 break;;
3434 esac
3435 done
3436 else
3437 $as_echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error "cannot compute suffix of object files: cannot compile
3443 See \`config.log' for more details." "$LINENO" 5; }
3445 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3448 $as_echo "$ac_cv_objext" >&6; }
3449 OBJEXT=$ac_cv_objext
3450 ac_objext=$OBJEXT
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3452 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3453 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3460 main ()
3462 #ifndef __GNUC__
3463 choke me
3464 #endif
3467 return 0;
3469 _ACEOF
3470 if ac_fn_c_try_compile "$LINENO"; then :
3471 ac_compiler_gnu=yes
3472 else
3473 ac_compiler_gnu=no
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3480 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3481 if test $ac_compiler_gnu = yes; then
3482 GCC=yes
3483 else
3484 GCC=
3486 ac_test_CFLAGS=${CFLAGS+set}
3487 ac_save_CFLAGS=$CFLAGS
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3489 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3490 if test "${ac_cv_prog_cc_g+set}" = set; then :
3491 $as_echo_n "(cached) " >&6
3492 else
3493 ac_save_c_werror_flag=$ac_c_werror_flag
3494 ac_c_werror_flag=yes
3495 ac_cv_prog_cc_g=no
3496 CFLAGS="-g"
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3501 main ()
3505 return 0;
3507 _ACEOF
3508 if ac_fn_c_try_compile "$LINENO"; then :
3509 ac_cv_prog_cc_g=yes
3510 else
3511 CFLAGS=""
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3516 main ()
3520 return 0;
3522 _ACEOF
3523 if ac_fn_c_try_compile "$LINENO"; then :
3525 else
3526 ac_c_werror_flag=$ac_save_c_werror_flag
3527 CFLAGS="-g"
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3532 main ()
3536 return 0;
3538 _ACEOF
3539 if ac_fn_c_try_compile "$LINENO"; then :
3540 ac_cv_prog_cc_g=yes
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 ac_c_werror_flag=$ac_save_c_werror_flag
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3550 $as_echo "$ac_cv_prog_cc_g" >&6; }
3551 if test "$ac_test_CFLAGS" = set; then
3552 CFLAGS=$ac_save_CFLAGS
3553 elif test $ac_cv_prog_cc_g = yes; then
3554 if test "$GCC" = yes; then
3555 CFLAGS="-g -O2"
3556 else
3557 CFLAGS="-g"
3559 else
3560 if test "$GCC" = yes; then
3561 CFLAGS="-O2"
3562 else
3563 CFLAGS=
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3567 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3568 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 ac_cv_prog_cc_c89=no
3572 ac_save_CC=$CC
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3575 #include <stdarg.h>
3576 #include <stdio.h>
3577 #include <sys/types.h>
3578 #include <sys/stat.h>
3579 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3580 struct buf { int x; };
3581 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3582 static char *e (p, i)
3583 char **p;
3584 int i;
3586 return p[i];
3588 static char *f (char * (*g) (char **, int), char **p, ...)
3590 char *s;
3591 va_list v;
3592 va_start (v,p);
3593 s = g (p, va_arg (v,int));
3594 va_end (v);
3595 return s;
3598 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3599 function prototypes and stuff, but not '\xHH' hex character constants.
3600 These don't provoke an error unfortunately, instead are silently treated
3601 as 'x'. The following induces an error, until -std is added to get
3602 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3603 array size at least. It's necessary to write '\x00'==0 to get something
3604 that's true only with -std. */
3605 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3607 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3608 inside strings and character constants. */
3609 #define FOO(x) 'x'
3610 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3612 int test (int i, double x);
3613 struct s1 {int (*f) (int a);};
3614 struct s2 {int (*f) (double a);};
3615 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3616 int argc;
3617 char **argv;
3619 main ()
3621 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3623 return 0;
3625 _ACEOF
3626 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3627 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3629 CC="$ac_save_CC $ac_arg"
3630 if ac_fn_c_try_compile "$LINENO"; then :
3631 ac_cv_prog_cc_c89=$ac_arg
3633 rm -f core conftest.err conftest.$ac_objext
3634 test "x$ac_cv_prog_cc_c89" != "xno" && break
3635 done
3636 rm -f conftest.$ac_ext
3637 CC=$ac_save_CC
3640 # AC_CACHE_VAL
3641 case "x$ac_cv_prog_cc_c89" in
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3644 $as_echo "none needed" >&6; } ;;
3645 xno)
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3647 $as_echo "unsupported" >&6; } ;;
3649 CC="$CC $ac_cv_prog_cc_c89"
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3651 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3652 esac
3653 if test "x$ac_cv_prog_cc_c89" != xno; then :
3657 ac_ext=c
3658 ac_cpp='$CPP $CPPFLAGS'
3659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 ac_ext=cpp
3664 ac_cpp='$CXXCPP $CPPFLAGS'
3665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3668 if test -z "$CXX"; then
3669 if test -n "$CCC"; then
3670 CXX=$CCC
3671 else
3672 if test -n "$ac_tool_prefix"; then
3673 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if test "${ac_cv_prog_CXX+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 if test -n "$CXX"; then
3683 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 break 2
3696 done
3697 done
3698 IFS=$as_save_IFS
3702 CXX=$ac_cv_prog_CXX
3703 if test -n "$CXX"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3705 $as_echo "$CXX" >&6; }
3706 else
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3712 test -n "$CXX" && break
3713 done
3715 if test -z "$CXX"; then
3716 ac_ct_CXX=$CXX
3717 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3719 # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 if test -n "$ac_ct_CXX"; then
3727 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_ac_ct_CXX="$ac_prog"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3740 done
3741 done
3742 IFS=$as_save_IFS
3746 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3747 if test -n "$ac_ct_CXX"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3749 $as_echo "$ac_ct_CXX" >&6; }
3750 else
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3756 test -n "$ac_ct_CXX" && break
3757 done
3759 if test "x$ac_ct_CXX" = x; then
3760 CXX="g++"
3761 else
3762 case $cross_compiling:$ac_tool_warned in
3763 yes:)
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3766 ac_tool_warned=yes ;;
3767 esac
3768 CXX=$ac_ct_CXX
3774 # Provide some information about the compiler.
3775 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3776 set X $ac_compile
3777 ac_compiler=$2
3778 for ac_option in --version -v -V -qversion; do
3779 { { ac_try="$ac_compiler $ac_option >&5"
3780 case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783 esac
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3787 ac_status=$?
3788 if test -s conftest.err; then
3789 sed '10a\
3790 ... rest of stderr output deleted ...
3791 10q' conftest.err >conftest.er1
3792 cat conftest.er1 >&5
3794 rm -f conftest.er1 conftest.err
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }
3797 done
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3800 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3801 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3808 main ()
3810 #ifndef __GNUC__
3811 choke me
3812 #endif
3815 return 0;
3817 _ACEOF
3818 if ac_fn_cxx_try_compile "$LINENO"; then :
3819 ac_compiler_gnu=yes
3820 else
3821 ac_compiler_gnu=no
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3828 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3829 if test $ac_compiler_gnu = yes; then
3830 GXX=yes
3831 else
3832 GXX=
3834 ac_test_CXXFLAGS=${CXXFLAGS+set}
3835 ac_save_CXXFLAGS=$CXXFLAGS
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3837 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3838 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3842 ac_cxx_werror_flag=yes
3843 ac_cv_prog_cxx_g=no
3844 CXXFLAGS="-g"
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3849 main ()
3853 return 0;
3855 _ACEOF
3856 if ac_fn_cxx_try_compile "$LINENO"; then :
3857 ac_cv_prog_cxx_g=yes
3858 else
3859 CXXFLAGS=""
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3864 main ()
3868 return 0;
3870 _ACEOF
3871 if ac_fn_cxx_try_compile "$LINENO"; then :
3873 else
3874 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3875 CXXFLAGS="-g"
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3880 main ()
3884 return 0;
3886 _ACEOF
3887 if ac_fn_cxx_try_compile "$LINENO"; then :
3888 ac_cv_prog_cxx_g=yes
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3898 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3899 if test "$ac_test_CXXFLAGS" = set; then
3900 CXXFLAGS=$ac_save_CXXFLAGS
3901 elif test $ac_cv_prog_cxx_g = yes; then
3902 if test "$GXX" = yes; then
3903 CXXFLAGS="-g -O2"
3904 else
3905 CXXFLAGS="-g"
3907 else
3908 if test "$GXX" = yes; then
3909 CXXFLAGS="-O2"
3910 else
3911 CXXFLAGS=
3914 ac_ext=c
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920 if test -n "$ac_tool_prefix"; then
3921 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3922 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 $as_echo_n "checking for $ac_word... " >&6; }
3925 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 if test -n "$CPPBIN"; then
3929 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3930 else
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3938 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 break 2
3942 done
3943 done
3944 IFS=$as_save_IFS
3948 CPPBIN=$ac_cv_prog_CPPBIN
3949 if test -n "$CPPBIN"; then
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3951 $as_echo "$CPPBIN" >&6; }
3952 else
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3959 if test -z "$ac_cv_prog_CPPBIN"; then
3960 ac_ct_CPPBIN=$CPPBIN
3961 # Extract the first word of "cpp", so it can be a program name with args.
3962 set dummy cpp; ac_word=$2
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 $as_echo_n "checking for $ac_word... " >&6; }
3965 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 if test -n "$ac_ct_CPPBIN"; then
3969 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3978 ac_cv_prog_ac_ct_CPPBIN="cpp"
3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3982 done
3983 done
3984 IFS=$as_save_IFS
3988 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3989 if test -n "$ac_ct_CPPBIN"; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
3991 $as_echo "$ac_ct_CPPBIN" >&6; }
3992 else
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
3997 if test "x$ac_ct_CPPBIN" = x; then
3998 CPPBIN="cpp"
3999 else
4000 case $cross_compiling:$ac_tool_warned in
4001 yes:)
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4004 ac_tool_warned=yes ;;
4005 esac
4006 CPPBIN=$ac_ct_CPPBIN
4008 else
4009 CPPBIN="$ac_cv_prog_CPPBIN"
4013 cat >>confdefs.h <<_ACEOF
4014 #define EXEEXT "$ac_exeext"
4015 _ACEOF
4018 case $host in
4019 *-darwin*)
4020 if test "x$enable_win64" = "xyes"
4021 then
4022 CC="$CC -m64"
4023 CXX="$CXX -m64"
4024 LD="${LD:-ld} -arch x86_64"
4025 AS="${AS:-as} -arch x86_64"
4026 host_cpu="x86_64"
4027 notice_platform="64-bit "
4028 TARGETFLAGS="-m64"
4030 else
4031 CC="$CC -m32"
4032 CXX="$CXX -m32"
4033 LD="${LD:-ld} -arch i386"
4034 AS="${AS:-as} -arch i386"
4035 host_cpu="i386"
4036 notice_platform="32-bit "
4037 TARGETFLAGS="-m32"
4039 enable_win16=${enable_win16:-yes}
4042 x86_64*)
4043 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4044 then
4045 CC="$CC -m32"
4046 CXX="$CXX -m32"
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4048 $as_echo_n "checking whether $CC works... " >&6; }
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4054 main ()
4058 return 0;
4060 _ACEOF
4061 if ac_fn_c_try_link "$LINENO"; then :
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063 $as_echo "yes" >&6; }
4064 else
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4067 as_fn_error "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4069 rm -f core conftest.err conftest.$ac_objext \
4070 conftest$ac_exeext conftest.$ac_ext
4071 LD="${LD:-ld} -m elf_i386"
4072 AS="${AS:-as} --32"
4073 host_cpu="i386"
4074 notice_platform="32-bit "
4075 TARGETFLAGS="-m32"
4077 enable_win16=${enable_win16:-yes}
4078 else
4079 if test "x${GCC}" = "xyes"
4080 then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4082 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085 #include <stdarg.h>
4087 main ()
4089 void func(__builtin_ms_va_list *args);
4091 return 0;
4093 _ACEOF
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4096 $as_echo "yes" >&6; }
4097 else
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4100 as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 TARGETFLAGS="-m64"
4108 *-mingw32*|*-cygwin*)
4109 enable_win16=${enable_win16:-no}
4110 CFLAGS="$CFLAGS -D_WIN32"
4112 i[3456789]86*)
4113 enable_win16=${enable_win16:-yes}
4115 esac
4117 enable_win16=${enable_win16:-no}
4119 enable_winetest=${enable_winetest:-$enable_tests}
4121 if test -n "$with_wine64"
4122 then
4123 if test "x$enable_win64" = "xyes"
4124 then
4125 as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4126 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4128 WOW64_DISABLE=\#
4130 enable_fonts=${enable_fonts:-no}
4131 enable_server=${enable_server:-no}
4132 enable_tools=${enable_tools:-no}
4133 elif test "x$enable_win64" = "xyes"
4134 then
4135 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4139 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4140 if test "${wine_cv_toolsdir+set}" = set; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 wine_cv_toolsdir="$with_wine_tools"
4144 if test -z "$with_wine_tools"; then
4145 if test "$cross_compiling" = "yes"; then
4146 as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4147 elif test -n "$with_wine64"; then
4148 wine_cv_toolsdir="$with_wine64"
4151 if test -z "$wine_cv_toolsdir"; then
4152 wine_cv_toolsdir="\$(TOPOBJDIR)"
4153 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4154 case "$wine_cv_toolsdir" in
4155 /*) ;;
4156 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
4157 esac
4158 else
4159 as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4163 $as_echo "$wine_cv_toolsdir" >&6; }
4164 TOOLSDIR=$wine_cv_toolsdir
4166 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4167 then
4168 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4172 for ac_prog in flex
4174 # Extract the first word of "$ac_prog", so it can be a program name with args.
4175 set dummy $ac_prog; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if test "${ac_cv_prog_FLEX+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if test -n "$FLEX"; then
4182 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_prog_FLEX="$ac_prog"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4195 done
4196 done
4197 IFS=$as_save_IFS
4201 FLEX=$ac_cv_prog_FLEX
4202 if test -n "$FLEX"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4204 $as_echo "$FLEX" >&6; }
4205 else
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4211 test -n "$FLEX" && break
4212 done
4213 test -n "$FLEX" || FLEX="none"
4215 if test "$FLEX" = "none"
4216 then
4217 as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4220 $as_echo_n "checking whether flex is recent enough... " >&6; }
4221 cat >conftest.l <<EOF
4222 %top{
4223 #include "prediluvian.h"
4227 if $FLEX -t conftest.l >/dev/null 2>&1
4228 then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4230 $as_echo "yes" >&6; }
4231 else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4234 as_fn_error "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4237 for ac_prog in bison
4239 # Extract the first word of "$ac_prog", so it can be a program name with args.
4240 set dummy $ac_prog; ac_word=$2
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 $as_echo_n "checking for $ac_word... " >&6; }
4243 if test "${ac_cv_prog_BISON+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -n "$BISON"; then
4247 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_prog_BISON="$ac_prog"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4260 done
4261 done
4262 IFS=$as_save_IFS
4266 BISON=$ac_cv_prog_BISON
4267 if test -n "$BISON"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4269 $as_echo "$BISON" >&6; }
4270 else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4276 test -n "$BISON" && break
4277 done
4278 test -n "$BISON" || BISON="none"
4280 if test "$BISON" = "none"
4281 then
4282 as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4285 if test -n "$ac_tool_prefix"; then
4286 for ac_prog in ar gar
4288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if test "${ac_cv_prog_AR+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 if test -n "$AR"; then
4296 ac_cv_prog_AR="$AR" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4305 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 break 2
4309 done
4310 done
4311 IFS=$as_save_IFS
4315 AR=$ac_cv_prog_AR
4316 if test -n "$AR"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4318 $as_echo "$AR" >&6; }
4319 else
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4325 test -n "$AR" && break
4326 done
4328 if test -z "$AR"; then
4329 ac_ct_AR=$AR
4330 for ac_prog in ar gar
4332 # Extract the first word of "$ac_prog", so it can be a program name with args.
4333 set dummy $ac_prog; ac_word=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 if test -n "$ac_ct_AR"; then
4340 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4349 ac_cv_prog_ac_ct_AR="$ac_prog"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4353 done
4354 done
4355 IFS=$as_save_IFS
4359 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4360 if test -n "$ac_ct_AR"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4362 $as_echo "$ac_ct_AR" >&6; }
4363 else
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4369 test -n "$ac_ct_AR" && break
4370 done
4372 if test "x$ac_ct_AR" = x; then
4373 AR="ar"
4374 else
4375 case $cross_compiling:$ac_tool_warned in
4376 yes:)
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4379 ac_tool_warned=yes ;;
4380 esac
4381 AR=$ac_ct_AR
4385 ARFLAGS=rc
4387 if test -n "$ac_tool_prefix"; then
4388 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4389 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 if test -n "$RANLIB"; then
4396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4397 else
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4409 done
4410 done
4411 IFS=$as_save_IFS
4415 RANLIB=$ac_cv_prog_RANLIB
4416 if test -n "$RANLIB"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4418 $as_echo "$RANLIB" >&6; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4426 if test -z "$ac_cv_prog_RANLIB"; then
4427 ac_ct_RANLIB=$RANLIB
4428 # Extract the first word of "ranlib", so it can be a program name with args.
4429 set dummy ranlib; ac_word=$2
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4431 $as_echo_n "checking for $ac_word... " >&6; }
4432 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 if test -n "$ac_ct_RANLIB"; then
4436 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_ac_ct_RANLIB="ranlib"
4446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4451 IFS=$as_save_IFS
4455 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4456 if test -n "$ac_ct_RANLIB"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4458 $as_echo "$ac_ct_RANLIB" >&6; }
4459 else
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4464 if test "x$ac_ct_RANLIB" = x; then
4465 RANLIB=":"
4466 else
4467 case $cross_compiling:$ac_tool_warned in
4468 yes:)
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4471 ac_tool_warned=yes ;;
4472 esac
4473 RANLIB=$ac_ct_RANLIB
4475 else
4476 RANLIB="$ac_cv_prog_RANLIB"
4479 if test -n "$ac_tool_prefix"; then
4480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4481 set dummy ${ac_tool_prefix}strip; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if test "${ac_cv_prog_STRIP+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 if test -n "$STRIP"; then
4488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4489 else
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4501 done
4502 done
4503 IFS=$as_save_IFS
4507 STRIP=$ac_cv_prog_STRIP
4508 if test -n "$STRIP"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4510 $as_echo "$STRIP" >&6; }
4511 else
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4518 if test -z "$ac_cv_prog_STRIP"; then
4519 ac_ct_STRIP=$STRIP
4520 # Extract the first word of "strip", so it can be a program name with args.
4521 set dummy strip; ac_word=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if test -n "$ac_ct_STRIP"; then
4528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_ac_ct_STRIP="strip"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4543 IFS=$as_save_IFS
4547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4548 if test -n "$ac_ct_STRIP"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4550 $as_echo "$ac_ct_STRIP" >&6; }
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4556 if test "x$ac_ct_STRIP" = x; then
4557 STRIP="strip"
4558 else
4559 case $cross_compiling:$ac_tool_warned in
4560 yes:)
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4563 ac_tool_warned=yes ;;
4564 esac
4565 STRIP=$ac_ct_STRIP
4567 else
4568 STRIP="$ac_cv_prog_STRIP"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4572 $as_echo_n "checking whether ln -s works... " >&6; }
4573 LN_S=$as_ln_s
4574 if test "$LN_S" = "ln -s"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4576 $as_echo "yes" >&6; }
4577 else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4579 $as_echo "no, using $LN_S" >&6; }
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4583 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4584 if test "${ac_cv_path_GREP+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -z "$GREP"; then
4588 ac_path_GREP_found=false
4589 # Loop through the user's path and test for each of PROGNAME-LIST
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_prog in grep ggrep; do
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4598 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4599 # Check for GNU ac_path_GREP and select it if it is found.
4600 # Check for GNU $ac_path_GREP
4601 case `"$ac_path_GREP" --version 2>&1` in
4602 *GNU*)
4603 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4605 ac_count=0
4606 $as_echo_n 0123456789 >"conftest.in"
4607 while :
4609 cat "conftest.in" "conftest.in" >"conftest.tmp"
4610 mv "conftest.tmp" "conftest.in"
4611 cp "conftest.in" "conftest.nl"
4612 $as_echo 'GREP' >> "conftest.nl"
4613 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4615 as_fn_arith $ac_count + 1 && ac_count=$as_val
4616 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4617 # Best one so far, save it but keep looking for a better one
4618 ac_cv_path_GREP="$ac_path_GREP"
4619 ac_path_GREP_max=$ac_count
4621 # 10*(2^10) chars as input seems more than enough
4622 test $ac_count -gt 10 && break
4623 done
4624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4625 esac
4627 $ac_path_GREP_found && break 3
4628 done
4629 done
4630 done
4631 IFS=$as_save_IFS
4632 if test -z "$ac_cv_path_GREP"; then
4633 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4635 else
4636 ac_cv_path_GREP=$GREP
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4641 $as_echo "$ac_cv_path_GREP" >&6; }
4642 GREP="$ac_cv_path_GREP"
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4646 $as_echo_n "checking for egrep... " >&6; }
4647 if test "${ac_cv_path_EGREP+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4651 then ac_cv_path_EGREP="$GREP -E"
4652 else
4653 if test -z "$EGREP"; then
4654 ac_path_EGREP_found=false
4655 # Loop through the user's path and test for each of PROGNAME-LIST
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_prog in egrep; do
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4664 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4665 # Check for GNU ac_path_EGREP and select it if it is found.
4666 # Check for GNU $ac_path_EGREP
4667 case `"$ac_path_EGREP" --version 2>&1` in
4668 *GNU*)
4669 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4671 ac_count=0
4672 $as_echo_n 0123456789 >"conftest.in"
4673 while :
4675 cat "conftest.in" "conftest.in" >"conftest.tmp"
4676 mv "conftest.tmp" "conftest.in"
4677 cp "conftest.in" "conftest.nl"
4678 $as_echo 'EGREP' >> "conftest.nl"
4679 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681 as_fn_arith $ac_count + 1 && ac_count=$as_val
4682 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4683 # Best one so far, save it but keep looking for a better one
4684 ac_cv_path_EGREP="$ac_path_EGREP"
4685 ac_path_EGREP_max=$ac_count
4687 # 10*(2^10) chars as input seems more than enough
4688 test $ac_count -gt 10 && break
4689 done
4690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4691 esac
4693 $ac_path_EGREP_found && break 3
4694 done
4695 done
4696 done
4697 IFS=$as_save_IFS
4698 if test -z "$ac_cv_path_EGREP"; then
4699 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4701 else
4702 ac_cv_path_EGREP=$EGREP
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4708 $as_echo "$ac_cv_path_EGREP" >&6; }
4709 EGREP="$ac_cv_path_EGREP"
4712 # Extract the first word of "ldconfig", so it can be a program name with args.
4713 set dummy ldconfig; ac_word=$2
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715 $as_echo_n "checking for $ac_word... " >&6; }
4716 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 case $LDCONFIG in
4720 [\\/]* | ?:[\\/]*)
4721 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in /sbin /usr/sbin $PATH
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4735 done
4736 done
4737 IFS=$as_save_IFS
4739 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4741 esac
4743 LDCONFIG=$ac_cv_path_LDCONFIG
4744 if test -n "$LDCONFIG"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4746 $as_echo "$LDCONFIG" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4753 # Find a good install program. We prefer a C program (faster),
4754 # so one script is as good as another. But avoid the broken or
4755 # incompatible versions:
4756 # SysV /etc/install, /usr/sbin/install
4757 # SunOS /usr/etc/install
4758 # IRIX /sbin/install
4759 # AIX /bin/install
4760 # AmigaOS /C/install, which installs bootblocks on floppy discs
4761 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4762 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4763 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4764 # OS/2's system install, which has a completely different semantic
4765 # ./install, which can be erroneously created by make from ./install.sh.
4766 # Reject install programs that cannot install multiple files.
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4768 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4769 if test -z "$INSTALL"; then
4770 if test "${ac_cv_path_install+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 # Account for people who put trailing slashes in PATH elements.
4779 case $as_dir/ in #((
4780 ./ | .// | /[cC]/* | \
4781 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4782 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4783 /usr/ucb/* ) ;;
4785 # OSF1 and SCO ODT 3.0 have their own names for install.
4786 # Don't use installbsd from OSF since it installs stuff as root
4787 # by default.
4788 for ac_prog in ginstall scoinst install; do
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4791 if test $ac_prog = install &&
4792 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4793 # AIX install. It has an incompatible calling convention.
4795 elif test $ac_prog = install &&
4796 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4797 # program-specific install script used by HP pwplus--don't use.
4799 else
4800 rm -rf conftest.one conftest.two conftest.dir
4801 echo one > conftest.one
4802 echo two > conftest.two
4803 mkdir conftest.dir
4804 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4805 test -s conftest.one && test -s conftest.two &&
4806 test -s conftest.dir/conftest.one &&
4807 test -s conftest.dir/conftest.two
4808 then
4809 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4810 break 3
4814 done
4815 done
4817 esac
4819 done
4820 IFS=$as_save_IFS
4822 rm -rf conftest.one conftest.two conftest.dir
4825 if test "${ac_cv_path_install+set}" = set; then
4826 INSTALL=$ac_cv_path_install
4827 else
4828 # As a last resort, use the slow shell script. Don't cache a
4829 # value for INSTALL within a source directory, because that will
4830 # break other packages using the cache if that directory is
4831 # removed, or if the value is a relative name.
4832 INSTALL=$ac_install_sh
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4836 $as_echo "$INSTALL" >&6; }
4838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4839 # It thinks the first close brace ends the variable substitution.
4840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4842 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4844 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4846 case "$INSTALL" in
4847 [\\/$]* | ?:[\\/]* ) ;;
4848 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4849 esac
4851 for ac_prog in lclint lint
4853 # Extract the first word of "$ac_prog", so it can be a program name with args.
4854 set dummy $ac_prog; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if test "${ac_cv_prog_LINT+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 if test -n "$LINT"; then
4861 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_LINT="$ac_prog"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4874 done
4875 done
4876 IFS=$as_save_IFS
4880 LINT=$ac_cv_prog_LINT
4881 if test -n "$LINT"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4883 $as_echo "$LINT" >&6; }
4884 else
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4890 test -n "$LINT" && break
4891 done
4893 if test "$LINT" = "lint"
4894 then
4895 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4900 for ac_prog in fontforge
4902 # Extract the first word of "$ac_prog", so it can be a program name with args.
4903 set dummy $ac_prog; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909 if test -n "$FONTFORGE"; then
4910 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_prog_FONTFORGE="$ac_prog"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4923 done
4924 done
4925 IFS=$as_save_IFS
4929 FONTFORGE=$ac_cv_prog_FONTFORGE
4930 if test -n "$FONTFORGE"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4932 $as_echo "$FONTFORGE" >&6; }
4933 else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4939 test -n "$FONTFORGE" && break
4940 done
4941 test -n "$FONTFORGE" || FONTFORGE="false"
4943 for ac_prog in pkg-config
4945 # Extract the first word of "$ac_prog", so it can be a program name with args.
4946 set dummy $ac_prog; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$PKG_CONFIG"; then
4953 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_PKG_CONFIG="$ac_prog"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4966 done
4967 done
4968 IFS=$as_save_IFS
4972 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4973 if test -n "$PKG_CONFIG"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4975 $as_echo "$PKG_CONFIG" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4982 test -n "$PKG_CONFIG" && break
4983 done
4984 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4986 for ac_prog in rsvg
4988 # Extract the first word of "$ac_prog", so it can be a program name with args.
4989 set dummy $ac_prog; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if test "${ac_cv_prog_RSVG+set}" = set; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 if test -n "$RSVG"; then
4996 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_prog_RSVG="$ac_prog"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5009 done
5010 done
5011 IFS=$as_save_IFS
5015 RSVG=$ac_cv_prog_RSVG
5016 if test -n "$RSVG"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5018 $as_echo "$RSVG" >&6; }
5019 else
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5025 test -n "$RSVG" && break
5026 done
5027 test -n "$RSVG" || RSVG="false"
5029 for ac_prog in convert
5031 # Extract the first word of "$ac_prog", so it can be a program name with args.
5032 set dummy $ac_prog; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_CONVERT+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$CONVERT"; then
5039 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_CONVERT="$ac_prog"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5052 done
5053 done
5054 IFS=$as_save_IFS
5058 CONVERT=$ac_cv_prog_CONVERT
5059 if test -n "$CONVERT"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5061 $as_echo "$CONVERT" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5068 test -n "$CONVERT" && break
5069 done
5070 test -n "$CONVERT" || CONVERT="false"
5072 for ac_prog in icotool
5074 # Extract the first word of "$ac_prog", so it can be a program name with args.
5075 set dummy $ac_prog; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 if test -n "$ICOTOOL"; then
5082 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_ICOTOOL="$ac_prog"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5095 done
5096 done
5097 IFS=$as_save_IFS
5101 ICOTOOL=$ac_cv_prog_ICOTOOL
5102 if test -n "$ICOTOOL"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5104 $as_echo "$ICOTOOL" >&6; }
5105 else
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5111 test -n "$ICOTOOL" && break
5112 done
5113 test -n "$ICOTOOL" || ICOTOOL="false"
5116 if test "x$enable_maintainer_mode" != "xyes"
5117 then
5118 MAINTAINER_MODE=\#
5120 else
5121 if test "$FONTFORGE" = "false"; then as_fn_append wine_warnings "|fontforge is missing, fonts can't be rebuilt."; fi
5122 if test "$RSVG" = "false"; then as_fn_append wine_warnings "|rsvg is missing, icons can't be rebuilt."; fi
5124 if test "$CONVERT" = false
5125 then
5126 as_fn_append wine_warnings "|imagemagick is missing, icons can't be rebuilt."
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5129 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5130 convert_version=`convert --version | head -n1`
5131 if test "x$convert_version" != "x"
5132 then
5133 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5134 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5135 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5136 then
5137 CONVERT=false
5138 as_fn_append wine_warnings "|imagemagick version 6.6 or newer is needed to rebuild icons."
5141 if test "$CONVERT" = false
5142 then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5144 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5145 else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5147 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5151 if test "$ICOTOOL" = false
5152 then
5153 as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5156 $as_echo_n "checking for recent enough icotool... " >&6; }
5157 icotool_version=`icotool --version | head -n1`
5158 if test "x$icotool_version" != "x"
5159 then
5160 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5161 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5162 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5163 then
5164 ICOTOOL=false
5165 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5168 if test "$ICOTOOL" = false
5169 then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5171 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5174 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5180 case $host_cpu in
5181 *i[3456789]86*)
5182 # Extract the first word of "prelink", so it can be a program name with args.
5183 set dummy prelink; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if test "${ac_cv_path_PRELINK+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 case $PRELINK in
5190 [\\/]* | ?:[\\/]*)
5191 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in /sbin /usr/sbin $PATH
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5205 done
5206 done
5207 IFS=$as_save_IFS
5209 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5211 esac
5213 PRELINK=$ac_cv_path_PRELINK
5214 if test -n "$PRELINK"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
5216 $as_echo "$PRELINK" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5224 esac
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5228 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5229 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 ac_check_lib_save_LIBS=$LIBS
5233 LIBS="-li386 $LIBS"
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5237 /* Override any GCC internal prototype to avoid an error.
5238 Use char because int might match the return type of a GCC
5239 builtin and then its argument prototype would still apply. */
5240 #ifdef __cplusplus
5241 extern "C"
5242 #endif
5243 char i386_set_ldt ();
5245 main ()
5247 return i386_set_ldt ();
5249 return 0;
5251 _ACEOF
5252 if ac_fn_c_try_link "$LINENO"; then :
5253 ac_cv_lib_i386_i386_set_ldt=yes
5254 else
5255 ac_cv_lib_i386_i386_set_ldt=no
5257 rm -f core conftest.err conftest.$ac_objext \
5258 conftest$ac_exeext conftest.$ac_ext
5259 LIBS=$ac_check_lib_save_LIBS
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5262 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5263 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5264 cat >>confdefs.h <<_ACEOF
5265 #define HAVE_LIBI386 1
5266 _ACEOF
5268 LIBS="-li386 $LIBS"
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5273 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5274 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 ac_check_lib_save_LIBS=$LIBS
5278 LIBS="-lossaudio $LIBS"
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5282 /* Override any GCC internal prototype to avoid an error.
5283 Use char because int might match the return type of a GCC
5284 builtin and then its argument prototype would still apply. */
5285 #ifdef __cplusplus
5286 extern "C"
5287 #endif
5288 char _oss_ioctl ();
5290 main ()
5292 return _oss_ioctl ();
5294 return 0;
5296 _ACEOF
5297 if ac_fn_c_try_link "$LINENO"; then :
5298 ac_cv_lib_ossaudio__oss_ioctl=yes
5299 else
5300 ac_cv_lib_ossaudio__oss_ioctl=no
5302 rm -f core conftest.err conftest.$ac_objext \
5303 conftest$ac_exeext conftest.$ac_ext
5304 LIBS=$ac_check_lib_save_LIBS
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5307 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5308 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5309 cat >>confdefs.h <<_ACEOF
5310 #define HAVE_LIBOSSAUDIO 1
5311 _ACEOF
5313 LIBS="-lossaudio $LIBS"
5318 XLIB=""
5320 OPENGL_LIBS=""
5324 # Check whether --enable-largefile was given.
5325 if test "${enable_largefile+set}" = set; then :
5326 enableval=$enable_largefile;
5329 if test "$enable_largefile" != no; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5332 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5333 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 ac_cv_sys_largefile_CC=no
5337 if test "$GCC" != yes; then
5338 ac_save_CC=$CC
5339 while :; do
5340 # IRIX 6.2 and later do not support large files by default,
5341 # so use the C compiler's -n32 option if that helps.
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <sys/types.h>
5345 /* Check that off_t can represent 2**63 - 1 correctly.
5346 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5347 since some C++ compilers masquerading as C compilers
5348 incorrectly reject 9223372036854775807. */
5349 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5350 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5351 && LARGE_OFF_T % 2147483647 == 1)
5352 ? 1 : -1];
5354 main ()
5358 return 0;
5360 _ACEOF
5361 if ac_fn_c_try_compile "$LINENO"; then :
5362 break
5364 rm -f core conftest.err conftest.$ac_objext
5365 CC="$CC -n32"
5366 if ac_fn_c_try_compile "$LINENO"; then :
5367 ac_cv_sys_largefile_CC=' -n32'; break
5369 rm -f core conftest.err conftest.$ac_objext
5370 break
5371 done
5372 CC=$ac_save_CC
5373 rm -f conftest.$ac_ext
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5377 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5378 if test "$ac_cv_sys_largefile_CC" != no; then
5379 CC=$CC$ac_cv_sys_largefile_CC
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5383 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5384 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 while :; do
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5390 #include <sys/types.h>
5391 /* Check that off_t can represent 2**63 - 1 correctly.
5392 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5393 since some C++ compilers masquerading as C compilers
5394 incorrectly reject 9223372036854775807. */
5395 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5396 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5397 && LARGE_OFF_T % 2147483647 == 1)
5398 ? 1 : -1];
5400 main ()
5404 return 0;
5406 _ACEOF
5407 if ac_fn_c_try_compile "$LINENO"; then :
5408 ac_cv_sys_file_offset_bits=no; break
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 #define _FILE_OFFSET_BITS 64
5414 #include <sys/types.h>
5415 /* Check that off_t can represent 2**63 - 1 correctly.
5416 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5417 since some C++ compilers masquerading as C compilers
5418 incorrectly reject 9223372036854775807. */
5419 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5421 && LARGE_OFF_T % 2147483647 == 1)
5422 ? 1 : -1];
5424 main ()
5428 return 0;
5430 _ACEOF
5431 if ac_fn_c_try_compile "$LINENO"; then :
5432 ac_cv_sys_file_offset_bits=64; break
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 ac_cv_sys_file_offset_bits=unknown
5436 break
5437 done
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5440 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5441 case $ac_cv_sys_file_offset_bits in #(
5442 no | unknown) ;;
5444 cat >>confdefs.h <<_ACEOF
5445 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5446 _ACEOF
5448 esac
5449 rm -rf conftest*
5450 if test $ac_cv_sys_file_offset_bits = unknown; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5452 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5453 if test "${ac_cv_sys_large_files+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 while :; do
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5459 #include <sys/types.h>
5460 /* Check that off_t can represent 2**63 - 1 correctly.
5461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5462 since some C++ compilers masquerading as C compilers
5463 incorrectly reject 9223372036854775807. */
5464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5466 && LARGE_OFF_T % 2147483647 == 1)
5467 ? 1 : -1];
5469 main ()
5473 return 0;
5475 _ACEOF
5476 if ac_fn_c_try_compile "$LINENO"; then :
5477 ac_cv_sys_large_files=no; break
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5482 #define _LARGE_FILES 1
5483 #include <sys/types.h>
5484 /* Check that off_t can represent 2**63 - 1 correctly.
5485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5486 since some C++ compilers masquerading as C compilers
5487 incorrectly reject 9223372036854775807. */
5488 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5490 && LARGE_OFF_T % 2147483647 == 1)
5491 ? 1 : -1];
5493 main ()
5497 return 0;
5499 _ACEOF
5500 if ac_fn_c_try_compile "$LINENO"; then :
5501 ac_cv_sys_large_files=1; break
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 ac_cv_sys_large_files=unknown
5505 break
5506 done
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5509 $as_echo "$ac_cv_sys_large_files" >&6; }
5510 case $ac_cv_sys_large_files in #(
5511 no | unknown) ;;
5513 cat >>confdefs.h <<_ACEOF
5514 #define _LARGE_FILES $ac_cv_sys_large_files
5515 _ACEOF
5517 esac
5518 rm -rf conftest*
5523 ac_ext=c
5524 ac_cpp='$CPP $CPPFLAGS'
5525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5529 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5530 # On Suns, sometimes $CPP names a directory.
5531 if test -n "$CPP" && test -d "$CPP"; then
5532 CPP=
5534 if test -z "$CPP"; then
5535 if test "${ac_cv_prog_CPP+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 # Double quotes because CPP needs to be expanded
5539 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5541 ac_preproc_ok=false
5542 for ac_c_preproc_warn_flag in '' yes
5544 # Use a header file that comes with gcc, so configuring glibc
5545 # with a fresh cross-compiler works.
5546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5547 # <limits.h> exists even on freestanding compilers.
5548 # On the NeXT, cc -E runs the code through the compiler's parser,
5549 # not just through cpp. "Syntax error" is here to catch this case.
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #ifdef __STDC__
5553 # include <limits.h>
5554 #else
5555 # include <assert.h>
5556 #endif
5557 Syntax error
5558 _ACEOF
5559 if ac_fn_c_try_cpp "$LINENO"; then :
5561 else
5562 # Broken: fails on valid input.
5563 continue
5565 rm -f conftest.err conftest.$ac_ext
5567 # OK, works on sane cases. Now check whether nonexistent headers
5568 # can be detected and how.
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 #include <ac_nonexistent.h>
5572 _ACEOF
5573 if ac_fn_c_try_cpp "$LINENO"; then :
5574 # Broken: success on invalid input.
5575 continue
5576 else
5577 # Passes both tests.
5578 ac_preproc_ok=:
5579 break
5581 rm -f conftest.err conftest.$ac_ext
5583 done
5584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5585 rm -f conftest.err conftest.$ac_ext
5586 if $ac_preproc_ok; then :
5587 break
5590 done
5591 ac_cv_prog_CPP=$CPP
5594 CPP=$ac_cv_prog_CPP
5595 else
5596 ac_cv_prog_CPP=$CPP
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5599 $as_echo "$CPP" >&6; }
5600 ac_preproc_ok=false
5601 for ac_c_preproc_warn_flag in '' yes
5603 # Use a header file that comes with gcc, so configuring glibc
5604 # with a fresh cross-compiler works.
5605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5606 # <limits.h> exists even on freestanding compilers.
5607 # On the NeXT, cc -E runs the code through the compiler's parser,
5608 # not just through cpp. "Syntax error" is here to catch this case.
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5611 #ifdef __STDC__
5612 # include <limits.h>
5613 #else
5614 # include <assert.h>
5615 #endif
5616 Syntax error
5617 _ACEOF
5618 if ac_fn_c_try_cpp "$LINENO"; then :
5620 else
5621 # Broken: fails on valid input.
5622 continue
5624 rm -f conftest.err conftest.$ac_ext
5626 # OK, works on sane cases. Now check whether nonexistent headers
5627 # can be detected and how.
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <ac_nonexistent.h>
5631 _ACEOF
5632 if ac_fn_c_try_cpp "$LINENO"; then :
5633 # Broken: success on invalid input.
5634 continue
5635 else
5636 # Passes both tests.
5637 ac_preproc_ok=:
5638 break
5640 rm -f conftest.err conftest.$ac_ext
5642 done
5643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5644 rm -f conftest.err conftest.$ac_ext
5645 if $ac_preproc_ok; then :
5647 else
5648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5650 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5651 See \`config.log' for more details." "$LINENO" 5; }
5654 ac_ext=c
5655 ac_cpp='$CPP $CPPFLAGS'
5656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5662 $as_echo_n "checking for ANSI C header files... " >&6; }
5663 if test "${ac_cv_header_stdc+set}" = set; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 #include <stdlib.h>
5669 #include <stdarg.h>
5670 #include <string.h>
5671 #include <float.h>
5674 main ()
5678 return 0;
5680 _ACEOF
5681 if ac_fn_c_try_compile "$LINENO"; then :
5682 ac_cv_header_stdc=yes
5683 else
5684 ac_cv_header_stdc=no
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 if test $ac_cv_header_stdc = yes; then
5689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #include <string.h>
5694 _ACEOF
5695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5696 $EGREP "memchr" >/dev/null 2>&1; then :
5698 else
5699 ac_cv_header_stdc=no
5701 rm -f conftest*
5705 if test $ac_cv_header_stdc = yes; then
5706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 #include <stdlib.h>
5711 _ACEOF
5712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5713 $EGREP "free" >/dev/null 2>&1; then :
5715 else
5716 ac_cv_header_stdc=no
5718 rm -f conftest*
5722 if test $ac_cv_header_stdc = yes; then
5723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5724 if test "$cross_compiling" = yes; then :
5726 else
5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5729 #include <ctype.h>
5730 #include <stdlib.h>
5731 #if ((' ' & 0x0FF) == 0x020)
5732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5734 #else
5735 # define ISLOWER(c) \
5736 (('a' <= (c) && (c) <= 'i') \
5737 || ('j' <= (c) && (c) <= 'r') \
5738 || ('s' <= (c) && (c) <= 'z'))
5739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5740 #endif
5742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5744 main ()
5746 int i;
5747 for (i = 0; i < 256; i++)
5748 if (XOR (islower (i), ISLOWER (i))
5749 || toupper (i) != TOUPPER (i))
5750 return 2;
5751 return 0;
5753 _ACEOF
5754 if ac_fn_c_try_run "$LINENO"; then :
5756 else
5757 ac_cv_header_stdc=no
5759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5760 conftest.$ac_objext conftest.beam conftest.$ac_ext
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5766 $as_echo "$ac_cv_header_stdc" >&6; }
5767 if test $ac_cv_header_stdc = yes; then
5769 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5773 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5774 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5775 inttypes.h stdint.h unistd.h
5776 do :
5777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5778 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5780 eval as_val=\$$as_ac_Header
5781 if test "x$as_val" = x""yes; then :
5782 cat >>confdefs.h <<_ACEOF
5783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5784 _ACEOF
5788 done
5791 for ac_header in \
5792 AL/al.h \
5793 AudioToolbox/AudioConverter.h \
5794 AudioUnit/AudioUnit.h \
5795 Carbon/Carbon.h \
5796 CoreAudio/CoreAudio.h \
5797 DiskArbitration/DiskArbitration.h \
5798 IOKit/IOKitLib.h \
5799 IOKit/hid/IOHIDLib.h \
5800 OpenAL/al.h \
5801 alias.h \
5802 alsa/asoundlib.h \
5803 arpa/inet.h \
5804 arpa/nameser.h \
5805 asm/types.h \
5806 capi20.h \
5807 curses.h \
5808 direct.h \
5809 dirent.h \
5810 dlfcn.h \
5811 elf.h \
5812 float.h \
5813 fnmatch.h \
5814 fontconfig/fontconfig.h \
5815 getopt.h \
5816 grp.h \
5817 gsm.h \
5818 gsm/gsm.h \
5819 ieeefp.h \
5820 inet/mib2.h \
5821 io.h \
5822 jack/jack.h \
5823 jpeglib.h \
5824 kstat.h \
5825 lber.h \
5826 lcms.h \
5827 lcms/lcms.h \
5828 ldap.h \
5829 libaudioio.h \
5830 link.h \
5831 linux/cdrom.h \
5832 linux/compiler.h \
5833 linux/hdreg.h \
5834 linux/input.h \
5835 linux/ioctl.h \
5836 linux/joystick.h \
5837 linux/major.h \
5838 linux/param.h \
5839 linux/serial.h \
5840 linux/types.h \
5841 linux/ucdrom.h \
5842 mach-o/nlist.h \
5843 mach/mach.h \
5844 mach/machine.h \
5845 machine/cpu.h \
5846 machine/limits.h \
5847 machine/soundcard.h \
5848 machine/sysarch.h \
5849 mntent.h \
5850 mpg123.h \
5851 ncurses.h \
5852 netdb.h \
5853 netinet/in.h \
5854 netinet/in_systm.h \
5855 netinet/tcp.h \
5856 netinet/tcp_fsm.h \
5857 openssl/err.h \
5858 openssl/ssl.h \
5859 png.h \
5860 poll.h \
5861 port.h \
5862 process.h \
5863 pthread.h \
5864 pwd.h \
5865 regex.h \
5866 sched.h \
5867 scsi/scsi.h \
5868 scsi/scsi_ioctl.h \
5869 scsi/sg.h \
5870 soundcard.h \
5871 stdbool.h \
5872 stdint.h \
5873 strings.h \
5874 stropts.h \
5875 sys/asoundlib.h \
5876 sys/cdio.h \
5877 sys/elf32.h \
5878 sys/epoll.h \
5879 sys/errno.h \
5880 sys/event.h \
5881 sys/exec_elf.h \
5882 sys/filio.h \
5883 sys/inotify.h \
5884 sys/ioctl.h \
5885 sys/ipc.h \
5886 sys/limits.h \
5887 sys/link.h \
5888 sys/mman.h \
5889 sys/modem.h \
5890 sys/msg.h \
5891 sys/mtio.h \
5892 sys/param.h \
5893 sys/poll.h \
5894 sys/prctl.h \
5895 sys/protosw.h \
5896 sys/ptrace.h \
5897 sys/resource.h \
5898 sys/scsiio.h \
5899 sys/shm.h \
5900 sys/signal.h \
5901 sys/socket.h \
5902 sys/socketvar.h \
5903 sys/sockio.h \
5904 sys/soundcard.h \
5905 sys/statvfs.h \
5906 sys/strtio.h \
5907 sys/syscall.h \
5908 sys/tihdr.h \
5909 sys/time.h \
5910 sys/timeout.h \
5911 sys/times.h \
5912 sys/uio.h \
5913 sys/un.h \
5914 sys/utsname.h \
5915 sys/vm86.h \
5916 sys/wait.h \
5917 syscall.h \
5918 termios.h \
5919 tiffio.h \
5920 unistd.h \
5921 utime.h \
5922 valgrind/memcheck.h \
5923 valgrind/valgrind.h \
5924 zlib.h
5926 do :
5927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5928 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5929 eval as_val=\$$as_ac_Header
5930 if test "x$as_val" = x""yes; then :
5931 cat >>confdefs.h <<_ACEOF
5932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5933 _ACEOF
5937 done
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5940 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5941 if test "${ac_cv_header_stat_broken+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5946 #include <sys/types.h>
5947 #include <sys/stat.h>
5949 #if defined S_ISBLK && defined S_IFDIR
5950 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5951 #endif
5953 #if defined S_ISBLK && defined S_IFCHR
5954 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5955 #endif
5957 #if defined S_ISLNK && defined S_IFREG
5958 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5959 #endif
5961 #if defined S_ISSOCK && defined S_IFREG
5962 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5963 #endif
5965 _ACEOF
5966 if ac_fn_c_try_compile "$LINENO"; then :
5967 ac_cv_header_stat_broken=no
5968 else
5969 ac_cv_header_stat_broken=yes
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5974 $as_echo "$ac_cv_header_stat_broken" >&6; }
5975 if test $ac_cv_header_stat_broken = yes; then
5977 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5983 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5984 do :
5985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5986 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5987 #ifdef HAVE_SYS_PARAM_H
5988 # include <sys/param.h>
5989 #endif
5991 eval as_val=\$$as_ac_Header
5992 if test "x$as_val" = x""yes; then :
5993 cat >>confdefs.h <<_ACEOF
5994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5995 _ACEOF
5999 done
6002 for ac_header in \
6003 netinet/ip.h \
6004 net/if.h \
6005 net/if_arp.h \
6006 net/if_dl.h \
6007 net/if_types.h \
6008 net/route.h \
6009 netinet/if_ether.h \
6010 netinet/if_inarp.h \
6011 netinet/in_pcb.h \
6012 netinet/ip_icmp.h \
6013 netinet/ip_var.h \
6014 netinet/udp.h \
6015 netipx/ipx.h \
6017 do :
6018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6019 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6020 #ifdef HAVE_SYS_SOCKET_H
6021 # include <sys/socket.h>
6022 #endif
6023 #ifdef HAVE_SYS_SOCKETVAR_H
6024 # include <sys/socketvar.h>
6025 #endif
6026 #ifdef HAVE_NET_ROUTE_H
6027 # include <net/route.h>
6028 #endif
6029 #ifdef HAVE_NETINET_IN_H
6030 # include <netinet/in.h>
6031 #endif
6032 #ifdef HAVE_NETINET_IN_SYSTM_H
6033 # include <netinet/in_systm.h>
6034 #endif
6035 #ifdef HAVE_NET_IF_H
6036 # include <net/if.h>
6037 #endif
6038 #ifdef HAVE_NETINET_IP_H
6039 # include <netinet/ip.h>
6040 #endif
6042 eval as_val=\$$as_ac_Header
6043 if test "x$as_val" = x""yes; then :
6044 cat >>confdefs.h <<_ACEOF
6045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6046 _ACEOF
6050 done
6053 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6054 do :
6055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6056 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6057 #ifdef HAVE_ALIAS_H
6058 # include <alias.h>
6059 #endif
6060 #ifdef HAVE_SYS_SOCKET_H
6061 # include <sys/socket.h>
6062 #endif
6063 #ifdef HAVE_SYS_SOCKETVAR_H
6064 # include <sys/socketvar.h>
6065 #endif
6066 #ifdef HAVE_SYS_TIMEOUT_H
6067 # include <sys/timeout.h>
6068 #endif
6069 #ifdef HAVE_NETINET_IN_H
6070 # include <netinet/in.h>
6071 #endif
6072 #ifdef HAVE_NETINET_IN_SYSTM_H
6073 # include <netinet/in_systm.h>
6074 #endif
6075 #ifdef HAVE_NETINET_IP_H
6076 # include <netinet/ip.h>
6077 #endif
6078 #ifdef HAVE_NETINET_IP_VAR_H
6079 # include <netinet/ip_var.h>
6080 #endif
6081 #ifdef HAVE_NETINET_IP_ICMP_H
6082 # include <netinet/ip_icmp.h>
6083 #endif
6084 #ifdef HAVE_NETINET_UDP_H
6085 # include <netinet/udp.h>
6086 #endif
6087 #ifdef HAVE_NETINET_TCP_H
6088 # include <netinet/tcp.h>
6089 #endif
6090 #ifdef HAVE_NETINET_TCP_TIMER_H
6091 #include <netinet/tcp_timer.h>
6092 #endif
6094 eval as_val=\$$as_ac_Header
6095 if test "x$as_val" = x""yes; then :
6096 cat >>confdefs.h <<_ACEOF
6097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6098 _ACEOF
6102 done
6105 for ac_header in linux/ipx.h linux/irda.h
6106 do :
6107 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6108 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6109 #ifdef HAVE_ASM_TYPES_H
6110 # include <asm/types.h>
6111 #endif
6112 #ifdef HAVE_SYS_SOCKET_H
6113 # include <sys/socket.h>
6114 #endif
6115 #ifdef HAVE_LINUX_TYPES_H
6116 # include <linux/types.h>
6117 #endif
6119 eval as_val=\$$as_ac_Header
6120 if test "x$as_val" = x""yes; then :
6121 cat >>confdefs.h <<_ACEOF
6122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6123 _ACEOF
6127 done
6130 for ac_header in mach-o/dyld_images.h
6131 do :
6132 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6133 # include <stdbool.h>
6134 #endif
6135 #ifdef HAVE_STDINT_H
6136 # include <stdint.h>
6137 #endif
6139 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6140 cat >>confdefs.h <<_ACEOF
6141 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6142 _ACEOF
6146 done
6149 for ac_header in resolv.h
6150 do :
6151 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6152 #ifdef HAVE_SYS_SOCKET_H
6153 # include <sys/socket.h>
6154 #endif
6155 #ifdef HAVE_NETINET_IN_H
6156 # include <netinet/in.h>
6157 #endif
6158 #ifdef HAVE_ARPA_NAMESER_H
6159 # include <arpa/nameser.h>
6160 #endif
6162 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6163 cat >>confdefs.h <<_ACEOF
6164 #define HAVE_RESOLV_H 1
6165 _ACEOF
6169 done
6172 for ac_header in ifaddrs.h
6173 do :
6174 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6176 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6177 cat >>confdefs.h <<_ACEOF
6178 #define HAVE_IFADDRS_H 1
6179 _ACEOF
6183 done
6186 for ac_header in ucontext.h
6187 do :
6188 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6190 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6191 cat >>confdefs.h <<_ACEOF
6192 #define HAVE_UCONTEXT_H 1
6193 _ACEOF
6197 done
6200 for ac_header in sys/thr.h
6201 do :
6202 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6203 #ifdef HAVE_UCONTEXT_H
6204 #include <ucontext.h>
6205 #endif
6207 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6208 cat >>confdefs.h <<_ACEOF
6209 #define HAVE_SYS_THR_H 1
6210 _ACEOF
6214 done
6217 for ac_header in pthread_np.h
6218 do :
6219 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6220 #include <pthread.h>
6221 #endif
6223 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6224 cat >>confdefs.h <<_ACEOF
6225 #define HAVE_PTHREAD_NP_H 1
6226 _ACEOF
6230 done
6233 for ac_header in linux/videodev.h
6234 do :
6235 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6236 #include <sys/time.h>
6237 #endif
6238 #include <sys/types.h>
6239 #ifdef HAVE_ASM_TYPES_H
6240 #include <asm/types.h>
6241 #endif
6243 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6244 cat >>confdefs.h <<_ACEOF
6245 #define HAVE_LINUX_VIDEODEV_H 1
6246 _ACEOF
6250 done
6253 for ac_header in linux/capi.h
6254 do :
6255 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6257 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6258 cat >>confdefs.h <<_ACEOF
6259 #define HAVE_LINUX_CAPI_H 1
6260 _ACEOF
6264 done
6268 DLLEXT=""
6270 DLLFLAGS="-D_REENTRANT"
6272 LDSHARED=""
6274 LDDLLFLAGS=""
6276 LIBEXT="so"
6278 IMPLIBEXT="def"
6280 LDRPATH_INSTALL=""
6282 LDRPATH_LOCAL=""
6284 STATIC_IMPLIBEXT="def.a"
6285 # Extract the first word of "ldd", so it can be a program name with args.
6286 set dummy ldd; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_path_LDD+set}" = set; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 case $LDD in
6293 [\\/]* | ?:[\\/]*)
6294 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 as_dummy="/sbin:/usr/sbin:$PATH"
6299 for as_dir in $as_dummy
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6309 done
6310 done
6311 IFS=$as_save_IFS
6313 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6315 esac
6317 LDD=$ac_cv_path_LDD
6318 if test -n "$LDD"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6320 $as_echo "$LDD" >&6; }
6321 else
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6328 case $host_os in
6329 cygwin*|mingw32*)
6330 if test -n "$ac_tool_prefix"; then
6331 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6332 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 if test -n "$DLLTOOL"; then
6339 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6344 IFS=$as_save_IFS
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 break 2
6352 done
6353 done
6354 IFS=$as_save_IFS
6358 DLLTOOL=$ac_cv_prog_DLLTOOL
6359 if test -n "$DLLTOOL"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6361 $as_echo "$DLLTOOL" >&6; }
6362 else
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6369 if test -z "$ac_cv_prog_DLLTOOL"; then
6370 ac_ct_DLLTOOL=$DLLTOOL
6371 # Extract the first word of "dlltool", so it can be a program name with args.
6372 set dummy dlltool; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 if test -n "$ac_ct_DLLTOOL"; then
6379 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6380 else
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
6392 done
6393 done
6394 IFS=$as_save_IFS
6398 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6399 if test -n "$ac_ct_DLLTOOL"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6401 $as_echo "$ac_ct_DLLTOOL" >&6; }
6402 else
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6407 if test "x$ac_ct_DLLTOOL" = x; then
6408 DLLTOOL="false"
6409 else
6410 case $cross_compiling:$ac_tool_warned in
6411 yes:)
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6414 ac_tool_warned=yes ;;
6415 esac
6416 DLLTOOL=$ac_ct_DLLTOOL
6418 else
6419 DLLTOOL="$ac_cv_prog_DLLTOOL"
6422 if test -n "$ac_tool_prefix"; then
6423 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6424 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 if test -n "$DLLWRAP"; then
6431 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 break 2
6444 done
6445 done
6446 IFS=$as_save_IFS
6450 DLLWRAP=$ac_cv_prog_DLLWRAP
6451 if test -n "$DLLWRAP"; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6453 $as_echo "$DLLWRAP" >&6; }
6454 else
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6461 if test -z "$ac_cv_prog_DLLWRAP"; then
6462 ac_ct_DLLWRAP=$DLLWRAP
6463 # Extract the first word of "dllwrap", so it can be a program name with args.
6464 set dummy dllwrap; ac_word=$2
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466 $as_echo_n "checking for $ac_word... " >&6; }
6467 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 if test -n "$ac_ct_DLLWRAP"; then
6471 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6472 else
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2
6484 done
6485 done
6486 IFS=$as_save_IFS
6490 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6491 if test -n "$ac_ct_DLLWRAP"; then
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6493 $as_echo "$ac_ct_DLLWRAP" >&6; }
6494 else
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 $as_echo "no" >&6; }
6499 if test "x$ac_ct_DLLWRAP" = x; then
6500 DLLWRAP="false"
6501 else
6502 case $cross_compiling:$ac_tool_warned in
6503 yes:)
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6506 ac_tool_warned=yes ;;
6507 esac
6508 DLLWRAP=$ac_ct_DLLWRAP
6510 else
6511 DLLWRAP="$ac_cv_prog_DLLWRAP"
6514 if test "$DLLWRAP" = "false"; then
6515 LIBEXT="a"
6516 else
6517 LIBEXT="dll"
6519 IMPLIBEXT="a"
6520 STATIC_IMPLIBEXT="a"
6521 enable_iphlpapi=${enable_iphlpapi:-no}
6522 enable_kernel32=${enable_kernel32:-no}
6523 enable_msvcrt=${enable_msvcrt:-no}
6524 enable_ntdll=${enable_ntdll:-no}
6525 enable_ws2_32=${enable_ws2_32:-no}
6526 enable_loader=${enable_loader:-no}
6527 enable_server=${enable_server:-no}
6528 with_x=${with_x:-no}
6529 with_pthread=${with_pthread:-no}
6531 darwin*|macosx*)
6532 DLLEXT=".so"
6533 LIBEXT="dylib"
6534 DLLFLAGS="$DLLFLAGS -fPIC"
6535 LDDLLFLAGS="-bundle -multiply_defined suppress"
6536 LIBWINE_LDFLAGS="-multiply_defined suppress"
6537 LDSHARED="\$(CC) -dynamiclib"
6538 STRIP="$STRIP -x"
6539 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6540 SECURITYLIB="-framework Security -framework CoreFoundation"
6542 COREFOUNDATIONLIB="-framework CoreFoundation"
6544 IOKITLIB="-framework IOKit -framework CoreFoundation"
6546 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6548 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6549 then
6550 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6553 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6554 then
6555 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6557 ac_save_LIBS="$LIBS"
6558 if test "$ac_cv_header_AudioToolbox_AudioConverter_h" = "yes"
6559 then
6560 LIBS="$LIBS $COREAUDIO"
6561 LIBS="$ac_save_LIBS"
6564 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6565 then
6566 FRAMEWORK_OPENAL="-framework OpenAL"
6569 cat >>confdefs.h <<_ACEOF
6570 #define HAVE_OPENAL 1
6571 _ACEOF
6573 ac_cv_lib_openal=yes
6575 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6576 then
6577 ac_save_LIBS="$LIBS"
6578 LIBS="$LIBS $IOKITLIB"
6579 for ac_func in IOHIDManagerCreate
6580 do :
6581 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6582 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6583 cat >>confdefs.h <<_ACEOF
6584 #define HAVE_IOHIDMANAGERCREATE 1
6585 _ACEOF
6588 done
6590 LIBS="$ac_save_LIBS"
6592 case $host_cpu in
6593 *powerpc*)
6594 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6595 esac
6596 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6597 then
6598 CARBONLIB="-framework Carbon"
6600 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6602 if test "x$enable_win16" = "xyes"
6603 then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6605 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6606 if test "$cross_compiling" = yes; then :
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6608 $as_echo "cross-compiling, assuming yes" >&6; }
6609 else
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612 asm(".text\n"
6613 "bad:\tnop;nop\n"
6614 "good:\tnop;nop\n\t"
6615 ".globl _testfunc\n"
6616 "_testfunc:\tcallw good");
6617 extern void testfunc();
6619 main ()
6621 unsigned short *p = (unsigned short *)testfunc;
6622 return p[0] != 0xe866 || p[1] != 0xfffa
6624 return 0;
6626 _ACEOF
6627 if ac_fn_c_try_run "$LINENO"; then :
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6629 $as_echo "yes" >&6; }
6630 else
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6633 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
6635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6636 conftest.$ac_objext conftest.beam conftest.$ac_ext
6642 DLLFLAGS="$DLLFLAGS -fPIC"
6643 DLLEXT=".so"
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6645 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6646 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 ac_wine_try_cflags_saved=$CFLAGS
6650 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652 /* end confdefs.h. */
6653 void myfunc() {}
6654 _ACEOF
6655 if ac_fn_c_try_link "$LINENO"; then :
6656 ac_cv_c_dll_gnuelf="yes"
6657 else
6658 ac_cv_c_dll_gnuelf="no"
6660 rm -f core conftest.err conftest.$ac_objext \
6661 conftest$ac_exeext conftest.$ac_ext
6662 CFLAGS=$ac_wine_try_cflags_saved
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6665 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6666 if test "$ac_cv_c_dll_gnuelf" = "yes"
6667 then
6668 LDSHARED="\$(CC) -shared"
6669 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6671 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6672 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 ac_wine_try_cflags_saved=$CFLAGS
6676 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6679 int main(int argc, char **argv) { return 0; }
6680 _ACEOF
6681 if ac_fn_c_try_link "$LINENO"; then :
6682 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6683 else
6684 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6686 rm -f core conftest.err conftest.$ac_objext \
6687 conftest$ac_exeext conftest.$ac_ext
6688 CFLAGS=$ac_wine_try_cflags_saved
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6691 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6692 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6693 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6694 else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6696 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6697 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 ac_wine_try_cflags_saved=$CFLAGS
6701 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 int main(int argc, char **argv) { return 0; }
6705 _ACEOF
6706 if ac_fn_c_try_link "$LINENO"; then :
6707 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6708 else
6709 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6711 rm -f core conftest.err conftest.$ac_objext \
6712 conftest$ac_exeext conftest.$ac_ext
6713 CFLAGS=$ac_wine_try_cflags_saved
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6716 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6717 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6718 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6723 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6724 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 ac_wine_try_cflags_saved=$CFLAGS
6728 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6731 int main(int argc, char **argv) { return 0; }
6732 _ACEOF
6733 if ac_fn_c_try_link "$LINENO"; then :
6734 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6735 else
6736 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6738 rm -f core conftest.err conftest.$ac_objext \
6739 conftest$ac_exeext conftest.$ac_ext
6740 CFLAGS=$ac_wine_try_cflags_saved
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6743 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6744 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6745 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6748 { $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
6749 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6750 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 ac_wine_try_cflags_saved=$CFLAGS
6754 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6757 int main(int argc, char **argv) { return 0; }
6758 _ACEOF
6759 if ac_fn_c_try_link "$LINENO"; then :
6760 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6761 else
6762 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6764 rm -f core conftest.err conftest.$ac_objext \
6765 conftest$ac_exeext conftest.$ac_ext
6766 CFLAGS=$ac_wine_try_cflags_saved
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6769 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6770 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6771 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6774 echo '{ global: *; };' >conftest.map
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6776 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6777 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 ac_wine_try_cflags_saved=$CFLAGS
6781 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784 int main(int argc, char **argv) { return 0; }
6785 _ACEOF
6786 if ac_fn_c_try_link "$LINENO"; then :
6787 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6788 else
6789 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6791 rm -f core conftest.err conftest.$ac_objext \
6792 conftest$ac_exeext conftest.$ac_ext
6793 CFLAGS=$ac_wine_try_cflags_saved
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6796 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6797 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6798 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6800 rm -f conftest.map
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6803 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6804 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6805 $as_echo_n "(cached) " >&6
6806 else
6807 ac_wine_try_cflags_saved=$CFLAGS
6808 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6811 int main(int argc, char **argv) { return 0; }
6812 _ACEOF
6813 if ac_fn_c_try_link "$LINENO"; then :
6814 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6815 else
6816 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6818 rm -f core conftest.err conftest.$ac_objext \
6819 conftest$ac_exeext conftest.$ac_ext
6820 CFLAGS=$ac_wine_try_cflags_saved
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6823 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6824 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6825 LDEXECFLAGS="-Wl,--export-dynamic"
6829 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6831 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 ac_wine_try_cflags_saved=$CFLAGS
6836 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 int main(int argc, char **argv) { return 0; }
6840 _ACEOF
6841 if ac_fn_c_try_link "$LINENO"; then :
6842 eval "$as_ac_var=yes"
6843 else
6844 eval "$as_ac_var=no"
6846 rm -f core conftest.err conftest.$ac_objext \
6847 conftest$ac_exeext conftest.$ac_ext
6848 CFLAGS=$ac_wine_try_cflags_saved
6850 eval ac_res=\$$as_ac_var
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6852 $as_echo "$ac_res" >&6; }
6853 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6854 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6855 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6856 else
6857 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6859 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 ac_wine_try_cflags_saved=$CFLAGS
6864 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6867 int main(int argc, char **argv) { return 0; }
6868 _ACEOF
6869 if ac_fn_c_try_link "$LINENO"; then :
6870 eval "$as_ac_var=yes"
6871 else
6872 eval "$as_ac_var=no"
6874 rm -f core conftest.err conftest.$ac_objext \
6875 conftest$ac_exeext conftest.$ac_ext
6876 CFLAGS=$ac_wine_try_cflags_saved
6878 eval ac_res=\$$as_ac_var
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6880 $as_echo "$ac_res" >&6; }
6881 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6882 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6883 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6888 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6889 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 ac_wine_try_cflags_saved=$CFLAGS
6893 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 int main(int argc, char **argv) { return 0; }
6897 _ACEOF
6898 if ac_fn_c_try_link "$LINENO"; then :
6899 ac_cv_cflags__Wl___enable_new_dtags=yes
6900 else
6901 ac_cv_cflags__Wl___enable_new_dtags=no
6903 rm -f core conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6905 CFLAGS=$ac_wine_try_cflags_saved
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6908 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6909 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6910 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6913 case $host_cpu in
6914 *i[3456789]86* | x86_64)
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6916 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6917 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 ac_wine_try_cflags_saved=$CFLAGS
6921 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924 int main(int argc, char **argv) { return 0; }
6925 _ACEOF
6926 if ac_fn_c_try_link "$LINENO"; then :
6927 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6928 else
6929 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
6931 rm -f core conftest.err conftest.$ac_objext \
6932 conftest$ac_exeext conftest.$ac_ext
6933 CFLAGS=$ac_wine_try_cflags_saved
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
6936 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
6937 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
6938 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6941 esac
6943 else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6945 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6946 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 ac_wine_try_cflags_saved=$CFLAGS
6950 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6953 void myfunc() {}
6954 _ACEOF
6955 if ac_fn_c_try_link "$LINENO"; then :
6956 ac_cv_c_dll_unixware="yes"
6957 else
6958 ac_cv_c_dll_unixware="no"
6960 rm -f core conftest.err conftest.$ac_objext \
6961 conftest$ac_exeext conftest.$ac_ext
6962 CFLAGS=$ac_wine_try_cflags_saved
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6965 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6966 if test "$ac_cv_c_dll_unixware" = "yes"
6967 then
6968 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6969 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6971 else
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6973 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6974 if test "${ac_cv_c_dll_hpux+set}" = set; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 ac_wine_try_cflags_saved=$CFLAGS
6978 CFLAGS="$CFLAGS -shared"
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6981 void myfunc() {}
6982 _ACEOF
6983 if ac_fn_c_try_link "$LINENO"; then :
6984 ac_cv_c_dll_hpux="yes"
6985 else
6986 ac_cv_c_dll_hpux="no"
6988 rm -f core conftest.err conftest.$ac_objext \
6989 conftest$ac_exeext conftest.$ac_ext
6990 CFLAGS=$ac_wine_try_cflags_saved
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
6993 $as_echo "$ac_cv_c_dll_hpux" >&6; }
6994 if test "$ac_cv_c_dll_hpux" = "yes"
6995 then
6996 LIBEXT="sl"
6997 DLLEXT=".sl"
6998 LDDLLFLAGS="-shared -fPIC"
6999 LDSHARED="\$(CC) -shared"
7004 esac
7006 enable_winequartz_drv=${enable_winequartz_drv:-no}
7008 if test "$LIBEXT" = "a"; then
7009 as_fn_error "could not find a way to build shared libraries.
7010 It is currently not possible to build Wine without shared library
7011 (.so) support to allow transparent switch between .so and .dll files.
7012 If you are using Linux, you will need a newer binutils.
7013 " "$LINENO" 5
7016 if test "$cross_compiling" = "no" -a "$LIBEXT" != "dll"
7017 then
7018 case "$host_cpu" in
7019 i[3456789]86*)
7020 ac_prefix_list="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 " ;;
7021 x86_64)
7022 ac_prefix_list="x86_64-pc-mingw32-gcc x86_64-w64-mingw32-gcc " ;;
7024 ac_prefix_list="" ;;
7025 esac
7026 for ac_prog in $ac_prefix_list
7028 # Extract the first word of "$ac_prog", so it can be a program name with args.
7029 set dummy $ac_prog; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$CROSSCC"; then
7036 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_CROSSCC="$ac_prog"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7049 done
7050 done
7051 IFS=$as_save_IFS
7055 CROSSCC=$ac_cv_prog_CROSSCC
7056 if test -n "$CROSSCC"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7058 $as_echo "$CROSSCC" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7065 test -n "$CROSSCC" && break
7066 done
7067 test -n "$CROSSCC" || CROSSCC="false"
7069 if test "$CROSSCC" != "false"
7070 then
7071 CROSSTEST="\$(CROSSTEST)"
7073 set x $CROSSCC
7074 shift
7075 target=""
7076 while test $# -ge 1
7078 case "$1" in
7079 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7080 esac
7081 shift
7082 done
7083 if test -n "$target"
7084 then
7085 CROSSTARGET="$target"
7092 if test "$ac_cv_header_pthread_h" = "yes"
7093 then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7095 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7096 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 ac_check_lib_save_LIBS=$LIBS
7100 LIBS="-lpthread $LIBS"
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7104 /* Override any GCC internal prototype to avoid an error.
7105 Use char because int might match the return type of a GCC
7106 builtin and then its argument prototype would still apply. */
7107 #ifdef __cplusplus
7108 extern "C"
7109 #endif
7110 char pthread_create ();
7112 main ()
7114 return pthread_create ();
7116 return 0;
7118 _ACEOF
7119 if ac_fn_c_try_link "$LINENO"; then :
7120 ac_cv_lib_pthread_pthread_create=yes
7121 else
7122 ac_cv_lib_pthread_pthread_create=no
7124 rm -f core conftest.err conftest.$ac_objext \
7125 conftest$ac_exeext conftest.$ac_ext
7126 LIBS=$ac_check_lib_save_LIBS
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7129 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7130 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7131 LIBPTHREAD="-lpthread"
7136 if test "x$LIBPTHREAD" = "x"; then :
7137 case "x$with_pthread" in
7138 xno) ;;
7139 *) as_fn_error "pthread ${notice_platform}development files not found.
7140 Wine cannot support threads without libpthread.
7141 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7142 esac
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7147 $as_echo_n "checking for X... " >&6; }
7150 # Check whether --with-x was given.
7151 if test "${with_x+set}" = set; then :
7152 withval=$with_x;
7155 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7156 if test "x$with_x" = xno; then
7157 # The user explicitly disabled X.
7158 have_x=disabled
7159 else
7160 case $x_includes,$x_libraries in #(
7161 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7162 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 # One or both of the vars are not set, and there is no cached value.
7166 ac_x_includes=no ac_x_libraries=no
7167 rm -f -r conftest.dir
7168 if mkdir conftest.dir; then
7169 cd conftest.dir
7170 cat >Imakefile <<'_ACEOF'
7171 incroot:
7172 @echo incroot='${INCROOT}'
7173 usrlibdir:
7174 @echo usrlibdir='${USRLIBDIR}'
7175 libdir:
7176 @echo libdir='${LIBDIR}'
7177 _ACEOF
7178 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7179 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7180 for ac_var in incroot usrlibdir libdir; do
7181 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7182 done
7183 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7184 for ac_extension in a so sl dylib la dll; do
7185 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7186 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7187 ac_im_usrlibdir=$ac_im_libdir; break
7189 done
7190 # Screen out bogus values from the imake configuration. They are
7191 # bogus both because they are the default anyway, and because
7192 # using them would break gcc on systems where it needs fixed includes.
7193 case $ac_im_incroot in
7194 /usr/include) ac_x_includes= ;;
7195 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7196 esac
7197 case $ac_im_usrlibdir in
7198 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7199 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7200 esac
7202 cd ..
7203 rm -f -r conftest.dir
7206 # Standard set of common directories for X headers.
7207 # Check X11 before X11Rn because it is often a symlink to the current release.
7208 ac_x_header_dirs='
7209 /usr/X11/include
7210 /usr/X11R7/include
7211 /usr/X11R6/include
7212 /usr/X11R5/include
7213 /usr/X11R4/include
7215 /usr/include/X11
7216 /usr/include/X11R7
7217 /usr/include/X11R6
7218 /usr/include/X11R5
7219 /usr/include/X11R4
7221 /usr/local/X11/include
7222 /usr/local/X11R7/include
7223 /usr/local/X11R6/include
7224 /usr/local/X11R5/include
7225 /usr/local/X11R4/include
7227 /usr/local/include/X11
7228 /usr/local/include/X11R7
7229 /usr/local/include/X11R6
7230 /usr/local/include/X11R5
7231 /usr/local/include/X11R4
7233 /usr/X386/include
7234 /usr/x386/include
7235 /usr/XFree86/include/X11
7237 /usr/include
7238 /usr/local/include
7239 /usr/unsupported/include
7240 /usr/athena/include
7241 /usr/local/x11r5/include
7242 /usr/lpp/Xamples/include
7244 /usr/openwin/include
7245 /usr/openwin/share/include'
7247 if test "$ac_x_includes" = no; then
7248 # Guess where to find include files, by looking for Xlib.h.
7249 # First, try using that file with no special directory specified.
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7252 #include <X11/Xlib.h>
7253 _ACEOF
7254 if ac_fn_c_try_cpp "$LINENO"; then :
7255 # We can compile using X headers with no special include directory.
7256 ac_x_includes=
7257 else
7258 for ac_dir in $ac_x_header_dirs; do
7259 if test -r "$ac_dir/X11/Xlib.h"; then
7260 ac_x_includes=$ac_dir
7261 break
7263 done
7265 rm -f conftest.err conftest.$ac_ext
7266 fi # $ac_x_includes = no
7268 if test "$ac_x_libraries" = no; then
7269 # Check for the libraries.
7270 # See if we find them without any special options.
7271 # Don't add to $LIBS permanently.
7272 ac_save_LIBS=$LIBS
7273 LIBS="-lX11 $LIBS"
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 #include <X11/Xlib.h>
7278 main ()
7280 XrmInitialize ()
7282 return 0;
7284 _ACEOF
7285 if ac_fn_c_try_link "$LINENO"; then :
7286 LIBS=$ac_save_LIBS
7287 # We can link X programs with no special library path.
7288 ac_x_libraries=
7289 else
7290 LIBS=$ac_save_LIBS
7291 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7293 # Don't even attempt the hair of trying to link an X program!
7294 for ac_extension in a so sl dylib la dll; do
7295 if test -r "$ac_dir/libX11.$ac_extension"; then
7296 ac_x_libraries=$ac_dir
7297 break 2
7299 done
7300 done
7302 rm -f core conftest.err conftest.$ac_objext \
7303 conftest$ac_exeext conftest.$ac_ext
7304 fi # $ac_x_libraries = no
7306 case $ac_x_includes,$ac_x_libraries in #(
7307 no,* | *,no | *\'*)
7308 # Didn't find X, or a directory has "'" in its name.
7309 ac_cv_have_x="have_x=no";; #(
7311 # Record where we found X for the cache.
7312 ac_cv_have_x="have_x=yes\
7313 ac_x_includes='$ac_x_includes'\
7314 ac_x_libraries='$ac_x_libraries'"
7315 esac
7317 ;; #(
7318 *) have_x=yes;;
7319 esac
7320 eval "$ac_cv_have_x"
7321 fi # $with_x != no
7323 if test "$have_x" != yes; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7325 $as_echo "$have_x" >&6; }
7326 no_x=yes
7327 else
7328 # If each of the values was on the command line, it overrides each guess.
7329 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7330 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7331 # Update the cache value to reflect the command line values.
7332 ac_cv_have_x="have_x=yes\
7333 ac_x_includes='$x_includes'\
7334 ac_x_libraries='$x_libraries'"
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7336 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7339 if test "$no_x" = yes; then
7340 # Not all programs may use this symbol, but it does not hurt to define it.
7342 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7344 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7345 else
7346 if test -n "$x_includes"; then
7347 X_CFLAGS="$X_CFLAGS -I$x_includes"
7350 # It would also be nice to do this for all -L options, not just this one.
7351 if test -n "$x_libraries"; then
7352 X_LIBS="$X_LIBS -L$x_libraries"
7353 # For Solaris; some versions of Sun CC require a space after -R and
7354 # others require no space. Words are not sufficient . . . .
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7356 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7357 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7358 ac_xsave_c_werror_flag=$ac_c_werror_flag
7359 ac_c_werror_flag=yes
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7364 main ()
7368 return 0;
7370 _ACEOF
7371 if ac_fn_c_try_link "$LINENO"; then :
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7374 X_LIBS="$X_LIBS -R$x_libraries"
7375 else
7376 LIBS="$ac_xsave_LIBS -R $x_libraries"
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7381 main ()
7385 return 0;
7387 _ACEOF
7388 if ac_fn_c_try_link "$LINENO"; then :
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7390 $as_echo "yes" >&6; }
7391 X_LIBS="$X_LIBS -R $x_libraries"
7392 else
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7394 $as_echo "neither works" >&6; }
7396 rm -f core conftest.err conftest.$ac_objext \
7397 conftest$ac_exeext conftest.$ac_ext
7399 rm -f core conftest.err conftest.$ac_objext \
7400 conftest$ac_exeext conftest.$ac_ext
7401 ac_c_werror_flag=$ac_xsave_c_werror_flag
7402 LIBS=$ac_xsave_LIBS
7405 # Check for system-dependent libraries X programs must link with.
7406 # Do this before checking for the system-independent R6 libraries
7407 # (-lICE), since we may need -lsocket or whatever for X linking.
7409 if test "$ISC" = yes; then
7410 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7411 else
7412 # Martyn Johnson says this is needed for Ultrix, if the X
7413 # libraries were built with DECnet support. And Karl Berry says
7414 # the Alpha needs dnet_stub (dnet does not exist).
7415 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7419 /* Override any GCC internal prototype to avoid an error.
7420 Use char because int might match the return type of a GCC
7421 builtin and then its argument prototype would still apply. */
7422 #ifdef __cplusplus
7423 extern "C"
7424 #endif
7425 char XOpenDisplay ();
7427 main ()
7429 return XOpenDisplay ();
7431 return 0;
7433 _ACEOF
7434 if ac_fn_c_try_link "$LINENO"; then :
7436 else
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7438 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7439 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7440 $as_echo_n "(cached) " >&6
7441 else
7442 ac_check_lib_save_LIBS=$LIBS
7443 LIBS="-ldnet $LIBS"
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7447 /* Override any GCC internal prototype to avoid an error.
7448 Use char because int might match the return type of a GCC
7449 builtin and then its argument prototype would still apply. */
7450 #ifdef __cplusplus
7451 extern "C"
7452 #endif
7453 char dnet_ntoa ();
7455 main ()
7457 return dnet_ntoa ();
7459 return 0;
7461 _ACEOF
7462 if ac_fn_c_try_link "$LINENO"; then :
7463 ac_cv_lib_dnet_dnet_ntoa=yes
7464 else
7465 ac_cv_lib_dnet_dnet_ntoa=no
7467 rm -f core conftest.err conftest.$ac_objext \
7468 conftest$ac_exeext conftest.$ac_ext
7469 LIBS=$ac_check_lib_save_LIBS
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7472 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7473 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7474 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7477 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7479 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7480 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7481 $as_echo_n "(cached) " >&6
7482 else
7483 ac_check_lib_save_LIBS=$LIBS
7484 LIBS="-ldnet_stub $LIBS"
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7488 /* Override any GCC internal prototype to avoid an error.
7489 Use char because int might match the return type of a GCC
7490 builtin and then its argument prototype would still apply. */
7491 #ifdef __cplusplus
7492 extern "C"
7493 #endif
7494 char dnet_ntoa ();
7496 main ()
7498 return dnet_ntoa ();
7500 return 0;
7502 _ACEOF
7503 if ac_fn_c_try_link "$LINENO"; then :
7504 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7505 else
7506 ac_cv_lib_dnet_stub_dnet_ntoa=no
7508 rm -f core conftest.err conftest.$ac_objext \
7509 conftest$ac_exeext conftest.$ac_ext
7510 LIBS=$ac_check_lib_save_LIBS
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7513 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7514 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7515 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7520 rm -f core conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 LIBS="$ac_xsave_LIBS"
7524 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7525 # to get the SysV transport functions.
7526 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7527 # needs -lnsl.
7528 # The nsl library prevents programs from opening the X display
7529 # on Irix 5.2, according to T.E. Dickey.
7530 # The functions gethostbyname, getservbyname, and inet_addr are
7531 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7532 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7533 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7537 if test $ac_cv_func_gethostbyname = no; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7539 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7540 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 ac_check_lib_save_LIBS=$LIBS
7544 LIBS="-lnsl $LIBS"
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7548 /* Override any GCC internal prototype to avoid an error.
7549 Use char because int might match the return type of a GCC
7550 builtin and then its argument prototype would still apply. */
7551 #ifdef __cplusplus
7552 extern "C"
7553 #endif
7554 char gethostbyname ();
7556 main ()
7558 return gethostbyname ();
7560 return 0;
7562 _ACEOF
7563 if ac_fn_c_try_link "$LINENO"; then :
7564 ac_cv_lib_nsl_gethostbyname=yes
7565 else
7566 ac_cv_lib_nsl_gethostbyname=no
7568 rm -f core conftest.err conftest.$ac_objext \
7569 conftest$ac_exeext conftest.$ac_ext
7570 LIBS=$ac_check_lib_save_LIBS
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7573 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7574 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7575 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7578 if test $ac_cv_lib_nsl_gethostbyname = no; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7580 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7581 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 ac_check_lib_save_LIBS=$LIBS
7585 LIBS="-lbsd $LIBS"
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7589 /* Override any GCC internal prototype to avoid an error.
7590 Use char because int might match the return type of a GCC
7591 builtin and then its argument prototype would still apply. */
7592 #ifdef __cplusplus
7593 extern "C"
7594 #endif
7595 char gethostbyname ();
7597 main ()
7599 return gethostbyname ();
7601 return 0;
7603 _ACEOF
7604 if ac_fn_c_try_link "$LINENO"; then :
7605 ac_cv_lib_bsd_gethostbyname=yes
7606 else
7607 ac_cv_lib_bsd_gethostbyname=no
7609 rm -f core conftest.err conftest.$ac_objext \
7610 conftest$ac_exeext conftest.$ac_ext
7611 LIBS=$ac_check_lib_save_LIBS
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7614 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7615 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7616 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7622 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7623 # socket/setsockopt and other routines are undefined under SCO ODT
7624 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7625 # on later versions), says Simon Leinen: it contains gethostby*
7626 # variants that don't use the name server (or something). -lsocket
7627 # must be given before -lnsl if both are needed. We assume that
7628 # if connect needs -lnsl, so does gethostbyname.
7629 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7630 if test "x$ac_cv_func_connect" = x""yes; then :
7634 if test $ac_cv_func_connect = no; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7636 $as_echo_n "checking for connect in -lsocket... " >&6; }
7637 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 ac_check_lib_save_LIBS=$LIBS
7641 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7645 /* Override any GCC internal prototype to avoid an error.
7646 Use char because int might match the return type of a GCC
7647 builtin and then its argument prototype would still apply. */
7648 #ifdef __cplusplus
7649 extern "C"
7650 #endif
7651 char connect ();
7653 main ()
7655 return connect ();
7657 return 0;
7659 _ACEOF
7660 if ac_fn_c_try_link "$LINENO"; then :
7661 ac_cv_lib_socket_connect=yes
7662 else
7663 ac_cv_lib_socket_connect=no
7665 rm -f core conftest.err conftest.$ac_objext \
7666 conftest$ac_exeext conftest.$ac_ext
7667 LIBS=$ac_check_lib_save_LIBS
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7670 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7671 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7672 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7677 # Guillermo Gomez says -lposix is necessary on A/UX.
7678 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7679 if test "x$ac_cv_func_remove" = x""yes; then :
7683 if test $ac_cv_func_remove = no; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7685 $as_echo_n "checking for remove in -lposix... " >&6; }
7686 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 ac_check_lib_save_LIBS=$LIBS
7690 LIBS="-lposix $LIBS"
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7694 /* Override any GCC internal prototype to avoid an error.
7695 Use char because int might match the return type of a GCC
7696 builtin and then its argument prototype would still apply. */
7697 #ifdef __cplusplus
7698 extern "C"
7699 #endif
7700 char remove ();
7702 main ()
7704 return remove ();
7706 return 0;
7708 _ACEOF
7709 if ac_fn_c_try_link "$LINENO"; then :
7710 ac_cv_lib_posix_remove=yes
7711 else
7712 ac_cv_lib_posix_remove=no
7714 rm -f core conftest.err conftest.$ac_objext \
7715 conftest$ac_exeext conftest.$ac_ext
7716 LIBS=$ac_check_lib_save_LIBS
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7719 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7720 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7721 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7726 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7727 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7728 if test "x$ac_cv_func_shmat" = x""yes; then :
7732 if test $ac_cv_func_shmat = no; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7734 $as_echo_n "checking for shmat in -lipc... " >&6; }
7735 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738 ac_check_lib_save_LIBS=$LIBS
7739 LIBS="-lipc $LIBS"
7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h. */
7743 /* Override any GCC internal prototype to avoid an error.
7744 Use char because int might match the return type of a GCC
7745 builtin and then its argument prototype would still apply. */
7746 #ifdef __cplusplus
7747 extern "C"
7748 #endif
7749 char shmat ();
7751 main ()
7753 return shmat ();
7755 return 0;
7757 _ACEOF
7758 if ac_fn_c_try_link "$LINENO"; then :
7759 ac_cv_lib_ipc_shmat=yes
7760 else
7761 ac_cv_lib_ipc_shmat=no
7763 rm -f core conftest.err conftest.$ac_objext \
7764 conftest$ac_exeext conftest.$ac_ext
7765 LIBS=$ac_check_lib_save_LIBS
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7768 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7769 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7770 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7776 # Check for libraries that X11R6 Xt/Xaw programs need.
7777 ac_save_LDFLAGS=$LDFLAGS
7778 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7779 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7780 # check for ICE first), but we must link in the order -lSM -lICE or
7781 # we get undefined symbols. So assume we have SM if we have ICE.
7782 # These have to be linked with before -lX11, unlike the other
7783 # libraries we check for below, so use a different variable.
7784 # John Interrante, Karl Berry
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7786 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7787 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 ac_check_lib_save_LIBS=$LIBS
7791 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793 /* end confdefs.h. */
7795 /* Override any GCC internal prototype to avoid an error.
7796 Use char because int might match the return type of a GCC
7797 builtin and then its argument prototype would still apply. */
7798 #ifdef __cplusplus
7799 extern "C"
7800 #endif
7801 char IceConnectionNumber ();
7803 main ()
7805 return IceConnectionNumber ();
7807 return 0;
7809 _ACEOF
7810 if ac_fn_c_try_link "$LINENO"; then :
7811 ac_cv_lib_ICE_IceConnectionNumber=yes
7812 else
7813 ac_cv_lib_ICE_IceConnectionNumber=no
7815 rm -f core conftest.err conftest.$ac_objext \
7816 conftest$ac_exeext conftest.$ac_ext
7817 LIBS=$ac_check_lib_save_LIBS
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7820 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7821 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7822 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7825 LDFLAGS=$ac_save_LDFLAGS
7830 if test "$have_x" = "yes"
7831 then
7832 XLIB="-lX11"
7833 ac_save_CPPFLAGS="$CPPFLAGS"
7834 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7837 $as_echo_n "checking for -lX11... " >&6; }
7838 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7841 ac_check_soname_save_LIBS=$LIBS
7842 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7846 /* Override any GCC internal prototype to avoid an error.
7847 Use char because int might match the return type of a GCC
7848 builtin and then its argument prototype would still apply. */
7849 #ifdef __cplusplus
7850 extern "C"
7851 #endif
7852 char XCreateWindow ();
7854 main ()
7856 return XCreateWindow ();
7858 return 0;
7860 _ACEOF
7861 if ac_fn_c_try_link "$LINENO"; then :
7862 case "$LIBEXT" in
7863 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7864 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'` ;;
7865 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7866 esac
7868 rm -f core conftest.err conftest.$ac_objext \
7869 conftest$ac_exeext conftest.$ac_ext
7870 LIBS=$ac_check_soname_save_LIBS
7872 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7874 $as_echo "not found" >&6; }
7876 else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7878 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7880 cat >>confdefs.h <<_ACEOF
7881 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7882 _ACEOF
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7887 $as_echo_n "checking for -lXext... " >&6; }
7888 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 ac_check_soname_save_LIBS=$LIBS
7892 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7896 /* Override any GCC internal prototype to avoid an error.
7897 Use char because int might match the return type of a GCC
7898 builtin and then its argument prototype would still apply. */
7899 #ifdef __cplusplus
7900 extern "C"
7901 #endif
7902 char XextCreateExtension ();
7904 main ()
7906 return XextCreateExtension ();
7908 return 0;
7910 _ACEOF
7911 if ac_fn_c_try_link "$LINENO"; then :
7912 case "$LIBEXT" in
7913 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7914 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'` ;;
7915 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7916 esac
7918 rm -f core conftest.err conftest.$ac_objext \
7919 conftest$ac_exeext conftest.$ac_ext
7920 LIBS=$ac_check_soname_save_LIBS
7922 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7924 $as_echo "not found" >&6; }
7926 else
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7928 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7930 cat >>confdefs.h <<_ACEOF
7931 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7932 _ACEOF
7934 XLIB="-lXext $XLIB"
7937 for ac_header in X11/Xlib.h \
7938 X11/XKBlib.h \
7939 X11/Xutil.h \
7940 X11/Xcursor/Xcursor.h \
7941 X11/extensions/shape.h \
7942 X11/extensions/XInput.h \
7943 X11/extensions/XShm.h \
7944 X11/extensions/Xcomposite.h \
7945 X11/extensions/Xinerama.h \
7946 X11/extensions/Xrandr.h \
7947 X11/extensions/Xrender.h \
7948 X11/extensions/xf86vmode.h \
7949 X11/extensions/xf86vmproto.h
7950 do :
7951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7952 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
7953 # include <X11/Xlib.h>
7954 #endif
7955 #ifdef HAVE_X11_XUTIL_H
7956 # include <X11/Xutil.h>
7957 #endif
7959 eval as_val=\$$as_ac_Header
7960 if test "x$as_val" = x""yes; then :
7961 cat >>confdefs.h <<_ACEOF
7962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7963 _ACEOF
7967 done
7970 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7971 then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
7973 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
7974 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 ac_check_lib_save_LIBS=$LIBS
7978 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7982 /* Override any GCC internal prototype to avoid an error.
7983 Use char because int might match the return type of a GCC
7984 builtin and then its argument prototype would still apply. */
7985 #ifdef __cplusplus
7986 extern "C"
7987 #endif
7988 char XkbQueryExtension ();
7990 main ()
7992 return XkbQueryExtension ();
7994 return 0;
7996 _ACEOF
7997 if ac_fn_c_try_link "$LINENO"; then :
7998 ac_cv_lib_X11_XkbQueryExtension=yes
7999 else
8000 ac_cv_lib_X11_XkbQueryExtension=no
8002 rm -f core conftest.err conftest.$ac_objext \
8003 conftest$ac_exeext conftest.$ac_ext
8004 LIBS=$ac_check_lib_save_LIBS
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8007 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8008 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
8010 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8016 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8017 then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8019 $as_echo_n "checking for -lXcursor... " >&6; }
8020 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 ac_check_soname_save_LIBS=$LIBS
8024 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8028 /* Override any GCC internal prototype to avoid an error.
8029 Use char because int might match the return type of a GCC
8030 builtin and then its argument prototype would still apply. */
8031 #ifdef __cplusplus
8032 extern "C"
8033 #endif
8034 char XcursorImageLoadCursor ();
8036 main ()
8038 return XcursorImageLoadCursor ();
8040 return 0;
8042 _ACEOF
8043 if ac_fn_c_try_link "$LINENO"; then :
8044 case "$LIBEXT" in
8045 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8046 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'` ;;
8047 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8048 esac
8050 rm -f core conftest.err conftest.$ac_objext \
8051 conftest$ac_exeext conftest.$ac_ext
8052 LIBS=$ac_check_soname_save_LIBS
8054 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8056 $as_echo "not found" >&6; }
8058 else
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8060 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8062 cat >>confdefs.h <<_ACEOF
8063 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8064 _ACEOF
8069 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8070 case "x$with_xcursor" in
8071 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8072 xno) ;;
8073 *) as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8074 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8075 esac
8078 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8079 then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8081 $as_echo_n "checking for -lXi... " >&6; }
8082 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 ac_check_soname_save_LIBS=$LIBS
8086 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8090 /* Override any GCC internal prototype to avoid an error.
8091 Use char because int might match the return type of a GCC
8092 builtin and then its argument prototype would still apply. */
8093 #ifdef __cplusplus
8094 extern "C"
8095 #endif
8096 char XOpenDevice ();
8098 main ()
8100 return XOpenDevice ();
8102 return 0;
8104 _ACEOF
8105 if ac_fn_c_try_link "$LINENO"; then :
8106 case "$LIBEXT" in
8107 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8108 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'` ;;
8109 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8110 esac
8112 rm -f core conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
8114 LIBS=$ac_check_soname_save_LIBS
8116 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8118 $as_echo "not found" >&6; }
8120 else
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8122 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8124 cat >>confdefs.h <<_ACEOF
8125 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8126 _ACEOF
8131 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8132 case "x$with_xinput" in
8133 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8134 xno) ;;
8135 *) as_fn_error "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8136 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8137 esac
8140 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8141 then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8143 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8144 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 ac_check_lib_save_LIBS=$LIBS
8148 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8152 /* Override any GCC internal prototype to avoid an error.
8153 Use char because int might match the return type of a GCC
8154 builtin and then its argument prototype would still apply. */
8155 #ifdef __cplusplus
8156 extern "C"
8157 #endif
8158 char XShmQueryExtension ();
8160 main ()
8162 return XShmQueryExtension ();
8164 return 0;
8166 _ACEOF
8167 if ac_fn_c_try_link "$LINENO"; then :
8168 ac_cv_lib_Xext_XShmQueryExtension=yes
8169 else
8170 ac_cv_lib_Xext_XShmQueryExtension=no
8172 rm -f core conftest.err conftest.$ac_objext \
8173 conftest$ac_exeext conftest.$ac_ext
8174 LIBS=$ac_check_lib_save_LIBS
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8177 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8178 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8180 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8185 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8186 case "x$with_xshm" in
8187 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8188 xno) ;;
8189 *) as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8190 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8191 esac
8194 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8195 then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8197 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8198 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 ac_check_lib_save_LIBS=$LIBS
8202 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8206 /* Override any GCC internal prototype to avoid an error.
8207 Use char because int might match the return type of a GCC
8208 builtin and then its argument prototype would still apply. */
8209 #ifdef __cplusplus
8210 extern "C"
8211 #endif
8212 char XShapeQueryExtension ();
8214 main ()
8216 return XShapeQueryExtension ();
8218 return 0;
8220 _ACEOF
8221 if ac_fn_c_try_link "$LINENO"; then :
8222 ac_cv_lib_Xext_XShapeQueryExtension=yes
8223 else
8224 ac_cv_lib_Xext_XShapeQueryExtension=no
8226 rm -f core conftest.err conftest.$ac_objext \
8227 conftest$ac_exeext conftest.$ac_ext
8228 LIBS=$ac_check_lib_save_LIBS
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8231 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8232 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8234 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8239 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8240 case "x$with_xshape" in
8241 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8242 xno) ;;
8243 *) as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
8244 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8245 esac
8248 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8249 then
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8251 $as_echo_n "checking for -lXxf86vm... " >&6; }
8252 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8253 $as_echo_n "(cached) " >&6
8254 else
8255 ac_check_soname_save_LIBS=$LIBS
8256 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8260 /* Override any GCC internal prototype to avoid an error.
8261 Use char because int might match the return type of a GCC
8262 builtin and then its argument prototype would still apply. */
8263 #ifdef __cplusplus
8264 extern "C"
8265 #endif
8266 char XF86VidModeQueryExtension ();
8268 main ()
8270 return XF86VidModeQueryExtension ();
8272 return 0;
8274 _ACEOF
8275 if ac_fn_c_try_link "$LINENO"; then :
8276 case "$LIBEXT" in
8277 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8278 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'` ;;
8279 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8280 esac
8282 rm -f core conftest.err conftest.$ac_objext \
8283 conftest$ac_exeext conftest.$ac_ext
8284 LIBS=$ac_check_soname_save_LIBS
8286 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8288 $as_echo "not found" >&6; }
8290 else
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8292 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8294 cat >>confdefs.h <<_ACEOF
8295 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8296 _ACEOF
8301 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8302 case "x$with_xxf86vm" in
8303 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8304 xno) ;;
8305 *) as_fn_error "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8306 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8307 esac
8310 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"
8311 then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8313 $as_echo_n "checking for -lXrender... " >&6; }
8314 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 ac_check_soname_save_LIBS=$LIBS
8318 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8322 /* Override any GCC internal prototype to avoid an error.
8323 Use char because int might match the return type of a GCC
8324 builtin and then its argument prototype would still apply. */
8325 #ifdef __cplusplus
8326 extern "C"
8327 #endif
8328 char XRenderQueryExtension ();
8330 main ()
8332 return XRenderQueryExtension ();
8334 return 0;
8336 _ACEOF
8337 if ac_fn_c_try_link "$LINENO"; then :
8338 case "$LIBEXT" in
8339 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8340 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'` ;;
8341 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8342 esac
8344 rm -f core conftest.err conftest.$ac_objext \
8345 conftest$ac_exeext conftest.$ac_ext
8346 LIBS=$ac_check_soname_save_LIBS
8348 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8350 $as_echo "not found" >&6; }
8352 else
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8354 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8356 cat >>confdefs.h <<_ACEOF
8357 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8358 _ACEOF
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8361 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8362 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8363 $as_echo_n "(cached) " >&6
8364 else
8365 ac_check_lib_save_LIBS=$LIBS
8366 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8370 /* Override any GCC internal prototype to avoid an error.
8371 Use char because int might match the return type of a GCC
8372 builtin and then its argument prototype would still apply. */
8373 #ifdef __cplusplus
8374 extern "C"
8375 #endif
8376 char XRenderSetPictureTransform ();
8378 main ()
8380 return XRenderSetPictureTransform ();
8382 return 0;
8384 _ACEOF
8385 if ac_fn_c_try_link "$LINENO"; then :
8386 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8387 else
8388 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8390 rm -f core conftest.err conftest.$ac_objext \
8391 conftest$ac_exeext conftest.$ac_ext
8392 LIBS=$ac_check_lib_save_LIBS
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8395 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8396 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8398 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8405 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8406 case "x$with_xrender" in
8407 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8408 xno) ;;
8409 *) as_fn_error "libxrender ${notice_platform}development files not found, XRender won't be supported.
8410 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8411 esac
8414 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8415 then
8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8418 #include <X11/Xlib.h>
8419 #include <X11/extensions/Xrandr.h>
8421 main ()
8423 static typeof(XRRSetScreenConfigAndRate) * func;
8425 return 0;
8427 _ACEOF
8428 if ac_fn_c_try_compile "$LINENO"; then :
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8430 $as_echo_n "checking for -lXrandr... " >&6; }
8431 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 ac_check_soname_save_LIBS=$LIBS
8435 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8439 /* Override any GCC internal prototype to avoid an error.
8440 Use char because int might match the return type of a GCC
8441 builtin and then its argument prototype would still apply. */
8442 #ifdef __cplusplus
8443 extern "C"
8444 #endif
8445 char XRRQueryExtension ();
8447 main ()
8449 return XRRQueryExtension ();
8451 return 0;
8453 _ACEOF
8454 if ac_fn_c_try_link "$LINENO"; then :
8455 case "$LIBEXT" in
8456 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8457 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'` ;;
8458 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8459 esac
8461 rm -f core conftest.err conftest.$ac_objext \
8462 conftest$ac_exeext conftest.$ac_ext
8463 LIBS=$ac_check_soname_save_LIBS
8465 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8467 $as_echo "not found" >&6; }
8469 else
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8471 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8473 cat >>confdefs.h <<_ACEOF
8474 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8475 _ACEOF
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8482 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8483 case "x$with_xrandr" in
8484 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8485 xno) ;;
8486 *) as_fn_error "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8487 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8488 esac
8491 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8492 then
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 #include <X11/Xlib.h>
8496 #include <X11/extensions/Xinerama.h>
8498 main ()
8500 static typeof(XineramaQueryScreens) * func;
8502 return 0;
8504 _ACEOF
8505 if ac_fn_c_try_compile "$LINENO"; then :
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8507 $as_echo_n "checking for -lXinerama... " >&6; }
8508 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 ac_check_soname_save_LIBS=$LIBS
8512 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8516 /* Override any GCC internal prototype to avoid an error.
8517 Use char because int might match the return type of a GCC
8518 builtin and then its argument prototype would still apply. */
8519 #ifdef __cplusplus
8520 extern "C"
8521 #endif
8522 char XineramaQueryScreens ();
8524 main ()
8526 return XineramaQueryScreens ();
8528 return 0;
8530 _ACEOF
8531 if ac_fn_c_try_link "$LINENO"; then :
8532 case "$LIBEXT" in
8533 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8534 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'` ;;
8535 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8536 esac
8538 rm -f core conftest.err conftest.$ac_objext \
8539 conftest$ac_exeext conftest.$ac_ext
8540 LIBS=$ac_check_soname_save_LIBS
8542 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8544 $as_echo "not found" >&6; }
8546 else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8548 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8550 cat >>confdefs.h <<_ACEOF
8551 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8552 _ACEOF
8557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8560 case "x$with_xinerama" in
8561 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8562 xno) ;;
8563 *) as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8564 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8565 esac
8568 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8569 then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8571 $as_echo_n "checking for -lXcomposite... " >&6; }
8572 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 ac_check_soname_save_LIBS=$LIBS
8576 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h. */
8580 /* Override any GCC internal prototype to avoid an error.
8581 Use char because int might match the return type of a GCC
8582 builtin and then its argument prototype would still apply. */
8583 #ifdef __cplusplus
8584 extern "C"
8585 #endif
8586 char XCompositeRedirectWindow ();
8588 main ()
8590 return XCompositeRedirectWindow ();
8592 return 0;
8594 _ACEOF
8595 if ac_fn_c_try_link "$LINENO"; then :
8596 case "$LIBEXT" in
8597 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8598 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'` ;;
8599 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8600 esac
8602 rm -f core conftest.err conftest.$ac_objext \
8603 conftest$ac_exeext conftest.$ac_ext
8604 LIBS=$ac_check_soname_save_LIBS
8606 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8608 $as_echo "not found" >&6; }
8610 else
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8612 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8614 cat >>confdefs.h <<_ACEOF
8615 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8616 _ACEOF
8621 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8622 case "x$with_xcomposite" in
8623 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8624 xno) ;;
8625 *) as_fn_error "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8626 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8627 esac
8630 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8631 #include <X11/Xlib.h>
8632 #endif
8634 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8636 cat >>confdefs.h <<_ACEOF
8637 #define HAVE_XICCALLBACK_CALLBACK 1
8638 _ACEOF
8645 opengl_msg=""
8646 if test "x$with_opengl" != "xno"
8647 then
8648 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8649 do :
8650 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8651 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8652 # include <GL/glx.h>
8653 #endif
8655 eval as_val=\$$as_ac_Header
8656 if test "x$as_val" = x""yes; then :
8657 cat >>confdefs.h <<_ACEOF
8658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8659 _ACEOF
8663 done
8665 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8666 then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8668 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8669 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8670 $as_echo_n "(cached) " >&6
8671 else
8672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673 /* end confdefs.h. */
8674 #include <GL/gl.h>
8676 main ()
8678 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8680 return 0;
8682 _ACEOF
8683 if ac_fn_c_try_compile "$LINENO"; then :
8684 wine_cv_opengl_header_version_OK="yes"
8685 else
8686 wine_cv_opengl_header_version_OK="no"
8688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8691 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8693 if test "$wine_cv_opengl_header_version_OK" = "yes"
8694 then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8696 $as_echo_n "checking for -lGL... " >&6; }
8697 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 ac_check_soname_save_LIBS=$LIBS
8701 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8705 /* Override any GCC internal prototype to avoid an error.
8706 Use char because int might match the return type of a GCC
8707 builtin and then its argument prototype would still apply. */
8708 #ifdef __cplusplus
8709 extern "C"
8710 #endif
8711 char glXCreateContext ();
8713 main ()
8715 return glXCreateContext ();
8717 return 0;
8719 _ACEOF
8720 if ac_fn_c_try_link "$LINENO"; then :
8721 case "$LIBEXT" in
8722 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8723 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'` ;;
8724 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8725 esac
8727 rm -f core conftest.err conftest.$ac_objext \
8728 conftest$ac_exeext conftest.$ac_ext
8729 LIBS=$ac_check_soname_save_LIBS
8731 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8733 $as_echo "not found" >&6; }
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8735 $as_echo_n "checking for -lGL... " >&6; }
8736 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 ac_check_soname_save_LIBS=$LIBS
8740 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"
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8744 /* Override any GCC internal prototype to avoid an error.
8745 Use char because int might match the return type of a GCC
8746 builtin and then its argument prototype would still apply. */
8747 #ifdef __cplusplus
8748 extern "C"
8749 #endif
8750 char glXCreateContext ();
8752 main ()
8754 return glXCreateContext ();
8756 return 0;
8758 _ACEOF
8759 if ac_fn_c_try_link "$LINENO"; then :
8760 case "$LIBEXT" in
8761 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8762 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'` ;;
8763 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8764 esac
8766 rm -f core conftest.err conftest.$ac_objext \
8767 conftest$ac_exeext conftest.$ac_ext
8768 LIBS=$ac_check_soname_save_LIBS
8770 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8772 $as_echo "not found" >&6; }
8773 if test -f /usr/X11R6/lib/libGL.a
8774 then
8775 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8776 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8777 else
8778 opengl_msg="No OpenGL library found on this system."
8780 else
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8782 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8784 cat >>confdefs.h <<_ACEOF
8785 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8786 _ACEOF
8788 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"
8790 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8793 else
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8795 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8797 cat >>confdefs.h <<_ACEOF
8798 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8799 _ACEOF
8801 OPENGL_LIBS="-lGL"
8803 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8806 if test "$ac_cv_header_GL_glu_h" = "yes"
8807 then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8809 $as_echo_n "checking for -lGLU... " >&6; }
8810 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8811 $as_echo_n "(cached) " >&6
8812 else
8813 ac_check_soname_save_LIBS=$LIBS
8814 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8818 /* Override any GCC internal prototype to avoid an error.
8819 Use char because int might match the return type of a GCC
8820 builtin and then its argument prototype would still apply. */
8821 #ifdef __cplusplus
8822 extern "C"
8823 #endif
8824 char gluLookAt ();
8826 main ()
8828 return gluLookAt ();
8830 return 0;
8832 _ACEOF
8833 if ac_fn_c_try_link "$LINENO"; then :
8834 case "$LIBEXT" in
8835 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8836 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'` ;;
8837 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8838 esac
8840 rm -f core conftest.err conftest.$ac_objext \
8841 conftest$ac_exeext conftest.$ac_ext
8842 LIBS=$ac_check_soname_save_LIBS
8844 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8846 $as_echo "not found" >&6; }
8848 else
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8850 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8852 cat >>confdefs.h <<_ACEOF
8853 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8854 _ACEOF
8859 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8860 case "x$with_glu" in
8861 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8862 xno) ;;
8863 *) as_fn_error "libGLU ${notice_platform}development files not found, GLU won't be supported.
8864 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8865 esac
8867 else
8868 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8870 else
8871 opengl_msg="OpenGL development headers not found."
8873 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8874 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8875 else
8876 enable_opengl32=${enable_opengl32:-no}
8877 enable_glu32=${enable_glu32:-no}
8879 if test -n "$opengl_msg"; then :
8880 case "x$with_opengl" in
8881 x) as_fn_append wine_warnings "|$opengl_msg
8882 OpenGL and Direct3D won't be supported." ;;
8883 xno) ;;
8884 *) as_fn_error "$opengl_msg
8885 OpenGL and Direct3D won't be supported.
8886 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8887 esac
8890 NASLIBS=""
8892 for ac_header in audio/audiolib.h
8893 do :
8894 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8895 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8896 cat >>confdefs.h <<_ACEOF
8897 #define HAVE_AUDIO_AUDIOLIB_H 1
8898 _ACEOF
8899 for ac_header in audio/soundlib.h
8900 do :
8901 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8903 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8904 cat >>confdefs.h <<_ACEOF
8905 #define HAVE_AUDIO_SOUNDLIB_H 1
8906 _ACEOF
8910 done
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8913 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8914 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8915 $as_echo_n "(cached) " >&6
8916 else
8917 ac_check_lib_save_LIBS=$LIBS
8918 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8922 /* Override any GCC internal prototype to avoid an error.
8923 Use char because int might match the return type of a GCC
8924 builtin and then its argument prototype would still apply. */
8925 #ifdef __cplusplus
8926 extern "C"
8927 #endif
8928 char AuCreateFlow ();
8930 main ()
8932 return AuCreateFlow ();
8934 return 0;
8936 _ACEOF
8937 if ac_fn_c_try_link "$LINENO"; then :
8938 ac_cv_lib_audio_AuCreateFlow=yes
8939 else
8940 ac_cv_lib_audio_AuCreateFlow=no
8942 rm -f core conftest.err conftest.$ac_objext \
8943 conftest$ac_exeext conftest.$ac_ext
8944 LIBS=$ac_check_lib_save_LIBS
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8947 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
8948 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
8950 $as_echo "#define HAVE_NAS 1" >>confdefs.h
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
8953 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
8954 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
8955 $as_echo_n "(cached) " >&6
8956 else
8957 ac_check_lib_save_LIBS=$LIBS
8958 LIBS="-lXau $X_LIBS $LIBS"
8959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h. */
8962 /* Override any GCC internal prototype to avoid an error.
8963 Use char because int might match the return type of a GCC
8964 builtin and then its argument prototype would still apply. */
8965 #ifdef __cplusplus
8966 extern "C"
8967 #endif
8968 char XauGetBestAuthByAddr ();
8970 main ()
8972 return XauGetBestAuthByAddr ();
8974 return 0;
8976 _ACEOF
8977 if ac_fn_c_try_link "$LINENO"; then :
8978 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
8979 else
8980 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
8982 rm -f core conftest.err conftest.$ac_objext \
8983 conftest$ac_exeext conftest.$ac_ext
8984 LIBS=$ac_check_lib_save_LIBS
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
8987 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
8988 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
8989 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8990 else
8991 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8999 done
9002 CPPFLAGS="$ac_save_CPPFLAGS"
9003 else
9004 XLIB=""
9005 X_CFLAGS=""
9006 X_LIBS=""
9007 enable_winex11_drv=${enable_winex11_drv:-no}
9008 enable_opengl32=${enable_opengl32:-no}
9009 enable_glu32=${enable_glu32:-no}
9011 if test "x$XLIB" = "x"; then :
9012 case "x$with_x" in
9013 xno) ;;
9014 *) as_fn_error "X ${notice_platform}development files not found. Wine will be built
9015 without X support, which probably isn't what you want. You will need to install
9016 ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9017 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9018 esac
9022 XML2LIBS=""
9024 XML2INCL=""
9026 XSLTINCL=""
9028 if test "x$with_xml" != "xno"
9029 then
9030 ac_save_CPPFLAGS="$CPPFLAGS"
9031 if test "$PKG_CONFIG" != "false"
9032 then
9033 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9034 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9035 else
9036 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9037 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9039 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9040 for ac_header in libxml/parser.h
9041 do :
9042 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9043 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
9044 cat >>confdefs.h <<_ACEOF
9045 #define HAVE_LIBXML_PARSER_H 1
9046 _ACEOF
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9048 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9049 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
9050 $as_echo_n "(cached) " >&6
9051 else
9052 ac_check_lib_save_LIBS=$LIBS
9053 LIBS="-lxml2 $ac_xml_libs $LIBS"
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9057 /* Override any GCC internal prototype to avoid an error.
9058 Use char because int might match the return type of a GCC
9059 builtin and then its argument prototype would still apply. */
9060 #ifdef __cplusplus
9061 extern "C"
9062 #endif
9063 char xmlParseMemory ();
9065 main ()
9067 return xmlParseMemory ();
9069 return 0;
9071 _ACEOF
9072 if ac_fn_c_try_link "$LINENO"; then :
9073 ac_cv_lib_xml2_xmlParseMemory=yes
9074 else
9075 ac_cv_lib_xml2_xmlParseMemory=no
9077 rm -f core conftest.err conftest.$ac_objext \
9078 conftest$ac_exeext conftest.$ac_ext
9079 LIBS=$ac_check_lib_save_LIBS
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9082 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9083 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
9085 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9087 XML2LIBS="$ac_xml_libs"
9088 XML2INCL="$ac_xml_cflags"
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9092 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9093 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 ac_check_lib_save_LIBS=$LIBS
9097 LIBS="-lxml2 $ac_xml_libs $LIBS"
9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9101 /* Override any GCC internal prototype to avoid an error.
9102 Use char because int might match the return type of a GCC
9103 builtin and then its argument prototype would still apply. */
9104 #ifdef __cplusplus
9105 extern "C"
9106 #endif
9107 char xmlReadMemory ();
9109 main ()
9111 return xmlReadMemory ();
9113 return 0;
9115 _ACEOF
9116 if ac_fn_c_try_link "$LINENO"; then :
9117 ac_cv_lib_xml2_xmlReadMemory=yes
9118 else
9119 ac_cv_lib_xml2_xmlReadMemory=no
9121 rm -f core conftest.err conftest.$ac_objext \
9122 conftest$ac_exeext conftest.$ac_ext
9123 LIBS=$ac_check_lib_save_LIBS
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9126 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9127 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9129 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9134 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9135 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 ac_check_lib_save_LIBS=$LIBS
9139 LIBS="-lxml2 $ac_xml_libs $LIBS"
9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9143 /* Override any GCC internal prototype to avoid an error.
9144 Use char because int might match the return type of a GCC
9145 builtin and then its argument prototype would still apply. */
9146 #ifdef __cplusplus
9147 extern "C"
9148 #endif
9149 char xmlNewDocPI ();
9151 main ()
9153 return xmlNewDocPI ();
9155 return 0;
9157 _ACEOF
9158 if ac_fn_c_try_link "$LINENO"; then :
9159 ac_cv_lib_xml2_xmlNewDocPI=yes
9160 else
9161 ac_cv_lib_xml2_xmlNewDocPI=no
9163 rm -f core conftest.err conftest.$ac_objext \
9164 conftest$ac_exeext conftest.$ac_ext
9165 LIBS=$ac_check_lib_save_LIBS
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9168 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9169 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9171 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9178 done
9180 CPPFLAGS="$ac_save_CPPFLAGS"
9182 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9183 case "x$with_xml" in
9184 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9185 xno) ;;
9186 *) as_fn_error "libxml2 ${notice_platform}development files not found, XML won't be supported.
9187 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9188 esac
9191 if test "x$with_xslt" != "xno"
9192 then
9193 if test "$PKG_CONFIG" != "false"
9194 then
9195 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9196 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9197 else
9198 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9199 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9201 ac_save_CPPFLAGS="$CPPFLAGS"
9202 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9203 for ac_header in libxslt/pattern.h libxslt/transform.h
9204 do :
9205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9206 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9207 # include <libxslt/pattern.h>
9208 #endif
9210 eval as_val=\$$as_ac_Header
9211 if test "x$as_val" = x""yes; then :
9212 cat >>confdefs.h <<_ACEOF
9213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9214 _ACEOF
9218 done
9220 CPPFLAGS="$ac_save_CPPFLAGS"
9221 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9222 then
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9224 $as_echo_n "checking for -lxslt... " >&6; }
9225 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9226 $as_echo_n "(cached) " >&6
9227 else
9228 ac_check_soname_save_LIBS=$LIBS
9229 LIBS="-lxslt $ac_xslt_libs $LIBS"
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9233 /* Override any GCC internal prototype to avoid an error.
9234 Use char because int might match the return type of a GCC
9235 builtin and then its argument prototype would still apply. */
9236 #ifdef __cplusplus
9237 extern "C"
9238 #endif
9239 char xsltCompilePattern ();
9241 main ()
9243 return xsltCompilePattern ();
9245 return 0;
9247 _ACEOF
9248 if ac_fn_c_try_link "$LINENO"; then :
9249 case "$LIBEXT" in
9250 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9251 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'` ;;
9252 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9253 esac
9255 rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257 LIBS=$ac_check_soname_save_LIBS
9259 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9261 $as_echo "not found" >&6; }
9263 else
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9265 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9267 cat >>confdefs.h <<_ACEOF
9268 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9269 _ACEOF
9271 XSLTINCL="$ac_xslt_cflags"
9275 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9276 case "x$with_xslt" in
9277 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9278 xno) ;;
9279 *) as_fn_error "libxslt ${notice_platform}development files not found, xslt won't be supported.
9280 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9281 esac
9284 HALINCL=""
9286 if test "x$with_hal" != "xno"
9287 then
9288 ac_save_CPPFLAGS="$CPPFLAGS"
9289 if test "$PKG_CONFIG" != "false"
9290 then
9291 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9292 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9293 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9295 for ac_header in dbus/dbus.h hal/libhal.h
9296 do :
9297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9298 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9299 eval as_val=\$$as_ac_Header
9300 if test "x$as_val" = x""yes; then :
9301 cat >>confdefs.h <<_ACEOF
9302 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9303 _ACEOF
9307 done
9309 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9310 then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9312 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9313 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 ac_check_lib_save_LIBS=$LIBS
9317 LIBS="-ldbus-1 $ac_hal_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 dbus_connection_close ();
9329 main ()
9331 return dbus_connection_close ();
9333 return 0;
9335 _ACEOF
9336 if ac_fn_c_try_link "$LINENO"; then :
9337 ac_cv_lib_dbus_1_dbus_connection_close=yes
9338 else
9339 ac_cv_lib_dbus_1_dbus_connection_close=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_dbus_1_dbus_connection_close" >&5
9346 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9347 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9349 $as_echo_n "checking for -lhal... " >&6; }
9350 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 ac_check_soname_save_LIBS=$LIBS
9354 LIBS="-lhal $ac_hal_libs $LIBS"
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9358 /* Override any GCC internal prototype to avoid an error.
9359 Use char because int might match the return type of a GCC
9360 builtin and then its argument prototype would still apply. */
9361 #ifdef __cplusplus
9362 extern "C"
9363 #endif
9364 char libhal_ctx_new ();
9366 main ()
9368 return libhal_ctx_new ();
9370 return 0;
9372 _ACEOF
9373 if ac_fn_c_try_link "$LINENO"; then :
9374 case "$LIBEXT" in
9375 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9376 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'` ;;
9377 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9378 esac
9380 rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
9382 LIBS=$ac_check_soname_save_LIBS
9384 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9386 $as_echo "not found" >&6; }
9388 else
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9390 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9392 cat >>confdefs.h <<_ACEOF
9393 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9394 _ACEOF
9396 HALINCL="$ac_hal_cflags"
9401 CPPFLAGS="$ac_save_CPPFLAGS"
9403 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9404 case "x$with_hal" in
9405 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9406 xno) ;;
9407 *) as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9408 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9409 esac
9412 if test "x$with_gnutls" != "xno"
9413 then
9414 ac_save_CPPFLAGS="$CPPFLAGS"
9415 if test "$PKG_CONFIG" != "false"
9416 then
9417 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9418 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9419 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9421 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9422 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425 #include <gnutls/gnutls.h>
9427 main ()
9429 typeof(gnutls_mac_get_key_size) *pfunc;
9431 return 0;
9433 _ACEOF
9434 if ac_fn_c_try_compile "$LINENO"; then :
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9436 $as_echo_n "checking for -lgnutls... " >&6; }
9437 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9438 $as_echo_n "(cached) " >&6
9439 else
9440 ac_check_soname_save_LIBS=$LIBS
9441 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9445 /* Override any GCC internal prototype to avoid an error.
9446 Use char because int might match the return type of a GCC
9447 builtin and then its argument prototype would still apply. */
9448 #ifdef __cplusplus
9449 extern "C"
9450 #endif
9451 char gnutls_global_init ();
9453 main ()
9455 return gnutls_global_init ();
9457 return 0;
9459 _ACEOF
9460 if ac_fn_c_try_link "$LINENO"; then :
9461 case "$LIBEXT" in
9462 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9463 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'` ;;
9464 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9465 esac
9467 rm -f core conftest.err conftest.$ac_objext \
9468 conftest$ac_exeext conftest.$ac_ext
9469 LIBS=$ac_check_soname_save_LIBS
9471 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9473 $as_echo "not found" >&6; }
9475 else
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9477 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9479 cat >>confdefs.h <<_ACEOF
9480 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9481 _ACEOF
9483 GNUTLSINCL="$ac_gnutls_cflags"
9487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 CPPFLAGS="$ac_save_CPPFLAGS"
9493 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9494 case "x$with_gnutls" in
9495 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9496 xno) ;;
9497 *) as_fn_error "libgnutls ${notice_platform}development files not found, no schannel support.
9498 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9499 esac
9502 CURSESLIBS=""
9503 if test "$ac_cv_header_ncurses_h" = "yes"
9504 then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9506 $as_echo_n "checking for -lncurses... " >&6; }
9507 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 ac_check_soname_save_LIBS=$LIBS
9511 LIBS="-lncurses $LIBS"
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9515 /* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9518 #ifdef __cplusplus
9519 extern "C"
9520 #endif
9521 char waddch ();
9523 main ()
9525 return waddch ();
9527 return 0;
9529 _ACEOF
9530 if ac_fn_c_try_link "$LINENO"; then :
9531 case "$LIBEXT" in
9532 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9533 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'` ;;
9534 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9535 esac
9537 rm -f core conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9539 LIBS=$ac_check_soname_save_LIBS
9541 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9543 $as_echo "not found" >&6; }
9545 else
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9547 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9549 cat >>confdefs.h <<_ACEOF
9550 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9551 _ACEOF
9553 CURSESLIBS="-lncurses"
9555 elif test "$ac_cv_header_curses_h" = "yes"
9556 then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9558 $as_echo_n "checking for -lcurses... " >&6; }
9559 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9560 $as_echo_n "(cached) " >&6
9561 else
9562 ac_check_soname_save_LIBS=$LIBS
9563 LIBS="-lcurses $LIBS"
9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9567 /* Override any GCC internal prototype to avoid an error.
9568 Use char because int might match the return type of a GCC
9569 builtin and then its argument prototype would still apply. */
9570 #ifdef __cplusplus
9571 extern "C"
9572 #endif
9573 char waddch ();
9575 main ()
9577 return waddch ();
9579 return 0;
9581 _ACEOF
9582 if ac_fn_c_try_link "$LINENO"; then :
9583 case "$LIBEXT" in
9584 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9585 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'` ;;
9586 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9587 esac
9589 rm -f core conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_soname_save_LIBS
9593 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9595 $as_echo "not found" >&6; }
9597 else
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9599 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9601 cat >>confdefs.h <<_ACEOF
9602 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9603 _ACEOF
9605 CURSESLIBS="-lcurses"
9608 ac_save_LIBS="$LIBS"
9609 LIBS="$LIBS $CURSESLIBS"
9610 for ac_func in mousemask
9611 do :
9612 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9613 if test "x$ac_cv_func_mousemask" = x""yes; then :
9614 cat >>confdefs.h <<_ACEOF
9615 #define HAVE_MOUSEMASK 1
9616 _ACEOF
9619 done
9621 LIBS="$ac_save_LIBS"
9622 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9623 case "x$with_curses" in
9624 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9625 xno) ;;
9626 *) as_fn_error "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9627 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9628 esac
9631 if test "x$with_sane" != "xno"
9632 then
9633 ac_save_CPPFLAGS="$CPPFLAGS"
9634 # Extract the first word of "sane-config", so it can be a program name with args.
9635 set dummy sane-config; ac_word=$2
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9637 $as_echo_n "checking for $ac_word... " >&6; }
9638 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9639 $as_echo_n "(cached) " >&6
9640 else
9641 if test -n "$sane_devel"; then
9642 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9643 else
9644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645 for as_dir in $PATH
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9651 ac_cv_prog_sane_devel="sane-config"
9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 break 2
9655 done
9656 done
9657 IFS=$as_save_IFS
9659 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9662 sane_devel=$ac_cv_prog_sane_devel
9663 if test -n "$sane_devel"; then
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9665 $as_echo "$sane_devel" >&6; }
9666 else
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9668 $as_echo "no" >&6; }
9672 if test "$sane_devel" != "no"
9673 then
9674 ac_sane_incl="`$sane_devel --cflags`"
9675 ac_sane_libs="`$sane_devel --ldflags`"
9676 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9678 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9679 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9681 $as_echo_n "checking for -lsane... " >&6; }
9682 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9683 $as_echo_n "(cached) " >&6
9684 else
9685 ac_check_soname_save_LIBS=$LIBS
9686 LIBS="-lsane $ac_sane_libs $LIBS"
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9690 /* Override any GCC internal prototype to avoid an error.
9691 Use char because int might match the return type of a GCC
9692 builtin and then its argument prototype would still apply. */
9693 #ifdef __cplusplus
9694 extern "C"
9695 #endif
9696 char sane_init ();
9698 main ()
9700 return sane_init ();
9702 return 0;
9704 _ACEOF
9705 if ac_fn_c_try_link "$LINENO"; then :
9706 case "$LIBEXT" in
9707 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9708 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'` ;;
9709 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9710 esac
9712 rm -f core conftest.err conftest.$ac_objext \
9713 conftest$ac_exeext conftest.$ac_ext
9714 LIBS=$ac_check_soname_save_LIBS
9716 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9718 $as_echo "not found" >&6; }
9720 else
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9722 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9724 cat >>confdefs.h <<_ACEOF
9725 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9726 _ACEOF
9728 SANEINCL="$ac_sane_incl"
9734 CPPFLAGS="$ac_save_CPPFLAGS"
9736 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9737 case "x$with_sane" in
9738 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9739 xno) ;;
9740 *) as_fn_error "libsane ${notice_platform}development files not found, scanners won't be supported.
9741 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9742 esac
9745 if test "x$with_v4l" != "xno"
9746 then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9748 $as_echo_n "checking for -lv4l1... " >&6; }
9749 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9750 $as_echo_n "(cached) " >&6
9751 else
9752 ac_check_soname_save_LIBS=$LIBS
9753 LIBS="-lv4l1 $LIBS"
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9757 /* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
9760 #ifdef __cplusplus
9761 extern "C"
9762 #endif
9763 char v4l1_open ();
9765 main ()
9767 return v4l1_open ();
9769 return 0;
9771 _ACEOF
9772 if ac_fn_c_try_link "$LINENO"; then :
9773 case "$LIBEXT" in
9774 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9775 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'` ;;
9776 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9777 esac
9779 rm -f core conftest.err conftest.$ac_objext \
9780 conftest$ac_exeext conftest.$ac_ext
9781 LIBS=$ac_check_soname_save_LIBS
9783 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9785 $as_echo "not found" >&6; }
9787 else
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9789 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9791 cat >>confdefs.h <<_ACEOF
9792 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9793 _ACEOF
9798 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9799 case "x$with_v4l" in
9800 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
9801 xno) ;;
9802 *) as_fn_error "libv4l ${notice_platform}development files not found.
9803 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9804 esac
9807 if test "x$with_gphoto" != "xno"
9808 then
9809 ac_save_CPPFLAGS="$CPPFLAGS"
9810 # Extract the first word of "gphoto2-config", so it can be a program name with args.
9811 set dummy gphoto2-config; ac_word=$2
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813 $as_echo_n "checking for $ac_word... " >&6; }
9814 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 if test -n "$gphoto2_devel"; then
9818 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9819 else
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 for as_dir in $PATH
9823 IFS=$as_save_IFS
9824 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9827 ac_cv_prog_gphoto2_devel="gphoto2-config"
9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829 break 2
9831 done
9832 done
9833 IFS=$as_save_IFS
9835 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9838 gphoto2_devel=$ac_cv_prog_gphoto2_devel
9839 if test -n "$gphoto2_devel"; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
9841 $as_echo "$gphoto2_devel" >&6; }
9842 else
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844 $as_echo "no" >&6; }
9848 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
9849 set dummy gphoto2-port-config; ac_word=$2
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9851 $as_echo_n "checking for $ac_word... " >&6; }
9852 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
9853 $as_echo_n "(cached) " >&6
9854 else
9855 if test -n "$gphoto2port_devel"; then
9856 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9857 else
9858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859 for as_dir in $PATH
9861 IFS=$as_save_IFS
9862 test -z "$as_dir" && as_dir=.
9863 for ac_exec_ext in '' $ac_executable_extensions; do
9864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9865 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
9866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9867 break 2
9869 done
9870 done
9871 IFS=$as_save_IFS
9873 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9876 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9877 if test -n "$gphoto2port_devel"; then
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
9879 $as_echo "$gphoto2port_devel" >&6; }
9880 else
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882 $as_echo "no" >&6; }
9886 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9887 then
9888 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9889 ac_gphoto2_libs=""
9890 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9892 case "$i" in
9893 -L/usr/lib|-L/usr/lib64) ;;
9894 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9895 esac
9896 done
9897 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9899 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
9900 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9901 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
9903 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
9904 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 ac_check_lib_save_LIBS=$LIBS
9908 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9912 /* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
9915 #ifdef __cplusplus
9916 extern "C"
9917 #endif
9918 char gp_camera_new ();
9920 main ()
9922 return gp_camera_new ();
9924 return 0;
9926 _ACEOF
9927 if ac_fn_c_try_link "$LINENO"; then :
9928 ac_cv_lib_gphoto2_gp_camera_new=yes
9929 else
9930 ac_cv_lib_gphoto2_gp_camera_new=no
9932 rm -f core conftest.err conftest.$ac_objext \
9933 conftest$ac_exeext conftest.$ac_ext
9934 LIBS=$ac_check_lib_save_LIBS
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
9937 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
9938 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
9940 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
9942 GPHOTO2LIBS="$ac_gphoto2_libs"
9944 GPHOTO2INCL="$ac_gphoto2_incl"
9951 CPPFLAGS="$ac_save_CPPFLAGS"
9953 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
9954 case "x$with_gphoto" in
9955 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
9956 xno) ;;
9957 *) as_fn_error "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9958 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
9959 esac
9963 RESOLVLIBS=""
9965 if test "$ac_cv_header_resolv_h" = "yes"
9966 then
9967 ac_save_LIBS="$LIBS"
9968 LIBS="$LIBS -lresolv"
9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970 /* end confdefs.h. */
9971 #ifdef HAVE_NETINET_IN_H
9972 #include <netinet/in.h>
9973 #endif
9974 #include <resolv.h>
9976 main ()
9978 res_init();
9980 return 0;
9982 _ACEOF
9983 if ac_fn_c_try_link "$LINENO"; then :
9985 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
9987 RESOLVLIBS="-lresolv"
9989 rm -f core conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 LIBS="$ac_save_LIBS"
9994 LCMSLIBS=""
9996 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
9997 then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
9999 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10000 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
10001 $as_echo_n "(cached) " >&6
10002 else
10003 ac_check_lib_save_LIBS=$LIBS
10004 LIBS="-llcms $LIBS"
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10008 /* Override any GCC internal prototype to avoid an error.
10009 Use char because int might match the return type of a GCC
10010 builtin and then its argument prototype would still apply. */
10011 #ifdef __cplusplus
10012 extern "C"
10013 #endif
10014 char cmsOpenProfileFromFile ();
10016 main ()
10018 return cmsOpenProfileFromFile ();
10020 return 0;
10022 _ACEOF
10023 if ac_fn_c_try_link "$LINENO"; then :
10024 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10025 else
10026 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10028 rm -f core conftest.err conftest.$ac_objext \
10029 conftest$ac_exeext conftest.$ac_ext
10030 LIBS=$ac_check_lib_save_LIBS
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10033 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10034 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
10036 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10038 LCMSLIBS="-llcms"
10042 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10043 case "x$with_cms" in
10044 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10045 xno) ;;
10046 *) as_fn_error "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10047 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10048 esac
10051 if test "x$with_freetype" != "xno"
10052 then
10053 for ac_prog in freetype-config freetype2-config
10055 # Extract the first word of "$ac_prog", so it can be a program name with args.
10056 set dummy $ac_prog; 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 test "${ac_cv_prog_ft_devel+set}" = set; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 if test -n "$ft_devel"; then
10063 ac_cv_prog_ft_devel="$ft_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_ft_devel="$ac_prog"
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
10082 ft_devel=$ac_cv_prog_ft_devel
10083 if test -n "$ft_devel"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10085 $as_echo "$ft_devel" >&6; }
10086 else
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10092 test -n "$ft_devel" && break
10093 done
10094 test -n "$ft_devel" || ft_devel="no"
10096 if test "$ft_devel" != "no"
10097 then
10098 ac_freetype_incl=`$ft_devel --cflags`
10099 ac_freetype_libs=`$ft_devel --libs`
10101 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10103 $as_echo_n "checking for -lfreetype... " >&6; }
10104 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 ac_check_soname_save_LIBS=$LIBS
10108 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110 /* end confdefs.h. */
10112 /* Override any GCC internal prototype to avoid an error.
10113 Use char because int might match the return type of a GCC
10114 builtin and then its argument prototype would still apply. */
10115 #ifdef __cplusplus
10116 extern "C"
10117 #endif
10118 char FT_Init_FreeType ();
10120 main ()
10122 return FT_Init_FreeType ();
10124 return 0;
10126 _ACEOF
10127 if ac_fn_c_try_link "$LINENO"; then :
10128 case "$LIBEXT" in
10129 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10130 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'` ;;
10131 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10132 esac
10134 rm -f core conftest.err conftest.$ac_objext \
10135 conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_check_soname_save_LIBS
10138 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10140 $as_echo "not found" >&6; }
10141 ft_lib=no
10142 else
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10144 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10146 cat >>confdefs.h <<_ACEOF
10147 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10148 _ACEOF
10150 ft_lib=yes
10152 if test "$ft_lib" = "yes"
10153 then
10154 ac_save_CPPFLAGS="$CPPFLAGS"
10155 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10156 for ac_header in ft2build.h \
10157 freetype/freetype.h \
10158 freetype/ftglyph.h \
10159 freetype/fttypes.h \
10160 freetype/tttables.h \
10161 freetype/ftsnames.h \
10162 freetype/ttnameid.h \
10163 freetype/ftoutln.h \
10164 freetype/ftwinfnt.h \
10165 freetype/ftmodapi.h \
10166 freetype/ftlcdfil.h \
10167 freetype/internal/sfnt.h
10168 do :
10169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10170 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10171 # include <ft2build.h>
10172 #endif
10174 eval as_val=\$$as_ac_Header
10175 if test "x$as_val" = x""yes; then :
10176 cat >>confdefs.h <<_ACEOF
10177 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10178 _ACEOF
10182 done
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10186 #include <ft2build.h>
10187 #include <freetype/fttrigon.h>
10188 _ACEOF
10189 if ac_fn_c_try_cpp "$LINENO"; then :
10191 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10193 wine_cv_fttrigon=yes
10194 else
10195 wine_cv_fttrigon=no
10197 rm -f conftest.err conftest.$ac_ext
10198 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10200 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10202 cat >>confdefs.h <<_ACEOF
10203 #define HAVE_FT_TRUETYPEENGINETYPE 1
10204 _ACEOF
10209 ac_save_CFLAGS="$CFLAGS"
10210 CFLAGS="$CFLAGS $ac_freetype_libs"
10211 for ac_func in FT_Load_Sfnt_Table
10212 do :
10213 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10214 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10215 cat >>confdefs.h <<_ACEOF
10216 #define HAVE_FT_LOAD_SFNT_TABLE 1
10217 _ACEOF
10220 done
10222 CFLAGS="$ac_save_CFLAGS"
10223 CPPFLAGS="$ac_save_CPPFLAGS"
10224 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10225 then
10227 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10229 FREETYPELIBS="$ac_freetype_libs"
10231 FREETYPEINCL="$ac_freetype_incl"
10236 if test "x$FREETYPELIBS" = "x"; then :
10237 case "x$with_freetype" in
10238 xno) ;;
10239 *) as_fn_error "FreeType ${notice_platform}development files not found. Fonts will not be built.
10240 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10241 esac
10243 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10246 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10247 if test "${ac_cv_c_ppdev+set}" = set; then :
10248 $as_echo_n "(cached) " >&6
10249 else
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10252 #ifdef HAVE_SYS_IOCTL_H
10253 # include <sys/ioctl.h>
10254 #endif
10255 #include <linux/ppdev.h>
10257 main ()
10259 ioctl (1,PPCLAIM,0)
10261 return 0;
10263 _ACEOF
10264 if ac_fn_c_try_compile "$LINENO"; then :
10265 ac_cv_c_ppdev="yes"
10266 else
10267 ac_cv_c_ppdev="no"
10269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10272 $as_echo "$ac_cv_c_ppdev" >&6; }
10273 if test "$ac_cv_c_ppdev" = "yes"
10274 then
10276 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10280 ac_wine_check_funcs_save_LIBS="$LIBS"
10281 LIBS="$LIBS $LIBPTHREAD"
10282 for ac_func in \
10283 pthread_attr_get_np \
10284 pthread_getattr_np \
10285 pthread_get_stackaddr_np \
10286 pthread_get_stacksize_np
10287 do :
10288 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10289 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10290 eval as_val=\$$as_ac_var
10291 if test "x$as_val" = x""yes; then :
10292 cat >>confdefs.h <<_ACEOF
10293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10294 _ACEOF
10297 done
10299 LIBS="$ac_wine_check_funcs_save_LIBS"
10301 if test "$ac_cv_header_zlib_h" = "yes"
10302 then
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10304 $as_echo_n "checking for inflate in -lz... " >&6; }
10305 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10306 $as_echo_n "(cached) " >&6
10307 else
10308 ac_check_lib_save_LIBS=$LIBS
10309 LIBS="-lz $LIBS"
10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10313 /* Override any GCC internal prototype to avoid an error.
10314 Use char because int might match the return type of a GCC
10315 builtin and then its argument prototype would still apply. */
10316 #ifdef __cplusplus
10317 extern "C"
10318 #endif
10319 char inflate ();
10321 main ()
10323 return inflate ();
10325 return 0;
10327 _ACEOF
10328 if ac_fn_c_try_link "$LINENO"; then :
10329 ac_cv_lib_z_inflate=yes
10330 else
10331 ac_cv_lib_z_inflate=no
10333 rm -f core conftest.err conftest.$ac_objext \
10334 conftest$ac_exeext conftest.$ac_ext
10335 LIBS=$ac_check_lib_save_LIBS
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10338 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10339 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10341 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10343 ZLIB="-lz"
10349 if test "x$with_esd" != xno
10350 then
10351 save_CFLAGS="$CFLAGS"
10352 # Extract the first word of "esd-config", so it can be a program name with args.
10353 set dummy esd-config; ac_word=$2
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355 $as_echo_n "checking for $ac_word... " >&6; }
10356 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 case $ESDCONFIG in
10360 [\\/]* | ?:[\\/]*)
10361 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365 for as_dir in $PATH
10367 IFS=$as_save_IFS
10368 test -z "$as_dir" && as_dir=.
10369 for ac_exec_ext in '' $ac_executable_extensions; do
10370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10371 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10373 break 2
10375 done
10376 done
10377 IFS=$as_save_IFS
10379 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10381 esac
10383 ESDCONFIG=$ac_cv_path_ESDCONFIG
10384 if test -n "$ESDCONFIG"; then
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10386 $as_echo "$ESDCONFIG" >&6; }
10387 else
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10389 $as_echo "no" >&6; }
10393 if test "x$ESDCONFIG" != "xno"
10394 then
10395 ac_esd_incl=""
10396 for i in `$ESDCONFIG --cflags`
10398 case "$i" in
10399 -I*) ac_esd_incl="$ac_esd_incl $i";;
10400 esac
10401 done
10402 ac_esd_libs=`$ESDCONFIG --libs`
10403 CFLAGS="$CFLAGS $ac_esd_incl"
10405 ac_esd_libs=${ac_esd_libs:-"-lesd"}
10406 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10407 if test "x$ac_cv_header_esd_h" = x""yes; then :
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10409 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10410 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
10412 else
10413 ac_check_lib_save_LIBS=$LIBS
10414 LIBS="-lesd $ac_esd_libs $LIBS"
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10418 /* Override any GCC internal prototype to avoid an error.
10419 Use char because int might match the return type of a GCC
10420 builtin and then its argument prototype would still apply. */
10421 #ifdef __cplusplus
10422 extern "C"
10423 #endif
10424 char esd_open_sound ();
10426 main ()
10428 return esd_open_sound ();
10430 return 0;
10432 _ACEOF
10433 if ac_fn_c_try_link "$LINENO"; then :
10434 ac_cv_lib_esd_esd_open_sound=yes
10435 else
10436 ac_cv_lib_esd_esd_open_sound=no
10438 rm -f core conftest.err conftest.$ac_objext \
10439 conftest$ac_exeext conftest.$ac_ext
10440 LIBS=$ac_check_lib_save_LIBS
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10443 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10444 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10445 ESDINCL="$ac_esd_incl"
10447 ESDLIBS="$ac_esd_libs"
10450 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10457 CFLAGS="$save_CFLAGS"
10460 PULSELIBS=""
10462 PULSECFLAGS=""
10464 if test "x$with_pulse" != "xno";
10465 then
10466 ac_save_CPPFLAGS="$CPPFLAGS"
10467 if test "$PKG_CONFIG" != "false";
10468 then
10469 ac_pulse_libs="`$PKG_CONFIG --libs libpulse 2>/dev/null`"
10470 ac_pulse_cflags="`$PKG_CONFIG --cflags libpulse 2>/dev/null`"
10472 CPPFLAGS="$CPPFLAGS $ac_pulse_cflags"
10473 for ac_header in pulse/pulseaudio.h
10474 do :
10475 ac_fn_c_check_header_mongrel "$LINENO" "pulse/pulseaudio.h" "ac_cv_header_pulse_pulseaudio_h" "$ac_includes_default"
10476 if test "x$ac_cv_header_pulse_pulseaudio_h" = x""yes; then :
10477 cat >>confdefs.h <<_ACEOF
10478 #define HAVE_PULSE_PULSEAUDIO_H 1
10479 _ACEOF
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_stream_is_corked in -lpulse" >&5
10481 $as_echo_n "checking for pa_stream_is_corked in -lpulse... " >&6; }
10482 if test "${ac_cv_lib_pulse_pa_stream_is_corked+set}" = set; then :
10483 $as_echo_n "(cached) " >&6
10484 else
10485 ac_check_lib_save_LIBS=$LIBS
10486 LIBS="-lpulse $ac_pulse_libs $LIBS"
10487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488 /* end confdefs.h. */
10490 /* Override any GCC internal prototype to avoid an error.
10491 Use char because int might match the return type of a GCC
10492 builtin and then its argument prototype would still apply. */
10493 #ifdef __cplusplus
10494 extern "C"
10495 #endif
10496 char pa_stream_is_corked ();
10498 main ()
10500 return pa_stream_is_corked ();
10502 return 0;
10504 _ACEOF
10505 if ac_fn_c_try_link "$LINENO"; then :
10506 ac_cv_lib_pulse_pa_stream_is_corked=yes
10507 else
10508 ac_cv_lib_pulse_pa_stream_is_corked=no
10510 rm -f core conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext conftest.$ac_ext
10512 LIBS=$ac_check_lib_save_LIBS
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_pa_stream_is_corked" >&5
10515 $as_echo "$ac_cv_lib_pulse_pa_stream_is_corked" >&6; }
10516 if test "x$ac_cv_lib_pulse_pa_stream_is_corked" = x""yes; then :
10518 $as_echo "#define HAVE_PULSEAUDIO 1" >>confdefs.h
10520 PULSELIBS="$ac_pulse_libs"
10521 PULSECFLAGS="$ac_pulse_cflags"
10527 done
10530 CPPFLAGS="$ac_save_CPPFLAGS"
10532 if test "$ac_cv_lib_pulse_pa_stream_is_corked" != "yes"; then :
10533 case "x$with_pulse" in
10534 x) as_fn_append wine_warnings "|libpulse ${notice_platform}development files not found or too old, Pulse won't be supported." ;;
10535 xno) ;;
10536 *) as_fn_error "libpulse ${notice_platform}development files not found or too old, Pulse won't be supported.
10537 This is an error since --with-pulse was requested." "$LINENO" 5 ;;
10538 esac
10541 ALSALIBS=""
10543 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10544 then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10546 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10547 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10548 $as_echo_n "(cached) " >&6
10549 else
10550 ac_check_lib_save_LIBS=$LIBS
10551 LIBS="-lasound $LIBS"
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10555 /* Override any GCC internal prototype to avoid an error.
10556 Use char because int might match the return type of a GCC
10557 builtin and then its argument prototype would still apply. */
10558 #ifdef __cplusplus
10559 extern "C"
10560 #endif
10561 char snd_pcm_hw_params_get_access ();
10563 main ()
10565 return snd_pcm_hw_params_get_access ();
10567 return 0;
10569 _ACEOF
10570 if ac_fn_c_try_link "$LINENO"; then :
10571 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10572 else
10573 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10575 rm -f core conftest.err conftest.$ac_objext \
10576 conftest$ac_exeext conftest.$ac_ext
10577 LIBS=$ac_check_lib_save_LIBS
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10580 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10581 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10583 /* end confdefs.h. */
10584 #ifdef HAVE_ALSA_ASOUNDLIB_H
10585 #include <alsa/asoundlib.h>
10586 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10587 #include <sys/asoundlib.h>
10588 #endif
10590 main ()
10592 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10594 return 0;
10596 _ACEOF
10597 if ac_fn_c_try_compile "$LINENO"; then :
10599 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10601 ALSALIBS="-lasound"
10603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608 AUDIOIOLIBS=""
10610 if test "$ac_cv_header_libaudioio_h" = "yes"
10611 then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
10613 $as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
10614 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
10615 $as_echo_n "(cached) " >&6
10616 else
10617 ac_check_lib_save_LIBS=$LIBS
10618 LIBS="-laudioio $LIBS"
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10622 /* Override any GCC internal prototype to avoid an error.
10623 Use char because int might match the return type of a GCC
10624 builtin and then its argument prototype would still apply. */
10625 #ifdef __cplusplus
10626 extern "C"
10627 #endif
10628 char AudioIOGetVersion ();
10630 main ()
10632 return AudioIOGetVersion ();
10634 return 0;
10636 _ACEOF
10637 if ac_fn_c_try_link "$LINENO"; then :
10638 ac_cv_lib_audioio_AudioIOGetVersion=yes
10639 else
10640 ac_cv_lib_audioio_AudioIOGetVersion=no
10642 rm -f core conftest.err conftest.$ac_objext \
10643 conftest$ac_exeext conftest.$ac_ext
10644 LIBS=$ac_check_lib_save_LIBS
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10647 $as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
10648 if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
10649 AUDIOIOLIBS="-laudioio"
10651 $as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
10658 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10659 then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10661 $as_echo_n "checking for -lcapi20... " >&6; }
10662 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10663 $as_echo_n "(cached) " >&6
10664 else
10665 ac_check_soname_save_LIBS=$LIBS
10666 LIBS="-lcapi20 $LIBS"
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10673 #ifdef __cplusplus
10674 extern "C"
10675 #endif
10676 char capi20_register ();
10678 main ()
10680 return capi20_register ();
10682 return 0;
10684 _ACEOF
10685 if ac_fn_c_try_link "$LINENO"; then :
10686 case "$LIBEXT" in
10687 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10688 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'` ;;
10689 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10690 esac
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 LIBS=$ac_check_soname_save_LIBS
10696 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10698 $as_echo "not found" >&6; }
10700 else
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10702 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10704 cat >>confdefs.h <<_ACEOF
10705 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10706 _ACEOF
10711 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10712 case "x$with_capi" in
10713 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10714 xno) ;;
10715 *) as_fn_error "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10716 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10717 esac
10720 CUPSINCL=""
10722 if test "x$with_cups" != "xno"
10723 then
10724 ac_save_CPPFLAGS="$CPPFLAGS"
10725 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10726 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10727 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10728 for ac_header in cups/cups.h
10729 do :
10730 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10731 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
10732 cat >>confdefs.h <<_ACEOF
10733 #define HAVE_CUPS_CUPS_H 1
10734 _ACEOF
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10736 $as_echo_n "checking for -lcups... " >&6; }
10737 if test "${ac_cv_lib_soname_cups+set}" = set; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740 ac_check_soname_save_LIBS=$LIBS
10741 LIBS="-lcups $ac_cups_libs $LIBS"
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10745 /* Override any GCC internal prototype to avoid an error.
10746 Use char because int might match the return type of a GCC
10747 builtin and then its argument prototype would still apply. */
10748 #ifdef __cplusplus
10749 extern "C"
10750 #endif
10751 char cupsGetDefault ();
10753 main ()
10755 return cupsGetDefault ();
10757 return 0;
10759 _ACEOF
10760 if ac_fn_c_try_link "$LINENO"; then :
10761 case "$LIBEXT" in
10762 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10763 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'` ;;
10764 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10765 esac
10767 rm -f core conftest.err conftest.$ac_objext \
10768 conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_soname_save_LIBS
10771 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10773 $as_echo "not found" >&6; }
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10777 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10779 cat >>confdefs.h <<_ACEOF
10780 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10781 _ACEOF
10783 CUPSINCL="$ac_cups_cflags"
10787 done
10789 CPPFLAGS="$ac_save_CPPFLAGS"
10791 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10792 case "x$with_cups" in
10793 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10794 xno) ;;
10795 *) as_fn_error "libcups ${notice_platform}development files not found, CUPS won't be supported.
10796 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10797 esac
10800 if test "$ac_cv_header_jack_jack_h" = "yes"
10801 then
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
10803 $as_echo_n "checking for -ljack... " >&6; }
10804 if test "${ac_cv_lib_soname_jack+set}" = set; then :
10805 $as_echo_n "(cached) " >&6
10806 else
10807 ac_check_soname_save_LIBS=$LIBS
10808 LIBS="-ljack $LIBS"
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10812 /* Override any GCC internal prototype to avoid an error.
10813 Use char because int might match the return type of a GCC
10814 builtin and then its argument prototype would still apply. */
10815 #ifdef __cplusplus
10816 extern "C"
10817 #endif
10818 char jack_client_new ();
10820 main ()
10822 return jack_client_new ();
10824 return 0;
10826 _ACEOF
10827 if ac_fn_c_try_link "$LINENO"; then :
10828 case "$LIBEXT" in
10829 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10830 dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10831 *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10832 esac
10834 rm -f core conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext conftest.$ac_ext
10836 LIBS=$ac_check_soname_save_LIBS
10838 if test "x$ac_cv_lib_soname_jack" = "x"; then :
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10840 $as_echo "not found" >&6; }
10842 else
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
10844 $as_echo "$ac_cv_lib_soname_jack" >&6; }
10846 cat >>confdefs.h <<_ACEOF
10847 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
10848 _ACEOF
10854 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10855 then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10857 $as_echo_n "checking for -lfontconfig... " >&6; }
10858 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10861 ac_check_soname_save_LIBS=$LIBS
10862 LIBS="-lfontconfig $LIBS"
10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10866 /* Override any GCC internal prototype to avoid an error.
10867 Use char because int might match the return type of a GCC
10868 builtin and then its argument prototype would still apply. */
10869 #ifdef __cplusplus
10870 extern "C"
10871 #endif
10872 char FcInit ();
10874 main ()
10876 return FcInit ();
10878 return 0;
10880 _ACEOF
10881 if ac_fn_c_try_link "$LINENO"; then :
10882 case "$LIBEXT" in
10883 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10884 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'` ;;
10885 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10886 esac
10888 rm -f core conftest.err conftest.$ac_objext \
10889 conftest$ac_exeext conftest.$ac_ext
10890 LIBS=$ac_check_soname_save_LIBS
10892 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10894 $as_echo "not found" >&6; }
10896 else
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10898 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10900 cat >>confdefs.h <<_ACEOF
10901 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10902 _ACEOF
10906 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
10907 then
10908 ac_save_CPPFLAGS="$CPPFLAGS"
10909 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10910 $as_unset ac_cv_header_fontconfig_fontconfig_h
10911 for ac_header in fontconfig/fontconfig.h
10912 do :
10913 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
10914 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
10915 cat >>confdefs.h <<_ACEOF
10916 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
10917 _ACEOF
10921 done
10923 CPPFLAGS="$ac_save_CPPFLAGS"
10924 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10925 then
10926 FONTCONFIGINCL="$X_CFLAGS"
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10929 $as_echo_n "checking for -lfontconfig... " >&6; }
10930 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933 ac_check_soname_save_LIBS=$LIBS
10934 LIBS="-lfontconfig $X_LIBS $LIBS"
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10938 /* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10941 #ifdef __cplusplus
10942 extern "C"
10943 #endif
10944 char FcInit ();
10946 main ()
10948 return FcInit ();
10950 return 0;
10952 _ACEOF
10953 if ac_fn_c_try_link "$LINENO"; then :
10954 case "$LIBEXT" in
10955 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10956 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'` ;;
10957 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10958 esac
10960 rm -f core conftest.err conftest.$ac_objext \
10961 conftest$ac_exeext conftest.$ac_ext
10962 LIBS=$ac_check_soname_save_LIBS
10964 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10966 $as_echo "not found" >&6; }
10968 else
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10970 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10972 cat >>confdefs.h <<_ACEOF
10973 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10974 _ACEOF
10980 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10981 case "x$with_fontconfig" in
10982 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
10983 xno) ;;
10984 *) as_fn_error "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
10985 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
10986 esac
10989 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
10990 then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
10992 $as_echo_n "checking for -lssl... " >&6; }
10993 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 ac_check_soname_save_LIBS=$LIBS
10997 LIBS="-lssl $LIBS"
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11001 /* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
11004 #ifdef __cplusplus
11005 extern "C"
11006 #endif
11007 char SSL_library_init ();
11009 main ()
11011 return SSL_library_init ();
11013 return 0;
11015 _ACEOF
11016 if ac_fn_c_try_link "$LINENO"; then :
11017 case "$LIBEXT" in
11018 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11019 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'` ;;
11020 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11021 esac
11023 rm -f core conftest.err conftest.$ac_objext \
11024 conftest$ac_exeext conftest.$ac_ext
11025 LIBS=$ac_check_soname_save_LIBS
11027 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11029 $as_echo "not found" >&6; }
11031 else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11033 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11035 cat >>confdefs.h <<_ACEOF
11036 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11037 _ACEOF
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11042 $as_echo_n "checking for -lcrypto... " >&6; }
11043 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
11044 $as_echo_n "(cached) " >&6
11045 else
11046 ac_check_soname_save_LIBS=$LIBS
11047 LIBS="-lcrypto $LIBS"
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11051 /* Override any GCC internal prototype to avoid an error.
11052 Use char because int might match the return type of a GCC
11053 builtin and then its argument prototype would still apply. */
11054 #ifdef __cplusplus
11055 extern "C"
11056 #endif
11057 char BIO_new_socket ();
11059 main ()
11061 return BIO_new_socket ();
11063 return 0;
11065 _ACEOF
11066 if ac_fn_c_try_link "$LINENO"; then :
11067 case "$LIBEXT" in
11068 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11069 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'` ;;
11070 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11071 esac
11073 rm -f core conftest.err conftest.$ac_objext \
11074 conftest$ac_exeext conftest.$ac_ext
11075 LIBS=$ac_check_soname_save_LIBS
11077 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11079 $as_echo "not found" >&6; }
11081 else
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11083 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11085 cat >>confdefs.h <<_ACEOF
11086 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11087 _ACEOF
11092 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11093 case "x$with_openssl" in
11094 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11095 xno) ;;
11096 *) as_fn_error "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11097 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11098 esac
11101 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11102 then
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11104 $as_echo_n "checking for -lgsm... " >&6; }
11105 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 ac_check_soname_save_LIBS=$LIBS
11109 LIBS="-lgsm $LIBS"
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11113 /* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11116 #ifdef __cplusplus
11117 extern "C"
11118 #endif
11119 char gsm_create ();
11121 main ()
11123 return gsm_create ();
11125 return 0;
11127 _ACEOF
11128 if ac_fn_c_try_link "$LINENO"; then :
11129 case "$LIBEXT" in
11130 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11131 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'` ;;
11132 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11133 esac
11135 rm -f core conftest.err conftest.$ac_objext \
11136 conftest$ac_exeext conftest.$ac_ext
11137 LIBS=$ac_check_soname_save_LIBS
11139 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11141 $as_echo "not found" >&6; }
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11145 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11147 cat >>confdefs.h <<_ACEOF
11148 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11149 _ACEOF
11154 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11155 case "x$with_gsm" in
11156 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11157 xno) ;;
11158 *) as_fn_error "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11159 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11160 esac
11163 if test "$ac_cv_header_jpeglib_h" = "yes"
11164 then
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11166 $as_echo_n "checking for -ljpeg... " >&6; }
11167 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
11168 $as_echo_n "(cached) " >&6
11169 else
11170 ac_check_soname_save_LIBS=$LIBS
11171 LIBS="-ljpeg $LIBS"
11172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173 /* end confdefs.h. */
11175 /* Override any GCC internal prototype to avoid an error.
11176 Use char because int might match the return type of a GCC
11177 builtin and then its argument prototype would still apply. */
11178 #ifdef __cplusplus
11179 extern "C"
11180 #endif
11181 char jpeg_start_decompress ();
11183 main ()
11185 return jpeg_start_decompress ();
11187 return 0;
11189 _ACEOF
11190 if ac_fn_c_try_link "$LINENO"; then :
11191 case "$LIBEXT" in
11192 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11193 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'` ;;
11194 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11195 esac
11197 rm -f core conftest.err conftest.$ac_objext \
11198 conftest$ac_exeext conftest.$ac_ext
11199 LIBS=$ac_check_soname_save_LIBS
11201 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11203 $as_echo "not found" >&6; }
11205 else
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11207 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11209 cat >>confdefs.h <<_ACEOF
11210 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11211 _ACEOF
11216 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11217 case "x$with_jpeg" in
11218 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11219 xno) ;;
11220 *) as_fn_error "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11221 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11222 esac
11225 if test "$ac_cv_header_png_h" = "yes"
11226 then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11228 $as_echo_n "checking for -lpng... " >&6; }
11229 if test "${ac_cv_lib_soname_png+set}" = set; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 ac_check_soname_save_LIBS=$LIBS
11233 LIBS="-lpng -lm -lz $LIBS"
11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11237 /* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
11240 #ifdef __cplusplus
11241 extern "C"
11242 #endif
11243 char png_create_read_struct ();
11245 main ()
11247 return png_create_read_struct ();
11249 return 0;
11251 _ACEOF
11252 if ac_fn_c_try_link "$LINENO"; then :
11253 case "$LIBEXT" in
11254 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11255 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'` ;;
11256 *) 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'` ;;
11257 esac
11259 rm -f core conftest.err conftest.$ac_objext \
11260 conftest$ac_exeext conftest.$ac_ext
11261 LIBS=$ac_check_soname_save_LIBS
11263 if test "x$ac_cv_lib_soname_png" = "x"; then :
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11265 $as_echo "not found" >&6; }
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11269 $as_echo "$ac_cv_lib_soname_png" >&6; }
11271 cat >>confdefs.h <<_ACEOF
11272 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11273 _ACEOF
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11278 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11279 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11280 $as_echo_n "(cached) " >&6
11281 else
11282 ac_check_lib_save_LIBS=$LIBS
11283 LIBS="-lpng -lm -lz $LIBS"
11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11287 /* Override any GCC internal prototype to avoid an error.
11288 Use char because int might match the return type of a GCC
11289 builtin and then its argument prototype would still apply. */
11290 #ifdef __cplusplus
11291 extern "C"
11292 #endif
11293 char png_set_expand_gray_1_2_4_to_8 ();
11295 main ()
11297 return png_set_expand_gray_1_2_4_to_8 ();
11299 return 0;
11301 _ACEOF
11302 if ac_fn_c_try_link "$LINENO"; then :
11303 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11304 else
11305 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11307 rm -f core conftest.err conftest.$ac_objext \
11308 conftest$ac_exeext conftest.$ac_ext
11309 LIBS=$ac_check_lib_save_LIBS
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11312 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11313 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11315 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11320 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11321 then
11322 ac_save_CPPFLAGS="$CPPFLAGS"
11323 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11324 $as_unset ac_cv_header_png_h
11325 for ac_header in png.h
11326 do :
11327 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11328 if test "x$ac_cv_header_png_h" = x""yes; then :
11329 cat >>confdefs.h <<_ACEOF
11330 #define HAVE_PNG_H 1
11331 _ACEOF
11335 done
11337 CPPFLAGS="$ac_save_CPPFLAGS"
11338 if test "$ac_cv_header_png_h" = "yes"
11339 then
11340 PNGINCL="$X_CFLAGS"
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11343 $as_echo_n "checking for -lpng... " >&6; }
11344 if test "${ac_cv_lib_soname_png+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 ac_check_soname_save_LIBS=$LIBS
11348 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11355 #ifdef __cplusplus
11356 extern "C"
11357 #endif
11358 char png_create_read_struct ();
11360 main ()
11362 return png_create_read_struct ();
11364 return 0;
11366 _ACEOF
11367 if ac_fn_c_try_link "$LINENO"; then :
11368 case "$LIBEXT" in
11369 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11370 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'` ;;
11371 *) 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'` ;;
11372 esac
11374 rm -f core conftest.err conftest.$ac_objext \
11375 conftest$ac_exeext conftest.$ac_ext
11376 LIBS=$ac_check_soname_save_LIBS
11378 if test "x$ac_cv_lib_soname_png" = "x"; then :
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11380 $as_echo "not found" >&6; }
11382 else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11384 $as_echo "$ac_cv_lib_soname_png" >&6; }
11386 cat >>confdefs.h <<_ACEOF
11387 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11388 _ACEOF
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11393 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11394 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 ac_check_lib_save_LIBS=$LIBS
11398 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11402 /* Override any GCC internal prototype to avoid an error.
11403 Use char because int might match the return type of a GCC
11404 builtin and then its argument prototype would still apply. */
11405 #ifdef __cplusplus
11406 extern "C"
11407 #endif
11408 char png_set_expand_gray_1_2_4_to_8 ();
11410 main ()
11412 return png_set_expand_gray_1_2_4_to_8 ();
11414 return 0;
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11419 else
11420 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 LIBS=$ac_check_lib_save_LIBS
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11427 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11428 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11429 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11435 if test "x$ac_cv_lib_soname_png" = "x"; then :
11436 case "x$with_png" in
11437 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11438 xno) ;;
11439 *) as_fn_error "libpng ${notice_platform}development files not found, PNG won't be supported.
11440 This is an error since --with-png was requested." "$LINENO" 5 ;;
11441 esac
11444 if test "$ac_cv_header_tiffio_h" = "yes"
11445 then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11447 $as_echo_n "checking for -ltiff... " >&6; }
11448 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11449 $as_echo_n "(cached) " >&6
11450 else
11451 ac_check_soname_save_LIBS=$LIBS
11452 LIBS="-ltiff $LIBS"
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11456 /* Override any GCC internal prototype to avoid an error.
11457 Use char because int might match the return type of a GCC
11458 builtin and then its argument prototype would still apply. */
11459 #ifdef __cplusplus
11460 extern "C"
11461 #endif
11462 char TIFFClientOpen ();
11464 main ()
11466 return TIFFClientOpen ();
11468 return 0;
11470 _ACEOF
11471 if ac_fn_c_try_link "$LINENO"; then :
11472 case "$LIBEXT" in
11473 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11474 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'` ;;
11475 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11476 esac
11478 rm -f core conftest.err conftest.$ac_objext \
11479 conftest$ac_exeext conftest.$ac_ext
11480 LIBS=$ac_check_soname_save_LIBS
11482 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11484 $as_echo "not found" >&6; }
11486 else
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11488 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11490 cat >>confdefs.h <<_ACEOF
11491 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11492 _ACEOF
11497 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11498 case "x$with_tiff" in
11499 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11500 xno) ;;
11501 *) as_fn_error "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11502 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11503 esac
11506 if test "$ac_cv_header_mpg123_h" = "yes"
11507 then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11509 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11510 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 ac_check_lib_save_LIBS=$LIBS
11514 LIBS="-lmpg123 $LIBS"
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11518 /* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11521 #ifdef __cplusplus
11522 extern "C"
11523 #endif
11524 char mpg123_feed ();
11526 main ()
11528 return mpg123_feed ();
11530 return 0;
11532 _ACEOF
11533 if ac_fn_c_try_link "$LINENO"; then :
11534 ac_cv_lib_mpg123_mpg123_feed=yes
11535 else
11536 ac_cv_lib_mpg123_mpg123_feed=no
11538 rm -f core conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540 LIBS=$ac_check_lib_save_LIBS
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11543 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11544 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11545 LIBMPG123="-lmpg123"
11550 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11551 case "x$with_mpg123" in
11552 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11553 xno) ;;
11554 *) as_fn_error "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11555 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11556 esac
11558 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}
11560 if test "$ac_cv_header_AL_al_h" = "yes"
11561 then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11563 $as_echo_n "checking for -lopenal... " >&6; }
11564 if test "${ac_cv_lib_soname_openal+set}" = set; then :
11565 $as_echo_n "(cached) " >&6
11566 else
11567 ac_check_soname_save_LIBS=$LIBS
11568 LIBS="-lopenal $LIBS"
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11572 /* Override any GCC internal prototype to avoid an error.
11573 Use char because int might match the return type of a GCC
11574 builtin and then its argument prototype would still apply. */
11575 #ifdef __cplusplus
11576 extern "C"
11577 #endif
11578 char alGetSource3i ();
11580 main ()
11582 return alGetSource3i ();
11584 return 0;
11586 _ACEOF
11587 if ac_fn_c_try_link "$LINENO"; then :
11588 case "$LIBEXT" in
11589 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11590 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'` ;;
11591 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11592 esac
11594 rm -f core conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11596 LIBS=$ac_check_soname_save_LIBS
11598 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11600 $as_echo "not found" >&6; }
11602 else
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11604 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11606 cat >>confdefs.h <<_ACEOF
11607 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11608 _ACEOF
11610 LIBOPENAL="-lopenal"
11612 ac_cv_lib_openal=yes
11614 cat >>confdefs.h <<_ACEOF
11615 #define HAVE_OPENAL 1
11616 _ACEOF
11620 if test "x$ac_cv_lib_openal" != xyes; then :
11621 case "x$with_openal" in
11622 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11623 xno) ;;
11624 *) as_fn_error "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11625 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11626 esac
11628 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11630 if test "$ac_cv_header_kstat_h" = "yes"
11631 then
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11633 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11634 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 ac_check_lib_save_LIBS=$LIBS
11638 LIBS="-lkstat $LIBS"
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11642 /* Override any GCC internal prototype to avoid an error.
11643 Use char because int might match the return type of a GCC
11644 builtin and then its argument prototype would still apply. */
11645 #ifdef __cplusplus
11646 extern "C"
11647 #endif
11648 char kstat_open ();
11650 main ()
11652 return kstat_open ();
11654 return 0;
11656 _ACEOF
11657 if ac_fn_c_try_link "$LINENO"; then :
11658 ac_cv_lib_kstat_kstat_open=yes
11659 else
11660 ac_cv_lib_kstat_kstat_open=no
11662 rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11664 LIBS=$ac_check_lib_save_LIBS
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11667 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11668 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11670 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11672 LIBKSTAT="-lkstat"
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11679 $as_echo_n "checking for -lodbc... " >&6; }
11680 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
11681 $as_echo_n "(cached) " >&6
11682 else
11683 ac_check_soname_save_LIBS=$LIBS
11684 LIBS="-lodbc $LIBS"
11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686 /* end confdefs.h. */
11688 /* Override any GCC internal prototype to avoid an error.
11689 Use char because int might match the return type of a GCC
11690 builtin and then its argument prototype would still apply. */
11691 #ifdef __cplusplus
11692 extern "C"
11693 #endif
11694 char SQLConnect ();
11696 main ()
11698 return SQLConnect ();
11700 return 0;
11702 _ACEOF
11703 if ac_fn_c_try_link "$LINENO"; then :
11704 case "$LIBEXT" in
11705 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11706 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'` ;;
11707 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11708 esac
11710 rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11712 LIBS=$ac_check_soname_save_LIBS
11714 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11716 $as_echo "not found" >&6; }
11717 cat >>confdefs.h <<_ACEOF
11718 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11719 _ACEOF
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11723 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11725 cat >>confdefs.h <<_ACEOF
11726 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11727 _ACEOF
11732 if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$PULSELIBS$ac_cv_lib_soname_jack" = "x" -a \
11733 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
11734 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
11735 "$ac_cv_header_soundcard_h" != "yes" -a \
11736 "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
11737 then
11738 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11742 EXTRACFLAGS=""
11744 if test "x${GCC}" = "xyes"
11745 then
11746 EXTRACFLAGS="-Wall -pipe"
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11749 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11750 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
11751 $as_echo_n "(cached) " >&6
11752 else
11753 if test "$cross_compiling" = yes; then :
11754 ac_cv_c_gcc_strength_bug="yes"
11755 else
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h. */
11758 int L[4] = {0,1,2,3};
11760 main ()
11762 static int Array[3];
11763 unsigned int B = 3;
11764 int i;
11765 for(i=0; i<B; i++) Array[i] = i - 3;
11766 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11767 L[i] = 4;
11768 return (Array[1] != -2 || L[2] != 3)
11770 return 0;
11772 _ACEOF
11773 if ac_fn_c_try_run "$LINENO"; then :
11774 ac_cv_c_gcc_strength_bug="no"
11775 else
11776 ac_cv_c_gcc_strength_bug="yes"
11778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11779 conftest.$ac_objext conftest.beam conftest.$ac_ext
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11784 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11785 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11786 then
11787 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11791 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11792 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
11793 $as_echo_n "(cached) " >&6
11794 else
11795 ac_wine_try_cflags_saved=$CFLAGS
11796 CFLAGS="$CFLAGS -fno-builtin"
11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798 /* end confdefs.h. */
11799 int main(int argc, char **argv) { return 0; }
11800 _ACEOF
11801 if ac_fn_c_try_link "$LINENO"; then :
11802 ac_cv_cflags__fno_builtin=yes
11803 else
11804 ac_cv_cflags__fno_builtin=no
11806 rm -f core conftest.err conftest.$ac_objext \
11807 conftest$ac_exeext conftest.$ac_ext
11808 CFLAGS=$ac_wine_try_cflags_saved
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11811 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11812 if test $ac_cv_cflags__fno_builtin = yes; then :
11813 BUILTINFLAG="-fno-builtin"
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11817 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11818 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 ac_wine_try_cflags_saved=$CFLAGS
11822 CFLAGS="$CFLAGS -fno-strict-aliasing"
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11825 int main(int argc, char **argv) { return 0; }
11826 _ACEOF
11827 if ac_fn_c_try_link "$LINENO"; then :
11828 ac_cv_cflags__fno_strict_aliasing=yes
11829 else
11830 ac_cv_cflags__fno_strict_aliasing=no
11832 rm -f core conftest.err conftest.$ac_objext \
11833 conftest$ac_exeext conftest.$ac_ext
11834 CFLAGS=$ac_wine_try_cflags_saved
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11837 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11838 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11839 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11842 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11843 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
11844 $as_echo_n "(cached) " >&6
11845 else
11846 ac_wine_try_cflags_saved=$CFLAGS
11847 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h. */
11850 int main(int argc, char **argv) { return 0; }
11851 _ACEOF
11852 if ac_fn_c_try_link "$LINENO"; then :
11853 ac_cv_cflags__Wdeclaration_after_statement=yes
11854 else
11855 ac_cv_cflags__Wdeclaration_after_statement=no
11857 rm -f core conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11859 CFLAGS=$ac_wine_try_cflags_saved
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
11862 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
11863 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
11864 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11867 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11868 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 ac_wine_try_cflags_saved=$CFLAGS
11872 CFLAGS="$CFLAGS -Wstrict-prototypes"
11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h. */
11875 int main(int argc, char **argv) { return 0; }
11876 _ACEOF
11877 if ac_fn_c_try_link "$LINENO"; then :
11878 ac_cv_cflags__Wstrict_prototypes=yes
11879 else
11880 ac_cv_cflags__Wstrict_prototypes=no
11882 rm -f core conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
11884 CFLAGS=$ac_wine_try_cflags_saved
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11887 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11888 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11889 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
11892 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
11893 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
11894 $as_echo_n "(cached) " >&6
11895 else
11896 ac_wine_try_cflags_saved=$CFLAGS
11897 CFLAGS="$CFLAGS -Wtype-limits"
11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11900 int main(int argc, char **argv) { return 0; }
11901 _ACEOF
11902 if ac_fn_c_try_link "$LINENO"; then :
11903 ac_cv_cflags__Wtype_limits=yes
11904 else
11905 ac_cv_cflags__Wtype_limits=no
11907 rm -f core conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909 CFLAGS=$ac_wine_try_cflags_saved
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
11912 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
11913 if test $ac_cv_cflags__Wtype_limits = yes; then :
11914 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
11917 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
11918 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 ac_wine_try_cflags_saved=$CFLAGS
11922 CFLAGS="$CFLAGS -Wwrite-strings"
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11925 int main(int argc, char **argv) { return 0; }
11926 _ACEOF
11927 if ac_fn_c_try_link "$LINENO"; then :
11928 ac_cv_cflags__Wwrite_strings=yes
11929 else
11930 ac_cv_cflags__Wwrite_strings=no
11932 rm -f core conftest.err conftest.$ac_objext \
11933 conftest$ac_exeext conftest.$ac_ext
11934 CFLAGS=$ac_wine_try_cflags_saved
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
11937 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
11938 if test $ac_cv_cflags__Wwrite_strings = yes; then :
11939 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
11942 saved_CFLAGS="$CFLAGS"
11943 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings" >&5
11945 $as_echo_n "checking for broken string.h that generates warnings... " >&6; }
11946 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
11947 $as_echo_n "(cached) " >&6
11948 else
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11951 #include <string.h>
11953 main ()
11957 return 0;
11959 _ACEOF
11960 if ac_fn_c_try_compile "$LINENO"; then :
11961 ac_cv_c_string_h_warnings=no
11962 else
11963 ac_cv_c_string_h_warnings=yes
11965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
11968 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
11969 CFLAGS="$saved_CFLAGS"
11970 if test "$ac_cv_c_string_h_warnings" = "no"
11971 then
11972 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11975 if test "x$enable_maintainer_mode" = "xyes"
11976 then
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
11978 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
11979 if test "${ac_cv_cflags__Werror+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 ac_wine_try_cflags_saved=$CFLAGS
11983 CFLAGS="$CFLAGS -Werror"
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11986 int main(int argc, char **argv) { return 0; }
11987 _ACEOF
11988 if ac_fn_c_try_link "$LINENO"; then :
11989 ac_cv_cflags__Werror=yes
11990 else
11991 ac_cv_cflags__Werror=no
11993 rm -f core conftest.err conftest.$ac_objext \
11994 conftest$ac_exeext conftest.$ac_ext
11995 CFLAGS=$ac_wine_try_cflags_saved
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
11998 $as_echo "$ac_cv_cflags__Werror" >&6; }
11999 if test $ac_cv_cflags__Werror = yes; then :
12000 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12004 saved_CFLAGS="$CFLAGS"
12005 CFLAGS="$CFLAGS -Werror"
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12007 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12008 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12009 $as_echo_n "(cached) " >&6
12010 else
12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12013 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12015 main ()
12019 return 0;
12021 _ACEOF
12022 if ac_fn_c_try_compile "$LINENO"; then :
12023 ac_cv_have_ms_hook_prologue="yes"
12024 else
12025 ac_cv_have_ms_hook_prologue="no"
12027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12030 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12031 CFLAGS="$saved_CFLAGS"
12032 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12033 then
12035 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12037 else
12038 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12045 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12046 if test "${ac_cv_c_extern_prefix+set}" = set; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051 extern int ac_test;
12053 main ()
12055 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12057 return 0;
12059 _ACEOF
12060 if ac_fn_c_try_link "$LINENO"; then :
12061 ac_cv_c_extern_prefix="yes"
12062 else
12063 ac_cv_c_extern_prefix="no"
12065 rm -f core conftest.err conftest.$ac_objext \
12066 conftest$ac_exeext conftest.$ac_ext
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12069 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12071 case $host_cpu in
12072 *i[3456789]86*)
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12074 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12075 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080 #ifndef _MSC_VER
12081 #define __stdcall __attribute__((__stdcall__))
12082 #endif
12083 int __stdcall ac_test(int i) { return i; }
12085 main ()
12087 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12089 return 0;
12091 _ACEOF
12092 if ac_fn_c_try_link "$LINENO"; then :
12093 ac_cv_c_stdcall_suffix="yes"
12094 else
12095 ac_cv_c_stdcall_suffix="no"
12097 rm -f core conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12101 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12102 *) ac_cv_c_stdcall_suffix="no" ;;
12103 esac
12106 if test "$ac_cv_c_extern_prefix" = "yes"
12107 then
12108 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12110 asm_name_prefix="_"
12111 else
12112 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12114 asm_name_prefix=""
12118 if test "$ac_cv_c_stdcall_suffix" = "yes"
12119 then
12120 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12122 else
12123 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12129 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12130 if test "${ac_cv_asm_func_def+set}" = set; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12137 main ()
12139 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12141 return 0;
12143 _ACEOF
12144 if ac_fn_c_try_link "$LINENO"; then :
12145 ac_cv_asm_func_def=".def"
12146 else
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12151 main ()
12153 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12155 return 0;
12157 _ACEOF
12158 if ac_fn_c_try_link "$LINENO"; then :
12159 ac_cv_asm_func_def=".type @function"
12160 else
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12165 main ()
12167 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12169 return 0;
12171 _ACEOF
12172 if ac_fn_c_try_link "$LINENO"; then :
12173 ac_cv_asm_func_def=".type 2"
12174 else
12175 ac_cv_asm_func_def="unknown"
12177 rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12180 rm -f core conftest.err conftest.$ac_objext \
12181 conftest$ac_exeext conftest.$ac_ext
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12187 $as_echo "$ac_cv_asm_func_def" >&6; }
12190 case "$ac_cv_asm_func_def" in
12191 ".def")
12192 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12194 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12195 ".type @function")
12196 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12198 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12199 ".type 2")
12200 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12202 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12204 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12206 asm_func_header="" ;;
12207 esac
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12210 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12211 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12216 asm(".text\n\t.long 0");
12218 main ()
12222 return 0;
12224 _ACEOF
12225 if ac_fn_c_try_compile "$LINENO"; then :
12226 ac_cv_c_asm_outside_funcs="yes"
12227 else
12228 ac_cv_c_asm_outside_funcs="no"
12230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12233 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12236 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12237 if test "${ac_cv_c_dot_previous+set}" = set; then :
12238 $as_echo_n "(cached) " >&6
12239 else
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12244 main ()
12246 asm(".text\nac_test:\t.long 0\n\t.previous");
12248 return 0;
12250 _ACEOF
12251 if ac_fn_c_try_link "$LINENO"; then :
12252 ac_cv_c_dot_previous="yes"
12253 else
12254 ac_cv_c_dot_previous="no"
12256 rm -f core conftest.err conftest.$ac_objext \
12257 conftest$ac_exeext conftest.$ac_ext
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12260 $as_echo "$ac_cv_c_dot_previous" >&6; }
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12263 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12264 if test "${ac_cv_c_cfi_support+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12269 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12271 main ()
12275 return 0;
12277 _ACEOF
12278 if ac_fn_c_try_compile "$LINENO"; then :
12279 ac_cv_c_cfi_support="yes"
12280 else
12281 ac_cv_c_cfi_support="no"
12283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12286 $as_echo "$ac_cv_c_cfi_support" >&6; }
12288 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12289 asm_func_trailer=""
12290 if test "$ac_cv_c_dot_previous" = "yes"
12291 then
12292 asm_func_trailer="\\n\\t.previous"
12294 if test "$ac_cv_c_cfi_support" = "yes"
12295 then
12296 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12297 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12299 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12301 UNWINDFLAGS=-fasynchronous-unwind-tables
12303 else
12304 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12308 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12311 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12312 then
12313 cat >>confdefs.h <<_ACEOF
12314 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12315 _ACEOF
12317 else
12318 cat >>confdefs.h <<_ACEOF
12319 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12320 _ACEOF
12324 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12327 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12331 LDPATH=""
12333 case $build_os in
12334 cygwin*|mingw32*)
12335 TOOLSEXT=".exe"
12337 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12339 darwin*|macosx*)
12342 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12344 esac
12346 case $host_os in
12347 mingw32*)
12348 CRTLIBS="-lmsvcrt"
12350 SOCKETLIBS="-L\$(TOPOBJDIR)/dlls/ws2_32 -lws2_32"
12353 esac
12355 MAIN_BINARY="wine"
12357 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12359 case $host_cpu in
12360 *i[3456789]86*)
12361 case $host_os in
12362 linux*)
12363 EXTRA_BINARIES="wine-preloader"
12365 esac
12367 esac
12370 ac_save_CFLAGS="$CFLAGS"
12371 CFLAGS="$CFLAGS $BUILTINFLAG"
12372 for ac_func in \
12373 _pclose \
12374 _popen \
12375 _snprintf \
12376 _spawnvp \
12377 _strdup \
12378 _stricmp \
12379 _strnicmp \
12380 _strtoi64 \
12381 _strtoui64 \
12382 _vsnprintf \
12383 asctime_r \
12384 chsize \
12385 dlopen \
12386 epoll_create \
12387 ffs \
12388 finite \
12389 fnmatch \
12390 fork \
12391 fpclass \
12392 fstatfs \
12393 fstatvfs \
12394 ftruncate \
12395 futimes \
12396 futimesat \
12397 getdirentries \
12398 getopt_long \
12399 getpagesize \
12400 getpwuid \
12401 gettid \
12402 gettimeofday \
12403 getuid \
12404 kqueue \
12405 lstat \
12406 memmove \
12407 mmap \
12408 pclose \
12409 pipe2 \
12410 poll \
12411 popen \
12412 port_create \
12413 prctl \
12414 pread \
12415 pwrite \
12416 readdir \
12417 readlink \
12418 sched_setaffinity \
12419 sched_yield \
12420 select \
12421 setproctitle \
12422 setrlimit \
12423 settimeofday \
12424 sigaltstack \
12425 sigprocmask \
12426 snprintf \
12427 spawnvp \
12428 statfs \
12429 statvfs \
12430 strcasecmp \
12431 strdup \
12432 strerror \
12433 strncasecmp \
12434 strtold \
12435 strtoll \
12436 strtoull \
12437 symlink \
12438 tcgetattr \
12439 thr_kill2 \
12440 timegm \
12441 usleep \
12442 vsnprintf \
12443 wait4 \
12444 waitpid \
12446 do :
12447 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12448 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12449 eval as_val=\$$as_ac_var
12450 if test "x$as_val" = x""yes; then :
12451 cat >>confdefs.h <<_ACEOF
12452 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12453 _ACEOF
12456 done
12458 CFLAGS="$ac_save_CFLAGS"
12460 if test "$ac_cv_func_dlopen" = no
12461 then
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12463 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12464 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 ac_check_lib_save_LIBS=$LIBS
12468 LIBS="-ldl $LIBS"
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12472 /* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
12475 #ifdef __cplusplus
12476 extern "C"
12477 #endif
12478 char dlopen ();
12480 main ()
12482 return dlopen ();
12484 return 0;
12486 _ACEOF
12487 if ac_fn_c_try_link "$LINENO"; then :
12488 ac_cv_lib_dl_dlopen=yes
12489 else
12490 ac_cv_lib_dl_dlopen=no
12492 rm -f core conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12494 LIBS=$ac_check_lib_save_LIBS
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12497 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12498 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12499 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12500 LIBDL="-ldl"
12505 ac_wine_check_funcs_save_LIBS="$LIBS"
12506 LIBS="$LIBS $LIBDL"
12507 for ac_func in dladdr
12508 do :
12509 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12510 if test "x$ac_cv_func_dladdr" = x""yes; then :
12511 cat >>confdefs.h <<_ACEOF
12512 #define HAVE_DLADDR 1
12513 _ACEOF
12516 done
12518 LIBS="$ac_wine_check_funcs_save_LIBS"
12520 if test "$ac_cv_func_poll" = no
12521 then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12523 $as_echo_n "checking for poll in -lpoll... " >&6; }
12524 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12525 $as_echo_n "(cached) " >&6
12526 else
12527 ac_check_lib_save_LIBS=$LIBS
12528 LIBS="-lpoll $LIBS"
12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12530 /* end confdefs.h. */
12532 /* Override any GCC internal prototype to avoid an error.
12533 Use char because int might match the return type of a GCC
12534 builtin and then its argument prototype would still apply. */
12535 #ifdef __cplusplus
12536 extern "C"
12537 #endif
12538 char poll ();
12540 main ()
12542 return poll ();
12544 return 0;
12546 _ACEOF
12547 if ac_fn_c_try_link "$LINENO"; then :
12548 ac_cv_lib_poll_poll=yes
12549 else
12550 ac_cv_lib_poll_poll=no
12552 rm -f core conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12554 LIBS=$ac_check_lib_save_LIBS
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12557 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12558 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12559 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12560 LIBPOLL="-lpoll"
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12567 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12568 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12569 $as_echo_n "(cached) " >&6
12570 else
12571 ac_func_search_save_LIBS=$LIBS
12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573 /* end confdefs.h. */
12575 /* Override any GCC internal prototype to avoid an error.
12576 Use char because int might match the return type of a GCC
12577 builtin and then its argument prototype would still apply. */
12578 #ifdef __cplusplus
12579 extern "C"
12580 #endif
12581 char gethostbyname ();
12583 main ()
12585 return gethostbyname ();
12587 return 0;
12589 _ACEOF
12590 for ac_lib in '' nsl; do
12591 if test -z "$ac_lib"; then
12592 ac_res="none required"
12593 else
12594 ac_res=-l$ac_lib
12595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12597 if ac_fn_c_try_link "$LINENO"; then :
12598 ac_cv_search_gethostbyname=$ac_res
12600 rm -f core conftest.err conftest.$ac_objext \
12601 conftest$ac_exeext
12602 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12603 break
12605 done
12606 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12608 else
12609 ac_cv_search_gethostbyname=no
12611 rm conftest.$ac_ext
12612 LIBS=$ac_func_search_save_LIBS
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12615 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12616 ac_res=$ac_cv_search_gethostbyname
12617 if test "$ac_res" != no; then :
12618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12624 $as_echo_n "checking for library containing connect... " >&6; }
12625 if test "${ac_cv_search_connect+set}" = set; then :
12626 $as_echo_n "(cached) " >&6
12627 else
12628 ac_func_search_save_LIBS=$LIBS
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12632 /* Override any GCC internal prototype to avoid an error.
12633 Use char because int might match the return type of a GCC
12634 builtin and then its argument prototype would still apply. */
12635 #ifdef __cplusplus
12636 extern "C"
12637 #endif
12638 char connect ();
12640 main ()
12642 return connect ();
12644 return 0;
12646 _ACEOF
12647 for ac_lib in '' socket; do
12648 if test -z "$ac_lib"; then
12649 ac_res="none required"
12650 else
12651 ac_res=-l$ac_lib
12652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12654 if ac_fn_c_try_link "$LINENO"; then :
12655 ac_cv_search_connect=$ac_res
12657 rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext
12659 if test "${ac_cv_search_connect+set}" = set; then :
12660 break
12662 done
12663 if test "${ac_cv_search_connect+set}" = set; then :
12665 else
12666 ac_cv_search_connect=no
12668 rm conftest.$ac_ext
12669 LIBS=$ac_func_search_save_LIBS
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12672 $as_echo "$ac_cv_search_connect" >&6; }
12673 ac_res=$ac_cv_search_connect
12674 if test "$ac_res" != no; then :
12675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12681 $as_echo_n "checking for library containing inet_aton... " >&6; }
12682 if test "${ac_cv_search_inet_aton+set}" = set; then :
12683 $as_echo_n "(cached) " >&6
12684 else
12685 ac_func_search_save_LIBS=$LIBS
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12689 /* Override any GCC internal prototype to avoid an error.
12690 Use char because int might match the return type of a GCC
12691 builtin and then its argument prototype would still apply. */
12692 #ifdef __cplusplus
12693 extern "C"
12694 #endif
12695 char inet_aton ();
12697 main ()
12699 return inet_aton ();
12701 return 0;
12703 _ACEOF
12704 for ac_lib in '' resolv; do
12705 if test -z "$ac_lib"; then
12706 ac_res="none required"
12707 else
12708 ac_res=-l$ac_lib
12709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12711 if ac_fn_c_try_link "$LINENO"; then :
12712 ac_cv_search_inet_aton=$ac_res
12714 rm -f core conftest.err conftest.$ac_objext \
12715 conftest$ac_exeext
12716 if test "${ac_cv_search_inet_aton+set}" = set; then :
12717 break
12719 done
12720 if test "${ac_cv_search_inet_aton+set}" = set; then :
12722 else
12723 ac_cv_search_inet_aton=no
12725 rm conftest.$ac_ext
12726 LIBS=$ac_func_search_save_LIBS
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12729 $as_echo "$ac_cv_search_inet_aton" >&6; }
12730 ac_res=$ac_cv_search_inet_aton
12731 if test "$ac_res" != no; then :
12732 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12737 for ac_func in \
12738 getaddrinfo \
12739 getnameinfo \
12740 getnetbyname \
12741 getprotobyname \
12742 getprotobynumber \
12743 getservbyport \
12744 inet_network \
12745 inet_ntop \
12746 inet_pton \
12747 sendmsg \
12748 socketpair \
12750 do :
12751 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12752 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12753 eval as_val=\$$as_ac_var
12754 if test "x$as_val" = x""yes; then :
12755 cat >>confdefs.h <<_ACEOF
12756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12757 _ACEOF
12760 done
12763 LDAPLIBS=""
12765 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12766 then
12767 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12769 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
12771 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
12772 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
12773 $as_echo_n "(cached) " >&6
12774 else
12775 ac_check_lib_save_LIBS=$LIBS
12776 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12780 /* Override any GCC internal prototype to avoid an error.
12781 Use char because int might match the return type of a GCC
12782 builtin and then its argument prototype would still apply. */
12783 #ifdef __cplusplus
12784 extern "C"
12785 #endif
12786 char ldap_initialize ();
12788 main ()
12790 return ldap_initialize ();
12792 return 0;
12794 _ACEOF
12795 if ac_fn_c_try_link "$LINENO"; then :
12796 ac_cv_lib_ldap_r_ldap_initialize=yes
12797 else
12798 ac_cv_lib_ldap_r_ldap_initialize=no
12800 rm -f core conftest.err conftest.$ac_objext \
12801 conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12805 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12806 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
12808 $as_echo_n "checking for ber_init in -llber... " >&6; }
12809 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12812 ac_check_lib_save_LIBS=$LIBS
12813 LIBS="-llber $LIBPTHREAD $LIBS"
12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815 /* end confdefs.h. */
12817 /* Override any GCC internal prototype to avoid an error.
12818 Use char because int might match the return type of a GCC
12819 builtin and then its argument prototype would still apply. */
12820 #ifdef __cplusplus
12821 extern "C"
12822 #endif
12823 char ber_init ();
12825 main ()
12827 return ber_init ();
12829 return 0;
12831 _ACEOF
12832 if ac_fn_c_try_link "$LINENO"; then :
12833 ac_cv_lib_lber_ber_init=yes
12834 else
12835 ac_cv_lib_lber_ber_init=no
12837 rm -f core conftest.err conftest.$ac_objext \
12838 conftest$ac_exeext conftest.$ac_ext
12839 LIBS=$ac_check_lib_save_LIBS
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
12842 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
12843 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
12845 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
12847 LDAPLIBS="-lldap_r -llber"
12854 ac_wine_check_funcs_save_LIBS="$LIBS"
12855 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12856 for ac_func in \
12857 ldap_count_references \
12858 ldap_first_reference \
12859 ldap_next_reference \
12860 ldap_parse_reference \
12861 ldap_parse_sort_control \
12862 ldap_parse_sortresponse_control \
12863 ldap_parse_vlv_control \
12864 ldap_parse_vlvresponse_control
12865 do :
12866 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12867 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12868 eval as_val=\$$as_ac_var
12869 if test "x$as_val" = x""yes; then :
12870 cat >>confdefs.h <<_ACEOF
12871 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12872 _ACEOF
12875 done
12877 LIBS="$ac_wine_check_funcs_save_LIBS"
12879 if test "x$LDAPLIBS" = "x"; then :
12880 case "x$with_ldap" in
12881 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
12882 xno) ;;
12883 *) as_fn_error "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
12884 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
12885 esac
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
12889 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
12890 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12895 #include <sys/stat.h>
12897 main ()
12899 mkdir("foo");
12901 return 0;
12903 _ACEOF
12904 if ac_fn_c_try_compile "$LINENO"; then :
12905 wine_cv_one_arg_mkdir=yes
12906 else
12907 wine_cv_one_arg_mkdir=no
12909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
12912 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
12913 if test "$wine_cv_one_arg_mkdir" = "yes"
12914 then
12916 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12922 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12923 if test "${ac_cv_c_const+set}" = set; then :
12924 $as_echo_n "(cached) " >&6
12925 else
12926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h. */
12930 main ()
12932 /* FIXME: Include the comments suggested by Paul. */
12933 #ifndef __cplusplus
12934 /* Ultrix mips cc rejects this. */
12935 typedef int charset[2];
12936 const charset cs;
12937 /* SunOS 4.1.1 cc rejects this. */
12938 char const *const *pcpcc;
12939 char **ppc;
12940 /* NEC SVR4.0.2 mips cc rejects this. */
12941 struct point {int x, y;};
12942 static struct point const zero = {0,0};
12943 /* AIX XL C 1.02.0.0 rejects this.
12944 It does not let you subtract one const X* pointer from another in
12945 an arm of an if-expression whose if-part is not a constant
12946 expression */
12947 const char *g = "string";
12948 pcpcc = &g + (g ? g-g : 0);
12949 /* HPUX 7.0 cc rejects these. */
12950 ++pcpcc;
12951 ppc = (char**) pcpcc;
12952 pcpcc = (char const *const *) ppc;
12953 { /* SCO 3.2v4 cc rejects this. */
12954 char *t;
12955 char const *s = 0 ? (char *) 0 : (char const *) 0;
12957 *t++ = 0;
12958 if (s) return 0;
12960 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12961 int x[] = {25, 17};
12962 const int *foo = &x[0];
12963 ++foo;
12965 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12966 typedef const int *iptr;
12967 iptr p = 0;
12968 ++p;
12970 { /* AIX XL C 1.02.0.0 rejects this saying
12971 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12972 struct s { int j; const int *ap[3]; };
12973 struct s *b; b->j = 5;
12975 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12976 const int foo = 10;
12977 if (!foo) return 0;
12979 return !cs[0] && !zero.x;
12980 #endif
12983 return 0;
12985 _ACEOF
12986 if ac_fn_c_try_compile "$LINENO"; then :
12987 ac_cv_c_const=yes
12988 else
12989 ac_cv_c_const=no
12991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12994 $as_echo "$ac_cv_c_const" >&6; }
12995 if test $ac_cv_c_const = no; then
12997 $as_echo "#define const /**/" >>confdefs.h
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13002 $as_echo_n "checking for inline... " >&6; }
13003 if test "${ac_cv_c_inline+set}" = set; then :
13004 $as_echo_n "(cached) " >&6
13005 else
13006 ac_cv_c_inline=no
13007 for ac_kw in inline __inline__ __inline; do
13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13010 #ifndef __cplusplus
13011 typedef int foo_t;
13012 static $ac_kw foo_t static_foo () {return 0; }
13013 $ac_kw foo_t foo () {return 0; }
13014 #endif
13016 _ACEOF
13017 if ac_fn_c_try_compile "$LINENO"; then :
13018 ac_cv_c_inline=$ac_kw
13020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13021 test "$ac_cv_c_inline" != no && break
13022 done
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13026 $as_echo "$ac_cv_c_inline" >&6; }
13028 case $ac_cv_c_inline in
13029 inline | yes) ;;
13031 case $ac_cv_c_inline in
13032 no) ac_val=;;
13033 *) ac_val=$ac_cv_c_inline;;
13034 esac
13035 cat >>confdefs.h <<_ACEOF
13036 #ifndef __cplusplus
13037 #define inline $ac_val
13038 #endif
13039 _ACEOF
13041 esac
13043 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13044 if test "x$ac_cv_type_mode_t" = x""yes; then :
13046 cat >>confdefs.h <<_ACEOF
13047 #define HAVE_MODE_T 1
13048 _ACEOF
13052 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13053 if test "x$ac_cv_type_off_t" = x""yes; then :
13055 cat >>confdefs.h <<_ACEOF
13056 #define HAVE_OFF_T 1
13057 _ACEOF
13061 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13062 if test "x$ac_cv_type_pid_t" = x""yes; then :
13064 cat >>confdefs.h <<_ACEOF
13065 #define HAVE_PID_T 1
13066 _ACEOF
13070 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13071 if test "x$ac_cv_type_size_t" = x""yes; then :
13073 cat >>confdefs.h <<_ACEOF
13074 #define HAVE_SIZE_T 1
13075 _ACEOF
13079 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13080 if test "x$ac_cv_type_ssize_t" = x""yes; then :
13082 cat >>confdefs.h <<_ACEOF
13083 #define HAVE_SSIZE_T 1
13084 _ACEOF
13088 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13089 if test "x$ac_cv_type_long_long" = x""yes; then :
13091 cat >>confdefs.h <<_ACEOF
13092 #define HAVE_LONG_LONG 1
13093 _ACEOF
13097 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13098 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
13100 cat >>confdefs.h <<_ACEOF
13101 #define HAVE_FSBLKCNT_T 1
13102 _ACEOF
13106 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13107 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
13109 cat >>confdefs.h <<_ACEOF
13110 #define HAVE_FSFILCNT_T 1
13111 _ACEOF
13116 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13117 #include <signal.h>
13119 if test "x$ac_cv_type_sigset_t" = x""yes; then :
13121 cat >>confdefs.h <<_ACEOF
13122 #define HAVE_SIGSET_T 1
13123 _ACEOF
13128 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13130 if test "x$ac_cv_type_request_sense" = x""yes; then :
13132 cat >>confdefs.h <<_ACEOF
13133 #define HAVE_REQUEST_SENSE 1
13134 _ACEOF
13140 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13141 #ifdef HAVE_SYS_SOCKET_H
13142 #include <sys/socket.h>
13143 #endif
13144 #ifdef HAVE_SYS_SOCKETVAR_H
13145 #include <sys/socketvar.h>
13146 #endif
13147 #ifdef HAVE_NET_ROUTE_H
13148 #include <net/route.h>
13149 #endif
13150 #ifdef HAVE_NETINET_IN_H
13151 #include <netinet/in.h>
13152 #endif
13153 #ifdef HAVE_NETINET_IN_SYSTM_H
13154 #include <netinet/in_systm.h>
13155 #endif
13156 #ifdef HAVE_NETINET_IP_H
13157 #include <netinet/ip.h>
13158 #endif
13159 #ifdef HAVE_NETINET_IN_PCB_H
13160 #include <netinet/in_pcb.h>
13161 #endif
13163 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
13165 cat >>confdefs.h <<_ACEOF
13166 #define HAVE_STRUCT_XINPGEN 1
13167 _ACEOF
13173 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13174 #include <linux/input.h>
13175 #endif
13177 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
13179 cat >>confdefs.h <<_ACEOF
13180 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13181 _ACEOF
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13188 $as_echo_n "checking for sigaddset... " >&6; }
13189 if test "${wine_cv_have_sigaddset+set}" = set; then :
13190 $as_echo_n "(cached) " >&6
13191 else
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h. */
13194 #include <signal.h>
13196 main ()
13198 sigset_t set; sigaddset(&set,SIGTERM);
13200 return 0;
13202 _ACEOF
13203 if ac_fn_c_try_link "$LINENO"; then :
13204 wine_cv_have_sigaddset=yes
13205 else
13206 wine_cv_have_sigaddset=no
13208 rm -f core conftest.err conftest.$ac_objext \
13209 conftest$ac_exeext conftest.$ac_ext
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13212 $as_echo "$wine_cv_have_sigaddset" >&6; }
13213 if test "$wine_cv_have_sigaddset" = "yes"
13214 then
13216 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13222 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13223 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13228 #include <netdb.h>
13230 main ()
13233 char *name=0;
13234 struct hostent he;
13235 struct hostent *result;
13236 char *buf=0;
13237 int bufsize=0;
13238 int res,errnr;
13239 char *addr=0;
13240 int addrlen=0;
13241 int addrtype=0;
13242 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13243 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13246 return 0;
13248 _ACEOF
13249 if ac_fn_c_try_link "$LINENO"; then :
13250 wine_cv_linux_gethostbyname_r_6=yes
13251 else
13252 wine_cv_linux_gethostbyname_r_6=no
13255 rm -f core conftest.err conftest.$ac_objext \
13256 conftest$ac_exeext conftest.$ac_ext
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13260 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13261 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13262 then
13264 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13268 if test "$ac_cv_header_linux_joystick_h" = "yes"
13269 then
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13271 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13272 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h. */
13278 #include <sys/ioctl.h>
13279 #include <sys/types.h>
13280 #include <linux/joystick.h>
13282 struct js_event blub;
13283 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13284 #error "no 2.2 header"
13285 #endif
13288 main ()
13290 /*empty*/
13292 return 0;
13294 _ACEOF
13295 if ac_fn_c_try_compile "$LINENO"; then :
13296 wine_cv_linux_joystick_22_api=yes
13297 else
13298 wine_cv_linux_joystick_22_api=no
13300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13304 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13305 if test "$wine_cv_linux_joystick_22_api" = "yes"
13306 then
13308 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13314 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13315 #ifdef HAVE_SYS_PARAM_H
13316 # include <sys/param.h>
13317 #endif
13318 #ifdef HAVE_SYS_MOUNT_H
13319 # include <sys/mount.h>
13320 #endif
13321 #ifdef HAVE_SYS_VFS_H
13322 # include <sys/vfs.h>
13323 #endif
13324 #ifdef HAVE_SYS_STATFS_H
13325 # include <sys/statfs.h>
13326 #endif
13328 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13330 cat >>confdefs.h <<_ACEOF
13331 #define HAVE_STRUCT_STATFS_F_BFREE 1
13332 _ACEOF
13336 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13337 #ifdef HAVE_SYS_PARAM_H
13338 # include <sys/param.h>
13339 #endif
13340 #ifdef HAVE_SYS_MOUNT_H
13341 # include <sys/mount.h>
13342 #endif
13343 #ifdef HAVE_SYS_VFS_H
13344 # include <sys/vfs.h>
13345 #endif
13346 #ifdef HAVE_SYS_STATFS_H
13347 # include <sys/statfs.h>
13348 #endif
13350 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13352 cat >>confdefs.h <<_ACEOF
13353 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13354 _ACEOF
13358 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13359 #ifdef HAVE_SYS_PARAM_H
13360 # include <sys/param.h>
13361 #endif
13362 #ifdef HAVE_SYS_MOUNT_H
13363 # include <sys/mount.h>
13364 #endif
13365 #ifdef HAVE_SYS_VFS_H
13366 # include <sys/vfs.h>
13367 #endif
13368 #ifdef HAVE_SYS_STATFS_H
13369 # include <sys/statfs.h>
13370 #endif
13372 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13374 cat >>confdefs.h <<_ACEOF
13375 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13376 _ACEOF
13380 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13381 #ifdef HAVE_SYS_PARAM_H
13382 # include <sys/param.h>
13383 #endif
13384 #ifdef HAVE_SYS_MOUNT_H
13385 # include <sys/mount.h>
13386 #endif
13387 #ifdef HAVE_SYS_VFS_H
13388 # include <sys/vfs.h>
13389 #endif
13390 #ifdef HAVE_SYS_STATFS_H
13391 # include <sys/statfs.h>
13392 #endif
13394 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13396 cat >>confdefs.h <<_ACEOF
13397 #define HAVE_STRUCT_STATFS_F_FFREE 1
13398 _ACEOF
13402 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13403 #ifdef HAVE_SYS_PARAM_H
13404 # include <sys/param.h>
13405 #endif
13406 #ifdef HAVE_SYS_MOUNT_H
13407 # include <sys/mount.h>
13408 #endif
13409 #ifdef HAVE_SYS_VFS_H
13410 # include <sys/vfs.h>
13411 #endif
13412 #ifdef HAVE_SYS_STATFS_H
13413 # include <sys/statfs.h>
13414 #endif
13416 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13418 cat >>confdefs.h <<_ACEOF
13419 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13420 _ACEOF
13424 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13425 #ifdef HAVE_SYS_PARAM_H
13426 # include <sys/param.h>
13427 #endif
13428 #ifdef HAVE_SYS_MOUNT_H
13429 # include <sys/mount.h>
13430 #endif
13431 #ifdef HAVE_SYS_VFS_H
13432 # include <sys/vfs.h>
13433 #endif
13434 #ifdef HAVE_SYS_STATFS_H
13435 # include <sys/statfs.h>
13436 #endif
13438 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13440 cat >>confdefs.h <<_ACEOF
13441 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13442 _ACEOF
13448 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13449 #include <sys/statvfs.h>
13450 #endif
13452 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13454 cat >>confdefs.h <<_ACEOF
13455 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13456 _ACEOF
13462 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13463 #ifdef HAVE_SYS_SOCKET_H
13464 # include <sys/socket.h>
13465 #endif
13466 #ifdef HAVE_SYS_UN_H
13467 # include <sys/un.h>
13468 #endif
13470 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13472 cat >>confdefs.h <<_ACEOF
13473 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13474 _ACEOF
13478 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13479 #ifdef HAVE_SYS_SOCKET_H
13480 # include <sys/socket.h>
13481 #endif
13482 #ifdef HAVE_SYS_UN_H
13483 # include <sys/un.h>
13484 #endif
13486 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13488 cat >>confdefs.h <<_ACEOF
13489 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13490 _ACEOF
13494 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13495 #ifdef HAVE_SYS_SOCKET_H
13496 # include <sys/socket.h>
13497 #endif
13498 #ifdef HAVE_SYS_UN_H
13499 # include <sys/un.h>
13500 #endif
13502 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13504 cat >>confdefs.h <<_ACEOF
13505 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13506 _ACEOF
13512 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13513 #ifdef HAVE_SCSI_SG_H
13514 #include <scsi/sg.h>
13515 #endif
13517 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13519 cat >>confdefs.h <<_ACEOF
13520 #define HAVE_SCSIREQ_T_CMD 1
13521 _ACEOF
13525 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>
13526 #ifdef HAVE_SCSI_SG_H
13527 #include <scsi/sg.h>
13528 #endif
13530 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13532 cat >>confdefs.h <<_ACEOF
13533 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13534 _ACEOF
13540 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13542 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13544 cat >>confdefs.h <<_ACEOF
13545 #define HAVE_SIGINFO_T_SI_FD 1
13546 _ACEOF
13552 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13553 #ifdef HAVE_SYS_MTIO_H
13554 #include <sys/mtio.h>
13555 #endif
13557 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13559 cat >>confdefs.h <<_ACEOF
13560 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13561 _ACEOF
13565 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13566 #ifdef HAVE_SYS_MTIO_H
13567 #include <sys/mtio.h>
13568 #endif
13570 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13572 cat >>confdefs.h <<_ACEOF
13573 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13574 _ACEOF
13578 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13579 #ifdef HAVE_SYS_MTIO_H
13580 #include <sys/mtio.h>
13581 #endif
13583 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
13585 cat >>confdefs.h <<_ACEOF
13586 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13587 _ACEOF
13593 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13594 #include <getopt.h>
13595 #endif
13597 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
13599 cat >>confdefs.h <<_ACEOF
13600 #define HAVE_STRUCT_OPTION_NAME 1
13601 _ACEOF
13607 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13608 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13610 cat >>confdefs.h <<_ACEOF
13611 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13612 _ACEOF
13616 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13617 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
13619 cat >>confdefs.h <<_ACEOF
13620 #define HAVE_STRUCT_STAT_ST_MTIM 1
13621 _ACEOF
13625 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13626 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
13628 cat >>confdefs.h <<_ACEOF
13629 #define HAVE_STRUCT_STAT_ST_CTIM 1
13630 _ACEOF
13634 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13635 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
13637 cat >>confdefs.h <<_ACEOF
13638 #define HAVE_STRUCT_STAT_ST_ATIM 1
13639 _ACEOF
13645 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
13646 #include <sys/types.h>
13647 #endif
13648 #ifdef HAVE_NETINET_IN_H
13649 #include <netinet/in.h>
13650 #endif
13652 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
13654 cat >>confdefs.h <<_ACEOF
13655 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13656 _ACEOF
13662 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13663 #include <sys/types.h>
13664 #endif
13665 #ifdef HAVE_NETINET_IN_H
13666 # include <netinet/in.h>
13667 #endif
13668 #ifdef HAVE_ARPA_NAMESER_H
13669 # include <arpa/nameser.h>
13670 #endif
13672 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
13674 cat >>confdefs.h <<_ACEOF
13675 #define HAVE_NS_MSG__MSG_PTR 1
13676 _ACEOF
13682 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13683 #include <sys/types.h>
13684 #endif
13685 #ifdef HAVE_ALIAS_H
13686 #include <alias.h>
13687 #endif
13688 #ifdef HAVE_SYS_SOCKET_H
13689 #include <sys/socket.h>
13690 #endif
13691 #ifdef HAVE_SYS_SOCKETVAR_H
13692 #include <sys/socketvar.h>
13693 #endif
13694 #ifdef HAVE_SYS_TIMEOUT_H
13695 #include <sys/timeout.h>
13696 #endif
13697 #ifdef HAVE_NETINET_IN_H
13698 #include <netinet/in.h>
13699 #endif
13700 #ifdef HAVE_NETINET_IN_SYSTM_H
13701 #include <netinet/in_systm.h>
13702 #endif
13703 #ifdef HAVE_NETINET_IP_H
13704 #include <netinet/ip.h>
13705 #endif
13706 #ifdef HAVE_NETINET_IP_VAR_H
13707 #include <netinet/ip_var.h>
13708 #endif
13709 #ifdef HAVE_NETINET_IP_ICMP_H
13710 #include <netinet/ip_icmp.h>
13711 #endif
13712 #ifdef HAVE_NETINET_ICMP_VAR
13713 #include <netinet/icmp_var.h>
13714 #endif
13716 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
13718 cat >>confdefs.h <<_ACEOF
13719 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13720 _ACEOF
13726 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13727 #include <sys/types.h>
13728 #endif
13729 #ifdef HAVE_NET_IF_H
13730 # include <net/if.h>
13731 #endif
13733 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
13735 cat >>confdefs.h <<_ACEOF
13736 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13737 _ACEOF
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
13744 $as_echo_n "checking for timezone variable... " >&6; }
13745 if test "${ac_cv_have_timezone+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750 #include <time.h>
13752 main ()
13754 timezone = 1
13756 return 0;
13758 _ACEOF
13759 if ac_fn_c_try_link "$LINENO"; then :
13760 ac_cv_have_timezone="yes"
13761 else
13762 ac_cv_have_timezone="no"
13764 rm -f core conftest.err conftest.$ac_objext \
13765 conftest$ac_exeext conftest.$ac_ext
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
13768 $as_echo "$ac_cv_have_timezone" >&6; }
13769 if test "$ac_cv_have_timezone" = "yes"
13770 then
13772 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
13776 $as_echo_n "checking for daylight variable... " >&6; }
13777 if test "${ac_cv_have_daylight+set}" = set; then :
13778 $as_echo_n "(cached) " >&6
13779 else
13780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h. */
13782 #include <time.h>
13784 main ()
13786 daylight = 1
13788 return 0;
13790 _ACEOF
13791 if ac_fn_c_try_link "$LINENO"; then :
13792 ac_cv_have_daylight="yes"
13793 else
13794 ac_cv_have_daylight="no"
13796 rm -f core conftest.err conftest.$ac_objext \
13797 conftest$ac_exeext conftest.$ac_ext
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
13800 $as_echo "$ac_cv_have_daylight" >&6; }
13801 if test "$ac_cv_have_daylight" = "yes"
13802 then
13804 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
13809 $as_echo_n "checking for isinf... " >&6; }
13810 if test "${ac_cv_have_isinf+set}" = set; then :
13811 $as_echo_n "(cached) " >&6
13812 else
13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814 /* end confdefs.h. */
13815 #include <math.h>
13817 main ()
13819 float f = 0.0; int i=isinf(f)
13821 return 0;
13823 _ACEOF
13824 if ac_fn_c_try_link "$LINENO"; then :
13825 ac_cv_have_isinf="yes"
13826 else
13827 ac_cv_have_isinf="no"
13829 rm -f core conftest.err conftest.$ac_objext \
13830 conftest$ac_exeext conftest.$ac_ext
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
13833 $as_echo "$ac_cv_have_isinf" >&6; }
13834 if test "$ac_cv_have_isinf" = "yes"
13835 then
13837 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
13842 $as_echo_n "checking for isnan... " >&6; }
13843 if test "${ac_cv_have_isnan+set}" = set; then :
13844 $as_echo_n "(cached) " >&6
13845 else
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13848 #include <math.h>
13850 main ()
13852 float f = 0.0; int i=isnan(f)
13854 return 0;
13856 _ACEOF
13857 if ac_fn_c_try_link "$LINENO"; then :
13858 ac_cv_have_isnan="yes"
13859 else
13860 ac_cv_have_isnan="no"
13862 rm -f core conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
13866 $as_echo "$ac_cv_have_isnan" >&6; }
13867 if test "$ac_cv_have_isnan" = "yes"
13868 then
13870 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13875 case $host_cpu in
13876 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
13877 $as_echo_n "checking whether we need to define __i386__... " >&6; }
13878 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
13879 $as_echo_n "(cached) " >&6
13880 else
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13883 #ifndef __i386__
13885 #endif
13886 _ACEOF
13887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13888 $EGREP "yes" >/dev/null 2>&1; then :
13889 ac_cv_cpp_def___i386__=yes
13890 else
13891 ac_cv_cpp_def___i386__=no
13893 rm -f conftest*
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
13897 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
13898 if test $ac_cv_cpp_def___i386__ = yes; then :
13899 CFLAGS="$CFLAGS -D__i386__"
13900 LINTFLAGS="$LINTFLAGS -D__i386__"
13901 fi ;;
13902 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
13903 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
13904 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
13905 $as_echo_n "(cached) " >&6
13906 else
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13909 #ifndef __x86_64__
13911 #endif
13912 _ACEOF
13913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13914 $EGREP "yes" >/dev/null 2>&1; then :
13915 ac_cv_cpp_def___x86_64__=yes
13916 else
13917 ac_cv_cpp_def___x86_64__=no
13919 rm -f conftest*
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
13923 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
13924 if test $ac_cv_cpp_def___x86_64__ = yes; then :
13925 CFLAGS="$CFLAGS -D__x86_64__"
13926 LINTFLAGS="$LINTFLAGS -D__x86_64__"
13927 fi ;;
13928 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
13929 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
13930 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
13931 $as_echo_n "(cached) " >&6
13932 else
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13935 #ifndef __ALPHA__
13937 #endif
13938 _ACEOF
13939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13940 $EGREP "yes" >/dev/null 2>&1; then :
13941 ac_cv_cpp_def___ALPHA__=yes
13942 else
13943 ac_cv_cpp_def___ALPHA__=no
13945 rm -f conftest*
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
13949 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
13950 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
13951 CFLAGS="$CFLAGS -D__ALPHA__"
13952 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
13953 fi ;;
13954 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
13955 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
13956 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
13957 $as_echo_n "(cached) " >&6
13958 else
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13961 #ifndef __sparc__
13963 #endif
13964 _ACEOF
13965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13966 $EGREP "yes" >/dev/null 2>&1; then :
13967 ac_cv_cpp_def___sparc__=yes
13968 else
13969 ac_cv_cpp_def___sparc__=no
13971 rm -f conftest*
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
13975 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
13976 if test $ac_cv_cpp_def___sparc__ = yes; then :
13977 CFLAGS="$CFLAGS -D__sparc__"
13978 LINTFLAGS="$LINTFLAGS -D__sparc__"
13979 fi ;;
13980 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
13981 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
13982 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
13983 $as_echo_n "(cached) " >&6
13984 else
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13987 #ifndef __powerpc__
13989 #endif
13990 _ACEOF
13991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13992 $EGREP "yes" >/dev/null 2>&1; then :
13993 ac_cv_cpp_def___powerpc__=yes
13994 else
13995 ac_cv_cpp_def___powerpc__=no
13997 rm -f conftest*
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14001 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14002 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14003 CFLAGS="$CFLAGS -D__powerpc__"
14004 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14005 fi ;;
14006 esac
14008 case $host_vendor in
14009 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14010 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14011 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
14012 $as_echo_n "(cached) " >&6
14013 else
14014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015 /* end confdefs.h. */
14016 #ifndef __sun__
14018 #endif
14019 _ACEOF
14020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14021 $EGREP "yes" >/dev/null 2>&1; then :
14022 ac_cv_cpp_def___sun__=yes
14023 else
14024 ac_cv_cpp_def___sun__=no
14026 rm -f conftest*
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14030 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14031 if test $ac_cv_cpp_def___sun__ = yes; then :
14032 CFLAGS="$CFLAGS -D__sun__"
14033 LINTFLAGS="$LINTFLAGS -D__sun__"
14034 fi ;;
14035 esac
14041 ac_config_commands="$ac_config_commands include/stamp-h"
14044 ALL_MAKEFILE_DEPENDS="
14045 # Rules automatically generated by configure
14047 .INIT: Makefile
14048 .MAKEFILEDEPS:
14049 all: Makefile
14050 Makefile: Makefile.in Make.rules config.status
14051 @./config.status Make.tmp Makefile"
14053 ALL_WINETEST_DEPENDS="# Test binaries"
14055 ALL_TEST_BINARIES=""
14058 wine_fn_append_file ()
14060 as_fn_append $1 " \\$as_nl $2"
14063 wine_fn_append_rule ()
14065 as_fn_append $1 "$as_nl$2"
14068 wine_fn_all_dir_rules ()
14070 wine_fn_append_file ALL_DIRS $1
14071 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14072 "__clean__: $1/__clean__
14073 .PHONY: $1/__clean__
14074 $1/__clean__: $1/Makefile
14075 @cd $1 && \$(MAKE) clean
14076 \$(RM) $1/Makefile
14077 $1/Makefile: $1/Makefile.in config.status $2
14078 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend
14079 depend: $1/__depend__
14080 .PHONY: $1/__depend__
14081 $1/__depend__: \$(MAKEDEP) dummy
14082 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend"
14085 wine_fn_config_makefile ()
14087 ac_dir=$1
14088 ac_enable=$2
14089 wine_fn_all_dir_rules $ac_dir "Make.rules \$(MAKEDEP)"
14091 eval as_val=\$$ac_enable
14092 if test "x$as_val" = x""no; then :
14094 else
14095 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14096 "all: $ac_dir
14097 .PHONY: $ac_dir
14098 $ac_dir: $ac_dir/Makefile dummy
14099 @cd $ac_dir && \$(MAKE)
14100 install:: $ac_dir
14101 @cd $ac_dir && \$(MAKE) install
14102 install-lib:: $ac_dir
14103 @cd $ac_dir && \$(MAKE) install-lib
14104 install-dev:: $ac_dir
14105 @cd $ac_dir && \$(MAKE) install-dev
14106 uninstall:: $ac_dir/Makefile
14107 @cd $ac_dir && \$(MAKE) uninstall"
14111 wine_fn_config_lib ()
14113 ac_name=$1
14114 ac_dir=dlls/$ac_name
14115 wine_fn_all_dir_rules $ac_dir "dlls/Makeimplib.rules \$(MAKEDEP)"
14116 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14117 "all __builddeps__: $ac_dir
14118 __buildcrossdeps__: $ac_dir/lib$ac_name.cross.a
14119 $ac_dir $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include
14120 $ac_dir: dummy
14121 @cd $ac_dir && \$(MAKE)
14122 $ac_dir/lib$ac_name.cross.a: dummy
14123 @cd $ac_dir && \$(MAKE) lib$ac_name.cross.a
14124 install install-dev:: $ac_dir
14125 @cd $ac_dir && \$(MAKE) install
14126 uninstall:: $ac_dir/Makefile
14127 @cd $ac_dir && \$(MAKE) uninstall"
14130 wine_fn_config_dll ()
14132 ac_dir=$1
14133 ac_enable=$2
14134 ac_implib=$3
14135 ac_implibsrc=$4
14136 ac_file="dlls/$ac_dir/lib$ac_implib"
14137 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14139 wine_fn_all_dir_rules dlls/$ac_dir "dlls/Makedll.rules \$(MAKEDEP)"
14141 eval as_val=\$$ac_enable
14142 if test "x$as_val" = x""no; then :
14143 test "$ac_enable" != enable_win16 || return 0
14144 else
14145 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14146 "all: dlls/$ac_dir
14147 .PHONY: dlls/$ac_dir
14148 dlls/$ac_dir: dlls/$ac_dir/Makefile __builddeps__ dummy
14149 @cd dlls/$ac_dir && \$(MAKE)
14150 install:: dlls/$ac_dir/Makefile __builddeps__
14151 @cd dlls/$ac_dir && \$(MAKE) install
14152 install-lib:: dlls/$ac_dir/Makefile __builddeps__
14153 @cd dlls/$ac_dir && \$(MAKE) install-lib
14154 uninstall manpages htmlpages sgmlpages xmlpages:: dlls/$ac_dir/Makefile
14155 @cd dlls/$ac_dir && \$(MAKE) \$@"
14158 if test -n "$ac_implibsrc"
14159 then
14160 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14161 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14162 __buildcrossdeps__: $ac_file.cross.a
14163 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14164 $ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile
14165 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
14166 $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/Makefile dummy
14167 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
14168 install-dev:: dlls/$ac_dir/Makefile __builddeps__
14169 @cd dlls/$ac_dir && \$(MAKE) install-dev"
14170 elif test -n "$ac_implib"
14171 then
14172 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14173 "__builddeps__: $ac_file.$IMPLIBEXT
14174 __buildcrossdeps__: $ac_file.cross.a
14175 $ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile $ac_deps
14176 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
14177 install-dev:: dlls/$ac_dir/Makefile __builddeps__
14178 @cd dlls/$ac_dir && \$(MAKE) install-dev"
14180 if test "$ac_dir" != "$ac_implib"
14181 then
14182 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14183 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14184 __buildcrossdeps__: dlls/lib$ac_implib.cross.a
14185 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14186 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.$IMPLIBEXT \$@
14187 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14188 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.cross.a \$@
14189 clean::
14190 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14195 wine_fn_config_program ()
14197 ac_dir=$1
14198 ac_enable=$2
14199 ac_install=$3
14200 wine_fn_all_dir_rules programs/$ac_dir "programs/Makeprog.rules \$(MAKEDEP)"
14202 eval as_val=\$$ac_enable
14203 if test "x$as_val" = x""no; then :
14205 else
14206 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14207 "all: programs/$ac_dir
14208 .PHONY: programs/$ac_dir
14209 programs/$ac_dir: programs/$ac_dir/Makefile __builddeps__ dummy
14210 @cd programs/$ac_dir && \$(MAKE)"
14212 test -n "$ac_install" || return
14213 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14214 "install install-lib:: programs/$ac_dir/Makefile __builddeps__
14215 @cd programs/$ac_dir && \$(MAKE) install
14216 uninstall:: programs/$ac_dir/Makefile
14217 @cd programs/$ac_dir && \$(MAKE) uninstall"
14218 if test "$ac_install" = installbin -a -n "$DLLEXT" -a "x$enable_tools" != xno
14219 then
14220 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14221 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14222 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_dir
14223 uninstall::
14224 \$(RM) \$(DESTDIR)\$(bindir)/$ac_dir"
14229 wine_fn_config_test ()
14231 ac_dir=$1
14232 ac_name=$2
14233 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14234 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14235 "$ac_name.exe: \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT
14236 cp \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14237 $ac_name.rc:
14238 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14239 $ac_name.res: $ac_name.rc $ac_name.exe"
14240 wine_fn_all_dir_rules $ac_dir "Maketest.rules \$(MAKEDEP)"
14242 if test "x$enable_tests" = x""no; then :
14244 else
14245 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14246 "all programs/winetest: $ac_dir
14247 .PHONY: $ac_dir
14248 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14249 @cd $ac_dir && \$(MAKE)
14250 crosstest: $ac_dir/__crosstest__
14251 .PHONY: $ac_dir/__crosstest__
14252 $ac_dir/__crosstest__: $ac_dir/Makefile __buildcrossdeps__ dummy
14253 @cd $ac_dir && \$(MAKE) crosstest
14254 test: $ac_dir/__test__
14255 .PHONY: $ac_dir/__test__
14256 $ac_dir/__test__: dummy
14257 @cd $ac_dir && \$(MAKE) test
14258 testclean::
14259 \$(RM) $ac_dir/*.ok"
14263 wine_fn_config_tool ()
14265 ac_dir=$1
14266 ac_deps="Make.rules"
14267 if test "$ac_dir" != tools
14268 then
14269 ac_deps="$ac_deps \$(MAKEDEP)"
14271 wine_fn_all_dir_rules $ac_dir "$ac_deps"
14273 if test "x$enable_tools" = x""no; then :
14275 else
14276 case $ac_dir in
14277 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14278 "install:: $ac_dir
14279 @cd $ac_dir && \$(MAKE) install
14280 install-lib:: $ac_dir
14281 @cd $ac_dir && \$(MAKE) install-lib
14282 install-dev:: $ac_dir
14283 @cd $ac_dir && \$(MAKE) install-dev" ;;
14284 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14285 "install install-dev:: $ac_dir
14286 @cd $ac_dir && \$(MAKE) install" ;;
14287 esac
14288 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14289 "uninstall:: $ac_dir/Makefile
14290 @cd $ac_dir && \$(MAKE) uninstall
14291 all __tooldeps__: $ac_dir
14292 .PHONY: $ac_dir
14293 $ac_dir: $ac_dir/Makefile libs/port dummy
14294 @cd $ac_dir && \$(MAKE)"
14298 wine_fn_config_makerules ()
14300 ac_rules=$1
14301 ac_deps=$2
14302 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14303 "$ac_rules: $ac_rules.in $ac_deps config.status
14304 @./config.status $ac_rules
14305 distclean::
14306 \$(RM) $ac_rules"
14309 wine_fn_config_symlink ()
14311 ac_link=$1
14312 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14313 "$ac_link:
14314 @./config.status $ac_link
14315 distclean::
14316 \$(RM) $ac_link"
14318 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14319 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14320 if test "x$enable_fonts" != xno; then
14321 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14322 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14324 if test "x$enable_fonts" != xno; then
14325 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14326 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14328 if test "x$enable_fonts" != xno; then
14329 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14330 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14332 if test "x$enable_fonts" != xno; then
14333 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14334 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14336 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14337 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14338 ac_config_links="$ac_config_links wine:tools/winewrapper"
14339 wine_fn_config_symlink wine
14341 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14343 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14345 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14347 ac_config_commands="$ac_config_commands dlls/user32/resources"
14349 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14351 ac_config_commands="$ac_config_commands include/wine"
14354 wine_fn_config_makerules Make.rules
14355 MAKE_RULES=Make.rules
14356 ac_config_files="$ac_config_files Make.rules"
14358 wine_fn_config_makerules Maketest.rules Make.rules
14359 MAKE_TEST_RULES=Maketest.rules
14360 ac_config_files="$ac_config_files Maketest.rules"
14362 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14363 MAKE_DLL_RULES=dlls/Makedll.rules
14364 ac_config_files="$ac_config_files dlls/Makedll.rules"
14366 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14367 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14368 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14370 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14371 MAKE_PROG_RULES=programs/Makeprog.rules
14372 ac_config_files="$ac_config_files programs/Makeprog.rules"
14375 wine_fn_config_dll acledit enable_acledit
14376 wine_fn_config_dll aclui enable_aclui aclui
14377 wine_fn_config_dll activeds enable_activeds activeds
14378 wine_fn_config_dll actxprxy enable_actxprxy
14379 wine_fn_config_lib adsiid
14380 wine_fn_config_dll advapi32 enable_advapi32 advapi32
14381 wine_fn_config_test dlls/advapi32/tests advapi32_test
14382 wine_fn_config_dll advpack enable_advpack advpack
14383 wine_fn_config_test dlls/advpack/tests advpack_test
14384 wine_fn_config_dll amstream enable_amstream
14385 wine_fn_config_test dlls/amstream/tests amstream_test
14386 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14387 wine_fn_config_dll atl enable_atl atl
14388 wine_fn_config_dll authz enable_authz
14389 wine_fn_config_dll avicap32 enable_avicap32 avicap32
14390 wine_fn_config_dll avifil32 enable_avifil32 avifil32
14391 wine_fn_config_test dlls/avifil32/tests avifil32_test
14392 wine_fn_config_dll avifile.dll16 enable_win16
14393 wine_fn_config_dll avrt enable_avrt avrt
14394 wine_fn_config_dll bcrypt enable_bcrypt
14395 wine_fn_config_dll browseui enable_browseui
14396 wine_fn_config_test dlls/browseui/tests browseui_test
14397 wine_fn_config_dll cabinet enable_cabinet cabinet
14398 wine_fn_config_test dlls/cabinet/tests cabinet_test
14399 wine_fn_config_dll capi2032 enable_capi2032 capi2032
14400 wine_fn_config_dll cards enable_cards cards
14401 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14402 wine_fn_config_dll clusapi enable_clusapi clusapi
14403 wine_fn_config_dll comcat enable_comcat
14404 wine_fn_config_test dlls/comcat/tests comcat_test
14405 wine_fn_config_dll comctl32 enable_comctl32 comctl32
14406 wine_fn_config_test dlls/comctl32/tests comctl32_test
14407 wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
14408 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14409 wine_fn_config_dll comm.drv16 enable_win16
14410 wine_fn_config_dll commdlg.dll16 enable_win16
14411 wine_fn_config_dll compobj.dll16 enable_win16
14412 wine_fn_config_dll compstui enable_compstui compstui
14413 wine_fn_config_dll credui enable_credui credui
14414 wine_fn_config_test dlls/credui/tests credui_test
14415 wine_fn_config_dll crtdll enable_crtdll crtdll
14416 wine_fn_config_dll crypt32 enable_crypt32 crypt32
14417 wine_fn_config_test dlls/crypt32/tests crypt32_test
14418 wine_fn_config_dll cryptdlg enable_cryptdlg
14419 wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14420 wine_fn_config_dll cryptnet enable_cryptnet cryptnet
14421 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14422 wine_fn_config_dll cryptui enable_cryptui cryptui
14423 wine_fn_config_test dlls/cryptui/tests cryptui_test
14424 wine_fn_config_dll ctapi32 enable_ctapi32
14425 wine_fn_config_dll ctl3d.dll16 enable_win16
14426 wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14427 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14428 wine_fn_config_dll d3d10 enable_d3d10 d3d10
14429 wine_fn_config_test dlls/d3d10/tests d3d10_test
14430 wine_fn_config_dll d3d10core enable_d3d10core d3d10core
14431 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14432 wine_fn_config_dll d3d8 enable_d3d8 d3d8
14433 wine_fn_config_test dlls/d3d8/tests d3d8_test
14434 wine_fn_config_dll d3d9 enable_d3d9 d3d9
14435 wine_fn_config_test dlls/d3d9/tests d3d9_test
14436 wine_fn_config_dll d3dim enable_d3dim d3dim
14437 wine_fn_config_dll d3drm enable_d3drm d3drm
14438 wine_fn_config_test dlls/d3drm/tests d3drm_test
14439 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14440 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14441 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14442 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14443 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14444 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14445 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14446 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14447 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14448 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14449 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14450 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14451 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
14452 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14453 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14454 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14455 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14456 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14457 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14458 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14459 wine_fn_config_dll d3dxof enable_d3dxof d3dxof
14460 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14461 wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14462 wine_fn_config_dll dciman32 enable_dciman32 dciman32
14463 wine_fn_config_dll ddeml.dll16 enable_win16
14464 wine_fn_config_dll ddraw enable_ddraw ddraw
14465 wine_fn_config_test dlls/ddraw/tests ddraw_test
14466 wine_fn_config_dll ddrawex enable_ddrawex
14467 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14468 wine_fn_config_dll devenum enable_devenum
14469 wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
14470 wine_fn_config_test dlls/dinput/tests dinput_test
14471 wine_fn_config_dll dinput8 enable_dinput8 dinput8
14472 wine_fn_config_dll dispdib.dll16 enable_win16
14473 wine_fn_config_dll dispex enable_dispex
14474 wine_fn_config_test dlls/dispex/tests dispex_test
14475 wine_fn_config_dll display.drv16 enable_win16
14476 wine_fn_config_dll dmband enable_dmband
14477 wine_fn_config_dll dmcompos enable_dmcompos
14478 wine_fn_config_dll dmime enable_dmime
14479 wine_fn_config_dll dmloader enable_dmloader
14480 wine_fn_config_test dlls/dmloader/tests dmloader_test
14481 wine_fn_config_dll dmscript enable_dmscript
14482 wine_fn_config_dll dmstyle enable_dmstyle
14483 wine_fn_config_dll dmsynth enable_dmsynth
14484 wine_fn_config_dll dmusic enable_dmusic
14485 wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14486 wine_fn_config_dll dnsapi enable_dnsapi dnsapi
14487 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14488 wine_fn_config_dll dplay enable_dplay dplay
14489 wine_fn_config_dll dplayx enable_dplayx dplayx
14490 wine_fn_config_test dlls/dplayx/tests dplayx_test
14491 wine_fn_config_dll dpnaddr enable_dpnaddr
14492 wine_fn_config_dll dpnet enable_dpnet dpnet
14493 wine_fn_config_dll dpnhpast enable_dpnhpast
14494 wine_fn_config_dll dpnlobby enable_dpnlobby
14495 wine_fn_config_dll dpwsockx enable_dpwsockx
14496 wine_fn_config_dll drmclien enable_drmclien
14497 wine_fn_config_dll dsound enable_dsound dsound
14498 wine_fn_config_test dlls/dsound/tests dsound_test
14499 wine_fn_config_dll dssenh enable_dssenh
14500 wine_fn_config_dll dswave enable_dswave
14501 wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14502 wine_fn_config_dll dxdiagn enable_dxdiagn
14503 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14504 wine_fn_config_lib dxerr8
14505 wine_fn_config_lib dxerr9
14506 wine_fn_config_dll dxgi enable_dxgi dxgi
14507 wine_fn_config_test dlls/dxgi/tests dxgi_test
14508 wine_fn_config_lib dxguid
14509 wine_fn_config_dll faultrep enable_faultrep
14510 wine_fn_config_dll fltlib enable_fltlib
14511 wine_fn_config_dll fusion enable_fusion
14512 wine_fn_config_test dlls/fusion/tests fusion_test
14513 wine_fn_config_dll fwpuclnt enable_fwpuclnt
14514 wine_fn_config_dll gdi.exe16 enable_win16
14515 wine_fn_config_dll gdi32 enable_gdi32 gdi32
14516 wine_fn_config_test dlls/gdi32/tests gdi32_test
14517 wine_fn_config_dll gdiplus enable_gdiplus gdiplus
14518 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
14519 wine_fn_config_dll glu32 enable_glu32 glu32
14520 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14521 wine_fn_config_dll gpkcsp enable_gpkcsp
14522 wine_fn_config_dll hal enable_hal
14523 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14524 wine_fn_config_dll hid enable_hid hid
14525 wine_fn_config_dll hlink enable_hlink hlink
14526 wine_fn_config_test dlls/hlink/tests hlink_test
14527 wine_fn_config_dll hnetcfg enable_hnetcfg
14528 wine_fn_config_dll httpapi enable_httpapi
14529 wine_fn_config_dll iccvid enable_iccvid
14530 wine_fn_config_dll icmp enable_icmp
14531 wine_fn_config_dll ifsmgr.vxd enable_win16
14532 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14533 wine_fn_config_dll imagehlp enable_imagehlp imagehlp
14534 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
14535 wine_fn_config_dll imm.dll16 enable_win16
14536 wine_fn_config_dll imm32 enable_imm32 imm32
14537 wine_fn_config_test dlls/imm32/tests imm32_test
14538 wine_fn_config_dll inetcomm enable_inetcomm inetcomm
14539 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
14540 wine_fn_config_dll inetmib1 enable_inetmib1
14541 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
14542 wine_fn_config_dll infosoft enable_infosoft
14543 wine_fn_config_test dlls/infosoft/tests infosoft_test
14544 wine_fn_config_dll initpki enable_initpki
14545 wine_fn_config_dll inkobj enable_inkobj
14546 wine_fn_config_dll inseng enable_inseng
14547 wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
14548 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
14549 wine_fn_config_dll itircl enable_itircl
14550 wine_fn_config_dll itss enable_itss
14551 wine_fn_config_test dlls/itss/tests itss_test
14552 wine_fn_config_dll jscript enable_jscript
14553 wine_fn_config_test dlls/jscript/tests jscript_test
14554 wine_fn_config_dll kernel32 enable_kernel32 kernel32
14555 wine_fn_config_test dlls/kernel32/tests kernel32_test
14556 wine_fn_config_dll keyboard.drv16 enable_win16
14557 wine_fn_config_dll krnl386.exe16 enable_win16 kernel
14558 wine_fn_config_dll loadperf enable_loadperf loadperf
14559 wine_fn_config_dll localspl enable_localspl
14560 wine_fn_config_test dlls/localspl/tests localspl_test
14561 wine_fn_config_dll localui enable_localui
14562 wine_fn_config_test dlls/localui/tests localui_test
14563 wine_fn_config_dll lz32 enable_lz32 lz32
14564 wine_fn_config_test dlls/lz32/tests lz32_test
14565 wine_fn_config_dll lzexpand.dll16 enable_win16
14566 wine_fn_config_dll mapi32 enable_mapi32 mapi32
14567 wine_fn_config_test dlls/mapi32/tests mapi32_test
14568 wine_fn_config_dll mapistub enable_mapistub
14569 wine_fn_config_dll mciavi32 enable_mciavi32
14570 wine_fn_config_dll mcicda enable_mcicda
14571 wine_fn_config_dll mciqtz32 enable_mciqtz32
14572 wine_fn_config_dll mciseq enable_mciseq
14573 wine_fn_config_dll mciwave enable_mciwave
14574 wine_fn_config_dll midimap enable_midimap
14575 wine_fn_config_dll mlang enable_mlang mlang
14576 wine_fn_config_test dlls/mlang/tests mlang_test
14577 wine_fn_config_dll mmdevapi enable_mmdevapi
14578 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
14579 wine_fn_config_dll mmdevldr.vxd enable_win16
14580 wine_fn_config_dll mmsystem.dll16 enable_win16
14581 wine_fn_config_dll monodebg.vxd enable_win16
14582 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14583 wine_fn_config_dll mouse.drv16 enable_win16
14584 wine_fn_config_dll mpr enable_mpr mpr
14585 wine_fn_config_dll mprapi enable_mprapi mprapi
14586 wine_fn_config_dll msacm.dll16 enable_win16
14587 wine_fn_config_dll msacm32.drv enable_msacm32_drv
14588 wine_fn_config_dll msacm32 enable_msacm32 msacm32
14589 wine_fn_config_test dlls/msacm32/tests msacm32_test
14590 wine_fn_config_dll msadp32.acm enable_msadp32_acm
14591 wine_fn_config_dll mscat32 enable_mscat32
14592 wine_fn_config_dll mscms enable_mscms mscms
14593 wine_fn_config_test dlls/mscms/tests mscms_test
14594 wine_fn_config_dll mscoree enable_mscoree
14595 wine_fn_config_dll msctf enable_msctf
14596 wine_fn_config_test dlls/msctf/tests msctf_test
14597 wine_fn_config_dll msdaps enable_msdaps
14598 wine_fn_config_dll msdmo enable_msdmo msdmo
14599 wine_fn_config_dll msftedit enable_msftedit
14600 wine_fn_config_dll msg711.acm enable_msg711_acm
14601 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14602 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
14603 wine_fn_config_dll mshtml enable_mshtml mshtml
14604 wine_fn_config_test dlls/mshtml/tests mshtml_test
14605 wine_fn_config_dll msi enable_msi msi
14606 wine_fn_config_test dlls/msi/tests msi_test
14607 wine_fn_config_dll msimg32 enable_msimg32 msimg32
14608 wine_fn_config_dll msimtf enable_msimtf
14609 wine_fn_config_dll msisip enable_msisip
14610 wine_fn_config_dll msisys.ocx enable_msisys_ocx
14611 wine_fn_config_dll msnet32 enable_msnet32
14612 wine_fn_config_dll msrle32 enable_msrle32
14613 wine_fn_config_dll mssign32 enable_mssign32
14614 wine_fn_config_dll mssip32 enable_mssip32
14615 wine_fn_config_dll mstask enable_mstask
14616 wine_fn_config_test dlls/mstask/tests mstask_test
14617 wine_fn_config_dll msvcirt enable_msvcirt
14618 wine_fn_config_dll msvcr100 enable_msvcr100
14619 wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
14620 wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
14621 wine_fn_config_dll msvcr80 enable_msvcr80
14622 wine_fn_config_dll msvcr90 enable_msvcr90
14623 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
14624 wine_fn_config_dll msvcrt enable_msvcrt msvcrt
14625 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
14626 wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
14627 wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
14628 wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
14629 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
14630 wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
14631 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
14632 wine_fn_config_dll msvidc32 enable_msvidc32
14633 wine_fn_config_dll msvideo.dll16 enable_win16
14634 wine_fn_config_dll mswsock enable_mswsock mswsock
14635 wine_fn_config_dll msxml3 enable_msxml3
14636 wine_fn_config_test dlls/msxml3/tests msxml3_test
14637 wine_fn_config_dll msxml4 enable_msxml4
14638 wine_fn_config_dll nddeapi enable_nddeapi nddeapi
14639 wine_fn_config_dll netapi32 enable_netapi32 netapi32
14640 wine_fn_config_test dlls/netapi32/tests netapi32_test
14641 wine_fn_config_dll newdev enable_newdev newdev
14642 wine_fn_config_dll ntdll enable_ntdll ntdll
14643 wine_fn_config_test dlls/ntdll/tests ntdll_test
14644 wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
14645 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
14646 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
14647 wine_fn_config_dll ntprint enable_ntprint
14648 wine_fn_config_test dlls/ntprint/tests ntprint_test
14649 wine_fn_config_dll objsel enable_objsel
14650 wine_fn_config_dll odbc32 enable_odbc32 odbc32
14651 wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
14652 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
14653 wine_fn_config_dll ole2.dll16 enable_win16
14654 wine_fn_config_dll ole2conv.dll16 enable_win16
14655 wine_fn_config_dll ole2disp.dll16 enable_win16
14656 wine_fn_config_dll ole2nls.dll16 enable_win16
14657 wine_fn_config_dll ole2prox.dll16 enable_win16
14658 wine_fn_config_dll ole2thk.dll16 enable_win16
14659 wine_fn_config_dll ole32 enable_ole32 ole32
14660 wine_fn_config_test dlls/ole32/tests ole32_test
14661 wine_fn_config_dll oleacc enable_oleacc oleacc
14662 wine_fn_config_test dlls/oleacc/tests oleacc_test
14663 wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
14664 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
14665 wine_fn_config_dll olecli.dll16 enable_win16
14666 wine_fn_config_dll olecli32 enable_olecli32 olecli32
14667 wine_fn_config_dll oledb32 enable_oledb32
14668 wine_fn_config_test dlls/oledb32/tests oledb32_test
14669 wine_fn_config_dll oledlg enable_oledlg oledlg
14670 wine_fn_config_dll olepro32 enable_olepro32 olepro32
14671 wine_fn_config_dll olesvr.dll16 enable_win16
14672 wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
14673 wine_fn_config_dll olethk32 enable_olethk32
14674 wine_fn_config_dll openal32 enable_openal32
14675 wine_fn_config_dll opengl32 enable_opengl32 opengl32
14676 wine_fn_config_test dlls/opengl32/tests opengl32_test
14677 wine_fn_config_dll pdh enable_pdh pdh
14678 wine_fn_config_test dlls/pdh/tests pdh_test
14679 wine_fn_config_dll pidgen enable_pidgen
14680 wine_fn_config_dll powrprof enable_powrprof powrprof
14681 wine_fn_config_dll printui enable_printui
14682 wine_fn_config_dll propsys enable_propsys
14683 wine_fn_config_dll psapi enable_psapi psapi
14684 wine_fn_config_test dlls/psapi/tests psapi_test
14685 wine_fn_config_dll pstorec enable_pstorec
14686 wine_fn_config_dll qcap enable_qcap
14687 wine_fn_config_dll qedit enable_qedit
14688 wine_fn_config_test dlls/qedit/tests qedit_test
14689 wine_fn_config_dll qmgr enable_qmgr
14690 wine_fn_config_test dlls/qmgr/tests qmgr_test
14691 wine_fn_config_dll qmgrprxy enable_qmgrprxy
14692 wine_fn_config_dll quartz enable_quartz quartz
14693 wine_fn_config_test dlls/quartz/tests quartz_test
14694 wine_fn_config_dll query enable_query
14695 wine_fn_config_dll rasapi16.dll16 enable_win16
14696 wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
14697 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
14698 wine_fn_config_dll rasdlg enable_rasdlg rasdlg
14699 wine_fn_config_dll resutils enable_resutils resutils
14700 wine_fn_config_dll riched20 enable_riched20 riched20
14701 wine_fn_config_test dlls/riched20/tests riched20_test
14702 wine_fn_config_dll riched32 enable_riched32
14703 wine_fn_config_test dlls/riched32/tests riched32_test
14704 wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
14705 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
14706 wine_fn_config_dll rsabase enable_rsabase
14707 wine_fn_config_dll rsaenh enable_rsaenh rsaenh
14708 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
14709 wine_fn_config_dll rtutils enable_rtutils rtutils
14710 wine_fn_config_dll samlib enable_samlib
14711 wine_fn_config_dll sane.ds enable_sane_ds
14712 wine_fn_config_dll sccbase enable_sccbase
14713 wine_fn_config_dll schannel enable_schannel
14714 wine_fn_config_test dlls/schannel/tests schannel_test
14715 wine_fn_config_dll secur32 enable_secur32 secur32
14716 wine_fn_config_test dlls/secur32/tests secur32_test
14717 wine_fn_config_dll security enable_security
14718 wine_fn_config_dll sensapi enable_sensapi sensapi
14719 wine_fn_config_dll serialui enable_serialui serialui
14720 wine_fn_config_test dlls/serialui/tests serialui_test
14721 wine_fn_config_dll setupapi enable_setupapi setupapi
14722 wine_fn_config_test dlls/setupapi/tests setupapi_test
14723 wine_fn_config_dll setupx.dll16 enable_win16
14724 wine_fn_config_dll sfc enable_sfc sfc
14725 wine_fn_config_dll sfc_os enable_sfc_os sfc_os
14726 wine_fn_config_dll shdoclc enable_shdoclc
14727 wine_fn_config_dll shdocvw enable_shdocvw shdocvw
14728 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
14729 wine_fn_config_dll shell.dll16 enable_win16
14730 wine_fn_config_dll shell32 enable_shell32 shell32
14731 wine_fn_config_test dlls/shell32/tests shell32_test
14732 wine_fn_config_dll shfolder enable_shfolder shfolder
14733 wine_fn_config_dll shlwapi enable_shlwapi shlwapi
14734 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
14735 wine_fn_config_dll slbcsp enable_slbcsp
14736 wine_fn_config_dll slc enable_slc slc
14737 wine_fn_config_dll snmpapi enable_snmpapi snmpapi
14738 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
14739 wine_fn_config_dll softpub enable_softpub
14740 wine_fn_config_dll sound.drv16 enable_win16
14741 wine_fn_config_dll spoolss enable_spoolss spoolss
14742 wine_fn_config_test dlls/spoolss/tests spoolss_test
14743 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
14744 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
14745 wine_fn_config_dll sti enable_sti sti
14746 wine_fn_config_test dlls/sti/tests sti_test
14747 wine_fn_config_dll storage.dll16 enable_win16
14748 wine_fn_config_dll stress.dll16 enable_win16
14749 wine_fn_config_lib strmiids
14750 wine_fn_config_dll svrapi enable_svrapi
14751 wine_fn_config_dll sxs enable_sxs
14752 wine_fn_config_dll system.drv16 enable_win16
14753 wine_fn_config_dll t2embed enable_t2embed
14754 wine_fn_config_dll tapi32 enable_tapi32 tapi32
14755 wine_fn_config_dll toolhelp.dll16 enable_win16
14756 wine_fn_config_dll traffic enable_traffic
14757 wine_fn_config_dll twain.dll16 enable_win16
14758 wine_fn_config_dll twain_32 enable_twain_32
14759 wine_fn_config_test dlls/twain_32/tests twain_32_test
14760 wine_fn_config_dll typelib.dll16 enable_win16
14761 wine_fn_config_dll unicows enable_unicows unicows
14762 wine_fn_config_dll updspapi enable_updspapi
14763 wine_fn_config_dll url enable_url url
14764 wine_fn_config_dll urlmon enable_urlmon urlmon
14765 wine_fn_config_test dlls/urlmon/tests urlmon_test
14766 wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
14767 wine_fn_config_dll user.exe16 enable_win16
14768 wine_fn_config_dll user32 enable_user32 user32
14769 wine_fn_config_test dlls/user32/tests user32_test
14770 wine_fn_config_dll userenv enable_userenv userenv
14771 wine_fn_config_test dlls/userenv/tests userenv_test
14772 wine_fn_config_dll usp10 enable_usp10 usp10
14773 wine_fn_config_test dlls/usp10/tests usp10_test
14774 wine_fn_config_lib uuid
14775 wine_fn_config_dll uxtheme enable_uxtheme uxtheme
14776 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
14777 wine_fn_config_dll vdhcp.vxd enable_win16
14778 wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
14779 wine_fn_config_dll ver.dll16 enable_win16
14780 wine_fn_config_dll version enable_version version
14781 wine_fn_config_test dlls/version/tests version_test
14782 wine_fn_config_dll vmm.vxd enable_win16
14783 wine_fn_config_dll vnbt.vxd enable_win16
14784 wine_fn_config_dll vnetbios.vxd enable_win16
14785 wine_fn_config_dll vtdapi.vxd enable_win16
14786 wine_fn_config_dll vwin32.vxd enable_win16
14787 wine_fn_config_dll w32skrnl enable_win16
14788 wine_fn_config_dll w32sys.dll16 enable_win16
14789 wine_fn_config_dll wbemprox enable_wbemprox
14790 wine_fn_config_dll wiaservc enable_wiaservc
14791 wine_fn_config_dll win32s16.dll16 enable_win16
14792 wine_fn_config_dll win87em.dll16 enable_win16
14793 wine_fn_config_dll winaspi.dll16 enable_win16
14794 wine_fn_config_dll windebug.dll16 enable_win16
14795 wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
14796 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
14797 wine_fn_config_dll winealsa.drv enable_winealsa_drv
14798 wine_fn_config_dll wineaudioio.drv enable_wineaudioio_drv
14799 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
14800 wine_fn_config_lib winecrt0
14801 wine_fn_config_dll wined3d enable_wined3d wined3d
14802 wine_fn_config_dll wineesd.drv enable_wineesd_drv
14803 wine_fn_config_dll winejack.drv enable_winejack_drv
14804 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
14805 wine_fn_config_dll winemapi enable_winemapi
14806 wine_fn_config_dll winemp3.acm enable_winemp3_acm
14807 wine_fn_config_dll winenas.drv enable_winenas_drv
14808 wine_fn_config_dll wineoss.drv enable_wineoss_drv
14809 wine_fn_config_dll wineps.drv enable_wineps_drv
14810 wine_fn_config_dll wineps16.drv16 enable_win16
14811 wine_fn_config_dll winepulse.drv enable_winepulse_drv
14812 wine_fn_config_dll winequartz.drv enable_winequartz_drv
14813 wine_fn_config_dll winex11.drv enable_winex11_drv
14814 wine_fn_config_dll wing.dll16 enable_win16
14815 wine_fn_config_dll wing32 enable_wing32
14816 wine_fn_config_dll winhttp enable_winhttp winhttp
14817 wine_fn_config_test dlls/winhttp/tests winhttp_test
14818 wine_fn_config_dll wininet enable_wininet wininet
14819 wine_fn_config_test dlls/wininet/tests wininet_test
14820 wine_fn_config_dll winmm enable_winmm winmm
14821 wine_fn_config_test dlls/winmm/tests winmm_test
14822 wine_fn_config_dll winnls.dll16 enable_win16
14823 wine_fn_config_dll winnls32 enable_winnls32 winnls32
14824 wine_fn_config_dll winscard enable_winscard winscard
14825 wine_fn_config_dll winsock.dll16 enable_win16
14826 wine_fn_config_dll winspool.drv enable_winspool_drv winspool
14827 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
14828 wine_fn_config_dll wintab.dll16 enable_win16
14829 wine_fn_config_dll wintab32 enable_wintab32 wintab32
14830 wine_fn_config_test dlls/wintab32/tests wintab32_test
14831 wine_fn_config_dll wintrust enable_wintrust wintrust
14832 wine_fn_config_test dlls/wintrust/tests wintrust_test
14833 wine_fn_config_dll wldap32 enable_wldap32 wldap32
14834 wine_fn_config_test dlls/wldap32/tests wldap32_test
14835 wine_fn_config_dll wmi enable_wmi
14836 wine_fn_config_dll wmiutils enable_wmiutils
14837 wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
14838 wine_fn_config_dll wow32 enable_win16 wow32
14839 wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
14840 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
14841 wine_fn_config_dll wsock32 enable_wsock32 wsock32
14842 wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
14843 wine_fn_config_dll wuapi enable_wuapi
14844 wine_fn_config_dll wuaueng enable_wuaueng
14845 wine_fn_config_dll xinput1_1 enable_xinput1_1
14846 wine_fn_config_dll xinput1_2 enable_xinput1_2
14847 wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
14848 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
14849 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
14850 wine_fn_config_dll xmllite enable_xmllite
14851 wine_fn_config_test dlls/xmllite/tests xmllite_test
14852 wine_fn_config_makefile documentation enable_documentation
14853 wine_fn_config_makefile fonts enable_fonts
14854 wine_fn_config_makefile include enable_include
14855 wine_fn_config_makefile libs/port enable_libs_port
14856 wine_fn_config_makefile libs/wine enable_libs_wine
14857 wine_fn_config_makefile libs/wpp enable_libs_wpp
14858 wine_fn_config_makefile loader enable_loader
14859 wine_fn_config_program attrib enable_attrib install
14860 wine_fn_config_program cacls enable_cacls install
14861 wine_fn_config_program clock enable_clock install
14862 wine_fn_config_program cmd enable_cmd install
14863 wine_fn_config_test programs/cmd/tests cmd.exe_test
14864 wine_fn_config_program cmdlgtst enable_cmdlgtst
14865 wine_fn_config_program control enable_control install
14866 wine_fn_config_program dxdiag enable_dxdiag install
14867 wine_fn_config_program eject enable_eject install
14868 wine_fn_config_program expand enable_expand install
14869 wine_fn_config_program explorer enable_explorer install
14870 wine_fn_config_program extrac32 enable_extrac32 install
14871 wine_fn_config_program hh enable_hh install
14872 wine_fn_config_program icinfo enable_icinfo install
14873 wine_fn_config_program iexplore enable_iexplore install
14874 wine_fn_config_program lodctr enable_lodctr install
14875 wine_fn_config_program mshta enable_mshta install
14876 wine_fn_config_program msiexec enable_msiexec installbin
14877 wine_fn_config_program net enable_net install
14878 wine_fn_config_program ngen enable_ngen install
14879 wine_fn_config_program notepad enable_notepad installbin
14880 wine_fn_config_program oleview enable_oleview install
14881 wine_fn_config_program ping enable_ping install
14882 wine_fn_config_program progman enable_progman install
14883 wine_fn_config_program reg enable_reg install
14884 wine_fn_config_program regedit enable_regedit installbin
14885 wine_fn_config_program regsvr32 enable_regsvr32 installbin
14886 wine_fn_config_program rpcss enable_rpcss install
14887 wine_fn_config_program rundll32 enable_rundll32 install
14888 wine_fn_config_program sc enable_sc install
14889 wine_fn_config_program secedit enable_secedit install
14890 wine_fn_config_program services enable_services install
14891 wine_fn_config_program spoolsv enable_spoolsv install
14892 wine_fn_config_program start enable_start install
14893 wine_fn_config_program svchost enable_svchost install
14894 wine_fn_config_program taskmgr enable_taskmgr install
14895 wine_fn_config_program termsv enable_termsv install
14896 wine_fn_config_program uninstaller enable_uninstaller install
14897 wine_fn_config_program unlodctr enable_unlodctr install
14898 wine_fn_config_program view enable_view
14899 wine_fn_config_program wineboot enable_wineboot installbin
14900 wine_fn_config_program winebrowser enable_winebrowser install
14901 wine_fn_config_program winecfg enable_winecfg installbin
14902 wine_fn_config_program wineconsole enable_wineconsole installbin
14903 wine_fn_config_program winedbg enable_winedbg installbin
14904 wine_fn_config_program winedevice enable_winedevice install
14905 wine_fn_config_program winefile enable_winefile installbin
14906 wine_fn_config_program winemenubuilder enable_winemenubuilder install
14907 wine_fn_config_program winemine enable_winemine installbin
14908 wine_fn_config_program winepath enable_winepath installbin
14909 wine_fn_config_program winetest enable_winetest
14910 wine_fn_config_program winevdm enable_win16 install
14911 wine_fn_config_program winhelp.exe16 enable_win16 install
14912 wine_fn_config_program winhlp32 enable_winhlp32 install
14913 wine_fn_config_program winoldap.mod16 enable_win16 install
14914 wine_fn_config_program winver enable_winver install
14915 wine_fn_config_program wordpad enable_wordpad install
14916 wine_fn_config_program write enable_write install
14917 wine_fn_config_program xcopy enable_xcopy install
14918 wine_fn_config_makefile server enable_server
14919 wine_fn_config_tool tools
14920 wine_fn_config_tool tools/widl
14921 wine_fn_config_tool tools/winebuild
14922 wine_fn_config_tool tools/winedump
14923 wine_fn_config_tool tools/winegcc
14924 wine_fn_config_tool tools/wmc
14925 wine_fn_config_tool tools/wrc
14927 ac_config_commands="$ac_config_commands Makefile"
14930 ac_config_files="$ac_config_files Make.tmp:Makefile.in"
14934 if test -n "$with_wine64"
14935 then
14936 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine
14937 fonts server:
14938 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
14939 $with_wine64/loader/wine:
14940 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
14941 clean::
14942 \$(RM) fonts server $with_wine64/loader/wine"
14945 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
14946 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
14948 cat >confcache <<\_ACEOF
14949 # This file is a shell script that caches the results of configure
14950 # tests run on this system so they can be shared between configure
14951 # scripts and configure runs, see configure's option --config-cache.
14952 # It is not useful on other systems. If it contains results you don't
14953 # want to keep, you may remove or edit it.
14955 # config.status only pays attention to the cache file if you give it
14956 # the --recheck option to rerun configure.
14958 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14959 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14960 # following values.
14962 _ACEOF
14964 # The following way of writing the cache mishandles newlines in values,
14965 # but we know of no workaround that is simple, portable, and efficient.
14966 # So, we kill variables containing newlines.
14967 # Ultrix sh set writes to stderr and can't be redirected directly,
14968 # and sets the high bit in the cache file unless we assign to the vars.
14970 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14971 eval ac_val=\$$ac_var
14972 case $ac_val in #(
14973 *${as_nl}*)
14974 case $ac_var in #(
14975 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14976 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14977 esac
14978 case $ac_var in #(
14979 _ | IFS | as_nl) ;; #(
14980 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14981 *) { eval $ac_var=; unset $ac_var;} ;;
14982 esac ;;
14983 esac
14984 done
14986 (set) 2>&1 |
14987 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14988 *${as_nl}ac_space=\ *)
14989 # `set' does not quote correctly, so add quotes: double-quote
14990 # substitution turns \\\\ into \\, and sed turns \\ into \.
14991 sed -n \
14992 "s/'/'\\\\''/g;
14993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14994 ;; #(
14996 # `set' quotes correctly as required by POSIX, so do not add quotes.
14997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14999 esac |
15000 sort
15002 sed '
15003 /^ac_cv_env_/b end
15004 t clear
15005 :clear
15006 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15007 t end
15008 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15009 :end' >>confcache
15010 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15011 if test -w "$cache_file"; then
15012 test "x$cache_file" != "x/dev/null" &&
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15014 $as_echo "$as_me: updating cache $cache_file" >&6;}
15015 cat confcache >$cache_file
15016 else
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15018 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15021 rm -f confcache
15023 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15024 # Let make expand exec_prefix.
15025 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15027 DEFS=-DHAVE_CONFIG_H
15029 ac_libobjs=
15030 ac_ltlibobjs=
15031 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15032 # 1. Remove the extension, and $U if already installed.
15033 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15034 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15035 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15036 # will be set to the directory where LIBOBJS objects are built.
15037 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15038 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15039 done
15040 LIBOBJS=$ac_libobjs
15042 LTLIBOBJS=$ac_ltlibobjs
15046 : ${CONFIG_STATUS=./config.status}
15047 ac_write_fail=0
15048 ac_clean_files_save=$ac_clean_files
15049 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15051 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15052 as_write_fail=0
15053 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15054 #! $SHELL
15055 # Generated by $as_me.
15056 # Run this file to recreate the current configuration.
15057 # Compiler output produced by configure, useful for debugging
15058 # configure, is in config.log if it exists.
15060 debug=false
15061 ac_cs_recheck=false
15062 ac_cs_silent=false
15064 SHELL=\${CONFIG_SHELL-$SHELL}
15065 export SHELL
15066 _ASEOF
15067 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15068 ## -------------------- ##
15069 ## M4sh Initialization. ##
15070 ## -------------------- ##
15072 # Be more Bourne compatible
15073 DUALCASE=1; export DUALCASE # for MKS sh
15074 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15075 emulate sh
15076 NULLCMD=:
15077 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15078 # is contrary to our usage. Disable this feature.
15079 alias -g '${1+"$@"}'='"$@"'
15080 setopt NO_GLOB_SUBST
15081 else
15082 case `(set -o) 2>/dev/null` in #(
15083 *posix*) :
15084 set -o posix ;; #(
15085 *) :
15087 esac
15091 as_nl='
15093 export as_nl
15094 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15095 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15096 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15097 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15098 # Prefer a ksh shell builtin over an external printf program on Solaris,
15099 # but without wasting forks for bash or zsh.
15100 if test -z "$BASH_VERSION$ZSH_VERSION" \
15101 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15102 as_echo='print -r --'
15103 as_echo_n='print -rn --'
15104 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15105 as_echo='printf %s\n'
15106 as_echo_n='printf %s'
15107 else
15108 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15109 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15110 as_echo_n='/usr/ucb/echo -n'
15111 else
15112 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15113 as_echo_n_body='eval
15114 arg=$1;
15115 case $arg in #(
15116 *"$as_nl"*)
15117 expr "X$arg" : "X\\(.*\\)$as_nl";
15118 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15119 esac;
15120 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15122 export as_echo_n_body
15123 as_echo_n='sh -c $as_echo_n_body as_echo'
15125 export as_echo_body
15126 as_echo='sh -c $as_echo_body as_echo'
15129 # The user is always right.
15130 if test "${PATH_SEPARATOR+set}" != set; then
15131 PATH_SEPARATOR=:
15132 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15133 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15134 PATH_SEPARATOR=';'
15139 # IFS
15140 # We need space, tab and new line, in precisely that order. Quoting is
15141 # there to prevent editors from complaining about space-tab.
15142 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15143 # splitting by setting IFS to empty value.)
15144 IFS=" "" $as_nl"
15146 # Find who we are. Look in the path if we contain no directory separator.
15147 case $0 in #((
15148 *[\\/]* ) as_myself=$0 ;;
15149 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15150 for as_dir in $PATH
15152 IFS=$as_save_IFS
15153 test -z "$as_dir" && as_dir=.
15154 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15155 done
15156 IFS=$as_save_IFS
15159 esac
15160 # We did not find ourselves, most probably we were run as `sh COMMAND'
15161 # in which case we are not to be found in the path.
15162 if test "x$as_myself" = x; then
15163 as_myself=$0
15165 if test ! -f "$as_myself"; then
15166 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15167 exit 1
15170 # Unset variables that we do not need and which cause bugs (e.g. in
15171 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15172 # suppresses any "Segmentation fault" message there. '((' could
15173 # trigger a bug in pdksh 5.2.14.
15174 for as_var in BASH_ENV ENV MAIL MAILPATH
15175 do eval test x\${$as_var+set} = xset \
15176 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15177 done
15178 PS1='$ '
15179 PS2='> '
15180 PS4='+ '
15182 # NLS nuisances.
15183 LC_ALL=C
15184 export LC_ALL
15185 LANGUAGE=C
15186 export LANGUAGE
15188 # CDPATH.
15189 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15192 # as_fn_error ERROR [LINENO LOG_FD]
15193 # ---------------------------------
15194 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15195 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15196 # script with status $?, using 1 if that was 0.
15197 as_fn_error ()
15199 as_status=$?; test $as_status -eq 0 && as_status=1
15200 if test "$3"; then
15201 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15202 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15204 $as_echo "$as_me: error: $1" >&2
15205 as_fn_exit $as_status
15206 } # as_fn_error
15209 # as_fn_set_status STATUS
15210 # -----------------------
15211 # Set $? to STATUS, without forking.
15212 as_fn_set_status ()
15214 return $1
15215 } # as_fn_set_status
15217 # as_fn_exit STATUS
15218 # -----------------
15219 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15220 as_fn_exit ()
15222 set +e
15223 as_fn_set_status $1
15224 exit $1
15225 } # as_fn_exit
15227 # as_fn_unset VAR
15228 # ---------------
15229 # Portably unset VAR.
15230 as_fn_unset ()
15232 { eval $1=; unset $1;}
15234 as_unset=as_fn_unset
15235 # as_fn_append VAR VALUE
15236 # ----------------------
15237 # Append the text in VALUE to the end of the definition contained in VAR. Take
15238 # advantage of any shell optimizations that allow amortized linear growth over
15239 # repeated appends, instead of the typical quadratic growth present in naive
15240 # implementations.
15241 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15242 eval 'as_fn_append ()
15244 eval $1+=\$2
15246 else
15247 as_fn_append ()
15249 eval $1=\$$1\$2
15251 fi # as_fn_append
15253 # as_fn_arith ARG...
15254 # ------------------
15255 # Perform arithmetic evaluation on the ARGs, and store the result in the
15256 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15257 # must be portable across $(()) and expr.
15258 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15259 eval 'as_fn_arith ()
15261 as_val=$(( $* ))
15263 else
15264 as_fn_arith ()
15266 as_val=`expr "$@" || test $? -eq 1`
15268 fi # as_fn_arith
15271 if expr a : '\(a\)' >/dev/null 2>&1 &&
15272 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15273 as_expr=expr
15274 else
15275 as_expr=false
15278 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15279 as_basename=basename
15280 else
15281 as_basename=false
15284 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15285 as_dirname=dirname
15286 else
15287 as_dirname=false
15290 as_me=`$as_basename -- "$0" ||
15291 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15292 X"$0" : 'X\(//\)$' \| \
15293 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15294 $as_echo X/"$0" |
15295 sed '/^.*\/\([^/][^/]*\)\/*$/{
15296 s//\1/
15299 /^X\/\(\/\/\)$/{
15300 s//\1/
15303 /^X\/\(\/\).*/{
15304 s//\1/
15307 s/.*/./; q'`
15309 # Avoid depending upon Character Ranges.
15310 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15311 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15312 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15313 as_cr_digits='0123456789'
15314 as_cr_alnum=$as_cr_Letters$as_cr_digits
15316 ECHO_C= ECHO_N= ECHO_T=
15317 case `echo -n x` in #(((((
15318 -n*)
15319 case `echo 'xy\c'` in
15320 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15321 xy) ECHO_C='\c';;
15322 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15323 ECHO_T=' ';;
15324 esac;;
15326 ECHO_N='-n';;
15327 esac
15329 rm -f conf$$ conf$$.exe conf$$.file
15330 if test -d conf$$.dir; then
15331 rm -f conf$$.dir/conf$$.file
15332 else
15333 rm -f conf$$.dir
15334 mkdir conf$$.dir 2>/dev/null
15336 if (echo >conf$$.file) 2>/dev/null; then
15337 if ln -s conf$$.file conf$$ 2>/dev/null; then
15338 as_ln_s='ln -s'
15339 # ... but there are two gotchas:
15340 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15341 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15342 # In both cases, we have to default to `cp -p'.
15343 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15344 as_ln_s='cp -p'
15345 elif ln conf$$.file conf$$ 2>/dev/null; then
15346 as_ln_s=ln
15347 else
15348 as_ln_s='cp -p'
15350 else
15351 as_ln_s='cp -p'
15353 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15354 rmdir conf$$.dir 2>/dev/null
15357 # as_fn_mkdir_p
15358 # -------------
15359 # Create "$as_dir" as a directory, including parents if necessary.
15360 as_fn_mkdir_p ()
15363 case $as_dir in #(
15364 -*) as_dir=./$as_dir;;
15365 esac
15366 test -d "$as_dir" || eval $as_mkdir_p || {
15367 as_dirs=
15368 while :; do
15369 case $as_dir in #(
15370 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15371 *) as_qdir=$as_dir;;
15372 esac
15373 as_dirs="'$as_qdir' $as_dirs"
15374 as_dir=`$as_dirname -- "$as_dir" ||
15375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15376 X"$as_dir" : 'X\(//\)[^/]' \| \
15377 X"$as_dir" : 'X\(//\)$' \| \
15378 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15379 $as_echo X"$as_dir" |
15380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15381 s//\1/
15384 /^X\(\/\/\)[^/].*/{
15385 s//\1/
15388 /^X\(\/\/\)$/{
15389 s//\1/
15392 /^X\(\/\).*/{
15393 s//\1/
15396 s/.*/./; q'`
15397 test -d "$as_dir" && break
15398 done
15399 test -z "$as_dirs" || eval "mkdir $as_dirs"
15400 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15403 } # as_fn_mkdir_p
15404 if mkdir -p . 2>/dev/null; then
15405 as_mkdir_p='mkdir -p "$as_dir"'
15406 else
15407 test -d ./-p && rmdir ./-p
15408 as_mkdir_p=false
15411 if test -x / >/dev/null 2>&1; then
15412 as_test_x='test -x'
15413 else
15414 if ls -dL / >/dev/null 2>&1; then
15415 as_ls_L_option=L
15416 else
15417 as_ls_L_option=
15419 as_test_x='
15420 eval sh -c '\''
15421 if test -d "$1"; then
15422 test -d "$1/.";
15423 else
15424 case $1 in #(
15425 -*)set "./$1";;
15426 esac;
15427 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15428 ???[sx]*):;;*)false;;esac;fi
15429 '\'' sh
15432 as_executable_p=$as_test_x
15434 # Sed expression to map a string onto a valid CPP name.
15435 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15437 # Sed expression to map a string onto a valid variable name.
15438 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15441 exec 6>&1
15442 ## ----------------------------------- ##
15443 ## Main body of $CONFIG_STATUS script. ##
15444 ## ----------------------------------- ##
15445 _ASEOF
15446 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15449 # Save the log message, to keep $0 and so on meaningful, and to
15450 # report actual input values of CONFIG_FILES etc. instead of their
15451 # values after options handling.
15452 ac_log="
15453 This file was extended by Wine $as_me 1.2-rc2, which was
15454 generated by GNU Autoconf 2.65. Invocation command line was
15456 CONFIG_FILES = $CONFIG_FILES
15457 CONFIG_HEADERS = $CONFIG_HEADERS
15458 CONFIG_LINKS = $CONFIG_LINKS
15459 CONFIG_COMMANDS = $CONFIG_COMMANDS
15460 $ $0 $@
15462 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15465 _ACEOF
15467 case $ac_config_files in *"
15468 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15469 esac
15471 case $ac_config_headers in *"
15472 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15473 esac
15476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15477 # Files that config.status was made for.
15478 config_files="$ac_config_files"
15479 config_headers="$ac_config_headers"
15480 config_links="$ac_config_links"
15481 config_commands="$ac_config_commands"
15483 _ACEOF
15485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15486 ac_cs_usage="\
15487 \`$as_me' instantiates files and other configuration actions
15488 from templates according to the current configuration. Unless the files
15489 and actions are specified as TAGs, all are instantiated by default.
15491 Usage: $0 [OPTION]... [TAG]...
15493 -h, --help print this help, then exit
15494 -V, --version print version number and configuration settings, then exit
15495 --config print configuration, then exit
15496 -q, --quiet, --silent
15497 do not print progress messages
15498 -d, --debug don't remove temporary files
15499 --recheck update $as_me by reconfiguring in the same conditions
15500 --file=FILE[:TEMPLATE]
15501 instantiate the configuration file FILE
15502 --header=FILE[:TEMPLATE]
15503 instantiate the configuration header FILE
15505 Configuration files:
15506 $config_files
15508 Configuration headers:
15509 $config_headers
15511 Configuration links:
15512 $config_links
15514 Configuration commands:
15515 $config_commands
15517 Report bugs to <wine-devel@winehq.org>.
15518 Wine home page: <http://www.winehq.org>."
15520 _ACEOF
15521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15522 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15523 ac_cs_version="\\
15524 Wine config.status 1.2-rc2
15525 configured by $0, generated by GNU Autoconf 2.65,
15526 with options \\"\$ac_cs_config\\"
15528 Copyright (C) 2009 Free Software Foundation, Inc.
15529 This config.status script is free software; the Free Software Foundation
15530 gives unlimited permission to copy, distribute and modify it."
15532 ac_pwd='$ac_pwd'
15533 srcdir='$srcdir'
15534 INSTALL='$INSTALL'
15535 test -n "\$AWK" || AWK=awk
15536 _ACEOF
15538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15539 # The default lists apply if the user does not specify any file.
15540 ac_need_defaults=:
15541 while test $# != 0
15543 case $1 in
15544 --*=*)
15545 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15546 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15547 ac_shift=:
15550 ac_option=$1
15551 ac_optarg=$2
15552 ac_shift=shift
15554 esac
15556 case $ac_option in
15557 # Handling of the options.
15558 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15559 ac_cs_recheck=: ;;
15560 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15561 $as_echo "$ac_cs_version"; exit ;;
15562 --config | --confi | --conf | --con | --co | --c )
15563 $as_echo "$ac_cs_config"; exit ;;
15564 --debug | --debu | --deb | --de | --d | -d )
15565 debug=: ;;
15566 --file | --fil | --fi | --f )
15567 $ac_shift
15568 case $ac_optarg in
15569 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15570 esac
15571 as_fn_append CONFIG_FILES " '$ac_optarg'"
15572 ac_need_defaults=false;;
15573 --header | --heade | --head | --hea )
15574 $ac_shift
15575 case $ac_optarg in
15576 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15577 esac
15578 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15579 ac_need_defaults=false;;
15580 --he | --h)
15581 # Conflict between --help and --header
15582 as_fn_error "ambiguous option: \`$1'
15583 Try \`$0 --help' for more information.";;
15584 --help | --hel | -h )
15585 $as_echo "$ac_cs_usage"; exit ;;
15586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15587 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15588 ac_cs_silent=: ;;
15590 # This is an error.
15591 -*) as_fn_error "unrecognized option: \`$1'
15592 Try \`$0 --help' for more information." ;;
15594 *) as_fn_append ac_config_targets " $1"
15595 ac_need_defaults=false ;;
15597 esac
15598 shift
15599 done
15601 ac_configure_extra_args=
15603 if $ac_cs_silent; then
15604 exec 6>/dev/null
15605 ac_configure_extra_args="$ac_configure_extra_args --silent"
15608 _ACEOF
15609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15610 if \$ac_cs_recheck; then
15611 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15612 shift
15613 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15614 CONFIG_SHELL='$SHELL'
15615 export CONFIG_SHELL
15616 exec "\$@"
15619 _ACEOF
15620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15621 exec 5>>config.log
15623 echo
15624 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15625 ## Running $as_me. ##
15626 _ASBOX
15627 $as_echo "$ac_log"
15628 } >&5
15630 _ACEOF
15631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15633 # INIT-COMMANDS
15635 wine_fn_output_makefile ()
15637 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
15638 $ALL_MAKEFILE_DEPENDS
15639 _WINE_EOF
15640 as_fn_error "could not create Makefile" "$LINENO" 5
15643 _ACEOF
15645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15647 # Handling of arguments.
15648 for ac_config_target in $ac_config_targets
15650 case $ac_config_target in
15651 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15652 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
15653 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
15654 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
15655 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
15656 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
15657 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
15658 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
15659 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
15660 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
15661 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
15662 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
15663 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
15664 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
15665 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
15666 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
15667 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
15668 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15669 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
15670 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
15671 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
15672 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Makefile.in" ;;
15674 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15675 esac
15676 done
15679 # If the user did not use the arguments to specify the items to instantiate,
15680 # then the envvar interface is used. Set only those that are not.
15681 # We use the long form for the default assignment because of an extremely
15682 # bizarre bug on SunOS 4.1.3.
15683 if $ac_need_defaults; then
15684 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15685 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15686 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15687 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15690 # Have a temporary directory for convenience. Make it in the build tree
15691 # simply because there is no reason against having it here, and in addition,
15692 # creating and moving files from /tmp can sometimes cause problems.
15693 # Hook for its removal unless debugging.
15694 # Note that there is a small window in which the directory will not be cleaned:
15695 # after its creation but before its name has been assigned to `$tmp'.
15696 $debug ||
15698 tmp=
15699 trap 'exit_status=$?
15700 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15702 trap 'as_fn_exit 1' 1 2 13 15
15704 # Create a (secure) tmp directory for tmp files.
15707 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15708 test -n "$tmp" && test -d "$tmp"
15709 } ||
15711 tmp=./conf$$-$RANDOM
15712 (umask 077 && mkdir "$tmp")
15713 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15715 # Set up the scripts for CONFIG_FILES section.
15716 # No need to generate them if there are no CONFIG_FILES.
15717 # This happens for instance with `./config.status config.h'.
15718 if test -n "$CONFIG_FILES"; then
15720 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15721 ac_cs_awk_getline=:
15722 ac_cs_awk_pipe_init=
15723 ac_cs_awk_read_file='
15724 while ((getline aline < (F[key])) > 0)
15725 print(aline)
15726 close(F[key])'
15727 ac_cs_awk_pipe_fini=
15728 else
15729 ac_cs_awk_getline=false
15730 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15731 ac_cs_awk_read_file='
15732 print "|#_!!_#|"
15733 print "cat " F[key] " &&"
15734 '$ac_cs_awk_pipe_init
15735 # The final `:' finishes the AND list.
15736 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15738 ac_cr=`echo X | tr X '\015'`
15739 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15740 # But we know of no other shell where ac_cr would be empty at this
15741 # point, so we can use a bashism as a fallback.
15742 if test "x$ac_cr" = x; then
15743 eval ac_cr=\$\'\\r\'
15745 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15746 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15747 ac_cs_awk_cr='\r'
15748 else
15749 ac_cs_awk_cr=$ac_cr
15752 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15753 _ACEOF
15755 # Create commands to substitute file output variables.
15757 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15758 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15759 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15760 echo "_ACAWK" &&
15761 echo "_ACEOF"
15762 } >conf$$files.sh &&
15763 . ./conf$$files.sh ||
15764 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15765 rm -f conf$$files.sh
15768 echo "cat >conf$$subs.awk <<_ACEOF" &&
15769 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15770 echo "_ACEOF"
15771 } >conf$$subs.sh ||
15772 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15773 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15774 ac_delim='%!_!# '
15775 for ac_last_try in false false false false false :; do
15776 . ./conf$$subs.sh ||
15777 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15779 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15780 if test $ac_delim_n = $ac_delim_num; then
15781 break
15782 elif $ac_last_try; then
15783 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15784 else
15785 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15787 done
15788 rm -f conf$$subs.sh
15790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15791 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15792 _ACEOF
15793 sed -n '
15795 s/^/S["/; s/!.*/"]=/
15798 s/^[^!]*!//
15799 :repl
15800 t repl
15801 s/'"$ac_delim"'$//
15802 t delim
15805 s/\(.\{148\}\)..*/\1/
15806 t more1
15807 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15810 b repl
15811 :more1
15812 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15815 s/.\{148\}//
15816 t nl
15817 :delim
15819 s/\(.\{148\}\)..*/\1/
15820 t more2
15821 s/["\\]/\\&/g; s/^/"/; s/$/"/
15824 :more2
15825 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15828 s/.\{148\}//
15829 t delim
15830 ' <conf$$subs.awk | sed '
15831 /^[^""]/{
15833 s/\n//
15835 ' >>$CONFIG_STATUS || ac_write_fail=1
15836 rm -f conf$$subs.awk
15837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15838 _ACAWK
15839 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15840 for (key in S) S_is_set[key] = 1
15841 FS = "\a"
15842 \$ac_cs_awk_pipe_init
15845 line = $ 0
15846 nfields = split(line, field, "@")
15847 substed = 0
15848 len = length(field[1])
15849 for (i = 2; i < nfields; i++) {
15850 key = field[i]
15851 keylen = length(key)
15852 if (S_is_set[key]) {
15853 value = S[key]
15854 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15855 len += length(value) + length(field[++i])
15856 substed = 1
15857 } else
15858 len += 1 + keylen
15860 if (nfields == 3 && !substed) {
15861 key = field[2]
15862 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15863 \$ac_cs_awk_read_file
15864 next
15867 print line
15869 \$ac_cs_awk_pipe_fini
15870 _ACAWK
15871 _ACEOF
15872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15873 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15874 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15875 else
15877 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15878 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15879 _ACEOF
15881 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15882 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15883 # trailing colons and then remove the whole line if VPATH becomes empty
15884 # (actually we leave an empty line to preserve line numbers).
15885 if test "x$srcdir" = x.; then
15886 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15887 s/:*\$(srcdir):*/:/
15888 s/:*\${srcdir}:*/:/
15889 s/:*@srcdir@:*/:/
15890 s/^\([^=]*=[ ]*\):*/\1/
15891 s/:*$//
15892 s/^[^=]*=[ ]*$//
15896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15897 fi # test -n "$CONFIG_FILES"
15899 # Set up the scripts for CONFIG_HEADERS section.
15900 # No need to generate them if there are no CONFIG_HEADERS.
15901 # This happens for instance with `./config.status Makefile'.
15902 if test -n "$CONFIG_HEADERS"; then
15903 cat >"$tmp/defines.awk" <<\_ACAWK ||
15904 BEGIN {
15905 _ACEOF
15907 # Transform confdefs.h into an awk script `defines.awk', embedded as
15908 # here-document in config.status, that substitutes the proper values into
15909 # config.h.in to produce config.h.
15911 # Create a delimiter string that does not exist in confdefs.h, to ease
15912 # handling of long lines.
15913 ac_delim='%!_!# '
15914 for ac_last_try in false false :; do
15915 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15916 if test -z "$ac_t"; then
15917 break
15918 elif $ac_last_try; then
15919 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15920 else
15921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15923 done
15925 # For the awk script, D is an array of macro values keyed by name,
15926 # likewise P contains macro parameters if any. Preserve backslash
15927 # newline sequences.
15929 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15930 sed -n '
15931 s/.\{148\}/&'"$ac_delim"'/g
15932 t rset
15933 :rset
15934 s/^[ ]*#[ ]*define[ ][ ]*/ /
15935 t def
15937 :def
15938 s/\\$//
15939 t bsnl
15940 s/["\\]/\\&/g
15941 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15942 D["\1"]=" \3"/p
15943 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15945 :bsnl
15946 s/["\\]/\\&/g
15947 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15948 D["\1"]=" \3\\\\\\n"\\/p
15949 t cont
15950 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15951 t cont
15953 :cont
15955 s/.\{148\}/&'"$ac_delim"'/g
15956 t clear
15957 :clear
15958 s/\\$//
15959 t bsnlc
15960 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15962 :bsnlc
15963 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15964 b cont
15965 ' <confdefs.h | sed '
15966 s/'"$ac_delim"'/"\\\
15967 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15970 for (key in D) D_is_set[key] = 1
15971 FS = "\a"
15973 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15974 line = \$ 0
15975 split(line, arg, " ")
15976 if (arg[1] == "#") {
15977 defundef = arg[2]
15978 mac1 = arg[3]
15979 } else {
15980 defundef = substr(arg[1], 2)
15981 mac1 = arg[2]
15983 split(mac1, mac2, "(") #)
15984 macro = mac2[1]
15985 prefix = substr(line, 1, index(line, defundef) - 1)
15986 if (D_is_set[macro]) {
15987 # Preserve the white space surrounding the "#".
15988 print prefix "define", macro P[macro] D[macro]
15989 next
15990 } else {
15991 # Replace #undef with comments. This is necessary, for example,
15992 # in the case of _POSIX_SOURCE, which is predefined and required
15993 # on some systems where configure will not decide to define it.
15994 if (defundef == "undef") {
15995 print "/*", prefix defundef, macro, "*/"
15996 next
16000 { print }
16001 _ACAWK
16002 _ACEOF
16003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16004 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16005 fi # test -n "$CONFIG_HEADERS"
16008 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16009 shift
16010 for ac_tag
16012 case $ac_tag in
16013 :[FHLC]) ac_mode=$ac_tag; continue;;
16014 esac
16015 case $ac_mode$ac_tag in
16016 :[FHL]*:*);;
16017 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16018 :[FH]-) ac_tag=-:-;;
16019 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16020 esac
16021 ac_save_IFS=$IFS
16022 IFS=:
16023 set x $ac_tag
16024 IFS=$ac_save_IFS
16025 shift
16026 ac_file=$1
16027 shift
16029 case $ac_mode in
16030 :L) ac_source=$1;;
16031 :[FH])
16032 ac_file_inputs=
16033 for ac_f
16035 case $ac_f in
16036 -) ac_f="$tmp/stdin";;
16037 *) # Look for the file first in the build tree, then in the source tree
16038 # (if the path is not absolute). The absolute path cannot be DOS-style,
16039 # because $ac_f cannot contain `:'.
16040 test -f "$ac_f" ||
16041 case $ac_f in
16042 [\\/$]*) false;;
16043 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16044 esac ||
16045 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16046 esac
16047 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16048 as_fn_append ac_file_inputs " '$ac_f'"
16049 done
16051 # Let's still pretend it is `configure' which instantiates (i.e., don't
16052 # use $as_me), people would be surprised to read:
16053 # /* config.h. Generated by config.status. */
16054 configure_input='Generated from '`
16055 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16056 `' by configure.'
16057 if test x"$ac_file" != x-; then
16058 configure_input="$ac_file. $configure_input"
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16060 $as_echo "$as_me: creating $ac_file" >&6;}
16062 # Neutralize special characters interpreted by sed in replacement strings.
16063 case $configure_input in #(
16064 *\&* | *\|* | *\\* )
16065 ac_sed_conf_input=`$as_echo "$configure_input" |
16066 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16067 *) ac_sed_conf_input=$configure_input;;
16068 esac
16070 case $ac_tag in
16071 *:-:* | *:-) cat >"$tmp/stdin" \
16072 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16073 esac
16075 esac
16077 ac_dir=`$as_dirname -- "$ac_file" ||
16078 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16079 X"$ac_file" : 'X\(//\)[^/]' \| \
16080 X"$ac_file" : 'X\(//\)$' \| \
16081 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16082 $as_echo X"$ac_file" |
16083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16084 s//\1/
16087 /^X\(\/\/\)[^/].*/{
16088 s//\1/
16091 /^X\(\/\/\)$/{
16092 s//\1/
16095 /^X\(\/\).*/{
16096 s//\1/
16099 s/.*/./; q'`
16100 as_dir="$ac_dir"; as_fn_mkdir_p
16101 ac_builddir=.
16103 case "$ac_dir" in
16104 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16106 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16107 # A ".." for each directory in $ac_dir_suffix.
16108 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16109 case $ac_top_builddir_sub in
16110 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16111 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16112 esac ;;
16113 esac
16114 ac_abs_top_builddir=$ac_pwd
16115 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16116 # for backward compatibility:
16117 ac_top_builddir=$ac_top_build_prefix
16119 case $srcdir in
16120 .) # We are building in place.
16121 ac_srcdir=.
16122 ac_top_srcdir=$ac_top_builddir_sub
16123 ac_abs_top_srcdir=$ac_pwd ;;
16124 [\\/]* | ?:[\\/]* ) # Absolute name.
16125 ac_srcdir=$srcdir$ac_dir_suffix;
16126 ac_top_srcdir=$srcdir
16127 ac_abs_top_srcdir=$srcdir ;;
16128 *) # Relative name.
16129 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16130 ac_top_srcdir=$ac_top_build_prefix$srcdir
16131 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16132 esac
16133 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16136 case $ac_mode in
16139 # CONFIG_FILE
16142 case $INSTALL in
16143 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16144 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16145 esac
16146 _ACEOF
16148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16149 # If the template does not know about datarootdir, expand it.
16150 # FIXME: This hack should be removed a few years after 2.60.
16151 ac_datarootdir_hack=; ac_datarootdir_seen=
16152 ac_sed_dataroot='
16153 /datarootdir/ {
16157 /@datadir@/p
16158 /@docdir@/p
16159 /@infodir@/p
16160 /@localedir@/p
16161 /@mandir@/p'
16162 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16163 *datarootdir*) ac_datarootdir_seen=yes;;
16164 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16166 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16167 _ACEOF
16168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16169 ac_datarootdir_hack='
16170 s&@datadir@&$datadir&g
16171 s&@docdir@&$docdir&g
16172 s&@infodir@&$infodir&g
16173 s&@localedir@&$localedir&g
16174 s&@mandir@&$mandir&g
16175 s&\\\${datarootdir}&$datarootdir&g' ;;
16176 esac
16177 _ACEOF
16179 # Neutralize VPATH when `$srcdir' = `.'.
16180 # Shell code in configure.ac might set extrasub.
16181 # FIXME: do we really want to maintain this feature?
16182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16183 ac_sed_extra="$ac_vpsub
16184 $extrasub
16185 _ACEOF
16186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16189 s|@configure_input@|$ac_sed_conf_input|;t t
16190 s&@top_builddir@&$ac_top_builddir_sub&;t t
16191 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16192 s&@srcdir@&$ac_srcdir&;t t
16193 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16194 s&@top_srcdir@&$ac_top_srcdir&;t t
16195 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16196 s&@builddir@&$ac_builddir&;t t
16197 s&@abs_builddir@&$ac_abs_builddir&;t t
16198 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16199 s&@INSTALL@&$ac_INSTALL&;t t
16200 $ac_datarootdir_hack
16202 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16203 if $ac_cs_awk_getline; then
16204 $AWK -f "$tmp/subs.awk"
16205 else
16206 $AWK -f "$tmp/subs.awk" | $SHELL
16207 fi >$tmp/out \
16208 || as_fn_error "could not create $ac_file" "$LINENO" 5
16210 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16211 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16212 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16214 which seems to be undefined. Please make sure it is defined." >&5
16215 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16216 which seems to be undefined. Please make sure it is defined." >&2;}
16218 rm -f "$tmp/stdin"
16219 case $ac_file in
16220 -) cat "$tmp/out" && rm -f "$tmp/out";;
16221 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16222 esac \
16223 || as_fn_error "could not create $ac_file" "$LINENO" 5
16227 # CONFIG_HEADER
16229 if test x"$ac_file" != x-; then
16231 $as_echo "/* $configure_input */" \
16232 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16233 } >"$tmp/config.h" \
16234 || as_fn_error "could not create $ac_file" "$LINENO" 5
16235 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16237 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16238 else
16239 rm -f "$ac_file"
16240 mv "$tmp/config.h" "$ac_file" \
16241 || as_fn_error "could not create $ac_file" "$LINENO" 5
16243 else
16244 $as_echo "/* $configure_input */" \
16245 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16246 || as_fn_error "could not create -" "$LINENO" 5
16251 # CONFIG_LINK
16254 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16256 else
16257 # Prefer the file from the source tree if names are identical.
16258 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16259 ac_source=$srcdir/$ac_source
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16263 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16265 if test ! -r "$ac_source"; then
16266 as_fn_error "$ac_source: file not found" "$LINENO" 5
16268 rm -f "$ac_file"
16270 # Try a relative symlink, then a hard link, then a copy.
16271 case $srcdir in
16272 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16273 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16274 esac
16275 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16276 ln "$ac_source" "$ac_file" 2>/dev/null ||
16277 cp -p "$ac_source" "$ac_file" ||
16278 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16281 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16282 $as_echo "$as_me: executing $ac_file commands" >&6;}
16284 esac
16287 case $ac_file$ac_mode in
16288 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16289 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16290 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16291 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16292 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16293 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16294 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16295 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16296 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16297 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16298 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16299 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16300 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16301 "Makefile":C) wine_fn_output_makefile Makefile ;;
16303 esac
16304 done # for ac_tag
16307 as_fn_exit 0
16308 _ACEOF
16309 ac_clean_files=$ac_clean_files_save
16311 test $ac_write_fail = 0 ||
16312 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16315 # configure is writing to config.log, and then calls config.status.
16316 # config.status does its own redirection, appending to config.log.
16317 # Unfortunately, on DOS this fails, as config.log is still kept open
16318 # by configure, so config.status won't be able to write to it; its
16319 # output is simply discarded. So we exec the FD to /dev/null,
16320 # effectively closing config.log, so it can be properly (re)opened and
16321 # appended to by config.status. When coming back to configure, we
16322 # need to make the FD available again.
16323 if test "$no_create" != yes; then
16324 ac_cs_success=:
16325 ac_config_status_args=
16326 test "$silent" = yes &&
16327 ac_config_status_args="$ac_config_status_args --quiet"
16328 exec 5>/dev/null
16329 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16330 exec 5>>config.log
16331 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16332 # would make configure fail if this is the last instruction.
16333 $ac_cs_success || as_fn_exit $?
16335 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16337 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16341 if test "$no_create" = "yes"
16342 then
16343 exit 0
16346 ac_save_IFS="$IFS"
16347 if test "x$wine_notices != "x; then
16348 echo >&6
16349 IFS="|"
16350 for msg in $wine_notices; do
16351 IFS="$ac_save_IFS"
16352 if test -n "$msg"; then
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16354 $as_echo "$as_me: $msg" >&6;}
16356 done
16358 IFS="|"
16359 for msg in $wine_warnings; do
16360 IFS="$ac_save_IFS"
16361 if test -n "$msg"; then
16362 echo >&2
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16364 $as_echo "$as_me: WARNING: $msg" >&2;}
16366 done
16367 IFS="$ac_save_IFS"
16369 echo "
16370 $as_me: Finished. Do '${ac_make}' to compile Wine.
16371 " >&6