mshtml: Use better helper in IHTMLStyle::get_width implementation.
[wine.git] / configure
blob2cb3166012ded84c301b91d47799c8dc90c7b0df
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.5.0.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: wine-devel@winehq.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
247 exit 1
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
265 { eval $1=; unset $1;}
267 as_unset=as_fn_unset
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
274 return $1
275 } # as_fn_set_status
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
318 /^X\(\/\/\)$/{
319 s//\1/
322 /^X\(\/\).*/{
323 s//\1/
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
343 eval $1+=\$2
345 else
346 as_fn_append ()
348 eval $1=\$$1\$2
350 fi # as_fn_append
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
360 as_val=$(( $* ))
362 else
363 as_fn_arith ()
365 as_val=`expr "$@" || test $? -eq 1`
367 fi # as_fn_arith
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
414 /^X\/\(\/\/\)$/{
415 s//\1/
418 /^X\/\(\/\).*/{
419 s//\1/
422 s/.*/./; q'`
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
445 :lineno
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
473 ECHO_N='-n';;
474 esac
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
497 else
498 as_ln_s='cp -p'
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
560 # Identity of this package.
561 PACKAGE_NAME='Wine'
562 PACKAGE_TARNAME='wine'
563 PACKAGE_VERSION='1.5.0'
564 PACKAGE_STRING='Wine 1.5.0'
565 PACKAGE_BUGREPORT='wine-devel@winehq.org'
566 PACKAGE_URL='http://www.winehq.org'
568 ac_unique_file="server/atom.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 PORCFLAGS
608 LINGUAS
609 ALL_TEST_RESOURCES
610 LDAPLIBS
611 LIBPOLL
612 LIBDL
613 EXTRA_BINARIES
614 MAIN_BINARY
615 SOCKETLIBS
616 CRTLIBS
617 TOOLSEXT
618 LDPATH
619 UNWINDFLAGS
620 BUILTINFLAG
621 EXTRACFLAGS
622 LIBKSTAT
623 LIBOPENAL
624 LIBMPG123
625 PNGINCL
626 FONTCONFIGINCL
627 CUPSINCL
628 OSS4INCL
629 ALSALIBS
630 GSTREAMER_INCL
631 GSTREAMER_LIBS
632 LIBGETTEXTPO
633 ZLIB
634 FREETYPEINCL
635 FREETYPELIBS
636 ft_devel
637 LCMSLIBS
638 RESOLVLIBS
639 GPHOTO2INCL
640 GPHOTO2LIBS
641 gphoto2port_devel
642 gphoto2_devel
643 SANEINCL
644 sane_devel
645 GNUTLSINCL
646 HALINCL
647 DBUSINCL
648 XSLTINCL
649 XML2INCL
650 XML2LIBS
651 X_EXTRA_LIBS
652 X_LIBS
653 X_PRE_LIBS
654 X_CFLAGS
655 XMKMF
656 LIBPTHREAD
657 CROSSTARGET
658 CROSSCC
659 CROSSTEST_DISABLE
660 PRELINK
661 CARBONLIB
662 QUICKTIMELIB
663 LIBOPENCL
664 FRAMEWORK_OPENAL
665 COREAUDIO
666 SECURITYLIB
667 DISKARBITRATIONLIB
668 LDEXECFLAGS
669 CORESERVICESLIB
670 APPLICATIONSERVICESLIB
671 IOKITLIB
672 COREFOUNDATIONLIB
673 DLLWRAP
674 DLLTOOL
676 LDRPATH_LOCAL
677 LDRPATH_INSTALL
678 IMPLIBEXT
679 LIBEXT
680 LDDLLFLAGS
681 LDSHARED
682 DLLFLAGS
683 DLLEXT
685 OPENGL_LIBS
686 XLIB
687 MAINTAINER_MODE
688 MSGFMT
689 ICOTOOL
690 CONVERT
691 RSVG
692 PKG_CONFIG
693 FONTFORGE
694 LINTFLAGS
695 LINT
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 LDCONFIG
700 EGREP
701 GREP
702 LN_S
703 RANLIB
704 ARFLAGS
705 ac_ct_AR
707 BISON
708 FLEX
709 TOOLSDIR
710 WOW64_DISABLE
711 TARGETFLAGS
712 CPPBIN
713 ac_ct_CXX
714 CXXFLAGS
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
723 SET_MAKE
724 host_os
725 host_vendor
726 host_cpu
727 host
728 build_os
729 build_vendor
730 build_cpu
731 build
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files='MAKE_RULES
771 MAKE_TEST_RULES
772 MAKE_DLL_RULES
773 MAKE_IMPLIB_RULES
774 MAKE_PROG_RULES'
775 ac_user_opts='
776 enable_option_checking
777 enable_win16
778 enable_win64
779 enable_tests
780 enable_maintainer_mode
781 with_alsa
782 with_capi
783 with_cms
784 with_coreaudio
785 with_cups
786 with_curses
787 with_dbus
788 with_fontconfig
789 with_freetype
790 with_gettext
791 with_gettextpo
792 with_gphoto
793 with_glu
794 with_gnutls
795 with_gsm
796 with_gstreamer
797 with_hal
798 with_jpeg
799 with_ldap
800 with_mpg123
801 with_openal
802 with_opencl
803 with_opengl
804 with_openssl
805 with_oss
806 with_png
807 with_pthread
808 with_sane
809 with_tiff
810 with_v4l
811 with_xcomposite
812 with_xcursor
813 with_xinerama
814 with_xinput
815 with_xinput2
816 with_xml
817 with_xrandr
818 with_xrender
819 with_xshape
820 with_xslt
821 with_xxf86vm
822 with_zlib
823 with_wine_tools
824 with_wine64
825 enable_largefile
826 with_x
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
837 CXXFLAGS
840 XMKMF'
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
891 ac_prev=
892 ac_dashdash=
893 for ac_option
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
902 case $ac_option in
903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *=) ac_optarg= ;;
905 *) ac_optarg=yes ;;
906 esac
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
912 ac_dashdash=yes ;;
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
931 --config-cache | -C)
932 cache_file=config.cache ;;
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1226 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information"
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248 esac
1249 done
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error $? "missing argument to $ac_option"
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used" >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306 test "$silent" = yes && exec 6>/dev/null
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $? "pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1335 /^X\(\/\/\)$/{
1336 s//\1/
1339 /^X\(\/\).*/{
1340 s//\1/
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1348 else
1349 ac_srcdir_defaulted=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures Wine 1.5.0 to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1438 cat <<\_ACEOF
1440 X features:
1441 --x-includes=DIR X include files are in DIR
1442 --x-libraries=DIR X library files are in DIR
1444 System types:
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 _ACEOF
1450 if test -n "$ac_init_help"; then
1451 case $ac_init_help in
1452 short | recursive ) echo "Configuration of Wine 1.5.0:";;
1453 esac
1454 cat <<\_ACEOF
1456 Optional Features:
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --disable-win16 do not include Win16 support
1461 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1462 binaries)
1463 --disable-tests do not build the regression tests
1464 --enable-maintainer-mode
1465 enable maintainer-specific build rules
1466 --disable-largefile omit support for large files
1468 Optional Packages:
1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1471 --without-alsa do not use the Alsa sound support
1472 --without-capi do not use CAPI (ISDN support)
1473 --without-cms do not use CMS (color management support)
1474 --without-coreaudio do not use the CoreAudio sound support
1475 --without-cups do not use CUPS
1476 --without-curses do not use (n)curses
1477 --without-dbus do not use DBus (dynamic device support)
1478 --without-fontconfig do not use fontconfig
1479 --without-freetype do not use the FreeType library
1480 --without-gettext do not use gettext
1481 --with-gettextpo use the GetTextPO library to rebuild po files
1482 --without-gphoto do not use gphoto (Digital Camera support)
1483 --without-glu do not use the GLU library
1484 --without-gnutls do not use GnuTLS (schannel support)
1485 --without-gsm do not use libgsm (GSM 06.10 codec support)
1486 --without-gstreamer do not use GStreamer (codecs support)
1487 --without-hal do not use HAL (dynamic device support)
1488 --without-jpeg do not use JPEG
1489 --without-ldap do not use LDAP
1490 --without-mpg123 do not use the mpg123 library
1491 --without-openal do not use OpenAL
1492 --without-opencl do not use OpenCL
1493 --without-opengl do not use OpenGL
1494 --without-openssl do not use OpenSSL
1495 --without-oss do not use the OSS sound support
1496 --without-png do not use PNG
1497 --without-pthread do not use the pthread library
1498 --without-sane do not use SANE (scanner support)
1499 --without-tiff do not use TIFF
1500 --without-v4l do not use v4l1 (v4l support)
1501 --without-xcomposite do not use the Xcomposite extension
1502 --without-xcursor do not use the Xcursor extension
1503 --without-xinerama do not use Xinerama (multi-monitor support)
1504 --without-xinput do not use the Xinput extension
1505 --without-xinput2 do not use the Xinput 2 extension
1506 --without-xml do not use XML
1507 --without-xrandr do not use Xrandr (resolution changes)
1508 --without-xrender do not use the Xrender extension
1509 --without-xshape do not use the Xshape extension
1510 --without-xslt do not use XSLT
1511 --without-xxf86vm do not use XFree video mode extension
1512 --without-zlib do not use Zlib (data compression)
1513 --with-wine-tools=DIR use Wine tools from directory DIR
1514 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1515 --with-x use the X Window System
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 CXX C++ compiler command
1526 CXXFLAGS C++ compiler flags
1527 CPP C preprocessor
1528 XMKMF Path to xmkmf, Makefile generator for X Window System
1530 Use these variables to override the choices made by `configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1533 Report bugs to <wine-devel@winehq.org>.
1534 Wine home page: <http://www.winehq.org>.
1535 _ACEOF
1536 ac_status=$?
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 Wine configure 1.5.0
1598 generated by GNU Autoconf 2.68
1600 Copyright (C) 2010 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1603 _ACEOF
1604 exit
1607 ## ------------------------ ##
1608 ## Autoconf initialization. ##
1609 ## ------------------------ ##
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1642 ac_retval=1
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1647 } # ac_fn_c_try_compile
1649 # ac_fn_cxx_try_compile LINENO
1650 # ----------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_cxx_try_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_cxx_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1680 ac_retval=1
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1685 } # ac_fn_cxx_try_compile
1687 # ac_fn_c_try_link LINENO
1688 # -----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_link ()
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext conftest$ac_exeext
1694 if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest$ac_exeext && {
1713 test "$cross_compiling" = yes ||
1714 $as_test_x conftest$ac_exeext
1715 }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1721 ac_retval=1
1723 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1724 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1725 # interfere with the next link command; also delete a directory that is
1726 # left behind by Apple's compiler. We do this before executing the actions.
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1731 } # ac_fn_c_try_link
1733 # ac_fn_c_try_cpp LINENO
1734 # ----------------------
1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_cpp ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_cpp conftest.$ac_ext"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } > conftest.i && {
1755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 }; then :
1758 ac_retval=0
1759 else
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1763 ac_retval=1
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1768 } # ac_fn_c_try_cpp
1770 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773 # the include files in INCLUDES and setting the cache variable VAR
1774 # accordingly.
1775 ac_fn_c_check_header_mongrel ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if eval \${$3+:} false; then :
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 else
1788 # Is the header compilable?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790 $as_echo_n "checking $2 usability... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 ac_header_compiler=yes
1798 else
1799 ac_header_compiler=no
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803 $as_echo "$ac_header_compiler" >&6; }
1805 # Is the header present?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807 $as_echo_n "checking $2 presence... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_cpp "$LINENO"; then :
1813 ac_header_preproc=yes
1814 else
1815 ac_header_preproc=no
1817 rm -f conftest.err conftest.i conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819 $as_echo "$ac_header_preproc" >&6; }
1821 # So? What about this header?
1822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1823 yes:no: )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829 no:yes:* )
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1833 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1837 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 ( $as_echo "## ------------------------------------ ##
1841 ## Report this to wine-devel@winehq.org ##
1842 ## ------------------------------------ ##"
1843 ) | sed "s/^/$as_me: WARNING: /" >&2
1845 esac
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1850 else
1851 eval "$3=\$ac_header_compiler"
1853 eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 } # ac_fn_c_check_header_mongrel
1861 # ac_fn_c_try_run LINENO
1862 # ----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1864 # that executables *can* be run.
1865 ac_fn_c_try_run ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>&5
1876 ac_status=$?
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1879 { { case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_try") 2>&5
1886 ac_status=$?
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; }; }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: program exited with status $ac_status" >&5
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1895 ac_retval=$ac_status
1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 as_fn_set_status $ac_retval
1901 } # ac_fn_c_try_run
1903 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists and can be compiled using the include files in
1906 # INCLUDES, setting the cache variable VAR accordingly.
1907 ac_fn_c_check_header_compile ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1918 #include <$2>
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 eval "$3=yes"
1922 else
1923 eval "$3=no"
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 } # ac_fn_c_check_header_compile
1934 # ac_fn_c_check_func LINENO FUNC VAR
1935 # ----------------------------------
1936 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1937 ac_fn_c_check_func ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1944 else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1949 #define $2 innocuous_$2
1951 /* System header to define __stub macros and hopefully few prototypes,
1952 which can conflict with char $2 (); below.
1953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1954 <limits.h> exists even on freestanding compilers. */
1956 #ifdef __STDC__
1957 # include <limits.h>
1958 #else
1959 # include <assert.h>
1960 #endif
1962 #undef $2
1964 /* Override any GCC internal prototype to avoid an error.
1965 Use char because int might match the return type of a GCC
1966 builtin and then its argument prototype would still apply. */
1967 #ifdef __cplusplus
1968 extern "C"
1969 #endif
1970 char $2 ();
1971 /* The GNU C library defines this for functions which it implements
1972 to always fail with ENOSYS. Some functions are actually named
1973 something starting with __ and the normal name is an alias. */
1974 #if defined __stub_$2 || defined __stub___$2
1975 choke me
1976 #endif
1979 main ()
1981 return $2 ();
1983 return 0;
1985 _ACEOF
1986 if ac_fn_c_try_link "$LINENO"; then :
1987 eval "$3=yes"
1988 else
1989 eval "$3=no"
1991 rm -f core conftest.err conftest.$ac_objext \
1992 conftest$ac_exeext conftest.$ac_ext
1994 eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 } # ac_fn_c_check_func
2001 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2002 # ----------------------------------------------------
2003 # Tries to find if the field MEMBER exists in type AGGR, after including
2004 # INCLUDES, setting cache variable VAR accordingly.
2005 ac_fn_c_check_member ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2009 $as_echo_n "checking for $2.$3... " >&6; }
2010 if eval \${$4+:} false; then :
2011 $as_echo_n "(cached) " >&6
2012 else
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2017 main ()
2019 static $2 ac_aggr;
2020 if (ac_aggr.$3)
2021 return 0;
2023 return 0;
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 eval "$4=yes"
2028 else
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2033 main ()
2035 static $2 ac_aggr;
2036 if (sizeof ac_aggr.$3)
2037 return 0;
2039 return 0;
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043 eval "$4=yes"
2044 else
2045 eval "$4=no"
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 eval ac_res=\$$4
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_member
2058 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2059 # -------------------------------------------
2060 # Tests whether TYPE exists after having included INCLUDES, setting cache
2061 # variable VAR accordingly.
2062 ac_fn_c_check_type ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066 $as_echo_n "checking for $2... " >&6; }
2067 if eval \${$3+:} false; then :
2068 $as_echo_n "(cached) " >&6
2069 else
2070 eval "$3=no"
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2075 main ()
2077 if (sizeof ($2))
2078 return 0;
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2088 main ()
2090 if (sizeof (($2)))
2091 return 0;
2093 return 0;
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2098 else
2099 eval "$3=yes"
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 } # ac_fn_c_check_type
2111 cat >config.log <<_ACEOF
2112 This file contains any messages produced by compilers while
2113 running configure, to aid debugging if configure makes a mistake.
2115 It was created by Wine $as_me 1.5.0, which was
2116 generated by GNU Autoconf 2.68. Invocation command line was
2118 $ $0 $@
2120 _ACEOF
2121 exec 5>>config.log
2123 cat <<_ASUNAME
2124 ## --------- ##
2125 ## Platform. ##
2126 ## --------- ##
2128 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2129 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2130 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2131 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2132 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2134 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2135 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2137 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2138 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2139 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2140 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2141 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2142 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2143 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2145 _ASUNAME
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2150 IFS=$as_save_IFS
2151 test -z "$as_dir" && as_dir=.
2152 $as_echo "PATH: $as_dir"
2153 done
2154 IFS=$as_save_IFS
2156 } >&5
2158 cat >&5 <<_ACEOF
2161 ## ----------- ##
2162 ## Core tests. ##
2163 ## ----------- ##
2165 _ACEOF
2168 # Keep a trace of the command line.
2169 # Strip out --no-create and --no-recursion so they do not pile up.
2170 # Strip out --silent because we don't want to record it for future runs.
2171 # Also quote any args containing shell meta-characters.
2172 # Make two passes to allow for proper duplicate-argument suppression.
2173 ac_configure_args=
2174 ac_configure_args0=
2175 ac_configure_args1=
2176 ac_must_keep_next=false
2177 for ac_pass in 1 2
2179 for ac_arg
2181 case $ac_arg in
2182 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2184 | -silent | --silent | --silen | --sile | --sil)
2185 continue ;;
2186 *\'*)
2187 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2188 esac
2189 case $ac_pass in
2190 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2192 as_fn_append ac_configure_args1 " '$ac_arg'"
2193 if test $ac_must_keep_next = true; then
2194 ac_must_keep_next=false # Got value, back to normal.
2195 else
2196 case $ac_arg in
2197 *=* | --config-cache | -C | -disable-* | --disable-* \
2198 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2199 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2200 | -with-* | --with-* | -without-* | --without-* | --x)
2201 case "$ac_configure_args0 " in
2202 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2203 esac
2205 -* ) ac_must_keep_next=true ;;
2206 esac
2208 as_fn_append ac_configure_args " '$ac_arg'"
2210 esac
2211 done
2212 done
2213 { ac_configure_args0=; unset ac_configure_args0;}
2214 { ac_configure_args1=; unset ac_configure_args1;}
2216 # When interrupted or exit'd, cleanup temporary files, and complete
2217 # config.log. We remove comments because anyway the quotes in there
2218 # would cause problems or look ugly.
2219 # WARNING: Use '\'' to represent an apostrophe within the trap.
2220 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2221 trap 'exit_status=$?
2222 # Save into config.log some information that might help in debugging.
2224 echo
2226 $as_echo "## ---------------- ##
2227 ## Cache variables. ##
2228 ## ---------------- ##"
2229 echo
2230 # The following way of writing the cache mishandles newlines in values,
2232 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2233 eval ac_val=\$$ac_var
2234 case $ac_val in #(
2235 *${as_nl}*)
2236 case $ac_var in #(
2237 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2238 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2239 esac
2240 case $ac_var in #(
2241 _ | IFS | as_nl) ;; #(
2242 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2243 *) { eval $ac_var=; unset $ac_var;} ;;
2244 esac ;;
2245 esac
2246 done
2247 (set) 2>&1 |
2248 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2249 *${as_nl}ac_space=\ *)
2250 sed -n \
2251 "s/'\''/'\''\\\\'\'''\''/g;
2252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2253 ;; #(
2255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2257 esac |
2258 sort
2260 echo
2262 $as_echo "## ----------------- ##
2263 ## Output variables. ##
2264 ## ----------------- ##"
2265 echo
2266 for ac_var in $ac_subst_vars
2268 eval ac_val=\$$ac_var
2269 case $ac_val in
2270 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271 esac
2272 $as_echo "$ac_var='\''$ac_val'\''"
2273 done | sort
2274 echo
2276 if test -n "$ac_subst_files"; then
2277 $as_echo "## ------------------- ##
2278 ## File substitutions. ##
2279 ## ------------------- ##"
2280 echo
2281 for ac_var in $ac_subst_files
2283 eval ac_val=\$$ac_var
2284 case $ac_val in
2285 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2286 esac
2287 $as_echo "$ac_var='\''$ac_val'\''"
2288 done | sort
2289 echo
2292 if test -s confdefs.h; then
2293 $as_echo "## ----------- ##
2294 ## confdefs.h. ##
2295 ## ----------- ##"
2296 echo
2297 cat confdefs.h
2298 echo
2300 test "$ac_signal" != 0 &&
2301 $as_echo "$as_me: caught signal $ac_signal"
2302 $as_echo "$as_me: exit $exit_status"
2303 } >&5
2304 rm -f core *.core core.conftest.* &&
2305 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2306 exit $exit_status
2308 for ac_signal in 1 2 13 15; do
2309 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2310 done
2311 ac_signal=0
2313 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2314 rm -f -r conftest* confdefs.h
2316 $as_echo "/* confdefs.h */" > confdefs.h
2318 # Predefined preprocessor variables.
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_NAME "$PACKAGE_NAME"
2322 _ACEOF
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2326 _ACEOF
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2330 _ACEOF
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_STRING "$PACKAGE_STRING"
2334 _ACEOF
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2338 _ACEOF
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_URL "$PACKAGE_URL"
2342 _ACEOF
2345 # Let the site file select an alternate cache file if it wants to.
2346 # Prefer an explicitly selected file to automatically selected ones.
2347 ac_site_file1=NONE
2348 ac_site_file2=NONE
2349 if test -n "$CONFIG_SITE"; then
2350 # We do not want a PATH search for config.site.
2351 case $CONFIG_SITE in #((
2352 -*) ac_site_file1=./$CONFIG_SITE;;
2353 */*) ac_site_file1=$CONFIG_SITE;;
2354 *) ac_site_file1=./$CONFIG_SITE;;
2355 esac
2356 elif test "x$prefix" != xNONE; then
2357 ac_site_file1=$prefix/share/config.site
2358 ac_site_file2=$prefix/etc/config.site
2359 else
2360 ac_site_file1=$ac_default_prefix/share/config.site
2361 ac_site_file2=$ac_default_prefix/etc/config.site
2363 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2365 test "x$ac_site_file" = xNONE && continue
2366 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2368 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2369 sed 's/^/| /' "$ac_site_file" >&5
2370 . "$ac_site_file" \
2371 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2373 as_fn_error $? "failed to load site script $ac_site_file
2374 See \`config.log' for more details" "$LINENO" 5; }
2376 done
2378 if test -r "$cache_file"; then
2379 # Some versions of bash will fail to source /dev/null (special files
2380 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2381 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2383 $as_echo "$as_me: loading cache $cache_file" >&6;}
2384 case $cache_file in
2385 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2386 *) . "./$cache_file";;
2387 esac
2389 else
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2391 $as_echo "$as_me: creating cache $cache_file" >&6;}
2392 >$cache_file
2395 # Check that the precious variables saved in the cache have kept the same
2396 # value.
2397 ac_cache_corrupted=false
2398 for ac_var in $ac_precious_vars; do
2399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2400 eval ac_new_set=\$ac_env_${ac_var}_set
2401 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2402 eval ac_new_val=\$ac_env_${ac_var}_value
2403 case $ac_old_set,$ac_new_set in
2404 set,)
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2406 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2407 ac_cache_corrupted=: ;;
2408 ,set)
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2410 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2411 ac_cache_corrupted=: ;;
2412 ,);;
2414 if test "x$ac_old_val" != "x$ac_new_val"; then
2415 # differences in whitespace do not lead to failure.
2416 ac_old_val_w=`echo x $ac_old_val`
2417 ac_new_val_w=`echo x $ac_new_val`
2418 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2420 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2421 ac_cache_corrupted=:
2422 else
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2424 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2425 eval $ac_var=\$ac_old_val
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2428 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2430 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2431 fi;;
2432 esac
2433 # Pass precious variables to config.status.
2434 if test "$ac_new_set" = set; then
2435 case $ac_new_val in
2436 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2437 *) ac_arg=$ac_var=$ac_new_val ;;
2438 esac
2439 case " $ac_configure_args " in
2440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2441 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2442 esac
2444 done
2445 if $ac_cache_corrupted; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2449 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2450 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2452 ## -------------------- ##
2453 ## Main body of script. ##
2454 ## -------------------- ##
2456 ac_ext=c
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464 ac_config_headers="$ac_config_headers include/config.h"
2466 ac_aux_dir=
2467 for ac_dir in tools "$srcdir"/tools; do
2468 if test -f "$ac_dir/install-sh"; then
2469 ac_aux_dir=$ac_dir
2470 ac_install_sh="$ac_aux_dir/install-sh -c"
2471 break
2472 elif test -f "$ac_dir/install.sh"; then
2473 ac_aux_dir=$ac_dir
2474 ac_install_sh="$ac_aux_dir/install.sh -c"
2475 break
2476 elif test -f "$ac_dir/shtool"; then
2477 ac_aux_dir=$ac_dir
2478 ac_install_sh="$ac_aux_dir/shtool install -c"
2479 break
2481 done
2482 if test -z "$ac_aux_dir"; then
2483 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2486 # These three variables are undocumented and unsupported,
2487 # and are intended to be withdrawn in a future Autoconf release.
2488 # They can cause serious problems if a builder's source tree is in a directory
2489 # whose full name contains unusual characters.
2490 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2491 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2492 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2498 # Check whether --enable-win16 was given.
2499 if test "${enable_win16+set}" = set; then :
2500 enableval=$enable_win16;
2503 # Check whether --enable-win64 was given.
2504 if test "${enable_win64+set}" = set; then :
2505 enableval=$enable_win64;
2508 # Check whether --enable-tests was given.
2509 if test "${enable_tests+set}" = set; then :
2510 enableval=$enable_tests;
2513 # Check whether --enable-maintainer-mode was given.
2514 if test "${enable_maintainer_mode+set}" = set; then :
2515 enableval=$enable_maintainer_mode;
2520 # Check whether --with-alsa was given.
2521 if test "${with_alsa+set}" = set; then :
2522 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2526 # Check whether --with-capi was given.
2527 if test "${with_capi+set}" = set; then :
2528 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2532 # Check whether --with-cms was given.
2533 if test "${with_cms+set}" = set; then :
2534 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2538 # Check whether --with-coreaudio was given.
2539 if test "${with_coreaudio+set}" = set; then :
2540 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2544 # Check whether --with-cups was given.
2545 if test "${with_cups+set}" = set; then :
2546 withval=$with_cups;
2550 # Check whether --with-curses was given.
2551 if test "${with_curses+set}" = set; then :
2552 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2556 # Check whether --with-dbus was given.
2557 if test "${with_dbus+set}" = set; then :
2558 withval=$with_dbus;
2562 # Check whether --with-fontconfig was given.
2563 if test "${with_fontconfig+set}" = set; then :
2564 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2568 # Check whether --with-freetype was given.
2569 if test "${with_freetype+set}" = set; then :
2570 withval=$with_freetype;
2574 # Check whether --with-gettext was given.
2575 if test "${with_gettext+set}" = set; then :
2576 withval=$with_gettext;
2580 # Check whether --with-gettextpo was given.
2581 if test "${with_gettextpo+set}" = set; then :
2582 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2586 # Check whether --with-gphoto was given.
2587 if test "${with_gphoto+set}" = set; then :
2588 withval=$with_gphoto;
2592 # Check whether --with-glu was given.
2593 if test "${with_glu+set}" = set; then :
2594 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2598 # Check whether --with-gnutls was given.
2599 if test "${with_gnutls+set}" = set; then :
2600 withval=$with_gnutls;
2604 # Check whether --with-gsm was given.
2605 if test "${with_gsm+set}" = set; then :
2606 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2610 # Check whether --with-gstreamer was given.
2611 if test "${with_gstreamer+set}" = set; then :
2612 withval=$with_gstreamer;
2616 # Check whether --with-hal was given.
2617 if test "${with_hal+set}" = set; then :
2618 withval=$with_hal;
2622 # Check whether --with-jpeg was given.
2623 if test "${with_jpeg+set}" = set; then :
2624 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2628 # Check whether --with-ldap was given.
2629 if test "${with_ldap+set}" = set; then :
2630 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2634 # Check whether --with-mpg123 was given.
2635 if test "${with_mpg123+set}" = set; then :
2636 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2640 # Check whether --with-openal was given.
2641 if test "${with_openal+set}" = set; then :
2642 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2646 # Check whether --with-opencl was given.
2647 if test "${with_opencl+set}" = set; then :
2648 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2652 # Check whether --with-opengl was given.
2653 if test "${with_opengl+set}" = set; then :
2654 withval=$with_opengl;
2658 # Check whether --with-openssl was given.
2659 if test "${with_openssl+set}" = set; then :
2660 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2664 # Check whether --with-oss was given.
2665 if test "${with_oss+set}" = set; then :
2666 withval=$with_oss;
2670 # Check whether --with-png was given.
2671 if test "${with_png+set}" = set; then :
2672 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2676 # Check whether --with-pthread was given.
2677 if test "${with_pthread+set}" = set; then :
2678 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2682 # Check whether --with-sane was given.
2683 if test "${with_sane+set}" = set; then :
2684 withval=$with_sane;
2688 # Check whether --with-tiff was given.
2689 if test "${with_tiff+set}" = set; then :
2690 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2694 # Check whether --with-v4l was given.
2695 if test "${with_v4l+set}" = set; then :
2696 withval=$with_v4l;
2700 # Check whether --with-xcomposite was given.
2701 if test "${with_xcomposite+set}" = set; then :
2702 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2706 # Check whether --with-xcursor was given.
2707 if test "${with_xcursor+set}" = set; then :
2708 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2712 # Check whether --with-xinerama was given.
2713 if test "${with_xinerama+set}" = set; then :
2714 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2718 # Check whether --with-xinput was given.
2719 if test "${with_xinput+set}" = set; then :
2720 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2724 # Check whether --with-xinput2 was given.
2725 if test "${with_xinput2+set}" = set; then :
2726 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2730 # Check whether --with-xml was given.
2731 if test "${with_xml+set}" = set; then :
2732 withval=$with_xml;
2736 # Check whether --with-xrandr was given.
2737 if test "${with_xrandr+set}" = set; then :
2738 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2742 # Check whether --with-xrender was given.
2743 if test "${with_xrender+set}" = set; then :
2744 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2748 # Check whether --with-xshape was given.
2749 if test "${with_xshape+set}" = set; then :
2750 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2754 # Check whether --with-xslt was given.
2755 if test "${with_xslt+set}" = set; then :
2756 withval=$with_xslt;
2760 # Check whether --with-xxf86vm was given.
2761 if test "${with_xxf86vm+set}" = set; then :
2762 withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; ac_cv_header_X11_extensions_xf86vmproto_h=no; fi
2766 # Check whether --with-zlib was given.
2767 if test "${with_zlib+set}" = set; then :
2768 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2773 # Check whether --with-wine-tools was given.
2774 if test "${with_wine_tools+set}" = set; then :
2775 withval=$with_wine_tools;
2779 # Check whether --with-wine64 was given.
2780 if test "${with_wine64+set}" = set; then :
2781 withval=$with_wine64;
2785 # Make sure we can run config.sub.
2786 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2787 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2790 $as_echo_n "checking build system type... " >&6; }
2791 if ${ac_cv_build+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 ac_build_alias=$build_alias
2795 test "x$ac_build_alias" = x &&
2796 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2797 test "x$ac_build_alias" = x &&
2798 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2799 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2800 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2804 $as_echo "$ac_cv_build" >&6; }
2805 case $ac_cv_build in
2806 *-*-*) ;;
2807 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2808 esac
2809 build=$ac_cv_build
2810 ac_save_IFS=$IFS; IFS='-'
2811 set x $ac_cv_build
2812 shift
2813 build_cpu=$1
2814 build_vendor=$2
2815 shift; shift
2816 # Remember, the first character of IFS is used to create $*,
2817 # except with old shells:
2818 build_os=$*
2819 IFS=$ac_save_IFS
2820 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2824 $as_echo_n "checking host system type... " >&6; }
2825 if ${ac_cv_host+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test "x$host_alias" = x; then
2829 ac_cv_host=$ac_cv_build
2830 else
2831 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2832 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2837 $as_echo "$ac_cv_host" >&6; }
2838 case $ac_cv_host in
2839 *-*-*) ;;
2840 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2841 esac
2842 host=$ac_cv_host
2843 ac_save_IFS=$IFS; IFS='-'
2844 set x $ac_cv_host
2845 shift
2846 host_cpu=$1
2847 host_vendor=$2
2848 shift; shift
2849 # Remember, the first character of IFS is used to create $*,
2850 # except with old shells:
2851 host_os=$*
2852 IFS=$ac_save_IFS
2853 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2857 case "$srcdir" in
2858 .) ;;
2859 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2860 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2861 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2862 fi ;;
2863 esac
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2867 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2868 set x ${MAKE-make}
2869 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2870 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 cat >conftest.make <<\_ACEOF
2874 SHELL = /bin/sh
2875 all:
2876 @echo '@@@%%%=$(MAKE)=@@@%%%'
2877 _ACEOF
2878 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2879 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2880 *@@@%%%=?*=@@@%%%*)
2881 eval ac_cv_prog_make_${ac_make}_set=yes;;
2883 eval ac_cv_prog_make_${ac_make}_set=no;;
2884 esac
2885 rm -f conftest.make
2887 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2889 $as_echo "yes" >&6; }
2890 SET_MAKE=
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2894 SET_MAKE="MAKE=${MAKE-make}"
2897 ac_ext=c
2898 ac_cpp='$CPP $CPPFLAGS'
2899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902 if test -n "$ac_tool_prefix"; then
2903 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2904 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if ${ac_cv_prog_CC+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$CC"; then
2911 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2924 done
2925 done
2926 IFS=$as_save_IFS
2930 CC=$ac_cv_prog_CC
2931 if test -n "$CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933 $as_echo "$CC" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2941 if test -z "$ac_cv_prog_CC"; then
2942 ac_ct_CC=$CC
2943 # Extract the first word of "gcc", so it can be a program name with args.
2944 set dummy gcc; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$ac_ct_CC"; then
2951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960 ac_cv_prog_ac_ct_CC="gcc"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2964 done
2965 done
2966 IFS=$as_save_IFS
2970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2971 if test -n "$ac_ct_CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2973 $as_echo "$ac_ct_CC" >&6; }
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2979 if test "x$ac_ct_CC" = x; then
2980 CC=""
2981 else
2982 case $cross_compiling:$ac_tool_warned in
2983 yes:)
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2986 ac_tool_warned=yes ;;
2987 esac
2988 CC=$ac_ct_CC
2990 else
2991 CC="$ac_cv_prog_CC"
2994 if test -z "$CC"; then
2995 if test -n "$ac_tool_prefix"; then
2996 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2997 set dummy ${ac_tool_prefix}cc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_CC+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_CC="${ac_tool_prefix}cc"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 break 2
3017 done
3018 done
3019 IFS=$as_save_IFS
3023 CC=$ac_cv_prog_CC
3024 if test -n "$CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3027 else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3035 if test -z "$CC"; then
3036 # Extract the first word of "cc", so it can be a program name with args.
3037 set dummy cc; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_CC+:} false; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC="$CC" # Let the user override the test.
3045 else
3046 ac_prog_rejected=no
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3055 ac_prog_rejected=yes
3056 continue
3058 ac_cv_prog_CC="cc"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3062 done
3063 done
3064 IFS=$as_save_IFS
3066 if test $ac_prog_rejected = yes; then
3067 # We found a bogon in the path, so make sure we never use it.
3068 set dummy $ac_cv_prog_CC
3069 shift
3070 if test $# != 0; then
3071 # We chose a different compiler from the bogus one.
3072 # However, it has the same basename, so the bogon will be chosen
3073 # first if we set CC to just the basename; use the full file name.
3074 shift
3075 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3091 if test -z "$CC"; then
3092 if test -n "$ac_tool_prefix"; then
3093 for ac_prog in cl.exe
3095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_CC+:} false; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3116 done
3117 done
3118 IFS=$as_save_IFS
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3132 test -n "$CC" && break
3133 done
3135 if test -z "$CC"; then
3136 ac_ct_CC=$CC
3137 for ac_prog in cl.exe
3139 # Extract the first word of "$ac_prog", so it can be a program name with args.
3140 set dummy $ac_prog; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 if test -n "$ac_ct_CC"; then
3147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156 ac_cv_prog_ac_ct_CC="$ac_prog"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3160 done
3161 done
3162 IFS=$as_save_IFS
3166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167 if test -n "$ac_ct_CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3169 $as_echo "$ac_ct_CC" >&6; }
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3176 test -n "$ac_ct_CC" && break
3177 done
3179 if test "x$ac_ct_CC" = x; then
3180 CC=""
3181 else
3182 case $cross_compiling:$ac_tool_warned in
3183 yes:)
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186 ac_tool_warned=yes ;;
3187 esac
3188 CC=$ac_ct_CC
3195 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error $? "no acceptable C compiler found in \$PATH
3198 See \`config.log' for more details" "$LINENO" 5; }
3200 # Provide some information about the compiler.
3201 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3202 set X $ac_compile
3203 ac_compiler=$2
3204 for ac_option in --version -v -V -qversion; do
3205 { { ac_try="$ac_compiler $ac_option >&5"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3213 ac_status=$?
3214 if test -s conftest.err; then
3215 sed '10a\
3216 ... rest of stderr output deleted ...
3217 10q' conftest.err >conftest.er1
3218 cat conftest.er1 >&5
3220 rm -f conftest.er1 conftest.err
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }
3223 done
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3229 main ()
3233 return 0;
3235 _ACEOF
3236 ac_clean_files_save=$ac_clean_files
3237 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3238 # Try to create an executable without -o first, disregard a.out.
3239 # It will help us diagnose broken compilers, and finding out an intuition
3240 # of exeext.
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3242 $as_echo_n "checking whether the C compiler works... " >&6; }
3243 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3245 # The possible output files:
3246 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3248 ac_rmfiles=
3249 for ac_file in $ac_files
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3254 esac
3255 done
3256 rm -f $ac_rmfiles
3258 if { { ac_try="$ac_link_default"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_link_default") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
3269 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3270 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3271 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3272 # so that the user can short-circuit this test for compilers unknown to
3273 # Autoconf.
3274 for ac_file in $ac_files ''
3276 test -f "$ac_file" || continue
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3280 [ab].out )
3281 # We found the default executable, but exeext='' is most
3282 # certainly right.
3283 break;;
3284 *.* )
3285 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3286 then :; else
3287 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289 # We set ac_cv_exeext here because the later test for it is not
3290 # safe: cross compilers may not add the suffix if given an `-o'
3291 # argument, so we may need to know it at that point already.
3292 # Even if this section looks crufty: it has the advantage of
3293 # actually working.
3294 break;;
3296 break;;
3297 esac
3298 done
3299 test "$ac_cv_exeext" = no && ac_cv_exeext=
3301 else
3302 ac_file=''
3304 if test -z "$ac_file"; then :
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 $as_echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error 77 "C compiler cannot create executables
3313 See \`config.log' for more details" "$LINENO" 5; }
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3319 $as_echo_n "checking for C compiler default output file name... " >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3321 $as_echo "$ac_file" >&6; }
3322 ac_exeext=$ac_cv_exeext
3324 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3325 ac_clean_files=$ac_clean_files_save
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3327 $as_echo_n "checking for suffix of executables... " >&6; }
3328 if { { ac_try="$ac_link"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_link") 2>&5
3336 ac_status=$?
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }; then :
3339 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3340 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3341 # work properly (i.e., refer to `conftest.exe'), while it won't with
3342 # `rm'.
3343 for ac_file in conftest.exe conftest conftest.*; do
3344 test -f "$ac_file" || continue
3345 case $ac_file in
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3347 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 break;;
3349 * ) break;;
3350 esac
3351 done
3352 else
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3356 See \`config.log' for more details" "$LINENO" 5; }
3358 rm -f conftest conftest$ac_cv_exeext
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3360 $as_echo "$ac_cv_exeext" >&6; }
3362 rm -f conftest.$ac_ext
3363 EXEEXT=$ac_cv_exeext
3364 ac_exeext=$EXEEXT
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367 #include <stdio.h>
3369 main ()
3371 FILE *f = fopen ("conftest.out", "w");
3372 return ferror (f) || fclose (f) != 0;
3375 return 0;
3377 _ACEOF
3378 ac_clean_files="$ac_clean_files conftest.out"
3379 # Check that the compiler produces executables we can run. If not, either
3380 # the compiler is broken, or we cross compile.
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3382 $as_echo_n "checking whether we are cross compiling... " >&6; }
3383 if test "$cross_compiling" != yes; then
3384 { { ac_try="$ac_link"
3385 case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_link") 2>&5
3392 ac_status=$?
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }
3395 if { ac_try='./conftest$ac_cv_exeext'
3396 { { case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_try") 2>&5
3403 ac_status=$?
3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405 test $ac_status = 0; }; }; then
3406 cross_compiling=no
3407 else
3408 if test "$cross_compiling" = maybe; then
3409 cross_compiling=yes
3410 else
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $? "cannot run C compiled programs.
3414 If you meant to cross compile, use \`--host'.
3415 See \`config.log' for more details" "$LINENO" 5; }
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3420 $as_echo "$cross_compiling" >&6; }
3422 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3425 $as_echo_n "checking for suffix of object files... " >&6; }
3426 if ${ac_cv_objext+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3433 main ()
3437 return 0;
3439 _ACEOF
3440 rm -f conftest.o conftest.obj
3441 if { { ac_try="$ac_compile"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_compile") 2>&5
3449 ac_status=$?
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; then :
3452 for ac_file in conftest.o conftest.obj conftest.*; do
3453 test -f "$ac_file" || continue;
3454 case $ac_file in
3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3456 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3457 break;;
3458 esac
3459 done
3460 else
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot compute suffix of object files: cannot compile
3467 See \`config.log' for more details" "$LINENO" 5; }
3469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3472 $as_echo "$ac_cv_objext" >&6; }
3473 OBJEXT=$ac_cv_objext
3474 ac_objext=$OBJEXT
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3476 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3477 if ${ac_cv_c_compiler_gnu+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3484 main ()
3486 #ifndef __GNUC__
3487 choke me
3488 #endif
3491 return 0;
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_compiler_gnu=yes
3496 else
3497 ac_compiler_gnu=no
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3504 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3505 if test $ac_compiler_gnu = yes; then
3506 GCC=yes
3507 else
3508 GCC=
3510 ac_test_CFLAGS=${CFLAGS+set}
3511 ac_save_CFLAGS=$CFLAGS
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3513 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3514 if ${ac_cv_prog_cc_g+:} false; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 ac_save_c_werror_flag=$ac_c_werror_flag
3518 ac_c_werror_flag=yes
3519 ac_cv_prog_cc_g=no
3520 CFLAGS="-g"
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3525 main ()
3529 return 0;
3531 _ACEOF
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533 ac_cv_prog_cc_g=yes
3534 else
3535 CFLAGS=""
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3540 main ()
3544 return 0;
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3549 else
3550 ac_c_werror_flag=$ac_save_c_werror_flag
3551 CFLAGS="-g"
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3556 main ()
3560 return 0;
3562 _ACEOF
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564 ac_cv_prog_cc_g=yes
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 ac_c_werror_flag=$ac_save_c_werror_flag
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3574 $as_echo "$ac_cv_prog_cc_g" >&6; }
3575 if test "$ac_test_CFLAGS" = set; then
3576 CFLAGS=$ac_save_CFLAGS
3577 elif test $ac_cv_prog_cc_g = yes; then
3578 if test "$GCC" = yes; then
3579 CFLAGS="-g -O2"
3580 else
3581 CFLAGS="-g"
3583 else
3584 if test "$GCC" = yes; then
3585 CFLAGS="-O2"
3586 else
3587 CFLAGS=
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3591 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3592 if ${ac_cv_prog_cc_c89+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 ac_cv_prog_cc_c89=no
3596 ac_save_CC=$CC
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3599 #include <stdarg.h>
3600 #include <stdio.h>
3601 #include <sys/types.h>
3602 #include <sys/stat.h>
3603 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3604 struct buf { int x; };
3605 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3606 static char *e (p, i)
3607 char **p;
3608 int i;
3610 return p[i];
3612 static char *f (char * (*g) (char **, int), char **p, ...)
3614 char *s;
3615 va_list v;
3616 va_start (v,p);
3617 s = g (p, va_arg (v,int));
3618 va_end (v);
3619 return s;
3622 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3623 function prototypes and stuff, but not '\xHH' hex character constants.
3624 These don't provoke an error unfortunately, instead are silently treated
3625 as 'x'. The following induces an error, until -std is added to get
3626 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3627 array size at least. It's necessary to write '\x00'==0 to get something
3628 that's true only with -std. */
3629 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3631 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3632 inside strings and character constants. */
3633 #define FOO(x) 'x'
3634 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3636 int test (int i, double x);
3637 struct s1 {int (*f) (int a);};
3638 struct s2 {int (*f) (double a);};
3639 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3640 int argc;
3641 char **argv;
3643 main ()
3645 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3647 return 0;
3649 _ACEOF
3650 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3651 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3653 CC="$ac_save_CC $ac_arg"
3654 if ac_fn_c_try_compile "$LINENO"; then :
3655 ac_cv_prog_cc_c89=$ac_arg
3657 rm -f core conftest.err conftest.$ac_objext
3658 test "x$ac_cv_prog_cc_c89" != "xno" && break
3659 done
3660 rm -f conftest.$ac_ext
3661 CC=$ac_save_CC
3664 # AC_CACHE_VAL
3665 case "x$ac_cv_prog_cc_c89" in
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3668 $as_echo "none needed" >&6; } ;;
3669 xno)
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3671 $as_echo "unsupported" >&6; } ;;
3673 CC="$CC $ac_cv_prog_cc_c89"
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3675 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3676 esac
3677 if test "x$ac_cv_prog_cc_c89" != xno; then :
3681 ac_ext=c
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687 ac_ext=cpp
3688 ac_cpp='$CXXCPP $CPPFLAGS'
3689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3692 if test -z "$CXX"; then
3693 if test -n "$CCC"; then
3694 CXX=$CCC
3695 else
3696 if test -n "$ac_tool_prefix"; then
3697 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if ${ac_cv_prog_CXX+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 if test -n "$CXX"; then
3707 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3716 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 break 2
3720 done
3721 done
3722 IFS=$as_save_IFS
3726 CXX=$ac_cv_prog_CXX
3727 if test -n "$CXX"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3729 $as_echo "$CXX" >&6; }
3730 else
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3736 test -n "$CXX" && break
3737 done
3739 if test -z "$CXX"; then
3740 ac_ct_CXX=$CXX
3741 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$ac_ct_CXX"; then
3751 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_ac_ct_CXX="$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3771 if test -n "$ac_ct_CXX"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3773 $as_echo "$ac_ct_CXX" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3780 test -n "$ac_ct_CXX" && break
3781 done
3783 if test "x$ac_ct_CXX" = x; then
3784 CXX="g++"
3785 else
3786 case $cross_compiling:$ac_tool_warned in
3787 yes:)
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790 ac_tool_warned=yes ;;
3791 esac
3792 CXX=$ac_ct_CXX
3798 # Provide some information about the compiler.
3799 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3800 set X $ac_compile
3801 ac_compiler=$2
3802 for ac_option in --version -v -V -qversion; do
3803 { { ac_try="$ac_compiler $ac_option >&5"
3804 case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3811 ac_status=$?
3812 if test -s conftest.err; then
3813 sed '10a\
3814 ... rest of stderr output deleted ...
3815 10q' conftest.err >conftest.er1
3816 cat conftest.er1 >&5
3818 rm -f conftest.er1 conftest.err
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }
3821 done
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3824 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3825 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3832 main ()
3834 #ifndef __GNUC__
3835 choke me
3836 #endif
3839 return 0;
3841 _ACEOF
3842 if ac_fn_cxx_try_compile "$LINENO"; then :
3843 ac_compiler_gnu=yes
3844 else
3845 ac_compiler_gnu=no
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3852 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3853 if test $ac_compiler_gnu = yes; then
3854 GXX=yes
3855 else
3856 GXX=
3858 ac_test_CXXFLAGS=${CXXFLAGS+set}
3859 ac_save_CXXFLAGS=$CXXFLAGS
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3861 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3862 if ${ac_cv_prog_cxx_g+:} false; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3866 ac_cxx_werror_flag=yes
3867 ac_cv_prog_cxx_g=no
3868 CXXFLAGS="-g"
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3873 main ()
3877 return 0;
3879 _ACEOF
3880 if ac_fn_cxx_try_compile "$LINENO"; then :
3881 ac_cv_prog_cxx_g=yes
3882 else
3883 CXXFLAGS=""
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3888 main ()
3892 return 0;
3894 _ACEOF
3895 if ac_fn_cxx_try_compile "$LINENO"; then :
3897 else
3898 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3899 CXXFLAGS="-g"
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3904 main ()
3908 return 0;
3910 _ACEOF
3911 if ac_fn_cxx_try_compile "$LINENO"; then :
3912 ac_cv_prog_cxx_g=yes
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3922 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3923 if test "$ac_test_CXXFLAGS" = set; then
3924 CXXFLAGS=$ac_save_CXXFLAGS
3925 elif test $ac_cv_prog_cxx_g = yes; then
3926 if test "$GXX" = yes; then
3927 CXXFLAGS="-g -O2"
3928 else
3929 CXXFLAGS="-g"
3931 else
3932 if test "$GXX" = yes; then
3933 CXXFLAGS="-O2"
3934 else
3935 CXXFLAGS=
3938 ac_ext=c
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944 if test -n "$ac_tool_prefix"; then
3945 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3946 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_CPPBIN+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 if test -n "$CPPBIN"; then
3953 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3962 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3966 done
3967 done
3968 IFS=$as_save_IFS
3972 CPPBIN=$ac_cv_prog_CPPBIN
3973 if test -n "$CPPBIN"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3975 $as_echo "$CPPBIN" >&6; }
3976 else
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3983 if test -z "$ac_cv_prog_CPPBIN"; then
3984 ac_ct_CPPBIN=$CPPBIN
3985 # Extract the first word of "cpp", so it can be a program name with args.
3986 set dummy cpp; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 if test -n "$ac_ct_CPPBIN"; then
3993 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4002 ac_cv_prog_ac_ct_CPPBIN="cpp"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4006 done
4007 done
4008 IFS=$as_save_IFS
4012 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4013 if test -n "$ac_ct_CPPBIN"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4015 $as_echo "$ac_ct_CPPBIN" >&6; }
4016 else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4021 if test "x$ac_ct_CPPBIN" = x; then
4022 CPPBIN="cpp"
4023 else
4024 case $cross_compiling:$ac_tool_warned in
4025 yes:)
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4028 ac_tool_warned=yes ;;
4029 esac
4030 CPPBIN=$ac_ct_CPPBIN
4032 else
4033 CPPBIN="$ac_cv_prog_CPPBIN"
4037 cat >>confdefs.h <<_ACEOF
4038 #define EXEEXT "$ac_exeext"
4039 _ACEOF
4042 case $host in
4043 *-darwin*)
4044 if test "x$enable_win64" = "xyes"
4045 then
4046 CC="$CC -m64"
4047 CXX="$CXX -m64"
4048 host_cpu="x86_64"
4049 notice_platform="64-bit "
4050 TARGETFLAGS="-m64"
4052 else
4053 CC="$CC -m32"
4054 CXX="$CXX -m32"
4055 host_cpu="i386"
4056 notice_platform="32-bit "
4057 TARGETFLAGS="-m32"
4059 enable_win16=${enable_win16:-yes}
4062 x86_64*)
4063 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4064 then
4065 CC="$CC -m32"
4066 CXX="$CXX -m32"
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4068 $as_echo_n "checking whether $CC works... " >&6; }
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4074 main ()
4078 return 0;
4080 _ACEOF
4081 if ac_fn_c_try_link "$LINENO"; then :
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4083 $as_echo "yes" >&6; }
4084 else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4087 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4089 rm -f core conftest.err conftest.$ac_objext \
4090 conftest$ac_exeext conftest.$ac_ext
4091 host_cpu="i386"
4092 notice_platform="32-bit "
4093 TARGETFLAGS="-m32"
4095 enable_win16=${enable_win16:-yes}
4096 else
4097 if test "x${GCC}" = "xyes"
4098 then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4100 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103 #include <stdarg.h>
4105 main ()
4107 void func(__builtin_ms_va_list *args);
4109 return 0;
4111 _ACEOF
4112 if ac_fn_c_try_compile "$LINENO"; then :
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4114 $as_echo "yes" >&6; }
4115 else
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4118 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 TARGETFLAGS="-m64"
4126 *-mingw32*|*-cygwin*)
4127 enable_win16=${enable_win16:-no}
4128 CFLAGS="$CFLAGS -D_WIN32"
4130 i[3456789]86*)
4131 enable_win16=${enable_win16:-yes}
4133 esac
4135 enable_win16=${enable_win16:-no}
4136 enable_win64=${enable_win64:-no}
4138 enable_winetest=${enable_winetest:-$enable_tests}
4140 if test -n "$with_wine64"
4141 then
4142 if test "x$enable_win64" = "xyes"
4143 then
4144 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4145 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4147 WOW64_DISABLE=\#
4149 enable_fonts=${enable_fonts:-no}
4150 enable_server=${enable_server:-no}
4151 enable_tools=${enable_tools:-no}
4152 elif test "x$enable_win64" = "xyes"
4153 then
4154 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4158 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4159 if ${wine_cv_toolsdir+:} false; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 wine_cv_toolsdir="$with_wine_tools"
4163 if test -z "$with_wine_tools"; then
4164 if test "$cross_compiling" = "yes"; then
4165 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4166 elif test -n "$with_wine64"; then
4167 wine_cv_toolsdir="$with_wine64"
4170 if test -z "$wine_cv_toolsdir"; then
4171 wine_cv_toolsdir="\$(top_builddir)"
4172 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4173 case "$wine_cv_toolsdir" in
4174 /*) ;;
4175 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4176 esac
4177 else
4178 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4182 $as_echo "$wine_cv_toolsdir" >&6; }
4183 TOOLSDIR=$wine_cv_toolsdir
4185 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4186 then
4187 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4191 for ac_prog in flex
4193 # Extract the first word of "$ac_prog", so it can be a program name with args.
4194 set dummy $ac_prog; ac_word=$2
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196 $as_echo_n "checking for $ac_word... " >&6; }
4197 if ${ac_cv_prog_FLEX+:} false; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 if test -n "$FLEX"; then
4201 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4210 ac_cv_prog_FLEX="$ac_prog"
4211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 break 2
4214 done
4215 done
4216 IFS=$as_save_IFS
4220 FLEX=$ac_cv_prog_FLEX
4221 if test -n "$FLEX"; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4223 $as_echo "$FLEX" >&6; }
4224 else
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4230 test -n "$FLEX" && break
4231 done
4232 test -n "$FLEX" || FLEX="none"
4234 if test "$FLEX" = "none"
4235 then
4236 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4239 $as_echo_n "checking whether flex is recent enough... " >&6; }
4240 cat >conftest.l <<EOF
4241 %top{
4242 #include "prediluvian.h"
4246 if $FLEX -t conftest.l >/dev/null 2>&5
4247 then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4249 $as_echo "yes" >&6; }
4250 else
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4253 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4256 for ac_prog in bison
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if ${ac_cv_prog_BISON+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 if test -n "$BISON"; then
4266 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4275 ac_cv_prog_BISON="$ac_prog"
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4279 done
4280 done
4281 IFS=$as_save_IFS
4285 BISON=$ac_cv_prog_BISON
4286 if test -n "$BISON"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4288 $as_echo "$BISON" >&6; }
4289 else
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4295 test -n "$BISON" && break
4296 done
4297 test -n "$BISON" || BISON="none"
4299 if test "$BISON" = "none"
4300 then
4301 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4304 if test -n "$ac_tool_prefix"; then
4305 for ac_prog in ar gar
4307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if ${ac_cv_prog_AR+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -n "$AR"; then
4315 ac_cv_prog_AR="$AR" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4328 done
4329 done
4330 IFS=$as_save_IFS
4334 AR=$ac_cv_prog_AR
4335 if test -n "$AR"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4337 $as_echo "$AR" >&6; }
4338 else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4344 test -n "$AR" && break
4345 done
4347 if test -z "$AR"; then
4348 ac_ct_AR=$AR
4349 for ac_prog in ar gar
4351 # Extract the first word of "$ac_prog", so it can be a program name with args.
4352 set dummy $ac_prog; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if test -n "$ac_ct_AR"; then
4359 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4368 ac_cv_prog_ac_ct_AR="$ac_prog"
4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4372 done
4373 done
4374 IFS=$as_save_IFS
4378 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4379 if test -n "$ac_ct_AR"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4381 $as_echo "$ac_ct_AR" >&6; }
4382 else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4388 test -n "$ac_ct_AR" && break
4389 done
4391 if test "x$ac_ct_AR" = x; then
4392 AR="ar"
4393 else
4394 case $cross_compiling:$ac_tool_warned in
4395 yes:)
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4398 ac_tool_warned=yes ;;
4399 esac
4400 AR=$ac_ct_AR
4404 ARFLAGS=rc
4406 if test -n "$ac_tool_prefix"; then
4407 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410 $as_echo_n "checking for $ac_word... " >&6; }
4411 if ${ac_cv_prog_RANLIB+:} false; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 if test -n "$RANLIB"; then
4415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4424 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4428 done
4429 done
4430 IFS=$as_save_IFS
4434 RANLIB=$ac_cv_prog_RANLIB
4435 if test -n "$RANLIB"; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4437 $as_echo "$RANLIB" >&6; }
4438 else
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 $as_echo "no" >&6; }
4445 if test -z "$ac_cv_prog_RANLIB"; then
4446 ac_ct_RANLIB=$RANLIB
4447 # Extract the first word of "ranlib", so it can be a program name with args.
4448 set dummy ranlib; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -n "$ac_ct_RANLIB"; then
4455 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_ac_ct_RANLIB="ranlib"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4468 done
4469 done
4470 IFS=$as_save_IFS
4474 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4475 if test -n "$ac_ct_RANLIB"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4477 $as_echo "$ac_ct_RANLIB" >&6; }
4478 else
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4483 if test "x$ac_ct_RANLIB" = x; then
4484 RANLIB=":"
4485 else
4486 case $cross_compiling:$ac_tool_warned in
4487 yes:)
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4490 ac_tool_warned=yes ;;
4491 esac
4492 RANLIB=$ac_ct_RANLIB
4494 else
4495 RANLIB="$ac_cv_prog_RANLIB"
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4499 $as_echo_n "checking whether ln -s works... " >&6; }
4500 LN_S=$as_ln_s
4501 if test "$LN_S" = "ln -s"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4503 $as_echo "yes" >&6; }
4504 else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4506 $as_echo "no, using $LN_S" >&6; }
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4510 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4511 if ${ac_cv_path_GREP+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -z "$GREP"; then
4515 ac_path_GREP_found=false
4516 # Loop through the user's path and test for each of PROGNAME-LIST
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_prog in grep ggrep; do
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4525 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4526 # Check for GNU ac_path_GREP and select it if it is found.
4527 # Check for GNU $ac_path_GREP
4528 case `"$ac_path_GREP" --version 2>&1` in
4529 *GNU*)
4530 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4532 ac_count=0
4533 $as_echo_n 0123456789 >"conftest.in"
4534 while :
4536 cat "conftest.in" "conftest.in" >"conftest.tmp"
4537 mv "conftest.tmp" "conftest.in"
4538 cp "conftest.in" "conftest.nl"
4539 $as_echo 'GREP' >> "conftest.nl"
4540 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542 as_fn_arith $ac_count + 1 && ac_count=$as_val
4543 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4544 # Best one so far, save it but keep looking for a better one
4545 ac_cv_path_GREP="$ac_path_GREP"
4546 ac_path_GREP_max=$ac_count
4548 # 10*(2^10) chars as input seems more than enough
4549 test $ac_count -gt 10 && break
4550 done
4551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552 esac
4554 $ac_path_GREP_found && break 3
4555 done
4556 done
4557 done
4558 IFS=$as_save_IFS
4559 if test -z "$ac_cv_path_GREP"; then
4560 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4562 else
4563 ac_cv_path_GREP=$GREP
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4568 $as_echo "$ac_cv_path_GREP" >&6; }
4569 GREP="$ac_cv_path_GREP"
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4573 $as_echo_n "checking for egrep... " >&6; }
4574 if ${ac_cv_path_EGREP+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4578 then ac_cv_path_EGREP="$GREP -E"
4579 else
4580 if test -z "$EGREP"; then
4581 ac_path_EGREP_found=false
4582 # Loop through the user's path and test for each of PROGNAME-LIST
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_prog in egrep; do
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4591 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4592 # Check for GNU ac_path_EGREP and select it if it is found.
4593 # Check for GNU $ac_path_EGREP
4594 case `"$ac_path_EGREP" --version 2>&1` in
4595 *GNU*)
4596 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4598 ac_count=0
4599 $as_echo_n 0123456789 >"conftest.in"
4600 while :
4602 cat "conftest.in" "conftest.in" >"conftest.tmp"
4603 mv "conftest.tmp" "conftest.in"
4604 cp "conftest.in" "conftest.nl"
4605 $as_echo 'EGREP' >> "conftest.nl"
4606 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608 as_fn_arith $ac_count + 1 && ac_count=$as_val
4609 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4610 # Best one so far, save it but keep looking for a better one
4611 ac_cv_path_EGREP="$ac_path_EGREP"
4612 ac_path_EGREP_max=$ac_count
4614 # 10*(2^10) chars as input seems more than enough
4615 test $ac_count -gt 10 && break
4616 done
4617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4618 esac
4620 $ac_path_EGREP_found && break 3
4621 done
4622 done
4623 done
4624 IFS=$as_save_IFS
4625 if test -z "$ac_cv_path_EGREP"; then
4626 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4628 else
4629 ac_cv_path_EGREP=$EGREP
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4635 $as_echo "$ac_cv_path_EGREP" >&6; }
4636 EGREP="$ac_cv_path_EGREP"
4639 # Extract the first word of "ldconfig", so it can be a program name with args.
4640 set dummy ldconfig; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if ${ac_cv_path_LDCONFIG+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 case $LDCONFIG in
4647 [\\/]* | ?:[\\/]*)
4648 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in /sbin /usr/sbin $PATH
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4662 done
4663 done
4664 IFS=$as_save_IFS
4666 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4668 esac
4670 LDCONFIG=$ac_cv_path_LDCONFIG
4671 if test -n "$LDCONFIG"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4673 $as_echo "$LDCONFIG" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4680 # Find a good install program. We prefer a C program (faster),
4681 # so one script is as good as another. But avoid the broken or
4682 # incompatible versions:
4683 # SysV /etc/install, /usr/sbin/install
4684 # SunOS /usr/etc/install
4685 # IRIX /sbin/install
4686 # AIX /bin/install
4687 # AmigaOS /C/install, which installs bootblocks on floppy discs
4688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4691 # OS/2's system install, which has a completely different semantic
4692 # ./install, which can be erroneously created by make from ./install.sh.
4693 # Reject install programs that cannot install multiple files.
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4695 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4696 if test -z "$INSTALL"; then
4697 if ${ac_cv_path_install+:} false; then :
4698 $as_echo_n "(cached) " >&6
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 # Account for people who put trailing slashes in PATH elements.
4706 case $as_dir/ in #((
4707 ./ | .// | /[cC]/* | \
4708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4709 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4710 /usr/ucb/* ) ;;
4712 # OSF1 and SCO ODT 3.0 have their own names for install.
4713 # Don't use installbsd from OSF since it installs stuff as root
4714 # by default.
4715 for ac_prog in ginstall scoinst install; do
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4718 if test $ac_prog = install &&
4719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4720 # AIX install. It has an incompatible calling convention.
4722 elif test $ac_prog = install &&
4723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4724 # program-specific install script used by HP pwplus--don't use.
4726 else
4727 rm -rf conftest.one conftest.two conftest.dir
4728 echo one > conftest.one
4729 echo two > conftest.two
4730 mkdir conftest.dir
4731 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4732 test -s conftest.one && test -s conftest.two &&
4733 test -s conftest.dir/conftest.one &&
4734 test -s conftest.dir/conftest.two
4735 then
4736 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4737 break 3
4741 done
4742 done
4744 esac
4746 done
4747 IFS=$as_save_IFS
4749 rm -rf conftest.one conftest.two conftest.dir
4752 if test "${ac_cv_path_install+set}" = set; then
4753 INSTALL=$ac_cv_path_install
4754 else
4755 # As a last resort, use the slow shell script. Don't cache a
4756 # value for INSTALL within a source directory, because that will
4757 # break other packages using the cache if that directory is
4758 # removed, or if the value is a relative name.
4759 INSTALL=$ac_install_sh
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4763 $as_echo "$INSTALL" >&6; }
4765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4766 # It thinks the first close brace ends the variable substitution.
4767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4773 case "$INSTALL" in
4774 [\\/$]* | ?:[\\/]* ) ;;
4775 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4776 esac
4778 for ac_prog in lclint lint
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_LINT+:} false; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 if test -n "$LINT"; then
4788 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_LINT="$ac_prog"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4801 done
4802 done
4803 IFS=$as_save_IFS
4807 LINT=$ac_cv_prog_LINT
4808 if test -n "$LINT"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4810 $as_echo "$LINT" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4817 test -n "$LINT" && break
4818 done
4820 if test "$LINT" = "lint"
4821 then
4822 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4826 for ac_prog in fontforge
4828 # Extract the first word of "$ac_prog", so it can be a program name with args.
4829 set dummy $ac_prog; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if ${ac_cv_prog_FONTFORGE+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 if test -n "$FONTFORGE"; then
4836 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_FONTFORGE="$ac_prog"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4849 done
4850 done
4851 IFS=$as_save_IFS
4855 FONTFORGE=$ac_cv_prog_FONTFORGE
4856 if test -n "$FONTFORGE"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4858 $as_echo "$FONTFORGE" >&6; }
4859 else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4865 test -n "$FONTFORGE" && break
4866 done
4867 test -n "$FONTFORGE" || FONTFORGE="false"
4869 for ac_prog in pkg-config
4871 # Extract the first word of "$ac_prog", so it can be a program name with args.
4872 set dummy $ac_prog; ac_word=$2
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874 $as_echo_n "checking for $ac_word... " >&6; }
4875 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4876 $as_echo_n "(cached) " >&6
4877 else
4878 if test -n "$PKG_CONFIG"; then
4879 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4880 else
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4888 ac_cv_prog_PKG_CONFIG="$ac_prog"
4889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 break 2
4892 done
4893 done
4894 IFS=$as_save_IFS
4898 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4899 if test -n "$PKG_CONFIG"; then
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4901 $as_echo "$PKG_CONFIG" >&6; }
4902 else
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 $as_echo "no" >&6; }
4908 test -n "$PKG_CONFIG" && break
4909 done
4910 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4912 for ac_prog in rsvg
4914 # Extract the first word of "$ac_prog", so it can be a program name with args.
4915 set dummy $ac_prog; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if ${ac_cv_prog_RSVG+:} false; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -n "$RSVG"; then
4922 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_prog_RSVG="$ac_prog"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4935 done
4936 done
4937 IFS=$as_save_IFS
4941 RSVG=$ac_cv_prog_RSVG
4942 if test -n "$RSVG"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4944 $as_echo "$RSVG" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4951 test -n "$RSVG" && break
4952 done
4953 test -n "$RSVG" || RSVG="false"
4955 for ac_prog in convert
4957 # Extract the first word of "$ac_prog", so it can be a program name with args.
4958 set dummy $ac_prog; ac_word=$2
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 $as_echo_n "checking for $ac_word... " >&6; }
4961 if ${ac_cv_prog_CONVERT+:} false; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4964 if test -n "$CONVERT"; then
4965 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4966 else
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4974 ac_cv_prog_CONVERT="$ac_prog"
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 break 2
4978 done
4979 done
4980 IFS=$as_save_IFS
4984 CONVERT=$ac_cv_prog_CONVERT
4985 if test -n "$CONVERT"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4987 $as_echo "$CONVERT" >&6; }
4988 else
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4994 test -n "$CONVERT" && break
4995 done
4996 test -n "$CONVERT" || CONVERT="false"
4998 for ac_prog in icotool
5000 # Extract the first word of "$ac_prog", so it can be a program name with args.
5001 set dummy $ac_prog; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_ICOTOOL+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$ICOTOOL"; then
5008 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_ICOTOOL="$ac_prog"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5021 done
5022 done
5023 IFS=$as_save_IFS
5027 ICOTOOL=$ac_cv_prog_ICOTOOL
5028 if test -n "$ICOTOOL"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5030 $as_echo "$ICOTOOL" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5037 test -n "$ICOTOOL" && break
5038 done
5039 test -n "$ICOTOOL" || ICOTOOL="false"
5041 for ac_prog in msgfmt
5043 # Extract the first word of "$ac_prog", so it can be a program name with args.
5044 set dummy $ac_prog; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_prog_MSGFMT+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 if test -n "$MSGFMT"; then
5051 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060 ac_cv_prog_MSGFMT="$ac_prog"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 break 2
5064 done
5065 done
5066 IFS=$as_save_IFS
5070 MSGFMT=$ac_cv_prog_MSGFMT
5071 if test -n "$MSGFMT"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5073 $as_echo "$MSGFMT" >&6; }
5074 else
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5080 test -n "$MSGFMT" && break
5081 done
5082 test -n "$MSGFMT" || MSGFMT="false"
5085 if test "x$enable_maintainer_mode" != "xyes"
5086 then
5087 MAINTAINER_MODE=\#
5089 else
5090 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5091 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5093 if test "$CONVERT" = false
5094 then
5095 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5096 else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5098 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5099 convert_version=`convert --version | head -n1`
5100 if test "x$convert_version" != "x"
5101 then
5102 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5103 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5104 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5105 then
5106 CONVERT=false
5109 if test "$CONVERT" = false
5110 then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5112 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5113 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5116 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5120 if test "$ICOTOOL" = false
5121 then
5122 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5123 else
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5125 $as_echo_n "checking for recent enough icotool... " >&6; }
5126 icotool_version=`icotool --version | head -n1`
5127 if test "x$icotool_version" != "x"
5128 then
5129 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5130 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5131 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5132 then
5133 ICOTOOL=false
5134 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5137 if test "$ICOTOOL" = false
5138 then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5140 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5141 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5142 else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5144 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5148 with_gettext=yes
5149 with_gettextpo=yes
5150 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5153 test "x$with_gettext" != xno || MSGFMT=false
5154 if test "$MSGFMT" != "false"
5155 then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5157 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5158 cat >conftest.po <<EOF
5159 # comment
5160 msgctxt "ctxt"
5161 msgid "id"
5162 msgstr "str"
5164 if $MSGFMT -o /dev/null conftest.po 2>&5
5165 then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5167 $as_echo "yes" >&6; }
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5171 MSGFMT=false
5174 if test "$MSGFMT" = false; then :
5175 case "x$with_gettext" in
5176 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5177 xno) ;;
5178 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5179 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5180 esac
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5185 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5186 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 ac_check_lib_save_LIBS=$LIBS
5190 LIBS="-li386 $LIBS"
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5194 /* Override any GCC internal prototype to avoid an error.
5195 Use char because int might match the return type of a GCC
5196 builtin and then its argument prototype would still apply. */
5197 #ifdef __cplusplus
5198 extern "C"
5199 #endif
5200 char i386_set_ldt ();
5202 main ()
5204 return i386_set_ldt ();
5206 return 0;
5208 _ACEOF
5209 if ac_fn_c_try_link "$LINENO"; then :
5210 ac_cv_lib_i386_i386_set_ldt=yes
5211 else
5212 ac_cv_lib_i386_i386_set_ldt=no
5214 rm -f core conftest.err conftest.$ac_objext \
5215 conftest$ac_exeext conftest.$ac_ext
5216 LIBS=$ac_check_lib_save_LIBS
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5219 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5220 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5221 cat >>confdefs.h <<_ACEOF
5222 #define HAVE_LIBI386 1
5223 _ACEOF
5225 LIBS="-li386 $LIBS"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5230 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5231 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 ac_check_lib_save_LIBS=$LIBS
5235 LIBS="-lossaudio $LIBS"
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5239 /* Override any GCC internal prototype to avoid an error.
5240 Use char because int might match the return type of a GCC
5241 builtin and then its argument prototype would still apply. */
5242 #ifdef __cplusplus
5243 extern "C"
5244 #endif
5245 char _oss_ioctl ();
5247 main ()
5249 return _oss_ioctl ();
5251 return 0;
5253 _ACEOF
5254 if ac_fn_c_try_link "$LINENO"; then :
5255 ac_cv_lib_ossaudio__oss_ioctl=yes
5256 else
5257 ac_cv_lib_ossaudio__oss_ioctl=no
5259 rm -f core conftest.err conftest.$ac_objext \
5260 conftest$ac_exeext conftest.$ac_ext
5261 LIBS=$ac_check_lib_save_LIBS
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5264 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5265 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5266 cat >>confdefs.h <<_ACEOF
5267 #define HAVE_LIBOSSAUDIO 1
5268 _ACEOF
5270 LIBS="-lossaudio $LIBS"
5275 XLIB=""
5277 OPENGL_LIBS=""
5281 # Check whether --enable-largefile was given.
5282 if test "${enable_largefile+set}" = set; then :
5283 enableval=$enable_largefile;
5286 if test "$enable_largefile" != no; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5289 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5290 if ${ac_cv_sys_largefile_CC+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 ac_cv_sys_largefile_CC=no
5294 if test "$GCC" != yes; then
5295 ac_save_CC=$CC
5296 while :; do
5297 # IRIX 6.2 and later do not support large files by default,
5298 # so use the C compiler's -n32 option if that helps.
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5301 #include <sys/types.h>
5302 /* Check that off_t can represent 2**63 - 1 correctly.
5303 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5304 since some C++ compilers masquerading as C compilers
5305 incorrectly reject 9223372036854775807. */
5306 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5307 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5308 && LARGE_OFF_T % 2147483647 == 1)
5309 ? 1 : -1];
5311 main ()
5315 return 0;
5317 _ACEOF
5318 if ac_fn_c_try_compile "$LINENO"; then :
5319 break
5321 rm -f core conftest.err conftest.$ac_objext
5322 CC="$CC -n32"
5323 if ac_fn_c_try_compile "$LINENO"; then :
5324 ac_cv_sys_largefile_CC=' -n32'; break
5326 rm -f core conftest.err conftest.$ac_objext
5327 break
5328 done
5329 CC=$ac_save_CC
5330 rm -f conftest.$ac_ext
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5334 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5335 if test "$ac_cv_sys_largefile_CC" != no; then
5336 CC=$CC$ac_cv_sys_largefile_CC
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5340 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5341 if ${ac_cv_sys_file_offset_bits+:} false; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 while :; do
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5347 #include <sys/types.h>
5348 /* Check that off_t can represent 2**63 - 1 correctly.
5349 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5350 since some C++ compilers masquerading as C compilers
5351 incorrectly reject 9223372036854775807. */
5352 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5353 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5354 && LARGE_OFF_T % 2147483647 == 1)
5355 ? 1 : -1];
5357 main ()
5361 return 0;
5363 _ACEOF
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365 ac_cv_sys_file_offset_bits=no; break
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370 #define _FILE_OFFSET_BITS 64
5371 #include <sys/types.h>
5372 /* Check that off_t can represent 2**63 - 1 correctly.
5373 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5374 since some C++ compilers masquerading as C compilers
5375 incorrectly reject 9223372036854775807. */
5376 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5377 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5378 && LARGE_OFF_T % 2147483647 == 1)
5379 ? 1 : -1];
5381 main ()
5385 return 0;
5387 _ACEOF
5388 if ac_fn_c_try_compile "$LINENO"; then :
5389 ac_cv_sys_file_offset_bits=64; break
5391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 ac_cv_sys_file_offset_bits=unknown
5393 break
5394 done
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5397 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5398 case $ac_cv_sys_file_offset_bits in #(
5399 no | unknown) ;;
5401 cat >>confdefs.h <<_ACEOF
5402 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5403 _ACEOF
5405 esac
5406 rm -rf conftest*
5407 if test $ac_cv_sys_file_offset_bits = unknown; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5409 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5410 if ${ac_cv_sys_large_files+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 while :; do
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416 #include <sys/types.h>
5417 /* Check that off_t can represent 2**63 - 1 correctly.
5418 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5419 since some C++ compilers masquerading as C compilers
5420 incorrectly reject 9223372036854775807. */
5421 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5422 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5423 && LARGE_OFF_T % 2147483647 == 1)
5424 ? 1 : -1];
5426 main ()
5430 return 0;
5432 _ACEOF
5433 if ac_fn_c_try_compile "$LINENO"; then :
5434 ac_cv_sys_large_files=no; break
5436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5439 #define _LARGE_FILES 1
5440 #include <sys/types.h>
5441 /* Check that off_t can represent 2**63 - 1 correctly.
5442 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5443 since some C++ compilers masquerading as C compilers
5444 incorrectly reject 9223372036854775807. */
5445 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5446 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5447 && LARGE_OFF_T % 2147483647 == 1)
5448 ? 1 : -1];
5450 main ()
5454 return 0;
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458 ac_cv_sys_large_files=1; break
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 ac_cv_sys_large_files=unknown
5462 break
5463 done
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5466 $as_echo "$ac_cv_sys_large_files" >&6; }
5467 case $ac_cv_sys_large_files in #(
5468 no | unknown) ;;
5470 cat >>confdefs.h <<_ACEOF
5471 #define _LARGE_FILES $ac_cv_sys_large_files
5472 _ACEOF
5474 esac
5475 rm -rf conftest*
5480 ac_ext=c
5481 ac_cpp='$CPP $CPPFLAGS'
5482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5486 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5487 # On Suns, sometimes $CPP names a directory.
5488 if test -n "$CPP" && test -d "$CPP"; then
5489 CPP=
5491 if test -z "$CPP"; then
5492 if ${ac_cv_prog_CPP+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 # Double quotes because CPP needs to be expanded
5496 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5498 ac_preproc_ok=false
5499 for ac_c_preproc_warn_flag in '' yes
5501 # Use a header file that comes with gcc, so configuring glibc
5502 # with a fresh cross-compiler works.
5503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5504 # <limits.h> exists even on freestanding compilers.
5505 # On the NeXT, cc -E runs the code through the compiler's parser,
5506 # not just through cpp. "Syntax error" is here to catch this case.
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5509 #ifdef __STDC__
5510 # include <limits.h>
5511 #else
5512 # include <assert.h>
5513 #endif
5514 Syntax error
5515 _ACEOF
5516 if ac_fn_c_try_cpp "$LINENO"; then :
5518 else
5519 # Broken: fails on valid input.
5520 continue
5522 rm -f conftest.err conftest.i conftest.$ac_ext
5524 # OK, works on sane cases. Now check whether nonexistent headers
5525 # can be detected and how.
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 #include <ac_nonexistent.h>
5529 _ACEOF
5530 if ac_fn_c_try_cpp "$LINENO"; then :
5531 # Broken: success on invalid input.
5532 continue
5533 else
5534 # Passes both tests.
5535 ac_preproc_ok=:
5536 break
5538 rm -f conftest.err conftest.i conftest.$ac_ext
5540 done
5541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5542 rm -f conftest.i conftest.err conftest.$ac_ext
5543 if $ac_preproc_ok; then :
5544 break
5547 done
5548 ac_cv_prog_CPP=$CPP
5551 CPP=$ac_cv_prog_CPP
5552 else
5553 ac_cv_prog_CPP=$CPP
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5556 $as_echo "$CPP" >&6; }
5557 ac_preproc_ok=false
5558 for ac_c_preproc_warn_flag in '' yes
5560 # Use a header file that comes with gcc, so configuring glibc
5561 # with a fresh cross-compiler works.
5562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5563 # <limits.h> exists even on freestanding compilers.
5564 # On the NeXT, cc -E runs the code through the compiler's parser,
5565 # not just through cpp. "Syntax error" is here to catch this case.
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #ifdef __STDC__
5569 # include <limits.h>
5570 #else
5571 # include <assert.h>
5572 #endif
5573 Syntax error
5574 _ACEOF
5575 if ac_fn_c_try_cpp "$LINENO"; then :
5577 else
5578 # Broken: fails on valid input.
5579 continue
5581 rm -f conftest.err conftest.i conftest.$ac_ext
5583 # OK, works on sane cases. Now check whether nonexistent headers
5584 # can be detected and how.
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5587 #include <ac_nonexistent.h>
5588 _ACEOF
5589 if ac_fn_c_try_cpp "$LINENO"; then :
5590 # Broken: success on invalid input.
5591 continue
5592 else
5593 # Passes both tests.
5594 ac_preproc_ok=:
5595 break
5597 rm -f conftest.err conftest.i conftest.$ac_ext
5599 done
5600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5601 rm -f conftest.i conftest.err conftest.$ac_ext
5602 if $ac_preproc_ok; then :
5604 else
5605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5607 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5608 See \`config.log' for more details" "$LINENO" 5; }
5611 ac_ext=c
5612 ac_cpp='$CPP $CPPFLAGS'
5613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5619 $as_echo_n "checking for ANSI C header files... " >&6; }
5620 if ${ac_cv_header_stdc+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 #include <stdlib.h>
5626 #include <stdarg.h>
5627 #include <string.h>
5628 #include <float.h>
5631 main ()
5635 return 0;
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 ac_cv_header_stdc=yes
5640 else
5641 ac_cv_header_stdc=no
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 if test $ac_cv_header_stdc = yes; then
5646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5649 #include <string.h>
5651 _ACEOF
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 $EGREP "memchr" >/dev/null 2>&1; then :
5655 else
5656 ac_cv_header_stdc=no
5658 rm -f conftest*
5662 if test $ac_cv_header_stdc = yes; then
5663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666 #include <stdlib.h>
5668 _ACEOF
5669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5670 $EGREP "free" >/dev/null 2>&1; then :
5672 else
5673 ac_cv_header_stdc=no
5675 rm -f conftest*
5679 if test $ac_cv_header_stdc = yes; then
5680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5681 if test "$cross_compiling" = yes; then :
5683 else
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 #include <ctype.h>
5687 #include <stdlib.h>
5688 #if ((' ' & 0x0FF) == 0x020)
5689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5691 #else
5692 # define ISLOWER(c) \
5693 (('a' <= (c) && (c) <= 'i') \
5694 || ('j' <= (c) && (c) <= 'r') \
5695 || ('s' <= (c) && (c) <= 'z'))
5696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5697 #endif
5699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5701 main ()
5703 int i;
5704 for (i = 0; i < 256; i++)
5705 if (XOR (islower (i), ISLOWER (i))
5706 || toupper (i) != TOUPPER (i))
5707 return 2;
5708 return 0;
5710 _ACEOF
5711 if ac_fn_c_try_run "$LINENO"; then :
5713 else
5714 ac_cv_header_stdc=no
5716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5717 conftest.$ac_objext conftest.beam conftest.$ac_ext
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5723 $as_echo "$ac_cv_header_stdc" >&6; }
5724 if test $ac_cv_header_stdc = yes; then
5726 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5730 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5731 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5732 inttypes.h stdint.h unistd.h
5733 do :
5734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5735 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5737 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5738 cat >>confdefs.h <<_ACEOF
5739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5740 _ACEOF
5744 done
5747 for ac_header in \
5748 AL/al.h \
5749 ApplicationServices/ApplicationServices.h \
5750 AudioToolbox/AudioConverter.h \
5751 AudioUnit/AudioUnit.h \
5752 AudioUnit/AudioComponent.h \
5753 CL/cl.h \
5754 Carbon/Carbon.h \
5755 CoreAudio/CoreAudio.h \
5756 CoreServices/CoreServices.h \
5757 DiskArbitration/DiskArbitration.h \
5758 IOKit/IOKitLib.h \
5759 IOKit/hid/IOHIDLib.h \
5760 OpenAL/al.h \
5761 OpenCL/opencl.h \
5762 QuickTime/ImageCompression.h \
5763 Security/Security.h \
5764 alias.h \
5765 alsa/asoundlib.h \
5766 arpa/inet.h \
5767 arpa/nameser.h \
5768 asm/types.h \
5769 capi20.h \
5770 curses.h \
5771 direct.h \
5772 dirent.h \
5773 dlfcn.h \
5774 elf.h \
5775 float.h \
5776 fnmatch.h \
5777 fontconfig/fontconfig.h \
5778 getopt.h \
5779 gettext-po.h \
5780 grp.h \
5781 gsm.h \
5782 gsm/gsm.h \
5783 ieeefp.h \
5784 inet/mib2.h \
5785 io.h \
5786 jpeglib.h \
5787 kstat.h \
5788 lber.h \
5789 lcms.h \
5790 lcms/lcms.h \
5791 ldap.h \
5792 link.h \
5793 linux/cdrom.h \
5794 linux/compiler.h \
5795 linux/hdreg.h \
5796 linux/input.h \
5797 linux/ioctl.h \
5798 linux/joystick.h \
5799 linux/major.h \
5800 linux/param.h \
5801 linux/serial.h \
5802 linux/types.h \
5803 linux/ucdrom.h \
5804 mach-o/nlist.h \
5805 mach-o/loader.h \
5806 mach/mach.h \
5807 mach/machine.h \
5808 machine/cpu.h \
5809 machine/limits.h \
5810 machine/sysarch.h \
5811 mntent.h \
5812 mpg123.h \
5813 ncurses.h \
5814 netdb.h \
5815 netinet/in.h \
5816 netinet/in_systm.h \
5817 netinet/tcp.h \
5818 netinet/tcp_fsm.h \
5819 openssl/err.h \
5820 openssl/ssl.h \
5821 png.h \
5822 poll.h \
5823 port.h \
5824 process.h \
5825 pthread.h \
5826 pwd.h \
5827 sched.h \
5828 scsi/scsi.h \
5829 scsi/scsi_ioctl.h \
5830 scsi/sg.h \
5831 stdbool.h \
5832 stdint.h \
5833 strings.h \
5834 stropts.h \
5835 sys/asoundlib.h \
5836 sys/attr.h \
5837 sys/cdio.h \
5838 sys/elf32.h \
5839 sys/epoll.h \
5840 sys/event.h \
5841 sys/exec_elf.h \
5842 sys/filio.h \
5843 sys/inotify.h \
5844 sys/ioctl.h \
5845 sys/ipc.h \
5846 sys/limits.h \
5847 sys/link.h \
5848 sys/mman.h \
5849 sys/modem.h \
5850 sys/msg.h \
5851 sys/mtio.h \
5852 sys/param.h \
5853 sys/poll.h \
5854 sys/prctl.h \
5855 sys/protosw.h \
5856 sys/ptrace.h \
5857 sys/resource.h \
5858 sys/scsiio.h \
5859 sys/shm.h \
5860 sys/signal.h \
5861 sys/socket.h \
5862 sys/socketvar.h \
5863 sys/sockio.h \
5864 sys/statvfs.h \
5865 sys/strtio.h \
5866 sys/syscall.h \
5867 sys/tihdr.h \
5868 sys/time.h \
5869 sys/timeout.h \
5870 sys/times.h \
5871 sys/uio.h \
5872 sys/un.h \
5873 sys/utsname.h \
5874 sys/vm86.h \
5875 sys/wait.h \
5876 syscall.h \
5877 termios.h \
5878 tiffio.h \
5879 unistd.h \
5880 utime.h \
5881 valgrind/memcheck.h \
5882 valgrind/valgrind.h \
5883 zlib.h
5885 do :
5886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5887 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5888 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5889 cat >>confdefs.h <<_ACEOF
5890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5891 _ACEOF
5895 done
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5898 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5899 if ${ac_cv_header_stat_broken+:} false; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904 #include <sys/types.h>
5905 #include <sys/stat.h>
5907 #if defined S_ISBLK && defined S_IFDIR
5908 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5909 #endif
5911 #if defined S_ISBLK && defined S_IFCHR
5912 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5913 #endif
5915 #if defined S_ISLNK && defined S_IFREG
5916 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5917 #endif
5919 #if defined S_ISSOCK && defined S_IFREG
5920 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5921 #endif
5923 _ACEOF
5924 if ac_fn_c_try_compile "$LINENO"; then :
5925 ac_cv_header_stat_broken=no
5926 else
5927 ac_cv_header_stat_broken=yes
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5932 $as_echo "$ac_cv_header_stat_broken" >&6; }
5933 if test $ac_cv_header_stat_broken = yes; then
5935 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5941 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5942 do :
5943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5944 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5945 #ifdef HAVE_SYS_PARAM_H
5946 # include <sys/param.h>
5947 #endif
5949 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5950 cat >>confdefs.h <<_ACEOF
5951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5952 _ACEOF
5956 done
5959 for ac_header in \
5960 netinet/ip.h \
5961 net/if.h \
5962 net/if_arp.h \
5963 net/if_dl.h \
5964 net/if_types.h \
5965 net/route.h \
5966 netinet/if_ether.h \
5967 netinet/if_inarp.h \
5968 netinet/in_pcb.h \
5969 netinet/ip_icmp.h \
5970 netinet/ip_var.h \
5971 netinet/udp.h \
5972 netipx/ipx.h \
5974 do :
5975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5976 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5977 #ifdef HAVE_SYS_SOCKET_H
5978 # include <sys/socket.h>
5979 #endif
5980 #ifdef HAVE_SYS_SOCKETVAR_H
5981 # include <sys/socketvar.h>
5982 #endif
5983 #ifdef HAVE_NET_ROUTE_H
5984 # include <net/route.h>
5985 #endif
5986 #ifdef HAVE_NETINET_IN_H
5987 # include <netinet/in.h>
5988 #endif
5989 #ifdef HAVE_NETINET_IN_SYSTM_H
5990 # include <netinet/in_systm.h>
5991 #endif
5992 #ifdef HAVE_NET_IF_H
5993 # include <net/if.h>
5994 #endif
5995 #ifdef HAVE_NETINET_IP_H
5996 # include <netinet/ip.h>
5997 #endif
5999 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6000 cat >>confdefs.h <<_ACEOF
6001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6002 _ACEOF
6006 done
6009 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6010 do :
6011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6012 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6013 #ifdef HAVE_ALIAS_H
6014 # include <alias.h>
6015 #endif
6016 #ifdef HAVE_SYS_SOCKET_H
6017 # include <sys/socket.h>
6018 #endif
6019 #ifdef HAVE_SYS_SOCKETVAR_H
6020 # include <sys/socketvar.h>
6021 #endif
6022 #ifdef HAVE_SYS_TIMEOUT_H
6023 # include <sys/timeout.h>
6024 #endif
6025 #ifdef HAVE_NETINET_IN_H
6026 # include <netinet/in.h>
6027 #endif
6028 #ifdef HAVE_NETINET_IN_SYSTM_H
6029 # include <netinet/in_systm.h>
6030 #endif
6031 #ifdef HAVE_NETINET_IP_H
6032 # include <netinet/ip.h>
6033 #endif
6034 #ifdef HAVE_NETINET_IP_VAR_H
6035 # include <netinet/ip_var.h>
6036 #endif
6037 #ifdef HAVE_NETINET_IP_ICMP_H
6038 # include <netinet/ip_icmp.h>
6039 #endif
6040 #ifdef HAVE_NETINET_UDP_H
6041 # include <netinet/udp.h>
6042 #endif
6043 #ifdef HAVE_NETINET_TCP_H
6044 # include <netinet/tcp.h>
6045 #endif
6046 #ifdef HAVE_NETINET_TCP_TIMER_H
6047 #include <netinet/tcp_timer.h>
6048 #endif
6050 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6051 cat >>confdefs.h <<_ACEOF
6052 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6053 _ACEOF
6057 done
6060 for ac_header in linux/ipx.h linux/irda.h
6061 do :
6062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6063 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6064 #ifdef HAVE_ASM_TYPES_H
6065 # include <asm/types.h>
6066 #endif
6067 #ifdef HAVE_SYS_SOCKET_H
6068 # include <sys/socket.h>
6069 #endif
6070 #ifdef HAVE_LINUX_TYPES_H
6071 # include <linux/types.h>
6072 #endif
6074 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6075 cat >>confdefs.h <<_ACEOF
6076 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6077 _ACEOF
6081 done
6084 for ac_header in mach-o/dyld_images.h
6085 do :
6086 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6087 # include <stdbool.h>
6088 #endif
6089 #ifdef HAVE_STDINT_H
6090 # include <stdint.h>
6091 #endif
6093 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6094 cat >>confdefs.h <<_ACEOF
6095 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6096 _ACEOF
6100 done
6103 for ac_header in resolv.h
6104 do :
6105 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6106 #ifdef HAVE_SYS_SOCKET_H
6107 # include <sys/socket.h>
6108 #endif
6109 #ifdef HAVE_NETINET_IN_H
6110 # include <netinet/in.h>
6111 #endif
6112 #ifdef HAVE_ARPA_NAMESER_H
6113 # include <arpa/nameser.h>
6114 #endif
6116 if test "x$ac_cv_header_resolv_h" = xyes; then :
6117 cat >>confdefs.h <<_ACEOF
6118 #define HAVE_RESOLV_H 1
6119 _ACEOF
6123 done
6126 for ac_header in ifaddrs.h
6127 do :
6128 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6130 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6131 cat >>confdefs.h <<_ACEOF
6132 #define HAVE_IFADDRS_H 1
6133 _ACEOF
6137 done
6140 for ac_header in ucontext.h
6141 do :
6142 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6144 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6145 cat >>confdefs.h <<_ACEOF
6146 #define HAVE_UCONTEXT_H 1
6147 _ACEOF
6151 done
6154 for ac_header in sys/thr.h
6155 do :
6156 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6157 #ifdef HAVE_UCONTEXT_H
6158 #include <ucontext.h>
6159 #endif
6161 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6162 cat >>confdefs.h <<_ACEOF
6163 #define HAVE_SYS_THR_H 1
6164 _ACEOF
6168 done
6171 for ac_header in pthread_np.h
6172 do :
6173 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6174 #include <pthread.h>
6175 #endif
6177 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6178 cat >>confdefs.h <<_ACEOF
6179 #define HAVE_PTHREAD_NP_H 1
6180 _ACEOF
6184 done
6187 for ac_header in linux/videodev.h linux/videodev2.h
6188 do :
6189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6190 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6191 #include <sys/time.h>
6192 #endif
6193 #include <sys/types.h>
6194 #ifdef HAVE_ASM_TYPES_H
6195 #include <asm/types.h>
6196 #endif
6198 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6199 cat >>confdefs.h <<_ACEOF
6200 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6201 _ACEOF
6205 done
6208 for ac_header in linux/capi.h
6209 do :
6210 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6212 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6213 cat >>confdefs.h <<_ACEOF
6214 #define HAVE_LINUX_CAPI_H 1
6215 _ACEOF
6219 done
6223 DLLEXT=""
6225 DLLFLAGS="-D_REENTRANT"
6227 LDSHARED=""
6229 LDDLLFLAGS=""
6231 LIBEXT="so"
6233 IMPLIBEXT="def"
6235 LDRPATH_INSTALL=""
6237 LDRPATH_LOCAL=""
6239 STATIC_IMPLIBEXT="def.a"
6240 # Extract the first word of "ldd", so it can be a program name with args.
6241 set dummy ldd; ac_word=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if ${ac_cv_path_LDD+:} false; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 case $LDD in
6248 [\\/]* | ?:[\\/]*)
6249 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 as_dummy="/sbin:/usr/sbin:$PATH"
6254 for as_dir in $as_dummy
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6264 done
6265 done
6266 IFS=$as_save_IFS
6268 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6270 esac
6272 LDD=$ac_cv_path_LDD
6273 if test -n "$LDD"; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6275 $as_echo "$LDD" >&6; }
6276 else
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6283 case $host_os in
6284 cygwin*|mingw32*)
6285 if test -n "$ac_tool_prefix"; then
6286 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6287 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if ${ac_cv_prog_DLLTOOL+:} false; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 if test -n "$DLLTOOL"; then
6294 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 break 2
6307 done
6308 done
6309 IFS=$as_save_IFS
6313 DLLTOOL=$ac_cv_prog_DLLTOOL
6314 if test -n "$DLLTOOL"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6316 $as_echo "$DLLTOOL" >&6; }
6317 else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6324 if test -z "$ac_cv_prog_DLLTOOL"; then
6325 ac_ct_DLLTOOL=$DLLTOOL
6326 # Extract the first word of "dlltool", so it can be a program name with args.
6327 set dummy dlltool; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 if test -n "$ac_ct_DLLTOOL"; then
6334 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6335 else
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH
6339 IFS=$as_save_IFS
6340 test -z "$as_dir" && as_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6343 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345 break 2
6347 done
6348 done
6349 IFS=$as_save_IFS
6353 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6354 if test -n "$ac_ct_DLLTOOL"; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6356 $as_echo "$ac_ct_DLLTOOL" >&6; }
6357 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
6362 if test "x$ac_ct_DLLTOOL" = x; then
6363 DLLTOOL="false"
6364 else
6365 case $cross_compiling:$ac_tool_warned in
6366 yes:)
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6369 ac_tool_warned=yes ;;
6370 esac
6371 DLLTOOL=$ac_ct_DLLTOOL
6373 else
6374 DLLTOOL="$ac_cv_prog_DLLTOOL"
6377 if test -n "$ac_tool_prefix"; then
6378 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6379 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_prog_DLLWRAP+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 if test -n "$DLLWRAP"; then
6386 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6399 done
6400 done
6401 IFS=$as_save_IFS
6405 DLLWRAP=$ac_cv_prog_DLLWRAP
6406 if test -n "$DLLWRAP"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6408 $as_echo "$DLLWRAP" >&6; }
6409 else
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6416 if test -z "$ac_cv_prog_DLLWRAP"; then
6417 ac_ct_DLLWRAP=$DLLWRAP
6418 # Extract the first word of "dllwrap", so it can be a program name with args.
6419 set dummy dllwrap; ac_word=$2
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421 $as_echo_n "checking for $ac_word... " >&6; }
6422 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 if test -n "$ac_ct_DLLWRAP"; then
6426 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6427 else
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6439 done
6440 done
6441 IFS=$as_save_IFS
6445 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6446 if test -n "$ac_ct_DLLWRAP"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6448 $as_echo "$ac_ct_DLLWRAP" >&6; }
6449 else
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 $as_echo "no" >&6; }
6454 if test "x$ac_ct_DLLWRAP" = x; then
6455 DLLWRAP="false"
6456 else
6457 case $cross_compiling:$ac_tool_warned in
6458 yes:)
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6461 ac_tool_warned=yes ;;
6462 esac
6463 DLLWRAP=$ac_ct_DLLWRAP
6465 else
6466 DLLWRAP="$ac_cv_prog_DLLWRAP"
6469 if test "$DLLWRAP" = "false"; then
6470 LIBEXT="a"
6471 else
6472 LIBEXT="dll"
6474 IMPLIBEXT="a"
6475 STATIC_IMPLIBEXT="a"
6476 enable_iphlpapi=${enable_iphlpapi:-no}
6477 enable_kernel32=${enable_kernel32:-no}
6478 enable_msvcrt=${enable_msvcrt:-no}
6479 enable_ntdll=${enable_ntdll:-no}
6480 enable_ws2_32=${enable_ws2_32:-no}
6481 enable_loader=${enable_loader:-no}
6482 enable_server=${enable_server:-no}
6483 with_x=${with_x:-no}
6484 with_pthread=${with_pthread:-no}
6486 darwin*|macosx*)
6487 DLLEXT=".so"
6488 LIBEXT="dylib"
6489 DLLFLAGS="$DLLFLAGS -fPIC"
6490 LDDLLFLAGS="-bundle -multiply_defined suppress"
6491 LIBWINE_LDFLAGS="-multiply_defined suppress"
6492 LDSHARED="\$(CC) -dynamiclib"
6493 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6494 COREFOUNDATIONLIB="-framework CoreFoundation"
6496 IOKITLIB="-framework IOKit -framework CoreFoundation"
6498 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6500 CORESERVICESLIB="-framework CoreServices"
6502 case $host_os in
6503 darwin11*)
6504 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6507 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6509 esac
6510 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6511 then
6512 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6515 if test "$ac_cv_header_Security_Security_h" = "yes"
6516 then
6517 SECURITYLIB="-framework Security -framework CoreFoundation"
6519 ac_save_LIBS="$LIBS"
6520 LIBS="$LIBS $SECURITYLIB"
6521 for ac_func in SSLCopyPeerCertificates
6522 do :
6523 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6524 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6525 cat >>confdefs.h <<_ACEOF
6526 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6527 _ACEOF
6530 done
6532 LIBS="$ac_save_LIBS"
6533 with_gnutls=${with_gnutls:-no}
6535 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6536 then
6537 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6538 then
6539 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6541 else
6542 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6545 ac_save_LIBS="$LIBS"
6546 LIBS="$LIBS $COREAUDIO"
6547 for ac_func in AUGraphAddNode
6548 do :
6549 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6550 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6551 cat >>confdefs.h <<_ACEOF
6552 #define HAVE_AUGRAPHADDNODE 1
6553 _ACEOF
6556 done
6558 LIBS="$ac_save_LIBS"
6560 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6561 then
6562 FRAMEWORK_OPENAL="-framework OpenAL"
6565 cat >>confdefs.h <<_ACEOF
6566 #define HAVE_OPENAL 1
6567 _ACEOF
6569 ac_cv_lib_openal=yes
6571 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6572 then
6573 LIBOPENCL="-framework OpenCL"
6575 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6577 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6578 then
6579 ac_save_LIBS="$LIBS"
6580 LIBS="$LIBS $IOKITLIB"
6581 for ac_func in IOHIDManagerCreate
6582 do :
6583 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6584 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6585 cat >>confdefs.h <<_ACEOF
6586 #define HAVE_IOHIDMANAGERCREATE 1
6587 _ACEOF
6590 done
6592 LIBS="$ac_save_LIBS"
6594 case $host_cpu in
6595 *powerpc*)
6596 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6597 esac
6598 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6599 then
6600 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6602 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6603 else
6604 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6606 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6607 then
6608 CARBONLIB="-framework Carbon"
6610 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6612 if test "x$enable_win16" = "xyes"
6613 then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6615 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6616 if test "$cross_compiling" = yes; then :
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6618 $as_echo "cross-compiling, assuming yes" >&6; }
6619 else
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622 asm(".text\n"
6623 "bad:\tnop;nop\n"
6624 "good:\tnop;nop\n\t"
6625 ".globl _testfunc\n"
6626 "_testfunc:\tcallw good");
6627 extern void testfunc();
6629 main ()
6631 unsigned short *p = (unsigned short *)testfunc;
6632 return p[0] != 0xe866 || p[1] != 0xfffa
6634 return 0;
6636 _ACEOF
6637 if ac_fn_c_try_run "$LINENO"; then :
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6639 $as_echo "yes" >&6; }
6640 else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 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
6645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6646 conftest.$ac_objext conftest.beam conftest.$ac_ext
6652 DLLFLAGS="$DLLFLAGS -fPIC"
6653 DLLEXT=".so"
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6655 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6656 if ${ac_cv_c_dll_gnuelf+:} false; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 ac_wine_try_cflags_saved=$CFLAGS
6660 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663 void myfunc() {}
6664 _ACEOF
6665 if ac_fn_c_try_link "$LINENO"; then :
6666 ac_cv_c_dll_gnuelf="yes"
6667 else
6668 ac_cv_c_dll_gnuelf="no"
6670 rm -f core conftest.err conftest.$ac_objext \
6671 conftest$ac_exeext conftest.$ac_ext
6672 CFLAGS=$ac_wine_try_cflags_saved
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6675 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6676 if test "$ac_cv_c_dll_gnuelf" = "yes"
6677 then
6678 LDSHARED="\$(CC) -shared"
6679 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6681 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6682 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 ac_wine_try_cflags_saved=$CFLAGS
6686 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6689 int main(int argc, char **argv) { return 0; }
6690 _ACEOF
6691 if ac_fn_c_try_link "$LINENO"; then :
6692 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6693 else
6694 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6696 rm -f core conftest.err conftest.$ac_objext \
6697 conftest$ac_exeext conftest.$ac_ext
6698 CFLAGS=$ac_wine_try_cflags_saved
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6701 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6702 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6703 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6704 else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6706 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6707 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6708 $as_echo_n "(cached) " >&6
6709 else
6710 ac_wine_try_cflags_saved=$CFLAGS
6711 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6714 int main(int argc, char **argv) { return 0; }
6715 _ACEOF
6716 if ac_fn_c_try_link "$LINENO"; then :
6717 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6718 else
6719 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6721 rm -f core conftest.err conftest.$ac_objext \
6722 conftest$ac_exeext conftest.$ac_ext
6723 CFLAGS=$ac_wine_try_cflags_saved
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6726 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6727 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6728 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6733 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6734 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 ac_wine_try_cflags_saved=$CFLAGS
6738 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 int main(int argc, char **argv) { return 0; }
6742 _ACEOF
6743 if ac_fn_c_try_link "$LINENO"; then :
6744 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6745 else
6746 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6748 rm -f core conftest.err conftest.$ac_objext \
6749 conftest$ac_exeext conftest.$ac_ext
6750 CFLAGS=$ac_wine_try_cflags_saved
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6753 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6754 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6755 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6758 { $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
6759 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6760 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 ac_wine_try_cflags_saved=$CFLAGS
6764 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767 int main(int argc, char **argv) { return 0; }
6768 _ACEOF
6769 if ac_fn_c_try_link "$LINENO"; then :
6770 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6771 else
6772 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6774 rm -f core conftest.err conftest.$ac_objext \
6775 conftest$ac_exeext conftest.$ac_ext
6776 CFLAGS=$ac_wine_try_cflags_saved
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6779 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6780 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6781 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6784 echo '{ global: *; };' >conftest.map
6785 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6787 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6788 if eval \${$as_ac_var+:} false; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 ac_wine_try_cflags_saved=$CFLAGS
6792 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6795 int main(int argc, char **argv) { return 0; }
6796 _ACEOF
6797 if ac_fn_c_try_link "$LINENO"; then :
6798 eval "$as_ac_var=yes"
6799 else
6800 eval "$as_ac_var=no"
6802 rm -f core conftest.err conftest.$ac_objext \
6803 conftest$ac_exeext conftest.$ac_ext
6804 CFLAGS=$ac_wine_try_cflags_saved
6806 eval ac_res=\$$as_ac_var
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6808 $as_echo "$ac_res" >&6; }
6809 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6810 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6812 rm -f conftest.map
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6815 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6816 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 ac_wine_try_cflags_saved=$CFLAGS
6820 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6823 int main(int argc, char **argv) { return 0; }
6824 _ACEOF
6825 if ac_fn_c_try_link "$LINENO"; then :
6826 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6827 else
6828 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6830 rm -f core conftest.err conftest.$ac_objext \
6831 conftest$ac_exeext conftest.$ac_ext
6832 CFLAGS=$ac_wine_try_cflags_saved
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6835 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6836 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6837 LDEXECFLAGS="-Wl,--export-dynamic"
6841 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6843 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6844 if eval \${$as_ac_var+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 ac_wine_try_cflags_saved=$CFLAGS
6848 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 int main(int argc, char **argv) { return 0; }
6852 _ACEOF
6853 if ac_fn_c_try_link "$LINENO"; then :
6854 eval "$as_ac_var=yes"
6855 else
6856 eval "$as_ac_var=no"
6858 rm -f core conftest.err conftest.$ac_objext \
6859 conftest$ac_exeext conftest.$ac_ext
6860 CFLAGS=$ac_wine_try_cflags_saved
6862 eval ac_res=\$$as_ac_var
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6864 $as_echo "$ac_res" >&6; }
6865 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6866 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6867 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6868 else
6869 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6871 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6872 if eval \${$as_ac_var+:} false; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 ac_wine_try_cflags_saved=$CFLAGS
6876 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 int main(int argc, char **argv) { return 0; }
6880 _ACEOF
6881 if ac_fn_c_try_link "$LINENO"; then :
6882 eval "$as_ac_var=yes"
6883 else
6884 eval "$as_ac_var=no"
6886 rm -f core conftest.err conftest.$ac_objext \
6887 conftest$ac_exeext conftest.$ac_ext
6888 CFLAGS=$ac_wine_try_cflags_saved
6890 eval ac_res=\$$as_ac_var
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6892 $as_echo "$ac_res" >&6; }
6893 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6894 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6895 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6900 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6901 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6902 $as_echo_n "(cached) " >&6
6903 else
6904 ac_wine_try_cflags_saved=$CFLAGS
6905 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6908 int main(int argc, char **argv) { return 0; }
6909 _ACEOF
6910 if ac_fn_c_try_link "$LINENO"; then :
6911 ac_cv_cflags__Wl___enable_new_dtags=yes
6912 else
6913 ac_cv_cflags__Wl___enable_new_dtags=no
6915 rm -f core conftest.err conftest.$ac_objext \
6916 conftest$ac_exeext conftest.$ac_ext
6917 CFLAGS=$ac_wine_try_cflags_saved
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6920 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6921 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6922 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6925 case $host_cpu in
6926 *i[3456789]86* | x86_64)
6927 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6929 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6930 if eval \${$as_ac_var+:} false; then :
6931 $as_echo_n "(cached) " >&6
6932 else
6933 ac_wine_try_cflags_saved=$CFLAGS
6934 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6937 int main(int argc, char **argv) { return 0; }
6938 _ACEOF
6939 if ac_fn_c_try_link "$LINENO"; then :
6940 eval "$as_ac_var=yes"
6941 else
6942 eval "$as_ac_var=no"
6944 rm -f core conftest.err conftest.$ac_objext \
6945 conftest$ac_exeext conftest.$ac_ext
6946 CFLAGS=$ac_wine_try_cflags_saved
6948 eval ac_res=\$$as_ac_var
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6950 $as_echo "$ac_res" >&6; }
6951 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6952 case $host_os in
6953 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6954 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6955 esac
6958 # Extract the first word of "prelink", so it can be a program name with args.
6959 set dummy prelink; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_path_PRELINK+:} false; then :
6963 $as_echo_n "(cached) " >&6
6964 else
6965 case $PRELINK in
6966 [\\/]* | ?:[\\/]*)
6967 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in /sbin /usr/sbin $PATH
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6981 done
6982 done
6983 IFS=$as_save_IFS
6985 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6987 esac
6989 PRELINK=$ac_cv_path_PRELINK
6990 if test -n "$PRELINK"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6992 $as_echo "$PRELINK" >&6; }
6993 else
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6999 if test "x$PRELINK" = xfalse
7000 then
7001 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7004 esac
7006 else
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7008 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7009 if ${ac_cv_c_dll_unixware+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 ac_wine_try_cflags_saved=$CFLAGS
7013 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7016 void myfunc() {}
7017 _ACEOF
7018 if ac_fn_c_try_link "$LINENO"; then :
7019 ac_cv_c_dll_unixware="yes"
7020 else
7021 ac_cv_c_dll_unixware="no"
7023 rm -f core conftest.err conftest.$ac_objext \
7024 conftest$ac_exeext conftest.$ac_ext
7025 CFLAGS=$ac_wine_try_cflags_saved
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7028 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7029 if test "$ac_cv_c_dll_unixware" = "yes"
7030 then
7031 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7032 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7034 else
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7036 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7037 if ${ac_cv_c_dll_hpux+:} false; then :
7038 $as_echo_n "(cached) " >&6
7039 else
7040 ac_wine_try_cflags_saved=$CFLAGS
7041 CFLAGS="$CFLAGS -shared"
7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7044 void myfunc() {}
7045 _ACEOF
7046 if ac_fn_c_try_link "$LINENO"; then :
7047 ac_cv_c_dll_hpux="yes"
7048 else
7049 ac_cv_c_dll_hpux="no"
7051 rm -f core conftest.err conftest.$ac_objext \
7052 conftest$ac_exeext conftest.$ac_ext
7053 CFLAGS=$ac_wine_try_cflags_saved
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7056 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7057 if test "$ac_cv_c_dll_hpux" = "yes"
7058 then
7059 LIBEXT="sl"
7060 DLLEXT=".sl"
7061 LDDLLFLAGS="-shared -fPIC"
7062 LDSHARED="\$(CC) -shared"
7067 esac
7069 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7070 enable_winequartz_drv=${enable_winequartz_drv:-no}
7072 if test "$LIBEXT" = "a"; then
7073 as_fn_error $? "could not find a way to build shared libraries.
7074 It is currently not possible to build Wine without shared library
7075 (.so) support to allow transparent switch between .so and .dll files.
7076 If you are using Linux, you will need a newer binutils.
7077 " "$LINENO" 5
7080 CROSSTEST_DISABLE=\#
7082 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7083 then
7084 case "$host_cpu" in
7085 i[3456789]86*)
7086 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 " ;;
7087 x86_64)
7088 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 " ;;
7090 ac_prefix_list="" ;;
7091 esac
7092 for ac_prog in $ac_prefix_list
7094 # Extract the first word of "$ac_prog", so it can be a program name with args.
7095 set dummy $ac_prog; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if ${ac_cv_prog_CROSSCC+:} false; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 if test -n "$CROSSCC"; then
7102 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_CROSSCC="$ac_prog"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7115 done
7116 done
7117 IFS=$as_save_IFS
7121 CROSSCC=$ac_cv_prog_CROSSCC
7122 if test -n "$CROSSCC"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7124 $as_echo "$CROSSCC" >&6; }
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7131 test -n "$CROSSCC" && break
7132 done
7133 test -n "$CROSSCC" || CROSSCC="false"
7135 if test "$CROSSCC" != "false"
7136 then
7137 ac_save_CC="$CC"
7138 CC="$CROSSCC"
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7140 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7145 main ()
7149 return 0;
7151 _ACEOF
7152 if ac_fn_c_try_compile "$LINENO"; then :
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7154 $as_echo "yes" >&6; }
7155 set x $CROSSCC
7156 shift
7157 target=""
7158 while test $# -ge 1
7160 case "$1" in
7161 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7162 esac
7163 shift
7164 done
7165 if test -n "$target"
7166 then
7167 CROSSTEST_DISABLE=""
7168 CROSSTARGET="$target"
7171 else
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 CC="$ac_save_CC"
7181 if test "$ac_cv_header_pthread_h" = "yes"
7182 then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7184 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7185 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187 else
7188 ac_check_lib_save_LIBS=$LIBS
7189 LIBS="-lpthread $LIBS"
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7193 /* Override any GCC internal prototype to avoid an error.
7194 Use char because int might match the return type of a GCC
7195 builtin and then its argument prototype would still apply. */
7196 #ifdef __cplusplus
7197 extern "C"
7198 #endif
7199 char pthread_create ();
7201 main ()
7203 return pthread_create ();
7205 return 0;
7207 _ACEOF
7208 if ac_fn_c_try_link "$LINENO"; then :
7209 ac_cv_lib_pthread_pthread_create=yes
7210 else
7211 ac_cv_lib_pthread_pthread_create=no
7213 rm -f core conftest.err conftest.$ac_objext \
7214 conftest$ac_exeext conftest.$ac_ext
7215 LIBS=$ac_check_lib_save_LIBS
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7218 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7219 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7220 LIBPTHREAD="-lpthread"
7225 if test "x$LIBPTHREAD" = "x"; then :
7226 case "x$with_pthread" in
7227 xno) ;;
7228 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7229 Wine cannot support threads without libpthread.
7230 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7231 esac
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7236 $as_echo_n "checking for X... " >&6; }
7239 # Check whether --with-x was given.
7240 if test "${with_x+set}" = set; then :
7241 withval=$with_x;
7244 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7245 if test "x$with_x" = xno; then
7246 # The user explicitly disabled X.
7247 have_x=disabled
7248 else
7249 case $x_includes,$x_libraries in #(
7250 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7251 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 # One or both of the vars are not set, and there is no cached value.
7255 ac_x_includes=no ac_x_libraries=no
7256 rm -f -r conftest.dir
7257 if mkdir conftest.dir; then
7258 cd conftest.dir
7259 cat >Imakefile <<'_ACEOF'
7260 incroot:
7261 @echo incroot='${INCROOT}'
7262 usrlibdir:
7263 @echo usrlibdir='${USRLIBDIR}'
7264 libdir:
7265 @echo libdir='${LIBDIR}'
7266 _ACEOF
7267 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7268 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7269 for ac_var in incroot usrlibdir libdir; do
7270 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7271 done
7272 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7273 for ac_extension in a so sl dylib la dll; do
7274 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7275 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7276 ac_im_usrlibdir=$ac_im_libdir; break
7278 done
7279 # Screen out bogus values from the imake configuration. They are
7280 # bogus both because they are the default anyway, and because
7281 # using them would break gcc on systems where it needs fixed includes.
7282 case $ac_im_incroot in
7283 /usr/include) ac_x_includes= ;;
7284 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7285 esac
7286 case $ac_im_usrlibdir in
7287 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7288 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7289 esac
7291 cd ..
7292 rm -f -r conftest.dir
7295 # Standard set of common directories for X headers.
7296 # Check X11 before X11Rn because it is often a symlink to the current release.
7297 ac_x_header_dirs='
7298 /usr/X11/include
7299 /usr/X11R7/include
7300 /usr/X11R6/include
7301 /usr/X11R5/include
7302 /usr/X11R4/include
7304 /usr/include/X11
7305 /usr/include/X11R7
7306 /usr/include/X11R6
7307 /usr/include/X11R5
7308 /usr/include/X11R4
7310 /usr/local/X11/include
7311 /usr/local/X11R7/include
7312 /usr/local/X11R6/include
7313 /usr/local/X11R5/include
7314 /usr/local/X11R4/include
7316 /usr/local/include/X11
7317 /usr/local/include/X11R7
7318 /usr/local/include/X11R6
7319 /usr/local/include/X11R5
7320 /usr/local/include/X11R4
7322 /usr/X386/include
7323 /usr/x386/include
7324 /usr/XFree86/include/X11
7326 /usr/include
7327 /usr/local/include
7328 /usr/unsupported/include
7329 /usr/athena/include
7330 /usr/local/x11r5/include
7331 /usr/lpp/Xamples/include
7333 /usr/openwin/include
7334 /usr/openwin/share/include'
7336 if test "$ac_x_includes" = no; then
7337 # Guess where to find include files, by looking for Xlib.h.
7338 # First, try using that file with no special directory specified.
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7341 #include <X11/Xlib.h>
7342 _ACEOF
7343 if ac_fn_c_try_cpp "$LINENO"; then :
7344 # We can compile using X headers with no special include directory.
7345 ac_x_includes=
7346 else
7347 for ac_dir in $ac_x_header_dirs; do
7348 if test -r "$ac_dir/X11/Xlib.h"; then
7349 ac_x_includes=$ac_dir
7350 break
7352 done
7354 rm -f conftest.err conftest.i conftest.$ac_ext
7355 fi # $ac_x_includes = no
7357 if test "$ac_x_libraries" = no; then
7358 # Check for the libraries.
7359 # See if we find them without any special options.
7360 # Don't add to $LIBS permanently.
7361 ac_save_LIBS=$LIBS
7362 LIBS="-lX11 $LIBS"
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365 #include <X11/Xlib.h>
7367 main ()
7369 XrmInitialize ()
7371 return 0;
7373 _ACEOF
7374 if ac_fn_c_try_link "$LINENO"; then :
7375 LIBS=$ac_save_LIBS
7376 # We can link X programs with no special library path.
7377 ac_x_libraries=
7378 else
7379 LIBS=$ac_save_LIBS
7380 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7382 # Don't even attempt the hair of trying to link an X program!
7383 for ac_extension in a so sl dylib la dll; do
7384 if test -r "$ac_dir/libX11.$ac_extension"; then
7385 ac_x_libraries=$ac_dir
7386 break 2
7388 done
7389 done
7391 rm -f core conftest.err conftest.$ac_objext \
7392 conftest$ac_exeext conftest.$ac_ext
7393 fi # $ac_x_libraries = no
7395 case $ac_x_includes,$ac_x_libraries in #(
7396 no,* | *,no | *\'*)
7397 # Didn't find X, or a directory has "'" in its name.
7398 ac_cv_have_x="have_x=no";; #(
7400 # Record where we found X for the cache.
7401 ac_cv_have_x="have_x=yes\
7402 ac_x_includes='$ac_x_includes'\
7403 ac_x_libraries='$ac_x_libraries'"
7404 esac
7406 ;; #(
7407 *) have_x=yes;;
7408 esac
7409 eval "$ac_cv_have_x"
7410 fi # $with_x != no
7412 if test "$have_x" != yes; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7414 $as_echo "$have_x" >&6; }
7415 no_x=yes
7416 else
7417 # If each of the values was on the command line, it overrides each guess.
7418 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7419 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7420 # Update the cache value to reflect the command line values.
7421 ac_cv_have_x="have_x=yes\
7422 ac_x_includes='$x_includes'\
7423 ac_x_libraries='$x_libraries'"
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7425 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7428 if test "$no_x" = yes; then
7429 # Not all programs may use this symbol, but it does not hurt to define it.
7431 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7433 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7434 else
7435 if test -n "$x_includes"; then
7436 X_CFLAGS="$X_CFLAGS -I$x_includes"
7439 # It would also be nice to do this for all -L options, not just this one.
7440 if test -n "$x_libraries"; then
7441 X_LIBS="$X_LIBS -L$x_libraries"
7442 # For Solaris; some versions of Sun CC require a space after -R and
7443 # others require no space. Words are not sufficient . . . .
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7445 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7446 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7447 ac_xsave_c_werror_flag=$ac_c_werror_flag
7448 ac_c_werror_flag=yes
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7453 main ()
7457 return 0;
7459 _ACEOF
7460 if ac_fn_c_try_link "$LINENO"; then :
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 X_LIBS="$X_LIBS -R$x_libraries"
7464 else
7465 LIBS="$ac_xsave_LIBS -R $x_libraries"
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7470 main ()
7474 return 0;
7476 _ACEOF
7477 if ac_fn_c_try_link "$LINENO"; then :
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7479 $as_echo "yes" >&6; }
7480 X_LIBS="$X_LIBS -R $x_libraries"
7481 else
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7483 $as_echo "neither works" >&6; }
7485 rm -f core conftest.err conftest.$ac_objext \
7486 conftest$ac_exeext conftest.$ac_ext
7488 rm -f core conftest.err conftest.$ac_objext \
7489 conftest$ac_exeext conftest.$ac_ext
7490 ac_c_werror_flag=$ac_xsave_c_werror_flag
7491 LIBS=$ac_xsave_LIBS
7494 # Check for system-dependent libraries X programs must link with.
7495 # Do this before checking for the system-independent R6 libraries
7496 # (-lICE), since we may need -lsocket or whatever for X linking.
7498 if test "$ISC" = yes; then
7499 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7500 else
7501 # Martyn Johnson says this is needed for Ultrix, if the X
7502 # libraries were built with DECnet support. And Karl Berry says
7503 # the Alpha needs dnet_stub (dnet does not exist).
7504 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7508 /* Override any GCC internal prototype to avoid an error.
7509 Use char because int might match the return type of a GCC
7510 builtin and then its argument prototype would still apply. */
7511 #ifdef __cplusplus
7512 extern "C"
7513 #endif
7514 char XOpenDisplay ();
7516 main ()
7518 return XOpenDisplay ();
7520 return 0;
7522 _ACEOF
7523 if ac_fn_c_try_link "$LINENO"; then :
7525 else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7527 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7528 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 ac_check_lib_save_LIBS=$LIBS
7532 LIBS="-ldnet $LIBS"
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7536 /* Override any GCC internal prototype to avoid an error.
7537 Use char because int might match the return type of a GCC
7538 builtin and then its argument prototype would still apply. */
7539 #ifdef __cplusplus
7540 extern "C"
7541 #endif
7542 char dnet_ntoa ();
7544 main ()
7546 return dnet_ntoa ();
7548 return 0;
7550 _ACEOF
7551 if ac_fn_c_try_link "$LINENO"; then :
7552 ac_cv_lib_dnet_dnet_ntoa=yes
7553 else
7554 ac_cv_lib_dnet_dnet_ntoa=no
7556 rm -f core conftest.err conftest.$ac_objext \
7557 conftest$ac_exeext conftest.$ac_ext
7558 LIBS=$ac_check_lib_save_LIBS
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7561 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7562 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7563 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7566 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7568 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7569 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7572 ac_check_lib_save_LIBS=$LIBS
7573 LIBS="-ldnet_stub $LIBS"
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7577 /* Override any GCC internal prototype to avoid an error.
7578 Use char because int might match the return type of a GCC
7579 builtin and then its argument prototype would still apply. */
7580 #ifdef __cplusplus
7581 extern "C"
7582 #endif
7583 char dnet_ntoa ();
7585 main ()
7587 return dnet_ntoa ();
7589 return 0;
7591 _ACEOF
7592 if ac_fn_c_try_link "$LINENO"; then :
7593 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7594 else
7595 ac_cv_lib_dnet_stub_dnet_ntoa=no
7597 rm -f core conftest.err conftest.$ac_objext \
7598 conftest$ac_exeext conftest.$ac_ext
7599 LIBS=$ac_check_lib_save_LIBS
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7602 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7603 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7604 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7609 rm -f core conftest.err conftest.$ac_objext \
7610 conftest$ac_exeext conftest.$ac_ext
7611 LIBS="$ac_xsave_LIBS"
7613 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7614 # to get the SysV transport functions.
7615 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7616 # needs -lnsl.
7617 # The nsl library prevents programs from opening the X display
7618 # on Irix 5.2, according to T.E. Dickey.
7619 # The functions gethostbyname, getservbyname, and inet_addr are
7620 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7621 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7622 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7626 if test $ac_cv_func_gethostbyname = no; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7628 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7629 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 ac_check_lib_save_LIBS=$LIBS
7633 LIBS="-lnsl $LIBS"
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7637 /* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7640 #ifdef __cplusplus
7641 extern "C"
7642 #endif
7643 char gethostbyname ();
7645 main ()
7647 return gethostbyname ();
7649 return 0;
7651 _ACEOF
7652 if ac_fn_c_try_link "$LINENO"; then :
7653 ac_cv_lib_nsl_gethostbyname=yes
7654 else
7655 ac_cv_lib_nsl_gethostbyname=no
7657 rm -f core conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7659 LIBS=$ac_check_lib_save_LIBS
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7662 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7663 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7664 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7667 if test $ac_cv_lib_nsl_gethostbyname = no; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7669 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7670 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673 ac_check_lib_save_LIBS=$LIBS
7674 LIBS="-lbsd $LIBS"
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7678 /* Override any GCC internal prototype to avoid an error.
7679 Use char because int might match the return type of a GCC
7680 builtin and then its argument prototype would still apply. */
7681 #ifdef __cplusplus
7682 extern "C"
7683 #endif
7684 char gethostbyname ();
7686 main ()
7688 return gethostbyname ();
7690 return 0;
7692 _ACEOF
7693 if ac_fn_c_try_link "$LINENO"; then :
7694 ac_cv_lib_bsd_gethostbyname=yes
7695 else
7696 ac_cv_lib_bsd_gethostbyname=no
7698 rm -f core conftest.err conftest.$ac_objext \
7699 conftest$ac_exeext conftest.$ac_ext
7700 LIBS=$ac_check_lib_save_LIBS
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7703 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7704 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7705 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7711 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7712 # socket/setsockopt and other routines are undefined under SCO ODT
7713 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7714 # on later versions), says Simon Leinen: it contains gethostby*
7715 # variants that don't use the name server (or something). -lsocket
7716 # must be given before -lnsl if both are needed. We assume that
7717 # if connect needs -lnsl, so does gethostbyname.
7718 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7719 if test "x$ac_cv_func_connect" = xyes; then :
7723 if test $ac_cv_func_connect = no; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7725 $as_echo_n "checking for connect in -lsocket... " >&6; }
7726 if ${ac_cv_lib_socket_connect+:} false; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7729 ac_check_lib_save_LIBS=$LIBS
7730 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7734 /* Override any GCC internal prototype to avoid an error.
7735 Use char because int might match the return type of a GCC
7736 builtin and then its argument prototype would still apply. */
7737 #ifdef __cplusplus
7738 extern "C"
7739 #endif
7740 char connect ();
7742 main ()
7744 return connect ();
7746 return 0;
7748 _ACEOF
7749 if ac_fn_c_try_link "$LINENO"; then :
7750 ac_cv_lib_socket_connect=yes
7751 else
7752 ac_cv_lib_socket_connect=no
7754 rm -f core conftest.err conftest.$ac_objext \
7755 conftest$ac_exeext conftest.$ac_ext
7756 LIBS=$ac_check_lib_save_LIBS
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7759 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7760 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7761 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7766 # Guillermo Gomez says -lposix is necessary on A/UX.
7767 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7768 if test "x$ac_cv_func_remove" = xyes; then :
7772 if test $ac_cv_func_remove = no; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7774 $as_echo_n "checking for remove in -lposix... " >&6; }
7775 if ${ac_cv_lib_posix_remove+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 ac_check_lib_save_LIBS=$LIBS
7779 LIBS="-lposix $LIBS"
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7783 /* Override any GCC internal prototype to avoid an error.
7784 Use char because int might match the return type of a GCC
7785 builtin and then its argument prototype would still apply. */
7786 #ifdef __cplusplus
7787 extern "C"
7788 #endif
7789 char remove ();
7791 main ()
7793 return remove ();
7795 return 0;
7797 _ACEOF
7798 if ac_fn_c_try_link "$LINENO"; then :
7799 ac_cv_lib_posix_remove=yes
7800 else
7801 ac_cv_lib_posix_remove=no
7803 rm -f core conftest.err conftest.$ac_objext \
7804 conftest$ac_exeext conftest.$ac_ext
7805 LIBS=$ac_check_lib_save_LIBS
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7808 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7809 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7810 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7815 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7816 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7817 if test "x$ac_cv_func_shmat" = xyes; then :
7821 if test $ac_cv_func_shmat = no; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7823 $as_echo_n "checking for shmat in -lipc... " >&6; }
7824 if ${ac_cv_lib_ipc_shmat+:} false; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 ac_check_lib_save_LIBS=$LIBS
7828 LIBS="-lipc $LIBS"
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7832 /* Override any GCC internal prototype to avoid an error.
7833 Use char because int might match the return type of a GCC
7834 builtin and then its argument prototype would still apply. */
7835 #ifdef __cplusplus
7836 extern "C"
7837 #endif
7838 char shmat ();
7840 main ()
7842 return shmat ();
7844 return 0;
7846 _ACEOF
7847 if ac_fn_c_try_link "$LINENO"; then :
7848 ac_cv_lib_ipc_shmat=yes
7849 else
7850 ac_cv_lib_ipc_shmat=no
7852 rm -f core conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854 LIBS=$ac_check_lib_save_LIBS
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7857 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7858 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7859 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7865 # Check for libraries that X11R6 Xt/Xaw programs need.
7866 ac_save_LDFLAGS=$LDFLAGS
7867 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7868 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7869 # check for ICE first), but we must link in the order -lSM -lICE or
7870 # we get undefined symbols. So assume we have SM if we have ICE.
7871 # These have to be linked with before -lX11, unlike the other
7872 # libraries we check for below, so use a different variable.
7873 # John Interrante, Karl Berry
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7875 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7876 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 ac_check_lib_save_LIBS=$LIBS
7880 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7884 /* Override any GCC internal prototype to avoid an error.
7885 Use char because int might match the return type of a GCC
7886 builtin and then its argument prototype would still apply. */
7887 #ifdef __cplusplus
7888 extern "C"
7889 #endif
7890 char IceConnectionNumber ();
7892 main ()
7894 return IceConnectionNumber ();
7896 return 0;
7898 _ACEOF
7899 if ac_fn_c_try_link "$LINENO"; then :
7900 ac_cv_lib_ICE_IceConnectionNumber=yes
7901 else
7902 ac_cv_lib_ICE_IceConnectionNumber=no
7904 rm -f core conftest.err conftest.$ac_objext \
7905 conftest$ac_exeext conftest.$ac_ext
7906 LIBS=$ac_check_lib_save_LIBS
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7909 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7910 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7911 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7914 LDFLAGS=$ac_save_LDFLAGS
7919 if test "$have_x" = "yes"
7920 then
7921 XLIB="-lX11"
7922 ac_save_CPPFLAGS="$CPPFLAGS"
7923 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7926 $as_echo_n "checking for -lX11... " >&6; }
7927 if ${ac_cv_lib_soname_X11+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 ac_check_soname_save_LIBS=$LIBS
7931 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7935 /* Override any GCC internal prototype to avoid an error.
7936 Use char because int might match the return type of a GCC
7937 builtin and then its argument prototype would still apply. */
7938 #ifdef __cplusplus
7939 extern "C"
7940 #endif
7941 char XCreateWindow ();
7943 main ()
7945 return XCreateWindow ();
7947 return 0;
7949 _ACEOF
7950 if ac_fn_c_try_link "$LINENO"; then :
7951 case "$LIBEXT" in
7952 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7953 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'` ;;
7954 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7955 esac
7957 rm -f core conftest.err conftest.$ac_objext \
7958 conftest$ac_exeext conftest.$ac_ext
7959 LIBS=$ac_check_soname_save_LIBS
7961 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7963 $as_echo "not found" >&6; }
7965 else
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7967 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7969 cat >>confdefs.h <<_ACEOF
7970 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7971 _ACEOF
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7976 $as_echo_n "checking for -lXext... " >&6; }
7977 if ${ac_cv_lib_soname_Xext+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 ac_check_soname_save_LIBS=$LIBS
7981 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7985 /* Override any GCC internal prototype to avoid an error.
7986 Use char because int might match the return type of a GCC
7987 builtin and then its argument prototype would still apply. */
7988 #ifdef __cplusplus
7989 extern "C"
7990 #endif
7991 char XextCreateExtension ();
7993 main ()
7995 return XextCreateExtension ();
7997 return 0;
7999 _ACEOF
8000 if ac_fn_c_try_link "$LINENO"; then :
8001 case "$LIBEXT" in
8002 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8003 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'` ;;
8004 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8005 esac
8007 rm -f core conftest.err conftest.$ac_objext \
8008 conftest$ac_exeext conftest.$ac_ext
8009 LIBS=$ac_check_soname_save_LIBS
8011 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8013 $as_echo "not found" >&6; }
8015 else
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8017 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8019 cat >>confdefs.h <<_ACEOF
8020 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8021 _ACEOF
8023 XLIB="-lXext $XLIB"
8026 for ac_header in X11/Xlib.h \
8027 X11/XKBlib.h \
8028 X11/Xutil.h \
8029 X11/Xcursor/Xcursor.h \
8030 X11/extensions/shape.h \
8031 X11/extensions/XInput.h \
8032 X11/extensions/XInput2.h \
8033 X11/extensions/Xcomposite.h \
8034 X11/extensions/Xinerama.h \
8035 X11/extensions/Xrandr.h \
8036 X11/extensions/Xrender.h \
8037 X11/extensions/xf86vmode.h \
8038 X11/extensions/xf86vmproto.h
8039 do :
8040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8041 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8042 # include <X11/Xlib.h>
8043 #endif
8044 #ifdef HAVE_X11_XUTIL_H
8045 # include <X11/Xutil.h>
8046 #endif
8048 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8049 cat >>confdefs.h <<_ACEOF
8050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8051 _ACEOF
8055 done
8058 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8059 then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8061 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8062 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 ac_check_lib_save_LIBS=$LIBS
8066 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8070 /* Override any GCC internal prototype to avoid an error.
8071 Use char because int might match the return type of a GCC
8072 builtin and then its argument prototype would still apply. */
8073 #ifdef __cplusplus
8074 extern "C"
8075 #endif
8076 char XkbQueryExtension ();
8078 main ()
8080 return XkbQueryExtension ();
8082 return 0;
8084 _ACEOF
8085 if ac_fn_c_try_link "$LINENO"; then :
8086 ac_cv_lib_X11_XkbQueryExtension=yes
8087 else
8088 ac_cv_lib_X11_XkbQueryExtension=no
8090 rm -f core conftest.err conftest.$ac_objext \
8091 conftest$ac_exeext conftest.$ac_ext
8092 LIBS=$ac_check_lib_save_LIBS
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8095 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8096 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8098 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8104 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8105 then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8107 $as_echo_n "checking for -lXcursor... " >&6; }
8108 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 ac_check_soname_save_LIBS=$LIBS
8112 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8116 /* Override any GCC internal prototype to avoid an error.
8117 Use char because int might match the return type of a GCC
8118 builtin and then its argument prototype would still apply. */
8119 #ifdef __cplusplus
8120 extern "C"
8121 #endif
8122 char XcursorImageLoadCursor ();
8124 main ()
8126 return XcursorImageLoadCursor ();
8128 return 0;
8130 _ACEOF
8131 if ac_fn_c_try_link "$LINENO"; then :
8132 case "$LIBEXT" in
8133 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8134 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'` ;;
8135 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8136 esac
8138 rm -f core conftest.err conftest.$ac_objext \
8139 conftest$ac_exeext conftest.$ac_ext
8140 LIBS=$ac_check_soname_save_LIBS
8142 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8144 $as_echo "not found" >&6; }
8146 else
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8148 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8150 cat >>confdefs.h <<_ACEOF
8151 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8152 _ACEOF
8157 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8158 case "x$with_xcursor" in
8159 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8160 xno) ;;
8161 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8162 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8163 esac
8166 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8167 then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8169 $as_echo_n "checking for -lXi... " >&6; }
8170 if ${ac_cv_lib_soname_Xi+:} false; then :
8171 $as_echo_n "(cached) " >&6
8172 else
8173 ac_check_soname_save_LIBS=$LIBS
8174 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8178 /* Override any GCC internal prototype to avoid an error.
8179 Use char because int might match the return type of a GCC
8180 builtin and then its argument prototype would still apply. */
8181 #ifdef __cplusplus
8182 extern "C"
8183 #endif
8184 char XOpenDevice ();
8186 main ()
8188 return XOpenDevice ();
8190 return 0;
8192 _ACEOF
8193 if ac_fn_c_try_link "$LINENO"; then :
8194 case "$LIBEXT" in
8195 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8196 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'` ;;
8197 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8198 esac
8200 rm -f core conftest.err conftest.$ac_objext \
8201 conftest$ac_exeext conftest.$ac_ext
8202 LIBS=$ac_check_soname_save_LIBS
8204 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8206 $as_echo "not found" >&6; }
8208 else
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8210 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8212 cat >>confdefs.h <<_ACEOF
8213 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8214 _ACEOF
8219 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8220 case "x$with_xinput" in
8221 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8222 xno) ;;
8223 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8224 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8225 esac
8228 if test "x$ac_cv_lib_soname_Xi" != x
8229 then
8230 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8231 case "x$with_xinput2" in
8232 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8233 xno) ;;
8234 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8235 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8236 esac
8240 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8241 then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8243 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8244 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 ac_check_lib_save_LIBS=$LIBS
8248 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250 /* end confdefs.h. */
8252 /* Override any GCC internal prototype to avoid an error.
8253 Use char because int might match the return type of a GCC
8254 builtin and then its argument prototype would still apply. */
8255 #ifdef __cplusplus
8256 extern "C"
8257 #endif
8258 char XShapeQueryExtension ();
8260 main ()
8262 return XShapeQueryExtension ();
8264 return 0;
8266 _ACEOF
8267 if ac_fn_c_try_link "$LINENO"; then :
8268 ac_cv_lib_Xext_XShapeQueryExtension=yes
8269 else
8270 ac_cv_lib_Xext_XShapeQueryExtension=no
8272 rm -f core conftest.err conftest.$ac_objext \
8273 conftest$ac_exeext conftest.$ac_ext
8274 LIBS=$ac_check_lib_save_LIBS
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8277 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8278 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8280 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8285 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8286 case "x$with_xshape" in
8287 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8288 xno) ;;
8289 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8290 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8291 esac
8294 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8295 then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8297 $as_echo_n "checking for -lXxf86vm... " >&6; }
8298 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 ac_check_soname_save_LIBS=$LIBS
8302 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8306 /* Override any GCC internal prototype to avoid an error.
8307 Use char because int might match the return type of a GCC
8308 builtin and then its argument prototype would still apply. */
8309 #ifdef __cplusplus
8310 extern "C"
8311 #endif
8312 char XF86VidModeQueryExtension ();
8314 main ()
8316 return XF86VidModeQueryExtension ();
8318 return 0;
8320 _ACEOF
8321 if ac_fn_c_try_link "$LINENO"; then :
8322 case "$LIBEXT" in
8323 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8324 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'` ;;
8325 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8326 esac
8328 rm -f core conftest.err conftest.$ac_objext \
8329 conftest$ac_exeext conftest.$ac_ext
8330 LIBS=$ac_check_soname_save_LIBS
8332 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8334 $as_echo "not found" >&6; }
8336 else
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8338 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8340 cat >>confdefs.h <<_ACEOF
8341 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8342 _ACEOF
8347 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8348 case "x$with_xxf86vm" in
8349 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8350 xno) ;;
8351 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8352 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8353 esac
8356 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"
8357 then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8359 $as_echo_n "checking for -lXrender... " >&6; }
8360 if ${ac_cv_lib_soname_Xrender+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 ac_check_soname_save_LIBS=$LIBS
8364 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8368 /* Override any GCC internal prototype to avoid an error.
8369 Use char because int might match the return type of a GCC
8370 builtin and then its argument prototype would still apply. */
8371 #ifdef __cplusplus
8372 extern "C"
8373 #endif
8374 char XRenderQueryExtension ();
8376 main ()
8378 return XRenderQueryExtension ();
8380 return 0;
8382 _ACEOF
8383 if ac_fn_c_try_link "$LINENO"; then :
8384 case "$LIBEXT" in
8385 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8386 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'` ;;
8387 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8388 esac
8390 rm -f core conftest.err conftest.$ac_objext \
8391 conftest$ac_exeext conftest.$ac_ext
8392 LIBS=$ac_check_soname_save_LIBS
8394 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8396 $as_echo "not found" >&6; }
8398 else
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8400 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8402 cat >>confdefs.h <<_ACEOF
8403 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8404 _ACEOF
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8407 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8408 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 ac_check_lib_save_LIBS=$LIBS
8412 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8416 /* Override any GCC internal prototype to avoid an error.
8417 Use char because int might match the return type of a GCC
8418 builtin and then its argument prototype would still apply. */
8419 #ifdef __cplusplus
8420 extern "C"
8421 #endif
8422 char XRenderSetPictureTransform ();
8424 main ()
8426 return XRenderSetPictureTransform ();
8428 return 0;
8430 _ACEOF
8431 if ac_fn_c_try_link "$LINENO"; then :
8432 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8433 else
8434 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8436 rm -f core conftest.err conftest.$ac_objext \
8437 conftest$ac_exeext conftest.$ac_ext
8438 LIBS=$ac_check_lib_save_LIBS
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8441 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8442 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8444 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8449 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8450 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 ac_check_lib_save_LIBS=$LIBS
8454 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8458 /* Override any GCC internal prototype to avoid an error.
8459 Use char because int might match the return type of a GCC
8460 builtin and then its argument prototype would still apply. */
8461 #ifdef __cplusplus
8462 extern "C"
8463 #endif
8464 char XRenderCreateLinearGradient ();
8466 main ()
8468 return XRenderCreateLinearGradient ();
8470 return 0;
8472 _ACEOF
8473 if ac_fn_c_try_link "$LINENO"; then :
8474 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8475 else
8476 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8478 rm -f core conftest.err conftest.$ac_objext \
8479 conftest$ac_exeext conftest.$ac_ext
8480 LIBS=$ac_check_lib_save_LIBS
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8483 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8484 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8486 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8493 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8494 case "x$with_xrender" in
8495 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8496 xno) ;;
8497 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8498 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8499 esac
8502 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8503 then
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 #include <X11/Xlib.h>
8507 #include <X11/extensions/Xrandr.h>
8509 main ()
8511 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8513 return 0;
8515 _ACEOF
8516 if ac_fn_c_try_compile "$LINENO"; then :
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8518 $as_echo_n "checking for -lXrandr... " >&6; }
8519 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 ac_check_soname_save_LIBS=$LIBS
8523 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8527 /* Override any GCC internal prototype to avoid an error.
8528 Use char because int might match the return type of a GCC
8529 builtin and then its argument prototype would still apply. */
8530 #ifdef __cplusplus
8531 extern "C"
8532 #endif
8533 char XRRQueryExtension ();
8535 main ()
8537 return XRRQueryExtension ();
8539 return 0;
8541 _ACEOF
8542 if ac_fn_c_try_link "$LINENO"; then :
8543 case "$LIBEXT" in
8544 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8545 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'` ;;
8546 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8547 esac
8549 rm -f core conftest.err conftest.$ac_objext \
8550 conftest$ac_exeext conftest.$ac_ext
8551 LIBS=$ac_check_soname_save_LIBS
8553 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8555 $as_echo "not found" >&6; }
8557 else
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8559 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8561 cat >>confdefs.h <<_ACEOF
8562 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8563 _ACEOF
8568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8571 case "x$with_xrandr" in
8572 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8573 xno) ;;
8574 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8575 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8576 esac
8579 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8580 then
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583 #include <X11/Xlib.h>
8584 #include <X11/extensions/Xinerama.h>
8586 main ()
8588 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8590 return 0;
8592 _ACEOF
8593 if ac_fn_c_try_compile "$LINENO"; then :
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8595 $as_echo_n "checking for -lXinerama... " >&6; }
8596 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 ac_check_soname_save_LIBS=$LIBS
8600 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8604 /* Override any GCC internal prototype to avoid an error.
8605 Use char because int might match the return type of a GCC
8606 builtin and then its argument prototype would still apply. */
8607 #ifdef __cplusplus
8608 extern "C"
8609 #endif
8610 char XineramaQueryScreens ();
8612 main ()
8614 return XineramaQueryScreens ();
8616 return 0;
8618 _ACEOF
8619 if ac_fn_c_try_link "$LINENO"; then :
8620 case "$LIBEXT" in
8621 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8622 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'` ;;
8623 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8624 esac
8626 rm -f core conftest.err conftest.$ac_objext \
8627 conftest$ac_exeext conftest.$ac_ext
8628 LIBS=$ac_check_soname_save_LIBS
8630 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8632 $as_echo "not found" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8636 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8638 cat >>confdefs.h <<_ACEOF
8639 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8640 _ACEOF
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8648 case "x$with_xinerama" in
8649 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8650 xno) ;;
8651 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8652 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8653 esac
8656 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8657 then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8659 $as_echo_n "checking for -lXcomposite... " >&6; }
8660 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8661 $as_echo_n "(cached) " >&6
8662 else
8663 ac_check_soname_save_LIBS=$LIBS
8664 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8668 /* Override any GCC internal prototype to avoid an error.
8669 Use char because int might match the return type of a GCC
8670 builtin and then its argument prototype would still apply. */
8671 #ifdef __cplusplus
8672 extern "C"
8673 #endif
8674 char XCompositeRedirectWindow ();
8676 main ()
8678 return XCompositeRedirectWindow ();
8680 return 0;
8682 _ACEOF
8683 if ac_fn_c_try_link "$LINENO"; then :
8684 case "$LIBEXT" in
8685 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8686 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'` ;;
8687 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8688 esac
8690 rm -f core conftest.err conftest.$ac_objext \
8691 conftest$ac_exeext conftest.$ac_ext
8692 LIBS=$ac_check_soname_save_LIBS
8694 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8696 $as_echo "not found" >&6; }
8698 else
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8700 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8702 cat >>confdefs.h <<_ACEOF
8703 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8704 _ACEOF
8709 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8710 case "x$with_xcomposite" in
8711 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8712 xno) ;;
8713 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8714 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8715 esac
8718 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8719 #include <X11/Xlib.h>
8720 #endif
8722 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8724 cat >>confdefs.h <<_ACEOF
8725 #define HAVE_XICCALLBACK_CALLBACK 1
8726 _ACEOF
8730 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8731 #include <X11/Xlib.h>
8732 #endif
8734 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8736 cat >>confdefs.h <<_ACEOF
8737 #define HAVE_XEVENT_XCOOKIE 1
8738 _ACEOF
8745 opengl_msg=""
8746 if test "x$with_opengl" != "xno"
8747 then
8748 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8749 do :
8750 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8751 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8752 # include <GL/glx.h>
8753 #endif
8755 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8756 cat >>confdefs.h <<_ACEOF
8757 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8758 _ACEOF
8762 done
8764 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8765 then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8767 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8768 if ${wine_cv_opengl_header_version_OK+:} false; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8773 #include <GL/gl.h>
8775 main ()
8777 GLenum test = GL_UNSIGNED_SHORT_5_6_5; return (test == GL_UNSIGNED_SHORT_5_6_5);
8779 return 0;
8781 _ACEOF
8782 if ac_fn_c_try_compile "$LINENO"; then :
8783 wine_cv_opengl_header_version_OK="yes"
8784 else
8785 wine_cv_opengl_header_version_OK="no"
8787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8790 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8792 if test "$wine_cv_opengl_header_version_OK" = "yes"
8793 then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8795 $as_echo_n "checking for -lGL... " >&6; }
8796 if ${ac_cv_lib_soname_GL+:} false; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 ac_check_soname_save_LIBS=$LIBS
8800 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8804 /* Override any GCC internal prototype to avoid an error.
8805 Use char because int might match the return type of a GCC
8806 builtin and then its argument prototype would still apply. */
8807 #ifdef __cplusplus
8808 extern "C"
8809 #endif
8810 char glXCreateContext ();
8812 main ()
8814 return glXCreateContext ();
8816 return 0;
8818 _ACEOF
8819 if ac_fn_c_try_link "$LINENO"; then :
8820 case "$LIBEXT" in
8821 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8822 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'` ;;
8823 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8824 esac
8826 rm -f core conftest.err conftest.$ac_objext \
8827 conftest$ac_exeext conftest.$ac_ext
8828 LIBS=$ac_check_soname_save_LIBS
8830 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8832 $as_echo "not found" >&6; }
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8834 $as_echo_n "checking for -lGL... " >&6; }
8835 if ${ac_cv_lib_soname_GL+:} false; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 ac_check_soname_save_LIBS=$LIBS
8839 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"
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8843 /* Override any GCC internal prototype to avoid an error.
8844 Use char because int might match the return type of a GCC
8845 builtin and then its argument prototype would still apply. */
8846 #ifdef __cplusplus
8847 extern "C"
8848 #endif
8849 char glXCreateContext ();
8851 main ()
8853 return glXCreateContext ();
8855 return 0;
8857 _ACEOF
8858 if ac_fn_c_try_link "$LINENO"; then :
8859 case "$LIBEXT" in
8860 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8861 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'` ;;
8862 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8863 esac
8865 rm -f core conftest.err conftest.$ac_objext \
8866 conftest$ac_exeext conftest.$ac_ext
8867 LIBS=$ac_check_soname_save_LIBS
8869 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8871 $as_echo "not found" >&6; }
8872 if test -f /usr/X11R6/lib/libGL.a
8873 then
8874 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8875 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8876 else
8877 opengl_msg="No OpenGL library found on this system."
8879 else
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8881 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8883 cat >>confdefs.h <<_ACEOF
8884 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8885 _ACEOF
8887 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"
8889 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8892 else
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8894 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8896 cat >>confdefs.h <<_ACEOF
8897 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8898 _ACEOF
8900 OPENGL_LIBS="-lGL"
8902 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8905 if test "$ac_cv_header_GL_glu_h" = "yes"
8906 then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8908 $as_echo_n "checking for -lGLU... " >&6; }
8909 if ${ac_cv_lib_soname_GLU+:} false; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 ac_check_soname_save_LIBS=$LIBS
8913 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8917 /* Override any GCC internal prototype to avoid an error.
8918 Use char because int might match the return type of a GCC
8919 builtin and then its argument prototype would still apply. */
8920 #ifdef __cplusplus
8921 extern "C"
8922 #endif
8923 char gluLookAt ();
8925 main ()
8927 return gluLookAt ();
8929 return 0;
8931 _ACEOF
8932 if ac_fn_c_try_link "$LINENO"; then :
8933 case "$LIBEXT" in
8934 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8935 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'` ;;
8936 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8937 esac
8939 rm -f core conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext conftest.$ac_ext
8941 LIBS=$ac_check_soname_save_LIBS
8943 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8945 $as_echo "not found" >&6; }
8947 else
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8949 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8951 cat >>confdefs.h <<_ACEOF
8952 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8953 _ACEOF
8958 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8959 case "x$with_glu" in
8960 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8961 xno) ;;
8962 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8963 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8964 esac
8966 else
8967 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8969 else
8970 opengl_msg="OpenGL development headers not found."
8972 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8973 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8974 else
8975 enable_opengl32=${enable_opengl32:-no}
8976 enable_glu32=${enable_glu32:-no}
8978 if test -n "$opengl_msg"; then :
8979 case "x$with_opengl" in
8980 x) as_fn_append wine_warnings "|$opengl_msg
8981 OpenGL and Direct3D won't be supported." ;;
8982 xno) ;;
8983 *) as_fn_error $? "$opengl_msg
8984 OpenGL and Direct3D won't be supported.
8985 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8986 esac
8989 CPPFLAGS="$ac_save_CPPFLAGS"
8990 else
8991 XLIB=""
8992 X_CFLAGS=""
8993 X_LIBS=""
8994 enable_winex11_drv=${enable_winex11_drv:-no}
8995 enable_opengl32=${enable_opengl32:-no}
8996 enable_glu32=${enable_glu32:-no}
8998 if test "x$XLIB" = "x"; then :
8999 case "x$with_x" in
9000 xno) ;;
9001 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9002 without X support, which probably isn't what you want. You will need
9003 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9004 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9005 esac
9008 if test "$ac_cv_header_CL_cl_h" = "yes"
9009 then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9011 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9012 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9013 $as_echo_n "(cached) " >&6
9014 else
9015 ac_check_lib_save_LIBS=$LIBS
9016 LIBS="-lOpenCL $LIBS"
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9020 /* Override any GCC internal prototype to avoid an error.
9021 Use char because int might match the return type of a GCC
9022 builtin and then its argument prototype would still apply. */
9023 #ifdef __cplusplus
9024 extern "C"
9025 #endif
9026 char clGetPlatformInfo ();
9028 main ()
9030 return clGetPlatformInfo ();
9032 return 0;
9034 _ACEOF
9035 if ac_fn_c_try_link "$LINENO"; then :
9036 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9037 else
9038 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9040 rm -f core conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
9042 LIBS=$ac_check_lib_save_LIBS
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9045 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9046 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9047 LIBOPENCL="-lOpenCL"
9052 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9053 case "x$with_opencl" in
9054 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9055 xno) ;;
9056 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9057 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9058 esac
9060 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9063 XML2LIBS=""
9065 XML2INCL=""
9067 XSLTINCL=""
9069 if test "x$with_xml" != "xno"
9070 then
9071 ac_save_CPPFLAGS="$CPPFLAGS"
9072 if test "$PKG_CONFIG" != "false"
9073 then
9074 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9075 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9076 else
9077 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9078 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9080 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9081 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9082 do :
9083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9084 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9085 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9086 cat >>confdefs.h <<_ACEOF
9087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9088 _ACEOF
9092 done
9094 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"
9095 then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9097 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9098 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 ac_check_lib_save_LIBS=$LIBS
9102 LIBS="-lxml2 $ac_xml_libs $LIBS"
9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104 /* end confdefs.h. */
9106 /* Override any GCC internal prototype to avoid an error.
9107 Use char because int might match the return type of a GCC
9108 builtin and then its argument prototype would still apply. */
9109 #ifdef __cplusplus
9110 extern "C"
9111 #endif
9112 char xmlParseMemory ();
9114 main ()
9116 return xmlParseMemory ();
9118 return 0;
9120 _ACEOF
9121 if ac_fn_c_try_link "$LINENO"; then :
9122 ac_cv_lib_xml2_xmlParseMemory=yes
9123 else
9124 ac_cv_lib_xml2_xmlParseMemory=no
9126 rm -f core conftest.err conftest.$ac_objext \
9127 conftest$ac_exeext conftest.$ac_ext
9128 LIBS=$ac_check_lib_save_LIBS
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9131 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9132 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9134 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9136 XML2LIBS="$ac_xml_libs"
9137 XML2INCL="$ac_xml_cflags"
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9141 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9142 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9143 $as_echo_n "(cached) " >&6
9144 else
9145 ac_check_lib_save_LIBS=$LIBS
9146 LIBS="-lxml2 $ac_xml_libs $LIBS"
9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h. */
9150 /* Override any GCC internal prototype to avoid an error.
9151 Use char because int might match the return type of a GCC
9152 builtin and then its argument prototype would still apply. */
9153 #ifdef __cplusplus
9154 extern "C"
9155 #endif
9156 char xmlReadMemory ();
9158 main ()
9160 return xmlReadMemory ();
9162 return 0;
9164 _ACEOF
9165 if ac_fn_c_try_link "$LINENO"; then :
9166 ac_cv_lib_xml2_xmlReadMemory=yes
9167 else
9168 ac_cv_lib_xml2_xmlReadMemory=no
9170 rm -f core conftest.err conftest.$ac_objext \
9171 conftest$ac_exeext conftest.$ac_ext
9172 LIBS=$ac_check_lib_save_LIBS
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9175 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9176 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9178 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9183 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9184 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 ac_check_lib_save_LIBS=$LIBS
9188 LIBS="-lxml2 $ac_xml_libs $LIBS"
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9192 /* Override any GCC internal prototype to avoid an error.
9193 Use char because int might match the return type of a GCC
9194 builtin and then its argument prototype would still apply. */
9195 #ifdef __cplusplus
9196 extern "C"
9197 #endif
9198 char xmlNewDocPI ();
9200 main ()
9202 return xmlNewDocPI ();
9204 return 0;
9206 _ACEOF
9207 if ac_fn_c_try_link "$LINENO"; then :
9208 ac_cv_lib_xml2_xmlNewDocPI=yes
9209 else
9210 ac_cv_lib_xml2_xmlNewDocPI=no
9212 rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9214 LIBS=$ac_check_lib_save_LIBS
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9217 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9218 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9220 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9225 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9226 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 ac_check_lib_save_LIBS=$LIBS
9230 LIBS="-lxml2 $ac_xml_libs $LIBS"
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9234 /* Override any GCC internal prototype to avoid an error.
9235 Use char because int might match the return type of a GCC
9236 builtin and then its argument prototype would still apply. */
9237 #ifdef __cplusplus
9238 extern "C"
9239 #endif
9240 char xmlSchemaSetParserStructuredErrors ();
9242 main ()
9244 return xmlSchemaSetParserStructuredErrors ();
9246 return 0;
9248 _ACEOF
9249 if ac_fn_c_try_link "$LINENO"; then :
9250 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9251 else
9252 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9254 rm -f core conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext conftest.$ac_ext
9256 LIBS=$ac_check_lib_save_LIBS
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9259 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9260 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9262 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9267 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9268 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9269 $as_echo_n "(cached) " >&6
9270 else
9271 ac_check_lib_save_LIBS=$LIBS
9272 LIBS="-lxml2 $ac_xml_libs $LIBS"
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9276 /* Override any GCC internal prototype to avoid an error.
9277 Use char because int might match the return type of a GCC
9278 builtin and then its argument prototype would still apply. */
9279 #ifdef __cplusplus
9280 extern "C"
9281 #endif
9282 char xmlSchemaSetValidStructuredErrors ();
9284 main ()
9286 return xmlSchemaSetValidStructuredErrors ();
9288 return 0;
9290 _ACEOF
9291 if ac_fn_c_try_link "$LINENO"; then :
9292 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9293 else
9294 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9296 rm -f core conftest.err conftest.$ac_objext \
9297 conftest$ac_exeext conftest.$ac_ext
9298 LIBS=$ac_check_lib_save_LIBS
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9301 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9302 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9304 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9309 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9310 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 ac_check_lib_save_LIBS=$LIBS
9314 LIBS="-lxml2 $ac_xml_libs $LIBS"
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9318 /* Override any GCC internal prototype to avoid an error.
9319 Use char because int might match the return type of a GCC
9320 builtin and then its argument prototype would still apply. */
9321 #ifdef __cplusplus
9322 extern "C"
9323 #endif
9324 char xmlFirstElementChild ();
9326 main ()
9328 return xmlFirstElementChild ();
9330 return 0;
9332 _ACEOF
9333 if ac_fn_c_try_link "$LINENO"; then :
9334 ac_cv_lib_xml2_xmlFirstElementChild=yes
9335 else
9336 ac_cv_lib_xml2_xmlFirstElementChild=no
9338 rm -f core conftest.err conftest.$ac_objext \
9339 conftest$ac_exeext conftest.$ac_ext
9340 LIBS=$ac_check_lib_save_LIBS
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9343 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9344 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9346 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9350 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9352 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9354 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9359 CPPFLAGS="$ac_save_CPPFLAGS"
9361 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9362 case "x$with_xml" in
9363 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9364 xno) ;;
9365 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9366 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9367 esac
9370 if test "x$with_xslt" != "xno"
9371 then
9372 if test "$PKG_CONFIG" != "false"
9373 then
9374 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9375 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9376 else
9377 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9378 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9380 ac_save_CPPFLAGS="$CPPFLAGS"
9381 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9382 for ac_header in libxslt/pattern.h libxslt/transform.h
9383 do :
9384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9385 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9386 # include <libxslt/pattern.h>
9387 #endif
9389 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9390 cat >>confdefs.h <<_ACEOF
9391 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9392 _ACEOF
9396 done
9398 CPPFLAGS="$ac_save_CPPFLAGS"
9399 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9400 then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9402 $as_echo_n "checking for -lxslt... " >&6; }
9403 if ${ac_cv_lib_soname_xslt+:} false; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 ac_check_soname_save_LIBS=$LIBS
9407 LIBS="-lxslt $ac_xslt_libs $LIBS"
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9411 /* Override any GCC internal prototype to avoid an error.
9412 Use char because int might match the return type of a GCC
9413 builtin and then its argument prototype would still apply. */
9414 #ifdef __cplusplus
9415 extern "C"
9416 #endif
9417 char xsltCompilePattern ();
9419 main ()
9421 return xsltCompilePattern ();
9423 return 0;
9425 _ACEOF
9426 if ac_fn_c_try_link "$LINENO"; then :
9427 case "$LIBEXT" in
9428 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9429 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'` ;;
9430 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9431 esac
9433 rm -f core conftest.err conftest.$ac_objext \
9434 conftest$ac_exeext conftest.$ac_ext
9435 LIBS=$ac_check_soname_save_LIBS
9437 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9439 $as_echo "not found" >&6; }
9441 else
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9443 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9445 cat >>confdefs.h <<_ACEOF
9446 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9447 _ACEOF
9449 XSLTINCL="$ac_xslt_cflags"
9453 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9454 case "x$with_xslt" in
9455 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9456 xno) ;;
9457 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9458 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9459 esac
9462 if test "x$with_dbus" != "xno"
9463 then
9464 ac_save_CPPFLAGS="$CPPFLAGS"
9465 if test "$PKG_CONFIG" != "false"
9466 then
9467 ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9468 ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9469 CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9471 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9472 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9474 $as_echo_n "checking for -ldbus-1... " >&6; }
9475 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9476 $as_echo_n "(cached) " >&6
9477 else
9478 ac_check_soname_save_LIBS=$LIBS
9479 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9483 /* Override any GCC internal prototype to avoid an error.
9484 Use char because int might match the return type of a GCC
9485 builtin and then its argument prototype would still apply. */
9486 #ifdef __cplusplus
9487 extern "C"
9488 #endif
9489 char dbus_connection_close ();
9491 main ()
9493 return dbus_connection_close ();
9495 return 0;
9497 _ACEOF
9498 if ac_fn_c_try_link "$LINENO"; then :
9499 case "$LIBEXT" in
9500 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9501 dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep "libdbus-1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9502 *) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9503 esac
9505 rm -f core conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext conftest.$ac_ext
9507 LIBS=$ac_check_soname_save_LIBS
9509 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9511 $as_echo "not found" >&6; }
9513 else
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9515 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9517 cat >>confdefs.h <<_ACEOF
9518 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9519 _ACEOF
9521 DBUSINCL="$ac_dbus_cflags"
9527 CPPFLAGS="$ac_save_CPPFLAGS"
9529 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9530 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9531 case "x$with_dbus" in
9532 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9533 xno) ;;
9534 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9535 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9536 esac
9539 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9540 then
9541 ac_save_CPPFLAGS="$CPPFLAGS"
9542 if test "$PKG_CONFIG" != "false"
9543 then
9544 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9545 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9546 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9548 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9549 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9551 $as_echo_n "checking for -lhal... " >&6; }
9552 if ${ac_cv_lib_soname_hal+:} false; then :
9553 $as_echo_n "(cached) " >&6
9554 else
9555 ac_check_soname_save_LIBS=$LIBS
9556 LIBS="-lhal $ac_hal_libs $LIBS"
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9560 /* Override any GCC internal prototype to avoid an error.
9561 Use char because int might match the return type of a GCC
9562 builtin and then its argument prototype would still apply. */
9563 #ifdef __cplusplus
9564 extern "C"
9565 #endif
9566 char libhal_ctx_new ();
9568 main ()
9570 return libhal_ctx_new ();
9572 return 0;
9574 _ACEOF
9575 if ac_fn_c_try_link "$LINENO"; then :
9576 case "$LIBEXT" in
9577 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9578 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'` ;;
9579 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9580 esac
9582 rm -f core conftest.err conftest.$ac_objext \
9583 conftest$ac_exeext conftest.$ac_ext
9584 LIBS=$ac_check_soname_save_LIBS
9586 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9588 $as_echo "not found" >&6; }
9590 else
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9592 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9594 cat >>confdefs.h <<_ACEOF
9595 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9596 _ACEOF
9598 HALINCL="$ac_hal_cflags"
9604 CPPFLAGS="$ac_save_CPPFLAGS"
9605 if test "x$ac_cv_lib_soname_hal" = "x" -a \
9606 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9607 case "x$with_hal" in
9608 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9609 xno) ;;
9610 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9611 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9612 esac
9616 if test "x$with_gnutls" != "xno"
9617 then
9618 ac_save_CPPFLAGS="$CPPFLAGS"
9619 if test "$PKG_CONFIG" != "false"
9620 then
9621 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9622 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9623 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9625 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9626 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9629 #include <gnutls/gnutls.h>
9631 main ()
9633 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9635 return 0;
9637 _ACEOF
9638 if ac_fn_c_try_compile "$LINENO"; then :
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9640 $as_echo_n "checking for -lgnutls... " >&6; }
9641 if ${ac_cv_lib_soname_gnutls+:} false; then :
9642 $as_echo_n "(cached) " >&6
9643 else
9644 ac_check_soname_save_LIBS=$LIBS
9645 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9649 /* Override any GCC internal prototype to avoid an error.
9650 Use char because int might match the return type of a GCC
9651 builtin and then its argument prototype would still apply. */
9652 #ifdef __cplusplus
9653 extern "C"
9654 #endif
9655 char gnutls_global_init ();
9657 main ()
9659 return gnutls_global_init ();
9661 return 0;
9663 _ACEOF
9664 if ac_fn_c_try_link "$LINENO"; then :
9665 case "$LIBEXT" in
9666 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9667 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'` ;;
9668 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9669 esac
9671 rm -f core conftest.err conftest.$ac_objext \
9672 conftest$ac_exeext conftest.$ac_ext
9673 LIBS=$ac_check_soname_save_LIBS
9675 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9677 $as_echo "not found" >&6; }
9679 else
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9681 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9683 cat >>confdefs.h <<_ACEOF
9684 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9685 _ACEOF
9687 GNUTLSINCL="$ac_gnutls_cflags"
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9695 CPPFLAGS="$ac_save_CPPFLAGS"
9697 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9698 case "x$with_gnutls" in
9699 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9700 xno) ;;
9701 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9702 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9703 esac
9706 CURSESLIBS=""
9707 if test "$ac_cv_header_ncurses_h" = "yes"
9708 then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9710 $as_echo_n "checking for -lncurses... " >&6; }
9711 if ${ac_cv_lib_soname_ncurses+:} false; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 ac_check_soname_save_LIBS=$LIBS
9715 LIBS="-lncurses $LIBS"
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9719 /* Override any GCC internal prototype to avoid an error.
9720 Use char because int might match the return type of a GCC
9721 builtin and then its argument prototype would still apply. */
9722 #ifdef __cplusplus
9723 extern "C"
9724 #endif
9725 char waddch ();
9727 main ()
9729 return waddch ();
9731 return 0;
9733 _ACEOF
9734 if ac_fn_c_try_link "$LINENO"; then :
9735 case "$LIBEXT" in
9736 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9737 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'` ;;
9738 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9739 esac
9741 rm -f core conftest.err conftest.$ac_objext \
9742 conftest$ac_exeext conftest.$ac_ext
9743 LIBS=$ac_check_soname_save_LIBS
9745 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9747 $as_echo "not found" >&6; }
9749 else
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9751 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9753 cat >>confdefs.h <<_ACEOF
9754 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9755 _ACEOF
9757 CURSESLIBS="-lncurses"
9759 elif test "$ac_cv_header_curses_h" = "yes"
9760 then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9762 $as_echo_n "checking for -lcurses... " >&6; }
9763 if ${ac_cv_lib_soname_curses+:} false; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 ac_check_soname_save_LIBS=$LIBS
9767 LIBS="-lcurses $LIBS"
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9771 /* Override any GCC internal prototype to avoid an error.
9772 Use char because int might match the return type of a GCC
9773 builtin and then its argument prototype would still apply. */
9774 #ifdef __cplusplus
9775 extern "C"
9776 #endif
9777 char waddch ();
9779 main ()
9781 return waddch ();
9783 return 0;
9785 _ACEOF
9786 if ac_fn_c_try_link "$LINENO"; then :
9787 case "$LIBEXT" in
9788 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9789 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'` ;;
9790 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9791 esac
9793 rm -f core conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
9795 LIBS=$ac_check_soname_save_LIBS
9797 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9799 $as_echo "not found" >&6; }
9801 else
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9803 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9805 cat >>confdefs.h <<_ACEOF
9806 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9807 _ACEOF
9809 CURSESLIBS="-lcurses"
9812 ac_save_LIBS="$LIBS"
9813 LIBS="$LIBS $CURSESLIBS"
9814 for ac_func in mousemask
9815 do :
9816 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9817 if test "x$ac_cv_func_mousemask" = xyes; then :
9818 cat >>confdefs.h <<_ACEOF
9819 #define HAVE_MOUSEMASK 1
9820 _ACEOF
9823 done
9825 LIBS="$ac_save_LIBS"
9826 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9827 case "x$with_curses" in
9828 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9829 xno) ;;
9830 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9831 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9832 esac
9835 if test "x$with_sane" != "xno"
9836 then
9837 ac_save_CPPFLAGS="$CPPFLAGS"
9838 # Extract the first word of "sane-config", so it can be a program name with args.
9839 set dummy sane-config; ac_word=$2
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9841 $as_echo_n "checking for $ac_word... " >&6; }
9842 if ${ac_cv_prog_sane_devel+:} false; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 if test -n "$sane_devel"; then
9846 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9847 else
9848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9849 for as_dir in $PATH
9851 IFS=$as_save_IFS
9852 test -z "$as_dir" && as_dir=.
9853 for ac_exec_ext in '' $ac_executable_extensions; do
9854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9855 ac_cv_prog_sane_devel="sane-config"
9856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9857 break 2
9859 done
9860 done
9861 IFS=$as_save_IFS
9863 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9866 sane_devel=$ac_cv_prog_sane_devel
9867 if test -n "$sane_devel"; then
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9869 $as_echo "$sane_devel" >&6; }
9870 else
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872 $as_echo "no" >&6; }
9876 if test "$sane_devel" != "no"
9877 then
9878 ac_sane_incl="`$sane_devel --cflags`"
9879 ac_sane_libs="`$sane_devel --ldflags`"
9880 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9882 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9883 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9885 $as_echo_n "checking for -lsane... " >&6; }
9886 if ${ac_cv_lib_soname_sane+:} false; then :
9887 $as_echo_n "(cached) " >&6
9888 else
9889 ac_check_soname_save_LIBS=$LIBS
9890 LIBS="-lsane $ac_sane_libs $LIBS"
9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h. */
9894 /* Override any GCC internal prototype to avoid an error.
9895 Use char because int might match the return type of a GCC
9896 builtin and then its argument prototype would still apply. */
9897 #ifdef __cplusplus
9898 extern "C"
9899 #endif
9900 char sane_init ();
9902 main ()
9904 return sane_init ();
9906 return 0;
9908 _ACEOF
9909 if ac_fn_c_try_link "$LINENO"; then :
9910 case "$LIBEXT" in
9911 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9912 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'` ;;
9913 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9914 esac
9916 rm -f core conftest.err conftest.$ac_objext \
9917 conftest$ac_exeext conftest.$ac_ext
9918 LIBS=$ac_check_soname_save_LIBS
9920 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9922 $as_echo "not found" >&6; }
9924 else
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9926 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9928 cat >>confdefs.h <<_ACEOF
9929 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9930 _ACEOF
9932 SANEINCL="$ac_sane_incl"
9938 CPPFLAGS="$ac_save_CPPFLAGS"
9940 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9941 case "x$with_sane" in
9942 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9943 xno) ;;
9944 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9945 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9946 esac
9949 if test "x$with_v4l" != "xno"
9950 then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9952 $as_echo_n "checking for -lv4l1... " >&6; }
9953 if ${ac_cv_lib_soname_v4l1+:} false; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 ac_check_soname_save_LIBS=$LIBS
9957 LIBS="-lv4l1 $LIBS"
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9961 /* Override any GCC internal prototype to avoid an error.
9962 Use char because int might match the return type of a GCC
9963 builtin and then its argument prototype would still apply. */
9964 #ifdef __cplusplus
9965 extern "C"
9966 #endif
9967 char v4l1_open ();
9969 main ()
9971 return v4l1_open ();
9973 return 0;
9975 _ACEOF
9976 if ac_fn_c_try_link "$LINENO"; then :
9977 case "$LIBEXT" in
9978 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9979 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'` ;;
9980 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9981 esac
9983 rm -f core conftest.err conftest.$ac_objext \
9984 conftest$ac_exeext conftest.$ac_ext
9985 LIBS=$ac_check_soname_save_LIBS
9987 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9989 $as_echo "not found" >&6; }
9991 else
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9993 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9995 cat >>confdefs.h <<_ACEOF
9996 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9997 _ACEOF
10002 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10003 case "x$with_v4l" in
10004 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10005 xno) ;;
10006 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10007 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10008 esac
10011 if test "x$with_gphoto" != "xno"
10012 then
10013 ac_save_CPPFLAGS="$CPPFLAGS"
10014 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10015 set dummy gphoto2-config; ac_word=$2
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017 $as_echo_n "checking for $ac_word... " >&6; }
10018 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10019 $as_echo_n "(cached) " >&6
10020 else
10021 if test -n "$gphoto2_devel"; then
10022 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10023 else
10024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025 for as_dir in $PATH
10027 IFS=$as_save_IFS
10028 test -z "$as_dir" && as_dir=.
10029 for ac_exec_ext in '' $ac_executable_extensions; do
10030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10031 ac_cv_prog_gphoto2_devel="gphoto2-config"
10032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10033 break 2
10035 done
10036 done
10037 IFS=$as_save_IFS
10039 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10042 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10043 if test -n "$gphoto2_devel"; then
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10045 $as_echo "$gphoto2_devel" >&6; }
10046 else
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048 $as_echo "no" >&6; }
10052 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10053 set dummy gphoto2-port-config; ac_word=$2
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10055 $as_echo_n "checking for $ac_word... " >&6; }
10056 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10059 if test -n "$gphoto2port_devel"; then
10060 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10061 else
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063 for as_dir in $PATH
10065 IFS=$as_save_IFS
10066 test -z "$as_dir" && as_dir=.
10067 for ac_exec_ext in '' $ac_executable_extensions; do
10068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10069 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 break 2
10073 done
10074 done
10075 IFS=$as_save_IFS
10077 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10080 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10081 if test -n "$gphoto2port_devel"; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10083 $as_echo "$gphoto2port_devel" >&6; }
10084 else
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10090 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10091 then
10092 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10093 ac_gphoto2_libs=""
10094 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10096 case "$i" in
10097 -L/usr/lib|-L/usr/lib64) ;;
10098 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10099 esac
10100 done
10101 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10103 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10104 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10105 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10107 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10108 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10109 $as_echo_n "(cached) " >&6
10110 else
10111 ac_check_lib_save_LIBS=$LIBS
10112 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10116 /* Override any GCC internal prototype to avoid an error.
10117 Use char because int might match the return type of a GCC
10118 builtin and then its argument prototype would still apply. */
10119 #ifdef __cplusplus
10120 extern "C"
10121 #endif
10122 char gp_camera_new ();
10124 main ()
10126 return gp_camera_new ();
10128 return 0;
10130 _ACEOF
10131 if ac_fn_c_try_link "$LINENO"; then :
10132 ac_cv_lib_gphoto2_gp_camera_new=yes
10133 else
10134 ac_cv_lib_gphoto2_gp_camera_new=no
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10141 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10142 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10144 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10146 GPHOTO2LIBS="$ac_gphoto2_libs"
10148 GPHOTO2INCL="$ac_gphoto2_incl"
10155 CPPFLAGS="$ac_save_CPPFLAGS"
10157 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10158 case "x$with_gphoto" in
10159 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10160 xno) ;;
10161 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10162 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10163 esac
10167 if test "$ac_cv_header_resolv_h" = "yes"
10168 then
10169 ac_save_LIBS="$LIBS"
10170 for lib in '' -lresolv
10172 LIBS="$lib $ac_save_LIBS"
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175 #ifdef HAVE_NETINET_IN_H
10176 #include <netinet/in.h>
10177 #endif
10178 #include <resolv.h>
10180 main ()
10182 res_query("foo",ns_c_in,0,0,0);
10184 return 0;
10186 _ACEOF
10187 if ac_fn_c_try_link "$LINENO"; then :
10189 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10191 RESOLVLIBS="$lib"
10194 rm -f core conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext conftest.$ac_ext
10196 if test "${RESOLVLIBS+set}" = set; then
10197 break
10199 done
10200 LIBS="$ac_save_LIBS"
10203 LCMSLIBS=""
10205 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10206 then
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10208 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10209 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10210 $as_echo_n "(cached) " >&6
10211 else
10212 ac_check_lib_save_LIBS=$LIBS
10213 LIBS="-llcms $LIBS"
10214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10215 /* end confdefs.h. */
10217 /* Override any GCC internal prototype to avoid an error.
10218 Use char because int might match the return type of a GCC
10219 builtin and then its argument prototype would still apply. */
10220 #ifdef __cplusplus
10221 extern "C"
10222 #endif
10223 char cmsOpenProfileFromFile ();
10225 main ()
10227 return cmsOpenProfileFromFile ();
10229 return 0;
10231 _ACEOF
10232 if ac_fn_c_try_link "$LINENO"; then :
10233 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10234 else
10235 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10237 rm -f core conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239 LIBS=$ac_check_lib_save_LIBS
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10242 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10243 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10245 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10247 LCMSLIBS="-llcms"
10251 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10252 case "x$with_cms" in
10253 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10254 xno) ;;
10255 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10256 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10257 esac
10260 if test "x$with_freetype" != "xno"
10261 then
10262 for ac_prog in freetype-config freetype2-config
10264 # Extract the first word of "$ac_prog", so it can be a program name with args.
10265 set dummy $ac_prog; ac_word=$2
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10267 $as_echo_n "checking for $ac_word... " >&6; }
10268 if ${ac_cv_prog_ft_devel+:} false; then :
10269 $as_echo_n "(cached) " >&6
10270 else
10271 if test -n "$ft_devel"; then
10272 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10273 else
10274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275 for as_dir in $PATH
10277 IFS=$as_save_IFS
10278 test -z "$as_dir" && as_dir=.
10279 for ac_exec_ext in '' $ac_executable_extensions; do
10280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10281 ac_cv_prog_ft_devel="$ac_prog"
10282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10283 break 2
10285 done
10286 done
10287 IFS=$as_save_IFS
10291 ft_devel=$ac_cv_prog_ft_devel
10292 if test -n "$ft_devel"; then
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10294 $as_echo "$ft_devel" >&6; }
10295 else
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10297 $as_echo "no" >&6; }
10301 test -n "$ft_devel" && break
10302 done
10303 test -n "$ft_devel" || ft_devel="no"
10305 if test "$ft_devel" != "no"
10306 then
10307 ac_freetype_incl=`$ft_devel --cflags`
10308 ac_freetype_libs=`$ft_devel --libs`
10310 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10312 $as_echo_n "checking for -lfreetype... " >&6; }
10313 if ${ac_cv_lib_soname_freetype+:} false; then :
10314 $as_echo_n "(cached) " >&6
10315 else
10316 ac_check_soname_save_LIBS=$LIBS
10317 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10321 /* Override any GCC internal prototype to avoid an error.
10322 Use char because int might match the return type of a GCC
10323 builtin and then its argument prototype would still apply. */
10324 #ifdef __cplusplus
10325 extern "C"
10326 #endif
10327 char FT_Init_FreeType ();
10329 main ()
10331 return FT_Init_FreeType ();
10333 return 0;
10335 _ACEOF
10336 if ac_fn_c_try_link "$LINENO"; then :
10337 case "$LIBEXT" in
10338 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10339 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'` ;;
10340 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10341 esac
10343 rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10345 LIBS=$ac_check_soname_save_LIBS
10347 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10349 $as_echo "not found" >&6; }
10350 ft_lib=no
10351 else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10353 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10355 cat >>confdefs.h <<_ACEOF
10356 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10357 _ACEOF
10359 ft_lib=yes
10361 if test "$ft_lib" = "yes"
10362 then
10363 ac_save_CPPFLAGS="$CPPFLAGS"
10364 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10365 for ac_header in ft2build.h \
10366 freetype/freetype.h \
10367 freetype/ftglyph.h \
10368 freetype/fttypes.h \
10369 freetype/tttables.h \
10370 freetype/ftsnames.h \
10371 freetype/ttnameid.h \
10372 freetype/ftoutln.h \
10373 freetype/ftwinfnt.h \
10374 freetype/ftmodapi.h \
10375 freetype/ftlcdfil.h
10376 do :
10377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10378 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10379 # include <ft2build.h>
10380 #endif
10382 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10383 cat >>confdefs.h <<_ACEOF
10384 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10385 _ACEOF
10389 done
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10393 #include <ft2build.h>
10394 #include <freetype/fttrigon.h>
10395 _ACEOF
10396 if ac_fn_c_try_cpp "$LINENO"; then :
10398 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10400 wine_cv_fttrigon=yes
10401 else
10402 wine_cv_fttrigon=no
10404 rm -f conftest.err conftest.i conftest.$ac_ext
10405 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10407 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10409 cat >>confdefs.h <<_ACEOF
10410 #define HAVE_FT_TRUETYPEENGINETYPE 1
10411 _ACEOF
10416 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10417 then
10419 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10421 FREETYPELIBS="$ac_freetype_libs"
10423 FREETYPEINCL="$ac_freetype_incl"
10428 if test "x$FREETYPELIBS" = "x"; then :
10429 case "x$with_freetype" in
10430 xno) ;;
10431 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10432 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10433 esac
10435 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10438 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10439 if ${ac_cv_c_ppdev+:} false; then :
10440 $as_echo_n "(cached) " >&6
10441 else
10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443 /* end confdefs.h. */
10444 #ifdef HAVE_SYS_IOCTL_H
10445 # include <sys/ioctl.h>
10446 #endif
10447 #include <linux/ppdev.h>
10449 main ()
10451 ioctl (1,PPCLAIM,0)
10453 return 0;
10455 _ACEOF
10456 if ac_fn_c_try_compile "$LINENO"; then :
10457 ac_cv_c_ppdev="yes"
10458 else
10459 ac_cv_c_ppdev="no"
10461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10464 $as_echo "$ac_cv_c_ppdev" >&6; }
10465 if test "$ac_cv_c_ppdev" = "yes"
10466 then
10468 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10472 ac_wine_check_funcs_save_LIBS="$LIBS"
10473 LIBS="$LIBS $LIBPTHREAD"
10474 for ac_func in \
10475 pthread_attr_get_np \
10476 pthread_getattr_np \
10477 pthread_get_stackaddr_np \
10478 pthread_get_stacksize_np
10479 do :
10480 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10481 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10482 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10483 cat >>confdefs.h <<_ACEOF
10484 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10485 _ACEOF
10488 done
10490 LIBS="$ac_wine_check_funcs_save_LIBS"
10492 if test "$ac_cv_header_zlib_h" = "yes"
10493 then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10495 $as_echo_n "checking for inflate in -lz... " >&6; }
10496 if ${ac_cv_lib_z_inflate+:} false; then :
10497 $as_echo_n "(cached) " >&6
10498 else
10499 ac_check_lib_save_LIBS=$LIBS
10500 LIBS="-lz $LIBS"
10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h. */
10504 /* Override any GCC internal prototype to avoid an error.
10505 Use char because int might match the return type of a GCC
10506 builtin and then its argument prototype would still apply. */
10507 #ifdef __cplusplus
10508 extern "C"
10509 #endif
10510 char inflate ();
10512 main ()
10514 return inflate ();
10516 return 0;
10518 _ACEOF
10519 if ac_fn_c_try_link "$LINENO"; then :
10520 ac_cv_lib_z_inflate=yes
10521 else
10522 ac_cv_lib_z_inflate=no
10524 rm -f core conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
10526 LIBS=$ac_check_lib_save_LIBS
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10529 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10530 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10532 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10534 ZLIB="-lz"
10539 if test "x$ZLIB" = "x"; then :
10540 case "x$with_zlib" in
10541 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10542 xno) ;;
10543 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10544 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10545 esac
10548 if test "x$enable_tools" != xno
10549 then
10550 if test "$ac_cv_header_gettext_po_h" = "yes"
10551 then
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10553 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10554 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10555 $as_echo_n "(cached) " >&6
10556 else
10557 ac_check_lib_save_LIBS=$LIBS
10558 LIBS="-lgettextpo $LIBS"
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10562 /* Override any GCC internal prototype to avoid an error.
10563 Use char because int might match the return type of a GCC
10564 builtin and then its argument prototype would still apply. */
10565 #ifdef __cplusplus
10566 extern "C"
10567 #endif
10568 char po_message_msgctxt ();
10570 main ()
10572 return po_message_msgctxt ();
10574 return 0;
10576 _ACEOF
10577 if ac_fn_c_try_link "$LINENO"; then :
10578 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10579 else
10580 ac_cv_lib_gettextpo_po_message_msgctxt=no
10582 rm -f core conftest.err conftest.$ac_objext \
10583 conftest$ac_exeext conftest.$ac_ext
10584 LIBS=$ac_check_lib_save_LIBS
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10587 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10588 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10590 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10592 LIBGETTEXTPO="-lgettextpo"
10597 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10598 case "x$with_gettextpo" in
10599 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10600 xno) ;;
10601 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10602 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10603 esac
10607 if test "x$with_gstreamer" != "xno"
10608 then
10609 ac_save_CPPFLAGS="$CPPFLAGS"
10610 if test "$PKG_CONFIG" != "false"; then
10611 ac_gst_incl=""
10612 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10614 case "$i" in
10615 -I*) ac_gst_incl="$ac_gst_incl $i";;
10616 esac
10617 done
10618 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10619 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10620 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10621 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10622 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10623 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10625 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628 #include <gst/app/gstappsink.h>
10630 main ()
10632 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10634 return 0;
10636 _ACEOF
10637 if ac_fn_c_try_compile "$LINENO"; then :
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10639 $as_echo "yes" >&6; }
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10641 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10642 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645 ac_check_lib_save_LIBS=$LIBS
10646 LIBS="-lgstreamer-0.10 $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 gst_pad_get_caps_reffed ();
10658 main ()
10660 return gst_pad_get_caps_reffed ();
10662 return 0;
10664 _ACEOF
10665 if ac_fn_c_try_link "$LINENO"; then :
10666 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10667 else
10668 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=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_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10675 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10676 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10678 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10679 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10680 $as_echo_n "(cached) " >&6
10681 else
10682 ac_check_lib_save_LIBS=$LIBS
10683 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10687 /* Override any GCC internal prototype to avoid an error.
10688 Use char because int might match the return type of a GCC
10689 builtin and then its argument prototype would still apply. */
10690 #ifdef __cplusplus
10691 extern "C"
10692 #endif
10693 char gst_app_buffer_new ();
10695 main ()
10697 return gst_app_buffer_new ();
10699 return 0;
10701 _ACEOF
10702 if ac_fn_c_try_link "$LINENO"; then :
10703 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10704 else
10705 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10707 rm -f core conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext conftest.$ac_ext
10709 LIBS=$ac_check_lib_save_LIBS
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10712 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10713 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10714 GSTREAMER_LIBS="$ac_gst_libs"
10716 GSTREAMER_INCL="$ac_gst_incl"
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10734 CPPFLAGS="$ac_save_CPPFLAGS"
10736 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10737 case "x$with_gstreamer" in
10738 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10739 xno) ;;
10740 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10741 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10742 esac
10744 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10746 ALSALIBS=""
10748 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10749 then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10751 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10752 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10753 $as_echo_n "(cached) " >&6
10754 else
10755 ac_check_lib_save_LIBS=$LIBS
10756 LIBS="-lasound $LIBS"
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10760 /* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10763 #ifdef __cplusplus
10764 extern "C"
10765 #endif
10766 char snd_pcm_hw_params_get_access_mask ();
10768 main ()
10770 return snd_pcm_hw_params_get_access_mask ();
10772 return 0;
10774 _ACEOF
10775 if ac_fn_c_try_link "$LINENO"; then :
10776 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10777 else
10778 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10780 rm -f core conftest.err conftest.$ac_objext \
10781 conftest$ac_exeext conftest.$ac_ext
10782 LIBS=$ac_check_lib_save_LIBS
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10785 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10786 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10789 #ifdef HAVE_ALSA_ASOUNDLIB_H
10790 #include <alsa/asoundlib.h>
10791 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10792 #include <sys/asoundlib.h>
10793 #endif
10795 main ()
10797 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10799 return 0;
10801 _ACEOF
10802 if ac_fn_c_try_compile "$LINENO"; then :
10803 ALSALIBS="-lasound"
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10810 if test "x$with_oss" != xno
10811 then
10812 ac_save_CPPFLAGS="$CPPFLAGS"
10813 if test -f /etc/oss.conf
10814 then
10815 . /etc/oss.conf
10817 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10818 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10819 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10820 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10821 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10823 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10825 cat >>confdefs.h <<_ACEOF
10826 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10827 _ACEOF
10829 OSS4INCL="$ac_oss_incl"
10836 CPPFLAGS="$ac_save_CPPFLAGS"
10837 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10838 then
10839 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10844 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10845 then
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10847 $as_echo_n "checking for -lcapi20... " >&6; }
10848 if ${ac_cv_lib_soname_capi20+:} false; then :
10849 $as_echo_n "(cached) " >&6
10850 else
10851 ac_check_soname_save_LIBS=$LIBS
10852 LIBS="-lcapi20 $LIBS"
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10856 /* Override any GCC internal prototype to avoid an error.
10857 Use char because int might match the return type of a GCC
10858 builtin and then its argument prototype would still apply. */
10859 #ifdef __cplusplus
10860 extern "C"
10861 #endif
10862 char capi20_register ();
10864 main ()
10866 return capi20_register ();
10868 return 0;
10870 _ACEOF
10871 if ac_fn_c_try_link "$LINENO"; then :
10872 case "$LIBEXT" in
10873 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10874 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'` ;;
10875 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10876 esac
10878 rm -f core conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
10880 LIBS=$ac_check_soname_save_LIBS
10882 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10884 $as_echo "not found" >&6; }
10886 else
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10888 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10890 cat >>confdefs.h <<_ACEOF
10891 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10892 _ACEOF
10897 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10898 case "x$with_capi" in
10899 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10900 xno) ;;
10901 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10902 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10903 esac
10906 CUPSINCL=""
10908 if test "x$with_cups" != "xno"
10909 then
10910 ac_save_CPPFLAGS="$CPPFLAGS"
10911 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10912 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10913 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10914 for ac_header in cups/cups.h
10915 do :
10916 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10917 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
10918 cat >>confdefs.h <<_ACEOF
10919 #define HAVE_CUPS_CUPS_H 1
10920 _ACEOF
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10922 $as_echo_n "checking for -lcups... " >&6; }
10923 if ${ac_cv_lib_soname_cups+:} false; then :
10924 $as_echo_n "(cached) " >&6
10925 else
10926 ac_check_soname_save_LIBS=$LIBS
10927 LIBS="-lcups $ac_cups_libs $LIBS"
10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 /* end confdefs.h. */
10931 /* Override any GCC internal prototype to avoid an error.
10932 Use char because int might match the return type of a GCC
10933 builtin and then its argument prototype would still apply. */
10934 #ifdef __cplusplus
10935 extern "C"
10936 #endif
10937 char cupsGetDefault ();
10939 main ()
10941 return cupsGetDefault ();
10943 return 0;
10945 _ACEOF
10946 if ac_fn_c_try_link "$LINENO"; then :
10947 case "$LIBEXT" in
10948 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10949 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'` ;;
10950 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10951 esac
10953 rm -f core conftest.err conftest.$ac_objext \
10954 conftest$ac_exeext conftest.$ac_ext
10955 LIBS=$ac_check_soname_save_LIBS
10957 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10959 $as_echo "not found" >&6; }
10961 else
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10963 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10965 cat >>confdefs.h <<_ACEOF
10966 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10967 _ACEOF
10969 CUPSINCL="$ac_cups_cflags"
10973 done
10975 CPPFLAGS="$ac_save_CPPFLAGS"
10977 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10978 case "x$with_cups" in
10979 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10980 xno) ;;
10981 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
10982 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10983 esac
10986 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10987 then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10989 $as_echo_n "checking for -lfontconfig... " >&6; }
10990 if ${ac_cv_lib_soname_fontconfig+:} false; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 ac_check_soname_save_LIBS=$LIBS
10994 LIBS="-lfontconfig $LIBS"
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10998 /* Override any GCC internal prototype to avoid an error.
10999 Use char because int might match the return type of a GCC
11000 builtin and then its argument prototype would still apply. */
11001 #ifdef __cplusplus
11002 extern "C"
11003 #endif
11004 char FcInit ();
11006 main ()
11008 return FcInit ();
11010 return 0;
11012 _ACEOF
11013 if ac_fn_c_try_link "$LINENO"; then :
11014 case "$LIBEXT" in
11015 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11016 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'` ;;
11017 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11018 esac
11020 rm -f core conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_soname_save_LIBS
11024 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11026 $as_echo "not found" >&6; }
11028 else
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11030 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11032 cat >>confdefs.h <<_ACEOF
11033 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11034 _ACEOF
11038 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11039 then
11040 ac_save_CPPFLAGS="$CPPFLAGS"
11041 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11042 $as_unset ac_cv_header_fontconfig_fontconfig_h
11043 for ac_header in fontconfig/fontconfig.h
11044 do :
11045 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11046 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11047 cat >>confdefs.h <<_ACEOF
11048 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11049 _ACEOF
11053 done
11055 CPPFLAGS="$ac_save_CPPFLAGS"
11056 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11057 then
11058 FONTCONFIGINCL="$X_CFLAGS"
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11061 $as_echo_n "checking for -lfontconfig... " >&6; }
11062 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11063 $as_echo_n "(cached) " >&6
11064 else
11065 ac_check_soname_save_LIBS=$LIBS
11066 LIBS="-lfontconfig $X_LIBS $LIBS"
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11070 /* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11073 #ifdef __cplusplus
11074 extern "C"
11075 #endif
11076 char FcInit ();
11078 main ()
11080 return FcInit ();
11082 return 0;
11084 _ACEOF
11085 if ac_fn_c_try_link "$LINENO"; then :
11086 case "$LIBEXT" in
11087 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11088 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'` ;;
11089 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11090 esac
11092 rm -f core conftest.err conftest.$ac_objext \
11093 conftest$ac_exeext conftest.$ac_ext
11094 LIBS=$ac_check_soname_save_LIBS
11096 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11098 $as_echo "not found" >&6; }
11100 else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11102 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11104 cat >>confdefs.h <<_ACEOF
11105 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11106 _ACEOF
11112 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11113 case "x$with_fontconfig" in
11114 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11115 xno) ;;
11116 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11117 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11118 esac
11121 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11122 then
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11124 $as_echo_n "checking for -lssl... " >&6; }
11125 if ${ac_cv_lib_soname_ssl+:} false; then :
11126 $as_echo_n "(cached) " >&6
11127 else
11128 ac_check_soname_save_LIBS=$LIBS
11129 LIBS="-lssl $LIBS"
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11133 /* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
11136 #ifdef __cplusplus
11137 extern "C"
11138 #endif
11139 char SSL_library_init ();
11141 main ()
11143 return SSL_library_init ();
11145 return 0;
11147 _ACEOF
11148 if ac_fn_c_try_link "$LINENO"; then :
11149 case "$LIBEXT" in
11150 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11151 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'` ;;
11152 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11153 esac
11155 rm -f core conftest.err conftest.$ac_objext \
11156 conftest$ac_exeext conftest.$ac_ext
11157 LIBS=$ac_check_soname_save_LIBS
11159 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11161 $as_echo "not found" >&6; }
11163 else
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11165 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11167 cat >>confdefs.h <<_ACEOF
11168 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11169 _ACEOF
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11174 $as_echo_n "checking for -lcrypto... " >&6; }
11175 if ${ac_cv_lib_soname_crypto+:} false; then :
11176 $as_echo_n "(cached) " >&6
11177 else
11178 ac_check_soname_save_LIBS=$LIBS
11179 LIBS="-lcrypto $LIBS"
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11183 /* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
11186 #ifdef __cplusplus
11187 extern "C"
11188 #endif
11189 char BIO_new_socket ();
11191 main ()
11193 return BIO_new_socket ();
11195 return 0;
11197 _ACEOF
11198 if ac_fn_c_try_link "$LINENO"; then :
11199 case "$LIBEXT" in
11200 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11201 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'` ;;
11202 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11203 esac
11205 rm -f core conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11207 LIBS=$ac_check_soname_save_LIBS
11209 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11211 $as_echo "not found" >&6; }
11213 else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11215 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11217 cat >>confdefs.h <<_ACEOF
11218 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11219 _ACEOF
11224 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11225 case "x$with_openssl" in
11226 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11227 xno) ;;
11228 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11229 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11230 esac
11233 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11234 then
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11236 $as_echo_n "checking for -lgsm... " >&6; }
11237 if ${ac_cv_lib_soname_gsm+:} false; then :
11238 $as_echo_n "(cached) " >&6
11239 else
11240 ac_check_soname_save_LIBS=$LIBS
11241 LIBS="-lgsm $LIBS"
11242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h. */
11245 /* Override any GCC internal prototype to avoid an error.
11246 Use char because int might match the return type of a GCC
11247 builtin and then its argument prototype would still apply. */
11248 #ifdef __cplusplus
11249 extern "C"
11250 #endif
11251 char gsm_create ();
11253 main ()
11255 return gsm_create ();
11257 return 0;
11259 _ACEOF
11260 if ac_fn_c_try_link "$LINENO"; then :
11261 case "$LIBEXT" in
11262 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11263 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'` ;;
11264 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11265 esac
11267 rm -f core conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11269 LIBS=$ac_check_soname_save_LIBS
11271 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11273 $as_echo "not found" >&6; }
11275 else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11277 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11279 cat >>confdefs.h <<_ACEOF
11280 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11281 _ACEOF
11286 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11287 case "x$with_gsm" in
11288 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11289 xno) ;;
11290 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11291 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11292 esac
11295 if test "$ac_cv_header_jpeglib_h" = "yes"
11296 then
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11298 $as_echo_n "checking for -ljpeg... " >&6; }
11299 if ${ac_cv_lib_soname_jpeg+:} false; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11302 ac_check_soname_save_LIBS=$LIBS
11303 LIBS="-ljpeg $LIBS"
11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11307 /* Override any GCC internal prototype to avoid an error.
11308 Use char because int might match the return type of a GCC
11309 builtin and then its argument prototype would still apply. */
11310 #ifdef __cplusplus
11311 extern "C"
11312 #endif
11313 char jpeg_start_decompress ();
11315 main ()
11317 return jpeg_start_decompress ();
11319 return 0;
11321 _ACEOF
11322 if ac_fn_c_try_link "$LINENO"; then :
11323 case "$LIBEXT" in
11324 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11325 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'` ;;
11326 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11327 esac
11329 rm -f core conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11331 LIBS=$ac_check_soname_save_LIBS
11333 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11335 $as_echo "not found" >&6; }
11337 else
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11339 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11341 cat >>confdefs.h <<_ACEOF
11342 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11343 _ACEOF
11348 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11349 case "x$with_jpeg" in
11350 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11351 xno) ;;
11352 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11353 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11354 esac
11357 if test "$ac_cv_header_png_h" = "yes"
11358 then
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11360 $as_echo_n "checking for -lpng... " >&6; }
11361 if ${ac_cv_lib_soname_png+:} false; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11364 ac_check_soname_save_LIBS=$LIBS
11365 LIBS="-lpng -lm -lz $LIBS"
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11369 /* Override any GCC internal prototype to avoid an error.
11370 Use char because int might match the return type of a GCC
11371 builtin and then its argument prototype would still apply. */
11372 #ifdef __cplusplus
11373 extern "C"
11374 #endif
11375 char png_create_read_struct ();
11377 main ()
11379 return png_create_read_struct ();
11381 return 0;
11383 _ACEOF
11384 if ac_fn_c_try_link "$LINENO"; then :
11385 case "$LIBEXT" in
11386 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11387 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'` ;;
11388 *) 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'` ;;
11389 esac
11391 rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext conftest.$ac_ext
11393 LIBS=$ac_check_soname_save_LIBS
11395 if test "x$ac_cv_lib_soname_png" = "x"; then :
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11397 $as_echo "not found" >&6; }
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11401 $as_echo "$ac_cv_lib_soname_png" >&6; }
11403 cat >>confdefs.h <<_ACEOF
11404 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11405 _ACEOF
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11410 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11411 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11412 $as_echo_n "(cached) " >&6
11413 else
11414 ac_check_lib_save_LIBS=$LIBS
11415 LIBS="-lpng -lm -lz $LIBS"
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11419 /* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11422 #ifdef __cplusplus
11423 extern "C"
11424 #endif
11425 char png_set_expand_gray_1_2_4_to_8 ();
11427 main ()
11429 return png_set_expand_gray_1_2_4_to_8 ();
11431 return 0;
11433 _ACEOF
11434 if ac_fn_c_try_link "$LINENO"; then :
11435 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11436 else
11437 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11439 rm -f core conftest.err conftest.$ac_objext \
11440 conftest$ac_exeext conftest.$ac_ext
11441 LIBS=$ac_check_lib_save_LIBS
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11444 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11445 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11447 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11452 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11453 then
11454 ac_save_CPPFLAGS="$CPPFLAGS"
11455 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11456 $as_unset ac_cv_header_png_h
11457 for ac_header in png.h
11458 do :
11459 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11460 if test "x$ac_cv_header_png_h" = xyes; then :
11461 cat >>confdefs.h <<_ACEOF
11462 #define HAVE_PNG_H 1
11463 _ACEOF
11467 done
11469 CPPFLAGS="$ac_save_CPPFLAGS"
11470 if test "$ac_cv_header_png_h" = "yes"
11471 then
11472 PNGINCL="$X_CFLAGS"
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11475 $as_echo_n "checking for -lpng... " >&6; }
11476 if ${ac_cv_lib_soname_png+:} false; then :
11477 $as_echo_n "(cached) " >&6
11478 else
11479 ac_check_soname_save_LIBS=$LIBS
11480 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11484 /* Override any GCC internal prototype to avoid an error.
11485 Use char because int might match the return type of a GCC
11486 builtin and then its argument prototype would still apply. */
11487 #ifdef __cplusplus
11488 extern "C"
11489 #endif
11490 char png_create_read_struct ();
11492 main ()
11494 return png_create_read_struct ();
11496 return 0;
11498 _ACEOF
11499 if ac_fn_c_try_link "$LINENO"; then :
11500 case "$LIBEXT" in
11501 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11502 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'` ;;
11503 *) 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'` ;;
11504 esac
11506 rm -f core conftest.err conftest.$ac_objext \
11507 conftest$ac_exeext conftest.$ac_ext
11508 LIBS=$ac_check_soname_save_LIBS
11510 if test "x$ac_cv_lib_soname_png" = "x"; then :
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11512 $as_echo "not found" >&6; }
11514 else
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11516 $as_echo "$ac_cv_lib_soname_png" >&6; }
11518 cat >>confdefs.h <<_ACEOF
11519 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11520 _ACEOF
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11525 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11526 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11527 $as_echo_n "(cached) " >&6
11528 else
11529 ac_check_lib_save_LIBS=$LIBS
11530 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532 /* end confdefs.h. */
11534 /* Override any GCC internal prototype to avoid an error.
11535 Use char because int might match the return type of a GCC
11536 builtin and then its argument prototype would still apply. */
11537 #ifdef __cplusplus
11538 extern "C"
11539 #endif
11540 char png_set_expand_gray_1_2_4_to_8 ();
11542 main ()
11544 return png_set_expand_gray_1_2_4_to_8 ();
11546 return 0;
11548 _ACEOF
11549 if ac_fn_c_try_link "$LINENO"; then :
11550 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11551 else
11552 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11554 rm -f core conftest.err conftest.$ac_objext \
11555 conftest$ac_exeext conftest.$ac_ext
11556 LIBS=$ac_check_lib_save_LIBS
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11559 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11560 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11561 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11567 if test "x$ac_cv_lib_soname_png" = "x"; then :
11568 case "x$with_png" in
11569 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11570 xno) ;;
11571 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11572 This is an error since --with-png was requested." "$LINENO" 5 ;;
11573 esac
11576 if test "$ac_cv_header_tiffio_h" = "yes"
11577 then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11579 $as_echo_n "checking for -ltiff... " >&6; }
11580 if ${ac_cv_lib_soname_tiff+:} false; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 ac_check_soname_save_LIBS=$LIBS
11584 LIBS="-ltiff $LIBS"
11585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11588 /* Override any GCC internal prototype to avoid an error.
11589 Use char because int might match the return type of a GCC
11590 builtin and then its argument prototype would still apply. */
11591 #ifdef __cplusplus
11592 extern "C"
11593 #endif
11594 char TIFFClientOpen ();
11596 main ()
11598 return TIFFClientOpen ();
11600 return 0;
11602 _ACEOF
11603 if ac_fn_c_try_link "$LINENO"; then :
11604 case "$LIBEXT" in
11605 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11606 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'` ;;
11607 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11608 esac
11610 rm -f core conftest.err conftest.$ac_objext \
11611 conftest$ac_exeext conftest.$ac_ext
11612 LIBS=$ac_check_soname_save_LIBS
11614 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11616 $as_echo "not found" >&6; }
11618 else
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11620 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11622 cat >>confdefs.h <<_ACEOF
11623 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11624 _ACEOF
11629 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11630 case "x$with_tiff" in
11631 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11632 xno) ;;
11633 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11634 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11635 esac
11638 if test "$ac_cv_header_mpg123_h" = "yes"
11639 then
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11641 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11642 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 ac_check_lib_save_LIBS=$LIBS
11646 LIBS="-lmpg123 $LIBS"
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11650 /* Override any GCC internal prototype to avoid an error.
11651 Use char because int might match the return type of a GCC
11652 builtin and then its argument prototype would still apply. */
11653 #ifdef __cplusplus
11654 extern "C"
11655 #endif
11656 char mpg123_feed ();
11658 main ()
11660 return mpg123_feed ();
11662 return 0;
11664 _ACEOF
11665 if ac_fn_c_try_link "$LINENO"; then :
11666 ac_cv_lib_mpg123_mpg123_feed=yes
11667 else
11668 ac_cv_lib_mpg123_mpg123_feed=no
11670 rm -f core conftest.err conftest.$ac_objext \
11671 conftest$ac_exeext conftest.$ac_ext
11672 LIBS=$ac_check_lib_save_LIBS
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11675 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11676 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11677 LIBMPG123="-lmpg123"
11682 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11683 case "x$with_mpg123" in
11684 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11685 xno) ;;
11686 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11687 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11688 esac
11690 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}
11692 if test "$ac_cv_header_AL_al_h" = "yes"
11693 then
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11695 $as_echo_n "checking for -lopenal... " >&6; }
11696 if ${ac_cv_lib_soname_openal+:} false; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 ac_check_soname_save_LIBS=$LIBS
11700 LIBS="-lopenal $LIBS"
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11704 /* Override any GCC internal prototype to avoid an error.
11705 Use char because int might match the return type of a GCC
11706 builtin and then its argument prototype would still apply. */
11707 #ifdef __cplusplus
11708 extern "C"
11709 #endif
11710 char alGetSource3i ();
11712 main ()
11714 return alGetSource3i ();
11716 return 0;
11718 _ACEOF
11719 if ac_fn_c_try_link "$LINENO"; then :
11720 case "$LIBEXT" in
11721 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11722 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'` ;;
11723 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11724 esac
11726 rm -f core conftest.err conftest.$ac_objext \
11727 conftest$ac_exeext conftest.$ac_ext
11728 LIBS=$ac_check_soname_save_LIBS
11730 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11732 $as_echo "not found" >&6; }
11734 else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11736 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11738 cat >>confdefs.h <<_ACEOF
11739 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11740 _ACEOF
11742 LIBOPENAL="-lopenal"
11744 ac_cv_lib_openal=yes
11746 cat >>confdefs.h <<_ACEOF
11747 #define HAVE_OPENAL 1
11748 _ACEOF
11752 if test "x$ac_cv_lib_openal" != xyes; then :
11753 case "x$with_openal" in
11754 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11755 xno) ;;
11756 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11757 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11758 esac
11760 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11762 if test "$ac_cv_header_kstat_h" = "yes"
11763 then
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11765 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11766 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11767 $as_echo_n "(cached) " >&6
11768 else
11769 ac_check_lib_save_LIBS=$LIBS
11770 LIBS="-lkstat $LIBS"
11771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11772 /* end confdefs.h. */
11774 /* Override any GCC internal prototype to avoid an error.
11775 Use char because int might match the return type of a GCC
11776 builtin and then its argument prototype would still apply. */
11777 #ifdef __cplusplus
11778 extern "C"
11779 #endif
11780 char kstat_open ();
11782 main ()
11784 return kstat_open ();
11786 return 0;
11788 _ACEOF
11789 if ac_fn_c_try_link "$LINENO"; then :
11790 ac_cv_lib_kstat_kstat_open=yes
11791 else
11792 ac_cv_lib_kstat_kstat_open=no
11794 rm -f core conftest.err conftest.$ac_objext \
11795 conftest$ac_exeext conftest.$ac_ext
11796 LIBS=$ac_check_lib_save_LIBS
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11799 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11800 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11802 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11804 LIBKSTAT="-lkstat"
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11811 $as_echo_n "checking for -lodbc... " >&6; }
11812 if ${ac_cv_lib_soname_odbc+:} false; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815 ac_check_soname_save_LIBS=$LIBS
11816 LIBS="-lodbc $LIBS"
11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h. */
11820 /* Override any GCC internal prototype to avoid an error.
11821 Use char because int might match the return type of a GCC
11822 builtin and then its argument prototype would still apply. */
11823 #ifdef __cplusplus
11824 extern "C"
11825 #endif
11826 char SQLConnect ();
11828 main ()
11830 return SQLConnect ();
11832 return 0;
11834 _ACEOF
11835 if ac_fn_c_try_link "$LINENO"; then :
11836 case "$LIBEXT" in
11837 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11838 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'` ;;
11839 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11840 esac
11842 rm -f core conftest.err conftest.$ac_objext \
11843 conftest$ac_exeext conftest.$ac_ext
11844 LIBS=$ac_check_soname_save_LIBS
11846 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11848 $as_echo "not found" >&6; }
11849 cat >>confdefs.h <<_ACEOF
11850 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11851 _ACEOF
11853 else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11855 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11857 cat >>confdefs.h <<_ACEOF
11858 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11859 _ACEOF
11864 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11865 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
11866 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
11867 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11869 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
11870 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
11871 "x$with_alsa$with_coreaudio$with_oss" != xnonono
11872 then
11873 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11877 EXTRACFLAGS=""
11879 if test "x${GCC}" = "xyes"
11880 then
11881 EXTRACFLAGS="-Wall -pipe"
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11884 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11885 if ${ac_cv_c_gcc_strength_bug+:} false; then :
11886 $as_echo_n "(cached) " >&6
11887 else
11888 if test "$cross_compiling" = yes; then :
11889 ac_cv_c_gcc_strength_bug="yes"
11890 else
11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h. */
11893 int L[4] = {0,1,2,3};
11895 main ()
11897 static int Array[3];
11898 unsigned int B = 3;
11899 int i;
11900 for(i=0; i<B; i++) Array[i] = i - 3;
11901 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11902 L[i] = 4;
11903 return (Array[1] != -2 || L[2] != 3)
11905 return 0;
11907 _ACEOF
11908 if ac_fn_c_try_run "$LINENO"; then :
11909 ac_cv_c_gcc_strength_bug="no"
11910 else
11911 ac_cv_c_gcc_strength_bug="yes"
11913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11914 conftest.$ac_objext conftest.beam conftest.$ac_ext
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11919 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11920 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11921 then
11922 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11926 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11927 if ${ac_cv_cflags__fno_builtin+:} false; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 ac_wine_try_cflags_saved=$CFLAGS
11931 CFLAGS="$CFLAGS -fno-builtin"
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11934 int main(int argc, char **argv) { return 0; }
11935 _ACEOF
11936 if ac_fn_c_try_link "$LINENO"; then :
11937 ac_cv_cflags__fno_builtin=yes
11938 else
11939 ac_cv_cflags__fno_builtin=no
11941 rm -f core conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
11943 CFLAGS=$ac_wine_try_cflags_saved
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11946 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11947 if test $ac_cv_cflags__fno_builtin = yes; then :
11948 BUILTINFLAG="-fno-builtin"
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11952 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11953 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
11954 $as_echo_n "(cached) " >&6
11955 else
11956 ac_wine_try_cflags_saved=$CFLAGS
11957 CFLAGS="$CFLAGS -fno-strict-aliasing"
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11960 int main(int argc, char **argv) { return 0; }
11961 _ACEOF
11962 if ac_fn_c_try_link "$LINENO"; then :
11963 ac_cv_cflags__fno_strict_aliasing=yes
11964 else
11965 ac_cv_cflags__fno_strict_aliasing=no
11967 rm -f core conftest.err conftest.$ac_objext \
11968 conftest$ac_exeext conftest.$ac_ext
11969 CFLAGS=$ac_wine_try_cflags_saved
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11972 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11973 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11974 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11977 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11978 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
11979 $as_echo_n "(cached) " >&6
11980 else
11981 ac_wine_try_cflags_saved=$CFLAGS
11982 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11985 int main(int argc, char **argv) { return 0; }
11986 _ACEOF
11987 if ac_fn_c_try_link "$LINENO"; then :
11988 ac_cv_cflags__Wdeclaration_after_statement=yes
11989 else
11990 ac_cv_cflags__Wdeclaration_after_statement=no
11992 rm -f core conftest.err conftest.$ac_objext \
11993 conftest$ac_exeext conftest.$ac_ext
11994 CFLAGS=$ac_wine_try_cflags_saved
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
11997 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
11998 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
11999 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12002 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12003 if ${ac_cv_cflags__Wempty_body+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 ac_wine_try_cflags_saved=$CFLAGS
12007 CFLAGS="$CFLAGS -Wempty-body"
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12010 int main(int argc, char **argv) { return 0; }
12011 _ACEOF
12012 if ac_fn_c_try_link "$LINENO"; then :
12013 ac_cv_cflags__Wempty_body=yes
12014 else
12015 ac_cv_cflags__Wempty_body=no
12017 rm -f core conftest.err conftest.$ac_objext \
12018 conftest$ac_exeext conftest.$ac_ext
12019 CFLAGS=$ac_wine_try_cflags_saved
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12022 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12023 if test $ac_cv_cflags__Wempty_body = yes; then :
12024 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12027 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12028 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12029 $as_echo_n "(cached) " >&6
12030 else
12031 ac_wine_try_cflags_saved=$CFLAGS
12032 CFLAGS="$CFLAGS -Wignored-qualifiers"
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12035 int main(int argc, char **argv) { return 0; }
12036 _ACEOF
12037 if ac_fn_c_try_link "$LINENO"; then :
12038 ac_cv_cflags__Wignored_qualifiers=yes
12039 else
12040 ac_cv_cflags__Wignored_qualifiers=no
12042 rm -f core conftest.err conftest.$ac_objext \
12043 conftest$ac_exeext conftest.$ac_ext
12044 CFLAGS=$ac_wine_try_cflags_saved
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12047 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12048 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12049 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12052 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12053 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 ac_wine_try_cflags_saved=$CFLAGS
12057 CFLAGS="$CFLAGS -Wstrict-prototypes"
12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12059 /* end confdefs.h. */
12060 int main(int argc, char **argv) { return 0; }
12061 _ACEOF
12062 if ac_fn_c_try_link "$LINENO"; then :
12063 ac_cv_cflags__Wstrict_prototypes=yes
12064 else
12065 ac_cv_cflags__Wstrict_prototypes=no
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12069 CFLAGS=$ac_wine_try_cflags_saved
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12072 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12073 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12074 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12077 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12078 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 ac_wine_try_cflags_saved=$CFLAGS
12082 CFLAGS="$CFLAGS -Wtype-limits"
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085 int main(int argc, char **argv) { return 0; }
12086 _ACEOF
12087 if ac_fn_c_try_link "$LINENO"; then :
12088 ac_cv_cflags__Wtype_limits=yes
12089 else
12090 ac_cv_cflags__Wtype_limits=no
12092 rm -f core conftest.err conftest.$ac_objext \
12093 conftest$ac_exeext conftest.$ac_ext
12094 CFLAGS=$ac_wine_try_cflags_saved
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12097 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12098 if test $ac_cv_cflags__Wtype_limits = yes; then :
12099 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12102 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12103 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12104 $as_echo_n "(cached) " >&6
12105 else
12106 ac_wine_try_cflags_saved=$CFLAGS
12107 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110 int main(int argc, char **argv) { return 0; }
12111 _ACEOF
12112 if ac_fn_c_try_link "$LINENO"; then :
12113 ac_cv_cflags__Wunused_but_set_parameter=yes
12114 else
12115 ac_cv_cflags__Wunused_but_set_parameter=no
12117 rm -f core conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
12119 CFLAGS=$ac_wine_try_cflags_saved
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12122 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12123 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12124 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12127 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12128 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 ac_wine_try_cflags_saved=$CFLAGS
12132 CFLAGS="$CFLAGS -Wwrite-strings"
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135 int main(int argc, char **argv) { return 0; }
12136 _ACEOF
12137 if ac_fn_c_try_link "$LINENO"; then :
12138 ac_cv_cflags__Wwrite_strings=yes
12139 else
12140 ac_cv_cflags__Wwrite_strings=no
12142 rm -f core conftest.err conftest.$ac_objext \
12143 conftest$ac_exeext conftest.$ac_ext
12144 CFLAGS=$ac_wine_try_cflags_saved
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12147 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12148 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12149 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12152 case $host_cpu in
12153 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12154 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12155 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 ac_wine_try_cflags_saved=$CFLAGS
12159 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12162 int main(int argc, char **argv) { return 0; }
12163 _ACEOF
12164 if ac_fn_c_try_link "$LINENO"; then :
12165 ac_cv_cflags__fno_omit_frame_pointer=yes
12166 else
12167 ac_cv_cflags__fno_omit_frame_pointer=no
12169 rm -f core conftest.err conftest.$ac_objext \
12170 conftest$ac_exeext conftest.$ac_ext
12171 CFLAGS=$ac_wine_try_cflags_saved
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12174 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12175 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12176 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12177 fi ;;
12178 esac
12180 case $host in
12181 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12182 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12183 if ${ac_cv_cflags__Wno_format+:} false; then :
12184 $as_echo_n "(cached) " >&6
12185 else
12186 ac_wine_try_cflags_saved=$CFLAGS
12187 CFLAGS="$CFLAGS -Wno-format"
12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12190 int main(int argc, char **argv) { return 0; }
12191 _ACEOF
12192 if ac_fn_c_try_link "$LINENO"; then :
12193 ac_cv_cflags__Wno_format=yes
12194 else
12195 ac_cv_cflags__Wno_format=no
12197 rm -f core conftest.err conftest.$ac_objext \
12198 conftest$ac_exeext conftest.$ac_ext
12199 CFLAGS=$ac_wine_try_cflags_saved
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12202 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12203 if test $ac_cv_cflags__Wno_format = yes; then :
12204 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12205 fi ;;
12206 esac
12208 saved_CFLAGS="$CFLAGS"
12209 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12211 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12212 if ${ac_cv_c_string_h_warnings+:} false; then :
12213 $as_echo_n "(cached) " >&6
12214 else
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12217 #include <string.h>
12219 main ()
12223 return 0;
12225 _ACEOF
12226 if ac_fn_c_try_compile "$LINENO"; then :
12227 ac_cv_c_string_h_warnings=no
12228 else
12229 ac_cv_c_string_h_warnings=yes
12231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12234 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12235 CFLAGS="$saved_CFLAGS"
12236 if test "$ac_cv_c_string_h_warnings" = "no"
12237 then
12238 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12241 saved_CFLAGS="$CFLAGS"
12242 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12244 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12245 if ${ac_cv_c_logicalop_noisy+:} false; then :
12246 $as_echo_n "(cached) " >&6
12247 else
12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h. */
12250 #include <string.h>
12252 main ()
12254 char*f(const char *h,char n) {return strchr(h,n);}
12256 return 0;
12258 _ACEOF
12259 if ac_fn_c_try_compile "$LINENO"; then :
12260 ac_cv_c_logicalop_noisy=no
12261 else
12262 ac_cv_c_logicalop_noisy=yes
12264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12267 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12268 CFLAGS="$saved_CFLAGS"
12269 if test "$ac_cv_c_logicalop_noisy" = "no"
12270 then
12271 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12274 if test "x$enable_maintainer_mode" = "xyes"
12275 then
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12277 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12278 if ${ac_cv_cflags__Werror+:} false; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 ac_wine_try_cflags_saved=$CFLAGS
12282 CFLAGS="$CFLAGS -Werror"
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12285 int main(int argc, char **argv) { return 0; }
12286 _ACEOF
12287 if ac_fn_c_try_link "$LINENO"; then :
12288 ac_cv_cflags__Werror=yes
12289 else
12290 ac_cv_cflags__Werror=no
12292 rm -f core conftest.err conftest.$ac_objext \
12293 conftest$ac_exeext conftest.$ac_ext
12294 CFLAGS=$ac_wine_try_cflags_saved
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12297 $as_echo "$ac_cv_cflags__Werror" >&6; }
12298 if test $ac_cv_cflags__Werror = yes; then :
12299 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12303 saved_CFLAGS="$CFLAGS"
12304 CFLAGS="$CFLAGS -Werror"
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12306 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12307 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12312 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12314 main ()
12318 return 0;
12320 _ACEOF
12321 if ac_fn_c_try_compile "$LINENO"; then :
12322 ac_cv_have_ms_hook_prologue="yes"
12323 else
12324 ac_cv_have_ms_hook_prologue="no"
12326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12329 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12330 CFLAGS="$saved_CFLAGS"
12331 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12332 then
12334 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12336 else
12337 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12344 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12345 if ${ac_cv_c_fortify_enabled+:} false; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12350 #include <string.h>
12352 main ()
12354 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12355 #error Fortify enabled
12356 #endif
12358 return 0;
12360 _ACEOF
12361 if ac_fn_c_try_compile "$LINENO"; then :
12362 ac_cv_c_fortify_enabled=no
12363 else
12364 ac_cv_c_fortify_enabled=yes
12366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12369 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12370 if test "$ac_cv_c_fortify_enabled" = yes
12371 then
12372 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12377 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12378 if ${ac_cv_c_extern_prefix+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12383 extern int ac_test;
12385 main ()
12387 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12389 return 0;
12391 _ACEOF
12392 if ac_fn_c_try_link "$LINENO"; then :
12393 ac_cv_c_extern_prefix="yes"
12394 else
12395 ac_cv_c_extern_prefix="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_extern_prefix" >&5
12401 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12403 case $host_cpu in
12404 *i[3456789]86*)
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12406 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12407 if ${ac_cv_c_stdcall_suffix+:} false; then :
12408 $as_echo_n "(cached) " >&6
12409 else
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12412 #ifndef _MSC_VER
12413 #define __stdcall __attribute__((__stdcall__))
12414 #endif
12415 int __stdcall ac_test(int i) { return i; }
12417 main ()
12419 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12421 return 0;
12423 _ACEOF
12424 if ac_fn_c_try_link "$LINENO"; then :
12425 ac_cv_c_stdcall_suffix="yes"
12426 else
12427 ac_cv_c_stdcall_suffix="no"
12429 rm -f core conftest.err conftest.$ac_objext \
12430 conftest$ac_exeext conftest.$ac_ext
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12433 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12434 *) ac_cv_c_stdcall_suffix="no" ;;
12435 esac
12438 if test "$ac_cv_c_extern_prefix" = "yes"
12439 then
12440 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12442 asm_name_prefix="_"
12443 else
12444 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12446 asm_name_prefix=""
12450 if test "$ac_cv_c_stdcall_suffix" = "yes"
12451 then
12452 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12454 else
12455 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12461 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12462 if ${ac_cv_asm_func_def+:} false; then :
12463 $as_echo_n "(cached) " >&6
12464 else
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12469 main ()
12471 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12473 return 0;
12475 _ACEOF
12476 if ac_fn_c_try_link "$LINENO"; then :
12477 ac_cv_asm_func_def=".def"
12478 else
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12483 main ()
12485 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12487 return 0;
12489 _ACEOF
12490 if ac_fn_c_try_link "$LINENO"; then :
12491 ac_cv_asm_func_def=".type @function"
12492 else
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12497 main ()
12499 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12501 return 0;
12503 _ACEOF
12504 if ac_fn_c_try_link "$LINENO"; then :
12505 ac_cv_asm_func_def=".type 2"
12506 else
12507 ac_cv_asm_func_def="unknown"
12509 rm -f core conftest.err conftest.$ac_objext \
12510 conftest$ac_exeext conftest.$ac_ext
12512 rm -f core conftest.err conftest.$ac_objext \
12513 conftest$ac_exeext conftest.$ac_ext
12515 rm -f core conftest.err conftest.$ac_objext \
12516 conftest$ac_exeext conftest.$ac_ext
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12519 $as_echo "$ac_cv_asm_func_def" >&6; }
12522 case "$ac_cv_asm_func_def" in
12523 ".def")
12524 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12526 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12527 ".type @function")
12528 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12530 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12531 ".type 2")
12532 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12534 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12536 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12538 asm_func_header="" ;;
12539 esac
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12542 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12543 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12544 $as_echo_n "(cached) " >&6
12545 else
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12548 asm(".text\n\t.long 0");
12550 main ()
12554 return 0;
12556 _ACEOF
12557 if ac_fn_c_try_compile "$LINENO"; then :
12558 ac_cv_c_asm_outside_funcs="yes"
12559 else
12560 ac_cv_c_asm_outside_funcs="no"
12562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12565 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12568 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12569 if ${ac_cv_c_dot_previous+:} false; then :
12570 $as_echo_n "(cached) " >&6
12571 else
12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573 /* end confdefs.h. */
12576 main ()
12578 asm(".text\nac_test:\t.long 0\n\t.previous");
12580 return 0;
12582 _ACEOF
12583 if ac_fn_c_try_link "$LINENO"; then :
12584 ac_cv_c_dot_previous="yes"
12585 else
12586 ac_cv_c_dot_previous="no"
12588 rm -f core conftest.err conftest.$ac_objext \
12589 conftest$ac_exeext conftest.$ac_ext
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12592 $as_echo "$ac_cv_c_dot_previous" >&6; }
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12595 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12596 if ${ac_cv_c_cfi_support+:} false; then :
12597 $as_echo_n "(cached) " >&6
12598 else
12599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h. */
12601 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12603 main ()
12607 return 0;
12609 _ACEOF
12610 if ac_fn_c_try_compile "$LINENO"; then :
12611 ac_cv_c_cfi_support="yes"
12612 else
12613 ac_cv_c_cfi_support="no"
12615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12618 $as_echo "$ac_cv_c_cfi_support" >&6; }
12620 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12621 asm_func_trailer=""
12622 if test "$ac_cv_c_dot_previous" = "yes"
12623 then
12624 asm_func_trailer="\\n\\t.previous"
12626 if test "$ac_cv_c_cfi_support" = "yes"
12627 then
12628 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12629 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12631 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12633 UNWINDFLAGS=-fasynchronous-unwind-tables
12635 else
12636 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12640 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12643 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12644 then
12645 cat >>confdefs.h <<_ACEOF
12646 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12647 _ACEOF
12649 else
12650 cat >>confdefs.h <<_ACEOF
12651 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12652 _ACEOF
12656 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12659 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12663 LDPATH=""
12665 case $build_os in
12666 cygwin*|mingw32*)
12667 TOOLSEXT=".exe"
12669 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12671 darwin*|macosx*)
12674 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12676 esac
12678 case $host_os in
12679 mingw32*)
12680 CRTLIBS="-lmsvcrt"
12682 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12685 esac
12687 MAIN_BINARY="wine"
12689 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12691 case $host_os in
12692 linux*)
12693 case $host_cpu in
12694 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12696 x86_64*) EXTRA_BINARIES="wine64-preloader"
12698 esac
12700 esac
12703 ac_save_CFLAGS="$CFLAGS"
12704 CFLAGS="$CFLAGS $BUILTINFLAG"
12705 for ac_func in \
12706 _finite \
12707 _isnan \
12708 _pclose \
12709 _popen \
12710 _snprintf \
12711 _spawnvp \
12712 _strdup \
12713 _stricmp \
12714 _strnicmp \
12715 _strtoi64 \
12716 _strtoui64 \
12717 _vsnprintf \
12718 asctime_r \
12719 chsize \
12720 dlopen \
12721 epoll_create \
12722 ffs \
12723 finite \
12724 fnmatch \
12725 fork \
12726 fpclass \
12727 fstatfs \
12728 fstatvfs \
12729 ftruncate \
12730 futimes \
12731 futimesat \
12732 getattrlist \
12733 getdirentries \
12734 getopt_long \
12735 getpagesize \
12736 getpwuid \
12737 gettimeofday \
12738 getuid \
12739 kqueue \
12740 lstat \
12741 memmove \
12742 mmap \
12743 pclose \
12744 pipe2 \
12745 poll \
12746 popen \
12747 port_create \
12748 prctl \
12749 pread \
12750 pwrite \
12751 readdir \
12752 readlink \
12753 sched_yield \
12754 select \
12755 setproctitle \
12756 setrlimit \
12757 settimeofday \
12758 sigaltstack \
12759 sigprocmask \
12760 snprintf \
12761 spawnvp \
12762 statfs \
12763 statvfs \
12764 strcasecmp \
12765 strdup \
12766 strerror \
12767 strncasecmp \
12768 strtold \
12769 strtoll \
12770 strtoull \
12771 symlink \
12772 tcgetattr \
12773 thr_kill2 \
12774 timegm \
12775 usleep \
12776 vsnprintf \
12777 wait4 \
12778 waitpid \
12780 do :
12781 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12782 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12783 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12784 cat >>confdefs.h <<_ACEOF
12785 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12786 _ACEOF
12789 done
12791 CFLAGS="$ac_save_CFLAGS"
12793 if test "$ac_cv_func_dlopen" = no
12794 then
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12796 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12797 if ${ac_cv_lib_dl_dlopen+:} false; then :
12798 $as_echo_n "(cached) " >&6
12799 else
12800 ac_check_lib_save_LIBS=$LIBS
12801 LIBS="-ldl $LIBS"
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12805 /* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12808 #ifdef __cplusplus
12809 extern "C"
12810 #endif
12811 char dlopen ();
12813 main ()
12815 return dlopen ();
12817 return 0;
12819 _ACEOF
12820 if ac_fn_c_try_link "$LINENO"; then :
12821 ac_cv_lib_dl_dlopen=yes
12822 else
12823 ac_cv_lib_dl_dlopen=no
12825 rm -f core conftest.err conftest.$ac_objext \
12826 conftest$ac_exeext conftest.$ac_ext
12827 LIBS=$ac_check_lib_save_LIBS
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12830 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12831 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12832 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12833 LIBDL="-ldl"
12838 ac_wine_check_funcs_save_LIBS="$LIBS"
12839 LIBS="$LIBS $LIBDL"
12840 for ac_func in dladdr
12841 do :
12842 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12843 if test "x$ac_cv_func_dladdr" = xyes; then :
12844 cat >>confdefs.h <<_ACEOF
12845 #define HAVE_DLADDR 1
12846 _ACEOF
12849 done
12851 LIBS="$ac_wine_check_funcs_save_LIBS"
12853 if test "$ac_cv_func_poll" = no
12854 then
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12856 $as_echo_n "checking for poll in -lpoll... " >&6; }
12857 if ${ac_cv_lib_poll_poll+:} false; then :
12858 $as_echo_n "(cached) " >&6
12859 else
12860 ac_check_lib_save_LIBS=$LIBS
12861 LIBS="-lpoll $LIBS"
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12868 #ifdef __cplusplus
12869 extern "C"
12870 #endif
12871 char poll ();
12873 main ()
12875 return poll ();
12877 return 0;
12879 _ACEOF
12880 if ac_fn_c_try_link "$LINENO"; then :
12881 ac_cv_lib_poll_poll=yes
12882 else
12883 ac_cv_lib_poll_poll=no
12885 rm -f core conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12887 LIBS=$ac_check_lib_save_LIBS
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12890 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12891 if test "x$ac_cv_lib_poll_poll" = xyes; then :
12892 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12893 LIBPOLL="-lpoll"
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12900 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12901 if ${ac_cv_search_gethostbyname+:} false; then :
12902 $as_echo_n "(cached) " >&6
12903 else
12904 ac_func_search_save_LIBS=$LIBS
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12908 /* Override any GCC internal prototype to avoid an error.
12909 Use char because int might match the return type of a GCC
12910 builtin and then its argument prototype would still apply. */
12911 #ifdef __cplusplus
12912 extern "C"
12913 #endif
12914 char gethostbyname ();
12916 main ()
12918 return gethostbyname ();
12920 return 0;
12922 _ACEOF
12923 for ac_lib in '' nsl; do
12924 if test -z "$ac_lib"; then
12925 ac_res="none required"
12926 else
12927 ac_res=-l$ac_lib
12928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12930 if ac_fn_c_try_link "$LINENO"; then :
12931 ac_cv_search_gethostbyname=$ac_res
12933 rm -f core conftest.err conftest.$ac_objext \
12934 conftest$ac_exeext
12935 if ${ac_cv_search_gethostbyname+:} false; then :
12936 break
12938 done
12939 if ${ac_cv_search_gethostbyname+:} false; then :
12941 else
12942 ac_cv_search_gethostbyname=no
12944 rm conftest.$ac_ext
12945 LIBS=$ac_func_search_save_LIBS
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12948 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12949 ac_res=$ac_cv_search_gethostbyname
12950 if test "$ac_res" != no; then :
12951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12957 $as_echo_n "checking for library containing connect... " >&6; }
12958 if ${ac_cv_search_connect+:} false; then :
12959 $as_echo_n "(cached) " >&6
12960 else
12961 ac_func_search_save_LIBS=$LIBS
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12965 /* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12968 #ifdef __cplusplus
12969 extern "C"
12970 #endif
12971 char connect ();
12973 main ()
12975 return connect ();
12977 return 0;
12979 _ACEOF
12980 for ac_lib in '' socket; do
12981 if test -z "$ac_lib"; then
12982 ac_res="none required"
12983 else
12984 ac_res=-l$ac_lib
12985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12987 if ac_fn_c_try_link "$LINENO"; then :
12988 ac_cv_search_connect=$ac_res
12990 rm -f core conftest.err conftest.$ac_objext \
12991 conftest$ac_exeext
12992 if ${ac_cv_search_connect+:} false; then :
12993 break
12995 done
12996 if ${ac_cv_search_connect+:} false; then :
12998 else
12999 ac_cv_search_connect=no
13001 rm conftest.$ac_ext
13002 LIBS=$ac_func_search_save_LIBS
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13005 $as_echo "$ac_cv_search_connect" >&6; }
13006 ac_res=$ac_cv_search_connect
13007 if test "$ac_res" != no; then :
13008 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13014 $as_echo_n "checking for library containing inet_aton... " >&6; }
13015 if ${ac_cv_search_inet_aton+:} false; then :
13016 $as_echo_n "(cached) " >&6
13017 else
13018 ac_func_search_save_LIBS=$LIBS
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020 /* end confdefs.h. */
13022 /* Override any GCC internal prototype to avoid an error.
13023 Use char because int might match the return type of a GCC
13024 builtin and then its argument prototype would still apply. */
13025 #ifdef __cplusplus
13026 extern "C"
13027 #endif
13028 char inet_aton ();
13030 main ()
13032 return inet_aton ();
13034 return 0;
13036 _ACEOF
13037 for ac_lib in '' resolv; do
13038 if test -z "$ac_lib"; then
13039 ac_res="none required"
13040 else
13041 ac_res=-l$ac_lib
13042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13044 if ac_fn_c_try_link "$LINENO"; then :
13045 ac_cv_search_inet_aton=$ac_res
13047 rm -f core conftest.err conftest.$ac_objext \
13048 conftest$ac_exeext
13049 if ${ac_cv_search_inet_aton+:} false; then :
13050 break
13052 done
13053 if ${ac_cv_search_inet_aton+:} false; then :
13055 else
13056 ac_cv_search_inet_aton=no
13058 rm conftest.$ac_ext
13059 LIBS=$ac_func_search_save_LIBS
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13062 $as_echo "$ac_cv_search_inet_aton" >&6; }
13063 ac_res=$ac_cv_search_inet_aton
13064 if test "$ac_res" != no; then :
13065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13070 for ac_func in \
13071 getaddrinfo \
13072 getnameinfo \
13073 getnetbyname \
13074 getprotobyname \
13075 getprotobynumber \
13076 getservbyport \
13077 inet_network \
13078 inet_ntop \
13079 inet_pton \
13080 sendmsg \
13081 socketpair \
13083 do :
13084 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13085 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13086 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13087 cat >>confdefs.h <<_ACEOF
13088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13089 _ACEOF
13092 done
13095 LDAPLIBS=""
13097 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13098 then
13099 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13101 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13103 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13104 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13105 $as_echo_n "(cached) " >&6
13106 else
13107 ac_check_lib_save_LIBS=$LIBS
13108 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13112 /* Override any GCC internal prototype to avoid an error.
13113 Use char because int might match the return type of a GCC
13114 builtin and then its argument prototype would still apply. */
13115 #ifdef __cplusplus
13116 extern "C"
13117 #endif
13118 char ldap_initialize ();
13120 main ()
13122 return ldap_initialize ();
13124 return 0;
13126 _ACEOF
13127 if ac_fn_c_try_link "$LINENO"; then :
13128 ac_cv_lib_ldap_r_ldap_initialize=yes
13129 else
13130 ac_cv_lib_ldap_r_ldap_initialize=no
13132 rm -f core conftest.err conftest.$ac_objext \
13133 conftest$ac_exeext conftest.$ac_ext
13134 LIBS=$ac_check_lib_save_LIBS
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13137 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13138 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13140 $as_echo_n "checking for ber_init in -llber... " >&6; }
13141 if ${ac_cv_lib_lber_ber_init+:} false; then :
13142 $as_echo_n "(cached) " >&6
13143 else
13144 ac_check_lib_save_LIBS=$LIBS
13145 LIBS="-llber $LIBPTHREAD $LIBS"
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13149 /* Override any GCC internal prototype to avoid an error.
13150 Use char because int might match the return type of a GCC
13151 builtin and then its argument prototype would still apply. */
13152 #ifdef __cplusplus
13153 extern "C"
13154 #endif
13155 char ber_init ();
13157 main ()
13159 return ber_init ();
13161 return 0;
13163 _ACEOF
13164 if ac_fn_c_try_link "$LINENO"; then :
13165 ac_cv_lib_lber_ber_init=yes
13166 else
13167 ac_cv_lib_lber_ber_init=no
13169 rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13171 LIBS=$ac_check_lib_save_LIBS
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13174 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13175 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13177 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13179 LDAPLIBS="-lldap_r -llber"
13186 ac_wine_check_funcs_save_LIBS="$LIBS"
13187 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13188 for ac_func in \
13189 ldap_count_references \
13190 ldap_first_reference \
13191 ldap_next_reference \
13192 ldap_parse_reference \
13193 ldap_parse_sort_control \
13194 ldap_parse_sortresponse_control \
13195 ldap_parse_vlv_control \
13196 ldap_parse_vlvresponse_control
13197 do :
13198 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13199 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13200 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13201 cat >>confdefs.h <<_ACEOF
13202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13203 _ACEOF
13206 done
13208 LIBS="$ac_wine_check_funcs_save_LIBS"
13210 if test "x$LDAPLIBS" = "x"; then :
13211 case "x$with_ldap" in
13212 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13213 xno) ;;
13214 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13215 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13216 esac
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13220 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13221 if ${wine_cv_one_arg_mkdir+:} false; then :
13222 $as_echo_n "(cached) " >&6
13223 else
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13226 #include <sys/stat.h>
13228 main ()
13230 mkdir("foo");
13232 return 0;
13234 _ACEOF
13235 if ac_fn_c_try_compile "$LINENO"; then :
13236 wine_cv_one_arg_mkdir=yes
13237 else
13238 wine_cv_one_arg_mkdir=no
13240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13243 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13244 if test "$wine_cv_one_arg_mkdir" = "yes"
13245 then
13247 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13252 $as_echo_n "checking for sched_setaffinity... " >&6; }
13253 if ${wine_cv_have_sched_setaffinity+:} false; then :
13254 $as_echo_n "(cached) " >&6
13255 else
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13258 #define _GNU_SOURCE
13259 #include <sched.h>
13261 main ()
13263 sched_setaffinity(0, 0, 0);
13265 return 0;
13267 _ACEOF
13268 if ac_fn_c_try_link "$LINENO"; then :
13269 wine_cv_have_sched_setaffinity=yes
13270 else
13271 wine_cv_have_sched_setaffinity=no
13273 rm -f core conftest.err conftest.$ac_objext \
13274 conftest$ac_exeext conftest.$ac_ext
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13277 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13278 if test "$wine_cv_have_sched_setaffinity" = "yes"
13279 then
13281 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13287 $as_echo_n "checking for inline... " >&6; }
13288 if ${ac_cv_c_inline+:} false; then :
13289 $as_echo_n "(cached) " >&6
13290 else
13291 ac_cv_c_inline=no
13292 for ac_kw in inline __inline__ __inline; do
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13295 #ifndef __cplusplus
13296 typedef int foo_t;
13297 static $ac_kw foo_t static_foo () {return 0; }
13298 $ac_kw foo_t foo () {return 0; }
13299 #endif
13301 _ACEOF
13302 if ac_fn_c_try_compile "$LINENO"; then :
13303 ac_cv_c_inline=$ac_kw
13305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13306 test "$ac_cv_c_inline" != no && break
13307 done
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13311 $as_echo "$ac_cv_c_inline" >&6; }
13313 case $ac_cv_c_inline in
13314 inline | yes) ;;
13316 case $ac_cv_c_inline in
13317 no) ac_val=;;
13318 *) ac_val=$ac_cv_c_inline;;
13319 esac
13320 cat >>confdefs.h <<_ACEOF
13321 #ifndef __cplusplus
13322 #define inline $ac_val
13323 #endif
13324 _ACEOF
13326 esac
13328 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13329 if test "x$ac_cv_type_mode_t" = xyes; then :
13331 cat >>confdefs.h <<_ACEOF
13332 #define HAVE_MODE_T 1
13333 _ACEOF
13337 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13338 if test "x$ac_cv_type_off_t" = xyes; then :
13340 cat >>confdefs.h <<_ACEOF
13341 #define HAVE_OFF_T 1
13342 _ACEOF
13346 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13347 if test "x$ac_cv_type_pid_t" = xyes; then :
13349 cat >>confdefs.h <<_ACEOF
13350 #define HAVE_PID_T 1
13351 _ACEOF
13355 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13356 if test "x$ac_cv_type_size_t" = xyes; then :
13358 cat >>confdefs.h <<_ACEOF
13359 #define HAVE_SIZE_T 1
13360 _ACEOF
13364 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13365 if test "x$ac_cv_type_ssize_t" = xyes; then :
13367 cat >>confdefs.h <<_ACEOF
13368 #define HAVE_SSIZE_T 1
13369 _ACEOF
13373 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13374 if test "x$ac_cv_type_long_long" = xyes; then :
13376 cat >>confdefs.h <<_ACEOF
13377 #define HAVE_LONG_LONG 1
13378 _ACEOF
13382 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13383 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13385 cat >>confdefs.h <<_ACEOF
13386 #define HAVE_FSBLKCNT_T 1
13387 _ACEOF
13391 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13392 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13394 cat >>confdefs.h <<_ACEOF
13395 #define HAVE_FSFILCNT_T 1
13396 _ACEOF
13401 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13402 #include <signal.h>
13404 if test "x$ac_cv_type_sigset_t" = xyes; then :
13406 cat >>confdefs.h <<_ACEOF
13407 #define HAVE_SIGSET_T 1
13408 _ACEOF
13413 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13415 if test "x$ac_cv_type_request_sense" = xyes; then :
13417 cat >>confdefs.h <<_ACEOF
13418 #define HAVE_REQUEST_SENSE 1
13419 _ACEOF
13425 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13426 #ifdef HAVE_SYS_SOCKET_H
13427 #include <sys/socket.h>
13428 #endif
13429 #ifdef HAVE_SYS_SOCKETVAR_H
13430 #include <sys/socketvar.h>
13431 #endif
13432 #ifdef HAVE_NET_ROUTE_H
13433 #include <net/route.h>
13434 #endif
13435 #ifdef HAVE_NETINET_IN_H
13436 #include <netinet/in.h>
13437 #endif
13438 #ifdef HAVE_NETINET_IN_SYSTM_H
13439 #include <netinet/in_systm.h>
13440 #endif
13441 #ifdef HAVE_NETINET_IP_H
13442 #include <netinet/ip.h>
13443 #endif
13444 #ifdef HAVE_NETINET_IN_PCB_H
13445 #include <netinet/in_pcb.h>
13446 #endif
13448 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13450 cat >>confdefs.h <<_ACEOF
13451 #define HAVE_STRUCT_XINPGEN 1
13452 _ACEOF
13458 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13459 #include <linux/input.h>
13460 #endif
13462 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13464 cat >>confdefs.h <<_ACEOF
13465 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13466 _ACEOF
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13473 $as_echo_n "checking for sigaddset... " >&6; }
13474 if ${wine_cv_have_sigaddset+:} false; then :
13475 $as_echo_n "(cached) " >&6
13476 else
13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h. */
13479 #include <signal.h>
13481 main ()
13483 sigset_t set; sigaddset(&set,SIGTERM);
13485 return 0;
13487 _ACEOF
13488 if ac_fn_c_try_link "$LINENO"; then :
13489 wine_cv_have_sigaddset=yes
13490 else
13491 wine_cv_have_sigaddset=no
13493 rm -f core conftest.err conftest.$ac_objext \
13494 conftest$ac_exeext conftest.$ac_ext
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13497 $as_echo "$wine_cv_have_sigaddset" >&6; }
13498 if test "$wine_cv_have_sigaddset" = "yes"
13499 then
13501 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13507 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13508 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510 else
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513 #include <netdb.h>
13515 main ()
13518 char *name=0;
13519 struct hostent he;
13520 struct hostent *result;
13521 char *buf=0;
13522 int bufsize=0;
13523 int errnr;
13524 char *addr=0;
13525 int addrlen=0;
13526 int addrtype=0;
13527 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13528 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13531 return 0;
13533 _ACEOF
13534 if ac_fn_c_try_link "$LINENO"; then :
13535 wine_cv_linux_gethostbyname_r_6=yes
13536 else
13537 wine_cv_linux_gethostbyname_r_6=no
13540 rm -f core conftest.err conftest.$ac_objext \
13541 conftest$ac_exeext conftest.$ac_ext
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13545 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13546 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13547 then
13549 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13553 if test "$ac_cv_header_linux_joystick_h" = "yes"
13554 then
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13556 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13557 if ${wine_cv_linux_joystick_22_api+:} false; then :
13558 $as_echo_n "(cached) " >&6
13559 else
13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h. */
13563 #include <sys/ioctl.h>
13564 #include <sys/types.h>
13565 #include <linux/joystick.h>
13567 struct js_event blub;
13568 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13569 #error "no 2.2 header"
13570 #endif
13573 main ()
13575 /*empty*/
13577 return 0;
13579 _ACEOF
13580 if ac_fn_c_try_compile "$LINENO"; then :
13581 wine_cv_linux_joystick_22_api=yes
13582 else
13583 wine_cv_linux_joystick_22_api=no
13585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13589 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13590 if test "$wine_cv_linux_joystick_22_api" = "yes"
13591 then
13593 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13599 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13600 #ifdef HAVE_SYS_PARAM_H
13601 # include <sys/param.h>
13602 #endif
13603 #ifdef HAVE_SYS_MOUNT_H
13604 # include <sys/mount.h>
13605 #endif
13606 #ifdef HAVE_SYS_VFS_H
13607 # include <sys/vfs.h>
13608 #endif
13609 #ifdef HAVE_SYS_STATFS_H
13610 # include <sys/statfs.h>
13611 #endif
13613 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13615 cat >>confdefs.h <<_ACEOF
13616 #define HAVE_STRUCT_STATFS_F_BFREE 1
13617 _ACEOF
13621 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13622 #ifdef HAVE_SYS_PARAM_H
13623 # include <sys/param.h>
13624 #endif
13625 #ifdef HAVE_SYS_MOUNT_H
13626 # include <sys/mount.h>
13627 #endif
13628 #ifdef HAVE_SYS_VFS_H
13629 # include <sys/vfs.h>
13630 #endif
13631 #ifdef HAVE_SYS_STATFS_H
13632 # include <sys/statfs.h>
13633 #endif
13635 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13637 cat >>confdefs.h <<_ACEOF
13638 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13639 _ACEOF
13643 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13644 #ifdef HAVE_SYS_PARAM_H
13645 # include <sys/param.h>
13646 #endif
13647 #ifdef HAVE_SYS_MOUNT_H
13648 # include <sys/mount.h>
13649 #endif
13650 #ifdef HAVE_SYS_VFS_H
13651 # include <sys/vfs.h>
13652 #endif
13653 #ifdef HAVE_SYS_STATFS_H
13654 # include <sys/statfs.h>
13655 #endif
13657 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13659 cat >>confdefs.h <<_ACEOF
13660 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13661 _ACEOF
13665 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13666 #ifdef HAVE_SYS_PARAM_H
13667 # include <sys/param.h>
13668 #endif
13669 #ifdef HAVE_SYS_MOUNT_H
13670 # include <sys/mount.h>
13671 #endif
13672 #ifdef HAVE_SYS_VFS_H
13673 # include <sys/vfs.h>
13674 #endif
13675 #ifdef HAVE_SYS_STATFS_H
13676 # include <sys/statfs.h>
13677 #endif
13679 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13681 cat >>confdefs.h <<_ACEOF
13682 #define HAVE_STRUCT_STATFS_F_FFREE 1
13683 _ACEOF
13687 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13688 #ifdef HAVE_SYS_PARAM_H
13689 # include <sys/param.h>
13690 #endif
13691 #ifdef HAVE_SYS_MOUNT_H
13692 # include <sys/mount.h>
13693 #endif
13694 #ifdef HAVE_SYS_VFS_H
13695 # include <sys/vfs.h>
13696 #endif
13697 #ifdef HAVE_SYS_STATFS_H
13698 # include <sys/statfs.h>
13699 #endif
13701 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13703 cat >>confdefs.h <<_ACEOF
13704 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13705 _ACEOF
13709 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13710 #ifdef HAVE_SYS_PARAM_H
13711 # include <sys/param.h>
13712 #endif
13713 #ifdef HAVE_SYS_MOUNT_H
13714 # include <sys/mount.h>
13715 #endif
13716 #ifdef HAVE_SYS_VFS_H
13717 # include <sys/vfs.h>
13718 #endif
13719 #ifdef HAVE_SYS_STATFS_H
13720 # include <sys/statfs.h>
13721 #endif
13723 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13725 cat >>confdefs.h <<_ACEOF
13726 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13727 _ACEOF
13733 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13734 #include <sys/statvfs.h>
13735 #endif
13737 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13739 cat >>confdefs.h <<_ACEOF
13740 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13741 _ACEOF
13747 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13748 #ifdef HAVE_SYS_SOCKET_H
13749 # include <sys/socket.h>
13750 #endif
13751 #ifdef HAVE_SYS_UN_H
13752 # include <sys/un.h>
13753 #endif
13755 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13757 cat >>confdefs.h <<_ACEOF
13758 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13759 _ACEOF
13763 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13764 #ifdef HAVE_SYS_SOCKET_H
13765 # include <sys/socket.h>
13766 #endif
13767 #ifdef HAVE_SYS_UN_H
13768 # include <sys/un.h>
13769 #endif
13771 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13773 cat >>confdefs.h <<_ACEOF
13774 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13775 _ACEOF
13779 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13780 #ifdef HAVE_SYS_SOCKET_H
13781 # include <sys/socket.h>
13782 #endif
13783 #ifdef HAVE_SYS_UN_H
13784 # include <sys/un.h>
13785 #endif
13787 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13789 cat >>confdefs.h <<_ACEOF
13790 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13791 _ACEOF
13797 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13798 #ifdef HAVE_SCSI_SG_H
13799 #include <scsi/sg.h>
13800 #endif
13802 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13804 cat >>confdefs.h <<_ACEOF
13805 #define HAVE_SCSIREQ_T_CMD 1
13806 _ACEOF
13810 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>
13811 #ifdef HAVE_SCSI_SG_H
13812 #include <scsi/sg.h>
13813 #endif
13815 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13817 cat >>confdefs.h <<_ACEOF
13818 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13819 _ACEOF
13825 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13827 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
13829 cat >>confdefs.h <<_ACEOF
13830 #define HAVE_SIGINFO_T_SI_FD 1
13831 _ACEOF
13837 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13838 #ifdef HAVE_SYS_MTIO_H
13839 #include <sys/mtio.h>
13840 #endif
13842 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
13844 cat >>confdefs.h <<_ACEOF
13845 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13846 _ACEOF
13850 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13851 #ifdef HAVE_SYS_MTIO_H
13852 #include <sys/mtio.h>
13853 #endif
13855 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
13857 cat >>confdefs.h <<_ACEOF
13858 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13859 _ACEOF
13863 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13864 #ifdef HAVE_SYS_MTIO_H
13865 #include <sys/mtio.h>
13866 #endif
13868 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
13870 cat >>confdefs.h <<_ACEOF
13871 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13872 _ACEOF
13878 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13879 #include <getopt.h>
13880 #endif
13882 if test "x$ac_cv_member_struct_option_name" = xyes; then :
13884 cat >>confdefs.h <<_ACEOF
13885 #define HAVE_STRUCT_OPTION_NAME 1
13886 _ACEOF
13892 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13893 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13895 cat >>confdefs.h <<_ACEOF
13896 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13897 _ACEOF
13901 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13902 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13904 cat >>confdefs.h <<_ACEOF
13905 #define HAVE_STRUCT_STAT_ST_MTIM 1
13906 _ACEOF
13910 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13911 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
13913 cat >>confdefs.h <<_ACEOF
13914 #define HAVE_STRUCT_STAT_ST_CTIM 1
13915 _ACEOF
13919 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13920 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
13922 cat >>confdefs.h <<_ACEOF
13923 #define HAVE_STRUCT_STAT_ST_ATIM 1
13924 _ACEOF
13930 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
13931 #include <sys/types.h>
13932 #endif
13933 #ifdef HAVE_NETINET_IN_H
13934 #include <netinet/in.h>
13935 #endif
13937 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13939 cat >>confdefs.h <<_ACEOF
13940 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13941 _ACEOF
13947 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13948 #include <sys/types.h>
13949 #endif
13950 #ifdef HAVE_NETINET_IN_H
13951 # include <netinet/in.h>
13952 #endif
13953 #ifdef HAVE_ARPA_NAMESER_H
13954 # include <arpa/nameser.h>
13955 #endif
13957 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
13959 cat >>confdefs.h <<_ACEOF
13960 #define HAVE_NS_MSG__MSG_PTR 1
13961 _ACEOF
13967 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13968 #include <sys/types.h>
13969 #endif
13970 #ifdef HAVE_ALIAS_H
13971 #include <alias.h>
13972 #endif
13973 #ifdef HAVE_SYS_SOCKET_H
13974 #include <sys/socket.h>
13975 #endif
13976 #ifdef HAVE_SYS_SOCKETVAR_H
13977 #include <sys/socketvar.h>
13978 #endif
13979 #ifdef HAVE_SYS_TIMEOUT_H
13980 #include <sys/timeout.h>
13981 #endif
13982 #ifdef HAVE_NETINET_IN_H
13983 #include <netinet/in.h>
13984 #endif
13985 #ifdef HAVE_NETINET_IN_SYSTM_H
13986 #include <netinet/in_systm.h>
13987 #endif
13988 #ifdef HAVE_NETINET_IP_H
13989 #include <netinet/ip.h>
13990 #endif
13991 #ifdef HAVE_NETINET_IP_VAR_H
13992 #include <netinet/ip_var.h>
13993 #endif
13994 #ifdef HAVE_NETINET_IP_ICMP_H
13995 #include <netinet/ip_icmp.h>
13996 #endif
13997 #ifdef HAVE_NETINET_ICMP_VAR
13998 #include <netinet/icmp_var.h>
13999 #endif
14001 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14003 cat >>confdefs.h <<_ACEOF
14004 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14005 _ACEOF
14011 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14012 #include <sys/types.h>
14013 #endif
14014 #ifdef HAVE_NET_IF_H
14015 # include <net/if.h>
14016 #endif
14018 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14020 cat >>confdefs.h <<_ACEOF
14021 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14022 _ACEOF
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14029 $as_echo_n "checking for timezone variable... " >&6; }
14030 if ${ac_cv_have_timezone+:} false; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 #include <time.h>
14037 main ()
14039 timezone = 1
14041 return 0;
14043 _ACEOF
14044 if ac_fn_c_try_link "$LINENO"; then :
14045 ac_cv_have_timezone="yes"
14046 else
14047 ac_cv_have_timezone="no"
14049 rm -f core conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14053 $as_echo "$ac_cv_have_timezone" >&6; }
14054 if test "$ac_cv_have_timezone" = "yes"
14055 then
14057 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14061 $as_echo_n "checking for daylight variable... " >&6; }
14062 if ${ac_cv_have_daylight+:} false; then :
14063 $as_echo_n "(cached) " >&6
14064 else
14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h. */
14067 #include <time.h>
14069 main ()
14071 daylight = 1
14073 return 0;
14075 _ACEOF
14076 if ac_fn_c_try_link "$LINENO"; then :
14077 ac_cv_have_daylight="yes"
14078 else
14079 ac_cv_have_daylight="no"
14081 rm -f core conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext conftest.$ac_ext
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14085 $as_echo "$ac_cv_have_daylight" >&6; }
14086 if test "$ac_cv_have_daylight" = "yes"
14087 then
14089 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14093 ac_save_LIBS="$LIBS"
14094 LIBS="$LIBS -lm"
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14096 $as_echo_n "checking for isinf... " >&6; }
14097 if ${ac_cv_have_isinf+:} false; then :
14098 $as_echo_n "(cached) " >&6
14099 else
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102 #include <math.h>
14104 main ()
14106 float f = 0.0; return isinf(f)
14108 return 0;
14110 _ACEOF
14111 if ac_fn_c_try_link "$LINENO"; then :
14112 ac_cv_have_isinf="yes"
14113 else
14114 ac_cv_have_isinf="no"
14116 rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14120 $as_echo "$ac_cv_have_isinf" >&6; }
14121 if test "$ac_cv_have_isinf" = "yes"
14122 then
14124 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14129 $as_echo_n "checking for isnan... " >&6; }
14130 if ${ac_cv_have_isnan+:} false; then :
14131 $as_echo_n "(cached) " >&6
14132 else
14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h. */
14135 #include <math.h>
14137 main ()
14139 float f = 0.0; return isnan(f)
14141 return 0;
14143 _ACEOF
14144 if ac_fn_c_try_link "$LINENO"; then :
14145 ac_cv_have_isnan="yes"
14146 else
14147 ac_cv_have_isnan="no"
14149 rm -f core conftest.err conftest.$ac_objext \
14150 conftest$ac_exeext conftest.$ac_ext
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14153 $as_echo "$ac_cv_have_isnan" >&6; }
14154 if test "$ac_cv_have_isnan" = "yes"
14155 then
14157 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14160 LIBS="$ac_save_LIBS"
14163 case $host_cpu in
14164 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14165 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14166 if ${ac_cv_cpp_def___i386__+:} false; then :
14167 $as_echo_n "(cached) " >&6
14168 else
14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14171 #ifndef __i386__
14173 #endif
14174 _ACEOF
14175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14176 $EGREP "yes" >/dev/null 2>&1; then :
14177 ac_cv_cpp_def___i386__=yes
14178 else
14179 ac_cv_cpp_def___i386__=no
14181 rm -f conftest*
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14185 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14186 if test $ac_cv_cpp_def___i386__ = yes; then :
14187 CFLAGS="$CFLAGS -D__i386__"
14188 LINTFLAGS="$LINTFLAGS -D__i386__"
14189 fi ;;
14190 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14191 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14192 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14193 $as_echo_n "(cached) " >&6
14194 else
14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h. */
14197 #ifndef __x86_64__
14199 #endif
14200 _ACEOF
14201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14202 $EGREP "yes" >/dev/null 2>&1; then :
14203 ac_cv_cpp_def___x86_64__=yes
14204 else
14205 ac_cv_cpp_def___x86_64__=no
14207 rm -f conftest*
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14211 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14212 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14213 CFLAGS="$CFLAGS -D__x86_64__"
14214 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14215 fi ;;
14216 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14217 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14218 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14219 $as_echo_n "(cached) " >&6
14220 else
14221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222 /* end confdefs.h. */
14223 #ifndef __sparc64__
14225 #endif
14226 _ACEOF
14227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14228 $EGREP "yes" >/dev/null 2>&1; then :
14229 ac_cv_cpp_def___sparc64__=yes
14230 else
14231 ac_cv_cpp_def___sparc64__=no
14233 rm -f conftest*
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14237 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14238 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14239 CFLAGS="$CFLAGS -D__sparc64__"
14240 LINTFLAGS="$LINTFLAGS -D__sparc64__"
14241 fi ;;
14242 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14243 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14244 if ${ac_cv_cpp_def___sparc__+:} false; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14248 /* end confdefs.h. */
14249 #ifndef __sparc__
14251 #endif
14252 _ACEOF
14253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14254 $EGREP "yes" >/dev/null 2>&1; then :
14255 ac_cv_cpp_def___sparc__=yes
14256 else
14257 ac_cv_cpp_def___sparc__=no
14259 rm -f conftest*
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14263 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14264 if test $ac_cv_cpp_def___sparc__ = yes; then :
14265 CFLAGS="$CFLAGS -D__sparc__"
14266 LINTFLAGS="$LINTFLAGS -D__sparc__"
14267 fi ;;
14268 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14269 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14270 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14271 $as_echo_n "(cached) " >&6
14272 else
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14275 #ifndef __powerpc64__
14277 #endif
14278 _ACEOF
14279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14280 $EGREP "yes" >/dev/null 2>&1; then :
14281 ac_cv_cpp_def___powerpc64__=yes
14282 else
14283 ac_cv_cpp_def___powerpc64__=no
14285 rm -f conftest*
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14289 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14290 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14291 CFLAGS="$CFLAGS -D__powerpc64__"
14292 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14293 fi ;;
14294 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14295 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14296 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14297 $as_echo_n "(cached) " >&6
14298 else
14299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14300 /* end confdefs.h. */
14301 #ifndef __powerpc__
14303 #endif
14304 _ACEOF
14305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14306 $EGREP "yes" >/dev/null 2>&1; then :
14307 ac_cv_cpp_def___powerpc__=yes
14308 else
14309 ac_cv_cpp_def___powerpc__=no
14311 rm -f conftest*
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14315 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14316 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14317 CFLAGS="$CFLAGS -D__powerpc__"
14318 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14319 fi ;;
14320 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14321 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14322 if ${ac_cv_cpp_def___arm__+:} false; then :
14323 $as_echo_n "(cached) " >&6
14324 else
14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14327 #ifndef __arm__
14329 #endif
14330 _ACEOF
14331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14332 $EGREP "yes" >/dev/null 2>&1; then :
14333 ac_cv_cpp_def___arm__=yes
14334 else
14335 ac_cv_cpp_def___arm__=no
14337 rm -f conftest*
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14341 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14342 if test $ac_cv_cpp_def___arm__ = yes; then :
14343 CFLAGS="$CFLAGS -D__arm__"
14344 LINTFLAGS="$LINTFLAGS -D__arm__"
14345 fi ;;
14346 esac
14348 case $host_vendor in
14349 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14350 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14351 if ${ac_cv_cpp_def___sun__+:} false; then :
14352 $as_echo_n "(cached) " >&6
14353 else
14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14356 #ifndef __sun__
14358 #endif
14359 _ACEOF
14360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14361 $EGREP "yes" >/dev/null 2>&1; then :
14362 ac_cv_cpp_def___sun__=yes
14363 else
14364 ac_cv_cpp_def___sun__=no
14366 rm -f conftest*
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14370 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14371 if test $ac_cv_cpp_def___sun__ = yes; then :
14372 CFLAGS="$CFLAGS -D__sun__"
14373 LINTFLAGS="$LINTFLAGS -D__sun__"
14374 fi ;;
14375 esac
14381 ac_config_commands="$ac_config_commands include/stamp-h"
14384 ALL_MAKEFILE_DEPENDS="
14385 # Rules automatically generated by configure
14387 .INIT: Makefile
14388 .MAKEFILEDEPS:
14389 all: Makefile
14390 Makefile: Makefile.in Make.vars.in Make.rules config.status
14391 @./config.status Make.tmp Makefile"
14393 ALL_POT_FILES=""
14394 ALL_TEST_RESOURCES=""
14397 wine_fn_append_file ()
14399 as_fn_append $1 " \\$as_nl $2"
14402 wine_fn_append_rule ()
14404 as_fn_append $1 "$as_nl$2"
14407 wine_fn_has_flag ()
14409 expr ",$2," : ".*,$1,.*" >/dev/null
14412 wine_fn_all_dir_rules ()
14414 ac_dir=$1
14415 ac_alldeps=$2
14416 ac_makedep="\$(MAKEDEP)"
14417 ac_input=Make.vars.in:$ac_dir/Makefile.in
14418 if test $ac_dir != tools
14419 then
14420 ac_alldeps="$2 $ac_makedep"
14422 case $2 in
14423 *.in) ac_input=$ac_input:$2 ;;
14424 *) ac_makedep="$2 $ac_makedep" ;;
14425 esac
14427 wine_fn_append_file ALL_DIRS $ac_dir
14428 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14429 "__clean__: $ac_dir/__clean__
14430 .PHONY: $ac_dir/__clean__
14431 $ac_dir/__clean__: $ac_dir/Makefile
14432 @cd $ac_dir && \$(MAKE) clean
14433 \$(RM) $ac_dir/Makefile
14434 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14435 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14436 depend: $ac_dir/__depend__
14437 .PHONY: $ac_dir/__depend__
14438 $ac_dir/__depend__: $ac_makedep dummy
14439 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14442 wine_fn_pot_rules ()
14444 ac_dir=$1
14445 ac_flags=$2
14447 test "x$with_gettextpo" = xyes || return
14449 if wine_fn_has_flag mc $ac_flags
14450 then
14451 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14452 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14453 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
14454 @cd $ac_dir && \$(MAKE) msg.pot
14455 $ac_dir/msg.pot: tools/wmc include"
14457 if wine_fn_has_flag po $ac_flags
14458 then
14459 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14460 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14461 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14462 @cd $ac_dir && \$(MAKE) rsrc.pot
14463 $ac_dir/rsrc.pot: tools/wrc include"
14467 wine_fn_config_makefile ()
14469 ac_dir=$1
14470 ac_enable=$2
14471 ac_flags=$3
14472 ac_rules=$4
14473 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14474 return 0
14477 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
14478 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14479 "all: $ac_dir
14480 .PHONY: $ac_dir
14481 $ac_dir: $ac_dir/Makefile dummy
14482 @cd $ac_dir && \$(MAKE)"
14484 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14486 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14487 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14488 $ac_dir/__install__:: $ac_dir
14489 @cd $ac_dir && \$(MAKE) install
14490 $ac_dir/__uninstall__:: $ac_dir/Makefile
14491 @cd $ac_dir && \$(MAKE) uninstall
14492 install:: $ac_dir/__install__
14493 __uninstall__: $ac_dir/__uninstall__"
14495 if wine_fn_has_flag install-lib $ac_flags
14496 then
14497 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14498 ".PHONY: $ac_dir/__install-lib__
14499 $ac_dir/__install-lib__:: $ac_dir
14500 @cd $ac_dir && \$(MAKE) install-lib
14501 install-lib:: $ac_dir/__install-lib__"
14504 if wine_fn_has_flag install-dev $ac_flags
14505 then
14506 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14507 ".PHONY: $ac_dir/__install-dev
14508 $ac_dir/__install-dev__:: $ac_dir
14509 @cd $ac_dir && \$(MAKE) install-dev
14510 install-dev:: $ac_dir/__install-dev__"
14514 wine_fn_config_lib ()
14516 ac_name=$1
14517 ac_flags=$2
14518 ac_dir=dlls/$ac_name
14519 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14521 if wine_fn_has_flag install-dev $ac_flags
14522 then :
14523 else
14524 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14525 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14526 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14527 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14528 $ac_dir/__uninstall__::
14529 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14530 install install-dev:: $ac_dir/__install__
14531 __uninstall__: $ac_dir/__uninstall__"
14534 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14535 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14538 wine_fn_config_dll ()
14540 ac_name=$1
14541 ac_dir=dlls/$ac_name
14542 ac_enable=$2
14543 ac_flags=$3
14544 ac_implib=${4:-$ac_name}
14545 ac_file=$ac_dir/lib$ac_implib
14546 ac_dll=$ac_name
14547 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14548 ac_implibflags=""
14550 case $ac_name in
14551 *16) ac_implibflags=" -m16" ;;
14552 *.*) ;;
14553 *) ac_dll=$ac_dll.dll ;;
14554 esac
14556 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
14558 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14559 test "$ac_enable" != enable_win16 || return 0
14560 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14561 else
14562 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14563 "$ac_dir: __builddeps__
14564 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14565 @cd $ac_dir && \$(MAKE) \$@"
14567 if wine_fn_has_flag install-lib $ac_flags
14568 then :
14569 else
14570 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14571 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14572 install install-lib:: $ac_dir/__install-lib__
14573 __uninstall__: $ac_dir/__uninstall__"
14574 if test -n "$DLLEXT"
14575 then
14576 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14577 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14578 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14579 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14580 $ac_dir/__uninstall__::
14581 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14582 else
14583 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14584 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14585 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14586 $ac_dir/__uninstall__::
14587 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14591 wine_fn_pot_rules $ac_dir $ac_flags
14594 if wine_fn_has_flag staticimplib $ac_flags
14595 then
14596 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14597 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14598 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14599 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14600 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14601 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14602 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14603 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14604 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14605 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14606 $ac_dir/__uninstall__::
14607 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14608 install install-dev:: $ac_dir/__install-dev__
14609 __uninstall__: $ac_dir/__uninstall__"
14611 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14612 then
14613 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14614 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14615 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14616 $ac_dir/__uninstall__::
14617 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14620 if test "x$CROSSTEST_DISABLE" = x
14621 then
14622 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14623 "__builddeps__: $ac_file.cross.a
14624 $ac_file.cross.a: $ac_dir/Makefile dummy
14625 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14628 elif wine_fn_has_flag implib $ac_flags
14629 then
14630 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14631 "__builddeps__: $ac_file.$IMPLIBEXT
14632 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14633 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14634 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14635 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14636 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14637 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14638 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14639 $ac_dir/__uninstall__::
14640 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14641 install install-dev:: $ac_dir/__install-dev__
14642 __uninstall__: $ac_dir/__uninstall__"
14643 if test "x$CROSSTEST_DISABLE" = x
14644 then
14645 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14646 "__builddeps__: $ac_file.cross.a
14647 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14648 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14651 if test "$ac_name" != "$ac_implib"
14652 then
14653 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14654 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14655 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14656 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14657 clean::
14658 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14659 if test "x$CROSSTEST_DISABLE" = x
14660 then
14661 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14662 "__builddeps__: dlls/lib$ac_implib.cross.a
14663 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14664 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14670 wine_fn_config_program ()
14672 ac_name=$1
14673 ac_dir=programs/$ac_name
14674 ac_enable=$2
14675 ac_flags=$3
14676 ac_program=$ac_name
14678 case $ac_name in
14679 *.*) ;;
14680 *) ac_program=$ac_program.exe ;;
14681 esac
14683 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
14685 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14687 else
14688 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14689 "$ac_dir: __builddeps__"
14691 wine_fn_pot_rules $ac_dir $ac_flags
14693 wine_fn_has_flag install $ac_flags || return
14694 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14695 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14696 install install-lib:: $ac_dir/__install__
14697 __uninstall__: $ac_dir/__uninstall__"
14699 if test -n "$DLLEXT"
14700 then
14701 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14702 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14703 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14704 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14705 $ac_dir/__uninstall__::
14706 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14708 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14709 then
14710 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14711 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
14712 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14713 $ac_dir/__uninstall__::
14714 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14716 else
14717 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14718 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14719 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14720 $ac_dir/__uninstall__::
14721 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
14724 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14725 then
14726 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14727 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14728 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14729 $ac_dir/__uninstall__::
14730 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14735 wine_fn_config_test ()
14737 ac_dir=$1
14738 ac_name=$2
14739 ac_flags=$3
14740 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14741 wine_fn_all_dir_rules $ac_dir Maketest.rules
14743 if test "x$enable_tests" = xno; then :
14745 else
14746 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14747 "all: $ac_dir
14748 .PHONY: $ac_dir
14749 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14750 @cd $ac_dir && \$(MAKE)
14751 programs/winetest: $ac_dir
14752 check test: $ac_dir/__test__
14753 .PHONY: $ac_dir/__test__
14754 $ac_dir/__test__: dummy
14755 @cd $ac_dir && \$(MAKE) test
14756 testclean::
14757 \$(RM) $ac_dir/*.ok"
14759 if test "x$CROSSTEST_DISABLE" = x
14760 then
14761 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14762 "crosstest: $ac_dir/__crosstest__
14763 .PHONY: $ac_dir/__crosstest__
14764 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14765 @cd $ac_dir && \$(MAKE) crosstest"
14770 wine_fn_config_tool ()
14772 ac_dir=$1
14773 ac_flags=$2
14774 if test "x$enable_tools" = xno; then :
14775 return 0
14778 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
14780 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14781 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
14782 case $ac_dir in
14783 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14784 esac
14787 wine_fn_config_makerules ()
14789 ac_rules=$1
14790 ac_deps=$2
14791 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14792 "$ac_rules: $ac_rules.in $ac_deps config.status
14793 @./config.status $ac_rules
14794 distclean::
14795 \$(RM) $ac_rules"
14798 wine_fn_config_symlink ()
14800 ac_link=$1
14801 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14802 "$ac_link:
14803 @./config.status $ac_link
14804 distclean::
14805 \$(RM) $ac_link"
14808 if test "x$CROSSTEST_DISABLE" != x
14809 then
14810 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14811 "crosstest:
14812 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14814 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14815 wine_fn_config_symlink dlls/shell32/AUTHORS
14816 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14817 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14818 if test "x$enable_fonts" != xno; then
14819 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14820 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14822 if test "x$enable_fonts" != xno; then
14823 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14824 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14826 if test "x$enable_fonts" != xno; then
14827 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14828 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14830 if test "x$enable_fonts" != xno; then
14831 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14832 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14834 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
14835 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
14836 if test "x$enable_tools" != xno; then
14837 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14838 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14840 ac_config_links="$ac_config_links wine:tools/winewrapper"
14841 wine_fn_config_symlink wine
14842 if test "x$enable_win64" != xno; then
14843 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14844 wine_fn_config_symlink wine64
14847 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14849 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14851 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14853 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14855 ac_config_commands="$ac_config_commands dlls/user32/resources"
14857 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14859 ac_config_commands="$ac_config_commands include/wine"
14862 wine_fn_config_makerules Make.rules
14863 MAKE_RULES=Make.rules
14864 ac_config_files="$ac_config_files Make.rules"
14866 wine_fn_config_makerules Maketest.rules Make.rules
14867 MAKE_TEST_RULES=Maketest.rules
14868 ac_config_files="$ac_config_files Maketest.rules"
14870 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14871 MAKE_DLL_RULES=dlls/Makedll.rules
14872 ac_config_files="$ac_config_files dlls/Makedll.rules"
14874 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14875 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14876 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14878 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14879 MAKE_PROG_RULES=programs/Makeprog.rules
14880 ac_config_files="$ac_config_files programs/Makeprog.rules"
14883 wine_fn_config_dll acledit enable_acledit
14884 wine_fn_config_dll aclui enable_aclui implib
14885 wine_fn_config_dll activeds enable_activeds implib
14886 wine_fn_config_dll actxprxy enable_actxprxy
14887 wine_fn_config_lib adsiid
14888 wine_fn_config_dll advapi32 enable_advapi32 implib
14889 wine_fn_config_test dlls/advapi32/tests advapi32_test
14890 wine_fn_config_dll advpack enable_advpack implib
14891 wine_fn_config_test dlls/advpack/tests advpack_test
14892 wine_fn_config_dll amstream enable_amstream
14893 wine_fn_config_test dlls/amstream/tests amstream_test
14894 wine_fn_config_dll apphelp enable_apphelp
14895 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14896 wine_fn_config_dll atl enable_atl implib
14897 wine_fn_config_test dlls/atl/tests atl_test
14898 wine_fn_config_dll authz enable_authz
14899 wine_fn_config_dll avicap32 enable_avicap32 implib
14900 wine_fn_config_dll avifil32 enable_avifil32 implib,po
14901 wine_fn_config_test dlls/avifil32/tests avifil32_test
14902 wine_fn_config_dll avifile.dll16 enable_win16
14903 wine_fn_config_dll avrt enable_avrt implib
14904 wine_fn_config_dll bcrypt enable_bcrypt
14905 wine_fn_config_dll browseui enable_browseui po
14906 wine_fn_config_test dlls/browseui/tests browseui_test
14907 wine_fn_config_dll cabinet enable_cabinet implib
14908 wine_fn_config_test dlls/cabinet/tests cabinet_test
14909 wine_fn_config_dll capi2032 enable_capi2032 implib
14910 wine_fn_config_dll cards enable_cards implib
14911 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14912 wine_fn_config_dll clusapi enable_clusapi implib
14913 wine_fn_config_dll comcat enable_comcat
14914 wine_fn_config_test dlls/comcat/tests comcat_test
14915 wine_fn_config_dll comctl32 enable_comctl32 implib,po
14916 wine_fn_config_test dlls/comctl32/tests comctl32_test
14917 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
14918 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14919 wine_fn_config_dll comm.drv16 enable_win16
14920 wine_fn_config_dll commdlg.dll16 enable_win16
14921 wine_fn_config_dll compobj.dll16 enable_win16
14922 wine_fn_config_dll compstui enable_compstui implib
14923 wine_fn_config_dll credui enable_credui implib,po
14924 wine_fn_config_test dlls/credui/tests credui_test
14925 wine_fn_config_dll crtdll enable_crtdll implib
14926 wine_fn_config_dll crypt32 enable_crypt32 implib,po
14927 wine_fn_config_test dlls/crypt32/tests crypt32_test
14928 wine_fn_config_dll cryptdlg enable_cryptdlg po
14929 wine_fn_config_dll cryptdll enable_cryptdll implib
14930 wine_fn_config_dll cryptnet enable_cryptnet implib
14931 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14932 wine_fn_config_dll cryptui enable_cryptui implib,po
14933 wine_fn_config_test dlls/cryptui/tests cryptui_test
14934 wine_fn_config_dll ctapi32 enable_ctapi32
14935 wine_fn_config_dll ctl3d.dll16 enable_win16
14936 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14937 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14938 wine_fn_config_dll d3d10 enable_d3d10 implib
14939 wine_fn_config_test dlls/d3d10/tests d3d10_test
14940 wine_fn_config_dll d3d10core enable_d3d10core implib
14941 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14942 wine_fn_config_dll d3d8 enable_d3d8 implib
14943 wine_fn_config_test dlls/d3d8/tests d3d8_test
14944 wine_fn_config_dll d3d9 enable_d3d9 implib
14945 wine_fn_config_test dlls/d3d9/tests d3d9_test
14946 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14947 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14948 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14949 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14950 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14951 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14952 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14953 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14954 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14955 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14956 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14957 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14958 wine_fn_config_dll d3dim enable_d3dim implib
14959 wine_fn_config_dll d3drm enable_d3drm implib
14960 wine_fn_config_test dlls/d3drm/tests d3drm_test
14961 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14962 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14963 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14964 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14965 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14966 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14967 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14968 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14969 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14970 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14971 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14972 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14973 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14974 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14975 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14976 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14977 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14978 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14979 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14980 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14981 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14982 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14983 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14984 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14985 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14986 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14987 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14988 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14989 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14990 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14991 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14992 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14993 wine_fn_config_dll d3dxof enable_d3dxof implib
14994 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14995 wine_fn_config_dll dbgeng enable_dbgeng implib
14996 wine_fn_config_dll dbghelp enable_dbghelp implib
14997 wine_fn_config_dll dciman32 enable_dciman32 implib
14998 wine_fn_config_dll ddeml.dll16 enable_win16
14999 wine_fn_config_dll ddraw enable_ddraw implib
15000 wine_fn_config_test dlls/ddraw/tests ddraw_test
15001 wine_fn_config_dll ddrawex enable_ddrawex
15002 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15003 wine_fn_config_dll devenum enable_devenum po
15004 wine_fn_config_test dlls/devenum/tests devenum_test
15005 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15006 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15007 wine_fn_config_test dlls/dinput/tests dinput_test
15008 wine_fn_config_dll dinput8 enable_dinput8 implib
15009 wine_fn_config_test dlls/dinput8/tests dinput8_test
15010 wine_fn_config_dll dispdib.dll16 enable_win16
15011 wine_fn_config_dll dispex enable_dispex
15012 wine_fn_config_test dlls/dispex/tests dispex_test
15013 wine_fn_config_dll display.drv16 enable_win16
15014 wine_fn_config_dll dmband enable_dmband
15015 wine_fn_config_dll dmcompos enable_dmcompos
15016 wine_fn_config_dll dmime enable_dmime
15017 wine_fn_config_test dlls/dmime/tests dmime_test
15018 wine_fn_config_dll dmloader enable_dmloader
15019 wine_fn_config_test dlls/dmloader/tests dmloader_test
15020 wine_fn_config_dll dmscript enable_dmscript
15021 wine_fn_config_dll dmstyle enable_dmstyle
15022 wine_fn_config_dll dmsynth enable_dmsynth
15023 wine_fn_config_dll dmusic enable_dmusic
15024 wine_fn_config_test dlls/dmusic/tests dmusic_test
15025 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15026 wine_fn_config_dll dnsapi enable_dnsapi implib
15027 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15028 wine_fn_config_dll dplay enable_dplay implib
15029 wine_fn_config_dll dplayx enable_dplayx implib
15030 wine_fn_config_test dlls/dplayx/tests dplayx_test
15031 wine_fn_config_dll dpnaddr enable_dpnaddr
15032 wine_fn_config_dll dpnet enable_dpnet implib
15033 wine_fn_config_test dlls/dpnet/tests dpnet_test
15034 wine_fn_config_dll dpnhpast enable_dpnhpast
15035 wine_fn_config_dll dpnlobby enable_dpnlobby
15036 wine_fn_config_dll dpwsockx enable_dpwsockx
15037 wine_fn_config_dll drmclien enable_drmclien
15038 wine_fn_config_dll dsound enable_dsound implib
15039 wine_fn_config_test dlls/dsound/tests dsound_test
15040 wine_fn_config_dll dssenh enable_dssenh
15041 wine_fn_config_dll dswave enable_dswave
15042 wine_fn_config_dll dwmapi enable_dwmapi implib
15043 wine_fn_config_dll dxdiagn enable_dxdiagn po
15044 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15045 wine_fn_config_lib dxerr8
15046 wine_fn_config_lib dxerr9
15047 wine_fn_config_dll dxgi enable_dxgi implib
15048 wine_fn_config_test dlls/dxgi/tests dxgi_test
15049 wine_fn_config_lib dxguid
15050 wine_fn_config_dll explorerframe enable_explorerframe
15051 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15052 wine_fn_config_dll faultrep enable_faultrep implib
15053 wine_fn_config_test dlls/faultrep/tests faultrep_test
15054 wine_fn_config_dll fltlib enable_fltlib
15055 wine_fn_config_dll fusion enable_fusion
15056 wine_fn_config_test dlls/fusion/tests fusion_test
15057 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15058 wine_fn_config_dll gameux enable_gameux
15059 wine_fn_config_test dlls/gameux/tests gameux_test
15060 wine_fn_config_dll gdi.exe16 enable_win16
15061 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15062 wine_fn_config_test dlls/gdi32/tests gdi32_test
15063 wine_fn_config_dll gdiplus enable_gdiplus implib
15064 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15065 wine_fn_config_dll glu32 enable_glu32 implib
15066 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15067 wine_fn_config_dll gpkcsp enable_gpkcsp
15068 wine_fn_config_dll hal enable_hal
15069 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15070 wine_fn_config_dll hid enable_hid implib
15071 wine_fn_config_dll hlink enable_hlink implib
15072 wine_fn_config_test dlls/hlink/tests hlink_test
15073 wine_fn_config_dll hnetcfg enable_hnetcfg
15074 wine_fn_config_dll httpapi enable_httpapi
15075 wine_fn_config_dll iccvid enable_iccvid po
15076 wine_fn_config_dll icmp enable_icmp
15077 wine_fn_config_dll ieframe enable_ieframe implib,po
15078 wine_fn_config_test dlls/ieframe/tests ieframe_test
15079 wine_fn_config_dll ifsmgr.vxd enable_win16
15080 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15081 wine_fn_config_dll imagehlp enable_imagehlp implib
15082 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15083 wine_fn_config_dll imm.dll16 enable_win16
15084 wine_fn_config_dll imm32 enable_imm32 implib
15085 wine_fn_config_test dlls/imm32/tests imm32_test
15086 wine_fn_config_dll inetcomm enable_inetcomm implib
15087 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15088 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15089 wine_fn_config_dll inetmib1 enable_inetmib1
15090 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15091 wine_fn_config_dll infosoft enable_infosoft
15092 wine_fn_config_test dlls/infosoft/tests infosoft_test
15093 wine_fn_config_dll initpki enable_initpki
15094 wine_fn_config_dll inkobj enable_inkobj
15095 wine_fn_config_dll inseng enable_inseng
15096 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15097 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15098 wine_fn_config_dll itircl enable_itircl
15099 wine_fn_config_dll itss enable_itss
15100 wine_fn_config_test dlls/itss/tests itss_test
15101 wine_fn_config_dll jscript enable_jscript po
15102 wine_fn_config_test dlls/jscript/tests jscript_test
15103 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15104 wine_fn_config_test dlls/kernel32/tests kernel32_test
15105 wine_fn_config_dll keyboard.drv16 enable_win16
15106 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15107 wine_fn_config_dll ktmw32 enable_ktmw32
15108 wine_fn_config_dll loadperf enable_loadperf implib
15109 wine_fn_config_dll localspl enable_localspl po
15110 wine_fn_config_test dlls/localspl/tests localspl_test
15111 wine_fn_config_dll localui enable_localui po
15112 wine_fn_config_test dlls/localui/tests localui_test
15113 wine_fn_config_dll lz32 enable_lz32 implib
15114 wine_fn_config_test dlls/lz32/tests lz32_test
15115 wine_fn_config_dll lzexpand.dll16 enable_win16
15116 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15117 wine_fn_config_test dlls/mapi32/tests mapi32_test
15118 wine_fn_config_dll mapistub enable_mapistub
15119 wine_fn_config_dll mciavi32 enable_mciavi32
15120 wine_fn_config_dll mcicda enable_mcicda
15121 wine_fn_config_dll mciqtz32 enable_mciqtz32
15122 wine_fn_config_dll mciseq enable_mciseq
15123 wine_fn_config_dll mciwave enable_mciwave
15124 wine_fn_config_dll mgmtapi enable_mgmtapi
15125 wine_fn_config_dll midimap enable_midimap
15126 wine_fn_config_dll mlang enable_mlang implib
15127 wine_fn_config_test dlls/mlang/tests mlang_test
15128 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15129 wine_fn_config_dll mmdevapi enable_mmdevapi
15130 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15131 wine_fn_config_dll mmdevldr.vxd enable_win16
15132 wine_fn_config_dll mmsystem.dll16 enable_win16
15133 wine_fn_config_dll monodebg.vxd enable_win16
15134 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15135 wine_fn_config_dll mouse.drv16 enable_win16
15136 wine_fn_config_dll mpr enable_mpr implib,po
15137 wine_fn_config_dll mprapi enable_mprapi implib
15138 wine_fn_config_dll msacm.dll16 enable_win16
15139 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15140 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15141 wine_fn_config_test dlls/msacm32/tests msacm32_test
15142 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15143 wine_fn_config_dll mscat32 enable_mscat32
15144 wine_fn_config_dll mscms enable_mscms implib
15145 wine_fn_config_test dlls/mscms/tests mscms_test
15146 wine_fn_config_dll mscoree enable_mscoree
15147 wine_fn_config_test dlls/mscoree/tests mscoree_test
15148 wine_fn_config_dll msctf enable_msctf
15149 wine_fn_config_test dlls/msctf/tests msctf_test
15150 wine_fn_config_dll msdaps enable_msdaps
15151 wine_fn_config_dll msdmo enable_msdmo implib
15152 wine_fn_config_dll msftedit enable_msftedit
15153 wine_fn_config_dll msg711.acm enable_msg711_acm
15154 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15155 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15156 wine_fn_config_dll mshtml enable_mshtml implib,po
15157 wine_fn_config_test dlls/mshtml/tests mshtml_test
15158 wine_fn_config_dll msi enable_msi implib,po
15159 wine_fn_config_test dlls/msi/tests msi_test
15160 wine_fn_config_dll msident enable_msident
15161 wine_fn_config_dll msimg32 enable_msimg32 implib
15162 wine_fn_config_dll msimsg enable_msimsg
15163 wine_fn_config_dll msimtf enable_msimtf
15164 wine_fn_config_dll msisip enable_msisip
15165 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15166 wine_fn_config_dll msnet32 enable_msnet32
15167 wine_fn_config_dll mspatcha enable_mspatcha
15168 wine_fn_config_dll msrle32 enable_msrle32 po
15169 wine_fn_config_dll mssign32 enable_mssign32
15170 wine_fn_config_dll mssip32 enable_mssip32
15171 wine_fn_config_dll mstask enable_mstask
15172 wine_fn_config_test dlls/mstask/tests mstask_test
15173 wine_fn_config_dll msvcirt enable_msvcirt
15174 wine_fn_config_dll msvcp100 enable_msvcp100
15175 wine_fn_config_dll msvcp60 enable_msvcp60
15176 wine_fn_config_dll msvcp70 enable_msvcp70
15177 wine_fn_config_dll msvcp71 enable_msvcp71
15178 wine_fn_config_dll msvcp80 enable_msvcp80
15179 wine_fn_config_dll msvcp90 enable_msvcp90
15180 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15181 wine_fn_config_dll msvcr100 enable_msvcr100
15182 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15183 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15184 wine_fn_config_dll msvcr80 enable_msvcr80
15185 wine_fn_config_dll msvcr90 enable_msvcr90
15186 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15187 wine_fn_config_dll msvcrt enable_msvcrt implib
15188 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15189 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15190 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15191 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15192 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15193 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15194 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15195 wine_fn_config_dll msvidc32 enable_msvidc32 po
15196 wine_fn_config_dll msvideo.dll16 enable_win16
15197 wine_fn_config_dll mswsock enable_mswsock implib
15198 wine_fn_config_dll msxml enable_msxml
15199 wine_fn_config_dll msxml2 enable_msxml2
15200 wine_fn_config_dll msxml3 enable_msxml3
15201 wine_fn_config_test dlls/msxml3/tests msxml3_test
15202 wine_fn_config_dll msxml4 enable_msxml4
15203 wine_fn_config_dll msxml6 enable_msxml6
15204 wine_fn_config_dll nddeapi enable_nddeapi implib
15205 wine_fn_config_dll netapi32 enable_netapi32 implib
15206 wine_fn_config_test dlls/netapi32/tests netapi32_test
15207 wine_fn_config_dll newdev enable_newdev implib
15208 wine_fn_config_dll normaliz enable_normaliz implib
15209 wine_fn_config_dll npmshtml enable_npmshtml
15210 wine_fn_config_dll ntdll enable_ntdll implib
15211 wine_fn_config_test dlls/ntdll/tests ntdll_test
15212 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15213 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15214 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15215 wine_fn_config_dll ntprint enable_ntprint
15216 wine_fn_config_test dlls/ntprint/tests ntprint_test
15217 wine_fn_config_dll objsel enable_objsel
15218 wine_fn_config_dll odbc32 enable_odbc32 implib
15219 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15220 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15221 wine_fn_config_dll ole2.dll16 enable_win16
15222 wine_fn_config_dll ole2conv.dll16 enable_win16
15223 wine_fn_config_dll ole2disp.dll16 enable_win16
15224 wine_fn_config_dll ole2nls.dll16 enable_win16
15225 wine_fn_config_dll ole2prox.dll16 enable_win16
15226 wine_fn_config_dll ole2thk.dll16 enable_win16
15227 wine_fn_config_dll ole32 enable_ole32 implib
15228 wine_fn_config_test dlls/ole32/tests ole32_test
15229 wine_fn_config_dll oleacc enable_oleacc implib,po
15230 wine_fn_config_test dlls/oleacc/tests oleacc_test
15231 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15232 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15233 wine_fn_config_dll olecli.dll16 enable_win16
15234 wine_fn_config_dll olecli32 enable_olecli32 implib
15235 wine_fn_config_dll oledb32 enable_oledb32
15236 wine_fn_config_test dlls/oledb32/tests oledb32_test
15237 wine_fn_config_dll oledlg enable_oledlg implib,po
15238 wine_fn_config_dll olepro32 enable_olepro32 implib
15239 wine_fn_config_dll olesvr.dll16 enable_win16
15240 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15241 wine_fn_config_dll olethk32 enable_olethk32
15242 wine_fn_config_dll openal32 enable_openal32
15243 wine_fn_config_dll opencl enable_opencl
15244 wine_fn_config_dll opengl32 enable_opengl32 implib
15245 wine_fn_config_test dlls/opengl32/tests opengl32_test
15246 wine_fn_config_dll pdh enable_pdh implib
15247 wine_fn_config_test dlls/pdh/tests pdh_test
15248 wine_fn_config_dll photometadatahandler enable_photometadatahandler
15249 wine_fn_config_dll pidgen enable_pidgen
15250 wine_fn_config_dll powrprof enable_powrprof implib
15251 wine_fn_config_dll printui enable_printui
15252 wine_fn_config_dll propsys enable_propsys implib
15253 wine_fn_config_test dlls/propsys/tests propsys_test
15254 wine_fn_config_dll psapi enable_psapi implib
15255 wine_fn_config_test dlls/psapi/tests psapi_test
15256 wine_fn_config_dll pstorec enable_pstorec
15257 wine_fn_config_dll qcap enable_qcap
15258 wine_fn_config_dll qedit enable_qedit
15259 wine_fn_config_test dlls/qedit/tests qedit_test
15260 wine_fn_config_dll qmgr enable_qmgr
15261 wine_fn_config_test dlls/qmgr/tests qmgr_test
15262 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15263 wine_fn_config_dll quartz enable_quartz implib
15264 wine_fn_config_test dlls/quartz/tests quartz_test
15265 wine_fn_config_dll query enable_query
15266 wine_fn_config_dll rasapi16.dll16 enable_win16
15267 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15268 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15269 wine_fn_config_dll rasdlg enable_rasdlg implib
15270 wine_fn_config_dll regapi enable_regapi
15271 wine_fn_config_dll resutils enable_resutils implib
15272 wine_fn_config_dll riched20 enable_riched20 implib
15273 wine_fn_config_test dlls/riched20/tests riched20_test
15274 wine_fn_config_dll riched32 enable_riched32
15275 wine_fn_config_test dlls/riched32/tests riched32_test
15276 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15277 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15278 wine_fn_config_dll rsabase enable_rsabase
15279 wine_fn_config_dll rsaenh enable_rsaenh implib
15280 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15281 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15282 wine_fn_config_dll rtutils enable_rtutils implib
15283 wine_fn_config_dll samlib enable_samlib
15284 wine_fn_config_dll sane.ds enable_sane_ds po
15285 wine_fn_config_dll scarddlg enable_scarddlg
15286 wine_fn_config_dll sccbase enable_sccbase
15287 wine_fn_config_dll schannel enable_schannel
15288 wine_fn_config_test dlls/schannel/tests schannel_test
15289 wine_fn_config_dll scrrun enable_scrrun
15290 wine_fn_config_dll secur32 enable_secur32 implib
15291 wine_fn_config_test dlls/secur32/tests secur32_test
15292 wine_fn_config_dll security enable_security
15293 wine_fn_config_dll sensapi enable_sensapi implib
15294 wine_fn_config_dll serialui enable_serialui implib,po
15295 wine_fn_config_test dlls/serialui/tests serialui_test
15296 wine_fn_config_dll setupapi enable_setupapi implib,po
15297 wine_fn_config_test dlls/setupapi/tests setupapi_test
15298 wine_fn_config_dll setupx.dll16 enable_win16
15299 wine_fn_config_dll sfc enable_sfc implib
15300 wine_fn_config_dll sfc_os enable_sfc_os implib
15301 wine_fn_config_dll shdoclc enable_shdoclc po
15302 wine_fn_config_dll shdocvw enable_shdocvw implib
15303 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15304 wine_fn_config_dll shell.dll16 enable_win16
15305 wine_fn_config_dll shell32 enable_shell32 implib,po
15306 wine_fn_config_test dlls/shell32/tests shell32_test
15307 wine_fn_config_dll shfolder enable_shfolder implib
15308 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15309 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15310 wine_fn_config_dll slbcsp enable_slbcsp
15311 wine_fn_config_dll slc enable_slc implib
15312 wine_fn_config_dll snmpapi enable_snmpapi implib
15313 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15314 wine_fn_config_dll softpub enable_softpub
15315 wine_fn_config_dll sound.drv16 enable_win16
15316 wine_fn_config_dll spoolss enable_spoolss implib
15317 wine_fn_config_test dlls/spoolss/tests spoolss_test
15318 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15319 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15320 wine_fn_config_dll sti enable_sti implib
15321 wine_fn_config_test dlls/sti/tests sti_test
15322 wine_fn_config_dll storage.dll16 enable_win16
15323 wine_fn_config_dll stress.dll16 enable_win16
15324 wine_fn_config_lib strmbase
15325 wine_fn_config_lib strmiids
15326 wine_fn_config_dll svrapi enable_svrapi
15327 wine_fn_config_dll sxs enable_sxs implib
15328 wine_fn_config_test dlls/sxs/tests sxs_test
15329 wine_fn_config_dll system.drv16 enable_win16
15330 wine_fn_config_dll t2embed enable_t2embed
15331 wine_fn_config_dll tapi32 enable_tapi32 implib
15332 wine_fn_config_dll toolhelp.dll16 enable_win16
15333 wine_fn_config_dll traffic enable_traffic
15334 wine_fn_config_dll twain.dll16 enable_win16
15335 wine_fn_config_dll twain_32 enable_twain_32
15336 wine_fn_config_test dlls/twain_32/tests twain_32_test
15337 wine_fn_config_dll typelib.dll16 enable_win16
15338 wine_fn_config_dll unicows enable_unicows implib
15339 wine_fn_config_dll updspapi enable_updspapi
15340 wine_fn_config_dll url enable_url implib
15341 wine_fn_config_dll urlmon enable_urlmon implib
15342 wine_fn_config_test dlls/urlmon/tests urlmon_test
15343 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15344 wine_fn_config_dll user.exe16 enable_win16
15345 wine_fn_config_dll user32 enable_user32 implib,po
15346 wine_fn_config_test dlls/user32/tests user32_test
15347 wine_fn_config_dll userenv enable_userenv implib
15348 wine_fn_config_test dlls/userenv/tests userenv_test
15349 wine_fn_config_dll usp10 enable_usp10 implib
15350 wine_fn_config_test dlls/usp10/tests usp10_test
15351 wine_fn_config_lib uuid
15352 wine_fn_config_dll uxtheme enable_uxtheme implib
15353 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15354 wine_fn_config_dll vbscript enable_vbscript
15355 wine_fn_config_test dlls/vbscript/tests vbscript_test
15356 wine_fn_config_dll vcomp enable_vcomp
15357 wine_fn_config_dll vcomp100 enable_vcomp100
15358 wine_fn_config_dll vdhcp.vxd enable_win16
15359 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15360 wine_fn_config_dll ver.dll16 enable_win16
15361 wine_fn_config_dll version enable_version implib
15362 wine_fn_config_test dlls/version/tests version_test
15363 wine_fn_config_dll vmm.vxd enable_win16
15364 wine_fn_config_dll vnbt.vxd enable_win16
15365 wine_fn_config_dll vnetbios.vxd enable_win16
15366 wine_fn_config_dll vtdapi.vxd enable_win16
15367 wine_fn_config_dll vwin32.vxd enable_win16
15368 wine_fn_config_dll w32skrnl enable_win16
15369 wine_fn_config_dll w32sys.dll16 enable_win16
15370 wine_fn_config_dll wbemprox enable_wbemprox
15371 wine_fn_config_dll wer enable_wer implib
15372 wine_fn_config_test dlls/wer/tests wer_test
15373 wine_fn_config_dll wevtapi enable_wevtapi
15374 wine_fn_config_dll wiaservc enable_wiaservc
15375 wine_fn_config_dll win32s16.dll16 enable_win16
15376 wine_fn_config_dll win87em.dll16 enable_win16
15377 wine_fn_config_dll winaspi.dll16 enable_win16
15378 wine_fn_config_dll windebug.dll16 enable_win16
15379 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15380 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15381 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15382 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15383 wine_fn_config_lib winecrt0
15384 wine_fn_config_dll wined3d enable_wined3d implib
15385 wine_fn_config_dll winegstreamer enable_winegstreamer
15386 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15387 wine_fn_config_dll winemapi enable_winemapi
15388 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15389 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15390 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
15391 wine_fn_config_dll wineps16.drv16 enable_win16
15392 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15393 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15394 wine_fn_config_dll winex11.drv enable_winex11_drv
15395 wine_fn_config_dll wing.dll16 enable_win16
15396 wine_fn_config_dll wing32 enable_wing32
15397 wine_fn_config_dll winhttp enable_winhttp implib
15398 wine_fn_config_test dlls/winhttp/tests winhttp_test
15399 wine_fn_config_dll wininet enable_wininet implib,po
15400 wine_fn_config_test dlls/wininet/tests wininet_test
15401 wine_fn_config_dll winmm enable_winmm implib,po
15402 wine_fn_config_test dlls/winmm/tests winmm_test
15403 wine_fn_config_dll winnls.dll16 enable_win16
15404 wine_fn_config_dll winnls32 enable_winnls32 implib
15405 wine_fn_config_dll winscard enable_winscard implib
15406 wine_fn_config_dll winsock.dll16 enable_win16
15407 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15408 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15409 wine_fn_config_dll winsta enable_winsta
15410 wine_fn_config_dll wintab.dll16 enable_win16
15411 wine_fn_config_dll wintab32 enable_wintab32 implib
15412 wine_fn_config_test dlls/wintab32/tests wintab32_test
15413 wine_fn_config_dll wintrust enable_wintrust implib
15414 wine_fn_config_test dlls/wintrust/tests wintrust_test
15415 wine_fn_config_dll wlanapi enable_wlanapi
15416 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15417 wine_fn_config_test dlls/wldap32/tests wldap32_test
15418 wine_fn_config_dll wmi enable_wmi
15419 wine_fn_config_dll wmiutils enable_wmiutils
15420 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15421 wine_fn_config_dll wow32 enable_win16 implib
15422 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15423 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15424 wine_fn_config_dll wshom.ocx enable_wshom_ocx
15425 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
15426 wine_fn_config_dll wsock32 enable_wsock32 implib
15427 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15428 wine_fn_config_dll wuapi enable_wuapi
15429 wine_fn_config_dll wuaueng enable_wuaueng
15430 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15431 wine_fn_config_dll xinput1_1 enable_xinput1_1
15432 wine_fn_config_dll xinput1_2 enable_xinput1_2
15433 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15434 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15435 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15436 wine_fn_config_dll xmllite enable_xmllite
15437 wine_fn_config_test dlls/xmllite/tests xmllite_test
15438 wine_fn_config_dll xolehlp enable_xolehlp
15439 wine_fn_config_dll xpsprint enable_xpsprint
15440 wine_fn_config_makefile documentation enable_documentation
15441 wine_fn_config_makefile fonts enable_fonts install-lib
15442 wine_fn_config_makefile include enable_include install-dev
15443 wine_fn_config_makefile libs/port enable_libs_port
15444 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15445 wine_fn_config_makefile libs/wpp enable_libs_wpp
15446 wine_fn_config_makefile loader enable_loader install-lib,manpage
15447 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15448 wine_fn_config_program attrib enable_attrib install,po
15449 wine_fn_config_program cabarc enable_cabarc install
15450 wine_fn_config_program cacls enable_cacls install
15451 wine_fn_config_program clock enable_clock install,po
15452 wine_fn_config_program cmd enable_cmd install,po
15453 wine_fn_config_test programs/cmd/tests cmd.exe_test
15454 wine_fn_config_program control enable_control install
15455 wine_fn_config_program cscript enable_cscript install
15456 wine_fn_config_program dxdiag enable_dxdiag install,po
15457 wine_fn_config_program eject enable_eject install
15458 wine_fn_config_program expand enable_expand install
15459 wine_fn_config_program explorer enable_explorer install,po
15460 wine_fn_config_program extrac32 enable_extrac32 install
15461 wine_fn_config_program hh enable_hh install
15462 wine_fn_config_program hostname enable_hostname install,po
15463 wine_fn_config_program icinfo enable_icinfo install
15464 wine_fn_config_program iexplore enable_iexplore install
15465 wine_fn_config_program ipconfig enable_ipconfig install,po
15466 wine_fn_config_program lodctr enable_lodctr install
15467 wine_fn_config_program mofcomp enable_mofcomp install
15468 wine_fn_config_program mshta enable_mshta install
15469 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
15470 wine_fn_config_program net enable_net install,po
15471 wine_fn_config_program netsh enable_netsh install
15472 wine_fn_config_program ngen enable_ngen install
15473 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
15474 wine_fn_config_program oleview enable_oleview install,po
15475 wine_fn_config_program ping enable_ping install
15476 wine_fn_config_program plugplay enable_plugplay install
15477 wine_fn_config_program presentationfontcache enable_presentationfontcache install
15478 wine_fn_config_program progman enable_progman install,po
15479 wine_fn_config_program reg enable_reg install,po
15480 wine_fn_config_program regasm enable_regasm install
15481 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
15482 wine_fn_config_test programs/regedit/tests regedit.exe_test
15483 wine_fn_config_program regsvcs enable_regsvcs install
15484 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
15485 wine_fn_config_program rpcss enable_rpcss install
15486 wine_fn_config_program rundll.exe16 enable_win16 install
15487 wine_fn_config_program rundll32 enable_rundll32 install
15488 wine_fn_config_program sc enable_sc install
15489 wine_fn_config_program secedit enable_secedit install
15490 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15491 wine_fn_config_program services enable_services install
15492 wine_fn_config_program spoolsv enable_spoolsv install
15493 wine_fn_config_program start enable_start install,po
15494 wine_fn_config_program svchost enable_svchost install
15495 wine_fn_config_program taskkill enable_taskkill install,po
15496 wine_fn_config_program taskmgr enable_taskmgr install,po
15497 wine_fn_config_program termsv enable_termsv install
15498 wine_fn_config_program uninstaller enable_uninstaller install,po
15499 wine_fn_config_program unlodctr enable_unlodctr install
15500 wine_fn_config_program view enable_view install,po
15501 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
15502 wine_fn_config_program winebrowser enable_winebrowser install
15503 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15504 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15505 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
15506 wine_fn_config_program winedevice enable_winedevice install
15507 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
15508 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15509 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
15510 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15511 wine_fn_config_program winepath enable_winepath install,installbin,manpage
15512 wine_fn_config_program winetest enable_winetest
15513 wine_fn_config_program winevdm enable_win16 install
15514 wine_fn_config_program winhelp.exe16 enable_win16 install
15515 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15516 wine_fn_config_program winoldap.mod16 enable_win16 install
15517 wine_fn_config_program winver enable_winver install
15518 wine_fn_config_program wmic enable_wmic install
15519 wine_fn_config_program wordpad enable_wordpad install,po
15520 wine_fn_config_program write enable_write install,po
15521 wine_fn_config_program wscript enable_wscript install
15522 wine_fn_config_test programs/wscript/tests wscript.exe_test
15523 wine_fn_config_program wusa enable_wusa install
15524 wine_fn_config_program xcopy enable_xcopy install,po
15525 wine_fn_config_makefile server enable_server install-lib,manpage
15526 wine_fn_config_tool tools install-dev,install-lib,manpage
15527 wine_fn_config_tool tools/widl install-dev,manpage
15528 wine_fn_config_tool tools/winebuild install-dev,manpage
15529 wine_fn_config_tool tools/winedump install-dev,manpage
15530 wine_fn_config_tool tools/winegcc install-dev,manpage
15531 wine_fn_config_tool tools/wmc install-dev,manpage
15532 wine_fn_config_tool tools/wrc install-dev,manpage
15534 LINGUAS="\
15535 ar \
15536 bg \
15537 ca \
15538 cs \
15539 da \
15540 de \
15541 el \
15542 en \
15543 en_US \
15544 eo \
15545 es \
15546 fa \
15547 fi \
15548 fr \
15549 he \
15550 hi \
15551 hu \
15552 it \
15553 ja \
15554 ko \
15555 lt \
15556 ml \
15557 nb_NO \
15558 nl \
15559 or \
15560 pa \
15561 pl \
15562 pt_BR \
15563 pt_PT \
15564 rm \
15565 ro \
15566 ru \
15567 sk \
15568 sl \
15569 sr_RS@cyrillic \
15570 sr_RS@latin \
15571 sv \
15572 te \
15573 th \
15574 tr \
15575 uk \
15576 wa \
15577 zh_CN \
15578 zh_TW"
15582 ac_config_commands="$ac_config_commands Makefile"
15585 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15589 if test "x$enable_maintainer_mode" = xyes
15590 then
15591 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15592 cd \$(srcdir) && autoconf --warnings=all
15593 \$(srcdir)/include/config.h.in: include/stamp-h.in
15594 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15595 cd \$(srcdir) && autoheader --warnings=all
15596 @echo timestamp > \$@"
15599 if test "x$with_gettextpo" = xyes
15600 then
15601 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15602 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15603 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
15604 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15605 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15606 msgcat -o \$@ \$(ALL_POT_FILES)"
15609 if test "$MSGFMT" != false
15610 then
15611 PORCFLAGS="--po-dir=\$(top_builddir)/po"
15613 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
15614 else
15615 LINGUAS=
15618 if test "x$enable_tools" != xno
15619 then
15620 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15621 clean:: __clean__
15622 \$(RM) tools/makedep\$(EXEEXT)"
15625 if test -n "$with_wine64"
15626 then
15627 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15628 fonts server tools:
15629 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15630 $with_wine64/loader/wine:
15631 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15632 $with_wine64/loader/wine-preloader:
15633 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15634 clean::
15635 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15638 cat >confcache <<\_ACEOF
15639 # This file is a shell script that caches the results of configure
15640 # tests run on this system so they can be shared between configure
15641 # scripts and configure runs, see configure's option --config-cache.
15642 # It is not useful on other systems. If it contains results you don't
15643 # want to keep, you may remove or edit it.
15645 # config.status only pays attention to the cache file if you give it
15646 # the --recheck option to rerun configure.
15648 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15649 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15650 # following values.
15652 _ACEOF
15654 # The following way of writing the cache mishandles newlines in values,
15655 # but we know of no workaround that is simple, portable, and efficient.
15656 # So, we kill variables containing newlines.
15657 # Ultrix sh set writes to stderr and can't be redirected directly,
15658 # and sets the high bit in the cache file unless we assign to the vars.
15660 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15661 eval ac_val=\$$ac_var
15662 case $ac_val in #(
15663 *${as_nl}*)
15664 case $ac_var in #(
15665 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15666 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15667 esac
15668 case $ac_var in #(
15669 _ | IFS | as_nl) ;; #(
15670 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15671 *) { eval $ac_var=; unset $ac_var;} ;;
15672 esac ;;
15673 esac
15674 done
15676 (set) 2>&1 |
15677 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15678 *${as_nl}ac_space=\ *)
15679 # `set' does not quote correctly, so add quotes: double-quote
15680 # substitution turns \\\\ into \\, and sed turns \\ into \.
15681 sed -n \
15682 "s/'/'\\\\''/g;
15683 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15684 ;; #(
15686 # `set' quotes correctly as required by POSIX, so do not add quotes.
15687 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15689 esac |
15690 sort
15692 sed '
15693 /^ac_cv_env_/b end
15694 t clear
15695 :clear
15696 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15697 t end
15698 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15699 :end' >>confcache
15700 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15701 if test -w "$cache_file"; then
15702 if test "x$cache_file" != "x/dev/null"; then
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15704 $as_echo "$as_me: updating cache $cache_file" >&6;}
15705 if test ! -f "$cache_file" || test -h "$cache_file"; then
15706 cat confcache >"$cache_file"
15707 else
15708 case $cache_file in #(
15709 */* | ?:*)
15710 mv -f confcache "$cache_file"$$ &&
15711 mv -f "$cache_file"$$ "$cache_file" ;; #(
15713 mv -f confcache "$cache_file" ;;
15714 esac
15717 else
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15719 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15722 rm -f confcache
15724 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15725 # Let make expand exec_prefix.
15726 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15728 DEFS=-DHAVE_CONFIG_H
15730 ac_libobjs=
15731 ac_ltlibobjs=
15733 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15734 # 1. Remove the extension, and $U if already installed.
15735 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15736 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15737 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15738 # will be set to the directory where LIBOBJS objects are built.
15739 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15740 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15741 done
15742 LIBOBJS=$ac_libobjs
15744 LTLIBOBJS=$ac_ltlibobjs
15748 : "${CONFIG_STATUS=./config.status}"
15749 ac_write_fail=0
15750 ac_clean_files_save=$ac_clean_files
15751 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15753 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15754 as_write_fail=0
15755 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15756 #! $SHELL
15757 # Generated by $as_me.
15758 # Run this file to recreate the current configuration.
15759 # Compiler output produced by configure, useful for debugging
15760 # configure, is in config.log if it exists.
15762 debug=false
15763 ac_cs_recheck=false
15764 ac_cs_silent=false
15766 SHELL=\${CONFIG_SHELL-$SHELL}
15767 export SHELL
15768 _ASEOF
15769 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15770 ## -------------------- ##
15771 ## M4sh Initialization. ##
15772 ## -------------------- ##
15774 # Be more Bourne compatible
15775 DUALCASE=1; export DUALCASE # for MKS sh
15776 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15777 emulate sh
15778 NULLCMD=:
15779 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15780 # is contrary to our usage. Disable this feature.
15781 alias -g '${1+"$@"}'='"$@"'
15782 setopt NO_GLOB_SUBST
15783 else
15784 case `(set -o) 2>/dev/null` in #(
15785 *posix*) :
15786 set -o posix ;; #(
15787 *) :
15789 esac
15793 as_nl='
15795 export as_nl
15796 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15797 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15798 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15799 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15800 # Prefer a ksh shell builtin over an external printf program on Solaris,
15801 # but without wasting forks for bash or zsh.
15802 if test -z "$BASH_VERSION$ZSH_VERSION" \
15803 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15804 as_echo='print -r --'
15805 as_echo_n='print -rn --'
15806 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15807 as_echo='printf %s\n'
15808 as_echo_n='printf %s'
15809 else
15810 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15811 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15812 as_echo_n='/usr/ucb/echo -n'
15813 else
15814 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15815 as_echo_n_body='eval
15816 arg=$1;
15817 case $arg in #(
15818 *"$as_nl"*)
15819 expr "X$arg" : "X\\(.*\\)$as_nl";
15820 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15821 esac;
15822 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15824 export as_echo_n_body
15825 as_echo_n='sh -c $as_echo_n_body as_echo'
15827 export as_echo_body
15828 as_echo='sh -c $as_echo_body as_echo'
15831 # The user is always right.
15832 if test "${PATH_SEPARATOR+set}" != set; then
15833 PATH_SEPARATOR=:
15834 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15835 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15836 PATH_SEPARATOR=';'
15841 # IFS
15842 # We need space, tab and new line, in precisely that order. Quoting is
15843 # there to prevent editors from complaining about space-tab.
15844 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15845 # splitting by setting IFS to empty value.)
15846 IFS=" "" $as_nl"
15848 # Find who we are. Look in the path if we contain no directory separator.
15849 as_myself=
15850 case $0 in #((
15851 *[\\/]* ) as_myself=$0 ;;
15852 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15853 for as_dir in $PATH
15855 IFS=$as_save_IFS
15856 test -z "$as_dir" && as_dir=.
15857 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15858 done
15859 IFS=$as_save_IFS
15862 esac
15863 # We did not find ourselves, most probably we were run as `sh COMMAND'
15864 # in which case we are not to be found in the path.
15865 if test "x$as_myself" = x; then
15866 as_myself=$0
15868 if test ! -f "$as_myself"; then
15869 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15870 exit 1
15873 # Unset variables that we do not need and which cause bugs (e.g. in
15874 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15875 # suppresses any "Segmentation fault" message there. '((' could
15876 # trigger a bug in pdksh 5.2.14.
15877 for as_var in BASH_ENV ENV MAIL MAILPATH
15878 do eval test x\${$as_var+set} = xset \
15879 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15880 done
15881 PS1='$ '
15882 PS2='> '
15883 PS4='+ '
15885 # NLS nuisances.
15886 LC_ALL=C
15887 export LC_ALL
15888 LANGUAGE=C
15889 export LANGUAGE
15891 # CDPATH.
15892 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15895 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15896 # ----------------------------------------
15897 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15898 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15899 # script with STATUS, using 1 if that was 0.
15900 as_fn_error ()
15902 as_status=$1; test $as_status -eq 0 && as_status=1
15903 if test "$4"; then
15904 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15905 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15907 $as_echo "$as_me: error: $2" >&2
15908 as_fn_exit $as_status
15909 } # as_fn_error
15912 # as_fn_set_status STATUS
15913 # -----------------------
15914 # Set $? to STATUS, without forking.
15915 as_fn_set_status ()
15917 return $1
15918 } # as_fn_set_status
15920 # as_fn_exit STATUS
15921 # -----------------
15922 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15923 as_fn_exit ()
15925 set +e
15926 as_fn_set_status $1
15927 exit $1
15928 } # as_fn_exit
15930 # as_fn_unset VAR
15931 # ---------------
15932 # Portably unset VAR.
15933 as_fn_unset ()
15935 { eval $1=; unset $1;}
15937 as_unset=as_fn_unset
15938 # as_fn_append VAR VALUE
15939 # ----------------------
15940 # Append the text in VALUE to the end of the definition contained in VAR. Take
15941 # advantage of any shell optimizations that allow amortized linear growth over
15942 # repeated appends, instead of the typical quadratic growth present in naive
15943 # implementations.
15944 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15945 eval 'as_fn_append ()
15947 eval $1+=\$2
15949 else
15950 as_fn_append ()
15952 eval $1=\$$1\$2
15954 fi # as_fn_append
15956 # as_fn_arith ARG...
15957 # ------------------
15958 # Perform arithmetic evaluation on the ARGs, and store the result in the
15959 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15960 # must be portable across $(()) and expr.
15961 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15962 eval 'as_fn_arith ()
15964 as_val=$(( $* ))
15966 else
15967 as_fn_arith ()
15969 as_val=`expr "$@" || test $? -eq 1`
15971 fi # as_fn_arith
15974 if expr a : '\(a\)' >/dev/null 2>&1 &&
15975 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15976 as_expr=expr
15977 else
15978 as_expr=false
15981 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15982 as_basename=basename
15983 else
15984 as_basename=false
15987 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15988 as_dirname=dirname
15989 else
15990 as_dirname=false
15993 as_me=`$as_basename -- "$0" ||
15994 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15995 X"$0" : 'X\(//\)$' \| \
15996 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15997 $as_echo X/"$0" |
15998 sed '/^.*\/\([^/][^/]*\)\/*$/{
15999 s//\1/
16002 /^X\/\(\/\/\)$/{
16003 s//\1/
16006 /^X\/\(\/\).*/{
16007 s//\1/
16010 s/.*/./; q'`
16012 # Avoid depending upon Character Ranges.
16013 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16014 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16015 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16016 as_cr_digits='0123456789'
16017 as_cr_alnum=$as_cr_Letters$as_cr_digits
16019 ECHO_C= ECHO_N= ECHO_T=
16020 case `echo -n x` in #(((((
16021 -n*)
16022 case `echo 'xy\c'` in
16023 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16024 xy) ECHO_C='\c';;
16025 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16026 ECHO_T=' ';;
16027 esac;;
16029 ECHO_N='-n';;
16030 esac
16032 rm -f conf$$ conf$$.exe conf$$.file
16033 if test -d conf$$.dir; then
16034 rm -f conf$$.dir/conf$$.file
16035 else
16036 rm -f conf$$.dir
16037 mkdir conf$$.dir 2>/dev/null
16039 if (echo >conf$$.file) 2>/dev/null; then
16040 if ln -s conf$$.file conf$$ 2>/dev/null; then
16041 as_ln_s='ln -s'
16042 # ... but there are two gotchas:
16043 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16044 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16045 # In both cases, we have to default to `cp -p'.
16046 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16047 as_ln_s='cp -p'
16048 elif ln conf$$.file conf$$ 2>/dev/null; then
16049 as_ln_s=ln
16050 else
16051 as_ln_s='cp -p'
16053 else
16054 as_ln_s='cp -p'
16056 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16057 rmdir conf$$.dir 2>/dev/null
16060 # as_fn_mkdir_p
16061 # -------------
16062 # Create "$as_dir" as a directory, including parents if necessary.
16063 as_fn_mkdir_p ()
16066 case $as_dir in #(
16067 -*) as_dir=./$as_dir;;
16068 esac
16069 test -d "$as_dir" || eval $as_mkdir_p || {
16070 as_dirs=
16071 while :; do
16072 case $as_dir in #(
16073 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16074 *) as_qdir=$as_dir;;
16075 esac
16076 as_dirs="'$as_qdir' $as_dirs"
16077 as_dir=`$as_dirname -- "$as_dir" ||
16078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16079 X"$as_dir" : 'X\(//\)[^/]' \| \
16080 X"$as_dir" : 'X\(//\)$' \| \
16081 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16082 $as_echo X"$as_dir" |
16083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16084 s//\1/
16087 /^X\(\/\/\)[^/].*/{
16088 s//\1/
16091 /^X\(\/\/\)$/{
16092 s//\1/
16095 /^X\(\/\).*/{
16096 s//\1/
16099 s/.*/./; q'`
16100 test -d "$as_dir" && break
16101 done
16102 test -z "$as_dirs" || eval "mkdir $as_dirs"
16103 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16106 } # as_fn_mkdir_p
16107 if mkdir -p . 2>/dev/null; then
16108 as_mkdir_p='mkdir -p "$as_dir"'
16109 else
16110 test -d ./-p && rmdir ./-p
16111 as_mkdir_p=false
16114 if test -x / >/dev/null 2>&1; then
16115 as_test_x='test -x'
16116 else
16117 if ls -dL / >/dev/null 2>&1; then
16118 as_ls_L_option=L
16119 else
16120 as_ls_L_option=
16122 as_test_x='
16123 eval sh -c '\''
16124 if test -d "$1"; then
16125 test -d "$1/.";
16126 else
16127 case $1 in #(
16128 -*)set "./$1";;
16129 esac;
16130 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16131 ???[sx]*):;;*)false;;esac;fi
16132 '\'' sh
16135 as_executable_p=$as_test_x
16137 # Sed expression to map a string onto a valid CPP name.
16138 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16140 # Sed expression to map a string onto a valid variable name.
16141 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16144 exec 6>&1
16145 ## ----------------------------------- ##
16146 ## Main body of $CONFIG_STATUS script. ##
16147 ## ----------------------------------- ##
16148 _ASEOF
16149 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16152 # Save the log message, to keep $0 and so on meaningful, and to
16153 # report actual input values of CONFIG_FILES etc. instead of their
16154 # values after options handling.
16155 ac_log="
16156 This file was extended by Wine $as_me 1.5.0, which was
16157 generated by GNU Autoconf 2.68. Invocation command line was
16159 CONFIG_FILES = $CONFIG_FILES
16160 CONFIG_HEADERS = $CONFIG_HEADERS
16161 CONFIG_LINKS = $CONFIG_LINKS
16162 CONFIG_COMMANDS = $CONFIG_COMMANDS
16163 $ $0 $@
16165 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16168 _ACEOF
16170 case $ac_config_files in *"
16171 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16172 esac
16174 case $ac_config_headers in *"
16175 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16176 esac
16179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16180 # Files that config.status was made for.
16181 config_files="$ac_config_files"
16182 config_headers="$ac_config_headers"
16183 config_links="$ac_config_links"
16184 config_commands="$ac_config_commands"
16186 _ACEOF
16188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16189 ac_cs_usage="\
16190 \`$as_me' instantiates files and other configuration actions
16191 from templates according to the current configuration. Unless the files
16192 and actions are specified as TAGs, all are instantiated by default.
16194 Usage: $0 [OPTION]... [TAG]...
16196 -h, --help print this help, then exit
16197 -V, --version print version number and configuration settings, then exit
16198 --config print configuration, then exit
16199 -q, --quiet, --silent
16200 do not print progress messages
16201 -d, --debug don't remove temporary files
16202 --recheck update $as_me by reconfiguring in the same conditions
16203 --file=FILE[:TEMPLATE]
16204 instantiate the configuration file FILE
16205 --header=FILE[:TEMPLATE]
16206 instantiate the configuration header FILE
16208 Configuration files:
16209 $config_files
16211 Configuration headers:
16212 $config_headers
16214 Configuration links:
16215 $config_links
16217 Configuration commands:
16218 $config_commands
16220 Report bugs to <wine-devel@winehq.org>.
16221 Wine home page: <http://www.winehq.org>."
16223 _ACEOF
16224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16225 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16226 ac_cs_version="\\
16227 Wine config.status 1.5.0
16228 configured by $0, generated by GNU Autoconf 2.68,
16229 with options \\"\$ac_cs_config\\"
16231 Copyright (C) 2010 Free Software Foundation, Inc.
16232 This config.status script is free software; the Free Software Foundation
16233 gives unlimited permission to copy, distribute and modify it."
16235 ac_pwd='$ac_pwd'
16236 srcdir='$srcdir'
16237 INSTALL='$INSTALL'
16238 test -n "\$AWK" || AWK=awk
16239 _ACEOF
16241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16242 # The default lists apply if the user does not specify any file.
16243 ac_need_defaults=:
16244 while test $# != 0
16246 case $1 in
16247 --*=?*)
16248 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16249 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16250 ac_shift=:
16252 --*=)
16253 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16254 ac_optarg=
16255 ac_shift=:
16258 ac_option=$1
16259 ac_optarg=$2
16260 ac_shift=shift
16262 esac
16264 case $ac_option in
16265 # Handling of the options.
16266 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16267 ac_cs_recheck=: ;;
16268 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16269 $as_echo "$ac_cs_version"; exit ;;
16270 --config | --confi | --conf | --con | --co | --c )
16271 $as_echo "$ac_cs_config"; exit ;;
16272 --debug | --debu | --deb | --de | --d | -d )
16273 debug=: ;;
16274 --file | --fil | --fi | --f )
16275 $ac_shift
16276 case $ac_optarg in
16277 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16278 '') as_fn_error $? "missing file argument" ;;
16279 esac
16280 as_fn_append CONFIG_FILES " '$ac_optarg'"
16281 ac_need_defaults=false;;
16282 --header | --heade | --head | --hea )
16283 $ac_shift
16284 case $ac_optarg in
16285 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16286 esac
16287 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16288 ac_need_defaults=false;;
16289 --he | --h)
16290 # Conflict between --help and --header
16291 as_fn_error $? "ambiguous option: \`$1'
16292 Try \`$0 --help' for more information.";;
16293 --help | --hel | -h )
16294 $as_echo "$ac_cs_usage"; exit ;;
16295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16296 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16297 ac_cs_silent=: ;;
16299 # This is an error.
16300 -*) as_fn_error $? "unrecognized option: \`$1'
16301 Try \`$0 --help' for more information." ;;
16303 *) as_fn_append ac_config_targets " $1"
16304 ac_need_defaults=false ;;
16306 esac
16307 shift
16308 done
16310 ac_configure_extra_args=
16312 if $ac_cs_silent; then
16313 exec 6>/dev/null
16314 ac_configure_extra_args="$ac_configure_extra_args --silent"
16317 _ACEOF
16318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16319 if \$ac_cs_recheck; then
16320 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16321 shift
16322 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16323 CONFIG_SHELL='$SHELL'
16324 export CONFIG_SHELL
16325 exec "\$@"
16328 _ACEOF
16329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16330 exec 5>>config.log
16332 echo
16333 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16334 ## Running $as_me. ##
16335 _ASBOX
16336 $as_echo "$ac_log"
16337 } >&5
16339 _ACEOF
16340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16342 # INIT-COMMANDS
16344 wine_fn_output_makefile ()
16346 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16347 $ALL_MAKEFILE_DEPENDS
16348 _WINE_EOF
16349 as_fn_error $? "could not create Makefile" "$LINENO" 5
16352 _ACEOF
16354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16356 # Handling of arguments.
16357 for ac_config_target in $ac_config_targets
16359 case $ac_config_target in
16360 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16361 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16362 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16363 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16364 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16365 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16366 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16367 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16368 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
16369 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16370 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16371 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16372 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16373 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16374 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16375 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16376 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16377 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16378 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16379 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16380 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16381 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16382 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16383 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16384 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16385 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16387 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16388 esac
16389 done
16392 # If the user did not use the arguments to specify the items to instantiate,
16393 # then the envvar interface is used. Set only those that are not.
16394 # We use the long form for the default assignment because of an extremely
16395 # bizarre bug on SunOS 4.1.3.
16396 if $ac_need_defaults; then
16397 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16398 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16399 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16400 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16403 # Have a temporary directory for convenience. Make it in the build tree
16404 # simply because there is no reason against having it here, and in addition,
16405 # creating and moving files from /tmp can sometimes cause problems.
16406 # Hook for its removal unless debugging.
16407 # Note that there is a small window in which the directory will not be cleaned:
16408 # after its creation but before its name has been assigned to `$tmp'.
16409 $debug ||
16411 tmp= ac_tmp=
16412 trap 'exit_status=$?
16413 : "${ac_tmp:=$tmp}"
16414 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16416 trap 'as_fn_exit 1' 1 2 13 15
16418 # Create a (secure) tmp directory for tmp files.
16421 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16422 test -d "$tmp"
16423 } ||
16425 tmp=./conf$$-$RANDOM
16426 (umask 077 && mkdir "$tmp")
16427 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16428 ac_tmp=$tmp
16430 # Set up the scripts for CONFIG_FILES section.
16431 # No need to generate them if there are no CONFIG_FILES.
16432 # This happens for instance with `./config.status config.h'.
16433 if test -n "$CONFIG_FILES"; then
16435 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16436 ac_cs_awk_getline=:
16437 ac_cs_awk_pipe_init=
16438 ac_cs_awk_read_file='
16439 while ((getline aline < (F[key])) > 0)
16440 print(aline)
16441 close(F[key])'
16442 ac_cs_awk_pipe_fini=
16443 else
16444 ac_cs_awk_getline=false
16445 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16446 ac_cs_awk_read_file='
16447 print "|#_!!_#|"
16448 print "cat " F[key] " &&"
16449 '$ac_cs_awk_pipe_init
16450 # The final `:' finishes the AND list.
16451 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16453 ac_cr=`echo X | tr X '\015'`
16454 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16455 # But we know of no other shell where ac_cr would be empty at this
16456 # point, so we can use a bashism as a fallback.
16457 if test "x$ac_cr" = x; then
16458 eval ac_cr=\$\'\\r\'
16460 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16461 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16462 ac_cs_awk_cr='\\r'
16463 else
16464 ac_cs_awk_cr=$ac_cr
16467 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16468 _ACEOF
16470 # Create commands to substitute file output variables.
16472 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16473 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16474 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16475 echo "_ACAWK" &&
16476 echo "_ACEOF"
16477 } >conf$$files.sh &&
16478 . ./conf$$files.sh ||
16479 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16480 rm -f conf$$files.sh
16483 echo "cat >conf$$subs.awk <<_ACEOF" &&
16484 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16485 echo "_ACEOF"
16486 } >conf$$subs.sh ||
16487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16488 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16489 ac_delim='%!_!# '
16490 for ac_last_try in false false false false false :; do
16491 . ./conf$$subs.sh ||
16492 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16494 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16495 if test $ac_delim_n = $ac_delim_num; then
16496 break
16497 elif $ac_last_try; then
16498 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16499 else
16500 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16502 done
16503 rm -f conf$$subs.sh
16505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16506 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16507 _ACEOF
16508 sed -n '
16510 s/^/S["/; s/!.*/"]=/
16513 s/^[^!]*!//
16514 :repl
16515 t repl
16516 s/'"$ac_delim"'$//
16517 t delim
16520 s/\(.\{148\}\)..*/\1/
16521 t more1
16522 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16525 b repl
16526 :more1
16527 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16530 s/.\{148\}//
16531 t nl
16532 :delim
16534 s/\(.\{148\}\)..*/\1/
16535 t more2
16536 s/["\\]/\\&/g; s/^/"/; s/$/"/
16539 :more2
16540 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16543 s/.\{148\}//
16544 t delim
16545 ' <conf$$subs.awk | sed '
16546 /^[^""]/{
16548 s/\n//
16550 ' >>$CONFIG_STATUS || ac_write_fail=1
16551 rm -f conf$$subs.awk
16552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16553 _ACAWK
16554 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16555 for (key in S) S_is_set[key] = 1
16556 FS = "\a"
16557 \$ac_cs_awk_pipe_init
16560 line = $ 0
16561 nfields = split(line, field, "@")
16562 substed = 0
16563 len = length(field[1])
16564 for (i = 2; i < nfields; i++) {
16565 key = field[i]
16566 keylen = length(key)
16567 if (S_is_set[key]) {
16568 value = S[key]
16569 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16570 len += length(value) + length(field[++i])
16571 substed = 1
16572 } else
16573 len += 1 + keylen
16575 if (nfields == 3 && !substed) {
16576 key = field[2]
16577 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16578 \$ac_cs_awk_read_file
16579 next
16582 print line
16584 \$ac_cs_awk_pipe_fini
16585 _ACAWK
16586 _ACEOF
16587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16588 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16589 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16590 else
16592 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16593 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16594 _ACEOF
16596 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16597 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16598 # trailing colons and then remove the whole line if VPATH becomes empty
16599 # (actually we leave an empty line to preserve line numbers).
16600 if test "x$srcdir" = x.; then
16601 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16603 s///
16604 s/^/:/
16605 s/[ ]*$/:/
16606 s/:\$(srcdir):/:/g
16607 s/:\${srcdir}:/:/g
16608 s/:@srcdir@:/:/g
16609 s/^:*//
16610 s/:*$//
16612 s/\(=[ ]*\).*/\1/
16614 s/\n//
16615 s/^[^=]*=[ ]*$//
16619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16620 fi # test -n "$CONFIG_FILES"
16622 # Set up the scripts for CONFIG_HEADERS section.
16623 # No need to generate them if there are no CONFIG_HEADERS.
16624 # This happens for instance with `./config.status Makefile'.
16625 if test -n "$CONFIG_HEADERS"; then
16626 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16627 BEGIN {
16628 _ACEOF
16630 # Transform confdefs.h into an awk script `defines.awk', embedded as
16631 # here-document in config.status, that substitutes the proper values into
16632 # config.h.in to produce config.h.
16634 # Create a delimiter string that does not exist in confdefs.h, to ease
16635 # handling of long lines.
16636 ac_delim='%!_!# '
16637 for ac_last_try in false false :; do
16638 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16639 if test -z "$ac_tt"; then
16640 break
16641 elif $ac_last_try; then
16642 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16643 else
16644 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16646 done
16648 # For the awk script, D is an array of macro values keyed by name,
16649 # likewise P contains macro parameters if any. Preserve backslash
16650 # newline sequences.
16652 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16653 sed -n '
16654 s/.\{148\}/&'"$ac_delim"'/g
16655 t rset
16656 :rset
16657 s/^[ ]*#[ ]*define[ ][ ]*/ /
16658 t def
16660 :def
16661 s/\\$//
16662 t bsnl
16663 s/["\\]/\\&/g
16664 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16665 D["\1"]=" \3"/p
16666 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16668 :bsnl
16669 s/["\\]/\\&/g
16670 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16671 D["\1"]=" \3\\\\\\n"\\/p
16672 t cont
16673 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16674 t cont
16676 :cont
16678 s/.\{148\}/&'"$ac_delim"'/g
16679 t clear
16680 :clear
16681 s/\\$//
16682 t bsnlc
16683 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16685 :bsnlc
16686 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16687 b cont
16688 ' <confdefs.h | sed '
16689 s/'"$ac_delim"'/"\\\
16690 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16693 for (key in D) D_is_set[key] = 1
16694 FS = "\a"
16696 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16697 line = \$ 0
16698 split(line, arg, " ")
16699 if (arg[1] == "#") {
16700 defundef = arg[2]
16701 mac1 = arg[3]
16702 } else {
16703 defundef = substr(arg[1], 2)
16704 mac1 = arg[2]
16706 split(mac1, mac2, "(") #)
16707 macro = mac2[1]
16708 prefix = substr(line, 1, index(line, defundef) - 1)
16709 if (D_is_set[macro]) {
16710 # Preserve the white space surrounding the "#".
16711 print prefix "define", macro P[macro] D[macro]
16712 next
16713 } else {
16714 # Replace #undef with comments. This is necessary, for example,
16715 # in the case of _POSIX_SOURCE, which is predefined and required
16716 # on some systems where configure will not decide to define it.
16717 if (defundef == "undef") {
16718 print "/*", prefix defundef, macro, "*/"
16719 next
16723 { print }
16724 _ACAWK
16725 _ACEOF
16726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16727 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16728 fi # test -n "$CONFIG_HEADERS"
16731 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16732 shift
16733 for ac_tag
16735 case $ac_tag in
16736 :[FHLC]) ac_mode=$ac_tag; continue;;
16737 esac
16738 case $ac_mode$ac_tag in
16739 :[FHL]*:*);;
16740 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16741 :[FH]-) ac_tag=-:-;;
16742 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16743 esac
16744 ac_save_IFS=$IFS
16745 IFS=:
16746 set x $ac_tag
16747 IFS=$ac_save_IFS
16748 shift
16749 ac_file=$1
16750 shift
16752 case $ac_mode in
16753 :L) ac_source=$1;;
16754 :[FH])
16755 ac_file_inputs=
16756 for ac_f
16758 case $ac_f in
16759 -) ac_f="$ac_tmp/stdin";;
16760 *) # Look for the file first in the build tree, then in the source tree
16761 # (if the path is not absolute). The absolute path cannot be DOS-style,
16762 # because $ac_f cannot contain `:'.
16763 test -f "$ac_f" ||
16764 case $ac_f in
16765 [\\/$]*) false;;
16766 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16767 esac ||
16768 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16769 esac
16770 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16771 as_fn_append ac_file_inputs " '$ac_f'"
16772 done
16774 # Let's still pretend it is `configure' which instantiates (i.e., don't
16775 # use $as_me), people would be surprised to read:
16776 # /* config.h. Generated by config.status. */
16777 configure_input='Generated from '`
16778 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16779 `' by configure.'
16780 if test x"$ac_file" != x-; then
16781 configure_input="$ac_file. $configure_input"
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16783 $as_echo "$as_me: creating $ac_file" >&6;}
16785 # Neutralize special characters interpreted by sed in replacement strings.
16786 case $configure_input in #(
16787 *\&* | *\|* | *\\* )
16788 ac_sed_conf_input=`$as_echo "$configure_input" |
16789 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16790 *) ac_sed_conf_input=$configure_input;;
16791 esac
16793 case $ac_tag in
16794 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16795 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16796 esac
16798 esac
16800 ac_dir=`$as_dirname -- "$ac_file" ||
16801 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16802 X"$ac_file" : 'X\(//\)[^/]' \| \
16803 X"$ac_file" : 'X\(//\)$' \| \
16804 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16805 $as_echo X"$ac_file" |
16806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16807 s//\1/
16810 /^X\(\/\/\)[^/].*/{
16811 s//\1/
16814 /^X\(\/\/\)$/{
16815 s//\1/
16818 /^X\(\/\).*/{
16819 s//\1/
16822 s/.*/./; q'`
16823 as_dir="$ac_dir"; as_fn_mkdir_p
16824 ac_builddir=.
16826 case "$ac_dir" in
16827 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16829 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16830 # A ".." for each directory in $ac_dir_suffix.
16831 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16832 case $ac_top_builddir_sub in
16833 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16834 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16835 esac ;;
16836 esac
16837 ac_abs_top_builddir=$ac_pwd
16838 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16839 # for backward compatibility:
16840 ac_top_builddir=$ac_top_build_prefix
16842 case $srcdir in
16843 .) # We are building in place.
16844 ac_srcdir=.
16845 ac_top_srcdir=$ac_top_builddir_sub
16846 ac_abs_top_srcdir=$ac_pwd ;;
16847 [\\/]* | ?:[\\/]* ) # Absolute name.
16848 ac_srcdir=$srcdir$ac_dir_suffix;
16849 ac_top_srcdir=$srcdir
16850 ac_abs_top_srcdir=$srcdir ;;
16851 *) # Relative name.
16852 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16853 ac_top_srcdir=$ac_top_build_prefix$srcdir
16854 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16855 esac
16856 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16859 case $ac_mode in
16862 # CONFIG_FILE
16865 case $INSTALL in
16866 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16867 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16868 esac
16869 _ACEOF
16871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16872 # If the template does not know about datarootdir, expand it.
16873 # FIXME: This hack should be removed a few years after 2.60.
16874 ac_datarootdir_hack=; ac_datarootdir_seen=
16875 ac_sed_dataroot='
16876 /datarootdir/ {
16880 /@datadir@/p
16881 /@docdir@/p
16882 /@infodir@/p
16883 /@localedir@/p
16884 /@mandir@/p'
16885 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16886 *datarootdir*) ac_datarootdir_seen=yes;;
16887 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16889 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16890 _ACEOF
16891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16892 ac_datarootdir_hack='
16893 s&@datadir@&$datadir&g
16894 s&@docdir@&$docdir&g
16895 s&@infodir@&$infodir&g
16896 s&@localedir@&$localedir&g
16897 s&@mandir@&$mandir&g
16898 s&\\\${datarootdir}&$datarootdir&g' ;;
16899 esac
16900 _ACEOF
16902 # Neutralize VPATH when `$srcdir' = `.'.
16903 # Shell code in configure.ac might set extrasub.
16904 # FIXME: do we really want to maintain this feature?
16905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16906 ac_sed_extra="$ac_vpsub
16907 $extrasub
16908 _ACEOF
16909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16912 s|@configure_input@|$ac_sed_conf_input|;t t
16913 s&@top_builddir@&$ac_top_builddir_sub&;t t
16914 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16915 s&@srcdir@&$ac_srcdir&;t t
16916 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16917 s&@top_srcdir@&$ac_top_srcdir&;t t
16918 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16919 s&@builddir@&$ac_builddir&;t t
16920 s&@abs_builddir@&$ac_abs_builddir&;t t
16921 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16922 s&@INSTALL@&$ac_INSTALL&;t t
16923 $ac_datarootdir_hack
16925 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16926 if $ac_cs_awk_getline; then
16927 $AWK -f "$ac_tmp/subs.awk"
16928 else
16929 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16930 fi \
16931 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16933 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16934 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16935 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16936 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16938 which seems to be undefined. Please make sure it is defined" >&5
16939 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16940 which seems to be undefined. Please make sure it is defined" >&2;}
16942 rm -f "$ac_tmp/stdin"
16943 case $ac_file in
16944 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16945 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16946 esac \
16947 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16951 # CONFIG_HEADER
16953 if test x"$ac_file" != x-; then
16955 $as_echo "/* $configure_input */" \
16956 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16957 } >"$ac_tmp/config.h" \
16958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16959 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16961 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16962 else
16963 rm -f "$ac_file"
16964 mv "$ac_tmp/config.h" "$ac_file" \
16965 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16967 else
16968 $as_echo "/* $configure_input */" \
16969 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16970 || as_fn_error $? "could not create -" "$LINENO" 5
16975 # CONFIG_LINK
16978 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16980 else
16981 # Prefer the file from the source tree if names are identical.
16982 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16983 ac_source=$srcdir/$ac_source
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16987 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16989 if test ! -r "$ac_source"; then
16990 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16992 rm -f "$ac_file"
16994 # Try a relative symlink, then a hard link, then a copy.
16995 case $ac_source in
16996 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16997 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16998 esac
16999 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17000 ln "$ac_source" "$ac_file" 2>/dev/null ||
17001 cp -p "$ac_source" "$ac_file" ||
17002 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17005 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17006 $as_echo "$as_me: executing $ac_file commands" >&6;}
17008 esac
17011 case $ac_file$ac_mode in
17012 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17013 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17014 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17015 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17016 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17017 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17018 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17019 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17020 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17021 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17022 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17023 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17024 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17025 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17026 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17027 "Makefile":C) wine_fn_output_makefile Makefile ;;
17029 esac
17030 done # for ac_tag
17033 as_fn_exit 0
17034 _ACEOF
17035 ac_clean_files=$ac_clean_files_save
17037 test $ac_write_fail = 0 ||
17038 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17041 # configure is writing to config.log, and then calls config.status.
17042 # config.status does its own redirection, appending to config.log.
17043 # Unfortunately, on DOS this fails, as config.log is still kept open
17044 # by configure, so config.status won't be able to write to it; its
17045 # output is simply discarded. So we exec the FD to /dev/null,
17046 # effectively closing config.log, so it can be properly (re)opened and
17047 # appended to by config.status. When coming back to configure, we
17048 # need to make the FD available again.
17049 if test "$no_create" != yes; then
17050 ac_cs_success=:
17051 ac_config_status_args=
17052 test "$silent" = yes &&
17053 ac_config_status_args="$ac_config_status_args --quiet"
17054 exec 5>/dev/null
17055 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17056 exec 5>>config.log
17057 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17058 # would make configure fail if this is the last instruction.
17059 $ac_cs_success || as_fn_exit 1
17061 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17063 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17067 if test "$no_create" = "yes"
17068 then
17069 exit 0
17072 ac_save_IFS="$IFS"
17073 if test "x$wine_notices != "x; then
17074 echo >&6
17075 IFS="|"
17076 for msg in $wine_notices; do
17077 IFS="$ac_save_IFS"
17078 if test -n "$msg"; then
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17080 $as_echo "$as_me: $msg" >&6;}
17082 done
17084 IFS="|"
17085 for msg in $wine_warnings; do
17086 IFS="$ac_save_IFS"
17087 if test -n "$msg"; then
17088 echo >&2
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17090 $as_echo "$as_me: WARNING: $msg" >&2;}
17092 done
17093 IFS="$ac_save_IFS"
17095 echo "
17096 $as_me: Finished. Do '${ac_make}' to compile Wine.
17097 " >&6