wineoss.drv: Only write as much data as will fit into the OSS buffer.
[wine/multimedia.git] / configure
blob3cf9675d7d51b9e05c053eb0959e0450202f02ed
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.3.30.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: wine-devel@winehq.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
247 exit 1
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
265 { eval $1=; unset $1;}
267 as_unset=as_fn_unset
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
274 return $1
275 } # as_fn_set_status
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
318 /^X\(\/\/\)$/{
319 s//\1/
322 /^X\(\/\).*/{
323 s//\1/
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
343 eval $1+=\$2
345 else
346 as_fn_append ()
348 eval $1=\$$1\$2
350 fi # as_fn_append
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
360 as_val=$(( $* ))
362 else
363 as_fn_arith ()
365 as_val=`expr "$@" || test $? -eq 1`
367 fi # as_fn_arith
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
414 /^X\/\(\/\/\)$/{
415 s//\1/
418 /^X\/\(\/\).*/{
419 s//\1/
422 s/.*/./; q'`
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
445 :lineno
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
473 ECHO_N='-n';;
474 esac
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
497 else
498 as_ln_s='cp -p'
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
560 # Identity of this package.
561 PACKAGE_NAME='Wine'
562 PACKAGE_TARNAME='wine'
563 PACKAGE_VERSION='1.3.30'
564 PACKAGE_STRING='Wine 1.3.30'
565 PACKAGE_BUGREPORT='wine-devel@winehq.org'
566 PACKAGE_URL='http://www.winehq.org'
568 ac_unique_file="server/atom.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 LINGUAS
608 ALL_TEST_RESOURCES
609 LDAPLIBS
610 LIBPOLL
611 LIBDL
612 EXTRA_BINARIES
613 MAIN_BINARY
614 SOCKETLIBS
615 CRTLIBS
616 TOOLSEXT
617 LDPATH
618 UNWINDFLAGS
619 BUILTINFLAG
620 EXTRACFLAGS
621 LIBKSTAT
622 LIBOPENAL
623 LIBMPG123
624 PNGINCL
625 FONTCONFIGINCL
626 CUPSINCL
627 OSS4INCL
628 ALSALIBS
629 GSTREAMER_INCL
630 GSTREAMER_LIBS
631 LIBGETTEXTPO
632 ZLIB
633 FREETYPEINCL
634 FREETYPELIBS
635 ft_devel
636 LCMSLIBS
637 RESOLVLIBS
638 GPHOTO2INCL
639 GPHOTO2LIBS
640 gphoto2port_devel
641 gphoto2_devel
642 SANEINCL
643 sane_devel
644 GNUTLSINCL
645 HALINCL
646 XSLTINCL
647 XML2INCL
648 XML2LIBS
649 X_EXTRA_LIBS
650 X_LIBS
651 X_PRE_LIBS
652 X_CFLAGS
653 XMKMF
654 LIBPTHREAD
655 CROSSTARGET
656 CROSSCC
657 CROSSTEST_DISABLE
658 PRELINK
659 CARBONLIB
660 QUICKTIMELIB
661 LIBOPENCL
662 FRAMEWORK_OPENAL
663 COREAUDIO
664 SECURITYLIB
665 DISKARBITRATIONLIB
666 LDEXECFLAGS
667 APPLICATIONSERVICESLIB
668 IOKITLIB
669 COREFOUNDATIONLIB
670 DLLWRAP
671 DLLTOOL
673 LDRPATH_LOCAL
674 LDRPATH_INSTALL
675 IMPLIBEXT
676 LIBEXT
677 LDDLLFLAGS
678 LDSHARED
679 DLLFLAGS
680 DLLEXT
682 OPENGL_LIBS
683 XLIB
684 MAINTAINER_MODE
685 ICOTOOL
686 CONVERT
687 RSVG
688 PKG_CONFIG
689 FONTFORGE
690 LINTFLAGS
691 LINT
692 INSTALL_DATA
693 INSTALL_SCRIPT
694 INSTALL_PROGRAM
695 LDCONFIG
696 EGREP
697 GREP
698 LN_S
699 RANLIB
700 ARFLAGS
701 ac_ct_AR
703 BISON
704 FLEX
705 TOOLSDIR
706 WOW64_DISABLE
707 TARGETFLAGS
708 CPPBIN
709 ac_ct_CXX
710 CXXFLAGS
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
719 SET_MAKE
720 host_os
721 host_vendor
722 host_cpu
723 host
724 build_os
725 build_vendor
726 build_cpu
727 build
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 ECHO_T
733 ECHO_N
734 ECHO_C
735 DEFS
736 mandir
737 localedir
738 libdir
739 psdir
740 pdfdir
741 dvidir
742 htmldir
743 infodir
744 docdir
745 oldincludedir
746 includedir
747 localstatedir
748 sharedstatedir
749 sysconfdir
750 datadir
751 datarootdir
752 libexecdir
753 sbindir
754 bindir
755 program_transform_name
756 prefix
757 exec_prefix
758 PACKAGE_URL
759 PACKAGE_BUGREPORT
760 PACKAGE_STRING
761 PACKAGE_VERSION
762 PACKAGE_TARNAME
763 PACKAGE_NAME
764 PATH_SEPARATOR
765 SHELL'
766 ac_subst_files='MAKE_RULES
767 MAKE_TEST_RULES
768 MAKE_DLL_RULES
769 MAKE_IMPLIB_RULES
770 MAKE_PROG_RULES'
771 ac_user_opts='
772 enable_option_checking
773 enable_win16
774 enable_win64
775 enable_tests
776 enable_maintainer_mode
777 with_alsa
778 with_capi
779 with_cms
780 with_coreaudio
781 with_cups
782 with_curses
783 with_fontconfig
784 with_freetype
785 with_gettextpo
786 with_gphoto
787 with_glu
788 with_gnutls
789 with_gsm
790 with_gstreamer
791 with_hal
792 with_jpeg
793 with_ldap
794 with_mpg123
795 with_openal
796 with_opencl
797 with_opengl
798 with_openssl
799 with_oss
800 with_png
801 with_pthread
802 with_sane
803 with_tiff
804 with_v4l
805 with_xcomposite
806 with_xcursor
807 with_xinerama
808 with_xinput
809 with_xinput2
810 with_xml
811 with_xrandr
812 with_xrender
813 with_xshape
814 with_xshm
815 with_xslt
816 with_xxf86vm
817 with_zlib
818 with_wine_tools
819 with_wine64
820 enable_largefile
821 with_x
823 ac_precious_vars='build_alias
824 host_alias
825 target_alias
827 CFLAGS
828 LDFLAGS
829 LIBS
830 CPPFLAGS
832 CXXFLAGS
835 XMKMF'
838 # Initialize some variables set by options.
839 ac_init_help=
840 ac_init_version=false
841 ac_unrecognized_opts=
842 ac_unrecognized_sep=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
845 cache_file=/dev/null
846 exec_prefix=NONE
847 no_create=
848 no_recursion=
849 prefix=NONE
850 program_prefix=NONE
851 program_suffix=NONE
852 program_transform_name=s,x,x,
853 silent=
854 site=
855 srcdir=
856 verbose=
857 x_includes=NONE
858 x_libraries=NONE
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
878 htmldir='${docdir}'
879 dvidir='${docdir}'
880 pdfdir='${docdir}'
881 psdir='${docdir}'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
886 ac_prev=
887 ac_dashdash=
888 for ac_option
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
893 ac_prev=
894 continue
897 case $ac_option in
898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *=) ac_optarg= ;;
900 *) ac_optarg=yes ;;
901 esac
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
907 ac_dashdash=yes ;;
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
926 --config-cache | -C)
927 cache_file=config.cache ;;
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1061 no_create=yes ;;
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
1130 sbindir=$ac_optarg ;;
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
1141 sharedstatedir=$ac_optarg ;;
1143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
1146 site=$ac_optarg ;;
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1171 -with-* | --with-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1196 "with_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1231 esac
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1236 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243 esac
1244 done
1246 if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error $? "missing argument to $ac_option"
1251 if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1292 If a cross compiler is detected then cross compile mode will be used" >&2
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301 test "$silent" = yes && exec 6>/dev/null
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1330 /^X\(\/\/\)$/{
1331 s//\1/
1334 /^X\(\/\).*/{
1335 s//\1/
1338 s/.*/./; q'`
1339 srcdir=$ac_confdir
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 srcdir=..
1343 else
1344 ac_srcdir_defaulted=no
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353 pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 \`configure' configures Wine 1.3.30 to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1431 _ACEOF
1433 cat <<\_ACEOF
1435 X features:
1436 --x-includes=DIR X include files are in DIR
1437 --x-libraries=DIR X library files are in DIR
1439 System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 _ACEOF
1445 if test -n "$ac_init_help"; then
1446 case $ac_init_help in
1447 short | recursive ) echo "Configuration of Wine 1.3.30:";;
1448 esac
1449 cat <<\_ACEOF
1451 Optional Features:
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --disable-win16 do not include Win16 support
1456 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1457 binaries)
1458 --disable-tests do not build the regression tests
1459 --enable-maintainer-mode
1460 enable maintainer-specific build rules
1461 --disable-largefile omit support for large files
1463 Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --without-alsa do not use the Alsa sound support
1467 --without-capi do not use CAPI (ISDN support)
1468 --without-cms do not use CMS (color management support)
1469 --without-coreaudio do not use the CoreAudio sound support
1470 --without-cups do not use CUPS
1471 --without-curses do not use (n)curses
1472 --without-fontconfig do not use fontconfig
1473 --without-freetype do not use the FreeType library
1474 --without-gettextpo do not use the GetTextPO library
1475 --without-gphoto do not use gphoto (Digital Camera support)
1476 --without-glu do not use the GLU library
1477 --without-gnutls do not use GnuTLS (schannel support)
1478 --without-gsm do not use libgsm (GSM 06.10 codec support)
1479 --without-gstreamer do not use GStreamer (codecs support)
1480 --without-hal do not use HAL (dynamic device support)
1481 --without-jpeg do not use JPEG
1482 --without-ldap do not use LDAP
1483 --without-mpg123 do not use the mpg123 library
1484 --without-openal do not use OpenAL
1485 --without-opencl do not use OpenCL
1486 --without-opengl do not use OpenGL
1487 --without-openssl do not use OpenSSL
1488 --without-oss do not use the OSS sound support
1489 --without-png do not use PNG
1490 --without-pthread do not use the pthread library
1491 --without-sane do not use SANE (scanner support)
1492 --without-tiff do not use TIFF
1493 --without-v4l do not use v4l1 (v4l support)
1494 --without-xcomposite do not use the Xcomposite extension
1495 --without-xcursor do not use the Xcursor extension
1496 --without-xinerama do not use Xinerama (multi-monitor support)
1497 --without-xinput do not use the Xinput extension
1498 --without-xinput2 do not use the Xinput 2 extension
1499 --without-xml do not use XML
1500 --without-xrandr do not use Xrandr (resolution changes)
1501 --without-xrender do not use the Xrender extension
1502 --without-xshape do not use the Xshape extension
1503 --without-xshm do not use XShm (shared memory extension)
1504 --without-xslt do not use XSLT
1505 --without-xxf86vm do not use XFree video mode extension
1506 --without-zlib do not use Zlib (data compression)
1507 --with-wine-tools=DIR use Wine tools from directory DIR
1508 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1509 --with-x use the X Window System
1511 Some influential environment variables:
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
1516 LIBS libraries to pass to the linker, e.g. -l<library>
1517 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1518 you have headers in a nonstandard directory <include dir>
1519 CXX C++ compiler command
1520 CXXFLAGS C++ compiler flags
1521 CPP C preprocessor
1522 XMKMF Path to xmkmf, Makefile generator for X Window System
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1527 Report bugs to <wine-devel@winehq.org>.
1528 Wine home page: <http://www.winehq.org>.
1529 _ACEOF
1530 ac_status=$?
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538 continue
1539 ac_builddir=.
1541 case "$ac_dir" in
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 esac ;;
1551 esac
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1557 case $srcdir in
1558 .) # We are building in place.
1559 ac_srcdir=.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1566 *) # Relative name.
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 esac
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1581 else
1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583 fi || ac_status=$?
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1585 done
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1590 cat <<\_ACEOF
1591 Wine configure 1.3.30
1592 generated by GNU Autoconf 2.68
1594 Copyright (C) 2010 Free Software Foundation, Inc.
1595 This configure script is free software; the Free Software Foundation
1596 gives unlimited permission to copy, distribute and modify it.
1597 _ACEOF
1598 exit
1601 ## ------------------------ ##
1602 ## Autoconf initialization. ##
1603 ## ------------------------ ##
1605 # ac_fn_c_try_compile LINENO
1606 # --------------------------
1607 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_compile ()
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 rm -f conftest.$ac_objext
1612 if { { ac_try="$ac_compile"
1613 case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1616 esac
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_compile") 2>conftest.err
1620 ac_status=$?
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && {
1628 test -z "$ac_c_werror_flag" ||
1629 test ! -s conftest.err
1630 } && test -s conftest.$ac_objext; then :
1631 ac_retval=0
1632 else
1633 $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1636 ac_retval=1
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639 as_fn_set_status $ac_retval
1641 } # ac_fn_c_try_compile
1643 # ac_fn_cxx_try_compile LINENO
1644 # ----------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_cxx_try_compile ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_cxx_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1669 ac_retval=0
1670 else
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1674 ac_retval=1
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 as_fn_set_status $ac_retval
1679 } # ac_fn_cxx_try_compile
1681 # ac_fn_c_try_link LINENO
1682 # -----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_link ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 $as_test_x conftest$ac_exeext
1709 }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1715 ac_retval=1
1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719 # interfere with the next link command; also delete a directory that is
1720 # left behind by Apple's compiler. We do this before executing the actions.
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1725 } # ac_fn_c_try_link
1727 # ac_fn_c_try_cpp LINENO
1728 # ----------------------
1729 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_c_try_cpp ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_cpp conftest.$ac_ext"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } > conftest.i && {
1749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1757 ac_retval=1
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1762 } # ac_fn_c_try_cpp
1764 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1767 # the include files in INCLUDES and setting the cache variable VAR
1768 # accordingly.
1769 ac_fn_c_check_header_mongrel ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if eval \${$3+:} false; then :
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 else
1782 # Is the header compilable?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1784 $as_echo_n "checking $2 usability... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1788 #include <$2>
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_header_compiler=yes
1792 else
1793 ac_header_compiler=no
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1797 $as_echo "$ac_header_compiler" >&6; }
1799 # Is the header present?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1801 $as_echo_n "checking $2 presence... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 #include <$2>
1805 _ACEOF
1806 if ac_fn_c_try_cpp "$LINENO"; then :
1807 ac_header_preproc=yes
1808 else
1809 ac_header_preproc=no
1811 rm -f conftest.err conftest.i conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1813 $as_echo "$ac_header_preproc" >&6; }
1815 # So? What about this header?
1816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1817 yes:no: )
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1819 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 no:yes:* )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1825 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1827 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1829 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1831 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834 ( $as_echo "## ------------------------------------ ##
1835 ## Report this to wine-devel@winehq.org ##
1836 ## ------------------------------------ ##"
1837 ) | sed "s/^/$as_me: WARNING: /" >&2
1839 esac
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843 $as_echo_n "(cached) " >&6
1844 else
1845 eval "$3=\$ac_header_compiler"
1847 eval ac_res=\$$3
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 } # ac_fn_c_check_header_mongrel
1855 # ac_fn_c_try_run LINENO
1856 # ----------------------
1857 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1858 # that executables *can* be run.
1859 ac_fn_c_try_run ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_link"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1873 { { case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_try") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; }; }; then :
1883 ac_retval=0
1884 else
1885 $as_echo "$as_me: program exited with status $ac_status" >&5
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1889 ac_retval=$ac_status
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1895 } # ac_fn_c_try_run
1897 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists and can be compiled using the include files in
1900 # INCLUDES, setting the cache variable VAR accordingly.
1901 ac_fn_c_check_header_compile ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if eval \${$3+:} false; then :
1907 $as_echo_n "(cached) " >&6
1908 else
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 eval "$3=yes"
1916 else
1917 eval "$3=no"
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 } # ac_fn_c_check_header_compile
1928 # ac_fn_c_check_func LINENO FUNC VAR
1929 # ----------------------------------
1930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1931 ac_fn_c_check_func ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943 #define $2 innocuous_$2
1945 /* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
1950 #ifdef __STDC__
1951 # include <limits.h>
1952 #else
1953 # include <assert.h>
1954 #endif
1956 #undef $2
1958 /* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1961 #ifdef __cplusplus
1962 extern "C"
1963 #endif
1964 char $2 ();
1965 /* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968 #if defined __stub_$2 || defined __stub___$2
1969 choke me
1970 #endif
1973 main ()
1975 return $2 ();
1977 return 0;
1979 _ACEOF
1980 if ac_fn_c_try_link "$LINENO"; then :
1981 eval "$3=yes"
1982 else
1983 eval "$3=no"
1985 rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1988 eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 } # ac_fn_c_check_func
1995 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1996 # ----------------------------------------------------
1997 # Tries to find if the field MEMBER exists in type AGGR, after including
1998 # INCLUDES, setting cache variable VAR accordingly.
1999 ac_fn_c_check_member ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2003 $as_echo_n "checking for $2.$3... " >&6; }
2004 if eval \${$4+:} false; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2011 main ()
2013 static $2 ac_aggr;
2014 if (ac_aggr.$3)
2015 return 0;
2017 return 0;
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 eval "$4=yes"
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2027 main ()
2029 static $2 ac_aggr;
2030 if (sizeof ac_aggr.$3)
2031 return 0;
2033 return 0;
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 eval "$4=yes"
2038 else
2039 eval "$4=no"
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 eval ac_res=\$$4
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 } # ac_fn_c_check_member
2052 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2053 # -------------------------------------------
2054 # Tests whether TYPE exists after having included INCLUDES, setting cache
2055 # variable VAR accordingly.
2056 ac_fn_c_check_type ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2063 else
2064 eval "$3=no"
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 if (sizeof ($2))
2072 return 0;
2074 return 0;
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2082 main ()
2084 if (sizeof (($2)))
2085 return 0;
2087 return 0;
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2092 else
2093 eval "$3=yes"
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 eval ac_res=\$$3
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 } # ac_fn_c_check_type
2105 cat >config.log <<_ACEOF
2106 This file contains any messages produced by compilers while
2107 running configure, to aid debugging if configure makes a mistake.
2109 It was created by Wine $as_me 1.3.30, which was
2110 generated by GNU Autoconf 2.68. Invocation command line was
2112 $ $0 $@
2114 _ACEOF
2115 exec 5>>config.log
2117 cat <<_ASUNAME
2118 ## --------- ##
2119 ## Platform. ##
2120 ## --------- ##
2122 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2123 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2124 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2125 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2126 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2128 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2129 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2131 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2132 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2133 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2134 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2135 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2136 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2137 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2139 _ASUNAME
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 $as_echo "PATH: $as_dir"
2147 done
2148 IFS=$as_save_IFS
2150 } >&5
2152 cat >&5 <<_ACEOF
2155 ## ----------- ##
2156 ## Core tests. ##
2157 ## ----------- ##
2159 _ACEOF
2162 # Keep a trace of the command line.
2163 # Strip out --no-create and --no-recursion so they do not pile up.
2164 # Strip out --silent because we don't want to record it for future runs.
2165 # Also quote any args containing shell meta-characters.
2166 # Make two passes to allow for proper duplicate-argument suppression.
2167 ac_configure_args=
2168 ac_configure_args0=
2169 ac_configure_args1=
2170 ac_must_keep_next=false
2171 for ac_pass in 1 2
2173 for ac_arg
2175 case $ac_arg in
2176 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178 | -silent | --silent | --silen | --sile | --sil)
2179 continue ;;
2180 *\'*)
2181 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2182 esac
2183 case $ac_pass in
2184 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2186 as_fn_append ac_configure_args1 " '$ac_arg'"
2187 if test $ac_must_keep_next = true; then
2188 ac_must_keep_next=false # Got value, back to normal.
2189 else
2190 case $ac_arg in
2191 *=* | --config-cache | -C | -disable-* | --disable-* \
2192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194 | -with-* | --with-* | -without-* | --without-* | --x)
2195 case "$ac_configure_args0 " in
2196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197 esac
2199 -* ) ac_must_keep_next=true ;;
2200 esac
2202 as_fn_append ac_configure_args " '$ac_arg'"
2204 esac
2205 done
2206 done
2207 { ac_configure_args0=; unset ac_configure_args0;}
2208 { ac_configure_args1=; unset ac_configure_args1;}
2210 # When interrupted or exit'd, cleanup temporary files, and complete
2211 # config.log. We remove comments because anyway the quotes in there
2212 # would cause problems or look ugly.
2213 # WARNING: Use '\'' to represent an apostrophe within the trap.
2214 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2215 trap 'exit_status=$?
2216 # Save into config.log some information that might help in debugging.
2218 echo
2220 $as_echo "## ---------------- ##
2221 ## Cache variables. ##
2222 ## ---------------- ##"
2223 echo
2224 # The following way of writing the cache mishandles newlines in values,
2226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in #(
2229 *${as_nl}*)
2230 case $ac_var in #(
2231 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2232 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2233 esac
2234 case $ac_var in #(
2235 _ | IFS | as_nl) ;; #(
2236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2237 *) { eval $ac_var=; unset $ac_var;} ;;
2238 esac ;;
2239 esac
2240 done
2241 (set) 2>&1 |
2242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243 *${as_nl}ac_space=\ *)
2244 sed -n \
2245 "s/'\''/'\''\\\\'\'''\''/g;
2246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2247 ;; #(
2249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251 esac |
2252 sort
2254 echo
2256 $as_echo "## ----------------- ##
2257 ## Output variables. ##
2258 ## ----------------- ##"
2259 echo
2260 for ac_var in $ac_subst_vars
2262 eval ac_val=\$$ac_var
2263 case $ac_val in
2264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 esac
2266 $as_echo "$ac_var='\''$ac_val'\''"
2267 done | sort
2268 echo
2270 if test -n "$ac_subst_files"; then
2271 $as_echo "## ------------------- ##
2272 ## File substitutions. ##
2273 ## ------------------- ##"
2274 echo
2275 for ac_var in $ac_subst_files
2277 eval ac_val=\$$ac_var
2278 case $ac_val in
2279 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280 esac
2281 $as_echo "$ac_var='\''$ac_val'\''"
2282 done | sort
2283 echo
2286 if test -s confdefs.h; then
2287 $as_echo "## ----------- ##
2288 ## confdefs.h. ##
2289 ## ----------- ##"
2290 echo
2291 cat confdefs.h
2292 echo
2294 test "$ac_signal" != 0 &&
2295 $as_echo "$as_me: caught signal $ac_signal"
2296 $as_echo "$as_me: exit $exit_status"
2297 } >&5
2298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2300 exit $exit_status
2302 for ac_signal in 1 2 13 15; do
2303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2304 done
2305 ac_signal=0
2307 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2308 rm -f -r conftest* confdefs.h
2310 $as_echo "/* confdefs.h */" > confdefs.h
2312 # Predefined preprocessor variables.
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_NAME "$PACKAGE_NAME"
2316 _ACEOF
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2320 _ACEOF
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2324 _ACEOF
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_STRING "$PACKAGE_STRING"
2328 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2332 _ACEOF
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_URL "$PACKAGE_URL"
2336 _ACEOF
2339 # Let the site file select an alternate cache file if it wants to.
2340 # Prefer an explicitly selected file to automatically selected ones.
2341 ac_site_file1=NONE
2342 ac_site_file2=NONE
2343 if test -n "$CONFIG_SITE"; then
2344 # We do not want a PATH search for config.site.
2345 case $CONFIG_SITE in #((
2346 -*) ac_site_file1=./$CONFIG_SITE;;
2347 */*) ac_site_file1=$CONFIG_SITE;;
2348 *) ac_site_file1=./$CONFIG_SITE;;
2349 esac
2350 elif test "x$prefix" != xNONE; then
2351 ac_site_file1=$prefix/share/config.site
2352 ac_site_file2=$prefix/etc/config.site
2353 else
2354 ac_site_file1=$ac_default_prefix/share/config.site
2355 ac_site_file2=$ac_default_prefix/etc/config.site
2357 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2359 test "x$ac_site_file" = xNONE && continue
2360 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2362 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2363 sed 's/^/| /' "$ac_site_file" >&5
2364 . "$ac_site_file" \
2365 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367 as_fn_error $? "failed to load site script $ac_site_file
2368 See \`config.log' for more details" "$LINENO" 5; }
2370 done
2372 if test -r "$cache_file"; then
2373 # Some versions of bash will fail to source /dev/null (special files
2374 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2375 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2377 $as_echo "$as_me: loading cache $cache_file" >&6;}
2378 case $cache_file in
2379 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2380 *) . "./$cache_file";;
2381 esac
2383 else
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2385 $as_echo "$as_me: creating cache $cache_file" >&6;}
2386 >$cache_file
2389 # Check that the precious variables saved in the cache have kept the same
2390 # value.
2391 ac_cache_corrupted=false
2392 for ac_var in $ac_precious_vars; do
2393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394 eval ac_new_set=\$ac_env_${ac_var}_set
2395 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396 eval ac_new_val=\$ac_env_${ac_var}_value
2397 case $ac_old_set,$ac_new_set in
2398 set,)
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2401 ac_cache_corrupted=: ;;
2402 ,set)
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2405 ac_cache_corrupted=: ;;
2406 ,);;
2408 if test "x$ac_old_val" != "x$ac_new_val"; then
2409 # differences in whitespace do not lead to failure.
2410 ac_old_val_w=`echo x $ac_old_val`
2411 ac_new_val_w=`echo x $ac_new_val`
2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2414 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415 ac_cache_corrupted=:
2416 else
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2418 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419 eval $ac_var=\$ac_old_val
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2422 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2424 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2425 fi;;
2426 esac
2427 # Pass precious variables to config.status.
2428 if test "$ac_new_set" = set; then
2429 case $ac_new_val in
2430 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2431 *) ac_arg=$ac_var=$ac_new_val ;;
2432 esac
2433 case " $ac_configure_args " in
2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2435 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436 esac
2438 done
2439 if $ac_cache_corrupted; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2443 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2444 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2446 ## -------------------- ##
2447 ## Main body of script. ##
2448 ## -------------------- ##
2450 ac_ext=c
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458 ac_config_headers="$ac_config_headers include/config.h"
2460 ac_aux_dir=
2461 for ac_dir in tools "$srcdir"/tools; do
2462 if test -f "$ac_dir/install-sh"; then
2463 ac_aux_dir=$ac_dir
2464 ac_install_sh="$ac_aux_dir/install-sh -c"
2465 break
2466 elif test -f "$ac_dir/install.sh"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/install.sh -c"
2469 break
2470 elif test -f "$ac_dir/shtool"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/shtool install -c"
2473 break
2475 done
2476 if test -z "$ac_aux_dir"; then
2477 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2480 # These three variables are undocumented and unsupported,
2481 # and are intended to be withdrawn in a future Autoconf release.
2482 # They can cause serious problems if a builder's source tree is in a directory
2483 # whose full name contains unusual characters.
2484 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2485 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2486 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2492 # Check whether --enable-win16 was given.
2493 if test "${enable_win16+set}" = set; then :
2494 enableval=$enable_win16;
2497 # Check whether --enable-win64 was given.
2498 if test "${enable_win64+set}" = set; then :
2499 enableval=$enable_win64;
2502 # Check whether --enable-tests was given.
2503 if test "${enable_tests+set}" = set; then :
2504 enableval=$enable_tests;
2507 # Check whether --enable-maintainer-mode was given.
2508 if test "${enable_maintainer_mode+set}" = set; then :
2509 enableval=$enable_maintainer_mode;
2514 # Check whether --with-alsa was given.
2515 if test "${with_alsa+set}" = set; then :
2516 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2520 # Check whether --with-capi was given.
2521 if test "${with_capi+set}" = set; then :
2522 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2526 # Check whether --with-cms was given.
2527 if test "${with_cms+set}" = set; then :
2528 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2532 # Check whether --with-coreaudio was given.
2533 if test "${with_coreaudio+set}" = set; then :
2534 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2538 # Check whether --with-cups was given.
2539 if test "${with_cups+set}" = set; then :
2540 withval=$with_cups;
2544 # Check whether --with-curses was given.
2545 if test "${with_curses+set}" = set; then :
2546 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2550 # Check whether --with-fontconfig was given.
2551 if test "${with_fontconfig+set}" = set; then :
2552 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2556 # Check whether --with-freetype was given.
2557 if test "${with_freetype+set}" = set; then :
2558 withval=$with_freetype;
2562 # Check whether --with-gettextpo was given.
2563 if test "${with_gettextpo+set}" = set; then :
2564 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2568 # Check whether --with-gphoto was given.
2569 if test "${with_gphoto+set}" = set; then :
2570 withval=$with_gphoto;
2574 # Check whether --with-glu was given.
2575 if test "${with_glu+set}" = set; then :
2576 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2580 # Check whether --with-gnutls was given.
2581 if test "${with_gnutls+set}" = set; then :
2582 withval=$with_gnutls;
2586 # Check whether --with-gsm was given.
2587 if test "${with_gsm+set}" = set; then :
2588 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2592 # Check whether --with-gstreamer was given.
2593 if test "${with_gstreamer+set}" = set; then :
2594 withval=$with_gstreamer;
2598 # Check whether --with-hal was given.
2599 if test "${with_hal+set}" = set; then :
2600 withval=$with_hal;
2604 # Check whether --with-jpeg was given.
2605 if test "${with_jpeg+set}" = set; then :
2606 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2610 # Check whether --with-ldap was given.
2611 if test "${with_ldap+set}" = set; then :
2612 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2616 # Check whether --with-mpg123 was given.
2617 if test "${with_mpg123+set}" = set; then :
2618 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2622 # Check whether --with-openal was given.
2623 if test "${with_openal+set}" = set; then :
2624 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2628 # Check whether --with-opencl was given.
2629 if test "${with_opencl+set}" = set; then :
2630 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2634 # Check whether --with-opengl was given.
2635 if test "${with_opengl+set}" = set; then :
2636 withval=$with_opengl;
2640 # Check whether --with-openssl was given.
2641 if test "${with_openssl+set}" = set; then :
2642 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2646 # Check whether --with-oss was given.
2647 if test "${with_oss+set}" = set; then :
2648 withval=$with_oss;
2652 # Check whether --with-png was given.
2653 if test "${with_png+set}" = set; then :
2654 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2658 # Check whether --with-pthread was given.
2659 if test "${with_pthread+set}" = set; then :
2660 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2664 # Check whether --with-sane was given.
2665 if test "${with_sane+set}" = set; then :
2666 withval=$with_sane;
2670 # Check whether --with-tiff was given.
2671 if test "${with_tiff+set}" = set; then :
2672 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2676 # Check whether --with-v4l was given.
2677 if test "${with_v4l+set}" = set; then :
2678 withval=$with_v4l;
2682 # Check whether --with-xcomposite was given.
2683 if test "${with_xcomposite+set}" = set; then :
2684 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2688 # Check whether --with-xcursor was given.
2689 if test "${with_xcursor+set}" = set; then :
2690 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2694 # Check whether --with-xinerama was given.
2695 if test "${with_xinerama+set}" = set; then :
2696 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2700 # Check whether --with-xinput was given.
2701 if test "${with_xinput+set}" = set; then :
2702 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2706 # Check whether --with-xinput2 was given.
2707 if test "${with_xinput2+set}" = set; then :
2708 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2712 # Check whether --with-xml was given.
2713 if test "${with_xml+set}" = set; then :
2714 withval=$with_xml;
2718 # Check whether --with-xrandr was given.
2719 if test "${with_xrandr+set}" = set; then :
2720 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2724 # Check whether --with-xrender was given.
2725 if test "${with_xrender+set}" = set; then :
2726 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2730 # Check whether --with-xshape was given.
2731 if test "${with_xshape+set}" = set; then :
2732 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2736 # Check whether --with-xshm was given.
2737 if test "${with_xshm+set}" = set; then :
2738 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2742 # Check whether --with-xslt was given.
2743 if test "${with_xslt+set}" = set; then :
2744 withval=$with_xslt;
2748 # Check whether --with-xxf86vm was given.
2749 if test "${with_xxf86vm+set}" = set; then :
2750 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
2754 # Check whether --with-zlib was given.
2755 if test "${with_zlib+set}" = set; then :
2756 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2761 # Check whether --with-wine-tools was given.
2762 if test "${with_wine_tools+set}" = set; then :
2763 withval=$with_wine_tools;
2767 # Check whether --with-wine64 was given.
2768 if test "${with_wine64+set}" = set; then :
2769 withval=$with_wine64;
2773 # Make sure we can run config.sub.
2774 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2775 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2778 $as_echo_n "checking build system type... " >&6; }
2779 if ${ac_cv_build+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 ac_build_alias=$build_alias
2783 test "x$ac_build_alias" = x &&
2784 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2785 test "x$ac_build_alias" = x &&
2786 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2787 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2792 $as_echo "$ac_cv_build" >&6; }
2793 case $ac_cv_build in
2794 *-*-*) ;;
2795 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2796 esac
2797 build=$ac_cv_build
2798 ac_save_IFS=$IFS; IFS='-'
2799 set x $ac_cv_build
2800 shift
2801 build_cpu=$1
2802 build_vendor=$2
2803 shift; shift
2804 # Remember, the first character of IFS is used to create $*,
2805 # except with old shells:
2806 build_os=$*
2807 IFS=$ac_save_IFS
2808 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2812 $as_echo_n "checking host system type... " >&6; }
2813 if ${ac_cv_host+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 if test "x$host_alias" = x; then
2817 ac_cv_host=$ac_cv_build
2818 else
2819 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2820 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2825 $as_echo "$ac_cv_host" >&6; }
2826 case $ac_cv_host in
2827 *-*-*) ;;
2828 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2829 esac
2830 host=$ac_cv_host
2831 ac_save_IFS=$IFS; IFS='-'
2832 set x $ac_cv_host
2833 shift
2834 host_cpu=$1
2835 host_vendor=$2
2836 shift; shift
2837 # Remember, the first character of IFS is used to create $*,
2838 # except with old shells:
2839 host_os=$*
2840 IFS=$ac_save_IFS
2841 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2845 case "$srcdir" in
2846 .) ;;
2847 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2848 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2849 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2850 fi ;;
2851 esac
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2855 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2856 set x ${MAKE-make}
2857 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2858 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 cat >conftest.make <<\_ACEOF
2862 SHELL = /bin/sh
2863 all:
2864 @echo '@@@%%%=$(MAKE)=@@@%%%'
2865 _ACEOF
2866 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2867 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2868 *@@@%%%=?*=@@@%%%*)
2869 eval ac_cv_prog_make_${ac_make}_set=yes;;
2871 eval ac_cv_prog_make_${ac_make}_set=no;;
2872 esac
2873 rm -f conftest.make
2875 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2877 $as_echo "yes" >&6; }
2878 SET_MAKE=
2879 else
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 SET_MAKE="MAKE=${MAKE-make}"
2885 ac_ext=c
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890 if test -n "$ac_tool_prefix"; then
2891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2892 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if ${ac_cv_prog_CC+:} false; then :
2896 $as_echo_n "(cached) " >&6
2897 else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 break 2
2912 done
2913 done
2914 IFS=$as_save_IFS
2918 CC=$ac_cv_prog_CC
2919 if test -n "$CC"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921 $as_echo "$CC" >&6; }
2922 else
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2929 if test -z "$ac_cv_prog_CC"; then
2930 ac_ct_CC=$CC
2931 # Extract the first word of "gcc", so it can be a program name with args.
2932 set dummy gcc; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 if test -n "$ac_ct_CC"; then
2939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_ac_ct_CC="gcc"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2952 done
2953 done
2954 IFS=$as_save_IFS
2958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959 if test -n "$ac_ct_CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2961 $as_echo "$ac_ct_CC" >&6; }
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2967 if test "x$ac_ct_CC" = x; then
2968 CC=""
2969 else
2970 case $cross_compiling:$ac_tool_warned in
2971 yes:)
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2974 ac_tool_warned=yes ;;
2975 esac
2976 CC=$ac_ct_CC
2978 else
2979 CC="$ac_cv_prog_CC"
2982 if test -z "$CC"; then
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2985 set dummy ${ac_tool_prefix}cc; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_CC+:} false; then :
2989 $as_echo_n "(cached) " >&6
2990 else
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001 ac_cv_prog_CC="${ac_tool_prefix}cc"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3005 done
3006 done
3007 IFS=$as_save_IFS
3011 CC=$ac_cv_prog_CC
3012 if test -n "$CC"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014 $as_echo "$CC" >&6; }
3015 else
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3023 if test -z "$CC"; then
3024 # Extract the first word of "cc", so it can be a program name with args.
3025 set dummy cc; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_CC+:} false; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034 ac_prog_rejected=no
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3043 ac_prog_rejected=yes
3044 continue
3046 ac_cv_prog_CC="cc"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3050 done
3051 done
3052 IFS=$as_save_IFS
3054 if test $ac_prog_rejected = yes; then
3055 # We found a bogon in the path, so make sure we never use it.
3056 set dummy $ac_cv_prog_CC
3057 shift
3058 if test $# != 0; then
3059 # We chose a different compiler from the bogus one.
3060 # However, it has the same basename, so the bogon will be chosen
3061 # first if we set CC to just the basename; use the full file name.
3062 shift
3063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3068 CC=$ac_cv_prog_CC
3069 if test -n "$CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3079 if test -z "$CC"; then
3080 if test -n "$ac_tool_prefix"; then
3081 for ac_prog in cl.exe
3083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if ${ac_cv_prog_CC+:} false; then :
3088 $as_echo_n "(cached) " >&6
3089 else
3090 if test -n "$CC"; then
3091 ac_cv_prog_CC="$CC" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3104 done
3105 done
3106 IFS=$as_save_IFS
3110 CC=$ac_cv_prog_CC
3111 if test -n "$CC"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113 $as_echo "$CC" >&6; }
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3120 test -n "$CC" && break
3121 done
3123 if test -z "$CC"; then
3124 ac_ct_CC=$CC
3125 for ac_prog in cl.exe
3127 # Extract the first word of "$ac_prog", so it can be a program name with args.
3128 set dummy $ac_prog; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test -n "$ac_ct_CC"; then
3135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144 ac_cv_prog_ac_ct_CC="$ac_prog"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3148 done
3149 done
3150 IFS=$as_save_IFS
3154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155 if test -n "$ac_ct_CC"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3157 $as_echo "$ac_ct_CC" >&6; }
3158 else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3164 test -n "$ac_ct_CC" && break
3165 done
3167 if test "x$ac_ct_CC" = x; then
3168 CC=""
3169 else
3170 case $cross_compiling:$ac_tool_warned in
3171 yes:)
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174 ac_tool_warned=yes ;;
3175 esac
3176 CC=$ac_ct_CC
3183 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 as_fn_error $? "no acceptable C compiler found in \$PATH
3186 See \`config.log' for more details" "$LINENO" 5; }
3188 # Provide some information about the compiler.
3189 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3190 set X $ac_compile
3191 ac_compiler=$2
3192 for ac_option in --version -v -V -qversion; do
3193 { { ac_try="$ac_compiler $ac_option >&5"
3194 case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 $as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3201 ac_status=$?
3202 if test -s conftest.err; then
3203 sed '10a\
3204 ... rest of stderr output deleted ...
3205 10q' conftest.err >conftest.er1
3206 cat conftest.er1 >&5
3208 rm -f conftest.er1 conftest.err
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }
3211 done
3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h. */
3217 main ()
3221 return 0;
3223 _ACEOF
3224 ac_clean_files_save=$ac_clean_files
3225 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3226 # Try to create an executable without -o first, disregard a.out.
3227 # It will help us diagnose broken compilers, and finding out an intuition
3228 # of exeext.
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3230 $as_echo_n "checking whether the C compiler works... " >&6; }
3231 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3233 # The possible output files:
3234 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3236 ac_rmfiles=
3237 for ac_file in $ac_files
3239 case $ac_file in
3240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242 esac
3243 done
3244 rm -f $ac_rmfiles
3246 if { { ac_try="$ac_link_default"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 $as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_link_default") 2>&5
3254 ac_status=$?
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; then :
3257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3258 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3259 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3260 # so that the user can short-circuit this test for compilers unknown to
3261 # Autoconf.
3262 for ac_file in $ac_files ''
3264 test -f "$ac_file" || continue
3265 case $ac_file in
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3268 [ab].out )
3269 # We found the default executable, but exeext='' is most
3270 # certainly right.
3271 break;;
3272 *.* )
3273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3274 then :; else
3275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3277 # We set ac_cv_exeext here because the later test for it is not
3278 # safe: cross compilers may not add the suffix if given an `-o'
3279 # argument, so we may need to know it at that point already.
3280 # Even if this section looks crufty: it has the advantage of
3281 # actually working.
3282 break;;
3284 break;;
3285 esac
3286 done
3287 test "$ac_cv_exeext" = no && ac_cv_exeext=
3289 else
3290 ac_file=''
3292 if test -z "$ac_file"; then :
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 $as_echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error 77 "C compiler cannot create executables
3301 See \`config.log' for more details" "$LINENO" 5; }
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304 $as_echo "yes" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3307 $as_echo_n "checking for C compiler default output file name... " >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3309 $as_echo "$ac_file" >&6; }
3310 ac_exeext=$ac_cv_exeext
3312 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3313 ac_clean_files=$ac_clean_files_save
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3315 $as_echo_n "checking for suffix of executables... " >&6; }
3316 if { { ac_try="$ac_link"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_link") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3328 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3329 # work properly (i.e., refer to `conftest.exe'), while it won't with
3330 # `rm'.
3331 for ac_file in conftest.exe conftest conftest.*; do
3332 test -f "$ac_file" || continue
3333 case $ac_file in
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3335 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 break;;
3337 * ) break;;
3338 esac
3339 done
3340 else
3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3344 See \`config.log' for more details" "$LINENO" 5; }
3346 rm -f conftest conftest$ac_cv_exeext
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3348 $as_echo "$ac_cv_exeext" >&6; }
3350 rm -f conftest.$ac_ext
3351 EXEEXT=$ac_cv_exeext
3352 ac_exeext=$EXEEXT
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3355 #include <stdio.h>
3357 main ()
3359 FILE *f = fopen ("conftest.out", "w");
3360 return ferror (f) || fclose (f) != 0;
3363 return 0;
3365 _ACEOF
3366 ac_clean_files="$ac_clean_files conftest.out"
3367 # Check that the compiler produces executables we can run. If not, either
3368 # the compiler is broken, or we cross compile.
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3370 $as_echo_n "checking whether we are cross compiling... " >&6; }
3371 if test "$cross_compiling" != yes; then
3372 { { ac_try="$ac_link"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }
3383 if { ac_try='./conftest$ac_cv_exeext'
3384 { { case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; }; then
3394 cross_compiling=no
3395 else
3396 if test "$cross_compiling" = maybe; then
3397 cross_compiling=yes
3398 else
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 as_fn_error $? "cannot run C compiled programs.
3402 If you meant to cross compile, use \`--host'.
3403 See \`config.log' for more details" "$LINENO" 5; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3408 $as_echo "$cross_compiling" >&6; }
3410 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3411 ac_clean_files=$ac_clean_files_save
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3413 $as_echo_n "checking for suffix of object files... " >&6; }
3414 if ${ac_cv_objext+:} false; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3421 main ()
3425 return 0;
3427 _ACEOF
3428 rm -f conftest.o conftest.obj
3429 if { { ac_try="$ac_compile"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_compile") 2>&5
3437 ac_status=$?
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
3440 for ac_file in conftest.o conftest.obj conftest.*; do
3441 test -f "$ac_file" || continue;
3442 case $ac_file in
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3445 break;;
3446 esac
3447 done
3448 else
3449 $as_echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error $? "cannot compute suffix of object files: cannot compile
3455 See \`config.log' for more details" "$LINENO" 5; }
3457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3460 $as_echo "$ac_cv_objext" >&6; }
3461 OBJEXT=$ac_cv_objext
3462 ac_objext=$OBJEXT
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3464 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3465 if ${ac_cv_c_compiler_gnu+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3472 main ()
3474 #ifndef __GNUC__
3475 choke me
3476 #endif
3479 return 0;
3481 _ACEOF
3482 if ac_fn_c_try_compile "$LINENO"; then :
3483 ac_compiler_gnu=yes
3484 else
3485 ac_compiler_gnu=no
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3492 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3493 if test $ac_compiler_gnu = yes; then
3494 GCC=yes
3495 else
3496 GCC=
3498 ac_test_CFLAGS=${CFLAGS+set}
3499 ac_save_CFLAGS=$CFLAGS
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3501 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3502 if ${ac_cv_prog_cc_g+:} false; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 ac_save_c_werror_flag=$ac_c_werror_flag
3506 ac_c_werror_flag=yes
3507 ac_cv_prog_cc_g=no
3508 CFLAGS="-g"
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3513 main ()
3517 return 0;
3519 _ACEOF
3520 if ac_fn_c_try_compile "$LINENO"; then :
3521 ac_cv_prog_cc_g=yes
3522 else
3523 CFLAGS=""
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3528 main ()
3532 return 0;
3534 _ACEOF
3535 if ac_fn_c_try_compile "$LINENO"; then :
3537 else
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3539 CFLAGS="-g"
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3544 main ()
3548 return 0;
3550 _ACEOF
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552 ac_cv_prog_cc_g=yes
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 ac_c_werror_flag=$ac_save_c_werror_flag
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3562 $as_echo "$ac_cv_prog_cc_g" >&6; }
3563 if test "$ac_test_CFLAGS" = set; then
3564 CFLAGS=$ac_save_CFLAGS
3565 elif test $ac_cv_prog_cc_g = yes; then
3566 if test "$GCC" = yes; then
3567 CFLAGS="-g -O2"
3568 else
3569 CFLAGS="-g"
3571 else
3572 if test "$GCC" = yes; then
3573 CFLAGS="-O2"
3574 else
3575 CFLAGS=
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3579 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3580 if ${ac_cv_prog_cc_c89+:} false; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 ac_cv_prog_cc_c89=no
3584 ac_save_CC=$CC
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587 #include <stdarg.h>
3588 #include <stdio.h>
3589 #include <sys/types.h>
3590 #include <sys/stat.h>
3591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3592 struct buf { int x; };
3593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3594 static char *e (p, i)
3595 char **p;
3596 int i;
3598 return p[i];
3600 static char *f (char * (*g) (char **, int), char **p, ...)
3602 char *s;
3603 va_list v;
3604 va_start (v,p);
3605 s = g (p, va_arg (v,int));
3606 va_end (v);
3607 return s;
3610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3611 function prototypes and stuff, but not '\xHH' hex character constants.
3612 These don't provoke an error unfortunately, instead are silently treated
3613 as 'x'. The following induces an error, until -std is added to get
3614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3615 array size at least. It's necessary to write '\x00'==0 to get something
3616 that's true only with -std. */
3617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3619 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3620 inside strings and character constants. */
3621 #define FOO(x) 'x'
3622 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3624 int test (int i, double x);
3625 struct s1 {int (*f) (int a);};
3626 struct s2 {int (*f) (double a);};
3627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628 int argc;
3629 char **argv;
3631 main ()
3633 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3635 return 0;
3637 _ACEOF
3638 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3639 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3641 CC="$ac_save_CC $ac_arg"
3642 if ac_fn_c_try_compile "$LINENO"; then :
3643 ac_cv_prog_cc_c89=$ac_arg
3645 rm -f core conftest.err conftest.$ac_objext
3646 test "x$ac_cv_prog_cc_c89" != "xno" && break
3647 done
3648 rm -f conftest.$ac_ext
3649 CC=$ac_save_CC
3652 # AC_CACHE_VAL
3653 case "x$ac_cv_prog_cc_c89" in
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3656 $as_echo "none needed" >&6; } ;;
3657 xno)
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3659 $as_echo "unsupported" >&6; } ;;
3661 CC="$CC $ac_cv_prog_cc_c89"
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3663 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3664 esac
3665 if test "x$ac_cv_prog_cc_c89" != xno; then :
3669 ac_ext=c
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675 ac_ext=cpp
3676 ac_cpp='$CXXCPP $CPPFLAGS'
3677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3680 if test -z "$CXX"; then
3681 if test -n "$CCC"; then
3682 CXX=$CCC
3683 else
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if ${ac_cv_prog_CXX+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 if test -n "$CXX"; then
3695 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3708 done
3709 done
3710 IFS=$as_save_IFS
3714 CXX=$ac_cv_prog_CXX
3715 if test -n "$CXX"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3717 $as_echo "$CXX" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3724 test -n "$CXX" && break
3725 done
3727 if test -z "$CXX"; then
3728 ac_ct_CXX=$CXX
3729 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -n "$ac_ct_CXX"; then
3739 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CXX="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3752 done
3753 done
3754 IFS=$as_save_IFS
3758 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3759 if test -n "$ac_ct_CXX"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3761 $as_echo "$ac_ct_CXX" >&6; }
3762 else
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$ac_ct_CXX" && break
3769 done
3771 if test "x$ac_ct_CXX" = x; then
3772 CXX="g++"
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3779 esac
3780 CXX=$ac_ct_CXX
3786 # Provide some information about the compiler.
3787 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3788 set X $ac_compile
3789 ac_compiler=$2
3790 for ac_option in --version -v -V -qversion; do
3791 { { ac_try="$ac_compiler $ac_option >&5"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3799 ac_status=$?
3800 if test -s conftest.err; then
3801 sed '10a\
3802 ... rest of stderr output deleted ...
3803 10q' conftest.err >conftest.er1
3804 cat conftest.er1 >&5
3806 rm -f conftest.er1 conftest.err
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }
3809 done
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3812 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3813 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3820 main ()
3822 #ifndef __GNUC__
3823 choke me
3824 #endif
3827 return 0;
3829 _ACEOF
3830 if ac_fn_cxx_try_compile "$LINENO"; then :
3831 ac_compiler_gnu=yes
3832 else
3833 ac_compiler_gnu=no
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3840 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3841 if test $ac_compiler_gnu = yes; then
3842 GXX=yes
3843 else
3844 GXX=
3846 ac_test_CXXFLAGS=${CXXFLAGS+set}
3847 ac_save_CXXFLAGS=$CXXFLAGS
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3849 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3850 if ${ac_cv_prog_cxx_g+:} false; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3854 ac_cxx_werror_flag=yes
3855 ac_cv_prog_cxx_g=no
3856 CXXFLAGS="-g"
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3861 main ()
3865 return 0;
3867 _ACEOF
3868 if ac_fn_cxx_try_compile "$LINENO"; then :
3869 ac_cv_prog_cxx_g=yes
3870 else
3871 CXXFLAGS=""
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3876 main ()
3880 return 0;
3882 _ACEOF
3883 if ac_fn_cxx_try_compile "$LINENO"; then :
3885 else
3886 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3887 CXXFLAGS="-g"
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3892 main ()
3896 return 0;
3898 _ACEOF
3899 if ac_fn_cxx_try_compile "$LINENO"; then :
3900 ac_cv_prog_cxx_g=yes
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3910 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3911 if test "$ac_test_CXXFLAGS" = set; then
3912 CXXFLAGS=$ac_save_CXXFLAGS
3913 elif test $ac_cv_prog_cxx_g = yes; then
3914 if test "$GXX" = yes; then
3915 CXXFLAGS="-g -O2"
3916 else
3917 CXXFLAGS="-g"
3919 else
3920 if test "$GXX" = yes; then
3921 CXXFLAGS="-O2"
3922 else
3923 CXXFLAGS=
3926 ac_ext=c
3927 ac_cpp='$CPP $CPPFLAGS'
3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932 if test -n "$ac_tool_prefix"; then
3933 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3934 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if ${ac_cv_prog_CPPBIN+:} false; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3940 if test -n "$CPPBIN"; then
3941 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3950 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 break 2
3954 done
3955 done
3956 IFS=$as_save_IFS
3960 CPPBIN=$ac_cv_prog_CPPBIN
3961 if test -n "$CPPBIN"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3963 $as_echo "$CPPBIN" >&6; }
3964 else
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3971 if test -z "$ac_cv_prog_CPPBIN"; then
3972 ac_ct_CPPBIN=$CPPBIN
3973 # Extract the first word of "cpp", so it can be a program name with args.
3974 set dummy cpp; ac_word=$2
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 $as_echo_n "checking for $ac_word... " >&6; }
3977 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 if test -n "$ac_ct_CPPBIN"; then
3981 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3990 ac_cv_prog_ac_ct_CPPBIN="cpp"
3991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 break 2
3994 done
3995 done
3996 IFS=$as_save_IFS
4000 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4001 if test -n "$ac_ct_CPPBIN"; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4003 $as_echo "$ac_ct_CPPBIN" >&6; }
4004 else
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 $as_echo "no" >&6; }
4009 if test "x$ac_ct_CPPBIN" = x; then
4010 CPPBIN="cpp"
4011 else
4012 case $cross_compiling:$ac_tool_warned in
4013 yes:)
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4016 ac_tool_warned=yes ;;
4017 esac
4018 CPPBIN=$ac_ct_CPPBIN
4020 else
4021 CPPBIN="$ac_cv_prog_CPPBIN"
4025 cat >>confdefs.h <<_ACEOF
4026 #define EXEEXT "$ac_exeext"
4027 _ACEOF
4030 case $host in
4031 *-darwin*)
4032 if test "x$enable_win64" = "xyes"
4033 then
4034 CC="$CC -m64"
4035 CXX="$CXX -m64"
4036 LD="${LD:-ld} -arch x86_64"
4037 AS="${AS:-as} -arch x86_64"
4038 host_cpu="x86_64"
4039 notice_platform="64-bit "
4040 TARGETFLAGS="-m64"
4042 else
4043 CC="$CC -m32"
4044 CXX="$CXX -m32"
4045 LD="${LD:-ld} -arch i386"
4046 AS="${AS:-as} -arch i386"
4047 host_cpu="i386"
4048 notice_platform="32-bit "
4049 TARGETFLAGS="-m32"
4051 enable_win16=${enable_win16:-yes}
4054 x86_64*)
4055 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4056 then
4057 CC="$CC -m32"
4058 CXX="$CXX -m32"
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4060 $as_echo_n "checking whether $CC works... " >&6; }
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4066 main ()
4070 return 0;
4072 _ACEOF
4073 if ac_fn_c_try_link "$LINENO"; then :
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4075 $as_echo "yes" >&6; }
4076 else
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 $as_echo "no" >&6; }
4079 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4081 rm -f core conftest.err conftest.$ac_objext \
4082 conftest$ac_exeext conftest.$ac_ext
4083 LD="${LD:-ld} -m elf_i386"
4084 AS="${AS:-as} --32"
4085 host_cpu="i386"
4086 notice_platform="32-bit "
4087 TARGETFLAGS="-m32"
4089 enable_win16=${enable_win16:-yes}
4090 else
4091 if test "x${GCC}" = "xyes"
4092 then
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4094 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4097 #include <stdarg.h>
4099 main ()
4101 void func(__builtin_ms_va_list *args);
4103 return 0;
4105 _ACEOF
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4108 $as_echo "yes" >&6; }
4109 else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4112 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 TARGETFLAGS="-m64"
4120 *-mingw32*|*-cygwin*)
4121 enable_win16=${enable_win16:-no}
4122 CFLAGS="$CFLAGS -D_WIN32"
4124 i[3456789]86*)
4125 enable_win16=${enable_win16:-yes}
4127 esac
4129 enable_win16=${enable_win16:-no}
4130 enable_win64=${enable_win64:-no}
4132 enable_winetest=${enable_winetest:-$enable_tests}
4134 if test -n "$with_wine64"
4135 then
4136 if test "x$enable_win64" = "xyes"
4137 then
4138 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4139 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4141 WOW64_DISABLE=\#
4143 enable_fonts=${enable_fonts:-no}
4144 enable_server=${enable_server:-no}
4145 enable_tools=${enable_tools:-no}
4146 elif test "x$enable_win64" = "xyes"
4147 then
4148 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4152 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4153 if ${wine_cv_toolsdir+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 wine_cv_toolsdir="$with_wine_tools"
4157 if test -z "$with_wine_tools"; then
4158 if test "$cross_compiling" = "yes"; then
4159 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4160 elif test -n "$with_wine64"; then
4161 wine_cv_toolsdir="$with_wine64"
4164 if test -z "$wine_cv_toolsdir"; then
4165 wine_cv_toolsdir="\$(top_builddir)"
4166 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4167 case "$wine_cv_toolsdir" in
4168 /*) ;;
4169 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4170 esac
4171 else
4172 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4176 $as_echo "$wine_cv_toolsdir" >&6; }
4177 TOOLSDIR=$wine_cv_toolsdir
4179 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4180 then
4181 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4185 for ac_prog in flex
4187 # Extract the first word of "$ac_prog", so it can be a program name with args.
4188 set dummy $ac_prog; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_FLEX+:} false; then :
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if test -n "$FLEX"; then
4195 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204 ac_cv_prog_FLEX="$ac_prog"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4208 done
4209 done
4210 IFS=$as_save_IFS
4214 FLEX=$ac_cv_prog_FLEX
4215 if test -n "$FLEX"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4217 $as_echo "$FLEX" >&6; }
4218 else
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4224 test -n "$FLEX" && break
4225 done
4226 test -n "$FLEX" || FLEX="none"
4228 if test "$FLEX" = "none"
4229 then
4230 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4233 $as_echo_n "checking whether flex is recent enough... " >&6; }
4234 cat >conftest.l <<EOF
4235 %top{
4236 #include "prediluvian.h"
4240 if $FLEX -t conftest.l >/dev/null 2>&5
4241 then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4243 $as_echo "yes" >&6; }
4244 else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4247 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4250 for ac_prog in bison
4252 # Extract the first word of "$ac_prog", so it can be a program name with args.
4253 set dummy $ac_prog; ac_word=$2
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 $as_echo_n "checking for $ac_word... " >&6; }
4256 if ${ac_cv_prog_BISON+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 if test -n "$BISON"; then
4260 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4269 ac_cv_prog_BISON="$ac_prog"
4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4273 done
4274 done
4275 IFS=$as_save_IFS
4279 BISON=$ac_cv_prog_BISON
4280 if test -n "$BISON"; then
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4282 $as_echo "$BISON" >&6; }
4283 else
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4289 test -n "$BISON" && break
4290 done
4291 test -n "$BISON" || BISON="none"
4293 if test "$BISON" = "none"
4294 then
4295 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4298 if test -n "$ac_tool_prefix"; then
4299 for ac_prog in ar gar
4301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 $as_echo_n "checking for $ac_word... " >&6; }
4305 if ${ac_cv_prog_AR+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if test -n "$AR"; then
4309 ac_cv_prog_AR="$AR" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4322 done
4323 done
4324 IFS=$as_save_IFS
4328 AR=$ac_cv_prog_AR
4329 if test -n "$AR"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4331 $as_echo "$AR" >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4338 test -n "$AR" && break
4339 done
4341 if test -z "$AR"; then
4342 ac_ct_AR=$AR
4343 for ac_prog in ar gar
4345 # Extract the first word of "$ac_prog", so it can be a program name with args.
4346 set dummy $ac_prog; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 if test -n "$ac_ct_AR"; then
4353 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_ac_ct_AR="$ac_prog"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4366 done
4367 done
4368 IFS=$as_save_IFS
4372 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4373 if test -n "$ac_ct_AR"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4375 $as_echo "$ac_ct_AR" >&6; }
4376 else
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4382 test -n "$ac_ct_AR" && break
4383 done
4385 if test "x$ac_ct_AR" = x; then
4386 AR="ar"
4387 else
4388 case $cross_compiling:$ac_tool_warned in
4389 yes:)
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4392 ac_tool_warned=yes ;;
4393 esac
4394 AR=$ac_ct_AR
4398 ARFLAGS=rc
4400 if test -n "$ac_tool_prefix"; then
4401 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4402 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if ${ac_cv_prog_RANLIB+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 if test -n "$RANLIB"; then
4409 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4422 done
4423 done
4424 IFS=$as_save_IFS
4428 RANLIB=$ac_cv_prog_RANLIB
4429 if test -n "$RANLIB"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4431 $as_echo "$RANLIB" >&6; }
4432 else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4439 if test -z "$ac_cv_prog_RANLIB"; then
4440 ac_ct_RANLIB=$RANLIB
4441 # Extract the first word of "ranlib", so it can be a program name with args.
4442 set dummy ranlib; ac_word=$2
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4444 $as_echo_n "checking for $ac_word... " >&6; }
4445 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 if test -n "$ac_ct_RANLIB"; then
4449 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4450 else
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 ac_cv_prog_ac_ct_RANLIB="ranlib"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4462 done
4463 done
4464 IFS=$as_save_IFS
4468 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4469 if test -n "$ac_ct_RANLIB"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4471 $as_echo "$ac_ct_RANLIB" >&6; }
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4477 if test "x$ac_ct_RANLIB" = x; then
4478 RANLIB=":"
4479 else
4480 case $cross_compiling:$ac_tool_warned in
4481 yes:)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484 ac_tool_warned=yes ;;
4485 esac
4486 RANLIB=$ac_ct_RANLIB
4488 else
4489 RANLIB="$ac_cv_prog_RANLIB"
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4493 $as_echo_n "checking whether ln -s works... " >&6; }
4494 LN_S=$as_ln_s
4495 if test "$LN_S" = "ln -s"; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497 $as_echo "yes" >&6; }
4498 else
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4500 $as_echo "no, using $LN_S" >&6; }
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4504 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4505 if ${ac_cv_path_GREP+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 if test -z "$GREP"; then
4509 ac_path_GREP_found=false
4510 # Loop through the user's path and test for each of PROGNAME-LIST
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_prog in grep ggrep; do
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4519 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4520 # Check for GNU ac_path_GREP and select it if it is found.
4521 # Check for GNU $ac_path_GREP
4522 case `"$ac_path_GREP" --version 2>&1` in
4523 *GNU*)
4524 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4526 ac_count=0
4527 $as_echo_n 0123456789 >"conftest.in"
4528 while :
4530 cat "conftest.in" "conftest.in" >"conftest.tmp"
4531 mv "conftest.tmp" "conftest.in"
4532 cp "conftest.in" "conftest.nl"
4533 $as_echo 'GREP' >> "conftest.nl"
4534 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4536 as_fn_arith $ac_count + 1 && ac_count=$as_val
4537 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4538 # Best one so far, save it but keep looking for a better one
4539 ac_cv_path_GREP="$ac_path_GREP"
4540 ac_path_GREP_max=$ac_count
4542 # 10*(2^10) chars as input seems more than enough
4543 test $ac_count -gt 10 && break
4544 done
4545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4546 esac
4548 $ac_path_GREP_found && break 3
4549 done
4550 done
4551 done
4552 IFS=$as_save_IFS
4553 if test -z "$ac_cv_path_GREP"; then
4554 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4556 else
4557 ac_cv_path_GREP=$GREP
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4562 $as_echo "$ac_cv_path_GREP" >&6; }
4563 GREP="$ac_cv_path_GREP"
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4567 $as_echo_n "checking for egrep... " >&6; }
4568 if ${ac_cv_path_EGREP+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4572 then ac_cv_path_EGREP="$GREP -E"
4573 else
4574 if test -z "$EGREP"; then
4575 ac_path_EGREP_found=false
4576 # Loop through the user's path and test for each of PROGNAME-LIST
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_prog in egrep; do
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4585 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4586 # Check for GNU ac_path_EGREP and select it if it is found.
4587 # Check for GNU $ac_path_EGREP
4588 case `"$ac_path_EGREP" --version 2>&1` in
4589 *GNU*)
4590 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4592 ac_count=0
4593 $as_echo_n 0123456789 >"conftest.in"
4594 while :
4596 cat "conftest.in" "conftest.in" >"conftest.tmp"
4597 mv "conftest.tmp" "conftest.in"
4598 cp "conftest.in" "conftest.nl"
4599 $as_echo 'EGREP' >> "conftest.nl"
4600 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4602 as_fn_arith $ac_count + 1 && ac_count=$as_val
4603 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4604 # Best one so far, save it but keep looking for a better one
4605 ac_cv_path_EGREP="$ac_path_EGREP"
4606 ac_path_EGREP_max=$ac_count
4608 # 10*(2^10) chars as input seems more than enough
4609 test $ac_count -gt 10 && break
4610 done
4611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4612 esac
4614 $ac_path_EGREP_found && break 3
4615 done
4616 done
4617 done
4618 IFS=$as_save_IFS
4619 if test -z "$ac_cv_path_EGREP"; then
4620 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4622 else
4623 ac_cv_path_EGREP=$EGREP
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4629 $as_echo "$ac_cv_path_EGREP" >&6; }
4630 EGREP="$ac_cv_path_EGREP"
4633 # Extract the first word of "ldconfig", so it can be a program name with args.
4634 set dummy ldconfig; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if ${ac_cv_path_LDCONFIG+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 case $LDCONFIG in
4641 [\\/]* | ?:[\\/]*)
4642 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in /sbin /usr/sbin $PATH
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4656 done
4657 done
4658 IFS=$as_save_IFS
4660 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4662 esac
4664 LDCONFIG=$ac_cv_path_LDCONFIG
4665 if test -n "$LDCONFIG"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4667 $as_echo "$LDCONFIG" >&6; }
4668 else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4674 # Find a good install program. We prefer a C program (faster),
4675 # so one script is as good as another. But avoid the broken or
4676 # incompatible versions:
4677 # SysV /etc/install, /usr/sbin/install
4678 # SunOS /usr/etc/install
4679 # IRIX /sbin/install
4680 # AIX /bin/install
4681 # AmigaOS /C/install, which installs bootblocks on floppy discs
4682 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4683 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4684 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4685 # OS/2's system install, which has a completely different semantic
4686 # ./install, which can be erroneously created by make from ./install.sh.
4687 # Reject install programs that cannot install multiple files.
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4689 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4690 if test -z "$INSTALL"; then
4691 if ${ac_cv_path_install+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 # Account for people who put trailing slashes in PATH elements.
4700 case $as_dir/ in #((
4701 ./ | .// | /[cC]/* | \
4702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4704 /usr/ucb/* ) ;;
4706 # OSF1 and SCO ODT 3.0 have their own names for install.
4707 # Don't use installbsd from OSF since it installs stuff as root
4708 # by default.
4709 for ac_prog in ginstall scoinst install; do
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4712 if test $ac_prog = install &&
4713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4714 # AIX install. It has an incompatible calling convention.
4716 elif test $ac_prog = install &&
4717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4718 # program-specific install script used by HP pwplus--don't use.
4720 else
4721 rm -rf conftest.one conftest.two conftest.dir
4722 echo one > conftest.one
4723 echo two > conftest.two
4724 mkdir conftest.dir
4725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4726 test -s conftest.one && test -s conftest.two &&
4727 test -s conftest.dir/conftest.one &&
4728 test -s conftest.dir/conftest.two
4729 then
4730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4731 break 3
4735 done
4736 done
4738 esac
4740 done
4741 IFS=$as_save_IFS
4743 rm -rf conftest.one conftest.two conftest.dir
4746 if test "${ac_cv_path_install+set}" = set; then
4747 INSTALL=$ac_cv_path_install
4748 else
4749 # As a last resort, use the slow shell script. Don't cache a
4750 # value for INSTALL within a source directory, because that will
4751 # break other packages using the cache if that directory is
4752 # removed, or if the value is a relative name.
4753 INSTALL=$ac_install_sh
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4757 $as_echo "$INSTALL" >&6; }
4759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4760 # It thinks the first close brace ends the variable substitution.
4761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4767 case "$INSTALL" in
4768 [\\/$]* | ?:[\\/]* ) ;;
4769 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4770 esac
4772 for ac_prog in lclint lint
4774 # Extract the first word of "$ac_prog", so it can be a program name with args.
4775 set dummy $ac_prog; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if ${ac_cv_prog_LINT+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$LINT"; then
4782 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_LINT="$ac_prog"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4795 done
4796 done
4797 IFS=$as_save_IFS
4801 LINT=$ac_cv_prog_LINT
4802 if test -n "$LINT"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4804 $as_echo "$LINT" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4811 test -n "$LINT" && break
4812 done
4814 if test "$LINT" = "lint"
4815 then
4816 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4821 for ac_prog in fontforge
4823 # Extract the first word of "$ac_prog", so it can be a program name with args.
4824 set dummy $ac_prog; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if ${ac_cv_prog_FONTFORGE+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 if test -n "$FONTFORGE"; then
4831 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4832 else
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_prog_FONTFORGE="$ac_prog"
4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 break 2
4844 done
4845 done
4846 IFS=$as_save_IFS
4850 FONTFORGE=$ac_cv_prog_FONTFORGE
4851 if test -n "$FONTFORGE"; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4853 $as_echo "$FONTFORGE" >&6; }
4854 else
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4860 test -n "$FONTFORGE" && break
4861 done
4862 test -n "$FONTFORGE" || FONTFORGE="false"
4864 for ac_prog in pkg-config
4866 # Extract the first word of "$ac_prog", so it can be a program name with args.
4867 set dummy $ac_prog; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if test -n "$PKG_CONFIG"; then
4874 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_PKG_CONFIG="$ac_prog"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4887 done
4888 done
4889 IFS=$as_save_IFS
4893 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4894 if test -n "$PKG_CONFIG"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4896 $as_echo "$PKG_CONFIG" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4903 test -n "$PKG_CONFIG" && break
4904 done
4905 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4907 for ac_prog in rsvg
4909 # Extract the first word of "$ac_prog", so it can be a program name with args.
4910 set dummy $ac_prog; ac_word=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if ${ac_cv_prog_RSVG+:} false; then :
4914 $as_echo_n "(cached) " >&6
4915 else
4916 if test -n "$RSVG"; then
4917 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4918 else
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 ac_cv_prog_RSVG="$ac_prog"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 break 2
4930 done
4931 done
4932 IFS=$as_save_IFS
4936 RSVG=$ac_cv_prog_RSVG
4937 if test -n "$RSVG"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4939 $as_echo "$RSVG" >&6; }
4940 else
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4946 test -n "$RSVG" && break
4947 done
4948 test -n "$RSVG" || RSVG="false"
4950 for ac_prog in convert
4952 # Extract the first word of "$ac_prog", so it can be a program name with args.
4953 set dummy $ac_prog; ac_word=$2
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955 $as_echo_n "checking for $ac_word... " >&6; }
4956 if ${ac_cv_prog_CONVERT+:} false; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 if test -n "$CONVERT"; then
4960 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4961 else
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_prog_CONVERT="$ac_prog"
4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4973 done
4974 done
4975 IFS=$as_save_IFS
4979 CONVERT=$ac_cv_prog_CONVERT
4980 if test -n "$CONVERT"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4982 $as_echo "$CONVERT" >&6; }
4983 else
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4989 test -n "$CONVERT" && break
4990 done
4991 test -n "$CONVERT" || CONVERT="false"
4993 for ac_prog in icotool
4995 # Extract the first word of "$ac_prog", so it can be a program name with args.
4996 set dummy $ac_prog; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if ${ac_cv_prog_ICOTOOL+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 if test -n "$ICOTOOL"; then
5003 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012 ac_cv_prog_ICOTOOL="$ac_prog"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 break 2
5016 done
5017 done
5018 IFS=$as_save_IFS
5022 ICOTOOL=$ac_cv_prog_ICOTOOL
5023 if test -n "$ICOTOOL"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5025 $as_echo "$ICOTOOL" >&6; }
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5032 test -n "$ICOTOOL" && break
5033 done
5034 test -n "$ICOTOOL" || ICOTOOL="false"
5037 if test "x$enable_maintainer_mode" != "xyes"
5038 then
5039 MAINTAINER_MODE=\#
5041 else
5042 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5043 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5045 if test "$CONVERT" = false
5046 then
5047 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5048 else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5050 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5051 convert_version=`convert --version | head -n1`
5052 if test "x$convert_version" != "x"
5053 then
5054 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5055 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5056 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5057 then
5058 CONVERT=false
5061 if test "$CONVERT" = false
5062 then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5064 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5065 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5066 else
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5068 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5072 if test "$ICOTOOL" = false
5073 then
5074 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5077 $as_echo_n "checking for recent enough icotool... " >&6; }
5078 icotool_version=`icotool --version | head -n1`
5079 if test "x$icotool_version" != "x"
5080 then
5081 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5082 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5083 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5084 then
5085 ICOTOOL=false
5086 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5089 if test "$ICOTOOL" = false
5090 then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5092 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5093 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5096 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5104 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5105 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 ac_check_lib_save_LIBS=$LIBS
5109 LIBS="-li386 $LIBS"
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5113 /* Override any GCC internal prototype to avoid an error.
5114 Use char because int might match the return type of a GCC
5115 builtin and then its argument prototype would still apply. */
5116 #ifdef __cplusplus
5117 extern "C"
5118 #endif
5119 char i386_set_ldt ();
5121 main ()
5123 return i386_set_ldt ();
5125 return 0;
5127 _ACEOF
5128 if ac_fn_c_try_link "$LINENO"; then :
5129 ac_cv_lib_i386_i386_set_ldt=yes
5130 else
5131 ac_cv_lib_i386_i386_set_ldt=no
5133 rm -f core conftest.err conftest.$ac_objext \
5134 conftest$ac_exeext conftest.$ac_ext
5135 LIBS=$ac_check_lib_save_LIBS
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5138 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5139 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5140 cat >>confdefs.h <<_ACEOF
5141 #define HAVE_LIBI386 1
5142 _ACEOF
5144 LIBS="-li386 $LIBS"
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5149 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5150 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 ac_check_lib_save_LIBS=$LIBS
5154 LIBS="-lossaudio $LIBS"
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5158 /* Override any GCC internal prototype to avoid an error.
5159 Use char because int might match the return type of a GCC
5160 builtin and then its argument prototype would still apply. */
5161 #ifdef __cplusplus
5162 extern "C"
5163 #endif
5164 char _oss_ioctl ();
5166 main ()
5168 return _oss_ioctl ();
5170 return 0;
5172 _ACEOF
5173 if ac_fn_c_try_link "$LINENO"; then :
5174 ac_cv_lib_ossaudio__oss_ioctl=yes
5175 else
5176 ac_cv_lib_ossaudio__oss_ioctl=no
5178 rm -f core conftest.err conftest.$ac_objext \
5179 conftest$ac_exeext conftest.$ac_ext
5180 LIBS=$ac_check_lib_save_LIBS
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5183 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5184 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5185 cat >>confdefs.h <<_ACEOF
5186 #define HAVE_LIBOSSAUDIO 1
5187 _ACEOF
5189 LIBS="-lossaudio $LIBS"
5194 XLIB=""
5196 OPENGL_LIBS=""
5200 # Check whether --enable-largefile was given.
5201 if test "${enable_largefile+set}" = set; then :
5202 enableval=$enable_largefile;
5205 if test "$enable_largefile" != no; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5208 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5209 if ${ac_cv_sys_largefile_CC+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 ac_cv_sys_largefile_CC=no
5213 if test "$GCC" != yes; then
5214 ac_save_CC=$CC
5215 while :; do
5216 # IRIX 6.2 and later do not support large files by default,
5217 # so use the C compiler's -n32 option if that helps.
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5220 #include <sys/types.h>
5221 /* Check that off_t can represent 2**63 - 1 correctly.
5222 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5223 since some C++ compilers masquerading as C compilers
5224 incorrectly reject 9223372036854775807. */
5225 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5226 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5227 && LARGE_OFF_T % 2147483647 == 1)
5228 ? 1 : -1];
5230 main ()
5234 return 0;
5236 _ACEOF
5237 if ac_fn_c_try_compile "$LINENO"; then :
5238 break
5240 rm -f core conftest.err conftest.$ac_objext
5241 CC="$CC -n32"
5242 if ac_fn_c_try_compile "$LINENO"; then :
5243 ac_cv_sys_largefile_CC=' -n32'; break
5245 rm -f core conftest.err conftest.$ac_objext
5246 break
5247 done
5248 CC=$ac_save_CC
5249 rm -f conftest.$ac_ext
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5253 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5254 if test "$ac_cv_sys_largefile_CC" != no; then
5255 CC=$CC$ac_cv_sys_largefile_CC
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5259 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5260 if ${ac_cv_sys_file_offset_bits+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 while :; do
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 #include <sys/types.h>
5267 /* Check that off_t can represent 2**63 - 1 correctly.
5268 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5269 since some C++ compilers masquerading as C compilers
5270 incorrectly reject 9223372036854775807. */
5271 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5273 && LARGE_OFF_T % 2147483647 == 1)
5274 ? 1 : -1];
5276 main ()
5280 return 0;
5282 _ACEOF
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284 ac_cv_sys_file_offset_bits=no; break
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5289 #define _FILE_OFFSET_BITS 64
5290 #include <sys/types.h>
5291 /* Check that off_t can represent 2**63 - 1 correctly.
5292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5293 since some C++ compilers masquerading as C compilers
5294 incorrectly reject 9223372036854775807. */
5295 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5297 && LARGE_OFF_T % 2147483647 == 1)
5298 ? 1 : -1];
5300 main ()
5304 return 0;
5306 _ACEOF
5307 if ac_fn_c_try_compile "$LINENO"; then :
5308 ac_cv_sys_file_offset_bits=64; break
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 ac_cv_sys_file_offset_bits=unknown
5312 break
5313 done
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5316 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5317 case $ac_cv_sys_file_offset_bits in #(
5318 no | unknown) ;;
5320 cat >>confdefs.h <<_ACEOF
5321 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5322 _ACEOF
5324 esac
5325 rm -rf conftest*
5326 if test $ac_cv_sys_file_offset_bits = unknown; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5328 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5329 if ${ac_cv_sys_large_files+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 while :; do
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 #include <sys/types.h>
5336 /* Check that off_t can represent 2**63 - 1 correctly.
5337 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5338 since some C++ compilers masquerading as C compilers
5339 incorrectly reject 9223372036854775807. */
5340 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5341 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5342 && LARGE_OFF_T % 2147483647 == 1)
5343 ? 1 : -1];
5345 main ()
5349 return 0;
5351 _ACEOF
5352 if ac_fn_c_try_compile "$LINENO"; then :
5353 ac_cv_sys_large_files=no; break
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358 #define _LARGE_FILES 1
5359 #include <sys/types.h>
5360 /* Check that off_t can represent 2**63 - 1 correctly.
5361 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5362 since some C++ compilers masquerading as C compilers
5363 incorrectly reject 9223372036854775807. */
5364 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5366 && LARGE_OFF_T % 2147483647 == 1)
5367 ? 1 : -1];
5369 main ()
5373 return 0;
5375 _ACEOF
5376 if ac_fn_c_try_compile "$LINENO"; then :
5377 ac_cv_sys_large_files=1; break
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 ac_cv_sys_large_files=unknown
5381 break
5382 done
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5385 $as_echo "$ac_cv_sys_large_files" >&6; }
5386 case $ac_cv_sys_large_files in #(
5387 no | unknown) ;;
5389 cat >>confdefs.h <<_ACEOF
5390 #define _LARGE_FILES $ac_cv_sys_large_files
5391 _ACEOF
5393 esac
5394 rm -rf conftest*
5399 ac_ext=c
5400 ac_cpp='$CPP $CPPFLAGS'
5401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5405 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5406 # On Suns, sometimes $CPP names a directory.
5407 if test -n "$CPP" && test -d "$CPP"; then
5408 CPP=
5410 if test -z "$CPP"; then
5411 if ${ac_cv_prog_CPP+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 # Double quotes because CPP needs to be expanded
5415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5417 ac_preproc_ok=false
5418 for ac_c_preproc_warn_flag in '' yes
5420 # Use a header file that comes with gcc, so configuring glibc
5421 # with a fresh cross-compiler works.
5422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5423 # <limits.h> exists even on freestanding compilers.
5424 # On the NeXT, cc -E runs the code through the compiler's parser,
5425 # not just through cpp. "Syntax error" is here to catch this case.
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 #ifdef __STDC__
5429 # include <limits.h>
5430 #else
5431 # include <assert.h>
5432 #endif
5433 Syntax error
5434 _ACEOF
5435 if ac_fn_c_try_cpp "$LINENO"; then :
5437 else
5438 # Broken: fails on valid input.
5439 continue
5441 rm -f conftest.err conftest.i conftest.$ac_ext
5443 # OK, works on sane cases. Now check whether nonexistent headers
5444 # can be detected and how.
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447 #include <ac_nonexistent.h>
5448 _ACEOF
5449 if ac_fn_c_try_cpp "$LINENO"; then :
5450 # Broken: success on invalid input.
5451 continue
5452 else
5453 # Passes both tests.
5454 ac_preproc_ok=:
5455 break
5457 rm -f conftest.err conftest.i conftest.$ac_ext
5459 done
5460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5461 rm -f conftest.i conftest.err conftest.$ac_ext
5462 if $ac_preproc_ok; then :
5463 break
5466 done
5467 ac_cv_prog_CPP=$CPP
5470 CPP=$ac_cv_prog_CPP
5471 else
5472 ac_cv_prog_CPP=$CPP
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5475 $as_echo "$CPP" >&6; }
5476 ac_preproc_ok=false
5477 for ac_c_preproc_warn_flag in '' yes
5479 # Use a header file that comes with gcc, so configuring glibc
5480 # with a fresh cross-compiler works.
5481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5482 # <limits.h> exists even on freestanding compilers.
5483 # On the NeXT, cc -E runs the code through the compiler's parser,
5484 # not just through cpp. "Syntax error" is here to catch this case.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 #ifdef __STDC__
5488 # include <limits.h>
5489 #else
5490 # include <assert.h>
5491 #endif
5492 Syntax error
5493 _ACEOF
5494 if ac_fn_c_try_cpp "$LINENO"; then :
5496 else
5497 # Broken: fails on valid input.
5498 continue
5500 rm -f conftest.err conftest.i conftest.$ac_ext
5502 # OK, works on sane cases. Now check whether nonexistent headers
5503 # can be detected and how.
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506 #include <ac_nonexistent.h>
5507 _ACEOF
5508 if ac_fn_c_try_cpp "$LINENO"; then :
5509 # Broken: success on invalid input.
5510 continue
5511 else
5512 # Passes both tests.
5513 ac_preproc_ok=:
5514 break
5516 rm -f conftest.err conftest.i conftest.$ac_ext
5518 done
5519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5520 rm -f conftest.i conftest.err conftest.$ac_ext
5521 if $ac_preproc_ok; then :
5523 else
5524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5526 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5527 See \`config.log' for more details" "$LINENO" 5; }
5530 ac_ext=c
5531 ac_cpp='$CPP $CPPFLAGS'
5532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5538 $as_echo_n "checking for ANSI C header files... " >&6; }
5539 if ${ac_cv_header_stdc+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5544 #include <stdlib.h>
5545 #include <stdarg.h>
5546 #include <string.h>
5547 #include <float.h>
5550 main ()
5554 return 0;
5556 _ACEOF
5557 if ac_fn_c_try_compile "$LINENO"; then :
5558 ac_cv_header_stdc=yes
5559 else
5560 ac_cv_header_stdc=no
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 if test $ac_cv_header_stdc = yes; then
5565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #include <string.h>
5570 _ACEOF
5571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5572 $EGREP "memchr" >/dev/null 2>&1; then :
5574 else
5575 ac_cv_header_stdc=no
5577 rm -f conftest*
5581 if test $ac_cv_header_stdc = yes; then
5582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 #include <stdlib.h>
5587 _ACEOF
5588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5589 $EGREP "free" >/dev/null 2>&1; then :
5591 else
5592 ac_cv_header_stdc=no
5594 rm -f conftest*
5598 if test $ac_cv_header_stdc = yes; then
5599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5600 if test "$cross_compiling" = yes; then :
5602 else
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605 #include <ctype.h>
5606 #include <stdlib.h>
5607 #if ((' ' & 0x0FF) == 0x020)
5608 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5609 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5610 #else
5611 # define ISLOWER(c) \
5612 (('a' <= (c) && (c) <= 'i') \
5613 || ('j' <= (c) && (c) <= 'r') \
5614 || ('s' <= (c) && (c) <= 'z'))
5615 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5616 #endif
5618 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5620 main ()
5622 int i;
5623 for (i = 0; i < 256; i++)
5624 if (XOR (islower (i), ISLOWER (i))
5625 || toupper (i) != TOUPPER (i))
5626 return 2;
5627 return 0;
5629 _ACEOF
5630 if ac_fn_c_try_run "$LINENO"; then :
5632 else
5633 ac_cv_header_stdc=no
5635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5636 conftest.$ac_objext conftest.beam conftest.$ac_ext
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5642 $as_echo "$ac_cv_header_stdc" >&6; }
5643 if test $ac_cv_header_stdc = yes; then
5645 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5649 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5650 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5651 inttypes.h stdint.h unistd.h
5652 do :
5653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5654 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5656 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5657 cat >>confdefs.h <<_ACEOF
5658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5659 _ACEOF
5663 done
5666 for ac_header in \
5667 AL/al.h \
5668 ApplicationServices/ApplicationServices.h \
5669 AudioToolbox/AudioConverter.h \
5670 AudioUnit/AudioUnit.h \
5671 AudioUnit/AudioComponent.h \
5672 CL/cl.h \
5673 Carbon/Carbon.h \
5674 CoreAudio/CoreAudio.h \
5675 DiskArbitration/DiskArbitration.h \
5676 IOKit/IOKitLib.h \
5677 IOKit/hid/IOHIDLib.h \
5678 OpenAL/al.h \
5679 OpenCL/opencl.h \
5680 QuickTime/ImageCompression.h \
5681 Security/Security.h \
5682 alias.h \
5683 alsa/asoundlib.h \
5684 arpa/inet.h \
5685 arpa/nameser.h \
5686 asm/types.h \
5687 capi20.h \
5688 curses.h \
5689 direct.h \
5690 dirent.h \
5691 dlfcn.h \
5692 elf.h \
5693 float.h \
5694 fnmatch.h \
5695 fontconfig/fontconfig.h \
5696 getopt.h \
5697 gettext-po.h \
5698 grp.h \
5699 gsm.h \
5700 gsm/gsm.h \
5701 ieeefp.h \
5702 inet/mib2.h \
5703 io.h \
5704 jpeglib.h \
5705 kstat.h \
5706 lber.h \
5707 lcms.h \
5708 lcms/lcms.h \
5709 ldap.h \
5710 link.h \
5711 linux/cdrom.h \
5712 linux/compiler.h \
5713 linux/hdreg.h \
5714 linux/input.h \
5715 linux/ioctl.h \
5716 linux/joystick.h \
5717 linux/major.h \
5718 linux/param.h \
5719 linux/serial.h \
5720 linux/types.h \
5721 linux/ucdrom.h \
5722 mach-o/nlist.h \
5723 mach-o/loader.h \
5724 mach/mach.h \
5725 mach/machine.h \
5726 machine/cpu.h \
5727 machine/limits.h \
5728 machine/sysarch.h \
5729 mntent.h \
5730 mpg123.h \
5731 ncurses.h \
5732 netdb.h \
5733 netinet/in.h \
5734 netinet/in_systm.h \
5735 netinet/tcp.h \
5736 netinet/tcp_fsm.h \
5737 openssl/err.h \
5738 openssl/ssl.h \
5739 png.h \
5740 poll.h \
5741 port.h \
5742 process.h \
5743 pthread.h \
5744 pwd.h \
5745 regex.h \
5746 sched.h \
5747 scsi/scsi.h \
5748 scsi/scsi_ioctl.h \
5749 scsi/sg.h \
5750 stdbool.h \
5751 stdint.h \
5752 strings.h \
5753 stropts.h \
5754 sys/asoundlib.h \
5755 sys/attr.h \
5756 sys/cdio.h \
5757 sys/elf32.h \
5758 sys/epoll.h \
5759 sys/errno.h \
5760 sys/event.h \
5761 sys/exec_elf.h \
5762 sys/filio.h \
5763 sys/inotify.h \
5764 sys/ioctl.h \
5765 sys/ipc.h \
5766 sys/limits.h \
5767 sys/link.h \
5768 sys/mman.h \
5769 sys/modem.h \
5770 sys/msg.h \
5771 sys/mtio.h \
5772 sys/param.h \
5773 sys/poll.h \
5774 sys/prctl.h \
5775 sys/protosw.h \
5776 sys/ptrace.h \
5777 sys/resource.h \
5778 sys/scsiio.h \
5779 sys/shm.h \
5780 sys/signal.h \
5781 sys/socket.h \
5782 sys/socketvar.h \
5783 sys/sockio.h \
5784 sys/statvfs.h \
5785 sys/strtio.h \
5786 sys/syscall.h \
5787 sys/tihdr.h \
5788 sys/time.h \
5789 sys/timeout.h \
5790 sys/times.h \
5791 sys/uio.h \
5792 sys/un.h \
5793 sys/utsname.h \
5794 sys/vm86.h \
5795 sys/wait.h \
5796 syscall.h \
5797 termios.h \
5798 tiffio.h \
5799 unistd.h \
5800 utime.h \
5801 valgrind/memcheck.h \
5802 valgrind/valgrind.h \
5803 zlib.h
5805 do :
5806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5807 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5808 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5809 cat >>confdefs.h <<_ACEOF
5810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5811 _ACEOF
5815 done
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5818 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5819 if ${ac_cv_header_stat_broken+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 #include <sys/types.h>
5825 #include <sys/stat.h>
5827 #if defined S_ISBLK && defined S_IFDIR
5828 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5829 #endif
5831 #if defined S_ISBLK && defined S_IFCHR
5832 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5833 #endif
5835 #if defined S_ISLNK && defined S_IFREG
5836 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5837 #endif
5839 #if defined S_ISSOCK && defined S_IFREG
5840 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5841 #endif
5843 _ACEOF
5844 if ac_fn_c_try_compile "$LINENO"; then :
5845 ac_cv_header_stat_broken=no
5846 else
5847 ac_cv_header_stat_broken=yes
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5852 $as_echo "$ac_cv_header_stat_broken" >&6; }
5853 if test $ac_cv_header_stat_broken = yes; then
5855 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5861 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5862 do :
5863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5864 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5865 #ifdef HAVE_SYS_PARAM_H
5866 # include <sys/param.h>
5867 #endif
5869 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5870 cat >>confdefs.h <<_ACEOF
5871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5872 _ACEOF
5876 done
5879 for ac_header in \
5880 netinet/ip.h \
5881 net/if.h \
5882 net/if_arp.h \
5883 net/if_dl.h \
5884 net/if_types.h \
5885 net/route.h \
5886 netinet/if_ether.h \
5887 netinet/if_inarp.h \
5888 netinet/in_pcb.h \
5889 netinet/ip_icmp.h \
5890 netinet/ip_var.h \
5891 netinet/udp.h \
5892 netipx/ipx.h \
5894 do :
5895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5896 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5897 #ifdef HAVE_SYS_SOCKET_H
5898 # include <sys/socket.h>
5899 #endif
5900 #ifdef HAVE_SYS_SOCKETVAR_H
5901 # include <sys/socketvar.h>
5902 #endif
5903 #ifdef HAVE_NET_ROUTE_H
5904 # include <net/route.h>
5905 #endif
5906 #ifdef HAVE_NETINET_IN_H
5907 # include <netinet/in.h>
5908 #endif
5909 #ifdef HAVE_NETINET_IN_SYSTM_H
5910 # include <netinet/in_systm.h>
5911 #endif
5912 #ifdef HAVE_NET_IF_H
5913 # include <net/if.h>
5914 #endif
5915 #ifdef HAVE_NETINET_IP_H
5916 # include <netinet/ip.h>
5917 #endif
5919 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5920 cat >>confdefs.h <<_ACEOF
5921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5922 _ACEOF
5926 done
5929 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5930 do :
5931 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5932 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5933 #ifdef HAVE_ALIAS_H
5934 # include <alias.h>
5935 #endif
5936 #ifdef HAVE_SYS_SOCKET_H
5937 # include <sys/socket.h>
5938 #endif
5939 #ifdef HAVE_SYS_SOCKETVAR_H
5940 # include <sys/socketvar.h>
5941 #endif
5942 #ifdef HAVE_SYS_TIMEOUT_H
5943 # include <sys/timeout.h>
5944 #endif
5945 #ifdef HAVE_NETINET_IN_H
5946 # include <netinet/in.h>
5947 #endif
5948 #ifdef HAVE_NETINET_IN_SYSTM_H
5949 # include <netinet/in_systm.h>
5950 #endif
5951 #ifdef HAVE_NETINET_IP_H
5952 # include <netinet/ip.h>
5953 #endif
5954 #ifdef HAVE_NETINET_IP_VAR_H
5955 # include <netinet/ip_var.h>
5956 #endif
5957 #ifdef HAVE_NETINET_IP_ICMP_H
5958 # include <netinet/ip_icmp.h>
5959 #endif
5960 #ifdef HAVE_NETINET_UDP_H
5961 # include <netinet/udp.h>
5962 #endif
5963 #ifdef HAVE_NETINET_TCP_H
5964 # include <netinet/tcp.h>
5965 #endif
5966 #ifdef HAVE_NETINET_TCP_TIMER_H
5967 #include <netinet/tcp_timer.h>
5968 #endif
5970 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5971 cat >>confdefs.h <<_ACEOF
5972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5973 _ACEOF
5977 done
5980 for ac_header in linux/ipx.h linux/irda.h
5981 do :
5982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5983 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5984 #ifdef HAVE_ASM_TYPES_H
5985 # include <asm/types.h>
5986 #endif
5987 #ifdef HAVE_SYS_SOCKET_H
5988 # include <sys/socket.h>
5989 #endif
5990 #ifdef HAVE_LINUX_TYPES_H
5991 # include <linux/types.h>
5992 #endif
5994 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5995 cat >>confdefs.h <<_ACEOF
5996 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5997 _ACEOF
6001 done
6004 for ac_header in mach-o/dyld_images.h
6005 do :
6006 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6007 # include <stdbool.h>
6008 #endif
6009 #ifdef HAVE_STDINT_H
6010 # include <stdint.h>
6011 #endif
6013 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6014 cat >>confdefs.h <<_ACEOF
6015 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6016 _ACEOF
6020 done
6023 for ac_header in resolv.h
6024 do :
6025 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6026 #ifdef HAVE_SYS_SOCKET_H
6027 # include <sys/socket.h>
6028 #endif
6029 #ifdef HAVE_NETINET_IN_H
6030 # include <netinet/in.h>
6031 #endif
6032 #ifdef HAVE_ARPA_NAMESER_H
6033 # include <arpa/nameser.h>
6034 #endif
6036 if test "x$ac_cv_header_resolv_h" = xyes; then :
6037 cat >>confdefs.h <<_ACEOF
6038 #define HAVE_RESOLV_H 1
6039 _ACEOF
6043 done
6046 for ac_header in ifaddrs.h
6047 do :
6048 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6050 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6051 cat >>confdefs.h <<_ACEOF
6052 #define HAVE_IFADDRS_H 1
6053 _ACEOF
6057 done
6060 for ac_header in ucontext.h
6061 do :
6062 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6064 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6065 cat >>confdefs.h <<_ACEOF
6066 #define HAVE_UCONTEXT_H 1
6067 _ACEOF
6071 done
6074 for ac_header in sys/thr.h
6075 do :
6076 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6077 #ifdef HAVE_UCONTEXT_H
6078 #include <ucontext.h>
6079 #endif
6081 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6082 cat >>confdefs.h <<_ACEOF
6083 #define HAVE_SYS_THR_H 1
6084 _ACEOF
6088 done
6091 for ac_header in pthread_np.h
6092 do :
6093 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6094 #include <pthread.h>
6095 #endif
6097 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6098 cat >>confdefs.h <<_ACEOF
6099 #define HAVE_PTHREAD_NP_H 1
6100 _ACEOF
6104 done
6107 for ac_header in linux/videodev.h linux/videodev2.h
6108 do :
6109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6110 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6111 #include <sys/time.h>
6112 #endif
6113 #include <sys/types.h>
6114 #ifdef HAVE_ASM_TYPES_H
6115 #include <asm/types.h>
6116 #endif
6118 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6119 cat >>confdefs.h <<_ACEOF
6120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6121 _ACEOF
6125 done
6128 for ac_header in linux/capi.h
6129 do :
6130 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6132 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6133 cat >>confdefs.h <<_ACEOF
6134 #define HAVE_LINUX_CAPI_H 1
6135 _ACEOF
6139 done
6143 DLLEXT=""
6145 DLLFLAGS="-D_REENTRANT"
6147 LDSHARED=""
6149 LDDLLFLAGS=""
6151 LIBEXT="so"
6153 IMPLIBEXT="def"
6155 LDRPATH_INSTALL=""
6157 LDRPATH_LOCAL=""
6159 STATIC_IMPLIBEXT="def.a"
6160 # Extract the first word of "ldd", so it can be a program name with args.
6161 set dummy ldd; ac_word=$2
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if ${ac_cv_path_LDD+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 case $LDD in
6168 [\\/]* | ?:[\\/]*)
6169 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 as_dummy="/sbin:/usr/sbin:$PATH"
6174 for as_dir in $as_dummy
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6180 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6184 done
6185 done
6186 IFS=$as_save_IFS
6188 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6190 esac
6192 LDD=$ac_cv_path_LDD
6193 if test -n "$LDD"; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6195 $as_echo "$LDD" >&6; }
6196 else
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6203 case $host_os in
6204 cygwin*|mingw32*)
6205 if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6207 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if ${ac_cv_prog_DLLTOOL+:} false; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 if test -n "$DLLTOOL"; then
6214 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6227 done
6228 done
6229 IFS=$as_save_IFS
6233 DLLTOOL=$ac_cv_prog_DLLTOOL
6234 if test -n "$DLLTOOL"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6236 $as_echo "$DLLTOOL" >&6; }
6237 else
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6244 if test -z "$ac_cv_prog_DLLTOOL"; then
6245 ac_ct_DLLTOOL=$DLLTOOL
6246 # Extract the first word of "dlltool", so it can be a program name with args.
6247 set dummy dlltool; ac_word=$2
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 if test -n "$ac_ct_DLLTOOL"; then
6254 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6267 done
6268 done
6269 IFS=$as_save_IFS
6273 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6274 if test -n "$ac_ct_DLLTOOL"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6276 $as_echo "$ac_ct_DLLTOOL" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6282 if test "x$ac_ct_DLLTOOL" = x; then
6283 DLLTOOL="false"
6284 else
6285 case $cross_compiling:$ac_tool_warned in
6286 yes:)
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289 ac_tool_warned=yes ;;
6290 esac
6291 DLLTOOL=$ac_ct_DLLTOOL
6293 else
6294 DLLTOOL="$ac_cv_prog_DLLTOOL"
6297 if test -n "$ac_tool_prefix"; then
6298 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6299 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 $as_echo_n "checking for $ac_word... " >&6; }
6302 if ${ac_cv_prog_DLLWRAP+:} false; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 if test -n "$DLLWRAP"; then
6306 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6307 else
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6319 done
6320 done
6321 IFS=$as_save_IFS
6325 DLLWRAP=$ac_cv_prog_DLLWRAP
6326 if test -n "$DLLWRAP"; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6328 $as_echo "$DLLWRAP" >&6; }
6329 else
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6336 if test -z "$ac_cv_prog_DLLWRAP"; then
6337 ac_ct_DLLWRAP=$DLLWRAP
6338 # Extract the first word of "dllwrap", so it can be a program name with args.
6339 set dummy dllwrap; ac_word=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 if test -n "$ac_ct_DLLWRAP"; then
6346 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6347 else
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 break 2
6359 done
6360 done
6361 IFS=$as_save_IFS
6365 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6366 if test -n "$ac_ct_DLLWRAP"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6368 $as_echo "$ac_ct_DLLWRAP" >&6; }
6369 else
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371 $as_echo "no" >&6; }
6374 if test "x$ac_ct_DLLWRAP" = x; then
6375 DLLWRAP="false"
6376 else
6377 case $cross_compiling:$ac_tool_warned in
6378 yes:)
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6381 ac_tool_warned=yes ;;
6382 esac
6383 DLLWRAP=$ac_ct_DLLWRAP
6385 else
6386 DLLWRAP="$ac_cv_prog_DLLWRAP"
6389 if test "$DLLWRAP" = "false"; then
6390 LIBEXT="a"
6391 else
6392 LIBEXT="dll"
6394 IMPLIBEXT="a"
6395 STATIC_IMPLIBEXT="a"
6396 enable_iphlpapi=${enable_iphlpapi:-no}
6397 enable_kernel32=${enable_kernel32:-no}
6398 enable_msvcrt=${enable_msvcrt:-no}
6399 enable_ntdll=${enable_ntdll:-no}
6400 enable_ws2_32=${enable_ws2_32:-no}
6401 enable_loader=${enable_loader:-no}
6402 enable_server=${enable_server:-no}
6403 with_x=${with_x:-no}
6404 with_pthread=${with_pthread:-no}
6406 darwin*|macosx*)
6407 DLLEXT=".so"
6408 LIBEXT="dylib"
6409 DLLFLAGS="$DLLFLAGS -fPIC"
6410 LDDLLFLAGS="-bundle -multiply_defined suppress"
6411 LIBWINE_LDFLAGS="-multiply_defined suppress"
6412 LDSHARED="\$(CC) -dynamiclib"
6413 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6414 COREFOUNDATIONLIB="-framework CoreFoundation"
6416 IOKITLIB="-framework IOKit -framework CoreFoundation"
6418 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6420 case $host_os in
6421 darwin11*)
6422 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6425 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6427 esac
6428 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6429 then
6430 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6433 if test "$ac_cv_header_Security_Security_h" = "yes"
6434 then
6435 SECURITYLIB="-framework Security -framework CoreFoundation"
6437 with_gnutls=${with_gnutls:-no}
6439 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6440 then
6441 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6442 then
6443 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6445 else
6446 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6449 ac_save_LIBS="$LIBS"
6450 LIBS="$LIBS $COREAUDIO"
6451 for ac_func in AUGraphAddNode
6452 do :
6453 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6454 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6455 cat >>confdefs.h <<_ACEOF
6456 #define HAVE_AUGRAPHADDNODE 1
6457 _ACEOF
6460 done
6462 LIBS="$ac_save_LIBS"
6464 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6465 then
6466 FRAMEWORK_OPENAL="-framework OpenAL"
6469 cat >>confdefs.h <<_ACEOF
6470 #define HAVE_OPENAL 1
6471 _ACEOF
6473 ac_cv_lib_openal=yes
6475 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6476 then
6477 LIBOPENCL="-framework OpenCL"
6479 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6481 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6482 then
6483 ac_save_LIBS="$LIBS"
6484 LIBS="$LIBS $IOKITLIB"
6485 for ac_func in IOHIDManagerCreate
6486 do :
6487 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6488 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6489 cat >>confdefs.h <<_ACEOF
6490 #define HAVE_IOHIDMANAGERCREATE 1
6491 _ACEOF
6494 done
6496 LIBS="$ac_save_LIBS"
6498 case $host_cpu in
6499 *powerpc*)
6500 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6501 esac
6502 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6503 then
6504 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6506 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6507 else
6508 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6510 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6511 then
6512 CARBONLIB="-framework Carbon"
6514 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6516 if test "x$enable_win16" = "xyes"
6517 then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6519 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6520 if test "$cross_compiling" = yes; then :
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6522 $as_echo "cross-compiling, assuming yes" >&6; }
6523 else
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6526 asm(".text\n"
6527 "bad:\tnop;nop\n"
6528 "good:\tnop;nop\n\t"
6529 ".globl _testfunc\n"
6530 "_testfunc:\tcallw good");
6531 extern void testfunc();
6533 main ()
6535 unsigned short *p = (unsigned short *)testfunc;
6536 return p[0] != 0xe866 || p[1] != 0xfffa
6538 return 0;
6540 _ACEOF
6541 if ac_fn_c_try_run "$LINENO"; then :
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6543 $as_echo "yes" >&6; }
6544 else
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6547 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
6549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6550 conftest.$ac_objext conftest.beam conftest.$ac_ext
6556 DLLFLAGS="$DLLFLAGS -fPIC"
6557 DLLEXT=".so"
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6559 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6560 if ${ac_cv_c_dll_gnuelf+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 ac_wine_try_cflags_saved=$CFLAGS
6564 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 void myfunc() {}
6568 _ACEOF
6569 if ac_fn_c_try_link "$LINENO"; then :
6570 ac_cv_c_dll_gnuelf="yes"
6571 else
6572 ac_cv_c_dll_gnuelf="no"
6574 rm -f core conftest.err conftest.$ac_objext \
6575 conftest$ac_exeext conftest.$ac_ext
6576 CFLAGS=$ac_wine_try_cflags_saved
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6579 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6580 if test "$ac_cv_c_dll_gnuelf" = "yes"
6581 then
6582 LDSHARED="\$(CC) -shared"
6583 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6585 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6586 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589 ac_wine_try_cflags_saved=$CFLAGS
6590 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6593 int main(int argc, char **argv) { return 0; }
6594 _ACEOF
6595 if ac_fn_c_try_link "$LINENO"; then :
6596 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6597 else
6598 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6600 rm -f core conftest.err conftest.$ac_objext \
6601 conftest$ac_exeext conftest.$ac_ext
6602 CFLAGS=$ac_wine_try_cflags_saved
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6605 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6606 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6607 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6608 else
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6610 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6611 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 ac_wine_try_cflags_saved=$CFLAGS
6615 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6618 int main(int argc, char **argv) { return 0; }
6619 _ACEOF
6620 if ac_fn_c_try_link "$LINENO"; then :
6621 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6622 else
6623 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6625 rm -f core conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627 CFLAGS=$ac_wine_try_cflags_saved
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6630 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6631 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6632 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6637 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6638 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 ac_wine_try_cflags_saved=$CFLAGS
6642 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6645 int main(int argc, char **argv) { return 0; }
6646 _ACEOF
6647 if ac_fn_c_try_link "$LINENO"; then :
6648 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6649 else
6650 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6652 rm -f core conftest.err conftest.$ac_objext \
6653 conftest$ac_exeext conftest.$ac_ext
6654 CFLAGS=$ac_wine_try_cflags_saved
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6657 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6658 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6659 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6662 { $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
6663 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6664 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 ac_wine_try_cflags_saved=$CFLAGS
6668 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671 int main(int argc, char **argv) { return 0; }
6672 _ACEOF
6673 if ac_fn_c_try_link "$LINENO"; then :
6674 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6675 else
6676 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6678 rm -f core conftest.err conftest.$ac_objext \
6679 conftest$ac_exeext conftest.$ac_ext
6680 CFLAGS=$ac_wine_try_cflags_saved
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6683 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6684 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6685 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6688 echo '{ global: *; };' >conftest.map
6689 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6691 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6692 if eval \${$as_ac_var+:} false; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 ac_wine_try_cflags_saved=$CFLAGS
6696 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699 int main(int argc, char **argv) { return 0; }
6700 _ACEOF
6701 if ac_fn_c_try_link "$LINENO"; then :
6702 eval "$as_ac_var=yes"
6703 else
6704 eval "$as_ac_var=no"
6706 rm -f core conftest.err conftest.$ac_objext \
6707 conftest$ac_exeext conftest.$ac_ext
6708 CFLAGS=$ac_wine_try_cflags_saved
6710 eval ac_res=\$$as_ac_var
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6712 $as_echo "$ac_res" >&6; }
6713 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6714 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6716 rm -f conftest.map
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6719 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6720 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6721 $as_echo_n "(cached) " >&6
6722 else
6723 ac_wine_try_cflags_saved=$CFLAGS
6724 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6727 int main(int argc, char **argv) { return 0; }
6728 _ACEOF
6729 if ac_fn_c_try_link "$LINENO"; then :
6730 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6731 else
6732 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6734 rm -f core conftest.err conftest.$ac_objext \
6735 conftest$ac_exeext conftest.$ac_ext
6736 CFLAGS=$ac_wine_try_cflags_saved
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6739 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6740 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6741 LDEXECFLAGS="-Wl,--export-dynamic"
6745 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6747 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6748 if eval \${$as_ac_var+:} false; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 ac_wine_try_cflags_saved=$CFLAGS
6752 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 int main(int argc, char **argv) { return 0; }
6756 _ACEOF
6757 if ac_fn_c_try_link "$LINENO"; then :
6758 eval "$as_ac_var=yes"
6759 else
6760 eval "$as_ac_var=no"
6762 rm -f core conftest.err conftest.$ac_objext \
6763 conftest$ac_exeext conftest.$ac_ext
6764 CFLAGS=$ac_wine_try_cflags_saved
6766 eval ac_res=\$$as_ac_var
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6768 $as_echo "$ac_res" >&6; }
6769 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6770 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6771 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6772 else
6773 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6775 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6776 if eval \${$as_ac_var+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 ac_wine_try_cflags_saved=$CFLAGS
6780 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6783 int main(int argc, char **argv) { return 0; }
6784 _ACEOF
6785 if ac_fn_c_try_link "$LINENO"; then :
6786 eval "$as_ac_var=yes"
6787 else
6788 eval "$as_ac_var=no"
6790 rm -f core conftest.err conftest.$ac_objext \
6791 conftest$ac_exeext conftest.$ac_ext
6792 CFLAGS=$ac_wine_try_cflags_saved
6794 eval ac_res=\$$as_ac_var
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6796 $as_echo "$ac_res" >&6; }
6797 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6798 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6799 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6804 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6805 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 ac_wine_try_cflags_saved=$CFLAGS
6809 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 int main(int argc, char **argv) { return 0; }
6813 _ACEOF
6814 if ac_fn_c_try_link "$LINENO"; then :
6815 ac_cv_cflags__Wl___enable_new_dtags=yes
6816 else
6817 ac_cv_cflags__Wl___enable_new_dtags=no
6819 rm -f core conftest.err conftest.$ac_objext \
6820 conftest$ac_exeext conftest.$ac_ext
6821 CFLAGS=$ac_wine_try_cflags_saved
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6824 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6825 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6826 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6829 case $host_cpu in
6830 *i[3456789]86* | x86_64)
6831 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6833 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6834 if eval \${$as_ac_var+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 ac_wine_try_cflags_saved=$CFLAGS
6838 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6841 int main(int argc, char **argv) { return 0; }
6842 _ACEOF
6843 if ac_fn_c_try_link "$LINENO"; then :
6844 eval "$as_ac_var=yes"
6845 else
6846 eval "$as_ac_var=no"
6848 rm -f core conftest.err conftest.$ac_objext \
6849 conftest$ac_exeext conftest.$ac_ext
6850 CFLAGS=$ac_wine_try_cflags_saved
6852 eval ac_res=\$$as_ac_var
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6854 $as_echo "$ac_res" >&6; }
6855 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6856 case $host_os in
6857 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6858 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6859 esac
6862 # Extract the first word of "prelink", so it can be a program name with args.
6863 set dummy prelink; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_path_PRELINK+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 case $PRELINK in
6870 [\\/]* | ?:[\\/]*)
6871 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in /sbin /usr/sbin $PATH
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6885 done
6886 done
6887 IFS=$as_save_IFS
6889 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6891 esac
6893 PRELINK=$ac_cv_path_PRELINK
6894 if test -n "$PRELINK"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6896 $as_echo "$PRELINK" >&6; }
6897 else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6903 if test "x$PRELINK" = xfalse
6904 then
6905 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6908 esac
6910 else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6912 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6913 if ${ac_cv_c_dll_unixware+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 ac_wine_try_cflags_saved=$CFLAGS
6917 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920 void myfunc() {}
6921 _ACEOF
6922 if ac_fn_c_try_link "$LINENO"; then :
6923 ac_cv_c_dll_unixware="yes"
6924 else
6925 ac_cv_c_dll_unixware="no"
6927 rm -f core conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext
6929 CFLAGS=$ac_wine_try_cflags_saved
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6932 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6933 if test "$ac_cv_c_dll_unixware" = "yes"
6934 then
6935 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6936 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6938 else
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6940 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6941 if ${ac_cv_c_dll_hpux+:} false; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 ac_wine_try_cflags_saved=$CFLAGS
6945 CFLAGS="$CFLAGS -shared"
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6948 void myfunc() {}
6949 _ACEOF
6950 if ac_fn_c_try_link "$LINENO"; then :
6951 ac_cv_c_dll_hpux="yes"
6952 else
6953 ac_cv_c_dll_hpux="no"
6955 rm -f core conftest.err conftest.$ac_objext \
6956 conftest$ac_exeext conftest.$ac_ext
6957 CFLAGS=$ac_wine_try_cflags_saved
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
6960 $as_echo "$ac_cv_c_dll_hpux" >&6; }
6961 if test "$ac_cv_c_dll_hpux" = "yes"
6962 then
6963 LIBEXT="sl"
6964 DLLEXT=".sl"
6965 LDDLLFLAGS="-shared -fPIC"
6966 LDSHARED="\$(CC) -shared"
6971 esac
6973 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
6974 enable_winequartz_drv=${enable_winequartz_drv:-no}
6976 if test "$LIBEXT" = "a"; then
6977 as_fn_error $? "could not find a way to build shared libraries.
6978 It is currently not possible to build Wine without shared library
6979 (.so) support to allow transparent switch between .so and .dll files.
6980 If you are using Linux, you will need a newer binutils.
6981 " "$LINENO" 5
6984 CROSSTEST_DISABLE=\#
6986 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
6987 then
6988 case "$host_cpu" in
6989 i[3456789]86*)
6990 ac_prefix_list="i686-w64-mingw32-gcc i586-w64-mingw32-gcc i486-w64-mingw32-gcc i386-w64-mingw32-gcc i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc " ;;
6991 x86_64)
6992 ac_prefix_list="x86_64-pc-mingw32-gcc amd64-pc-mingw32-gcc x86_64-w64-mingw32-gcc amd64-w64-mingw32-gcc x86_64-mingw32msvc-gcc amd64-mingw32msvc-gcc " ;;
6994 ac_prefix_list="" ;;
6995 esac
6996 for ac_prog in $ac_prefix_list
6998 # Extract the first word of "$ac_prog", so it can be a program name with args.
6999 set dummy $ac_prog; ac_word=$2
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if ${ac_cv_prog_CROSSCC+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 if test -n "$CROSSCC"; then
7006 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7007 else
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7015 ac_cv_prog_CROSSCC="$ac_prog"
7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 break 2
7019 done
7020 done
7021 IFS=$as_save_IFS
7025 CROSSCC=$ac_cv_prog_CROSSCC
7026 if test -n "$CROSSCC"; then
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7028 $as_echo "$CROSSCC" >&6; }
7029 else
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7035 test -n "$CROSSCC" && break
7036 done
7037 test -n "$CROSSCC" || CROSSCC="false"
7039 if test "$CROSSCC" != "false"
7040 then
7041 ac_save_CC="$CC"
7042 CC="$CROSSCC"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7044 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7049 main ()
7053 return 0;
7055 _ACEOF
7056 if ac_fn_c_try_compile "$LINENO"; then :
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7058 $as_echo "yes" >&6; }
7059 set x $CROSSCC
7060 shift
7061 target=""
7062 while test $# -ge 1
7064 case "$1" in
7065 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7066 esac
7067 shift
7068 done
7069 if test -n "$target"
7070 then
7071 CROSSTEST_DISABLE=""
7072 CROSSTARGET="$target"
7075 else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 $as_echo "no" >&6; }
7079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080 CC="$ac_save_CC"
7085 if test "$ac_cv_header_pthread_h" = "yes"
7086 then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7088 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7089 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 ac_check_lib_save_LIBS=$LIBS
7093 LIBS="-lpthread $LIBS"
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7097 /* Override any GCC internal prototype to avoid an error.
7098 Use char because int might match the return type of a GCC
7099 builtin and then its argument prototype would still apply. */
7100 #ifdef __cplusplus
7101 extern "C"
7102 #endif
7103 char pthread_create ();
7105 main ()
7107 return pthread_create ();
7109 return 0;
7111 _ACEOF
7112 if ac_fn_c_try_link "$LINENO"; then :
7113 ac_cv_lib_pthread_pthread_create=yes
7114 else
7115 ac_cv_lib_pthread_pthread_create=no
7117 rm -f core conftest.err conftest.$ac_objext \
7118 conftest$ac_exeext conftest.$ac_ext
7119 LIBS=$ac_check_lib_save_LIBS
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7122 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7123 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7124 LIBPTHREAD="-lpthread"
7129 if test "x$LIBPTHREAD" = "x"; then :
7130 case "x$with_pthread" in
7131 xno) ;;
7132 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7133 Wine cannot support threads without libpthread.
7134 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7135 esac
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7140 $as_echo_n "checking for X... " >&6; }
7143 # Check whether --with-x was given.
7144 if test "${with_x+set}" = set; then :
7145 withval=$with_x;
7148 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7149 if test "x$with_x" = xno; then
7150 # The user explicitly disabled X.
7151 have_x=disabled
7152 else
7153 case $x_includes,$x_libraries in #(
7154 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7155 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 # One or both of the vars are not set, and there is no cached value.
7159 ac_x_includes=no ac_x_libraries=no
7160 rm -f -r conftest.dir
7161 if mkdir conftest.dir; then
7162 cd conftest.dir
7163 cat >Imakefile <<'_ACEOF'
7164 incroot:
7165 @echo incroot='${INCROOT}'
7166 usrlibdir:
7167 @echo usrlibdir='${USRLIBDIR}'
7168 libdir:
7169 @echo libdir='${LIBDIR}'
7170 _ACEOF
7171 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7172 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7173 for ac_var in incroot usrlibdir libdir; do
7174 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7175 done
7176 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7177 for ac_extension in a so sl dylib la dll; do
7178 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7179 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7180 ac_im_usrlibdir=$ac_im_libdir; break
7182 done
7183 # Screen out bogus values from the imake configuration. They are
7184 # bogus both because they are the default anyway, and because
7185 # using them would break gcc on systems where it needs fixed includes.
7186 case $ac_im_incroot in
7187 /usr/include) ac_x_includes= ;;
7188 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7189 esac
7190 case $ac_im_usrlibdir in
7191 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7192 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7193 esac
7195 cd ..
7196 rm -f -r conftest.dir
7199 # Standard set of common directories for X headers.
7200 # Check X11 before X11Rn because it is often a symlink to the current release.
7201 ac_x_header_dirs='
7202 /usr/X11/include
7203 /usr/X11R7/include
7204 /usr/X11R6/include
7205 /usr/X11R5/include
7206 /usr/X11R4/include
7208 /usr/include/X11
7209 /usr/include/X11R7
7210 /usr/include/X11R6
7211 /usr/include/X11R5
7212 /usr/include/X11R4
7214 /usr/local/X11/include
7215 /usr/local/X11R7/include
7216 /usr/local/X11R6/include
7217 /usr/local/X11R5/include
7218 /usr/local/X11R4/include
7220 /usr/local/include/X11
7221 /usr/local/include/X11R7
7222 /usr/local/include/X11R6
7223 /usr/local/include/X11R5
7224 /usr/local/include/X11R4
7226 /usr/X386/include
7227 /usr/x386/include
7228 /usr/XFree86/include/X11
7230 /usr/include
7231 /usr/local/include
7232 /usr/unsupported/include
7233 /usr/athena/include
7234 /usr/local/x11r5/include
7235 /usr/lpp/Xamples/include
7237 /usr/openwin/include
7238 /usr/openwin/share/include'
7240 if test "$ac_x_includes" = no; then
7241 # Guess where to find include files, by looking for Xlib.h.
7242 # First, try using that file with no special directory specified.
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 #include <X11/Xlib.h>
7246 _ACEOF
7247 if ac_fn_c_try_cpp "$LINENO"; then :
7248 # We can compile using X headers with no special include directory.
7249 ac_x_includes=
7250 else
7251 for ac_dir in $ac_x_header_dirs; do
7252 if test -r "$ac_dir/X11/Xlib.h"; then
7253 ac_x_includes=$ac_dir
7254 break
7256 done
7258 rm -f conftest.err conftest.i conftest.$ac_ext
7259 fi # $ac_x_includes = no
7261 if test "$ac_x_libraries" = no; then
7262 # Check for the libraries.
7263 # See if we find them without any special options.
7264 # Don't add to $LIBS permanently.
7265 ac_save_LIBS=$LIBS
7266 LIBS="-lX11 $LIBS"
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7269 #include <X11/Xlib.h>
7271 main ()
7273 XrmInitialize ()
7275 return 0;
7277 _ACEOF
7278 if ac_fn_c_try_link "$LINENO"; then :
7279 LIBS=$ac_save_LIBS
7280 # We can link X programs with no special library path.
7281 ac_x_libraries=
7282 else
7283 LIBS=$ac_save_LIBS
7284 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7286 # Don't even attempt the hair of trying to link an X program!
7287 for ac_extension in a so sl dylib la dll; do
7288 if test -r "$ac_dir/libX11.$ac_extension"; then
7289 ac_x_libraries=$ac_dir
7290 break 2
7292 done
7293 done
7295 rm -f core conftest.err conftest.$ac_objext \
7296 conftest$ac_exeext conftest.$ac_ext
7297 fi # $ac_x_libraries = no
7299 case $ac_x_includes,$ac_x_libraries in #(
7300 no,* | *,no | *\'*)
7301 # Didn't find X, or a directory has "'" in its name.
7302 ac_cv_have_x="have_x=no";; #(
7304 # Record where we found X for the cache.
7305 ac_cv_have_x="have_x=yes\
7306 ac_x_includes='$ac_x_includes'\
7307 ac_x_libraries='$ac_x_libraries'"
7308 esac
7310 ;; #(
7311 *) have_x=yes;;
7312 esac
7313 eval "$ac_cv_have_x"
7314 fi # $with_x != no
7316 if test "$have_x" != yes; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7318 $as_echo "$have_x" >&6; }
7319 no_x=yes
7320 else
7321 # If each of the values was on the command line, it overrides each guess.
7322 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7323 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7324 # Update the cache value to reflect the command line values.
7325 ac_cv_have_x="have_x=yes\
7326 ac_x_includes='$x_includes'\
7327 ac_x_libraries='$x_libraries'"
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7329 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7332 if test "$no_x" = yes; then
7333 # Not all programs may use this symbol, but it does not hurt to define it.
7335 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7337 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7338 else
7339 if test -n "$x_includes"; then
7340 X_CFLAGS="$X_CFLAGS -I$x_includes"
7343 # It would also be nice to do this for all -L options, not just this one.
7344 if test -n "$x_libraries"; then
7345 X_LIBS="$X_LIBS -L$x_libraries"
7346 # For Solaris; some versions of Sun CC require a space after -R and
7347 # others require no space. Words are not sufficient . . . .
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7349 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7350 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7351 ac_xsave_c_werror_flag=$ac_c_werror_flag
7352 ac_c_werror_flag=yes
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7357 main ()
7361 return 0;
7363 _ACEOF
7364 if ac_fn_c_try_link "$LINENO"; then :
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7367 X_LIBS="$X_LIBS -R$x_libraries"
7368 else
7369 LIBS="$ac_xsave_LIBS -R $x_libraries"
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h. */
7374 main ()
7378 return 0;
7380 _ACEOF
7381 if ac_fn_c_try_link "$LINENO"; then :
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7383 $as_echo "yes" >&6; }
7384 X_LIBS="$X_LIBS -R $x_libraries"
7385 else
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7387 $as_echo "neither works" >&6; }
7389 rm -f core conftest.err conftest.$ac_objext \
7390 conftest$ac_exeext conftest.$ac_ext
7392 rm -f core conftest.err conftest.$ac_objext \
7393 conftest$ac_exeext conftest.$ac_ext
7394 ac_c_werror_flag=$ac_xsave_c_werror_flag
7395 LIBS=$ac_xsave_LIBS
7398 # Check for system-dependent libraries X programs must link with.
7399 # Do this before checking for the system-independent R6 libraries
7400 # (-lICE), since we may need -lsocket or whatever for X linking.
7402 if test "$ISC" = yes; then
7403 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7404 else
7405 # Martyn Johnson says this is needed for Ultrix, if the X
7406 # libraries were built with DECnet support. And Karl Berry says
7407 # the Alpha needs dnet_stub (dnet does not exist).
7408 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7412 /* Override any GCC internal prototype to avoid an error.
7413 Use char because int might match the return type of a GCC
7414 builtin and then its argument prototype would still apply. */
7415 #ifdef __cplusplus
7416 extern "C"
7417 #endif
7418 char XOpenDisplay ();
7420 main ()
7422 return XOpenDisplay ();
7424 return 0;
7426 _ACEOF
7427 if ac_fn_c_try_link "$LINENO"; then :
7429 else
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7431 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7432 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 ac_check_lib_save_LIBS=$LIBS
7436 LIBS="-ldnet $LIBS"
7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7440 /* Override any GCC internal prototype to avoid an error.
7441 Use char because int might match the return type of a GCC
7442 builtin and then its argument prototype would still apply. */
7443 #ifdef __cplusplus
7444 extern "C"
7445 #endif
7446 char dnet_ntoa ();
7448 main ()
7450 return dnet_ntoa ();
7452 return 0;
7454 _ACEOF
7455 if ac_fn_c_try_link "$LINENO"; then :
7456 ac_cv_lib_dnet_dnet_ntoa=yes
7457 else
7458 ac_cv_lib_dnet_dnet_ntoa=no
7460 rm -f core conftest.err conftest.$ac_objext \
7461 conftest$ac_exeext conftest.$ac_ext
7462 LIBS=$ac_check_lib_save_LIBS
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7465 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7466 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7467 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7470 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7472 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7473 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 ac_check_lib_save_LIBS=$LIBS
7477 LIBS="-ldnet_stub $LIBS"
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7481 /* Override any GCC internal prototype to avoid an error.
7482 Use char because int might match the return type of a GCC
7483 builtin and then its argument prototype would still apply. */
7484 #ifdef __cplusplus
7485 extern "C"
7486 #endif
7487 char dnet_ntoa ();
7489 main ()
7491 return dnet_ntoa ();
7493 return 0;
7495 _ACEOF
7496 if ac_fn_c_try_link "$LINENO"; then :
7497 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7498 else
7499 ac_cv_lib_dnet_stub_dnet_ntoa=no
7501 rm -f core conftest.err conftest.$ac_objext \
7502 conftest$ac_exeext conftest.$ac_ext
7503 LIBS=$ac_check_lib_save_LIBS
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7506 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7507 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7508 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7513 rm -f core conftest.err conftest.$ac_objext \
7514 conftest$ac_exeext conftest.$ac_ext
7515 LIBS="$ac_xsave_LIBS"
7517 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7518 # to get the SysV transport functions.
7519 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7520 # needs -lnsl.
7521 # The nsl library prevents programs from opening the X display
7522 # on Irix 5.2, according to T.E. Dickey.
7523 # The functions gethostbyname, getservbyname, and inet_addr are
7524 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7525 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7526 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7530 if test $ac_cv_func_gethostbyname = no; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7532 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7533 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 ac_check_lib_save_LIBS=$LIBS
7537 LIBS="-lnsl $LIBS"
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7541 /* Override any GCC internal prototype to avoid an error.
7542 Use char because int might match the return type of a GCC
7543 builtin and then its argument prototype would still apply. */
7544 #ifdef __cplusplus
7545 extern "C"
7546 #endif
7547 char gethostbyname ();
7549 main ()
7551 return gethostbyname ();
7553 return 0;
7555 _ACEOF
7556 if ac_fn_c_try_link "$LINENO"; then :
7557 ac_cv_lib_nsl_gethostbyname=yes
7558 else
7559 ac_cv_lib_nsl_gethostbyname=no
7561 rm -f core conftest.err conftest.$ac_objext \
7562 conftest$ac_exeext conftest.$ac_ext
7563 LIBS=$ac_check_lib_save_LIBS
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7566 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7567 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7571 if test $ac_cv_lib_nsl_gethostbyname = no; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7573 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7574 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 ac_check_lib_save_LIBS=$LIBS
7578 LIBS="-lbsd $LIBS"
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7582 /* Override any GCC internal prototype to avoid an error.
7583 Use char because int might match the return type of a GCC
7584 builtin and then its argument prototype would still apply. */
7585 #ifdef __cplusplus
7586 extern "C"
7587 #endif
7588 char gethostbyname ();
7590 main ()
7592 return gethostbyname ();
7594 return 0;
7596 _ACEOF
7597 if ac_fn_c_try_link "$LINENO"; then :
7598 ac_cv_lib_bsd_gethostbyname=yes
7599 else
7600 ac_cv_lib_bsd_gethostbyname=no
7602 rm -f core conftest.err conftest.$ac_objext \
7603 conftest$ac_exeext conftest.$ac_ext
7604 LIBS=$ac_check_lib_save_LIBS
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7607 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7608 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7609 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7615 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7616 # socket/setsockopt and other routines are undefined under SCO ODT
7617 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7618 # on later versions), says Simon Leinen: it contains gethostby*
7619 # variants that don't use the name server (or something). -lsocket
7620 # must be given before -lnsl if both are needed. We assume that
7621 # if connect needs -lnsl, so does gethostbyname.
7622 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7623 if test "x$ac_cv_func_connect" = xyes; then :
7627 if test $ac_cv_func_connect = no; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7629 $as_echo_n "checking for connect in -lsocket... " >&6; }
7630 if ${ac_cv_lib_socket_connect+:} false; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 ac_check_lib_save_LIBS=$LIBS
7634 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7638 /* Override any GCC internal prototype to avoid an error.
7639 Use char because int might match the return type of a GCC
7640 builtin and then its argument prototype would still apply. */
7641 #ifdef __cplusplus
7642 extern "C"
7643 #endif
7644 char connect ();
7646 main ()
7648 return connect ();
7650 return 0;
7652 _ACEOF
7653 if ac_fn_c_try_link "$LINENO"; then :
7654 ac_cv_lib_socket_connect=yes
7655 else
7656 ac_cv_lib_socket_connect=no
7658 rm -f core conftest.err conftest.$ac_objext \
7659 conftest$ac_exeext conftest.$ac_ext
7660 LIBS=$ac_check_lib_save_LIBS
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7663 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7664 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7665 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7670 # Guillermo Gomez says -lposix is necessary on A/UX.
7671 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7672 if test "x$ac_cv_func_remove" = xyes; then :
7676 if test $ac_cv_func_remove = no; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7678 $as_echo_n "checking for remove in -lposix... " >&6; }
7679 if ${ac_cv_lib_posix_remove+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 ac_check_lib_save_LIBS=$LIBS
7683 LIBS="-lposix $LIBS"
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7687 /* Override any GCC internal prototype to avoid an error.
7688 Use char because int might match the return type of a GCC
7689 builtin and then its argument prototype would still apply. */
7690 #ifdef __cplusplus
7691 extern "C"
7692 #endif
7693 char remove ();
7695 main ()
7697 return remove ();
7699 return 0;
7701 _ACEOF
7702 if ac_fn_c_try_link "$LINENO"; then :
7703 ac_cv_lib_posix_remove=yes
7704 else
7705 ac_cv_lib_posix_remove=no
7707 rm -f core conftest.err conftest.$ac_objext \
7708 conftest$ac_exeext conftest.$ac_ext
7709 LIBS=$ac_check_lib_save_LIBS
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7712 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7713 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7714 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7719 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7720 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7721 if test "x$ac_cv_func_shmat" = xyes; then :
7725 if test $ac_cv_func_shmat = no; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7727 $as_echo_n "checking for shmat in -lipc... " >&6; }
7728 if ${ac_cv_lib_ipc_shmat+:} false; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 ac_check_lib_save_LIBS=$LIBS
7732 LIBS="-lipc $LIBS"
7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h. */
7736 /* Override any GCC internal prototype to avoid an error.
7737 Use char because int might match the return type of a GCC
7738 builtin and then its argument prototype would still apply. */
7739 #ifdef __cplusplus
7740 extern "C"
7741 #endif
7742 char shmat ();
7744 main ()
7746 return shmat ();
7748 return 0;
7750 _ACEOF
7751 if ac_fn_c_try_link "$LINENO"; then :
7752 ac_cv_lib_ipc_shmat=yes
7753 else
7754 ac_cv_lib_ipc_shmat=no
7756 rm -f core conftest.err conftest.$ac_objext \
7757 conftest$ac_exeext conftest.$ac_ext
7758 LIBS=$ac_check_lib_save_LIBS
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7761 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7762 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7763 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7769 # Check for libraries that X11R6 Xt/Xaw programs need.
7770 ac_save_LDFLAGS=$LDFLAGS
7771 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7772 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7773 # check for ICE first), but we must link in the order -lSM -lICE or
7774 # we get undefined symbols. So assume we have SM if we have ICE.
7775 # These have to be linked with before -lX11, unlike the other
7776 # libraries we check for below, so use a different variable.
7777 # John Interrante, Karl Berry
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7779 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7780 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 ac_check_lib_save_LIBS=$LIBS
7784 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7788 /* Override any GCC internal prototype to avoid an error.
7789 Use char because int might match the return type of a GCC
7790 builtin and then its argument prototype would still apply. */
7791 #ifdef __cplusplus
7792 extern "C"
7793 #endif
7794 char IceConnectionNumber ();
7796 main ()
7798 return IceConnectionNumber ();
7800 return 0;
7802 _ACEOF
7803 if ac_fn_c_try_link "$LINENO"; then :
7804 ac_cv_lib_ICE_IceConnectionNumber=yes
7805 else
7806 ac_cv_lib_ICE_IceConnectionNumber=no
7808 rm -f core conftest.err conftest.$ac_objext \
7809 conftest$ac_exeext conftest.$ac_ext
7810 LIBS=$ac_check_lib_save_LIBS
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7813 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7814 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7815 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7818 LDFLAGS=$ac_save_LDFLAGS
7823 if test "$have_x" = "yes"
7824 then
7825 XLIB="-lX11"
7826 ac_save_CPPFLAGS="$CPPFLAGS"
7827 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7830 $as_echo_n "checking for -lX11... " >&6; }
7831 if ${ac_cv_lib_soname_X11+:} false; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 ac_check_soname_save_LIBS=$LIBS
7835 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7839 /* Override any GCC internal prototype to avoid an error.
7840 Use char because int might match the return type of a GCC
7841 builtin and then its argument prototype would still apply. */
7842 #ifdef __cplusplus
7843 extern "C"
7844 #endif
7845 char XCreateWindow ();
7847 main ()
7849 return XCreateWindow ();
7851 return 0;
7853 _ACEOF
7854 if ac_fn_c_try_link "$LINENO"; then :
7855 case "$LIBEXT" in
7856 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7857 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'` ;;
7858 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7859 esac
7861 rm -f core conftest.err conftest.$ac_objext \
7862 conftest$ac_exeext conftest.$ac_ext
7863 LIBS=$ac_check_soname_save_LIBS
7865 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7867 $as_echo "not found" >&6; }
7869 else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7871 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7873 cat >>confdefs.h <<_ACEOF
7874 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7875 _ACEOF
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7880 $as_echo_n "checking for -lXext... " >&6; }
7881 if ${ac_cv_lib_soname_Xext+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 ac_check_soname_save_LIBS=$LIBS
7885 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7889 /* Override any GCC internal prototype to avoid an error.
7890 Use char because int might match the return type of a GCC
7891 builtin and then its argument prototype would still apply. */
7892 #ifdef __cplusplus
7893 extern "C"
7894 #endif
7895 char XextCreateExtension ();
7897 main ()
7899 return XextCreateExtension ();
7901 return 0;
7903 _ACEOF
7904 if ac_fn_c_try_link "$LINENO"; then :
7905 case "$LIBEXT" in
7906 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7907 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'` ;;
7908 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7909 esac
7911 rm -f core conftest.err conftest.$ac_objext \
7912 conftest$ac_exeext conftest.$ac_ext
7913 LIBS=$ac_check_soname_save_LIBS
7915 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7917 $as_echo "not found" >&6; }
7919 else
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7921 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7923 cat >>confdefs.h <<_ACEOF
7924 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7925 _ACEOF
7927 XLIB="-lXext $XLIB"
7930 for ac_header in X11/Xlib.h \
7931 X11/XKBlib.h \
7932 X11/Xutil.h \
7933 X11/Xcursor/Xcursor.h \
7934 X11/extensions/shape.h \
7935 X11/extensions/XInput.h \
7936 X11/extensions/XInput2.h \
7937 X11/extensions/XShm.h \
7938 X11/extensions/Xcomposite.h \
7939 X11/extensions/Xinerama.h \
7940 X11/extensions/Xrandr.h \
7941 X11/extensions/Xrender.h \
7942 X11/extensions/xf86vmode.h \
7943 X11/extensions/xf86vmproto.h
7944 do :
7945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7946 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
7947 # include <X11/Xlib.h>
7948 #endif
7949 #ifdef HAVE_X11_XUTIL_H
7950 # include <X11/Xutil.h>
7951 #endif
7953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7954 cat >>confdefs.h <<_ACEOF
7955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7956 _ACEOF
7960 done
7963 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7964 then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
7966 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
7967 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 ac_check_lib_save_LIBS=$LIBS
7971 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7975 /* Override any GCC internal prototype to avoid an error.
7976 Use char because int might match the return type of a GCC
7977 builtin and then its argument prototype would still apply. */
7978 #ifdef __cplusplus
7979 extern "C"
7980 #endif
7981 char XkbQueryExtension ();
7983 main ()
7985 return XkbQueryExtension ();
7987 return 0;
7989 _ACEOF
7990 if ac_fn_c_try_link "$LINENO"; then :
7991 ac_cv_lib_X11_XkbQueryExtension=yes
7992 else
7993 ac_cv_lib_X11_XkbQueryExtension=no
7995 rm -f core conftest.err conftest.$ac_objext \
7996 conftest$ac_exeext conftest.$ac_ext
7997 LIBS=$ac_check_lib_save_LIBS
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8000 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8001 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8003 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8009 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8010 then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8012 $as_echo_n "checking for -lXcursor... " >&6; }
8013 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 ac_check_soname_save_LIBS=$LIBS
8017 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019 /* end confdefs.h. */
8021 /* Override any GCC internal prototype to avoid an error.
8022 Use char because int might match the return type of a GCC
8023 builtin and then its argument prototype would still apply. */
8024 #ifdef __cplusplus
8025 extern "C"
8026 #endif
8027 char XcursorImageLoadCursor ();
8029 main ()
8031 return XcursorImageLoadCursor ();
8033 return 0;
8035 _ACEOF
8036 if ac_fn_c_try_link "$LINENO"; then :
8037 case "$LIBEXT" in
8038 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8039 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'` ;;
8040 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8041 esac
8043 rm -f core conftest.err conftest.$ac_objext \
8044 conftest$ac_exeext conftest.$ac_ext
8045 LIBS=$ac_check_soname_save_LIBS
8047 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8049 $as_echo "not found" >&6; }
8051 else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8053 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8055 cat >>confdefs.h <<_ACEOF
8056 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8057 _ACEOF
8062 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8063 case "x$with_xcursor" in
8064 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8065 xno) ;;
8066 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8067 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8068 esac
8071 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8072 then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8074 $as_echo_n "checking for -lXi... " >&6; }
8075 if ${ac_cv_lib_soname_Xi+:} false; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 ac_check_soname_save_LIBS=$LIBS
8079 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8083 /* Override any GCC internal prototype to avoid an error.
8084 Use char because int might match the return type of a GCC
8085 builtin and then its argument prototype would still apply. */
8086 #ifdef __cplusplus
8087 extern "C"
8088 #endif
8089 char XOpenDevice ();
8091 main ()
8093 return XOpenDevice ();
8095 return 0;
8097 _ACEOF
8098 if ac_fn_c_try_link "$LINENO"; then :
8099 case "$LIBEXT" in
8100 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8101 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'` ;;
8102 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8103 esac
8105 rm -f core conftest.err conftest.$ac_objext \
8106 conftest$ac_exeext conftest.$ac_ext
8107 LIBS=$ac_check_soname_save_LIBS
8109 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8111 $as_echo "not found" >&6; }
8113 else
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8115 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8117 cat >>confdefs.h <<_ACEOF
8118 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8119 _ACEOF
8124 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8125 case "x$with_xinput" in
8126 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8127 xno) ;;
8128 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8129 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8130 esac
8133 if test "x$ac_cv_lib_soname_Xi" != x
8134 then
8135 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8136 case "x$with_xinput2" in
8137 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8138 xno) ;;
8139 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8140 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8141 esac
8145 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8146 then
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8148 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8149 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 ac_check_lib_save_LIBS=$LIBS
8153 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8157 /* Override any GCC internal prototype to avoid an error.
8158 Use char because int might match the return type of a GCC
8159 builtin and then its argument prototype would still apply. */
8160 #ifdef __cplusplus
8161 extern "C"
8162 #endif
8163 char XShmQueryExtension ();
8165 main ()
8167 return XShmQueryExtension ();
8169 return 0;
8171 _ACEOF
8172 if ac_fn_c_try_link "$LINENO"; then :
8173 ac_cv_lib_Xext_XShmQueryExtension=yes
8174 else
8175 ac_cv_lib_Xext_XShmQueryExtension=no
8177 rm -f core conftest.err conftest.$ac_objext \
8178 conftest$ac_exeext conftest.$ac_ext
8179 LIBS=$ac_check_lib_save_LIBS
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8182 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8183 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8185 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8190 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8191 case "x$with_xshm" in
8192 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8193 xno) ;;
8194 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8195 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8196 esac
8199 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8200 then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8202 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8203 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 ac_check_lib_save_LIBS=$LIBS
8207 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h. */
8211 /* Override any GCC internal prototype to avoid an error.
8212 Use char because int might match the return type of a GCC
8213 builtin and then its argument prototype would still apply. */
8214 #ifdef __cplusplus
8215 extern "C"
8216 #endif
8217 char XShapeQueryExtension ();
8219 main ()
8221 return XShapeQueryExtension ();
8223 return 0;
8225 _ACEOF
8226 if ac_fn_c_try_link "$LINENO"; then :
8227 ac_cv_lib_Xext_XShapeQueryExtension=yes
8228 else
8229 ac_cv_lib_Xext_XShapeQueryExtension=no
8231 rm -f core conftest.err conftest.$ac_objext \
8232 conftest$ac_exeext conftest.$ac_ext
8233 LIBS=$ac_check_lib_save_LIBS
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8236 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8237 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8239 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8244 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8245 case "x$with_xshape" in
8246 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8247 xno) ;;
8248 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8249 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8250 esac
8253 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8254 then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8256 $as_echo_n "checking for -lXxf86vm... " >&6; }
8257 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 ac_check_soname_save_LIBS=$LIBS
8261 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8265 /* Override any GCC internal prototype to avoid an error.
8266 Use char because int might match the return type of a GCC
8267 builtin and then its argument prototype would still apply. */
8268 #ifdef __cplusplus
8269 extern "C"
8270 #endif
8271 char XF86VidModeQueryExtension ();
8273 main ()
8275 return XF86VidModeQueryExtension ();
8277 return 0;
8279 _ACEOF
8280 if ac_fn_c_try_link "$LINENO"; then :
8281 case "$LIBEXT" in
8282 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8283 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'` ;;
8284 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8285 esac
8287 rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8289 LIBS=$ac_check_soname_save_LIBS
8291 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8293 $as_echo "not found" >&6; }
8295 else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8297 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8299 cat >>confdefs.h <<_ACEOF
8300 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8301 _ACEOF
8306 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8307 case "x$with_xxf86vm" in
8308 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8309 xno) ;;
8310 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8311 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8312 esac
8315 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"
8316 then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8318 $as_echo_n "checking for -lXrender... " >&6; }
8319 if ${ac_cv_lib_soname_Xrender+:} false; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 ac_check_soname_save_LIBS=$LIBS
8323 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8327 /* Override any GCC internal prototype to avoid an error.
8328 Use char because int might match the return type of a GCC
8329 builtin and then its argument prototype would still apply. */
8330 #ifdef __cplusplus
8331 extern "C"
8332 #endif
8333 char XRenderQueryExtension ();
8335 main ()
8337 return XRenderQueryExtension ();
8339 return 0;
8341 _ACEOF
8342 if ac_fn_c_try_link "$LINENO"; then :
8343 case "$LIBEXT" in
8344 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8345 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'` ;;
8346 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8347 esac
8349 rm -f core conftest.err conftest.$ac_objext \
8350 conftest$ac_exeext conftest.$ac_ext
8351 LIBS=$ac_check_soname_save_LIBS
8353 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8355 $as_echo "not found" >&6; }
8357 else
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8359 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8361 cat >>confdefs.h <<_ACEOF
8362 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8363 _ACEOF
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8366 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8367 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 ac_check_lib_save_LIBS=$LIBS
8371 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8375 /* Override any GCC internal prototype to avoid an error.
8376 Use char because int might match the return type of a GCC
8377 builtin and then its argument prototype would still apply. */
8378 #ifdef __cplusplus
8379 extern "C"
8380 #endif
8381 char XRenderSetPictureTransform ();
8383 main ()
8385 return XRenderSetPictureTransform ();
8387 return 0;
8389 _ACEOF
8390 if ac_fn_c_try_link "$LINENO"; then :
8391 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8392 else
8393 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8395 rm -f core conftest.err conftest.$ac_objext \
8396 conftest$ac_exeext conftest.$ac_ext
8397 LIBS=$ac_check_lib_save_LIBS
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8400 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8401 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8403 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8410 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8411 case "x$with_xrender" in
8412 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8413 xno) ;;
8414 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8415 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8416 esac
8419 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8420 then
8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h. */
8423 #include <X11/Xlib.h>
8424 #include <X11/extensions/Xrandr.h>
8426 main ()
8428 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8430 return 0;
8432 _ACEOF
8433 if ac_fn_c_try_compile "$LINENO"; then :
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8435 $as_echo_n "checking for -lXrandr... " >&6; }
8436 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8437 $as_echo_n "(cached) " >&6
8438 else
8439 ac_check_soname_save_LIBS=$LIBS
8440 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8444 /* Override any GCC internal prototype to avoid an error.
8445 Use char because int might match the return type of a GCC
8446 builtin and then its argument prototype would still apply. */
8447 #ifdef __cplusplus
8448 extern "C"
8449 #endif
8450 char XRRQueryExtension ();
8452 main ()
8454 return XRRQueryExtension ();
8456 return 0;
8458 _ACEOF
8459 if ac_fn_c_try_link "$LINENO"; then :
8460 case "$LIBEXT" in
8461 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8462 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'` ;;
8463 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8464 esac
8466 rm -f core conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_soname_save_LIBS
8470 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8472 $as_echo "not found" >&6; }
8474 else
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8476 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8478 cat >>confdefs.h <<_ACEOF
8479 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8480 _ACEOF
8485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8487 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8488 case "x$with_xrandr" in
8489 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8490 xno) ;;
8491 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8492 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8493 esac
8496 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8497 then
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8500 #include <X11/Xlib.h>
8501 #include <X11/extensions/Xinerama.h>
8503 main ()
8505 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8507 return 0;
8509 _ACEOF
8510 if ac_fn_c_try_compile "$LINENO"; then :
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8512 $as_echo_n "checking for -lXinerama... " >&6; }
8513 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 ac_check_soname_save_LIBS=$LIBS
8517 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8521 /* Override any GCC internal prototype to avoid an error.
8522 Use char because int might match the return type of a GCC
8523 builtin and then its argument prototype would still apply. */
8524 #ifdef __cplusplus
8525 extern "C"
8526 #endif
8527 char XineramaQueryScreens ();
8529 main ()
8531 return XineramaQueryScreens ();
8533 return 0;
8535 _ACEOF
8536 if ac_fn_c_try_link "$LINENO"; then :
8537 case "$LIBEXT" in
8538 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8539 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'` ;;
8540 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8541 esac
8543 rm -f core conftest.err conftest.$ac_objext \
8544 conftest$ac_exeext conftest.$ac_ext
8545 LIBS=$ac_check_soname_save_LIBS
8547 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8549 $as_echo "not found" >&6; }
8551 else
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8553 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8555 cat >>confdefs.h <<_ACEOF
8556 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8557 _ACEOF
8562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8564 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8565 case "x$with_xinerama" in
8566 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8567 xno) ;;
8568 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8569 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8570 esac
8573 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8574 then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8576 $as_echo_n "checking for -lXcomposite... " >&6; }
8577 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 ac_check_soname_save_LIBS=$LIBS
8581 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8585 /* Override any GCC internal prototype to avoid an error.
8586 Use char because int might match the return type of a GCC
8587 builtin and then its argument prototype would still apply. */
8588 #ifdef __cplusplus
8589 extern "C"
8590 #endif
8591 char XCompositeRedirectWindow ();
8593 main ()
8595 return XCompositeRedirectWindow ();
8597 return 0;
8599 _ACEOF
8600 if ac_fn_c_try_link "$LINENO"; then :
8601 case "$LIBEXT" in
8602 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8603 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'` ;;
8604 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8605 esac
8607 rm -f core conftest.err conftest.$ac_objext \
8608 conftest$ac_exeext conftest.$ac_ext
8609 LIBS=$ac_check_soname_save_LIBS
8611 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8613 $as_echo "not found" >&6; }
8615 else
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8617 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8619 cat >>confdefs.h <<_ACEOF
8620 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8621 _ACEOF
8626 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8627 case "x$with_xcomposite" in
8628 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8629 xno) ;;
8630 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8631 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8632 esac
8635 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8636 #include <X11/Xlib.h>
8637 #endif
8639 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8641 cat >>confdefs.h <<_ACEOF
8642 #define HAVE_XICCALLBACK_CALLBACK 1
8643 _ACEOF
8647 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8648 #include <X11/Xlib.h>
8649 #endif
8651 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8653 cat >>confdefs.h <<_ACEOF
8654 #define HAVE_XEVENT_XCOOKIE 1
8655 _ACEOF
8662 opengl_msg=""
8663 if test "x$with_opengl" != "xno"
8664 then
8665 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8666 do :
8667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8668 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8669 # include <GL/glx.h>
8670 #endif
8672 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8673 cat >>confdefs.h <<_ACEOF
8674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8675 _ACEOF
8679 done
8681 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8682 then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8684 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8685 if ${wine_cv_opengl_header_version_OK+:} false; then :
8686 $as_echo_n "(cached) " >&6
8687 else
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690 #include <GL/gl.h>
8692 main ()
8694 GLenum test = GL_UNSIGNED_SHORT_5_6_5; return (test == GL_UNSIGNED_SHORT_5_6_5);
8696 return 0;
8698 _ACEOF
8699 if ac_fn_c_try_compile "$LINENO"; then :
8700 wine_cv_opengl_header_version_OK="yes"
8701 else
8702 wine_cv_opengl_header_version_OK="no"
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8707 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8709 if test "$wine_cv_opengl_header_version_OK" = "yes"
8710 then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8712 $as_echo_n "checking for -lGL... " >&6; }
8713 if ${ac_cv_lib_soname_GL+:} false; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 ac_check_soname_save_LIBS=$LIBS
8717 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8721 /* Override any GCC internal prototype to avoid an error.
8722 Use char because int might match the return type of a GCC
8723 builtin and then its argument prototype would still apply. */
8724 #ifdef __cplusplus
8725 extern "C"
8726 #endif
8727 char glXCreateContext ();
8729 main ()
8731 return glXCreateContext ();
8733 return 0;
8735 _ACEOF
8736 if ac_fn_c_try_link "$LINENO"; then :
8737 case "$LIBEXT" in
8738 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8739 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'` ;;
8740 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8741 esac
8743 rm -f core conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
8745 LIBS=$ac_check_soname_save_LIBS
8747 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8749 $as_echo "not found" >&6; }
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8751 $as_echo_n "checking for -lGL... " >&6; }
8752 if ${ac_cv_lib_soname_GL+:} false; then :
8753 $as_echo_n "(cached) " >&6
8754 else
8755 ac_check_soname_save_LIBS=$LIBS
8756 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"
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8760 /* Override any GCC internal prototype to avoid an error.
8761 Use char because int might match the return type of a GCC
8762 builtin and then its argument prototype would still apply. */
8763 #ifdef __cplusplus
8764 extern "C"
8765 #endif
8766 char glXCreateContext ();
8768 main ()
8770 return glXCreateContext ();
8772 return 0;
8774 _ACEOF
8775 if ac_fn_c_try_link "$LINENO"; then :
8776 case "$LIBEXT" in
8777 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8778 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'` ;;
8779 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8780 esac
8782 rm -f core conftest.err conftest.$ac_objext \
8783 conftest$ac_exeext conftest.$ac_ext
8784 LIBS=$ac_check_soname_save_LIBS
8786 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8788 $as_echo "not found" >&6; }
8789 if test -f /usr/X11R6/lib/libGL.a
8790 then
8791 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8792 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8793 else
8794 opengl_msg="No OpenGL library found on this system."
8796 else
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8798 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8800 cat >>confdefs.h <<_ACEOF
8801 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8802 _ACEOF
8804 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"
8806 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8809 else
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8811 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8813 cat >>confdefs.h <<_ACEOF
8814 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8815 _ACEOF
8817 OPENGL_LIBS="-lGL"
8819 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8822 if test "$ac_cv_header_GL_glu_h" = "yes"
8823 then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8825 $as_echo_n "checking for -lGLU... " >&6; }
8826 if ${ac_cv_lib_soname_GLU+:} false; then :
8827 $as_echo_n "(cached) " >&6
8828 else
8829 ac_check_soname_save_LIBS=$LIBS
8830 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8834 /* Override any GCC internal prototype to avoid an error.
8835 Use char because int might match the return type of a GCC
8836 builtin and then its argument prototype would still apply. */
8837 #ifdef __cplusplus
8838 extern "C"
8839 #endif
8840 char gluLookAt ();
8842 main ()
8844 return gluLookAt ();
8846 return 0;
8848 _ACEOF
8849 if ac_fn_c_try_link "$LINENO"; then :
8850 case "$LIBEXT" in
8851 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8852 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'` ;;
8853 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8854 esac
8856 rm -f core conftest.err conftest.$ac_objext \
8857 conftest$ac_exeext conftest.$ac_ext
8858 LIBS=$ac_check_soname_save_LIBS
8860 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8862 $as_echo "not found" >&6; }
8864 else
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8866 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8868 cat >>confdefs.h <<_ACEOF
8869 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8870 _ACEOF
8875 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8876 case "x$with_glu" in
8877 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8878 xno) ;;
8879 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8880 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8881 esac
8883 else
8884 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8886 else
8887 opengl_msg="OpenGL development headers not found."
8889 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8890 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8891 else
8892 enable_opengl32=${enable_opengl32:-no}
8893 enable_glu32=${enable_glu32:-no}
8895 if test -n "$opengl_msg"; then :
8896 case "x$with_opengl" in
8897 x) as_fn_append wine_warnings "|$opengl_msg
8898 OpenGL and Direct3D won't be supported." ;;
8899 xno) ;;
8900 *) as_fn_error $? "$opengl_msg
8901 OpenGL and Direct3D won't be supported.
8902 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8903 esac
8906 CPPFLAGS="$ac_save_CPPFLAGS"
8907 else
8908 XLIB=""
8909 X_CFLAGS=""
8910 X_LIBS=""
8911 enable_winex11_drv=${enable_winex11_drv:-no}
8912 enable_opengl32=${enable_opengl32:-no}
8913 enable_glu32=${enable_glu32:-no}
8915 if test "x$XLIB" = "x"; then :
8916 case "x$with_x" in
8917 xno) ;;
8918 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
8919 without X support, which probably isn't what you want. You will need
8920 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
8921 Use the --without-x option if you really want this." "$LINENO" 5 ;;
8922 esac
8925 if test "$ac_cv_header_CL_cl_h" = "yes"
8926 then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
8928 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
8929 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
8930 $as_echo_n "(cached) " >&6
8931 else
8932 ac_check_lib_save_LIBS=$LIBS
8933 LIBS="-lOpenCL $LIBS"
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8937 /* Override any GCC internal prototype to avoid an error.
8938 Use char because int might match the return type of a GCC
8939 builtin and then its argument prototype would still apply. */
8940 #ifdef __cplusplus
8941 extern "C"
8942 #endif
8943 char clGetPlatformInfo ();
8945 main ()
8947 return clGetPlatformInfo ();
8949 return 0;
8951 _ACEOF
8952 if ac_fn_c_try_link "$LINENO"; then :
8953 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
8954 else
8955 ac_cv_lib_OpenCL_clGetPlatformInfo=no
8957 rm -f core conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8959 LIBS=$ac_check_lib_save_LIBS
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
8962 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
8963 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
8964 LIBOPENCL="-lOpenCL"
8969 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
8970 case "x$with_opencl" in
8971 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
8972 xno) ;;
8973 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
8974 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
8975 esac
8977 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
8980 XML2LIBS=""
8982 XML2INCL=""
8984 XSLTINCL=""
8986 if test "x$with_xml" != "xno"
8987 then
8988 ac_save_CPPFLAGS="$CPPFLAGS"
8989 if test "$PKG_CONFIG" != "false"
8990 then
8991 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8992 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8993 else
8994 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
8995 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
8997 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8998 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
8999 do :
9000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9001 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9002 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9003 cat >>confdefs.h <<_ACEOF
9004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9005 _ACEOF
9009 done
9011 if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes"
9012 then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9014 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9015 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 ac_check_lib_save_LIBS=$LIBS
9019 LIBS="-lxml2 $ac_xml_libs $LIBS"
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9023 /* Override any GCC internal prototype to avoid an error.
9024 Use char because int might match the return type of a GCC
9025 builtin and then its argument prototype would still apply. */
9026 #ifdef __cplusplus
9027 extern "C"
9028 #endif
9029 char xmlParseMemory ();
9031 main ()
9033 return xmlParseMemory ();
9035 return 0;
9037 _ACEOF
9038 if ac_fn_c_try_link "$LINENO"; then :
9039 ac_cv_lib_xml2_xmlParseMemory=yes
9040 else
9041 ac_cv_lib_xml2_xmlParseMemory=no
9043 rm -f core conftest.err conftest.$ac_objext \
9044 conftest$ac_exeext conftest.$ac_ext
9045 LIBS=$ac_check_lib_save_LIBS
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9048 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9049 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9051 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9053 XML2LIBS="$ac_xml_libs"
9054 XML2INCL="$ac_xml_cflags"
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9058 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9059 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 ac_check_lib_save_LIBS=$LIBS
9063 LIBS="-lxml2 $ac_xml_libs $LIBS"
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9067 /* Override any GCC internal prototype to avoid an error.
9068 Use char because int might match the return type of a GCC
9069 builtin and then its argument prototype would still apply. */
9070 #ifdef __cplusplus
9071 extern "C"
9072 #endif
9073 char xmlReadMemory ();
9075 main ()
9077 return xmlReadMemory ();
9079 return 0;
9081 _ACEOF
9082 if ac_fn_c_try_link "$LINENO"; then :
9083 ac_cv_lib_xml2_xmlReadMemory=yes
9084 else
9085 ac_cv_lib_xml2_xmlReadMemory=no
9087 rm -f core conftest.err conftest.$ac_objext \
9088 conftest$ac_exeext conftest.$ac_ext
9089 LIBS=$ac_check_lib_save_LIBS
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9092 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9093 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9095 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9100 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9101 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104 ac_check_lib_save_LIBS=$LIBS
9105 LIBS="-lxml2 $ac_xml_libs $LIBS"
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9109 /* Override any GCC internal prototype to avoid an error.
9110 Use char because int might match the return type of a GCC
9111 builtin and then its argument prototype would still apply. */
9112 #ifdef __cplusplus
9113 extern "C"
9114 #endif
9115 char xmlNewDocPI ();
9117 main ()
9119 return xmlNewDocPI ();
9121 return 0;
9123 _ACEOF
9124 if ac_fn_c_try_link "$LINENO"; then :
9125 ac_cv_lib_xml2_xmlNewDocPI=yes
9126 else
9127 ac_cv_lib_xml2_xmlNewDocPI=no
9129 rm -f core conftest.err conftest.$ac_objext \
9130 conftest$ac_exeext conftest.$ac_ext
9131 LIBS=$ac_check_lib_save_LIBS
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9134 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9135 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9137 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9142 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9143 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 ac_check_lib_save_LIBS=$LIBS
9147 LIBS="-lxml2 $ac_xml_libs $LIBS"
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9151 /* Override any GCC internal prototype to avoid an error.
9152 Use char because int might match the return type of a GCC
9153 builtin and then its argument prototype would still apply. */
9154 #ifdef __cplusplus
9155 extern "C"
9156 #endif
9157 char xmlSchemaSetParserStructuredErrors ();
9159 main ()
9161 return xmlSchemaSetParserStructuredErrors ();
9163 return 0;
9165 _ACEOF
9166 if ac_fn_c_try_link "$LINENO"; then :
9167 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9168 else
9169 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9171 rm -f core conftest.err conftest.$ac_objext \
9172 conftest$ac_exeext conftest.$ac_ext
9173 LIBS=$ac_check_lib_save_LIBS
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9176 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9177 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9179 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9184 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9185 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9186 $as_echo_n "(cached) " >&6
9187 else
9188 ac_check_lib_save_LIBS=$LIBS
9189 LIBS="-lxml2 $ac_xml_libs $LIBS"
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9193 /* Override any GCC internal prototype to avoid an error.
9194 Use char because int might match the return type of a GCC
9195 builtin and then its argument prototype would still apply. */
9196 #ifdef __cplusplus
9197 extern "C"
9198 #endif
9199 char xmlSchemaSetValidStructuredErrors ();
9201 main ()
9203 return xmlSchemaSetValidStructuredErrors ();
9205 return 0;
9207 _ACEOF
9208 if ac_fn_c_try_link "$LINENO"; then :
9209 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9210 else
9211 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9213 rm -f core conftest.err conftest.$ac_objext \
9214 conftest$ac_exeext conftest.$ac_ext
9215 LIBS=$ac_check_lib_save_LIBS
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9218 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9219 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9221 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9226 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9227 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 ac_check_lib_save_LIBS=$LIBS
9231 LIBS="-lxml2 $ac_xml_libs $LIBS"
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9235 /* Override any GCC internal prototype to avoid an error.
9236 Use char because int might match the return type of a GCC
9237 builtin and then its argument prototype would still apply. */
9238 #ifdef __cplusplus
9239 extern "C"
9240 #endif
9241 char xmlFirstElementChild ();
9243 main ()
9245 return xmlFirstElementChild ();
9247 return 0;
9249 _ACEOF
9250 if ac_fn_c_try_link "$LINENO"; then :
9251 ac_cv_lib_xml2_xmlFirstElementChild=yes
9252 else
9253 ac_cv_lib_xml2_xmlFirstElementChild=no
9255 rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257 LIBS=$ac_check_lib_save_LIBS
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9260 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9261 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9263 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9267 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9269 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9271 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9276 CPPFLAGS="$ac_save_CPPFLAGS"
9278 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9279 case "x$with_xml" in
9280 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9281 xno) ;;
9282 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9283 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9284 esac
9287 if test "x$with_xslt" != "xno"
9288 then
9289 if test "$PKG_CONFIG" != "false"
9290 then
9291 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9292 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9293 else
9294 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9295 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9297 ac_save_CPPFLAGS="$CPPFLAGS"
9298 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9299 for ac_header in libxslt/pattern.h libxslt/transform.h
9300 do :
9301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9302 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9303 # include <libxslt/pattern.h>
9304 #endif
9306 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9307 cat >>confdefs.h <<_ACEOF
9308 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9309 _ACEOF
9313 done
9315 CPPFLAGS="$ac_save_CPPFLAGS"
9316 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9317 then
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9319 $as_echo_n "checking for -lxslt... " >&6; }
9320 if ${ac_cv_lib_soname_xslt+:} false; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 ac_check_soname_save_LIBS=$LIBS
9324 LIBS="-lxslt $ac_xslt_libs $LIBS"
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9328 /* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
9331 #ifdef __cplusplus
9332 extern "C"
9333 #endif
9334 char xsltCompilePattern ();
9336 main ()
9338 return xsltCompilePattern ();
9340 return 0;
9342 _ACEOF
9343 if ac_fn_c_try_link "$LINENO"; then :
9344 case "$LIBEXT" in
9345 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9346 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'` ;;
9347 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9348 esac
9350 rm -f core conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9352 LIBS=$ac_check_soname_save_LIBS
9354 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9356 $as_echo "not found" >&6; }
9358 else
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9360 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9362 cat >>confdefs.h <<_ACEOF
9363 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9364 _ACEOF
9366 XSLTINCL="$ac_xslt_cflags"
9370 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9371 case "x$with_xslt" in
9372 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9373 xno) ;;
9374 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9375 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9376 esac
9379 HALINCL=""
9381 if test "x$with_hal" != "xno"
9382 then
9383 ac_save_CPPFLAGS="$CPPFLAGS"
9384 if test "$PKG_CONFIG" != "false"
9385 then
9386 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9387 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9388 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9390 for ac_header in dbus/dbus.h hal/libhal.h
9391 do :
9392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9393 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9394 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9395 cat >>confdefs.h <<_ACEOF
9396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9397 _ACEOF
9401 done
9403 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9404 then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9406 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9407 if ${ac_cv_lib_dbus_1_dbus_connection_close+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 ac_check_lib_save_LIBS=$LIBS
9411 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9415 /* Override any GCC internal prototype to avoid an error.
9416 Use char because int might match the return type of a GCC
9417 builtin and then its argument prototype would still apply. */
9418 #ifdef __cplusplus
9419 extern "C"
9420 #endif
9421 char dbus_connection_close ();
9423 main ()
9425 return dbus_connection_close ();
9427 return 0;
9429 _ACEOF
9430 if ac_fn_c_try_link "$LINENO"; then :
9431 ac_cv_lib_dbus_1_dbus_connection_close=yes
9432 else
9433 ac_cv_lib_dbus_1_dbus_connection_close=no
9435 rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
9437 LIBS=$ac_check_lib_save_LIBS
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9440 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9441 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = xyes; then :
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9443 $as_echo_n "checking for -lhal... " >&6; }
9444 if ${ac_cv_lib_soname_hal+:} false; then :
9445 $as_echo_n "(cached) " >&6
9446 else
9447 ac_check_soname_save_LIBS=$LIBS
9448 LIBS="-lhal $ac_hal_libs $LIBS"
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9452 /* Override any GCC internal prototype to avoid an error.
9453 Use char because int might match the return type of a GCC
9454 builtin and then its argument prototype would still apply. */
9455 #ifdef __cplusplus
9456 extern "C"
9457 #endif
9458 char libhal_ctx_new ();
9460 main ()
9462 return libhal_ctx_new ();
9464 return 0;
9466 _ACEOF
9467 if ac_fn_c_try_link "$LINENO"; then :
9468 case "$LIBEXT" in
9469 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9470 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'` ;;
9471 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9472 esac
9474 rm -f core conftest.err conftest.$ac_objext \
9475 conftest$ac_exeext conftest.$ac_ext
9476 LIBS=$ac_check_soname_save_LIBS
9478 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9480 $as_echo "not found" >&6; }
9482 else
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9484 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9486 cat >>confdefs.h <<_ACEOF
9487 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9488 _ACEOF
9490 HALINCL="$ac_hal_cflags"
9495 CPPFLAGS="$ac_save_CPPFLAGS"
9497 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9498 case "x$with_hal" in
9499 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9500 xno) ;;
9501 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9502 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9503 esac
9506 if test "x$with_gnutls" != "xno"
9507 then
9508 ac_save_CPPFLAGS="$CPPFLAGS"
9509 if test "$PKG_CONFIG" != "false"
9510 then
9511 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9512 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9513 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9515 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9516 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519 #include <gnutls/gnutls.h>
9521 main ()
9523 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9525 return 0;
9527 _ACEOF
9528 if ac_fn_c_try_compile "$LINENO"; then :
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9530 $as_echo_n "checking for -lgnutls... " >&6; }
9531 if ${ac_cv_lib_soname_gnutls+:} false; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 ac_check_soname_save_LIBS=$LIBS
9535 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h. */
9539 /* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
9542 #ifdef __cplusplus
9543 extern "C"
9544 #endif
9545 char gnutls_global_init ();
9547 main ()
9549 return gnutls_global_init ();
9551 return 0;
9553 _ACEOF
9554 if ac_fn_c_try_link "$LINENO"; then :
9555 case "$LIBEXT" in
9556 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9557 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'` ;;
9558 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9559 esac
9561 rm -f core conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
9563 LIBS=$ac_check_soname_save_LIBS
9565 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9567 $as_echo "not found" >&6; }
9569 else
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9571 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9573 cat >>confdefs.h <<_ACEOF
9574 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9575 _ACEOF
9577 GNUTLSINCL="$ac_gnutls_cflags"
9581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9585 CPPFLAGS="$ac_save_CPPFLAGS"
9587 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9588 case "x$with_gnutls" in
9589 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9590 xno) ;;
9591 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9592 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9593 esac
9596 CURSESLIBS=""
9597 if test "$ac_cv_header_ncurses_h" = "yes"
9598 then
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9600 $as_echo_n "checking for -lncurses... " >&6; }
9601 if ${ac_cv_lib_soname_ncurses+:} false; then :
9602 $as_echo_n "(cached) " >&6
9603 else
9604 ac_check_soname_save_LIBS=$LIBS
9605 LIBS="-lncurses $LIBS"
9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9609 /* Override any GCC internal prototype to avoid an error.
9610 Use char because int might match the return type of a GCC
9611 builtin and then its argument prototype would still apply. */
9612 #ifdef __cplusplus
9613 extern "C"
9614 #endif
9615 char waddch ();
9617 main ()
9619 return waddch ();
9621 return 0;
9623 _ACEOF
9624 if ac_fn_c_try_link "$LINENO"; then :
9625 case "$LIBEXT" in
9626 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9627 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'` ;;
9628 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9629 esac
9631 rm -f core conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
9633 LIBS=$ac_check_soname_save_LIBS
9635 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9637 $as_echo "not found" >&6; }
9639 else
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9641 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9643 cat >>confdefs.h <<_ACEOF
9644 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9645 _ACEOF
9647 CURSESLIBS="-lncurses"
9649 elif test "$ac_cv_header_curses_h" = "yes"
9650 then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9652 $as_echo_n "checking for -lcurses... " >&6; }
9653 if ${ac_cv_lib_soname_curses+:} false; then :
9654 $as_echo_n "(cached) " >&6
9655 else
9656 ac_check_soname_save_LIBS=$LIBS
9657 LIBS="-lcurses $LIBS"
9658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659 /* end confdefs.h. */
9661 /* Override any GCC internal prototype to avoid an error.
9662 Use char because int might match the return type of a GCC
9663 builtin and then its argument prototype would still apply. */
9664 #ifdef __cplusplus
9665 extern "C"
9666 #endif
9667 char waddch ();
9669 main ()
9671 return waddch ();
9673 return 0;
9675 _ACEOF
9676 if ac_fn_c_try_link "$LINENO"; then :
9677 case "$LIBEXT" in
9678 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9679 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'` ;;
9680 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9681 esac
9683 rm -f core conftest.err conftest.$ac_objext \
9684 conftest$ac_exeext conftest.$ac_ext
9685 LIBS=$ac_check_soname_save_LIBS
9687 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9689 $as_echo "not found" >&6; }
9691 else
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9693 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9695 cat >>confdefs.h <<_ACEOF
9696 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9697 _ACEOF
9699 CURSESLIBS="-lcurses"
9702 ac_save_LIBS="$LIBS"
9703 LIBS="$LIBS $CURSESLIBS"
9704 for ac_func in mousemask
9705 do :
9706 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9707 if test "x$ac_cv_func_mousemask" = xyes; then :
9708 cat >>confdefs.h <<_ACEOF
9709 #define HAVE_MOUSEMASK 1
9710 _ACEOF
9713 done
9715 LIBS="$ac_save_LIBS"
9716 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9717 case "x$with_curses" in
9718 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9719 xno) ;;
9720 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9721 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9722 esac
9725 if test "x$with_sane" != "xno"
9726 then
9727 ac_save_CPPFLAGS="$CPPFLAGS"
9728 # Extract the first word of "sane-config", so it can be a program name with args.
9729 set dummy sane-config; ac_word=$2
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if ${ac_cv_prog_sane_devel+:} false; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 if test -n "$sane_devel"; then
9736 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9737 else
9738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739 for as_dir in $PATH
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9745 ac_cv_prog_sane_devel="sane-config"
9746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9747 break 2
9749 done
9750 done
9751 IFS=$as_save_IFS
9753 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9756 sane_devel=$ac_cv_prog_sane_devel
9757 if test -n "$sane_devel"; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9759 $as_echo "$sane_devel" >&6; }
9760 else
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762 $as_echo "no" >&6; }
9766 if test "$sane_devel" != "no"
9767 then
9768 ac_sane_incl="`$sane_devel --cflags`"
9769 ac_sane_libs="`$sane_devel --ldflags`"
9770 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9772 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9773 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9775 $as_echo_n "checking for -lsane... " >&6; }
9776 if ${ac_cv_lib_soname_sane+:} false; then :
9777 $as_echo_n "(cached) " >&6
9778 else
9779 ac_check_soname_save_LIBS=$LIBS
9780 LIBS="-lsane $ac_sane_libs $LIBS"
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9784 /* Override any GCC internal prototype to avoid an error.
9785 Use char because int might match the return type of a GCC
9786 builtin and then its argument prototype would still apply. */
9787 #ifdef __cplusplus
9788 extern "C"
9789 #endif
9790 char sane_init ();
9792 main ()
9794 return sane_init ();
9796 return 0;
9798 _ACEOF
9799 if ac_fn_c_try_link "$LINENO"; then :
9800 case "$LIBEXT" in
9801 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9802 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'` ;;
9803 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9804 esac
9806 rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9808 LIBS=$ac_check_soname_save_LIBS
9810 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9812 $as_echo "not found" >&6; }
9814 else
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9816 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9818 cat >>confdefs.h <<_ACEOF
9819 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9820 _ACEOF
9822 SANEINCL="$ac_sane_incl"
9828 CPPFLAGS="$ac_save_CPPFLAGS"
9830 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9831 case "x$with_sane" in
9832 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9833 xno) ;;
9834 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9835 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9836 esac
9839 if test "x$with_v4l" != "xno"
9840 then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9842 $as_echo_n "checking for -lv4l1... " >&6; }
9843 if ${ac_cv_lib_soname_v4l1+:} false; then :
9844 $as_echo_n "(cached) " >&6
9845 else
9846 ac_check_soname_save_LIBS=$LIBS
9847 LIBS="-lv4l1 $LIBS"
9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h. */
9851 /* Override any GCC internal prototype to avoid an error.
9852 Use char because int might match the return type of a GCC
9853 builtin and then its argument prototype would still apply. */
9854 #ifdef __cplusplus
9855 extern "C"
9856 #endif
9857 char v4l1_open ();
9859 main ()
9861 return v4l1_open ();
9863 return 0;
9865 _ACEOF
9866 if ac_fn_c_try_link "$LINENO"; then :
9867 case "$LIBEXT" in
9868 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9869 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'` ;;
9870 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9871 esac
9873 rm -f core conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875 LIBS=$ac_check_soname_save_LIBS
9877 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9879 $as_echo "not found" >&6; }
9881 else
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9883 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9885 cat >>confdefs.h <<_ACEOF
9886 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9887 _ACEOF
9892 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9893 case "x$with_v4l" in
9894 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
9895 xno) ;;
9896 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
9897 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9898 esac
9901 if test "x$with_gphoto" != "xno"
9902 then
9903 ac_save_CPPFLAGS="$CPPFLAGS"
9904 # Extract the first word of "gphoto2-config", so it can be a program name with args.
9905 set dummy gphoto2-config; ac_word=$2
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907 $as_echo_n "checking for $ac_word... " >&6; }
9908 if ${ac_cv_prog_gphoto2_devel+:} false; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 if test -n "$gphoto2_devel"; then
9912 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9913 else
9914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915 for as_dir in $PATH
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9921 ac_cv_prog_gphoto2_devel="gphoto2-config"
9922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9923 break 2
9925 done
9926 done
9927 IFS=$as_save_IFS
9929 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9932 gphoto2_devel=$ac_cv_prog_gphoto2_devel
9933 if test -n "$gphoto2_devel"; then
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
9935 $as_echo "$gphoto2_devel" >&6; }
9936 else
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9938 $as_echo "no" >&6; }
9942 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
9943 set dummy gphoto2-port-config; ac_word=$2
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9945 $as_echo_n "checking for $ac_word... " >&6; }
9946 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
9947 $as_echo_n "(cached) " >&6
9948 else
9949 if test -n "$gphoto2port_devel"; then
9950 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9951 else
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 for as_dir in $PATH
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9959 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
9960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9961 break 2
9963 done
9964 done
9965 IFS=$as_save_IFS
9967 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9970 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9971 if test -n "$gphoto2port_devel"; then
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
9973 $as_echo "$gphoto2port_devel" >&6; }
9974 else
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976 $as_echo "no" >&6; }
9980 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9981 then
9982 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9983 ac_gphoto2_libs=""
9984 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9986 case "$i" in
9987 -L/usr/lib|-L/usr/lib64) ;;
9988 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9989 esac
9990 done
9991 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9993 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
9994 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9995 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
9997 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
9998 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
9999 $as_echo_n "(cached) " >&6
10000 else
10001 ac_check_lib_save_LIBS=$LIBS
10002 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10006 /* Override any GCC internal prototype to avoid an error.
10007 Use char because int might match the return type of a GCC
10008 builtin and then its argument prototype would still apply. */
10009 #ifdef __cplusplus
10010 extern "C"
10011 #endif
10012 char gp_camera_new ();
10014 main ()
10016 return gp_camera_new ();
10018 return 0;
10020 _ACEOF
10021 if ac_fn_c_try_link "$LINENO"; then :
10022 ac_cv_lib_gphoto2_gp_camera_new=yes
10023 else
10024 ac_cv_lib_gphoto2_gp_camera_new=no
10026 rm -f core conftest.err conftest.$ac_objext \
10027 conftest$ac_exeext conftest.$ac_ext
10028 LIBS=$ac_check_lib_save_LIBS
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10031 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10032 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10034 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10036 GPHOTO2LIBS="$ac_gphoto2_libs"
10038 GPHOTO2INCL="$ac_gphoto2_incl"
10045 CPPFLAGS="$ac_save_CPPFLAGS"
10047 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10048 case "x$with_gphoto" in
10049 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10050 xno) ;;
10051 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10052 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10053 esac
10057 if test "$ac_cv_header_resolv_h" = "yes"
10058 then
10059 ac_save_LIBS="$LIBS"
10060 for lib in '' -lresolv
10062 LIBS="$lib $ac_save_LIBS"
10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10065 #ifdef HAVE_NETINET_IN_H
10066 #include <netinet/in.h>
10067 #endif
10068 #include <resolv.h>
10070 main ()
10072 res_query("foo",ns_c_in,0,0,0);
10074 return 0;
10076 _ACEOF
10077 if ac_fn_c_try_link "$LINENO"; then :
10079 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10081 RESOLVLIBS="$lib"
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 if test "${RESOLVLIBS+set}" = set; then
10087 break
10089 done
10090 LIBS="$ac_save_LIBS"
10093 LCMSLIBS=""
10095 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10096 then
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10098 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10099 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10100 $as_echo_n "(cached) " >&6
10101 else
10102 ac_check_lib_save_LIBS=$LIBS
10103 LIBS="-llcms $LIBS"
10104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105 /* end confdefs.h. */
10107 /* Override any GCC internal prototype to avoid an error.
10108 Use char because int might match the return type of a GCC
10109 builtin and then its argument prototype would still apply. */
10110 #ifdef __cplusplus
10111 extern "C"
10112 #endif
10113 char cmsOpenProfileFromFile ();
10115 main ()
10117 return cmsOpenProfileFromFile ();
10119 return 0;
10121 _ACEOF
10122 if ac_fn_c_try_link "$LINENO"; then :
10123 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10124 else
10125 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10127 rm -f core conftest.err conftest.$ac_objext \
10128 conftest$ac_exeext conftest.$ac_ext
10129 LIBS=$ac_check_lib_save_LIBS
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10132 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10133 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10135 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10137 LCMSLIBS="-llcms"
10141 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10142 case "x$with_cms" in
10143 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10144 xno) ;;
10145 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10146 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10147 esac
10150 if test "x$with_freetype" != "xno"
10151 then
10152 for ac_prog in freetype-config freetype2-config
10154 # Extract the first word of "$ac_prog", so it can be a program name with args.
10155 set dummy $ac_prog; ac_word=$2
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10157 $as_echo_n "checking for $ac_word... " >&6; }
10158 if ${ac_cv_prog_ft_devel+:} false; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 if test -n "$ft_devel"; then
10162 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10163 else
10164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10165 for as_dir in $PATH
10167 IFS=$as_save_IFS
10168 test -z "$as_dir" && as_dir=.
10169 for ac_exec_ext in '' $ac_executable_extensions; do
10170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10171 ac_cv_prog_ft_devel="$ac_prog"
10172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10173 break 2
10175 done
10176 done
10177 IFS=$as_save_IFS
10181 ft_devel=$ac_cv_prog_ft_devel
10182 if test -n "$ft_devel"; then
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10184 $as_echo "$ft_devel" >&6; }
10185 else
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10187 $as_echo "no" >&6; }
10191 test -n "$ft_devel" && break
10192 done
10193 test -n "$ft_devel" || ft_devel="no"
10195 if test "$ft_devel" != "no"
10196 then
10197 ac_freetype_incl=`$ft_devel --cflags`
10198 ac_freetype_libs=`$ft_devel --libs`
10200 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10202 $as_echo_n "checking for -lfreetype... " >&6; }
10203 if ${ac_cv_lib_soname_freetype+:} false; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10206 ac_check_soname_save_LIBS=$LIBS
10207 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10209 /* end confdefs.h. */
10211 /* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
10214 #ifdef __cplusplus
10215 extern "C"
10216 #endif
10217 char FT_Init_FreeType ();
10219 main ()
10221 return FT_Init_FreeType ();
10223 return 0;
10225 _ACEOF
10226 if ac_fn_c_try_link "$LINENO"; then :
10227 case "$LIBEXT" in
10228 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10229 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'` ;;
10230 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10231 esac
10233 rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235 LIBS=$ac_check_soname_save_LIBS
10237 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10239 $as_echo "not found" >&6; }
10240 ft_lib=no
10241 else
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10243 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10245 cat >>confdefs.h <<_ACEOF
10246 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10247 _ACEOF
10249 ft_lib=yes
10251 if test "$ft_lib" = "yes"
10252 then
10253 ac_save_CPPFLAGS="$CPPFLAGS"
10254 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10255 for ac_header in ft2build.h \
10256 freetype/freetype.h \
10257 freetype/ftglyph.h \
10258 freetype/fttypes.h \
10259 freetype/tttables.h \
10260 freetype/ftsnames.h \
10261 freetype/ttnameid.h \
10262 freetype/ftoutln.h \
10263 freetype/ftwinfnt.h \
10264 freetype/ftmodapi.h \
10265 freetype/ftlcdfil.h
10266 do :
10267 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10268 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10269 # include <ft2build.h>
10270 #endif
10272 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10273 cat >>confdefs.h <<_ACEOF
10274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10275 _ACEOF
10279 done
10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h. */
10283 #include <ft2build.h>
10284 #include <freetype/fttrigon.h>
10285 _ACEOF
10286 if ac_fn_c_try_cpp "$LINENO"; then :
10288 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10290 wine_cv_fttrigon=yes
10291 else
10292 wine_cv_fttrigon=no
10294 rm -f conftest.err conftest.i conftest.$ac_ext
10295 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10297 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10299 cat >>confdefs.h <<_ACEOF
10300 #define HAVE_FT_TRUETYPEENGINETYPE 1
10301 _ACEOF
10306 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10307 then
10309 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10311 FREETYPELIBS="$ac_freetype_libs"
10313 FREETYPEINCL="$ac_freetype_incl"
10318 if test "x$FREETYPELIBS" = "x"; then :
10319 case "x$with_freetype" in
10320 xno) ;;
10321 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10322 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10323 esac
10325 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10328 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10329 if ${ac_cv_c_ppdev+:} false; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h. */
10334 #ifdef HAVE_SYS_IOCTL_H
10335 # include <sys/ioctl.h>
10336 #endif
10337 #include <linux/ppdev.h>
10339 main ()
10341 ioctl (1,PPCLAIM,0)
10343 return 0;
10345 _ACEOF
10346 if ac_fn_c_try_compile "$LINENO"; then :
10347 ac_cv_c_ppdev="yes"
10348 else
10349 ac_cv_c_ppdev="no"
10351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10354 $as_echo "$ac_cv_c_ppdev" >&6; }
10355 if test "$ac_cv_c_ppdev" = "yes"
10356 then
10358 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10362 ac_wine_check_funcs_save_LIBS="$LIBS"
10363 LIBS="$LIBS $LIBPTHREAD"
10364 for ac_func in \
10365 pthread_attr_get_np \
10366 pthread_getattr_np \
10367 pthread_get_stackaddr_np \
10368 pthread_get_stacksize_np
10369 do :
10370 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10371 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10372 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10373 cat >>confdefs.h <<_ACEOF
10374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10375 _ACEOF
10378 done
10380 LIBS="$ac_wine_check_funcs_save_LIBS"
10382 if test "$ac_cv_header_zlib_h" = "yes"
10383 then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10385 $as_echo_n "checking for inflate in -lz... " >&6; }
10386 if ${ac_cv_lib_z_inflate+:} false; then :
10387 $as_echo_n "(cached) " >&6
10388 else
10389 ac_check_lib_save_LIBS=$LIBS
10390 LIBS="-lz $LIBS"
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10394 /* Override any GCC internal prototype to avoid an error.
10395 Use char because int might match the return type of a GCC
10396 builtin and then its argument prototype would still apply. */
10397 #ifdef __cplusplus
10398 extern "C"
10399 #endif
10400 char inflate ();
10402 main ()
10404 return inflate ();
10406 return 0;
10408 _ACEOF
10409 if ac_fn_c_try_link "$LINENO"; then :
10410 ac_cv_lib_z_inflate=yes
10411 else
10412 ac_cv_lib_z_inflate=no
10414 rm -f core conftest.err conftest.$ac_objext \
10415 conftest$ac_exeext conftest.$ac_ext
10416 LIBS=$ac_check_lib_save_LIBS
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10419 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10420 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10422 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10424 ZLIB="-lz"
10429 if test "x$ZLIB" = "x"; then :
10430 case "x$with_zlib" in
10431 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10432 xno) ;;
10433 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10434 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10435 esac
10438 if test "x$enable_tools" != xno
10439 then
10440 if test "$ac_cv_header_gettext_po_h" = "yes"
10441 then
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10443 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10444 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10445 $as_echo_n "(cached) " >&6
10446 else
10447 ac_check_lib_save_LIBS=$LIBS
10448 LIBS="-lgettextpo $LIBS"
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10452 /* Override any GCC internal prototype to avoid an error.
10453 Use char because int might match the return type of a GCC
10454 builtin and then its argument prototype would still apply. */
10455 #ifdef __cplusplus
10456 extern "C"
10457 #endif
10458 char po_message_msgctxt ();
10460 main ()
10462 return po_message_msgctxt ();
10464 return 0;
10466 _ACEOF
10467 if ac_fn_c_try_link "$LINENO"; then :
10468 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10469 else
10470 ac_cv_lib_gettextpo_po_message_msgctxt=no
10472 rm -f core conftest.err conftest.$ac_objext \
10473 conftest$ac_exeext conftest.$ac_ext
10474 LIBS=$ac_check_lib_save_LIBS
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10477 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10478 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10480 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10482 LIBGETTEXTPO="-lgettextpo"
10487 if test "x$LIBGETTEXTPO" = "x"; then :
10488 case "x$with_gettextpo" in
10489 x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
10490 xno) ;;
10491 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
10492 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10493 esac
10497 if test "x$with_gstreamer" != "xno"
10498 then
10499 ac_save_CPPFLAGS="$CPPFLAGS"
10500 if test "$PKG_CONFIG" != "false"; then
10501 ac_gst_incl=""
10502 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10504 case "$i" in
10505 -I*) ac_gst_incl="$ac_gst_incl $i";;
10506 esac
10507 done
10508 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10509 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10510 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10511 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10512 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10513 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10515 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10518 #include <gst/app/gstappsink.h>
10520 main ()
10522 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10524 return 0;
10526 _ACEOF
10527 if ac_fn_c_try_compile "$LINENO"; then :
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10529 $as_echo "yes" >&6; }
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10531 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10532 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10533 $as_echo_n "(cached) " >&6
10534 else
10535 ac_check_lib_save_LIBS=$LIBS
10536 LIBS="-lgstreamer-0.10 $LIBS"
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10540 /* Override any GCC internal prototype to avoid an error.
10541 Use char because int might match the return type of a GCC
10542 builtin and then its argument prototype would still apply. */
10543 #ifdef __cplusplus
10544 extern "C"
10545 #endif
10546 char gst_pad_get_caps_reffed ();
10548 main ()
10550 return gst_pad_get_caps_reffed ();
10552 return 0;
10554 _ACEOF
10555 if ac_fn_c_try_link "$LINENO"; then :
10556 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10557 else
10558 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10560 rm -f core conftest.err conftest.$ac_objext \
10561 conftest$ac_exeext conftest.$ac_ext
10562 LIBS=$ac_check_lib_save_LIBS
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10565 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10566 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10568 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10569 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10570 $as_echo_n "(cached) " >&6
10571 else
10572 ac_check_lib_save_LIBS=$LIBS
10573 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575 /* end confdefs.h. */
10577 /* Override any GCC internal prototype to avoid an error.
10578 Use char because int might match the return type of a GCC
10579 builtin and then its argument prototype would still apply. */
10580 #ifdef __cplusplus
10581 extern "C"
10582 #endif
10583 char gst_app_buffer_new ();
10585 main ()
10587 return gst_app_buffer_new ();
10589 return 0;
10591 _ACEOF
10592 if ac_fn_c_try_link "$LINENO"; then :
10593 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10594 else
10595 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10597 rm -f core conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_lib_save_LIBS
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10602 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10603 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10604 GSTREAMER_LIBS="$ac_gst_libs"
10606 GSTREAMER_INCL="$ac_gst_incl"
10612 else
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614 $as_echo "no" >&6; }
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10624 CPPFLAGS="$ac_save_CPPFLAGS"
10626 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10627 case "x$with_gstreamer" in
10628 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10629 xno) ;;
10630 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10631 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10632 esac
10634 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10636 ALSALIBS=""
10638 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10639 then
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10641 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10642 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645 ac_check_lib_save_LIBS=$LIBS
10646 LIBS="-lasound $LIBS"
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10650 /* Override any GCC internal prototype to avoid an error.
10651 Use char because int might match the return type of a GCC
10652 builtin and then its argument prototype would still apply. */
10653 #ifdef __cplusplus
10654 extern "C"
10655 #endif
10656 char snd_pcm_hw_params_get_access_mask ();
10658 main ()
10660 return snd_pcm_hw_params_get_access_mask ();
10662 return 0;
10664 _ACEOF
10665 if ac_fn_c_try_link "$LINENO"; then :
10666 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10667 else
10668 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10670 rm -f core conftest.err conftest.$ac_objext \
10671 conftest$ac_exeext conftest.$ac_ext
10672 LIBS=$ac_check_lib_save_LIBS
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10675 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10676 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10679 #ifdef HAVE_ALSA_ASOUNDLIB_H
10680 #include <alsa/asoundlib.h>
10681 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10682 #include <sys/asoundlib.h>
10683 #endif
10685 main ()
10687 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10689 return 0;
10691 _ACEOF
10692 if ac_fn_c_try_compile "$LINENO"; then :
10693 ALSALIBS="-lasound"
10695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10700 if test "x$with_oss" != xno
10701 then
10702 ac_save_CPPFLAGS="$CPPFLAGS"
10703 if test -f /etc/oss.conf
10704 then
10705 . /etc/oss.conf
10707 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10708 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10709 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10710 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10711 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10713 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10715 cat >>confdefs.h <<_ACEOF
10716 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10717 _ACEOF
10719 OSS4INCL="$ac_oss_incl"
10726 CPPFLAGS="$ac_save_CPPFLAGS"
10727 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10728 then
10729 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10734 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10735 then
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10737 $as_echo_n "checking for -lcapi20... " >&6; }
10738 if ${ac_cv_lib_soname_capi20+:} false; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 ac_check_soname_save_LIBS=$LIBS
10742 LIBS="-lcapi20 $LIBS"
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10746 /* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10749 #ifdef __cplusplus
10750 extern "C"
10751 #endif
10752 char capi20_register ();
10754 main ()
10756 return capi20_register ();
10758 return 0;
10760 _ACEOF
10761 if ac_fn_c_try_link "$LINENO"; then :
10762 case "$LIBEXT" in
10763 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10764 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'` ;;
10765 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10766 esac
10768 rm -f core conftest.err conftest.$ac_objext \
10769 conftest$ac_exeext conftest.$ac_ext
10770 LIBS=$ac_check_soname_save_LIBS
10772 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10774 $as_echo "not found" >&6; }
10776 else
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10778 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10780 cat >>confdefs.h <<_ACEOF
10781 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10782 _ACEOF
10787 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10788 case "x$with_capi" in
10789 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10790 xno) ;;
10791 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10792 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10793 esac
10796 CUPSINCL=""
10798 if test "x$with_cups" != "xno"
10799 then
10800 ac_save_CPPFLAGS="$CPPFLAGS"
10801 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10802 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10803 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10804 for ac_header in cups/cups.h
10805 do :
10806 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10807 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
10808 cat >>confdefs.h <<_ACEOF
10809 #define HAVE_CUPS_CUPS_H 1
10810 _ACEOF
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10812 $as_echo_n "checking for -lcups... " >&6; }
10813 if ${ac_cv_lib_soname_cups+:} false; then :
10814 $as_echo_n "(cached) " >&6
10815 else
10816 ac_check_soname_save_LIBS=$LIBS
10817 LIBS="-lcups $ac_cups_libs $LIBS"
10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819 /* end confdefs.h. */
10821 /* Override any GCC internal prototype to avoid an error.
10822 Use char because int might match the return type of a GCC
10823 builtin and then its argument prototype would still apply. */
10824 #ifdef __cplusplus
10825 extern "C"
10826 #endif
10827 char cupsGetDefault ();
10829 main ()
10831 return cupsGetDefault ();
10833 return 0;
10835 _ACEOF
10836 if ac_fn_c_try_link "$LINENO"; then :
10837 case "$LIBEXT" in
10838 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10839 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'` ;;
10840 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10841 esac
10843 rm -f core conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10845 LIBS=$ac_check_soname_save_LIBS
10847 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10849 $as_echo "not found" >&6; }
10851 else
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10853 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10855 cat >>confdefs.h <<_ACEOF
10856 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10857 _ACEOF
10859 CUPSINCL="$ac_cups_cflags"
10863 done
10865 CPPFLAGS="$ac_save_CPPFLAGS"
10867 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10868 case "x$with_cups" in
10869 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10870 xno) ;;
10871 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
10872 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10873 esac
10876 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10877 then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10879 $as_echo_n "checking for -lfontconfig... " >&6; }
10880 if ${ac_cv_lib_soname_fontconfig+:} false; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883 ac_check_soname_save_LIBS=$LIBS
10884 LIBS="-lfontconfig $LIBS"
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10891 #ifdef __cplusplus
10892 extern "C"
10893 #endif
10894 char FcInit ();
10896 main ()
10898 return FcInit ();
10900 return 0;
10902 _ACEOF
10903 if ac_fn_c_try_link "$LINENO"; then :
10904 case "$LIBEXT" in
10905 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10906 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'` ;;
10907 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10908 esac
10910 rm -f core conftest.err conftest.$ac_objext \
10911 conftest$ac_exeext conftest.$ac_ext
10912 LIBS=$ac_check_soname_save_LIBS
10914 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10916 $as_echo "not found" >&6; }
10918 else
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10920 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10922 cat >>confdefs.h <<_ACEOF
10923 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10924 _ACEOF
10928 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
10929 then
10930 ac_save_CPPFLAGS="$CPPFLAGS"
10931 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10932 $as_unset ac_cv_header_fontconfig_fontconfig_h
10933 for ac_header in fontconfig/fontconfig.h
10934 do :
10935 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
10936 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
10937 cat >>confdefs.h <<_ACEOF
10938 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
10939 _ACEOF
10943 done
10945 CPPFLAGS="$ac_save_CPPFLAGS"
10946 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10947 then
10948 FONTCONFIGINCL="$X_CFLAGS"
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10951 $as_echo_n "checking for -lfontconfig... " >&6; }
10952 if ${ac_cv_lib_soname_fontconfig+:} false; then :
10953 $as_echo_n "(cached) " >&6
10954 else
10955 ac_check_soname_save_LIBS=$LIBS
10956 LIBS="-lfontconfig $X_LIBS $LIBS"
10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h. */
10960 /* Override any GCC internal prototype to avoid an error.
10961 Use char because int might match the return type of a GCC
10962 builtin and then its argument prototype would still apply. */
10963 #ifdef __cplusplus
10964 extern "C"
10965 #endif
10966 char FcInit ();
10968 main ()
10970 return FcInit ();
10972 return 0;
10974 _ACEOF
10975 if ac_fn_c_try_link "$LINENO"; then :
10976 case "$LIBEXT" in
10977 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10978 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'` ;;
10979 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10980 esac
10982 rm -f core conftest.err conftest.$ac_objext \
10983 conftest$ac_exeext conftest.$ac_ext
10984 LIBS=$ac_check_soname_save_LIBS
10986 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10988 $as_echo "not found" >&6; }
10990 else
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10992 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10994 cat >>confdefs.h <<_ACEOF
10995 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10996 _ACEOF
11002 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11003 case "x$with_fontconfig" in
11004 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11005 xno) ;;
11006 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11007 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11008 esac
11011 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11012 then
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11014 $as_echo_n "checking for -lssl... " >&6; }
11015 if ${ac_cv_lib_soname_ssl+:} false; then :
11016 $as_echo_n "(cached) " >&6
11017 else
11018 ac_check_soname_save_LIBS=$LIBS
11019 LIBS="-lssl $LIBS"
11020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11021 /* end confdefs.h. */
11023 /* Override any GCC internal prototype to avoid an error.
11024 Use char because int might match the return type of a GCC
11025 builtin and then its argument prototype would still apply. */
11026 #ifdef __cplusplus
11027 extern "C"
11028 #endif
11029 char SSL_library_init ();
11031 main ()
11033 return SSL_library_init ();
11035 return 0;
11037 _ACEOF
11038 if ac_fn_c_try_link "$LINENO"; then :
11039 case "$LIBEXT" in
11040 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11041 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'` ;;
11042 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11043 esac
11045 rm -f core conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext conftest.$ac_ext
11047 LIBS=$ac_check_soname_save_LIBS
11049 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11051 $as_echo "not found" >&6; }
11053 else
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11055 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11057 cat >>confdefs.h <<_ACEOF
11058 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11059 _ACEOF
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11064 $as_echo_n "checking for -lcrypto... " >&6; }
11065 if ${ac_cv_lib_soname_crypto+:} false; then :
11066 $as_echo_n "(cached) " >&6
11067 else
11068 ac_check_soname_save_LIBS=$LIBS
11069 LIBS="-lcrypto $LIBS"
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11073 /* Override any GCC internal prototype to avoid an error.
11074 Use char because int might match the return type of a GCC
11075 builtin and then its argument prototype would still apply. */
11076 #ifdef __cplusplus
11077 extern "C"
11078 #endif
11079 char BIO_new_socket ();
11081 main ()
11083 return BIO_new_socket ();
11085 return 0;
11087 _ACEOF
11088 if ac_fn_c_try_link "$LINENO"; then :
11089 case "$LIBEXT" in
11090 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11091 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'` ;;
11092 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11093 esac
11095 rm -f core conftest.err conftest.$ac_objext \
11096 conftest$ac_exeext conftest.$ac_ext
11097 LIBS=$ac_check_soname_save_LIBS
11099 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11101 $as_echo "not found" >&6; }
11103 else
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11105 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11107 cat >>confdefs.h <<_ACEOF
11108 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11109 _ACEOF
11114 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11115 case "x$with_openssl" in
11116 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11117 xno) ;;
11118 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11119 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11120 esac
11123 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11124 then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11126 $as_echo_n "checking for -lgsm... " >&6; }
11127 if ${ac_cv_lib_soname_gsm+:} false; then :
11128 $as_echo_n "(cached) " >&6
11129 else
11130 ac_check_soname_save_LIBS=$LIBS
11131 LIBS="-lgsm $LIBS"
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133 /* end confdefs.h. */
11135 /* Override any GCC internal prototype to avoid an error.
11136 Use char because int might match the return type of a GCC
11137 builtin and then its argument prototype would still apply. */
11138 #ifdef __cplusplus
11139 extern "C"
11140 #endif
11141 char gsm_create ();
11143 main ()
11145 return gsm_create ();
11147 return 0;
11149 _ACEOF
11150 if ac_fn_c_try_link "$LINENO"; then :
11151 case "$LIBEXT" in
11152 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11153 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'` ;;
11154 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11155 esac
11157 rm -f core conftest.err conftest.$ac_objext \
11158 conftest$ac_exeext conftest.$ac_ext
11159 LIBS=$ac_check_soname_save_LIBS
11161 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11163 $as_echo "not found" >&6; }
11165 else
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11167 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11169 cat >>confdefs.h <<_ACEOF
11170 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11171 _ACEOF
11176 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11177 case "x$with_gsm" in
11178 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11179 xno) ;;
11180 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11181 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11182 esac
11185 if test "$ac_cv_header_jpeglib_h" = "yes"
11186 then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11188 $as_echo_n "checking for -ljpeg... " >&6; }
11189 if ${ac_cv_lib_soname_jpeg+:} false; then :
11190 $as_echo_n "(cached) " >&6
11191 else
11192 ac_check_soname_save_LIBS=$LIBS
11193 LIBS="-ljpeg $LIBS"
11194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11195 /* end confdefs.h. */
11197 /* Override any GCC internal prototype to avoid an error.
11198 Use char because int might match the return type of a GCC
11199 builtin and then its argument prototype would still apply. */
11200 #ifdef __cplusplus
11201 extern "C"
11202 #endif
11203 char jpeg_start_decompress ();
11205 main ()
11207 return jpeg_start_decompress ();
11209 return 0;
11211 _ACEOF
11212 if ac_fn_c_try_link "$LINENO"; then :
11213 case "$LIBEXT" in
11214 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11215 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'` ;;
11216 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11217 esac
11219 rm -f core conftest.err conftest.$ac_objext \
11220 conftest$ac_exeext conftest.$ac_ext
11221 LIBS=$ac_check_soname_save_LIBS
11223 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11225 $as_echo "not found" >&6; }
11227 else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11229 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11231 cat >>confdefs.h <<_ACEOF
11232 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11233 _ACEOF
11238 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11239 case "x$with_jpeg" in
11240 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11241 xno) ;;
11242 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11243 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11244 esac
11247 if test "$ac_cv_header_png_h" = "yes"
11248 then
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11250 $as_echo_n "checking for -lpng... " >&6; }
11251 if ${ac_cv_lib_soname_png+:} false; then :
11252 $as_echo_n "(cached) " >&6
11253 else
11254 ac_check_soname_save_LIBS=$LIBS
11255 LIBS="-lpng -lm -lz $LIBS"
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11259 /* Override any GCC internal prototype to avoid an error.
11260 Use char because int might match the return type of a GCC
11261 builtin and then its argument prototype would still apply. */
11262 #ifdef __cplusplus
11263 extern "C"
11264 #endif
11265 char png_create_read_struct ();
11267 main ()
11269 return png_create_read_struct ();
11271 return 0;
11273 _ACEOF
11274 if ac_fn_c_try_link "$LINENO"; then :
11275 case "$LIBEXT" in
11276 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11277 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'` ;;
11278 *) 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'` ;;
11279 esac
11281 rm -f core conftest.err conftest.$ac_objext \
11282 conftest$ac_exeext conftest.$ac_ext
11283 LIBS=$ac_check_soname_save_LIBS
11285 if test "x$ac_cv_lib_soname_png" = "x"; then :
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11287 $as_echo "not found" >&6; }
11289 else
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11291 $as_echo "$ac_cv_lib_soname_png" >&6; }
11293 cat >>confdefs.h <<_ACEOF
11294 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11295 _ACEOF
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11300 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11301 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11302 $as_echo_n "(cached) " >&6
11303 else
11304 ac_check_lib_save_LIBS=$LIBS
11305 LIBS="-lpng -lm -lz $LIBS"
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11309 /* Override any GCC internal prototype to avoid an error.
11310 Use char because int might match the return type of a GCC
11311 builtin and then its argument prototype would still apply. */
11312 #ifdef __cplusplus
11313 extern "C"
11314 #endif
11315 char png_set_expand_gray_1_2_4_to_8 ();
11317 main ()
11319 return png_set_expand_gray_1_2_4_to_8 ();
11321 return 0;
11323 _ACEOF
11324 if ac_fn_c_try_link "$LINENO"; then :
11325 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11326 else
11327 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11329 rm -f core conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11331 LIBS=$ac_check_lib_save_LIBS
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11334 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11335 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11337 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11342 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11343 then
11344 ac_save_CPPFLAGS="$CPPFLAGS"
11345 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11346 $as_unset ac_cv_header_png_h
11347 for ac_header in png.h
11348 do :
11349 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11350 if test "x$ac_cv_header_png_h" = xyes; then :
11351 cat >>confdefs.h <<_ACEOF
11352 #define HAVE_PNG_H 1
11353 _ACEOF
11357 done
11359 CPPFLAGS="$ac_save_CPPFLAGS"
11360 if test "$ac_cv_header_png_h" = "yes"
11361 then
11362 PNGINCL="$X_CFLAGS"
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11365 $as_echo_n "checking for -lpng... " >&6; }
11366 if ${ac_cv_lib_soname_png+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369 ac_check_soname_save_LIBS=$LIBS
11370 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11374 /* Override any GCC internal prototype to avoid an error.
11375 Use char because int might match the return type of a GCC
11376 builtin and then its argument prototype would still apply. */
11377 #ifdef __cplusplus
11378 extern "C"
11379 #endif
11380 char png_create_read_struct ();
11382 main ()
11384 return png_create_read_struct ();
11386 return 0;
11388 _ACEOF
11389 if ac_fn_c_try_link "$LINENO"; then :
11390 case "$LIBEXT" in
11391 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11392 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'` ;;
11393 *) 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'` ;;
11394 esac
11396 rm -f core conftest.err conftest.$ac_objext \
11397 conftest$ac_exeext conftest.$ac_ext
11398 LIBS=$ac_check_soname_save_LIBS
11400 if test "x$ac_cv_lib_soname_png" = "x"; then :
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11402 $as_echo "not found" >&6; }
11404 else
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11406 $as_echo "$ac_cv_lib_soname_png" >&6; }
11408 cat >>confdefs.h <<_ACEOF
11409 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11410 _ACEOF
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11415 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11416 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11417 $as_echo_n "(cached) " >&6
11418 else
11419 ac_check_lib_save_LIBS=$LIBS
11420 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11424 /* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
11427 #ifdef __cplusplus
11428 extern "C"
11429 #endif
11430 char png_set_expand_gray_1_2_4_to_8 ();
11432 main ()
11434 return png_set_expand_gray_1_2_4_to_8 ();
11436 return 0;
11438 _ACEOF
11439 if ac_fn_c_try_link "$LINENO"; then :
11440 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11441 else
11442 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11444 rm -f core conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11446 LIBS=$ac_check_lib_save_LIBS
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11449 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11450 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11451 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11457 if test "x$ac_cv_lib_soname_png" = "x"; then :
11458 case "x$with_png" in
11459 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11460 xno) ;;
11461 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11462 This is an error since --with-png was requested." "$LINENO" 5 ;;
11463 esac
11466 if test "$ac_cv_header_tiffio_h" = "yes"
11467 then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11469 $as_echo_n "checking for -ltiff... " >&6; }
11470 if ${ac_cv_lib_soname_tiff+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 ac_check_soname_save_LIBS=$LIBS
11474 LIBS="-ltiff $LIBS"
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11478 /* Override any GCC internal prototype to avoid an error.
11479 Use char because int might match the return type of a GCC
11480 builtin and then its argument prototype would still apply. */
11481 #ifdef __cplusplus
11482 extern "C"
11483 #endif
11484 char TIFFClientOpen ();
11486 main ()
11488 return TIFFClientOpen ();
11490 return 0;
11492 _ACEOF
11493 if ac_fn_c_try_link "$LINENO"; then :
11494 case "$LIBEXT" in
11495 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11496 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'` ;;
11497 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11498 esac
11500 rm -f core conftest.err conftest.$ac_objext \
11501 conftest$ac_exeext conftest.$ac_ext
11502 LIBS=$ac_check_soname_save_LIBS
11504 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11506 $as_echo "not found" >&6; }
11508 else
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11510 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11512 cat >>confdefs.h <<_ACEOF
11513 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11514 _ACEOF
11519 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11520 case "x$with_tiff" in
11521 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11522 xno) ;;
11523 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11524 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11525 esac
11528 if test "$ac_cv_header_mpg123_h" = "yes"
11529 then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11531 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11532 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11533 $as_echo_n "(cached) " >&6
11534 else
11535 ac_check_lib_save_LIBS=$LIBS
11536 LIBS="-lmpg123 $LIBS"
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11540 /* Override any GCC internal prototype to avoid an error.
11541 Use char because int might match the return type of a GCC
11542 builtin and then its argument prototype would still apply. */
11543 #ifdef __cplusplus
11544 extern "C"
11545 #endif
11546 char mpg123_feed ();
11548 main ()
11550 return mpg123_feed ();
11552 return 0;
11554 _ACEOF
11555 if ac_fn_c_try_link "$LINENO"; then :
11556 ac_cv_lib_mpg123_mpg123_feed=yes
11557 else
11558 ac_cv_lib_mpg123_mpg123_feed=no
11560 rm -f core conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11562 LIBS=$ac_check_lib_save_LIBS
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11565 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11566 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11567 LIBMPG123="-lmpg123"
11572 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11573 case "x$with_mpg123" in
11574 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11575 xno) ;;
11576 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11577 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11578 esac
11580 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}
11582 if test "$ac_cv_header_AL_al_h" = "yes"
11583 then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11585 $as_echo_n "checking for -lopenal... " >&6; }
11586 if ${ac_cv_lib_soname_openal+:} false; then :
11587 $as_echo_n "(cached) " >&6
11588 else
11589 ac_check_soname_save_LIBS=$LIBS
11590 LIBS="-lopenal $LIBS"
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11594 /* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11597 #ifdef __cplusplus
11598 extern "C"
11599 #endif
11600 char alGetSource3i ();
11602 main ()
11604 return alGetSource3i ();
11606 return 0;
11608 _ACEOF
11609 if ac_fn_c_try_link "$LINENO"; then :
11610 case "$LIBEXT" in
11611 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11612 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'` ;;
11613 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11614 esac
11616 rm -f core conftest.err conftest.$ac_objext \
11617 conftest$ac_exeext conftest.$ac_ext
11618 LIBS=$ac_check_soname_save_LIBS
11620 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11622 $as_echo "not found" >&6; }
11624 else
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11626 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11628 cat >>confdefs.h <<_ACEOF
11629 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11630 _ACEOF
11632 LIBOPENAL="-lopenal"
11634 ac_cv_lib_openal=yes
11636 cat >>confdefs.h <<_ACEOF
11637 #define HAVE_OPENAL 1
11638 _ACEOF
11642 if test "x$ac_cv_lib_openal" != xyes; then :
11643 case "x$with_openal" in
11644 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11645 xno) ;;
11646 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11647 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11648 esac
11650 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11652 if test "$ac_cv_header_kstat_h" = "yes"
11653 then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11655 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11656 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 ac_check_lib_save_LIBS=$LIBS
11660 LIBS="-lkstat $LIBS"
11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11664 /* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 char kstat_open ();
11672 main ()
11674 return kstat_open ();
11676 return 0;
11678 _ACEOF
11679 if ac_fn_c_try_link "$LINENO"; then :
11680 ac_cv_lib_kstat_kstat_open=yes
11681 else
11682 ac_cv_lib_kstat_kstat_open=no
11684 rm -f core conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
11686 LIBS=$ac_check_lib_save_LIBS
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11689 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11690 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11692 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11694 LIBKSTAT="-lkstat"
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11701 $as_echo_n "checking for -lodbc... " >&6; }
11702 if ${ac_cv_lib_soname_odbc+:} false; then :
11703 $as_echo_n "(cached) " >&6
11704 else
11705 ac_check_soname_save_LIBS=$LIBS
11706 LIBS="-lodbc $LIBS"
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11710 /* Override any GCC internal prototype to avoid an error.
11711 Use char because int might match the return type of a GCC
11712 builtin and then its argument prototype would still apply. */
11713 #ifdef __cplusplus
11714 extern "C"
11715 #endif
11716 char SQLConnect ();
11718 main ()
11720 return SQLConnect ();
11722 return 0;
11724 _ACEOF
11725 if ac_fn_c_try_link "$LINENO"; then :
11726 case "$LIBEXT" in
11727 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11728 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'` ;;
11729 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11730 esac
11732 rm -f core conftest.err conftest.$ac_objext \
11733 conftest$ac_exeext conftest.$ac_ext
11734 LIBS=$ac_check_soname_save_LIBS
11736 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11738 $as_echo "not found" >&6; }
11739 cat >>confdefs.h <<_ACEOF
11740 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11741 _ACEOF
11743 else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11745 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11747 cat >>confdefs.h <<_ACEOF
11748 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11749 _ACEOF
11754 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11755 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
11756 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
11757 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11759 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
11760 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
11761 "x$with_alsa$with_coreaudio$with_oss" != xnonono
11762 then
11763 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11767 EXTRACFLAGS=""
11769 if test "x${GCC}" = "xyes"
11770 then
11771 EXTRACFLAGS="-Wall -pipe"
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11774 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11775 if ${ac_cv_c_gcc_strength_bug+:} false; then :
11776 $as_echo_n "(cached) " >&6
11777 else
11778 if test "$cross_compiling" = yes; then :
11779 ac_cv_c_gcc_strength_bug="yes"
11780 else
11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782 /* end confdefs.h. */
11783 int L[4] = {0,1,2,3};
11785 main ()
11787 static int Array[3];
11788 unsigned int B = 3;
11789 int i;
11790 for(i=0; i<B; i++) Array[i] = i - 3;
11791 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11792 L[i] = 4;
11793 return (Array[1] != -2 || L[2] != 3)
11795 return 0;
11797 _ACEOF
11798 if ac_fn_c_try_run "$LINENO"; then :
11799 ac_cv_c_gcc_strength_bug="no"
11800 else
11801 ac_cv_c_gcc_strength_bug="yes"
11803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11804 conftest.$ac_objext conftest.beam conftest.$ac_ext
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11809 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11810 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11811 then
11812 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11816 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11817 if ${ac_cv_cflags__fno_builtin+:} false; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 ac_wine_try_cflags_saved=$CFLAGS
11821 CFLAGS="$CFLAGS -fno-builtin"
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11824 int main(int argc, char **argv) { return 0; }
11825 _ACEOF
11826 if ac_fn_c_try_link "$LINENO"; then :
11827 ac_cv_cflags__fno_builtin=yes
11828 else
11829 ac_cv_cflags__fno_builtin=no
11831 rm -f core conftest.err conftest.$ac_objext \
11832 conftest$ac_exeext conftest.$ac_ext
11833 CFLAGS=$ac_wine_try_cflags_saved
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11836 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11837 if test $ac_cv_cflags__fno_builtin = yes; then :
11838 BUILTINFLAG="-fno-builtin"
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11842 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11843 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
11844 $as_echo_n "(cached) " >&6
11845 else
11846 ac_wine_try_cflags_saved=$CFLAGS
11847 CFLAGS="$CFLAGS -fno-strict-aliasing"
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__fno_strict_aliasing=yes
11854 else
11855 ac_cv_cflags__fno_strict_aliasing=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__fno_strict_aliasing" >&5
11862 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11863 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11864 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11867 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11868 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 ac_wine_try_cflags_saved=$CFLAGS
11872 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
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__Wdeclaration_after_statement=yes
11879 else
11880 ac_cv_cflags__Wdeclaration_after_statement=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__Wdeclaration_after_statement" >&5
11887 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
11888 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
11889 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
11892 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
11893 if ${ac_cv_cflags__Wempty_body+:} false; then :
11894 $as_echo_n "(cached) " >&6
11895 else
11896 ac_wine_try_cflags_saved=$CFLAGS
11897 CFLAGS="$CFLAGS -Wempty-body"
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__Wempty_body=yes
11904 else
11905 ac_cv_cflags__Wempty_body=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__Wempty_body" >&5
11912 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
11913 if test $ac_cv_cflags__Wempty_body = yes; then :
11914 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11917 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11918 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 ac_wine_try_cflags_saved=$CFLAGS
11922 CFLAGS="$CFLAGS -Wstrict-prototypes"
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__Wstrict_prototypes=yes
11929 else
11930 ac_cv_cflags__Wstrict_prototypes=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__Wstrict_prototypes" >&5
11937 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11938 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11939 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
11942 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
11943 if ${ac_cv_cflags__Wtype_limits+:} false; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 ac_wine_try_cflags_saved=$CFLAGS
11947 CFLAGS="$CFLAGS -Wtype-limits"
11948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949 /* end confdefs.h. */
11950 int main(int argc, char **argv) { return 0; }
11951 _ACEOF
11952 if ac_fn_c_try_link "$LINENO"; then :
11953 ac_cv_cflags__Wtype_limits=yes
11954 else
11955 ac_cv_cflags__Wtype_limits=no
11957 rm -f core conftest.err conftest.$ac_objext \
11958 conftest$ac_exeext conftest.$ac_ext
11959 CFLAGS=$ac_wine_try_cflags_saved
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
11962 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
11963 if test $ac_cv_cflags__Wtype_limits = yes; then :
11964 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
11967 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
11968 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 ac_wine_try_cflags_saved=$CFLAGS
11972 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
11973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974 /* end confdefs.h. */
11975 int main(int argc, char **argv) { return 0; }
11976 _ACEOF
11977 if ac_fn_c_try_link "$LINENO"; then :
11978 ac_cv_cflags__Wunused_but_set_parameter=yes
11979 else
11980 ac_cv_cflags__Wunused_but_set_parameter=no
11982 rm -f core conftest.err conftest.$ac_objext \
11983 conftest$ac_exeext conftest.$ac_ext
11984 CFLAGS=$ac_wine_try_cflags_saved
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
11987 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
11988 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
11989 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
11992 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
11993 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 ac_wine_try_cflags_saved=$CFLAGS
11997 CFLAGS="$CFLAGS -Wwrite-strings"
11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h. */
12000 int main(int argc, char **argv) { return 0; }
12001 _ACEOF
12002 if ac_fn_c_try_link "$LINENO"; then :
12003 ac_cv_cflags__Wwrite_strings=yes
12004 else
12005 ac_cv_cflags__Wwrite_strings=no
12007 rm -f core conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext conftest.$ac_ext
12009 CFLAGS=$ac_wine_try_cflags_saved
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12012 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12013 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12014 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12017 saved_CFLAGS="$CFLAGS"
12018 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12020 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12021 if ${ac_cv_c_string_h_warnings+:} false; then :
12022 $as_echo_n "(cached) " >&6
12023 else
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12026 #include <string.h>
12028 main ()
12032 return 0;
12034 _ACEOF
12035 if ac_fn_c_try_compile "$LINENO"; then :
12036 ac_cv_c_string_h_warnings=no
12037 else
12038 ac_cv_c_string_h_warnings=yes
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12043 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12044 CFLAGS="$saved_CFLAGS"
12045 if test "$ac_cv_c_string_h_warnings" = "no"
12046 then
12047 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12050 saved_CFLAGS="$CFLAGS"
12051 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12053 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12054 if ${ac_cv_c_logicalop_noisy+:} false; then :
12055 $as_echo_n "(cached) " >&6
12056 else
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059 #include <string.h>
12061 main ()
12063 char*f(const char *h,char n) {return strchr(h,n);}
12065 return 0;
12067 _ACEOF
12068 if ac_fn_c_try_compile "$LINENO"; then :
12069 ac_cv_c_logicalop_noisy=no
12070 else
12071 ac_cv_c_logicalop_noisy=yes
12073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12076 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12077 CFLAGS="$saved_CFLAGS"
12078 if test "$ac_cv_c_logicalop_noisy" = "no"
12079 then
12080 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12083 if test "x$enable_maintainer_mode" = "xyes"
12084 then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12086 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12087 if ${ac_cv_cflags__Werror+:} false; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 ac_wine_try_cflags_saved=$CFLAGS
12091 CFLAGS="$CFLAGS -Werror"
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12094 int main(int argc, char **argv) { return 0; }
12095 _ACEOF
12096 if ac_fn_c_try_link "$LINENO"; then :
12097 ac_cv_cflags__Werror=yes
12098 else
12099 ac_cv_cflags__Werror=no
12101 rm -f core conftest.err conftest.$ac_objext \
12102 conftest$ac_exeext conftest.$ac_ext
12103 CFLAGS=$ac_wine_try_cflags_saved
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12106 $as_echo "$ac_cv_cflags__Werror" >&6; }
12107 if test $ac_cv_cflags__Werror = yes; then :
12108 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12112 saved_CFLAGS="$CFLAGS"
12113 CFLAGS="$CFLAGS -Werror"
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12115 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12116 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12121 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12123 main ()
12127 return 0;
12129 _ACEOF
12130 if ac_fn_c_try_compile "$LINENO"; then :
12131 ac_cv_have_ms_hook_prologue="yes"
12132 else
12133 ac_cv_have_ms_hook_prologue="no"
12135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12138 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12139 CFLAGS="$saved_CFLAGS"
12140 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12141 then
12143 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12145 else
12146 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12153 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12154 if ${ac_cv_c_fortify_enabled+:} false; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12159 #include <string.h>
12161 main ()
12163 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12164 #error Fortify enabled
12165 #endif
12167 return 0;
12169 _ACEOF
12170 if ac_fn_c_try_compile "$LINENO"; then :
12171 ac_cv_c_fortify_enabled=no
12172 else
12173 ac_cv_c_fortify_enabled=yes
12175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12178 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12179 if test "$ac_cv_c_fortify_enabled" = yes
12180 then
12181 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12186 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12187 if ${ac_cv_c_extern_prefix+:} false; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192 extern int ac_test;
12194 main ()
12196 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12198 return 0;
12200 _ACEOF
12201 if ac_fn_c_try_link "$LINENO"; then :
12202 ac_cv_c_extern_prefix="yes"
12203 else
12204 ac_cv_c_extern_prefix="no"
12206 rm -f core conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12210 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12212 case $host_cpu in
12213 *i[3456789]86*)
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12215 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12216 if ${ac_cv_c_stdcall_suffix+:} false; then :
12217 $as_echo_n "(cached) " >&6
12218 else
12219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220 /* end confdefs.h. */
12221 #ifndef _MSC_VER
12222 #define __stdcall __attribute__((__stdcall__))
12223 #endif
12224 int __stdcall ac_test(int i) { return i; }
12226 main ()
12228 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12230 return 0;
12232 _ACEOF
12233 if ac_fn_c_try_link "$LINENO"; then :
12234 ac_cv_c_stdcall_suffix="yes"
12235 else
12236 ac_cv_c_stdcall_suffix="no"
12238 rm -f core conftest.err conftest.$ac_objext \
12239 conftest$ac_exeext conftest.$ac_ext
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12242 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12243 *) ac_cv_c_stdcall_suffix="no" ;;
12244 esac
12247 if test "$ac_cv_c_extern_prefix" = "yes"
12248 then
12249 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12251 asm_name_prefix="_"
12252 else
12253 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12255 asm_name_prefix=""
12259 if test "$ac_cv_c_stdcall_suffix" = "yes"
12260 then
12261 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12263 else
12264 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12270 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12271 if ${ac_cv_asm_func_def+:} false; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12278 main ()
12280 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12282 return 0;
12284 _ACEOF
12285 if ac_fn_c_try_link "$LINENO"; then :
12286 ac_cv_asm_func_def=".def"
12287 else
12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12292 main ()
12294 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12296 return 0;
12298 _ACEOF
12299 if ac_fn_c_try_link "$LINENO"; then :
12300 ac_cv_asm_func_def=".type @function"
12301 else
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h. */
12306 main ()
12308 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12310 return 0;
12312 _ACEOF
12313 if ac_fn_c_try_link "$LINENO"; then :
12314 ac_cv_asm_func_def=".type 2"
12315 else
12316 ac_cv_asm_func_def="unknown"
12318 rm -f core conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
12321 rm -f core conftest.err conftest.$ac_objext \
12322 conftest$ac_exeext conftest.$ac_ext
12324 rm -f core conftest.err conftest.$ac_objext \
12325 conftest$ac_exeext conftest.$ac_ext
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12328 $as_echo "$ac_cv_asm_func_def" >&6; }
12331 case "$ac_cv_asm_func_def" in
12332 ".def")
12333 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12335 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12336 ".type @function")
12337 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12339 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12340 ".type 2")
12341 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12343 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12345 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12347 asm_func_header="" ;;
12348 esac
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12351 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12352 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12357 asm(".text\n\t.long 0");
12359 main ()
12363 return 0;
12365 _ACEOF
12366 if ac_fn_c_try_compile "$LINENO"; then :
12367 ac_cv_c_asm_outside_funcs="yes"
12368 else
12369 ac_cv_c_asm_outside_funcs="no"
12371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12374 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12377 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12378 if ${ac_cv_c_dot_previous+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12385 main ()
12387 asm(".text\nac_test:\t.long 0\n\t.previous");
12389 return 0;
12391 _ACEOF
12392 if ac_fn_c_try_link "$LINENO"; then :
12393 ac_cv_c_dot_previous="yes"
12394 else
12395 ac_cv_c_dot_previous="no"
12397 rm -f core conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12401 $as_echo "$ac_cv_c_dot_previous" >&6; }
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12404 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12405 if ${ac_cv_c_cfi_support+:} false; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12410 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12412 main ()
12416 return 0;
12418 _ACEOF
12419 if ac_fn_c_try_compile "$LINENO"; then :
12420 ac_cv_c_cfi_support="yes"
12421 else
12422 ac_cv_c_cfi_support="no"
12424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12427 $as_echo "$ac_cv_c_cfi_support" >&6; }
12429 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12430 asm_func_trailer=""
12431 if test "$ac_cv_c_dot_previous" = "yes"
12432 then
12433 asm_func_trailer="\\n\\t.previous"
12435 if test "$ac_cv_c_cfi_support" = "yes"
12436 then
12437 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12438 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12440 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12442 UNWINDFLAGS=-fasynchronous-unwind-tables
12444 else
12445 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12449 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12452 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12453 then
12454 cat >>confdefs.h <<_ACEOF
12455 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12456 _ACEOF
12458 else
12459 cat >>confdefs.h <<_ACEOF
12460 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12461 _ACEOF
12465 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12468 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12472 LDPATH=""
12474 case $build_os in
12475 cygwin*|mingw32*)
12476 TOOLSEXT=".exe"
12478 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12480 darwin*|macosx*)
12483 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12485 esac
12487 case $host_os in
12488 mingw32*)
12489 CRTLIBS="-lmsvcrt"
12491 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12494 esac
12496 MAIN_BINARY="wine"
12498 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12500 case $host_os in
12501 linux*)
12502 case $host_cpu in
12503 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12505 x86_64*) EXTRA_BINARIES="wine64-preloader"
12507 esac
12509 esac
12512 ac_save_CFLAGS="$CFLAGS"
12513 CFLAGS="$CFLAGS $BUILTINFLAG"
12514 for ac_func in \
12515 _finite \
12516 _isnan \
12517 _pclose \
12518 _popen \
12519 _snprintf \
12520 _spawnvp \
12521 _strdup \
12522 _stricmp \
12523 _strnicmp \
12524 _strtoi64 \
12525 _strtoui64 \
12526 _vsnprintf \
12527 asctime_r \
12528 chsize \
12529 dlopen \
12530 epoll_create \
12531 ffs \
12532 finite \
12533 fnmatch \
12534 fork \
12535 fpclass \
12536 fstatfs \
12537 fstatvfs \
12538 ftruncate \
12539 futimes \
12540 futimesat \
12541 getattrlist \
12542 getdirentries \
12543 getopt_long \
12544 getpagesize \
12545 getpwuid \
12546 gettimeofday \
12547 getuid \
12548 kqueue \
12549 lstat \
12550 memmove \
12551 mmap \
12552 pclose \
12553 pipe2 \
12554 poll \
12555 popen \
12556 port_create \
12557 prctl \
12558 pread \
12559 pwrite \
12560 readdir \
12561 readlink \
12562 sched_yield \
12563 select \
12564 setproctitle \
12565 setrlimit \
12566 settimeofday \
12567 sigaltstack \
12568 sigprocmask \
12569 snprintf \
12570 spawnvp \
12571 statfs \
12572 statvfs \
12573 strcasecmp \
12574 strdup \
12575 strerror \
12576 strncasecmp \
12577 strtold \
12578 strtoll \
12579 strtoull \
12580 symlink \
12581 tcgetattr \
12582 thr_kill2 \
12583 timegm \
12584 usleep \
12585 vsnprintf \
12586 wait4 \
12587 waitpid \
12589 do :
12590 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12591 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12592 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12593 cat >>confdefs.h <<_ACEOF
12594 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12595 _ACEOF
12598 done
12600 CFLAGS="$ac_save_CFLAGS"
12602 if test "$ac_cv_func_dlopen" = no
12603 then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12605 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12606 if ${ac_cv_lib_dl_dlopen+:} false; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 ac_check_lib_save_LIBS=$LIBS
12610 LIBS="-ldl $LIBS"
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12614 /* Override any GCC internal prototype to avoid an error.
12615 Use char because int might match the return type of a GCC
12616 builtin and then its argument prototype would still apply. */
12617 #ifdef __cplusplus
12618 extern "C"
12619 #endif
12620 char dlopen ();
12622 main ()
12624 return dlopen ();
12626 return 0;
12628 _ACEOF
12629 if ac_fn_c_try_link "$LINENO"; then :
12630 ac_cv_lib_dl_dlopen=yes
12631 else
12632 ac_cv_lib_dl_dlopen=no
12634 rm -f core conftest.err conftest.$ac_objext \
12635 conftest$ac_exeext conftest.$ac_ext
12636 LIBS=$ac_check_lib_save_LIBS
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12639 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12640 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12641 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12642 LIBDL="-ldl"
12647 ac_wine_check_funcs_save_LIBS="$LIBS"
12648 LIBS="$LIBS $LIBDL"
12649 for ac_func in dladdr
12650 do :
12651 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12652 if test "x$ac_cv_func_dladdr" = xyes; then :
12653 cat >>confdefs.h <<_ACEOF
12654 #define HAVE_DLADDR 1
12655 _ACEOF
12658 done
12660 LIBS="$ac_wine_check_funcs_save_LIBS"
12662 if test "$ac_cv_func_poll" = no
12663 then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12665 $as_echo_n "checking for poll in -lpoll... " >&6; }
12666 if ${ac_cv_lib_poll_poll+:} false; then :
12667 $as_echo_n "(cached) " >&6
12668 else
12669 ac_check_lib_save_LIBS=$LIBS
12670 LIBS="-lpoll $LIBS"
12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h. */
12674 /* Override any GCC internal prototype to avoid an error.
12675 Use char because int might match the return type of a GCC
12676 builtin and then its argument prototype would still apply. */
12677 #ifdef __cplusplus
12678 extern "C"
12679 #endif
12680 char poll ();
12682 main ()
12684 return poll ();
12686 return 0;
12688 _ACEOF
12689 if ac_fn_c_try_link "$LINENO"; then :
12690 ac_cv_lib_poll_poll=yes
12691 else
12692 ac_cv_lib_poll_poll=no
12694 rm -f core conftest.err conftest.$ac_objext \
12695 conftest$ac_exeext conftest.$ac_ext
12696 LIBS=$ac_check_lib_save_LIBS
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12699 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12700 if test "x$ac_cv_lib_poll_poll" = xyes; then :
12701 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12702 LIBPOLL="-lpoll"
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12709 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12710 if ${ac_cv_search_gethostbyname+:} false; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713 ac_func_search_save_LIBS=$LIBS
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h. */
12717 /* Override any GCC internal prototype to avoid an error.
12718 Use char because int might match the return type of a GCC
12719 builtin and then its argument prototype would still apply. */
12720 #ifdef __cplusplus
12721 extern "C"
12722 #endif
12723 char gethostbyname ();
12725 main ()
12727 return gethostbyname ();
12729 return 0;
12731 _ACEOF
12732 for ac_lib in '' nsl; do
12733 if test -z "$ac_lib"; then
12734 ac_res="none required"
12735 else
12736 ac_res=-l$ac_lib
12737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12739 if ac_fn_c_try_link "$LINENO"; then :
12740 ac_cv_search_gethostbyname=$ac_res
12742 rm -f core conftest.err conftest.$ac_objext \
12743 conftest$ac_exeext
12744 if ${ac_cv_search_gethostbyname+:} false; then :
12745 break
12747 done
12748 if ${ac_cv_search_gethostbyname+:} false; then :
12750 else
12751 ac_cv_search_gethostbyname=no
12753 rm conftest.$ac_ext
12754 LIBS=$ac_func_search_save_LIBS
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12757 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12758 ac_res=$ac_cv_search_gethostbyname
12759 if test "$ac_res" != no; then :
12760 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12766 $as_echo_n "checking for library containing connect... " >&6; }
12767 if ${ac_cv_search_connect+:} false; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 ac_func_search_save_LIBS=$LIBS
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12774 /* Override any GCC internal prototype to avoid an error.
12775 Use char because int might match the return type of a GCC
12776 builtin and then its argument prototype would still apply. */
12777 #ifdef __cplusplus
12778 extern "C"
12779 #endif
12780 char connect ();
12782 main ()
12784 return connect ();
12786 return 0;
12788 _ACEOF
12789 for ac_lib in '' socket; do
12790 if test -z "$ac_lib"; then
12791 ac_res="none required"
12792 else
12793 ac_res=-l$ac_lib
12794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12796 if ac_fn_c_try_link "$LINENO"; then :
12797 ac_cv_search_connect=$ac_res
12799 rm -f core conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext
12801 if ${ac_cv_search_connect+:} false; then :
12802 break
12804 done
12805 if ${ac_cv_search_connect+:} false; then :
12807 else
12808 ac_cv_search_connect=no
12810 rm conftest.$ac_ext
12811 LIBS=$ac_func_search_save_LIBS
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12814 $as_echo "$ac_cv_search_connect" >&6; }
12815 ac_res=$ac_cv_search_connect
12816 if test "$ac_res" != no; then :
12817 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12823 $as_echo_n "checking for library containing inet_aton... " >&6; }
12824 if ${ac_cv_search_inet_aton+:} false; then :
12825 $as_echo_n "(cached) " >&6
12826 else
12827 ac_func_search_save_LIBS=$LIBS
12828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12829 /* end confdefs.h. */
12831 /* Override any GCC internal prototype to avoid an error.
12832 Use char because int might match the return type of a GCC
12833 builtin and then its argument prototype would still apply. */
12834 #ifdef __cplusplus
12835 extern "C"
12836 #endif
12837 char inet_aton ();
12839 main ()
12841 return inet_aton ();
12843 return 0;
12845 _ACEOF
12846 for ac_lib in '' resolv; do
12847 if test -z "$ac_lib"; then
12848 ac_res="none required"
12849 else
12850 ac_res=-l$ac_lib
12851 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12853 if ac_fn_c_try_link "$LINENO"; then :
12854 ac_cv_search_inet_aton=$ac_res
12856 rm -f core conftest.err conftest.$ac_objext \
12857 conftest$ac_exeext
12858 if ${ac_cv_search_inet_aton+:} false; then :
12859 break
12861 done
12862 if ${ac_cv_search_inet_aton+:} false; then :
12864 else
12865 ac_cv_search_inet_aton=no
12867 rm conftest.$ac_ext
12868 LIBS=$ac_func_search_save_LIBS
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12871 $as_echo "$ac_cv_search_inet_aton" >&6; }
12872 ac_res=$ac_cv_search_inet_aton
12873 if test "$ac_res" != no; then :
12874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12879 for ac_func in \
12880 getaddrinfo \
12881 getnameinfo \
12882 getnetbyname \
12883 getprotobyname \
12884 getprotobynumber \
12885 getservbyport \
12886 inet_network \
12887 inet_ntop \
12888 inet_pton \
12889 sendmsg \
12890 socketpair \
12892 do :
12893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12894 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12895 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12896 cat >>confdefs.h <<_ACEOF
12897 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12898 _ACEOF
12901 done
12904 LDAPLIBS=""
12906 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12907 then
12908 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12910 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
12912 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
12913 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
12914 $as_echo_n "(cached) " >&6
12915 else
12916 ac_check_lib_save_LIBS=$LIBS
12917 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12919 /* end confdefs.h. */
12921 /* Override any GCC internal prototype to avoid an error.
12922 Use char because int might match the return type of a GCC
12923 builtin and then its argument prototype would still apply. */
12924 #ifdef __cplusplus
12925 extern "C"
12926 #endif
12927 char ldap_initialize ();
12929 main ()
12931 return ldap_initialize ();
12933 return 0;
12935 _ACEOF
12936 if ac_fn_c_try_link "$LINENO"; then :
12937 ac_cv_lib_ldap_r_ldap_initialize=yes
12938 else
12939 ac_cv_lib_ldap_r_ldap_initialize=no
12941 rm -f core conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext conftest.$ac_ext
12943 LIBS=$ac_check_lib_save_LIBS
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12946 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12947 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
12949 $as_echo_n "checking for ber_init in -llber... " >&6; }
12950 if ${ac_cv_lib_lber_ber_init+:} false; then :
12951 $as_echo_n "(cached) " >&6
12952 else
12953 ac_check_lib_save_LIBS=$LIBS
12954 LIBS="-llber $LIBPTHREAD $LIBS"
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12958 /* Override any GCC internal prototype to avoid an error.
12959 Use char because int might match the return type of a GCC
12960 builtin and then its argument prototype would still apply. */
12961 #ifdef __cplusplus
12962 extern "C"
12963 #endif
12964 char ber_init ();
12966 main ()
12968 return ber_init ();
12970 return 0;
12972 _ACEOF
12973 if ac_fn_c_try_link "$LINENO"; then :
12974 ac_cv_lib_lber_ber_init=yes
12975 else
12976 ac_cv_lib_lber_ber_init=no
12978 rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12980 LIBS=$ac_check_lib_save_LIBS
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
12983 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
12984 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
12986 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
12988 LDAPLIBS="-lldap_r -llber"
12995 ac_wine_check_funcs_save_LIBS="$LIBS"
12996 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12997 for ac_func in \
12998 ldap_count_references \
12999 ldap_first_reference \
13000 ldap_next_reference \
13001 ldap_parse_reference \
13002 ldap_parse_sort_control \
13003 ldap_parse_sortresponse_control \
13004 ldap_parse_vlv_control \
13005 ldap_parse_vlvresponse_control
13006 do :
13007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13010 cat >>confdefs.h <<_ACEOF
13011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13012 _ACEOF
13015 done
13017 LIBS="$ac_wine_check_funcs_save_LIBS"
13019 if test "x$LDAPLIBS" = "x"; then :
13020 case "x$with_ldap" in
13021 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13022 xno) ;;
13023 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13024 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13025 esac
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13029 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13030 if ${wine_cv_one_arg_mkdir+:} false; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13035 #include <sys/stat.h>
13037 main ()
13039 mkdir("foo");
13041 return 0;
13043 _ACEOF
13044 if ac_fn_c_try_compile "$LINENO"; then :
13045 wine_cv_one_arg_mkdir=yes
13046 else
13047 wine_cv_one_arg_mkdir=no
13049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13052 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13053 if test "$wine_cv_one_arg_mkdir" = "yes"
13054 then
13056 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13061 $as_echo_n "checking for sched_setaffinity... " >&6; }
13062 if ${wine_cv_have_sched_setaffinity+:} false; then :
13063 $as_echo_n "(cached) " >&6
13064 else
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13067 #define _GNU_SOURCE
13068 #include <sched.h>
13070 main ()
13072 sched_setaffinity(0, 0, 0);
13074 return 0;
13076 _ACEOF
13077 if ac_fn_c_try_link "$LINENO"; then :
13078 wine_cv_have_sched_setaffinity=yes
13079 else
13080 wine_cv_have_sched_setaffinity=no
13082 rm -f core conftest.err conftest.$ac_objext \
13083 conftest$ac_exeext conftest.$ac_ext
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13086 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13087 if test "$wine_cv_have_sched_setaffinity" = "yes"
13088 then
13090 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13096 $as_echo_n "checking for inline... " >&6; }
13097 if ${ac_cv_c_inline+:} false; then :
13098 $as_echo_n "(cached) " >&6
13099 else
13100 ac_cv_c_inline=no
13101 for ac_kw in inline __inline__ __inline; do
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13104 #ifndef __cplusplus
13105 typedef int foo_t;
13106 static $ac_kw foo_t static_foo () {return 0; }
13107 $ac_kw foo_t foo () {return 0; }
13108 #endif
13110 _ACEOF
13111 if ac_fn_c_try_compile "$LINENO"; then :
13112 ac_cv_c_inline=$ac_kw
13114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13115 test "$ac_cv_c_inline" != no && break
13116 done
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13120 $as_echo "$ac_cv_c_inline" >&6; }
13122 case $ac_cv_c_inline in
13123 inline | yes) ;;
13125 case $ac_cv_c_inline in
13126 no) ac_val=;;
13127 *) ac_val=$ac_cv_c_inline;;
13128 esac
13129 cat >>confdefs.h <<_ACEOF
13130 #ifndef __cplusplus
13131 #define inline $ac_val
13132 #endif
13133 _ACEOF
13135 esac
13137 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13138 if test "x$ac_cv_type_mode_t" = xyes; then :
13140 cat >>confdefs.h <<_ACEOF
13141 #define HAVE_MODE_T 1
13142 _ACEOF
13146 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13147 if test "x$ac_cv_type_off_t" = xyes; then :
13149 cat >>confdefs.h <<_ACEOF
13150 #define HAVE_OFF_T 1
13151 _ACEOF
13155 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13156 if test "x$ac_cv_type_pid_t" = xyes; then :
13158 cat >>confdefs.h <<_ACEOF
13159 #define HAVE_PID_T 1
13160 _ACEOF
13164 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13165 if test "x$ac_cv_type_size_t" = xyes; then :
13167 cat >>confdefs.h <<_ACEOF
13168 #define HAVE_SIZE_T 1
13169 _ACEOF
13173 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13174 if test "x$ac_cv_type_ssize_t" = xyes; then :
13176 cat >>confdefs.h <<_ACEOF
13177 #define HAVE_SSIZE_T 1
13178 _ACEOF
13182 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13183 if test "x$ac_cv_type_long_long" = xyes; then :
13185 cat >>confdefs.h <<_ACEOF
13186 #define HAVE_LONG_LONG 1
13187 _ACEOF
13191 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13192 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13194 cat >>confdefs.h <<_ACEOF
13195 #define HAVE_FSBLKCNT_T 1
13196 _ACEOF
13200 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13201 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13203 cat >>confdefs.h <<_ACEOF
13204 #define HAVE_FSFILCNT_T 1
13205 _ACEOF
13210 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13211 #include <signal.h>
13213 if test "x$ac_cv_type_sigset_t" = xyes; then :
13215 cat >>confdefs.h <<_ACEOF
13216 #define HAVE_SIGSET_T 1
13217 _ACEOF
13222 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13224 if test "x$ac_cv_type_request_sense" = xyes; then :
13226 cat >>confdefs.h <<_ACEOF
13227 #define HAVE_REQUEST_SENSE 1
13228 _ACEOF
13234 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13235 #ifdef HAVE_SYS_SOCKET_H
13236 #include <sys/socket.h>
13237 #endif
13238 #ifdef HAVE_SYS_SOCKETVAR_H
13239 #include <sys/socketvar.h>
13240 #endif
13241 #ifdef HAVE_NET_ROUTE_H
13242 #include <net/route.h>
13243 #endif
13244 #ifdef HAVE_NETINET_IN_H
13245 #include <netinet/in.h>
13246 #endif
13247 #ifdef HAVE_NETINET_IN_SYSTM_H
13248 #include <netinet/in_systm.h>
13249 #endif
13250 #ifdef HAVE_NETINET_IP_H
13251 #include <netinet/ip.h>
13252 #endif
13253 #ifdef HAVE_NETINET_IN_PCB_H
13254 #include <netinet/in_pcb.h>
13255 #endif
13257 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13259 cat >>confdefs.h <<_ACEOF
13260 #define HAVE_STRUCT_XINPGEN 1
13261 _ACEOF
13267 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13268 #include <linux/input.h>
13269 #endif
13271 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13273 cat >>confdefs.h <<_ACEOF
13274 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13275 _ACEOF
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13282 $as_echo_n "checking for sigaddset... " >&6; }
13283 if ${wine_cv_have_sigaddset+:} false; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13288 #include <signal.h>
13290 main ()
13292 sigset_t set; sigaddset(&set,SIGTERM);
13294 return 0;
13296 _ACEOF
13297 if ac_fn_c_try_link "$LINENO"; then :
13298 wine_cv_have_sigaddset=yes
13299 else
13300 wine_cv_have_sigaddset=no
13302 rm -f core conftest.err conftest.$ac_objext \
13303 conftest$ac_exeext conftest.$ac_ext
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13306 $as_echo "$wine_cv_have_sigaddset" >&6; }
13307 if test "$wine_cv_have_sigaddset" = "yes"
13308 then
13310 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13316 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13317 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13318 $as_echo_n "(cached) " >&6
13319 else
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13322 #include <netdb.h>
13324 main ()
13327 char *name=0;
13328 struct hostent he;
13329 struct hostent *result;
13330 char *buf=0;
13331 int bufsize=0;
13332 int errnr;
13333 char *addr=0;
13334 int addrlen=0;
13335 int addrtype=0;
13336 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13337 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13340 return 0;
13342 _ACEOF
13343 if ac_fn_c_try_link "$LINENO"; then :
13344 wine_cv_linux_gethostbyname_r_6=yes
13345 else
13346 wine_cv_linux_gethostbyname_r_6=no
13349 rm -f core conftest.err conftest.$ac_objext \
13350 conftest$ac_exeext conftest.$ac_ext
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13354 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13355 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13356 then
13358 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13362 if test "$ac_cv_header_linux_joystick_h" = "yes"
13363 then
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13365 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13366 if ${wine_cv_linux_joystick_22_api+:} false; then :
13367 $as_echo_n "(cached) " >&6
13368 else
13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h. */
13372 #include <sys/ioctl.h>
13373 #include <sys/types.h>
13374 #include <linux/joystick.h>
13376 struct js_event blub;
13377 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13378 #error "no 2.2 header"
13379 #endif
13382 main ()
13384 /*empty*/
13386 return 0;
13388 _ACEOF
13389 if ac_fn_c_try_compile "$LINENO"; then :
13390 wine_cv_linux_joystick_22_api=yes
13391 else
13392 wine_cv_linux_joystick_22_api=no
13394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13398 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13399 if test "$wine_cv_linux_joystick_22_api" = "yes"
13400 then
13402 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13408 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13409 #ifdef HAVE_SYS_PARAM_H
13410 # include <sys/param.h>
13411 #endif
13412 #ifdef HAVE_SYS_MOUNT_H
13413 # include <sys/mount.h>
13414 #endif
13415 #ifdef HAVE_SYS_VFS_H
13416 # include <sys/vfs.h>
13417 #endif
13418 #ifdef HAVE_SYS_STATFS_H
13419 # include <sys/statfs.h>
13420 #endif
13422 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13424 cat >>confdefs.h <<_ACEOF
13425 #define HAVE_STRUCT_STATFS_F_BFREE 1
13426 _ACEOF
13430 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13431 #ifdef HAVE_SYS_PARAM_H
13432 # include <sys/param.h>
13433 #endif
13434 #ifdef HAVE_SYS_MOUNT_H
13435 # include <sys/mount.h>
13436 #endif
13437 #ifdef HAVE_SYS_VFS_H
13438 # include <sys/vfs.h>
13439 #endif
13440 #ifdef HAVE_SYS_STATFS_H
13441 # include <sys/statfs.h>
13442 #endif
13444 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13446 cat >>confdefs.h <<_ACEOF
13447 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13448 _ACEOF
13452 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13453 #ifdef HAVE_SYS_PARAM_H
13454 # include <sys/param.h>
13455 #endif
13456 #ifdef HAVE_SYS_MOUNT_H
13457 # include <sys/mount.h>
13458 #endif
13459 #ifdef HAVE_SYS_VFS_H
13460 # include <sys/vfs.h>
13461 #endif
13462 #ifdef HAVE_SYS_STATFS_H
13463 # include <sys/statfs.h>
13464 #endif
13466 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13468 cat >>confdefs.h <<_ACEOF
13469 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13470 _ACEOF
13474 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13475 #ifdef HAVE_SYS_PARAM_H
13476 # include <sys/param.h>
13477 #endif
13478 #ifdef HAVE_SYS_MOUNT_H
13479 # include <sys/mount.h>
13480 #endif
13481 #ifdef HAVE_SYS_VFS_H
13482 # include <sys/vfs.h>
13483 #endif
13484 #ifdef HAVE_SYS_STATFS_H
13485 # include <sys/statfs.h>
13486 #endif
13488 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13490 cat >>confdefs.h <<_ACEOF
13491 #define HAVE_STRUCT_STATFS_F_FFREE 1
13492 _ACEOF
13496 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13497 #ifdef HAVE_SYS_PARAM_H
13498 # include <sys/param.h>
13499 #endif
13500 #ifdef HAVE_SYS_MOUNT_H
13501 # include <sys/mount.h>
13502 #endif
13503 #ifdef HAVE_SYS_VFS_H
13504 # include <sys/vfs.h>
13505 #endif
13506 #ifdef HAVE_SYS_STATFS_H
13507 # include <sys/statfs.h>
13508 #endif
13510 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13512 cat >>confdefs.h <<_ACEOF
13513 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13514 _ACEOF
13518 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13519 #ifdef HAVE_SYS_PARAM_H
13520 # include <sys/param.h>
13521 #endif
13522 #ifdef HAVE_SYS_MOUNT_H
13523 # include <sys/mount.h>
13524 #endif
13525 #ifdef HAVE_SYS_VFS_H
13526 # include <sys/vfs.h>
13527 #endif
13528 #ifdef HAVE_SYS_STATFS_H
13529 # include <sys/statfs.h>
13530 #endif
13532 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13534 cat >>confdefs.h <<_ACEOF
13535 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13536 _ACEOF
13542 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13543 #include <sys/statvfs.h>
13544 #endif
13546 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13548 cat >>confdefs.h <<_ACEOF
13549 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13550 _ACEOF
13556 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13557 #ifdef HAVE_SYS_SOCKET_H
13558 # include <sys/socket.h>
13559 #endif
13560 #ifdef HAVE_SYS_UN_H
13561 # include <sys/un.h>
13562 #endif
13564 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13566 cat >>confdefs.h <<_ACEOF
13567 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13568 _ACEOF
13572 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13573 #ifdef HAVE_SYS_SOCKET_H
13574 # include <sys/socket.h>
13575 #endif
13576 #ifdef HAVE_SYS_UN_H
13577 # include <sys/un.h>
13578 #endif
13580 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13582 cat >>confdefs.h <<_ACEOF
13583 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13584 _ACEOF
13588 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13589 #ifdef HAVE_SYS_SOCKET_H
13590 # include <sys/socket.h>
13591 #endif
13592 #ifdef HAVE_SYS_UN_H
13593 # include <sys/un.h>
13594 #endif
13596 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13598 cat >>confdefs.h <<_ACEOF
13599 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13600 _ACEOF
13606 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13607 #ifdef HAVE_SCSI_SG_H
13608 #include <scsi/sg.h>
13609 #endif
13611 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13613 cat >>confdefs.h <<_ACEOF
13614 #define HAVE_SCSIREQ_T_CMD 1
13615 _ACEOF
13619 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>
13620 #ifdef HAVE_SCSI_SG_H
13621 #include <scsi/sg.h>
13622 #endif
13624 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13626 cat >>confdefs.h <<_ACEOF
13627 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13628 _ACEOF
13634 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13636 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
13638 cat >>confdefs.h <<_ACEOF
13639 #define HAVE_SIGINFO_T_SI_FD 1
13640 _ACEOF
13646 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13647 #ifdef HAVE_SYS_MTIO_H
13648 #include <sys/mtio.h>
13649 #endif
13651 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
13653 cat >>confdefs.h <<_ACEOF
13654 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13655 _ACEOF
13659 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13660 #ifdef HAVE_SYS_MTIO_H
13661 #include <sys/mtio.h>
13662 #endif
13664 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
13666 cat >>confdefs.h <<_ACEOF
13667 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13668 _ACEOF
13672 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13673 #ifdef HAVE_SYS_MTIO_H
13674 #include <sys/mtio.h>
13675 #endif
13677 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
13679 cat >>confdefs.h <<_ACEOF
13680 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13681 _ACEOF
13687 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13688 #include <getopt.h>
13689 #endif
13691 if test "x$ac_cv_member_struct_option_name" = xyes; then :
13693 cat >>confdefs.h <<_ACEOF
13694 #define HAVE_STRUCT_OPTION_NAME 1
13695 _ACEOF
13701 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13702 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13704 cat >>confdefs.h <<_ACEOF
13705 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13706 _ACEOF
13710 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13711 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13713 cat >>confdefs.h <<_ACEOF
13714 #define HAVE_STRUCT_STAT_ST_MTIM 1
13715 _ACEOF
13719 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13720 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
13722 cat >>confdefs.h <<_ACEOF
13723 #define HAVE_STRUCT_STAT_ST_CTIM 1
13724 _ACEOF
13728 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13729 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
13731 cat >>confdefs.h <<_ACEOF
13732 #define HAVE_STRUCT_STAT_ST_ATIM 1
13733 _ACEOF
13739 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
13740 #include <sys/types.h>
13741 #endif
13742 #ifdef HAVE_NETINET_IN_H
13743 #include <netinet/in.h>
13744 #endif
13746 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13748 cat >>confdefs.h <<_ACEOF
13749 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13750 _ACEOF
13756 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13757 #include <sys/types.h>
13758 #endif
13759 #ifdef HAVE_NETINET_IN_H
13760 # include <netinet/in.h>
13761 #endif
13762 #ifdef HAVE_ARPA_NAMESER_H
13763 # include <arpa/nameser.h>
13764 #endif
13766 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
13768 cat >>confdefs.h <<_ACEOF
13769 #define HAVE_NS_MSG__MSG_PTR 1
13770 _ACEOF
13776 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13777 #include <sys/types.h>
13778 #endif
13779 #ifdef HAVE_ALIAS_H
13780 #include <alias.h>
13781 #endif
13782 #ifdef HAVE_SYS_SOCKET_H
13783 #include <sys/socket.h>
13784 #endif
13785 #ifdef HAVE_SYS_SOCKETVAR_H
13786 #include <sys/socketvar.h>
13787 #endif
13788 #ifdef HAVE_SYS_TIMEOUT_H
13789 #include <sys/timeout.h>
13790 #endif
13791 #ifdef HAVE_NETINET_IN_H
13792 #include <netinet/in.h>
13793 #endif
13794 #ifdef HAVE_NETINET_IN_SYSTM_H
13795 #include <netinet/in_systm.h>
13796 #endif
13797 #ifdef HAVE_NETINET_IP_H
13798 #include <netinet/ip.h>
13799 #endif
13800 #ifdef HAVE_NETINET_IP_VAR_H
13801 #include <netinet/ip_var.h>
13802 #endif
13803 #ifdef HAVE_NETINET_IP_ICMP_H
13804 #include <netinet/ip_icmp.h>
13805 #endif
13806 #ifdef HAVE_NETINET_ICMP_VAR
13807 #include <netinet/icmp_var.h>
13808 #endif
13810 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
13812 cat >>confdefs.h <<_ACEOF
13813 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13814 _ACEOF
13820 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13821 #include <sys/types.h>
13822 #endif
13823 #ifdef HAVE_NET_IF_H
13824 # include <net/if.h>
13825 #endif
13827 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
13829 cat >>confdefs.h <<_ACEOF
13830 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13831 _ACEOF
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
13838 $as_echo_n "checking for timezone variable... " >&6; }
13839 if ${ac_cv_have_timezone+:} false; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h. */
13844 #include <time.h>
13846 main ()
13848 timezone = 1
13850 return 0;
13852 _ACEOF
13853 if ac_fn_c_try_link "$LINENO"; then :
13854 ac_cv_have_timezone="yes"
13855 else
13856 ac_cv_have_timezone="no"
13858 rm -f core conftest.err conftest.$ac_objext \
13859 conftest$ac_exeext conftest.$ac_ext
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
13862 $as_echo "$ac_cv_have_timezone" >&6; }
13863 if test "$ac_cv_have_timezone" = "yes"
13864 then
13866 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
13870 $as_echo_n "checking for daylight variable... " >&6; }
13871 if ${ac_cv_have_daylight+:} false; then :
13872 $as_echo_n "(cached) " >&6
13873 else
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13876 #include <time.h>
13878 main ()
13880 daylight = 1
13882 return 0;
13884 _ACEOF
13885 if ac_fn_c_try_link "$LINENO"; then :
13886 ac_cv_have_daylight="yes"
13887 else
13888 ac_cv_have_daylight="no"
13890 rm -f core conftest.err conftest.$ac_objext \
13891 conftest$ac_exeext conftest.$ac_ext
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
13894 $as_echo "$ac_cv_have_daylight" >&6; }
13895 if test "$ac_cv_have_daylight" = "yes"
13896 then
13898 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13902 ac_save_LIBS="$LIBS"
13903 LIBS="$LIBS -lm"
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
13905 $as_echo_n "checking for isinf... " >&6; }
13906 if ${ac_cv_have_isinf+:} false; then :
13907 $as_echo_n "(cached) " >&6
13908 else
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13911 #include <math.h>
13913 main ()
13915 float f = 0.0; return isinf(f)
13917 return 0;
13919 _ACEOF
13920 if ac_fn_c_try_link "$LINENO"; then :
13921 ac_cv_have_isinf="yes"
13922 else
13923 ac_cv_have_isinf="no"
13925 rm -f core conftest.err conftest.$ac_objext \
13926 conftest$ac_exeext conftest.$ac_ext
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
13929 $as_echo "$ac_cv_have_isinf" >&6; }
13930 if test "$ac_cv_have_isinf" = "yes"
13931 then
13933 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
13938 $as_echo_n "checking for isnan... " >&6; }
13939 if ${ac_cv_have_isnan+:} false; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13944 #include <math.h>
13946 main ()
13948 float f = 0.0; return isnan(f)
13950 return 0;
13952 _ACEOF
13953 if ac_fn_c_try_link "$LINENO"; then :
13954 ac_cv_have_isnan="yes"
13955 else
13956 ac_cv_have_isnan="no"
13958 rm -f core conftest.err conftest.$ac_objext \
13959 conftest$ac_exeext conftest.$ac_ext
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
13962 $as_echo "$ac_cv_have_isnan" >&6; }
13963 if test "$ac_cv_have_isnan" = "yes"
13964 then
13966 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13969 LIBS="$ac_save_LIBS"
13972 case $host_cpu in
13973 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
13974 $as_echo_n "checking whether we need to define __i386__... " >&6; }
13975 if ${ac_cv_cpp_def___i386__+:} false; then :
13976 $as_echo_n "(cached) " >&6
13977 else
13978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979 /* end confdefs.h. */
13980 #ifndef __i386__
13982 #endif
13983 _ACEOF
13984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13985 $EGREP "yes" >/dev/null 2>&1; then :
13986 ac_cv_cpp_def___i386__=yes
13987 else
13988 ac_cv_cpp_def___i386__=no
13990 rm -f conftest*
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
13994 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
13995 if test $ac_cv_cpp_def___i386__ = yes; then :
13996 CFLAGS="$CFLAGS -D__i386__"
13997 LINTFLAGS="$LINTFLAGS -D__i386__"
13998 fi ;;
13999 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14000 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14001 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14002 $as_echo_n "(cached) " >&6
14003 else
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14006 #ifndef __x86_64__
14008 #endif
14009 _ACEOF
14010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14011 $EGREP "yes" >/dev/null 2>&1; then :
14012 ac_cv_cpp_def___x86_64__=yes
14013 else
14014 ac_cv_cpp_def___x86_64__=no
14016 rm -f conftest*
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14020 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14021 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14022 CFLAGS="$CFLAGS -D__x86_64__"
14023 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14024 fi ;;
14025 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14026 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14027 if ${ac_cv_cpp_def___sparc__+:} false; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14032 #ifndef __sparc__
14034 #endif
14035 _ACEOF
14036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14037 $EGREP "yes" >/dev/null 2>&1; then :
14038 ac_cv_cpp_def___sparc__=yes
14039 else
14040 ac_cv_cpp_def___sparc__=no
14042 rm -f conftest*
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14046 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14047 if test $ac_cv_cpp_def___sparc__ = yes; then :
14048 CFLAGS="$CFLAGS -D__sparc__"
14049 LINTFLAGS="$LINTFLAGS -D__sparc__"
14050 fi ;;
14051 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14052 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14053 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14054 $as_echo_n "(cached) " >&6
14055 else
14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057 /* end confdefs.h. */
14058 #ifndef __powerpc__
14060 #endif
14061 _ACEOF
14062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14063 $EGREP "yes" >/dev/null 2>&1; then :
14064 ac_cv_cpp_def___powerpc__=yes
14065 else
14066 ac_cv_cpp_def___powerpc__=no
14068 rm -f conftest*
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14072 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14073 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14074 CFLAGS="$CFLAGS -D__powerpc__"
14075 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14076 fi ;;
14077 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14078 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14079 if ${ac_cv_cpp_def___arm__+:} false; then :
14080 $as_echo_n "(cached) " >&6
14081 else
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14084 #ifndef __arm__
14086 #endif
14087 _ACEOF
14088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14089 $EGREP "yes" >/dev/null 2>&1; then :
14090 ac_cv_cpp_def___arm__=yes
14091 else
14092 ac_cv_cpp_def___arm__=no
14094 rm -f conftest*
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14098 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14099 if test $ac_cv_cpp_def___arm__ = yes; then :
14100 CFLAGS="$CFLAGS -D__arm__"
14101 LINTFLAGS="$LINTFLAGS -D__arm__"
14102 fi ;;
14103 esac
14105 case $host_vendor in
14106 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14107 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14108 if ${ac_cv_cpp_def___sun__+:} false; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14113 #ifndef __sun__
14115 #endif
14116 _ACEOF
14117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14118 $EGREP "yes" >/dev/null 2>&1; then :
14119 ac_cv_cpp_def___sun__=yes
14120 else
14121 ac_cv_cpp_def___sun__=no
14123 rm -f conftest*
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14127 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14128 if test $ac_cv_cpp_def___sun__ = yes; then :
14129 CFLAGS="$CFLAGS -D__sun__"
14130 LINTFLAGS="$LINTFLAGS -D__sun__"
14131 fi ;;
14132 esac
14138 ac_config_commands="$ac_config_commands include/stamp-h"
14141 ALL_MAKEFILE_DEPENDS="
14142 # Rules automatically generated by configure
14144 .INIT: Makefile
14145 .MAKEFILEDEPS:
14146 all: Makefile
14147 Makefile: Makefile.in Make.vars.in Make.rules config.status
14148 @./config.status Make.tmp Makefile"
14150 ALL_POT_FILES=""
14151 ALL_TEST_RESOURCES=""
14154 wine_fn_append_file ()
14156 as_fn_append $1 " \\$as_nl $2"
14159 wine_fn_append_rule ()
14161 as_fn_append $1 "$as_nl$2"
14164 wine_fn_has_flag ()
14166 expr ",$2," : ".*,$1,.*" >/dev/null
14169 wine_fn_all_dir_rules ()
14171 ac_dir=$1
14172 ac_alldeps=$2
14173 ac_makedep="\$(MAKEDEP)"
14174 ac_input=Make.vars.in:$ac_dir/Makefile.in
14175 if test $ac_dir != tools
14176 then
14177 ac_alldeps="$2 $ac_makedep"
14179 case $2 in
14180 *.in) ac_input=$ac_input:$2 ;;
14181 *) ac_makedep="$2 $ac_makedep" ;;
14182 esac
14184 wine_fn_append_file ALL_DIRS $ac_dir
14185 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14186 "__clean__: $ac_dir/__clean__
14187 .PHONY: $ac_dir/__clean__
14188 $ac_dir/__clean__: $ac_dir/Makefile
14189 @cd $ac_dir && \$(MAKE) clean
14190 \$(RM) $ac_dir/Makefile
14191 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14192 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14193 depend: $ac_dir/__depend__
14194 .PHONY: $ac_dir/__depend__
14195 $ac_dir/__depend__: $ac_makedep dummy
14196 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14199 wine_fn_config_makefile ()
14201 ac_dir=$1
14202 ac_enable=$2
14203 ac_flags=$3
14204 ac_rules=$4
14205 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14206 return 0
14209 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
14210 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14211 "all: $ac_dir
14212 .PHONY: $ac_dir
14213 $ac_dir: $ac_dir/Makefile dummy
14214 @cd $ac_dir && \$(MAKE)"
14216 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14218 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14219 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14220 $ac_dir/__install__:: $ac_dir
14221 @cd $ac_dir && \$(MAKE) install
14222 $ac_dir/__uninstall__:: $ac_dir/Makefile
14223 @cd $ac_dir && \$(MAKE) uninstall
14224 install:: $ac_dir/__install__
14225 __uninstall__: $ac_dir/__uninstall__"
14227 if wine_fn_has_flag install-lib $ac_flags
14228 then
14229 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14230 ".PHONY: $ac_dir/__install-lib__
14231 $ac_dir/__install-lib__:: $ac_dir
14232 @cd $ac_dir && \$(MAKE) install-lib
14233 install-lib:: $ac_dir/__install-lib__"
14236 if wine_fn_has_flag install-dev $ac_flags
14237 then
14238 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14239 ".PHONY: $ac_dir/__install-dev
14240 $ac_dir/__install-dev__:: $ac_dir
14241 @cd $ac_dir && \$(MAKE) install-dev
14242 install-dev:: $ac_dir/__install-dev__"
14246 wine_fn_config_lib ()
14248 ac_name=$1
14249 ac_flags=$2
14250 ac_dir=dlls/$ac_name
14251 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14253 if wine_fn_has_flag install-dev $ac_flags
14254 then :
14255 else
14256 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14257 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14258 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14259 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14260 $ac_dir/__uninstall__::
14261 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14262 install install-dev:: $ac_dir/__install__
14263 __uninstall__: $ac_dir/__uninstall__"
14266 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14267 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14270 wine_fn_config_dll ()
14272 ac_name=$1
14273 ac_dir=dlls/$ac_name
14274 ac_enable=$2
14275 ac_flags=$3
14276 ac_implib=${4:-$ac_name}
14277 ac_file=$ac_dir/lib$ac_implib
14278 ac_dll=$ac_name
14279 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14280 ac_implibflags=""
14282 case $ac_name in
14283 *16) ac_implibflags=" -m16" ;;
14284 *.*) ;;
14285 *) ac_dll=$ac_dll.dll ;;
14286 esac
14288 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
14290 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14291 test "$ac_enable" != enable_win16 || return 0
14292 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14293 else
14294 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14295 "$ac_dir: __builddeps__
14296 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14297 @cd $ac_dir && \$(MAKE) \$@"
14299 if wine_fn_has_flag install-lib $ac_flags
14300 then :
14301 else
14302 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14303 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14304 install install-lib:: $ac_dir/__install-lib__
14305 __uninstall__: $ac_dir/__uninstall__"
14306 if test -n "$DLLEXT"
14307 then
14308 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14309 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14310 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14311 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14312 $ac_dir/__uninstall__::
14313 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14314 else
14315 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14316 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14317 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14318 $ac_dir/__uninstall__::
14319 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14323 if test "x$enable_maintainer_mode" = xyes
14324 then
14325 if wine_fn_has_flag mc $ac_flags
14326 then
14327 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14328 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14329 "$ac_dir/msg.pot: $ac_dir"
14331 if wine_fn_has_flag po $ac_flags
14332 then
14333 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14334 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14335 "$ac_dir/rsrc.pot: $ac_dir"
14340 if wine_fn_has_flag staticimplib $ac_flags
14341 then
14342 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14343 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14344 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14345 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14346 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14347 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14348 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14349 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14350 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14351 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14352 $ac_dir/__uninstall__::
14353 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14354 install install-dev:: $ac_dir/__install-dev__
14355 __uninstall__: $ac_dir/__uninstall__"
14357 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14358 then
14359 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14360 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14361 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14362 $ac_dir/__uninstall__::
14363 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14366 if test "x$CROSSTEST_DISABLE" = x
14367 then
14368 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14369 "__builddeps__: $ac_file.cross.a
14370 $ac_file.cross.a: $ac_dir/Makefile dummy
14371 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14374 elif wine_fn_has_flag implib $ac_flags
14375 then
14376 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14377 "__builddeps__: $ac_file.$IMPLIBEXT
14378 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14379 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14380 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14381 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14382 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14383 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14384 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14385 $ac_dir/__uninstall__::
14386 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14387 install install-dev:: $ac_dir/__install-dev__
14388 __uninstall__: $ac_dir/__uninstall__"
14389 if test "x$CROSSTEST_DISABLE" = x
14390 then
14391 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14392 "__builddeps__: $ac_file.cross.a
14393 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14394 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14397 if test "$ac_name" != "$ac_implib"
14398 then
14399 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14400 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14401 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14402 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14403 clean::
14404 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14405 if test "x$CROSSTEST_DISABLE" = x
14406 then
14407 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14408 "__builddeps__: dlls/lib$ac_implib.cross.a
14409 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14410 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14416 wine_fn_config_program ()
14418 ac_name=$1
14419 ac_dir=programs/$ac_name
14420 ac_enable=$2
14421 ac_flags=$3
14422 ac_program=$ac_name
14424 case $ac_name in
14425 *.*) ;;
14426 *) ac_program=$ac_program.exe ;;
14427 esac
14429 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
14431 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14433 else
14434 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14435 "$ac_dir: __builddeps__"
14437 if test "x$enable_maintainer_mode" = xyes
14438 then
14439 if wine_fn_has_flag mc $ac_flags
14440 then
14441 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14442 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14443 "$ac_dir/msg.pot: $ac_dir"
14445 if wine_fn_has_flag po $ac_flags
14446 then
14447 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14448 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14449 "$ac_dir/rsrc.pot: $ac_dir"
14453 wine_fn_has_flag install $ac_flags || return
14454 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14455 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14456 install install-lib:: $ac_dir/__install__
14457 __uninstall__: $ac_dir/__uninstall__"
14459 if test -n "$DLLEXT"
14460 then
14461 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14462 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14463 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14464 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14465 $ac_dir/__uninstall__::
14466 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14468 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14469 then
14470 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14471 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
14472 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14473 $ac_dir/__uninstall__::
14474 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14476 else
14477 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14478 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14479 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14480 $ac_dir/__uninstall__::
14481 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
14484 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14485 then
14486 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14487 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14488 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14489 $ac_dir/__uninstall__::
14490 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14495 wine_fn_config_test ()
14497 ac_dir=$1
14498 ac_name=$2
14499 ac_flags=$3
14500 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14501 wine_fn_all_dir_rules $ac_dir Maketest.rules
14503 if test "x$enable_tests" = xno; then :
14505 else
14506 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14507 "all: $ac_dir
14508 .PHONY: $ac_dir
14509 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14510 @cd $ac_dir && \$(MAKE)
14511 programs/winetest: $ac_dir
14512 check test: $ac_dir/__test__
14513 .PHONY: $ac_dir/__test__
14514 $ac_dir/__test__: dummy
14515 @cd $ac_dir && \$(MAKE) test
14516 testclean::
14517 \$(RM) $ac_dir/*.ok"
14519 if test "x$CROSSTEST_DISABLE" = x
14520 then
14521 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14522 "crosstest: $ac_dir/__crosstest__
14523 .PHONY: $ac_dir/__crosstest__
14524 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14525 @cd $ac_dir && \$(MAKE) crosstest"
14530 wine_fn_config_tool ()
14532 ac_dir=$1
14533 ac_flags=$2
14534 if test "x$enable_tools" = xno; then :
14535 return 0
14538 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
14540 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14541 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
14542 case $ac_dir in
14543 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14544 esac
14547 wine_fn_config_makerules ()
14549 ac_rules=$1
14550 ac_deps=$2
14551 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14552 "$ac_rules: $ac_rules.in $ac_deps config.status
14553 @./config.status $ac_rules
14554 distclean::
14555 \$(RM) $ac_rules"
14558 wine_fn_config_symlink ()
14560 ac_link=$1
14561 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14562 "$ac_link:
14563 @./config.status $ac_link
14564 distclean::
14565 \$(RM) $ac_link"
14568 if test "x$CROSSTEST_DISABLE" != x
14569 then
14570 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14571 "crosstest:
14572 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14574 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14575 wine_fn_config_symlink dlls/shell32/AUTHORS
14576 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14577 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14578 if test "x$enable_fonts" != xno; then
14579 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14580 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14582 if test "x$enable_fonts" != xno; then
14583 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14584 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14586 if test "x$enable_fonts" != xno; then
14587 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14588 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14590 if test "x$enable_fonts" != xno; then
14591 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14592 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14594 if test "x$enable_tools" != xno; then
14595 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14596 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14598 ac_config_links="$ac_config_links wine:tools/winewrapper"
14599 wine_fn_config_symlink wine
14600 if test "x$enable_win64" != xno; then
14601 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14602 wine_fn_config_symlink wine64
14605 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14607 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14609 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14611 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14613 ac_config_commands="$ac_config_commands dlls/user32/resources"
14615 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14617 ac_config_commands="$ac_config_commands include/wine"
14620 wine_fn_config_makerules Make.rules
14621 MAKE_RULES=Make.rules
14622 ac_config_files="$ac_config_files Make.rules"
14624 wine_fn_config_makerules Maketest.rules Make.rules
14625 MAKE_TEST_RULES=Maketest.rules
14626 ac_config_files="$ac_config_files Maketest.rules"
14628 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14629 MAKE_DLL_RULES=dlls/Makedll.rules
14630 ac_config_files="$ac_config_files dlls/Makedll.rules"
14632 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14633 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14634 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14636 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14637 MAKE_PROG_RULES=programs/Makeprog.rules
14638 ac_config_files="$ac_config_files programs/Makeprog.rules"
14641 wine_fn_config_dll acledit enable_acledit
14642 wine_fn_config_dll aclui enable_aclui implib
14643 wine_fn_config_dll activeds enable_activeds implib
14644 wine_fn_config_dll actxprxy enable_actxprxy
14645 wine_fn_config_lib adsiid
14646 wine_fn_config_dll advapi32 enable_advapi32 implib
14647 wine_fn_config_test dlls/advapi32/tests advapi32_test
14648 wine_fn_config_dll advpack enable_advpack implib
14649 wine_fn_config_test dlls/advpack/tests advpack_test
14650 wine_fn_config_dll amstream enable_amstream
14651 wine_fn_config_test dlls/amstream/tests amstream_test
14652 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14653 wine_fn_config_dll atl enable_atl implib
14654 wine_fn_config_test dlls/atl/tests atl_test
14655 wine_fn_config_dll authz enable_authz
14656 wine_fn_config_dll avicap32 enable_avicap32 implib
14657 wine_fn_config_dll avifil32 enable_avifil32 implib,po
14658 wine_fn_config_test dlls/avifil32/tests avifil32_test
14659 wine_fn_config_dll avifile.dll16 enable_win16
14660 wine_fn_config_dll avrt enable_avrt implib
14661 wine_fn_config_dll bcrypt enable_bcrypt
14662 wine_fn_config_dll browseui enable_browseui po
14663 wine_fn_config_test dlls/browseui/tests browseui_test
14664 wine_fn_config_dll cabinet enable_cabinet implib
14665 wine_fn_config_test dlls/cabinet/tests cabinet_test
14666 wine_fn_config_dll capi2032 enable_capi2032 implib
14667 wine_fn_config_dll cards enable_cards implib
14668 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14669 wine_fn_config_dll clusapi enable_clusapi implib
14670 wine_fn_config_dll comcat enable_comcat
14671 wine_fn_config_test dlls/comcat/tests comcat_test
14672 wine_fn_config_dll comctl32 enable_comctl32 implib,po
14673 wine_fn_config_test dlls/comctl32/tests comctl32_test
14674 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
14675 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14676 wine_fn_config_dll comm.drv16 enable_win16
14677 wine_fn_config_dll commdlg.dll16 enable_win16
14678 wine_fn_config_dll compobj.dll16 enable_win16
14679 wine_fn_config_dll compstui enable_compstui implib
14680 wine_fn_config_dll credui enable_credui implib,po
14681 wine_fn_config_test dlls/credui/tests credui_test
14682 wine_fn_config_dll crtdll enable_crtdll implib
14683 wine_fn_config_dll crypt32 enable_crypt32 implib,po
14684 wine_fn_config_test dlls/crypt32/tests crypt32_test
14685 wine_fn_config_dll cryptdlg enable_cryptdlg po
14686 wine_fn_config_dll cryptdll enable_cryptdll implib
14687 wine_fn_config_dll cryptnet enable_cryptnet implib
14688 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14689 wine_fn_config_dll cryptui enable_cryptui implib,po
14690 wine_fn_config_test dlls/cryptui/tests cryptui_test
14691 wine_fn_config_dll ctapi32 enable_ctapi32
14692 wine_fn_config_dll ctl3d.dll16 enable_win16
14693 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14694 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14695 wine_fn_config_dll d3d10 enable_d3d10 implib
14696 wine_fn_config_test dlls/d3d10/tests d3d10_test
14697 wine_fn_config_dll d3d10core enable_d3d10core implib
14698 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14699 wine_fn_config_dll d3d8 enable_d3d8 implib
14700 wine_fn_config_test dlls/d3d8/tests d3d8_test
14701 wine_fn_config_dll d3d9 enable_d3d9 implib
14702 wine_fn_config_test dlls/d3d9/tests d3d9_test
14703 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14704 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14705 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14706 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14707 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14708 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14709 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14710 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14711 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14712 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14713 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14714 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14715 wine_fn_config_dll d3dim enable_d3dim implib
14716 wine_fn_config_dll d3drm enable_d3drm implib
14717 wine_fn_config_test dlls/d3drm/tests d3drm_test
14718 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14719 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14720 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14721 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14722 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14723 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14724 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14725 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14726 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14727 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14728 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14729 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14730 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14731 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14732 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14733 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14734 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14735 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14736 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14737 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14738 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14739 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14740 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14741 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14742 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14743 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14744 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14745 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14746 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14747 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14748 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14749 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14750 wine_fn_config_dll d3dxof enable_d3dxof implib
14751 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14752 wine_fn_config_dll dbgeng enable_dbgeng implib
14753 wine_fn_config_dll dbghelp enable_dbghelp implib
14754 wine_fn_config_dll dciman32 enable_dciman32 implib
14755 wine_fn_config_dll ddeml.dll16 enable_win16
14756 wine_fn_config_dll ddraw enable_ddraw implib
14757 wine_fn_config_test dlls/ddraw/tests ddraw_test
14758 wine_fn_config_dll ddrawex enable_ddrawex
14759 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14760 wine_fn_config_dll devenum enable_devenum po
14761 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
14762 wine_fn_config_test dlls/dinput/tests dinput_test
14763 wine_fn_config_dll dinput8 enable_dinput8 implib
14764 wine_fn_config_test dlls/dinput8/tests dinput8_test
14765 wine_fn_config_dll dispdib.dll16 enable_win16
14766 wine_fn_config_dll dispex enable_dispex
14767 wine_fn_config_test dlls/dispex/tests dispex_test
14768 wine_fn_config_dll display.drv16 enable_win16
14769 wine_fn_config_dll dmband enable_dmband
14770 wine_fn_config_dll dmcompos enable_dmcompos
14771 wine_fn_config_dll dmime enable_dmime
14772 wine_fn_config_test dlls/dmime/tests dmime_test
14773 wine_fn_config_dll dmloader enable_dmloader
14774 wine_fn_config_test dlls/dmloader/tests dmloader_test
14775 wine_fn_config_dll dmscript enable_dmscript
14776 wine_fn_config_dll dmstyle enable_dmstyle
14777 wine_fn_config_dll dmsynth enable_dmsynth
14778 wine_fn_config_dll dmusic enable_dmusic
14779 wine_fn_config_dll dmusic32 enable_dmusic32 implib
14780 wine_fn_config_dll dnsapi enable_dnsapi implib
14781 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14782 wine_fn_config_dll dplay enable_dplay implib
14783 wine_fn_config_dll dplayx enable_dplayx implib
14784 wine_fn_config_test dlls/dplayx/tests dplayx_test
14785 wine_fn_config_dll dpnaddr enable_dpnaddr
14786 wine_fn_config_dll dpnet enable_dpnet implib
14787 wine_fn_config_test dlls/dpnet/tests dpnet_test
14788 wine_fn_config_dll dpnhpast enable_dpnhpast
14789 wine_fn_config_dll dpnlobby enable_dpnlobby
14790 wine_fn_config_dll dpwsockx enable_dpwsockx
14791 wine_fn_config_dll drmclien enable_drmclien
14792 wine_fn_config_dll dsound enable_dsound implib
14793 wine_fn_config_test dlls/dsound/tests dsound_test
14794 wine_fn_config_dll dssenh enable_dssenh
14795 wine_fn_config_dll dswave enable_dswave
14796 wine_fn_config_dll dwmapi enable_dwmapi implib
14797 wine_fn_config_dll dxdiagn enable_dxdiagn po
14798 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14799 wine_fn_config_lib dxerr8
14800 wine_fn_config_lib dxerr9
14801 wine_fn_config_dll dxgi enable_dxgi implib
14802 wine_fn_config_test dlls/dxgi/tests dxgi_test
14803 wine_fn_config_lib dxguid
14804 wine_fn_config_dll explorerframe enable_explorerframe
14805 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
14806 wine_fn_config_dll faultrep enable_faultrep implib
14807 wine_fn_config_test dlls/faultrep/tests faultrep_test
14808 wine_fn_config_dll fltlib enable_fltlib
14809 wine_fn_config_dll fusion enable_fusion
14810 wine_fn_config_test dlls/fusion/tests fusion_test
14811 wine_fn_config_dll fwpuclnt enable_fwpuclnt
14812 wine_fn_config_dll gameux enable_gameux
14813 wine_fn_config_test dlls/gameux/tests gameux_test
14814 wine_fn_config_dll gdi.exe16 enable_win16
14815 wine_fn_config_dll gdi32 enable_gdi32 implib
14816 wine_fn_config_test dlls/gdi32/tests gdi32_test
14817 wine_fn_config_dll gdiplus enable_gdiplus implib
14818 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
14819 wine_fn_config_dll glu32 enable_glu32 implib
14820 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14821 wine_fn_config_dll gpkcsp enable_gpkcsp
14822 wine_fn_config_dll hal enable_hal
14823 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
14824 wine_fn_config_dll hid enable_hid implib
14825 wine_fn_config_dll hlink enable_hlink implib
14826 wine_fn_config_test dlls/hlink/tests hlink_test
14827 wine_fn_config_dll hnetcfg enable_hnetcfg
14828 wine_fn_config_dll httpapi enable_httpapi
14829 wine_fn_config_dll iccvid enable_iccvid po
14830 wine_fn_config_dll icmp enable_icmp
14831 wine_fn_config_dll ieframe enable_ieframe implib,po
14832 wine_fn_config_test dlls/ieframe/tests ieframe_test
14833 wine_fn_config_dll ifsmgr.vxd enable_win16
14834 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14835 wine_fn_config_dll imagehlp enable_imagehlp implib
14836 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
14837 wine_fn_config_dll imm.dll16 enable_win16
14838 wine_fn_config_dll imm32 enable_imm32 implib
14839 wine_fn_config_test dlls/imm32/tests imm32_test
14840 wine_fn_config_dll inetcomm enable_inetcomm implib
14841 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
14842 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
14843 wine_fn_config_dll inetmib1 enable_inetmib1
14844 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
14845 wine_fn_config_dll infosoft enable_infosoft
14846 wine_fn_config_test dlls/infosoft/tests infosoft_test
14847 wine_fn_config_dll initpki enable_initpki
14848 wine_fn_config_dll inkobj enable_inkobj
14849 wine_fn_config_dll inseng enable_inseng
14850 wine_fn_config_dll iphlpapi enable_iphlpapi implib
14851 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
14852 wine_fn_config_dll itircl enable_itircl
14853 wine_fn_config_dll itss enable_itss
14854 wine_fn_config_test dlls/itss/tests itss_test
14855 wine_fn_config_dll jscript enable_jscript po
14856 wine_fn_config_test dlls/jscript/tests jscript_test
14857 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
14858 wine_fn_config_test dlls/kernel32/tests kernel32_test
14859 wine_fn_config_dll keyboard.drv16 enable_win16
14860 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
14861 wine_fn_config_dll ktmw32 enable_ktmw32
14862 wine_fn_config_dll loadperf enable_loadperf implib
14863 wine_fn_config_dll localspl enable_localspl po
14864 wine_fn_config_test dlls/localspl/tests localspl_test
14865 wine_fn_config_dll localui enable_localui po
14866 wine_fn_config_test dlls/localui/tests localui_test
14867 wine_fn_config_dll lz32 enable_lz32 implib
14868 wine_fn_config_test dlls/lz32/tests lz32_test
14869 wine_fn_config_dll lzexpand.dll16 enable_win16
14870 wine_fn_config_dll mapi32 enable_mapi32 implib,po
14871 wine_fn_config_test dlls/mapi32/tests mapi32_test
14872 wine_fn_config_dll mapistub enable_mapistub
14873 wine_fn_config_dll mciavi32 enable_mciavi32
14874 wine_fn_config_dll mcicda enable_mcicda
14875 wine_fn_config_dll mciqtz32 enable_mciqtz32
14876 wine_fn_config_dll mciseq enable_mciseq
14877 wine_fn_config_dll mciwave enable_mciwave
14878 wine_fn_config_dll midimap enable_midimap
14879 wine_fn_config_dll mlang enable_mlang implib
14880 wine_fn_config_test dlls/mlang/tests mlang_test
14881 wine_fn_config_dll mmdevapi enable_mmdevapi
14882 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
14883 wine_fn_config_dll mmdevldr.vxd enable_win16
14884 wine_fn_config_dll mmsystem.dll16 enable_win16
14885 wine_fn_config_dll monodebg.vxd enable_win16
14886 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14887 wine_fn_config_dll mouse.drv16 enable_win16
14888 wine_fn_config_dll mpr enable_mpr implib,po
14889 wine_fn_config_dll mprapi enable_mprapi implib
14890 wine_fn_config_dll msacm.dll16 enable_win16
14891 wine_fn_config_dll msacm32.drv enable_msacm32_drv
14892 wine_fn_config_dll msacm32 enable_msacm32 implib
14893 wine_fn_config_test dlls/msacm32/tests msacm32_test
14894 wine_fn_config_dll msadp32.acm enable_msadp32_acm
14895 wine_fn_config_dll mscat32 enable_mscat32
14896 wine_fn_config_dll mscms enable_mscms implib
14897 wine_fn_config_test dlls/mscms/tests mscms_test
14898 wine_fn_config_dll mscoree enable_mscoree
14899 wine_fn_config_test dlls/mscoree/tests mscoree_test
14900 wine_fn_config_dll msctf enable_msctf
14901 wine_fn_config_test dlls/msctf/tests msctf_test
14902 wine_fn_config_dll msdaps enable_msdaps
14903 wine_fn_config_dll msdmo enable_msdmo implib
14904 wine_fn_config_dll msftedit enable_msftedit
14905 wine_fn_config_dll msg711.acm enable_msg711_acm
14906 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14907 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
14908 wine_fn_config_dll mshtml enable_mshtml implib,po
14909 wine_fn_config_test dlls/mshtml/tests mshtml_test
14910 wine_fn_config_dll msi enable_msi implib,po
14911 wine_fn_config_test dlls/msi/tests msi_test
14912 wine_fn_config_dll msimg32 enable_msimg32 implib
14913 wine_fn_config_dll msimsg enable_msimsg
14914 wine_fn_config_dll msimtf enable_msimtf
14915 wine_fn_config_dll msisip enable_msisip
14916 wine_fn_config_dll msisys.ocx enable_msisys_ocx
14917 wine_fn_config_dll msnet32 enable_msnet32
14918 wine_fn_config_dll mspatcha enable_mspatcha
14919 wine_fn_config_dll msrle32 enable_msrle32 po
14920 wine_fn_config_dll mssign32 enable_mssign32
14921 wine_fn_config_dll mssip32 enable_mssip32
14922 wine_fn_config_dll mstask enable_mstask
14923 wine_fn_config_test dlls/mstask/tests mstask_test
14924 wine_fn_config_dll msvcirt enable_msvcirt
14925 wine_fn_config_dll msvcp100 enable_msvcp100
14926 wine_fn_config_dll msvcp60 enable_msvcp60
14927 wine_fn_config_dll msvcp70 enable_msvcp70
14928 wine_fn_config_dll msvcp71 enable_msvcp71
14929 wine_fn_config_dll msvcp80 enable_msvcp80
14930 wine_fn_config_dll msvcp90 enable_msvcp90
14931 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
14932 wine_fn_config_dll msvcr100 enable_msvcr100
14933 wine_fn_config_dll msvcr70 enable_msvcr70 implib
14934 wine_fn_config_dll msvcr71 enable_msvcr71 implib
14935 wine_fn_config_dll msvcr80 enable_msvcr80
14936 wine_fn_config_dll msvcr90 enable_msvcr90
14937 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
14938 wine_fn_config_dll msvcrt enable_msvcrt implib
14939 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
14940 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
14941 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
14942 wine_fn_config_dll msvcrtd enable_msvcrtd implib
14943 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
14944 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
14945 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
14946 wine_fn_config_dll msvidc32 enable_msvidc32 po
14947 wine_fn_config_dll msvideo.dll16 enable_win16
14948 wine_fn_config_dll mswsock enable_mswsock implib
14949 wine_fn_config_dll msxml enable_msxml
14950 wine_fn_config_dll msxml2 enable_msxml2
14951 wine_fn_config_dll msxml3 enable_msxml3
14952 wine_fn_config_test dlls/msxml3/tests msxml3_test
14953 wine_fn_config_dll msxml4 enable_msxml4
14954 wine_fn_config_dll msxml6 enable_msxml6
14955 wine_fn_config_dll nddeapi enable_nddeapi implib
14956 wine_fn_config_dll netapi32 enable_netapi32 implib
14957 wine_fn_config_test dlls/netapi32/tests netapi32_test
14958 wine_fn_config_dll newdev enable_newdev implib
14959 wine_fn_config_dll normaliz enable_normaliz implib
14960 wine_fn_config_dll npmshtml enable_npmshtml
14961 wine_fn_config_dll ntdll enable_ntdll implib
14962 wine_fn_config_test dlls/ntdll/tests ntdll_test
14963 wine_fn_config_dll ntdsapi enable_ntdsapi implib
14964 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
14965 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
14966 wine_fn_config_dll ntprint enable_ntprint
14967 wine_fn_config_test dlls/ntprint/tests ntprint_test
14968 wine_fn_config_dll objsel enable_objsel
14969 wine_fn_config_dll odbc32 enable_odbc32 implib
14970 wine_fn_config_dll odbccp32 enable_odbccp32 implib
14971 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
14972 wine_fn_config_dll ole2.dll16 enable_win16
14973 wine_fn_config_dll ole2conv.dll16 enable_win16
14974 wine_fn_config_dll ole2disp.dll16 enable_win16
14975 wine_fn_config_dll ole2nls.dll16 enable_win16
14976 wine_fn_config_dll ole2prox.dll16 enable_win16
14977 wine_fn_config_dll ole2thk.dll16 enable_win16
14978 wine_fn_config_dll ole32 enable_ole32 implib
14979 wine_fn_config_test dlls/ole32/tests ole32_test
14980 wine_fn_config_dll oleacc enable_oleacc implib,po
14981 wine_fn_config_test dlls/oleacc/tests oleacc_test
14982 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
14983 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
14984 wine_fn_config_dll olecli.dll16 enable_win16
14985 wine_fn_config_dll olecli32 enable_olecli32 implib
14986 wine_fn_config_dll oledb32 enable_oledb32
14987 wine_fn_config_test dlls/oledb32/tests oledb32_test
14988 wine_fn_config_dll oledlg enable_oledlg implib,po
14989 wine_fn_config_dll olepro32 enable_olepro32 implib
14990 wine_fn_config_dll olesvr.dll16 enable_win16
14991 wine_fn_config_dll olesvr32 enable_olesvr32 implib
14992 wine_fn_config_dll olethk32 enable_olethk32
14993 wine_fn_config_dll openal32 enable_openal32
14994 wine_fn_config_dll opencl enable_opencl
14995 wine_fn_config_dll opengl32 enable_opengl32 implib
14996 wine_fn_config_test dlls/opengl32/tests opengl32_test
14997 wine_fn_config_dll pdh enable_pdh implib
14998 wine_fn_config_test dlls/pdh/tests pdh_test
14999 wine_fn_config_dll pidgen enable_pidgen
15000 wine_fn_config_dll powrprof enable_powrprof implib
15001 wine_fn_config_dll printui enable_printui
15002 wine_fn_config_dll propsys enable_propsys implib
15003 wine_fn_config_test dlls/propsys/tests propsys_test
15004 wine_fn_config_dll psapi enable_psapi implib
15005 wine_fn_config_test dlls/psapi/tests psapi_test
15006 wine_fn_config_dll pstorec enable_pstorec
15007 wine_fn_config_dll qcap enable_qcap
15008 wine_fn_config_dll qedit enable_qedit
15009 wine_fn_config_test dlls/qedit/tests qedit_test
15010 wine_fn_config_dll qmgr enable_qmgr
15011 wine_fn_config_test dlls/qmgr/tests qmgr_test
15012 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15013 wine_fn_config_dll quartz enable_quartz implib
15014 wine_fn_config_test dlls/quartz/tests quartz_test
15015 wine_fn_config_dll query enable_query
15016 wine_fn_config_dll rasapi16.dll16 enable_win16
15017 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15018 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15019 wine_fn_config_dll rasdlg enable_rasdlg implib
15020 wine_fn_config_dll regapi enable_regapi
15021 wine_fn_config_dll resutils enable_resutils implib
15022 wine_fn_config_dll riched20 enable_riched20 implib
15023 wine_fn_config_test dlls/riched20/tests riched20_test
15024 wine_fn_config_dll riched32 enable_riched32
15025 wine_fn_config_test dlls/riched32/tests riched32_test
15026 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15027 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15028 wine_fn_config_dll rsabase enable_rsabase
15029 wine_fn_config_dll rsaenh enable_rsaenh implib
15030 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15031 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15032 wine_fn_config_dll rtutils enable_rtutils implib
15033 wine_fn_config_dll samlib enable_samlib
15034 wine_fn_config_dll sane.ds enable_sane_ds po
15035 wine_fn_config_dll scarddlg enable_scarddlg
15036 wine_fn_config_dll sccbase enable_sccbase
15037 wine_fn_config_dll schannel enable_schannel
15038 wine_fn_config_test dlls/schannel/tests schannel_test
15039 wine_fn_config_dll secur32 enable_secur32 implib
15040 wine_fn_config_test dlls/secur32/tests secur32_test
15041 wine_fn_config_dll security enable_security
15042 wine_fn_config_dll sensapi enable_sensapi implib
15043 wine_fn_config_dll serialui enable_serialui implib
15044 wine_fn_config_test dlls/serialui/tests serialui_test
15045 wine_fn_config_dll setupapi enable_setupapi implib,po
15046 wine_fn_config_test dlls/setupapi/tests setupapi_test
15047 wine_fn_config_dll setupx.dll16 enable_win16
15048 wine_fn_config_dll sfc enable_sfc implib
15049 wine_fn_config_dll sfc_os enable_sfc_os implib
15050 wine_fn_config_dll shdoclc enable_shdoclc po
15051 wine_fn_config_dll shdocvw enable_shdocvw implib
15052 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15053 wine_fn_config_dll shell.dll16 enable_win16
15054 wine_fn_config_dll shell32 enable_shell32 implib,po
15055 wine_fn_config_test dlls/shell32/tests shell32_test
15056 wine_fn_config_dll shfolder enable_shfolder implib
15057 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15058 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15059 wine_fn_config_dll slbcsp enable_slbcsp
15060 wine_fn_config_dll slc enable_slc implib
15061 wine_fn_config_dll snmpapi enable_snmpapi implib
15062 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15063 wine_fn_config_dll softpub enable_softpub
15064 wine_fn_config_dll sound.drv16 enable_win16
15065 wine_fn_config_dll spoolss enable_spoolss implib
15066 wine_fn_config_test dlls/spoolss/tests spoolss_test
15067 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15068 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15069 wine_fn_config_dll sti enable_sti implib
15070 wine_fn_config_test dlls/sti/tests sti_test
15071 wine_fn_config_dll storage.dll16 enable_win16
15072 wine_fn_config_dll stress.dll16 enable_win16
15073 wine_fn_config_lib strmbase
15074 wine_fn_config_lib strmiids
15075 wine_fn_config_dll svrapi enable_svrapi
15076 wine_fn_config_dll sxs enable_sxs
15077 wine_fn_config_dll system.drv16 enable_win16
15078 wine_fn_config_dll t2embed enable_t2embed
15079 wine_fn_config_dll tapi32 enable_tapi32 implib
15080 wine_fn_config_dll toolhelp.dll16 enable_win16
15081 wine_fn_config_dll traffic enable_traffic
15082 wine_fn_config_dll twain.dll16 enable_win16
15083 wine_fn_config_dll twain_32 enable_twain_32
15084 wine_fn_config_test dlls/twain_32/tests twain_32_test
15085 wine_fn_config_dll typelib.dll16 enable_win16
15086 wine_fn_config_dll unicows enable_unicows implib
15087 wine_fn_config_dll updspapi enable_updspapi
15088 wine_fn_config_dll url enable_url implib
15089 wine_fn_config_dll urlmon enable_urlmon implib
15090 wine_fn_config_test dlls/urlmon/tests urlmon_test
15091 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15092 wine_fn_config_dll user.exe16 enable_win16
15093 wine_fn_config_dll user32 enable_user32 implib,po
15094 wine_fn_config_test dlls/user32/tests user32_test
15095 wine_fn_config_dll userenv enable_userenv implib
15096 wine_fn_config_test dlls/userenv/tests userenv_test
15097 wine_fn_config_dll usp10 enable_usp10 implib
15098 wine_fn_config_test dlls/usp10/tests usp10_test
15099 wine_fn_config_lib uuid
15100 wine_fn_config_dll uxtheme enable_uxtheme implib
15101 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15102 wine_fn_config_dll vbscript enable_vbscript
15103 wine_fn_config_test dlls/vbscript/tests vbscript_test
15104 wine_fn_config_dll vcomp enable_vcomp
15105 wine_fn_config_dll vdhcp.vxd enable_win16
15106 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15107 wine_fn_config_dll ver.dll16 enable_win16
15108 wine_fn_config_dll version enable_version implib
15109 wine_fn_config_test dlls/version/tests version_test
15110 wine_fn_config_dll vmm.vxd enable_win16
15111 wine_fn_config_dll vnbt.vxd enable_win16
15112 wine_fn_config_dll vnetbios.vxd enable_win16
15113 wine_fn_config_dll vtdapi.vxd enable_win16
15114 wine_fn_config_dll vwin32.vxd enable_win16
15115 wine_fn_config_dll w32skrnl enable_win16
15116 wine_fn_config_dll w32sys.dll16 enable_win16
15117 wine_fn_config_dll wbemprox enable_wbemprox
15118 wine_fn_config_dll wer enable_wer implib
15119 wine_fn_config_test dlls/wer/tests wer_test
15120 wine_fn_config_dll wiaservc enable_wiaservc
15121 wine_fn_config_dll win32s16.dll16 enable_win16
15122 wine_fn_config_dll win87em.dll16 enable_win16
15123 wine_fn_config_dll winaspi.dll16 enable_win16
15124 wine_fn_config_dll windebug.dll16 enable_win16
15125 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15126 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15127 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15128 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15129 wine_fn_config_lib winecrt0
15130 wine_fn_config_dll wined3d enable_wined3d implib
15131 wine_fn_config_dll winegstreamer enable_winegstreamer
15132 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15133 wine_fn_config_dll winemapi enable_winemapi
15134 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15135 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15136 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib
15137 wine_fn_config_dll wineps16.drv16 enable_win16
15138 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15139 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15140 wine_fn_config_dll winex11.drv enable_winex11_drv
15141 wine_fn_config_dll wing.dll16 enable_win16
15142 wine_fn_config_dll wing32 enable_wing32
15143 wine_fn_config_dll winhttp enable_winhttp implib
15144 wine_fn_config_test dlls/winhttp/tests winhttp_test
15145 wine_fn_config_dll wininet enable_wininet implib,po
15146 wine_fn_config_test dlls/wininet/tests wininet_test
15147 wine_fn_config_dll winmm enable_winmm implib,po
15148 wine_fn_config_test dlls/winmm/tests winmm_test
15149 wine_fn_config_dll winnls.dll16 enable_win16
15150 wine_fn_config_dll winnls32 enable_winnls32 implib
15151 wine_fn_config_dll winscard enable_winscard implib
15152 wine_fn_config_dll winsock.dll16 enable_win16
15153 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15154 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15155 wine_fn_config_dll winsta enable_winsta
15156 wine_fn_config_dll wintab.dll16 enable_win16
15157 wine_fn_config_dll wintab32 enable_wintab32 implib
15158 wine_fn_config_test dlls/wintab32/tests wintab32_test
15159 wine_fn_config_dll wintrust enable_wintrust implib
15160 wine_fn_config_test dlls/wintrust/tests wintrust_test
15161 wine_fn_config_dll wlanapi enable_wlanapi
15162 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15163 wine_fn_config_test dlls/wldap32/tests wldap32_test
15164 wine_fn_config_dll wmi enable_wmi
15165 wine_fn_config_dll wmiutils enable_wmiutils
15166 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15167 wine_fn_config_dll wow32 enable_win16 implib
15168 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15169 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15170 wine_fn_config_dll wshom.ocx enable_wshom_ocx
15171 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
15172 wine_fn_config_dll wsock32 enable_wsock32 implib
15173 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15174 wine_fn_config_dll wuapi enable_wuapi
15175 wine_fn_config_dll wuaueng enable_wuaueng
15176 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15177 wine_fn_config_dll xinput1_1 enable_xinput1_1
15178 wine_fn_config_dll xinput1_2 enable_xinput1_2
15179 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15180 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15181 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15182 wine_fn_config_dll xmllite enable_xmllite
15183 wine_fn_config_test dlls/xmllite/tests xmllite_test
15184 wine_fn_config_dll xolehlp enable_xolehlp
15185 wine_fn_config_makefile documentation enable_documentation
15186 wine_fn_config_makefile fonts enable_fonts install-lib
15187 wine_fn_config_makefile include enable_include install-dev
15188 wine_fn_config_makefile libs/port enable_libs_port
15189 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15190 wine_fn_config_makefile libs/wpp enable_libs_wpp
15191 wine_fn_config_makefile loader enable_loader install-lib,manpage
15192 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15193 wine_fn_config_program attrib enable_attrib install,po
15194 wine_fn_config_program cabarc enable_cabarc install
15195 wine_fn_config_program cacls enable_cacls install
15196 wine_fn_config_program clock enable_clock install,po
15197 wine_fn_config_program cmd enable_cmd install,po
15198 wine_fn_config_test programs/cmd/tests cmd.exe_test
15199 wine_fn_config_program cmdlgtst enable_cmdlgtst
15200 wine_fn_config_program control enable_control install
15201 wine_fn_config_program dxdiag enable_dxdiag install,po
15202 wine_fn_config_program eject enable_eject install
15203 wine_fn_config_program expand enable_expand install
15204 wine_fn_config_program explorer enable_explorer install,po
15205 wine_fn_config_program extrac32 enable_extrac32 install
15206 wine_fn_config_program hh enable_hh install
15207 wine_fn_config_program hostname enable_hostname install,po
15208 wine_fn_config_program icinfo enable_icinfo install
15209 wine_fn_config_program iexplore enable_iexplore install
15210 wine_fn_config_program ipconfig enable_ipconfig install,po
15211 wine_fn_config_program lodctr enable_lodctr install
15212 wine_fn_config_program mofcomp enable_mofcomp install
15213 wine_fn_config_program mshta enable_mshta install
15214 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
15215 wine_fn_config_program net enable_net install,po
15216 wine_fn_config_program netsh enable_netsh install
15217 wine_fn_config_program ngen enable_ngen install
15218 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
15219 wine_fn_config_program oleview enable_oleview install,po
15220 wine_fn_config_program ping enable_ping install
15221 wine_fn_config_program plugplay enable_plugplay install
15222 wine_fn_config_program presentationfontcache enable_presentationfontcache install
15223 wine_fn_config_program progman enable_progman install,po
15224 wine_fn_config_program reg enable_reg install,po
15225 wine_fn_config_program regasm enable_regasm install
15226 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
15227 wine_fn_config_test programs/regedit/tests regedit.exe_test
15228 wine_fn_config_program regsvcs enable_regsvcs install
15229 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
15230 wine_fn_config_program rpcss enable_rpcss install
15231 wine_fn_config_program rundll.exe16 enable_win16 install
15232 wine_fn_config_program rundll32 enable_rundll32 install
15233 wine_fn_config_program sc enable_sc install
15234 wine_fn_config_program secedit enable_secedit install
15235 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15236 wine_fn_config_program services enable_services install
15237 wine_fn_config_program spoolsv enable_spoolsv install
15238 wine_fn_config_program start enable_start install,po
15239 wine_fn_config_program svchost enable_svchost install
15240 wine_fn_config_program taskkill enable_taskkill install,po
15241 wine_fn_config_program taskmgr enable_taskmgr install,po
15242 wine_fn_config_program termsv enable_termsv install
15243 wine_fn_config_program uninstaller enable_uninstaller install,po
15244 wine_fn_config_program unlodctr enable_unlodctr install
15245 wine_fn_config_program view enable_view install,po
15246 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage
15247 wine_fn_config_program winebrowser enable_winebrowser install
15248 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15249 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15250 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
15251 wine_fn_config_program winedevice enable_winedevice install
15252 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
15253 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15254 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
15255 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15256 wine_fn_config_program winepath enable_winepath install,installbin,manpage
15257 wine_fn_config_program winetest enable_winetest
15258 wine_fn_config_program winevdm enable_win16 install
15259 wine_fn_config_program winhelp.exe16 enable_win16 install
15260 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15261 wine_fn_config_program winoldap.mod16 enable_win16 install
15262 wine_fn_config_program winver enable_winver install
15263 wine_fn_config_program wmic enable_wmic install
15264 wine_fn_config_program wordpad enable_wordpad install,po
15265 wine_fn_config_program write enable_write install,po
15266 wine_fn_config_program wscript enable_wscript install
15267 wine_fn_config_test programs/wscript/tests wscript.exe_test
15268 wine_fn_config_program xcopy enable_xcopy install,po
15269 wine_fn_config_makefile server enable_server install-lib,manpage
15270 wine_fn_config_tool tools install-dev,install-lib,manpage
15271 wine_fn_config_tool tools/widl install-dev,manpage
15272 wine_fn_config_tool tools/winebuild install-dev,manpage
15273 wine_fn_config_tool tools/winedump install-dev,manpage
15274 wine_fn_config_tool tools/winegcc install-dev,manpage
15275 wine_fn_config_tool tools/wmc install-dev,manpage
15276 wine_fn_config_tool tools/wrc install-dev,manpage
15278 LINGUAS="\
15279 ar \
15280 bg \
15281 ca \
15282 cs \
15283 da \
15284 de \
15285 el \
15286 en \
15287 en_US \
15288 eo \
15289 es \
15290 fa \
15291 fi \
15292 fr \
15293 he \
15294 hi \
15295 hu \
15296 it \
15297 ja \
15298 ko \
15299 lt \
15300 ml \
15301 nb_NO \
15302 nl \
15303 or \
15304 pa \
15305 pl \
15306 pt_BR \
15307 pt_PT \
15308 rm \
15309 ro \
15310 ru \
15311 sk \
15312 sl \
15313 sr_RS@cyrillic \
15314 sr_RS@latin \
15315 sv \
15316 te \
15317 th \
15318 tr \
15319 uk \
15320 wa \
15321 zh_CN \
15322 zh_TW"
15326 ac_config_commands="$ac_config_commands Makefile"
15329 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15333 if test "x$enable_maintainer_mode" = xyes
15334 then
15335 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15336 cd \$(srcdir) && autoconf --warnings=all
15337 \$(srcdir)/include/config.h.in: include/stamp-h.in
15338 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15339 cd \$(srcdir) && autoheader --warnings=all
15340 @echo timestamp > \$@
15342 ALL_POT_FILES =$ALL_POT_FILES
15343 all: \$(ALL_PO_FILES)
15344 \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
15345 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15346 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15347 msgcat -o \$@ \$(ALL_POT_FILES)"
15350 if test "x$enable_tools" != xno
15351 then
15352 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15353 clean:: __clean__
15354 \$(RM) tools/makedep\$(EXEEXT)"
15357 if test -n "$with_wine64"
15358 then
15359 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15360 fonts server tools:
15361 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15362 $with_wine64/loader/wine:
15363 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15364 $with_wine64/loader/wine-preloader:
15365 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15366 clean::
15367 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15370 cat >confcache <<\_ACEOF
15371 # This file is a shell script that caches the results of configure
15372 # tests run on this system so they can be shared between configure
15373 # scripts and configure runs, see configure's option --config-cache.
15374 # It is not useful on other systems. If it contains results you don't
15375 # want to keep, you may remove or edit it.
15377 # config.status only pays attention to the cache file if you give it
15378 # the --recheck option to rerun configure.
15380 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15381 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15382 # following values.
15384 _ACEOF
15386 # The following way of writing the cache mishandles newlines in values,
15387 # but we know of no workaround that is simple, portable, and efficient.
15388 # So, we kill variables containing newlines.
15389 # Ultrix sh set writes to stderr and can't be redirected directly,
15390 # and sets the high bit in the cache file unless we assign to the vars.
15392 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15393 eval ac_val=\$$ac_var
15394 case $ac_val in #(
15395 *${as_nl}*)
15396 case $ac_var in #(
15397 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15398 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15399 esac
15400 case $ac_var in #(
15401 _ | IFS | as_nl) ;; #(
15402 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15403 *) { eval $ac_var=; unset $ac_var;} ;;
15404 esac ;;
15405 esac
15406 done
15408 (set) 2>&1 |
15409 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15410 *${as_nl}ac_space=\ *)
15411 # `set' does not quote correctly, so add quotes: double-quote
15412 # substitution turns \\\\ into \\, and sed turns \\ into \.
15413 sed -n \
15414 "s/'/'\\\\''/g;
15415 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15416 ;; #(
15418 # `set' quotes correctly as required by POSIX, so do not add quotes.
15419 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15421 esac |
15422 sort
15424 sed '
15425 /^ac_cv_env_/b end
15426 t clear
15427 :clear
15428 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15429 t end
15430 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15431 :end' >>confcache
15432 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15433 if test -w "$cache_file"; then
15434 if test "x$cache_file" != "x/dev/null"; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15436 $as_echo "$as_me: updating cache $cache_file" >&6;}
15437 if test ! -f "$cache_file" || test -h "$cache_file"; then
15438 cat confcache >"$cache_file"
15439 else
15440 case $cache_file in #(
15441 */* | ?:*)
15442 mv -f confcache "$cache_file"$$ &&
15443 mv -f "$cache_file"$$ "$cache_file" ;; #(
15445 mv -f confcache "$cache_file" ;;
15446 esac
15449 else
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15451 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15454 rm -f confcache
15456 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15457 # Let make expand exec_prefix.
15458 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15460 DEFS=-DHAVE_CONFIG_H
15462 ac_libobjs=
15463 ac_ltlibobjs=
15465 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15466 # 1. Remove the extension, and $U if already installed.
15467 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15468 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15469 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15470 # will be set to the directory where LIBOBJS objects are built.
15471 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15472 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15473 done
15474 LIBOBJS=$ac_libobjs
15476 LTLIBOBJS=$ac_ltlibobjs
15480 : "${CONFIG_STATUS=./config.status}"
15481 ac_write_fail=0
15482 ac_clean_files_save=$ac_clean_files
15483 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15485 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15486 as_write_fail=0
15487 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15488 #! $SHELL
15489 # Generated by $as_me.
15490 # Run this file to recreate the current configuration.
15491 # Compiler output produced by configure, useful for debugging
15492 # configure, is in config.log if it exists.
15494 debug=false
15495 ac_cs_recheck=false
15496 ac_cs_silent=false
15498 SHELL=\${CONFIG_SHELL-$SHELL}
15499 export SHELL
15500 _ASEOF
15501 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15502 ## -------------------- ##
15503 ## M4sh Initialization. ##
15504 ## -------------------- ##
15506 # Be more Bourne compatible
15507 DUALCASE=1; export DUALCASE # for MKS sh
15508 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15509 emulate sh
15510 NULLCMD=:
15511 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15512 # is contrary to our usage. Disable this feature.
15513 alias -g '${1+"$@"}'='"$@"'
15514 setopt NO_GLOB_SUBST
15515 else
15516 case `(set -o) 2>/dev/null` in #(
15517 *posix*) :
15518 set -o posix ;; #(
15519 *) :
15521 esac
15525 as_nl='
15527 export as_nl
15528 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15529 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15530 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15532 # Prefer a ksh shell builtin over an external printf program on Solaris,
15533 # but without wasting forks for bash or zsh.
15534 if test -z "$BASH_VERSION$ZSH_VERSION" \
15535 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15536 as_echo='print -r --'
15537 as_echo_n='print -rn --'
15538 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15539 as_echo='printf %s\n'
15540 as_echo_n='printf %s'
15541 else
15542 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15543 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15544 as_echo_n='/usr/ucb/echo -n'
15545 else
15546 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15547 as_echo_n_body='eval
15548 arg=$1;
15549 case $arg in #(
15550 *"$as_nl"*)
15551 expr "X$arg" : "X\\(.*\\)$as_nl";
15552 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15553 esac;
15554 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15556 export as_echo_n_body
15557 as_echo_n='sh -c $as_echo_n_body as_echo'
15559 export as_echo_body
15560 as_echo='sh -c $as_echo_body as_echo'
15563 # The user is always right.
15564 if test "${PATH_SEPARATOR+set}" != set; then
15565 PATH_SEPARATOR=:
15566 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15567 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15568 PATH_SEPARATOR=';'
15573 # IFS
15574 # We need space, tab and new line, in precisely that order. Quoting is
15575 # there to prevent editors from complaining about space-tab.
15576 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15577 # splitting by setting IFS to empty value.)
15578 IFS=" "" $as_nl"
15580 # Find who we are. Look in the path if we contain no directory separator.
15581 as_myself=
15582 case $0 in #((
15583 *[\\/]* ) as_myself=$0 ;;
15584 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15585 for as_dir in $PATH
15587 IFS=$as_save_IFS
15588 test -z "$as_dir" && as_dir=.
15589 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15590 done
15591 IFS=$as_save_IFS
15594 esac
15595 # We did not find ourselves, most probably we were run as `sh COMMAND'
15596 # in which case we are not to be found in the path.
15597 if test "x$as_myself" = x; then
15598 as_myself=$0
15600 if test ! -f "$as_myself"; then
15601 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15602 exit 1
15605 # Unset variables that we do not need and which cause bugs (e.g. in
15606 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15607 # suppresses any "Segmentation fault" message there. '((' could
15608 # trigger a bug in pdksh 5.2.14.
15609 for as_var in BASH_ENV ENV MAIL MAILPATH
15610 do eval test x\${$as_var+set} = xset \
15611 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15612 done
15613 PS1='$ '
15614 PS2='> '
15615 PS4='+ '
15617 # NLS nuisances.
15618 LC_ALL=C
15619 export LC_ALL
15620 LANGUAGE=C
15621 export LANGUAGE
15623 # CDPATH.
15624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15627 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15628 # ----------------------------------------
15629 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15630 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15631 # script with STATUS, using 1 if that was 0.
15632 as_fn_error ()
15634 as_status=$1; test $as_status -eq 0 && as_status=1
15635 if test "$4"; then
15636 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15637 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15639 $as_echo "$as_me: error: $2" >&2
15640 as_fn_exit $as_status
15641 } # as_fn_error
15644 # as_fn_set_status STATUS
15645 # -----------------------
15646 # Set $? to STATUS, without forking.
15647 as_fn_set_status ()
15649 return $1
15650 } # as_fn_set_status
15652 # as_fn_exit STATUS
15653 # -----------------
15654 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15655 as_fn_exit ()
15657 set +e
15658 as_fn_set_status $1
15659 exit $1
15660 } # as_fn_exit
15662 # as_fn_unset VAR
15663 # ---------------
15664 # Portably unset VAR.
15665 as_fn_unset ()
15667 { eval $1=; unset $1;}
15669 as_unset=as_fn_unset
15670 # as_fn_append VAR VALUE
15671 # ----------------------
15672 # Append the text in VALUE to the end of the definition contained in VAR. Take
15673 # advantage of any shell optimizations that allow amortized linear growth over
15674 # repeated appends, instead of the typical quadratic growth present in naive
15675 # implementations.
15676 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15677 eval 'as_fn_append ()
15679 eval $1+=\$2
15681 else
15682 as_fn_append ()
15684 eval $1=\$$1\$2
15686 fi # as_fn_append
15688 # as_fn_arith ARG...
15689 # ------------------
15690 # Perform arithmetic evaluation on the ARGs, and store the result in the
15691 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15692 # must be portable across $(()) and expr.
15693 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15694 eval 'as_fn_arith ()
15696 as_val=$(( $* ))
15698 else
15699 as_fn_arith ()
15701 as_val=`expr "$@" || test $? -eq 1`
15703 fi # as_fn_arith
15706 if expr a : '\(a\)' >/dev/null 2>&1 &&
15707 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15708 as_expr=expr
15709 else
15710 as_expr=false
15713 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15714 as_basename=basename
15715 else
15716 as_basename=false
15719 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15720 as_dirname=dirname
15721 else
15722 as_dirname=false
15725 as_me=`$as_basename -- "$0" ||
15726 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15727 X"$0" : 'X\(//\)$' \| \
15728 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15729 $as_echo X/"$0" |
15730 sed '/^.*\/\([^/][^/]*\)\/*$/{
15731 s//\1/
15734 /^X\/\(\/\/\)$/{
15735 s//\1/
15738 /^X\/\(\/\).*/{
15739 s//\1/
15742 s/.*/./; q'`
15744 # Avoid depending upon Character Ranges.
15745 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15746 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15747 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15748 as_cr_digits='0123456789'
15749 as_cr_alnum=$as_cr_Letters$as_cr_digits
15751 ECHO_C= ECHO_N= ECHO_T=
15752 case `echo -n x` in #(((((
15753 -n*)
15754 case `echo 'xy\c'` in
15755 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15756 xy) ECHO_C='\c';;
15757 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15758 ECHO_T=' ';;
15759 esac;;
15761 ECHO_N='-n';;
15762 esac
15764 rm -f conf$$ conf$$.exe conf$$.file
15765 if test -d conf$$.dir; then
15766 rm -f conf$$.dir/conf$$.file
15767 else
15768 rm -f conf$$.dir
15769 mkdir conf$$.dir 2>/dev/null
15771 if (echo >conf$$.file) 2>/dev/null; then
15772 if ln -s conf$$.file conf$$ 2>/dev/null; then
15773 as_ln_s='ln -s'
15774 # ... but there are two gotchas:
15775 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15776 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15777 # In both cases, we have to default to `cp -p'.
15778 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15779 as_ln_s='cp -p'
15780 elif ln conf$$.file conf$$ 2>/dev/null; then
15781 as_ln_s=ln
15782 else
15783 as_ln_s='cp -p'
15785 else
15786 as_ln_s='cp -p'
15788 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15789 rmdir conf$$.dir 2>/dev/null
15792 # as_fn_mkdir_p
15793 # -------------
15794 # Create "$as_dir" as a directory, including parents if necessary.
15795 as_fn_mkdir_p ()
15798 case $as_dir in #(
15799 -*) as_dir=./$as_dir;;
15800 esac
15801 test -d "$as_dir" || eval $as_mkdir_p || {
15802 as_dirs=
15803 while :; do
15804 case $as_dir in #(
15805 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15806 *) as_qdir=$as_dir;;
15807 esac
15808 as_dirs="'$as_qdir' $as_dirs"
15809 as_dir=`$as_dirname -- "$as_dir" ||
15810 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15811 X"$as_dir" : 'X\(//\)[^/]' \| \
15812 X"$as_dir" : 'X\(//\)$' \| \
15813 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15814 $as_echo X"$as_dir" |
15815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15816 s//\1/
15819 /^X\(\/\/\)[^/].*/{
15820 s//\1/
15823 /^X\(\/\/\)$/{
15824 s//\1/
15827 /^X\(\/\).*/{
15828 s//\1/
15831 s/.*/./; q'`
15832 test -d "$as_dir" && break
15833 done
15834 test -z "$as_dirs" || eval "mkdir $as_dirs"
15835 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15838 } # as_fn_mkdir_p
15839 if mkdir -p . 2>/dev/null; then
15840 as_mkdir_p='mkdir -p "$as_dir"'
15841 else
15842 test -d ./-p && rmdir ./-p
15843 as_mkdir_p=false
15846 if test -x / >/dev/null 2>&1; then
15847 as_test_x='test -x'
15848 else
15849 if ls -dL / >/dev/null 2>&1; then
15850 as_ls_L_option=L
15851 else
15852 as_ls_L_option=
15854 as_test_x='
15855 eval sh -c '\''
15856 if test -d "$1"; then
15857 test -d "$1/.";
15858 else
15859 case $1 in #(
15860 -*)set "./$1";;
15861 esac;
15862 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15863 ???[sx]*):;;*)false;;esac;fi
15864 '\'' sh
15867 as_executable_p=$as_test_x
15869 # Sed expression to map a string onto a valid CPP name.
15870 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15872 # Sed expression to map a string onto a valid variable name.
15873 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15876 exec 6>&1
15877 ## ----------------------------------- ##
15878 ## Main body of $CONFIG_STATUS script. ##
15879 ## ----------------------------------- ##
15880 _ASEOF
15881 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15884 # Save the log message, to keep $0 and so on meaningful, and to
15885 # report actual input values of CONFIG_FILES etc. instead of their
15886 # values after options handling.
15887 ac_log="
15888 This file was extended by Wine $as_me 1.3.30, which was
15889 generated by GNU Autoconf 2.68. Invocation command line was
15891 CONFIG_FILES = $CONFIG_FILES
15892 CONFIG_HEADERS = $CONFIG_HEADERS
15893 CONFIG_LINKS = $CONFIG_LINKS
15894 CONFIG_COMMANDS = $CONFIG_COMMANDS
15895 $ $0 $@
15897 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15900 _ACEOF
15902 case $ac_config_files in *"
15903 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15904 esac
15906 case $ac_config_headers in *"
15907 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15908 esac
15911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15912 # Files that config.status was made for.
15913 config_files="$ac_config_files"
15914 config_headers="$ac_config_headers"
15915 config_links="$ac_config_links"
15916 config_commands="$ac_config_commands"
15918 _ACEOF
15920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15921 ac_cs_usage="\
15922 \`$as_me' instantiates files and other configuration actions
15923 from templates according to the current configuration. Unless the files
15924 and actions are specified as TAGs, all are instantiated by default.
15926 Usage: $0 [OPTION]... [TAG]...
15928 -h, --help print this help, then exit
15929 -V, --version print version number and configuration settings, then exit
15930 --config print configuration, then exit
15931 -q, --quiet, --silent
15932 do not print progress messages
15933 -d, --debug don't remove temporary files
15934 --recheck update $as_me by reconfiguring in the same conditions
15935 --file=FILE[:TEMPLATE]
15936 instantiate the configuration file FILE
15937 --header=FILE[:TEMPLATE]
15938 instantiate the configuration header FILE
15940 Configuration files:
15941 $config_files
15943 Configuration headers:
15944 $config_headers
15946 Configuration links:
15947 $config_links
15949 Configuration commands:
15950 $config_commands
15952 Report bugs to <wine-devel@winehq.org>.
15953 Wine home page: <http://www.winehq.org>."
15955 _ACEOF
15956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15957 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15958 ac_cs_version="\\
15959 Wine config.status 1.3.30
15960 configured by $0, generated by GNU Autoconf 2.68,
15961 with options \\"\$ac_cs_config\\"
15963 Copyright (C) 2010 Free Software Foundation, Inc.
15964 This config.status script is free software; the Free Software Foundation
15965 gives unlimited permission to copy, distribute and modify it."
15967 ac_pwd='$ac_pwd'
15968 srcdir='$srcdir'
15969 INSTALL='$INSTALL'
15970 test -n "\$AWK" || AWK=awk
15971 _ACEOF
15973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15974 # The default lists apply if the user does not specify any file.
15975 ac_need_defaults=:
15976 while test $# != 0
15978 case $1 in
15979 --*=?*)
15980 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15981 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15982 ac_shift=:
15984 --*=)
15985 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15986 ac_optarg=
15987 ac_shift=:
15990 ac_option=$1
15991 ac_optarg=$2
15992 ac_shift=shift
15994 esac
15996 case $ac_option in
15997 # Handling of the options.
15998 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15999 ac_cs_recheck=: ;;
16000 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16001 $as_echo "$ac_cs_version"; exit ;;
16002 --config | --confi | --conf | --con | --co | --c )
16003 $as_echo "$ac_cs_config"; exit ;;
16004 --debug | --debu | --deb | --de | --d | -d )
16005 debug=: ;;
16006 --file | --fil | --fi | --f )
16007 $ac_shift
16008 case $ac_optarg in
16009 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16010 '') as_fn_error $? "missing file argument" ;;
16011 esac
16012 as_fn_append CONFIG_FILES " '$ac_optarg'"
16013 ac_need_defaults=false;;
16014 --header | --heade | --head | --hea )
16015 $ac_shift
16016 case $ac_optarg in
16017 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16018 esac
16019 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16020 ac_need_defaults=false;;
16021 --he | --h)
16022 # Conflict between --help and --header
16023 as_fn_error $? "ambiguous option: \`$1'
16024 Try \`$0 --help' for more information.";;
16025 --help | --hel | -h )
16026 $as_echo "$ac_cs_usage"; exit ;;
16027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16028 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16029 ac_cs_silent=: ;;
16031 # This is an error.
16032 -*) as_fn_error $? "unrecognized option: \`$1'
16033 Try \`$0 --help' for more information." ;;
16035 *) as_fn_append ac_config_targets " $1"
16036 ac_need_defaults=false ;;
16038 esac
16039 shift
16040 done
16042 ac_configure_extra_args=
16044 if $ac_cs_silent; then
16045 exec 6>/dev/null
16046 ac_configure_extra_args="$ac_configure_extra_args --silent"
16049 _ACEOF
16050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16051 if \$ac_cs_recheck; then
16052 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16053 shift
16054 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16055 CONFIG_SHELL='$SHELL'
16056 export CONFIG_SHELL
16057 exec "\$@"
16060 _ACEOF
16061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16062 exec 5>>config.log
16064 echo
16065 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16066 ## Running $as_me. ##
16067 _ASBOX
16068 $as_echo "$ac_log"
16069 } >&5
16071 _ACEOF
16072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16074 # INIT-COMMANDS
16076 wine_fn_output_makefile ()
16078 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16079 $ALL_MAKEFILE_DEPENDS
16080 _WINE_EOF
16081 as_fn_error $? "could not create Makefile" "$LINENO" 5
16084 _ACEOF
16086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16088 # Handling of arguments.
16089 for ac_config_target in $ac_config_targets
16091 case $ac_config_target in
16092 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16093 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16094 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16095 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16096 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16097 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16098 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16099 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16100 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16101 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16102 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16103 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16104 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16105 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16106 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16107 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16108 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16109 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16110 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16111 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16112 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16113 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16114 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16115 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16116 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16118 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16119 esac
16120 done
16123 # If the user did not use the arguments to specify the items to instantiate,
16124 # then the envvar interface is used. Set only those that are not.
16125 # We use the long form for the default assignment because of an extremely
16126 # bizarre bug on SunOS 4.1.3.
16127 if $ac_need_defaults; then
16128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16130 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16134 # Have a temporary directory for convenience. Make it in the build tree
16135 # simply because there is no reason against having it here, and in addition,
16136 # creating and moving files from /tmp can sometimes cause problems.
16137 # Hook for its removal unless debugging.
16138 # Note that there is a small window in which the directory will not be cleaned:
16139 # after its creation but before its name has been assigned to `$tmp'.
16140 $debug ||
16142 tmp= ac_tmp=
16143 trap 'exit_status=$?
16144 : "${ac_tmp:=$tmp}"
16145 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16147 trap 'as_fn_exit 1' 1 2 13 15
16149 # Create a (secure) tmp directory for tmp files.
16152 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16153 test -d "$tmp"
16154 } ||
16156 tmp=./conf$$-$RANDOM
16157 (umask 077 && mkdir "$tmp")
16158 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16159 ac_tmp=$tmp
16161 # Set up the scripts for CONFIG_FILES section.
16162 # No need to generate them if there are no CONFIG_FILES.
16163 # This happens for instance with `./config.status config.h'.
16164 if test -n "$CONFIG_FILES"; then
16166 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16167 ac_cs_awk_getline=:
16168 ac_cs_awk_pipe_init=
16169 ac_cs_awk_read_file='
16170 while ((getline aline < (F[key])) > 0)
16171 print(aline)
16172 close(F[key])'
16173 ac_cs_awk_pipe_fini=
16174 else
16175 ac_cs_awk_getline=false
16176 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16177 ac_cs_awk_read_file='
16178 print "|#_!!_#|"
16179 print "cat " F[key] " &&"
16180 '$ac_cs_awk_pipe_init
16181 # The final `:' finishes the AND list.
16182 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16184 ac_cr=`echo X | tr X '\015'`
16185 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16186 # But we know of no other shell where ac_cr would be empty at this
16187 # point, so we can use a bashism as a fallback.
16188 if test "x$ac_cr" = x; then
16189 eval ac_cr=\$\'\\r\'
16191 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16192 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16193 ac_cs_awk_cr='\\r'
16194 else
16195 ac_cs_awk_cr=$ac_cr
16198 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16199 _ACEOF
16201 # Create commands to substitute file output variables.
16203 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16204 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16205 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16206 echo "_ACAWK" &&
16207 echo "_ACEOF"
16208 } >conf$$files.sh &&
16209 . ./conf$$files.sh ||
16210 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16211 rm -f conf$$files.sh
16214 echo "cat >conf$$subs.awk <<_ACEOF" &&
16215 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16216 echo "_ACEOF"
16217 } >conf$$subs.sh ||
16218 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16219 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16220 ac_delim='%!_!# '
16221 for ac_last_try in false false false false false :; do
16222 . ./conf$$subs.sh ||
16223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16225 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16226 if test $ac_delim_n = $ac_delim_num; then
16227 break
16228 elif $ac_last_try; then
16229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16230 else
16231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16233 done
16234 rm -f conf$$subs.sh
16236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16237 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16238 _ACEOF
16239 sed -n '
16241 s/^/S["/; s/!.*/"]=/
16244 s/^[^!]*!//
16245 :repl
16246 t repl
16247 s/'"$ac_delim"'$//
16248 t delim
16251 s/\(.\{148\}\)..*/\1/
16252 t more1
16253 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16256 b repl
16257 :more1
16258 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16261 s/.\{148\}//
16262 t nl
16263 :delim
16265 s/\(.\{148\}\)..*/\1/
16266 t more2
16267 s/["\\]/\\&/g; s/^/"/; s/$/"/
16270 :more2
16271 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16274 s/.\{148\}//
16275 t delim
16276 ' <conf$$subs.awk | sed '
16277 /^[^""]/{
16279 s/\n//
16281 ' >>$CONFIG_STATUS || ac_write_fail=1
16282 rm -f conf$$subs.awk
16283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16284 _ACAWK
16285 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16286 for (key in S) S_is_set[key] = 1
16287 FS = "\a"
16288 \$ac_cs_awk_pipe_init
16291 line = $ 0
16292 nfields = split(line, field, "@")
16293 substed = 0
16294 len = length(field[1])
16295 for (i = 2; i < nfields; i++) {
16296 key = field[i]
16297 keylen = length(key)
16298 if (S_is_set[key]) {
16299 value = S[key]
16300 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16301 len += length(value) + length(field[++i])
16302 substed = 1
16303 } else
16304 len += 1 + keylen
16306 if (nfields == 3 && !substed) {
16307 key = field[2]
16308 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16309 \$ac_cs_awk_read_file
16310 next
16313 print line
16315 \$ac_cs_awk_pipe_fini
16316 _ACAWK
16317 _ACEOF
16318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16319 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16320 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16321 else
16323 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16324 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16325 _ACEOF
16327 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16328 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16329 # trailing colons and then remove the whole line if VPATH becomes empty
16330 # (actually we leave an empty line to preserve line numbers).
16331 if test "x$srcdir" = x.; then
16332 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16334 s///
16335 s/^/:/
16336 s/[ ]*$/:/
16337 s/:\$(srcdir):/:/g
16338 s/:\${srcdir}:/:/g
16339 s/:@srcdir@:/:/g
16340 s/^:*//
16341 s/:*$//
16343 s/\(=[ ]*\).*/\1/
16345 s/\n//
16346 s/^[^=]*=[ ]*$//
16350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16351 fi # test -n "$CONFIG_FILES"
16353 # Set up the scripts for CONFIG_HEADERS section.
16354 # No need to generate them if there are no CONFIG_HEADERS.
16355 # This happens for instance with `./config.status Makefile'.
16356 if test -n "$CONFIG_HEADERS"; then
16357 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16358 BEGIN {
16359 _ACEOF
16361 # Transform confdefs.h into an awk script `defines.awk', embedded as
16362 # here-document in config.status, that substitutes the proper values into
16363 # config.h.in to produce config.h.
16365 # Create a delimiter string that does not exist in confdefs.h, to ease
16366 # handling of long lines.
16367 ac_delim='%!_!# '
16368 for ac_last_try in false false :; do
16369 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16370 if test -z "$ac_tt"; then
16371 break
16372 elif $ac_last_try; then
16373 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16374 else
16375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16377 done
16379 # For the awk script, D is an array of macro values keyed by name,
16380 # likewise P contains macro parameters if any. Preserve backslash
16381 # newline sequences.
16383 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16384 sed -n '
16385 s/.\{148\}/&'"$ac_delim"'/g
16386 t rset
16387 :rset
16388 s/^[ ]*#[ ]*define[ ][ ]*/ /
16389 t def
16391 :def
16392 s/\\$//
16393 t bsnl
16394 s/["\\]/\\&/g
16395 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16396 D["\1"]=" \3"/p
16397 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16399 :bsnl
16400 s/["\\]/\\&/g
16401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16402 D["\1"]=" \3\\\\\\n"\\/p
16403 t cont
16404 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16405 t cont
16407 :cont
16409 s/.\{148\}/&'"$ac_delim"'/g
16410 t clear
16411 :clear
16412 s/\\$//
16413 t bsnlc
16414 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16416 :bsnlc
16417 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16418 b cont
16419 ' <confdefs.h | sed '
16420 s/'"$ac_delim"'/"\\\
16421 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16424 for (key in D) D_is_set[key] = 1
16425 FS = "\a"
16427 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16428 line = \$ 0
16429 split(line, arg, " ")
16430 if (arg[1] == "#") {
16431 defundef = arg[2]
16432 mac1 = arg[3]
16433 } else {
16434 defundef = substr(arg[1], 2)
16435 mac1 = arg[2]
16437 split(mac1, mac2, "(") #)
16438 macro = mac2[1]
16439 prefix = substr(line, 1, index(line, defundef) - 1)
16440 if (D_is_set[macro]) {
16441 # Preserve the white space surrounding the "#".
16442 print prefix "define", macro P[macro] D[macro]
16443 next
16444 } else {
16445 # Replace #undef with comments. This is necessary, for example,
16446 # in the case of _POSIX_SOURCE, which is predefined and required
16447 # on some systems where configure will not decide to define it.
16448 if (defundef == "undef") {
16449 print "/*", prefix defundef, macro, "*/"
16450 next
16454 { print }
16455 _ACAWK
16456 _ACEOF
16457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16458 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16459 fi # test -n "$CONFIG_HEADERS"
16462 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16463 shift
16464 for ac_tag
16466 case $ac_tag in
16467 :[FHLC]) ac_mode=$ac_tag; continue;;
16468 esac
16469 case $ac_mode$ac_tag in
16470 :[FHL]*:*);;
16471 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16472 :[FH]-) ac_tag=-:-;;
16473 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16474 esac
16475 ac_save_IFS=$IFS
16476 IFS=:
16477 set x $ac_tag
16478 IFS=$ac_save_IFS
16479 shift
16480 ac_file=$1
16481 shift
16483 case $ac_mode in
16484 :L) ac_source=$1;;
16485 :[FH])
16486 ac_file_inputs=
16487 for ac_f
16489 case $ac_f in
16490 -) ac_f="$ac_tmp/stdin";;
16491 *) # Look for the file first in the build tree, then in the source tree
16492 # (if the path is not absolute). The absolute path cannot be DOS-style,
16493 # because $ac_f cannot contain `:'.
16494 test -f "$ac_f" ||
16495 case $ac_f in
16496 [\\/$]*) false;;
16497 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16498 esac ||
16499 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16500 esac
16501 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16502 as_fn_append ac_file_inputs " '$ac_f'"
16503 done
16505 # Let's still pretend it is `configure' which instantiates (i.e., don't
16506 # use $as_me), people would be surprised to read:
16507 # /* config.h. Generated by config.status. */
16508 configure_input='Generated from '`
16509 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16510 `' by configure.'
16511 if test x"$ac_file" != x-; then
16512 configure_input="$ac_file. $configure_input"
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16514 $as_echo "$as_me: creating $ac_file" >&6;}
16516 # Neutralize special characters interpreted by sed in replacement strings.
16517 case $configure_input in #(
16518 *\&* | *\|* | *\\* )
16519 ac_sed_conf_input=`$as_echo "$configure_input" |
16520 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16521 *) ac_sed_conf_input=$configure_input;;
16522 esac
16524 case $ac_tag in
16525 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16527 esac
16529 esac
16531 ac_dir=`$as_dirname -- "$ac_file" ||
16532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16533 X"$ac_file" : 'X\(//\)[^/]' \| \
16534 X"$ac_file" : 'X\(//\)$' \| \
16535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16536 $as_echo X"$ac_file" |
16537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16538 s//\1/
16541 /^X\(\/\/\)[^/].*/{
16542 s//\1/
16545 /^X\(\/\/\)$/{
16546 s//\1/
16549 /^X\(\/\).*/{
16550 s//\1/
16553 s/.*/./; q'`
16554 as_dir="$ac_dir"; as_fn_mkdir_p
16555 ac_builddir=.
16557 case "$ac_dir" in
16558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16561 # A ".." for each directory in $ac_dir_suffix.
16562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16563 case $ac_top_builddir_sub in
16564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16566 esac ;;
16567 esac
16568 ac_abs_top_builddir=$ac_pwd
16569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16570 # for backward compatibility:
16571 ac_top_builddir=$ac_top_build_prefix
16573 case $srcdir in
16574 .) # We are building in place.
16575 ac_srcdir=.
16576 ac_top_srcdir=$ac_top_builddir_sub
16577 ac_abs_top_srcdir=$ac_pwd ;;
16578 [\\/]* | ?:[\\/]* ) # Absolute name.
16579 ac_srcdir=$srcdir$ac_dir_suffix;
16580 ac_top_srcdir=$srcdir
16581 ac_abs_top_srcdir=$srcdir ;;
16582 *) # Relative name.
16583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16584 ac_top_srcdir=$ac_top_build_prefix$srcdir
16585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16586 esac
16587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16590 case $ac_mode in
16593 # CONFIG_FILE
16596 case $INSTALL in
16597 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16598 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16599 esac
16600 _ACEOF
16602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16603 # If the template does not know about datarootdir, expand it.
16604 # FIXME: This hack should be removed a few years after 2.60.
16605 ac_datarootdir_hack=; ac_datarootdir_seen=
16606 ac_sed_dataroot='
16607 /datarootdir/ {
16611 /@datadir@/p
16612 /@docdir@/p
16613 /@infodir@/p
16614 /@localedir@/p
16615 /@mandir@/p'
16616 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16617 *datarootdir*) ac_datarootdir_seen=yes;;
16618 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16620 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16621 _ACEOF
16622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16623 ac_datarootdir_hack='
16624 s&@datadir@&$datadir&g
16625 s&@docdir@&$docdir&g
16626 s&@infodir@&$infodir&g
16627 s&@localedir@&$localedir&g
16628 s&@mandir@&$mandir&g
16629 s&\\\${datarootdir}&$datarootdir&g' ;;
16630 esac
16631 _ACEOF
16633 # Neutralize VPATH when `$srcdir' = `.'.
16634 # Shell code in configure.ac might set extrasub.
16635 # FIXME: do we really want to maintain this feature?
16636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16637 ac_sed_extra="$ac_vpsub
16638 $extrasub
16639 _ACEOF
16640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16642 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16643 s|@configure_input@|$ac_sed_conf_input|;t t
16644 s&@top_builddir@&$ac_top_builddir_sub&;t t
16645 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16646 s&@srcdir@&$ac_srcdir&;t t
16647 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16648 s&@top_srcdir@&$ac_top_srcdir&;t t
16649 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16650 s&@builddir@&$ac_builddir&;t t
16651 s&@abs_builddir@&$ac_abs_builddir&;t t
16652 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16653 s&@INSTALL@&$ac_INSTALL&;t t
16654 $ac_datarootdir_hack
16656 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16657 if $ac_cs_awk_getline; then
16658 $AWK -f "$ac_tmp/subs.awk"
16659 else
16660 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16661 fi \
16662 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16664 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16665 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16666 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16667 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16669 which seems to be undefined. Please make sure it is defined" >&5
16670 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16671 which seems to be undefined. Please make sure it is defined" >&2;}
16673 rm -f "$ac_tmp/stdin"
16674 case $ac_file in
16675 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16676 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16677 esac \
16678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16682 # CONFIG_HEADER
16684 if test x"$ac_file" != x-; then
16686 $as_echo "/* $configure_input */" \
16687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16688 } >"$ac_tmp/config.h" \
16689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16690 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16692 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16693 else
16694 rm -f "$ac_file"
16695 mv "$ac_tmp/config.h" "$ac_file" \
16696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16698 else
16699 $as_echo "/* $configure_input */" \
16700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16701 || as_fn_error $? "could not create -" "$LINENO" 5
16706 # CONFIG_LINK
16709 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16711 else
16712 # Prefer the file from the source tree if names are identical.
16713 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16714 ac_source=$srcdir/$ac_source
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16718 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16720 if test ! -r "$ac_source"; then
16721 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16723 rm -f "$ac_file"
16725 # Try a relative symlink, then a hard link, then a copy.
16726 case $ac_source in
16727 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16728 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16729 esac
16730 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16731 ln "$ac_source" "$ac_file" 2>/dev/null ||
16732 cp -p "$ac_source" "$ac_file" ||
16733 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16736 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16737 $as_echo "$as_me: executing $ac_file commands" >&6;}
16739 esac
16742 case $ac_file$ac_mode in
16743 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16744 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
16745 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
16746 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16747 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16748 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16749 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16750 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16751 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16752 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16753 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16754 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16755 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16756 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16757 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16758 "Makefile":C) wine_fn_output_makefile Makefile ;;
16760 esac
16761 done # for ac_tag
16764 as_fn_exit 0
16765 _ACEOF
16766 ac_clean_files=$ac_clean_files_save
16768 test $ac_write_fail = 0 ||
16769 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16772 # configure is writing to config.log, and then calls config.status.
16773 # config.status does its own redirection, appending to config.log.
16774 # Unfortunately, on DOS this fails, as config.log is still kept open
16775 # by configure, so config.status won't be able to write to it; its
16776 # output is simply discarded. So we exec the FD to /dev/null,
16777 # effectively closing config.log, so it can be properly (re)opened and
16778 # appended to by config.status. When coming back to configure, we
16779 # need to make the FD available again.
16780 if test "$no_create" != yes; then
16781 ac_cs_success=:
16782 ac_config_status_args=
16783 test "$silent" = yes &&
16784 ac_config_status_args="$ac_config_status_args --quiet"
16785 exec 5>/dev/null
16786 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16787 exec 5>>config.log
16788 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16789 # would make configure fail if this is the last instruction.
16790 $ac_cs_success || as_fn_exit 1
16792 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16794 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16798 if test "$no_create" = "yes"
16799 then
16800 exit 0
16803 ac_save_IFS="$IFS"
16804 if test "x$wine_notices != "x; then
16805 echo >&6
16806 IFS="|"
16807 for msg in $wine_notices; do
16808 IFS="$ac_save_IFS"
16809 if test -n "$msg"; then
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16811 $as_echo "$as_me: $msg" >&6;}
16813 done
16815 IFS="|"
16816 for msg in $wine_warnings; do
16817 IFS="$ac_save_IFS"
16818 if test -n "$msg"; then
16819 echo >&2
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16821 $as_echo "$as_me: WARNING: $msg" >&2;}
16823 done
16824 IFS="$ac_save_IFS"
16826 echo "
16827 $as_me: Finished. Do '${ac_make}' to compile Wine.
16828 " >&6