po: Fix the accelerator key specifications in the German translation.
[wine/multimedia.git] / configure
blobfa17bcc3810a689f0e777cb107c05197995385cd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.3.37.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: wine-devel@winehq.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
247 exit 1
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
265 { eval $1=; unset $1;}
267 as_unset=as_fn_unset
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
274 return $1
275 } # as_fn_set_status
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
318 /^X\(\/\/\)$/{
319 s//\1/
322 /^X\(\/\).*/{
323 s//\1/
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
343 eval $1+=\$2
345 else
346 as_fn_append ()
348 eval $1=\$$1\$2
350 fi # as_fn_append
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
360 as_val=$(( $* ))
362 else
363 as_fn_arith ()
365 as_val=`expr "$@" || test $? -eq 1`
367 fi # as_fn_arith
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
414 /^X\/\(\/\/\)$/{
415 s//\1/
418 /^X\/\(\/\).*/{
419 s//\1/
422 s/.*/./; q'`
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
445 :lineno
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
473 ECHO_N='-n';;
474 esac
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
497 else
498 as_ln_s='cp -p'
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
560 # Identity of this package.
561 PACKAGE_NAME='Wine'
562 PACKAGE_TARNAME='wine'
563 PACKAGE_VERSION='1.3.37'
564 PACKAGE_STRING='Wine 1.3.37'
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 APPLICATIONSERVICESLIB
670 IOKITLIB
671 COREFOUNDATIONLIB
672 DLLWRAP
673 DLLTOOL
675 LDRPATH_LOCAL
676 LDRPATH_INSTALL
677 IMPLIBEXT
678 LIBEXT
679 LDDLLFLAGS
680 LDSHARED
681 DLLFLAGS
682 DLLEXT
684 OPENGL_LIBS
685 XLIB
686 MAINTAINER_MODE
687 MSGFMT
688 ICOTOOL
689 CONVERT
690 RSVG
691 PKG_CONFIG
692 FONTFORGE
693 LINTFLAGS
694 LINT
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 LDCONFIG
699 EGREP
700 GREP
701 LN_S
702 RANLIB
703 ARFLAGS
704 ac_ct_AR
706 BISON
707 FLEX
708 TOOLSDIR
709 WOW64_DISABLE
710 TARGETFLAGS
711 CPPBIN
712 ac_ct_CXX
713 CXXFLAGS
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
722 SET_MAKE
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files='MAKE_RULES
770 MAKE_TEST_RULES
771 MAKE_DLL_RULES
772 MAKE_IMPLIB_RULES
773 MAKE_PROG_RULES'
774 ac_user_opts='
775 enable_option_checking
776 enable_win16
777 enable_win64
778 enable_tests
779 enable_maintainer_mode
780 with_alsa
781 with_capi
782 with_cms
783 with_coreaudio
784 with_cups
785 with_curses
786 with_dbus
787 with_fontconfig
788 with_freetype
789 with_gettext
790 with_gettextpo
791 with_gphoto
792 with_glu
793 with_gnutls
794 with_gsm
795 with_gstreamer
796 with_hal
797 with_jpeg
798 with_ldap
799 with_mpg123
800 with_openal
801 with_opencl
802 with_opengl
803 with_openssl
804 with_oss
805 with_png
806 with_pthread
807 with_sane
808 with_tiff
809 with_v4l
810 with_xcomposite
811 with_xcursor
812 with_xinerama
813 with_xinput
814 with_xinput2
815 with_xml
816 with_xrandr
817 with_xrender
818 with_xshape
819 with_xshm
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.3.37 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.3.37:";;
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-xshm do not use XShm (shared memory extension)
1511 --without-xslt do not use XSLT
1512 --without-xxf86vm do not use XFree video mode extension
1513 --without-zlib do not use Zlib (data compression)
1514 --with-wine-tools=DIR use Wine tools from directory DIR
1515 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1516 --with-x use the X Window System
1518 Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 LIBS libraries to pass to the linker, e.g. -l<library>
1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525 you have headers in a nonstandard directory <include dir>
1526 CXX C++ compiler command
1527 CXXFLAGS C++ compiler flags
1528 CPP C preprocessor
1529 XMKMF Path to xmkmf, Makefile generator for X Window System
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1534 Report bugs to <wine-devel@winehq.org>.
1535 Wine home page: <http://www.winehq.org>.
1536 _ACEOF
1537 ac_status=$?
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545 continue
1546 ac_builddir=.
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1564 case $srcdir in
1565 .) # We are building in place.
1566 ac_srcdir=.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1573 *) # Relative name.
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for guested configure.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1588 else
1589 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590 fi || ac_status=$?
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1592 done
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1597 cat <<\_ACEOF
1598 Wine configure 1.3.37
1599 generated by GNU Autoconf 2.68
1601 Copyright (C) 2010 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1604 _ACEOF
1605 exit
1608 ## ------------------------ ##
1609 ## Autoconf initialization. ##
1610 ## ------------------------ ##
1612 # ac_fn_c_try_compile LINENO
1613 # --------------------------
1614 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_compile ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext
1619 if { { ac_try="$ac_compile"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_compile") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest.$ac_objext; then :
1638 ac_retval=0
1639 else
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1643 ac_retval=1
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1648 } # ac_fn_c_try_compile
1650 # ac_fn_cxx_try_compile LINENO
1651 # ----------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_cxx_try_compile ()
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext
1657 if { { ac_try="$ac_compile"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_cxx_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.$ac_objext; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1681 ac_retval=1
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1686 } # ac_fn_cxx_try_compile
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_link ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext conftest$ac_exeext
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest$ac_exeext && {
1714 test "$cross_compiling" = yes ||
1715 $as_test_x conftest$ac_exeext
1716 }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1722 ac_retval=1
1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726 # interfere with the next link command; also delete a directory that is
1727 # left behind by Apple's compiler. We do this before executing the actions.
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1732 } # ac_fn_c_try_link
1734 # ac_fn_c_try_cpp LINENO
1735 # ----------------------
1736 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_cpp ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_cpp conftest.$ac_ext"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } > conftest.i && {
1756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 }; then :
1759 ac_retval=0
1760 else
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1764 ac_retval=1
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1769 } # ac_fn_c_try_cpp
1771 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1772 # -------------------------------------------------------
1773 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1774 # the include files in INCLUDES and setting the cache variable VAR
1775 # accordingly.
1776 ac_fn_c_check_header_mongrel ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if eval \${$3+:} false; then :
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 else
1789 # Is the header compilable?
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1791 $as_echo_n "checking $2 usability... " >&6; }
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1795 #include <$2>
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798 ac_header_compiler=yes
1799 else
1800 ac_header_compiler=no
1802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1804 $as_echo "$ac_header_compiler" >&6; }
1806 # Is the header present?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1808 $as_echo_n "checking $2 presence... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_cpp "$LINENO"; then :
1814 ac_header_preproc=yes
1815 else
1816 ac_header_preproc=no
1818 rm -f conftest.err conftest.i conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1820 $as_echo "$ac_header_preproc" >&6; }
1822 # So? What about this header?
1823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1824 yes:no: )
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1826 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1828 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 no:yes:* )
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1832 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1834 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1836 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1838 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1840 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841 ( $as_echo "## ------------------------------------ ##
1842 ## Report this to wine-devel@winehq.org ##
1843 ## ------------------------------------ ##"
1844 ) | sed "s/^/$as_me: WARNING: /" >&2
1846 esac
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 eval "$3=\$ac_header_compiler"
1854 eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 } # ac_fn_c_check_header_mongrel
1862 # ac_fn_c_try_run LINENO
1863 # ----------------------
1864 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1865 # that executables *can* be run.
1866 ac_fn_c_try_run ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_link"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>&5
1877 ac_status=$?
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1880 { { case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_try") 2>&5
1887 ac_status=$?
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; }; }; then :
1890 ac_retval=0
1891 else
1892 $as_echo "$as_me: program exited with status $ac_status" >&5
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1896 ac_retval=$ac_status
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 as_fn_set_status $ac_retval
1902 } # ac_fn_c_try_run
1904 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1905 # -------------------------------------------------------
1906 # Tests whether HEADER exists and can be compiled using the include files in
1907 # INCLUDES, setting the cache variable VAR accordingly.
1908 ac_fn_c_check_header_compile ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval \${$3+:} false; then :
1914 $as_echo_n "(cached) " >&6
1915 else
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 eval "$3=yes"
1923 else
1924 eval "$3=no"
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 } # ac_fn_c_check_header_compile
1935 # ac_fn_c_check_func LINENO FUNC VAR
1936 # ----------------------------------
1937 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1938 ac_fn_c_check_func ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval \${$3+:} false; then :
1944 $as_echo_n "(cached) " >&6
1945 else
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1948 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1950 #define $2 innocuous_$2
1952 /* System header to define __stub macros and hopefully few prototypes,
1953 which can conflict with char $2 (); below.
1954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1955 <limits.h> exists even on freestanding compilers. */
1957 #ifdef __STDC__
1958 # include <limits.h>
1959 #else
1960 # include <assert.h>
1961 #endif
1963 #undef $2
1965 /* Override any GCC internal prototype to avoid an error.
1966 Use char because int might match the return type of a GCC
1967 builtin and then its argument prototype would still apply. */
1968 #ifdef __cplusplus
1969 extern "C"
1970 #endif
1971 char $2 ();
1972 /* The GNU C library defines this for functions which it implements
1973 to always fail with ENOSYS. Some functions are actually named
1974 something starting with __ and the normal name is an alias. */
1975 #if defined __stub_$2 || defined __stub___$2
1976 choke me
1977 #endif
1980 main ()
1982 return $2 ();
1984 return 0;
1986 _ACEOF
1987 if ac_fn_c_try_link "$LINENO"; then :
1988 eval "$3=yes"
1989 else
1990 eval "$3=no"
1992 rm -f core conftest.err conftest.$ac_objext \
1993 conftest$ac_exeext conftest.$ac_ext
1995 eval ac_res=\$$3
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 } # ac_fn_c_check_func
2002 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2003 # ----------------------------------------------------
2004 # Tries to find if the field MEMBER exists in type AGGR, after including
2005 # INCLUDES, setting cache variable VAR accordingly.
2006 ac_fn_c_check_member ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2010 $as_echo_n "checking for $2.$3... " >&6; }
2011 if eval \${$4+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2018 main ()
2020 static $2 ac_aggr;
2021 if (ac_aggr.$3)
2022 return 0;
2024 return 0;
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 eval "$4=yes"
2029 else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2034 main ()
2036 static $2 ac_aggr;
2037 if (sizeof ac_aggr.$3)
2038 return 0;
2040 return 0;
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 eval "$4=yes"
2045 else
2046 eval "$4=no"
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 eval ac_res=\$$4
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 } # ac_fn_c_check_member
2059 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2060 # -------------------------------------------
2061 # Tests whether TYPE exists after having included INCLUDES, setting cache
2062 # variable VAR accordingly.
2063 ac_fn_c_check_type ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2070 else
2071 eval "$3=no"
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2076 main ()
2078 if (sizeof ($2))
2079 return 0;
2081 return 0;
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2089 main ()
2091 if (sizeof (($2)))
2092 return 0;
2094 return 0;
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2099 else
2100 eval "$3=yes"
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111 } # ac_fn_c_check_type
2112 cat >config.log <<_ACEOF
2113 This file contains any messages produced by compilers while
2114 running configure, to aid debugging if configure makes a mistake.
2116 It was created by Wine $as_me 1.3.37, which was
2117 generated by GNU Autoconf 2.68. Invocation command line was
2119 $ $0 $@
2121 _ACEOF
2122 exec 5>>config.log
2124 cat <<_ASUNAME
2125 ## --------- ##
2126 ## Platform. ##
2127 ## --------- ##
2129 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2130 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2131 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2132 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2133 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2135 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2136 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2138 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2139 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2140 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2141 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2142 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2143 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2144 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2146 _ASUNAME
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 $as_echo "PATH: $as_dir"
2154 done
2155 IFS=$as_save_IFS
2157 } >&5
2159 cat >&5 <<_ACEOF
2162 ## ----------- ##
2163 ## Core tests. ##
2164 ## ----------- ##
2166 _ACEOF
2169 # Keep a trace of the command line.
2170 # Strip out --no-create and --no-recursion so they do not pile up.
2171 # Strip out --silent because we don't want to record it for future runs.
2172 # Also quote any args containing shell meta-characters.
2173 # Make two passes to allow for proper duplicate-argument suppression.
2174 ac_configure_args=
2175 ac_configure_args0=
2176 ac_configure_args1=
2177 ac_must_keep_next=false
2178 for ac_pass in 1 2
2180 for ac_arg
2182 case $ac_arg in
2183 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2185 | -silent | --silent | --silen | --sile | --sil)
2186 continue ;;
2187 *\'*)
2188 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2189 esac
2190 case $ac_pass in
2191 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2193 as_fn_append ac_configure_args1 " '$ac_arg'"
2194 if test $ac_must_keep_next = true; then
2195 ac_must_keep_next=false # Got value, back to normal.
2196 else
2197 case $ac_arg in
2198 *=* | --config-cache | -C | -disable-* | --disable-* \
2199 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2200 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2201 | -with-* | --with-* | -without-* | --without-* | --x)
2202 case "$ac_configure_args0 " in
2203 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2204 esac
2206 -* ) ac_must_keep_next=true ;;
2207 esac
2209 as_fn_append ac_configure_args " '$ac_arg'"
2211 esac
2212 done
2213 done
2214 { ac_configure_args0=; unset ac_configure_args0;}
2215 { ac_configure_args1=; unset ac_configure_args1;}
2217 # When interrupted or exit'd, cleanup temporary files, and complete
2218 # config.log. We remove comments because anyway the quotes in there
2219 # would cause problems or look ugly.
2220 # WARNING: Use '\'' to represent an apostrophe within the trap.
2221 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2222 trap 'exit_status=$?
2223 # Save into config.log some information that might help in debugging.
2225 echo
2227 $as_echo "## ---------------- ##
2228 ## Cache variables. ##
2229 ## ---------------- ##"
2230 echo
2231 # The following way of writing the cache mishandles newlines in values,
2233 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2234 eval ac_val=\$$ac_var
2235 case $ac_val in #(
2236 *${as_nl}*)
2237 case $ac_var in #(
2238 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2239 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2240 esac
2241 case $ac_var in #(
2242 _ | IFS | as_nl) ;; #(
2243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2244 *) { eval $ac_var=; unset $ac_var;} ;;
2245 esac ;;
2246 esac
2247 done
2248 (set) 2>&1 |
2249 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2250 *${as_nl}ac_space=\ *)
2251 sed -n \
2252 "s/'\''/'\''\\\\'\'''\''/g;
2253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2254 ;; #(
2256 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2258 esac |
2259 sort
2261 echo
2263 $as_echo "## ----------------- ##
2264 ## Output variables. ##
2265 ## ----------------- ##"
2266 echo
2267 for ac_var in $ac_subst_vars
2269 eval ac_val=\$$ac_var
2270 case $ac_val in
2271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272 esac
2273 $as_echo "$ac_var='\''$ac_val'\''"
2274 done | sort
2275 echo
2277 if test -n "$ac_subst_files"; then
2278 $as_echo "## ------------------- ##
2279 ## File substitutions. ##
2280 ## ------------------- ##"
2281 echo
2282 for ac_var in $ac_subst_files
2284 eval ac_val=\$$ac_var
2285 case $ac_val in
2286 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2287 esac
2288 $as_echo "$ac_var='\''$ac_val'\''"
2289 done | sort
2290 echo
2293 if test -s confdefs.h; then
2294 $as_echo "## ----------- ##
2295 ## confdefs.h. ##
2296 ## ----------- ##"
2297 echo
2298 cat confdefs.h
2299 echo
2301 test "$ac_signal" != 0 &&
2302 $as_echo "$as_me: caught signal $ac_signal"
2303 $as_echo "$as_me: exit $exit_status"
2304 } >&5
2305 rm -f core *.core core.conftest.* &&
2306 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2307 exit $exit_status
2309 for ac_signal in 1 2 13 15; do
2310 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2311 done
2312 ac_signal=0
2314 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2315 rm -f -r conftest* confdefs.h
2317 $as_echo "/* confdefs.h */" > confdefs.h
2319 # Predefined preprocessor variables.
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_NAME "$PACKAGE_NAME"
2323 _ACEOF
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2327 _ACEOF
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2331 _ACEOF
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_STRING "$PACKAGE_STRING"
2335 _ACEOF
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2339 _ACEOF
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_URL "$PACKAGE_URL"
2343 _ACEOF
2346 # Let the site file select an alternate cache file if it wants to.
2347 # Prefer an explicitly selected file to automatically selected ones.
2348 ac_site_file1=NONE
2349 ac_site_file2=NONE
2350 if test -n "$CONFIG_SITE"; then
2351 # We do not want a PATH search for config.site.
2352 case $CONFIG_SITE in #((
2353 -*) ac_site_file1=./$CONFIG_SITE;;
2354 */*) ac_site_file1=$CONFIG_SITE;;
2355 *) ac_site_file1=./$CONFIG_SITE;;
2356 esac
2357 elif test "x$prefix" != xNONE; then
2358 ac_site_file1=$prefix/share/config.site
2359 ac_site_file2=$prefix/etc/config.site
2360 else
2361 ac_site_file1=$ac_default_prefix/share/config.site
2362 ac_site_file2=$ac_default_prefix/etc/config.site
2364 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2366 test "x$ac_site_file" = xNONE && continue
2367 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2369 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2370 sed 's/^/| /' "$ac_site_file" >&5
2371 . "$ac_site_file" \
2372 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374 as_fn_error $? "failed to load site script $ac_site_file
2375 See \`config.log' for more details" "$LINENO" 5; }
2377 done
2379 if test -r "$cache_file"; then
2380 # Some versions of bash will fail to source /dev/null (special files
2381 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2382 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2384 $as_echo "$as_me: loading cache $cache_file" >&6;}
2385 case $cache_file in
2386 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2387 *) . "./$cache_file";;
2388 esac
2390 else
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2392 $as_echo "$as_me: creating cache $cache_file" >&6;}
2393 >$cache_file
2396 # Check that the precious variables saved in the cache have kept the same
2397 # value.
2398 ac_cache_corrupted=false
2399 for ac_var in $ac_precious_vars; do
2400 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2401 eval ac_new_set=\$ac_env_${ac_var}_set
2402 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2403 eval ac_new_val=\$ac_env_${ac_var}_value
2404 case $ac_old_set,$ac_new_set in
2405 set,)
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2407 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2408 ac_cache_corrupted=: ;;
2409 ,set)
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2411 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2412 ac_cache_corrupted=: ;;
2413 ,);;
2415 if test "x$ac_old_val" != "x$ac_new_val"; then
2416 # differences in whitespace do not lead to failure.
2417 ac_old_val_w=`echo x $ac_old_val`
2418 ac_new_val_w=`echo x $ac_new_val`
2419 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2421 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2422 ac_cache_corrupted=:
2423 else
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2425 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2426 eval $ac_var=\$ac_old_val
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2429 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2431 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2432 fi;;
2433 esac
2434 # Pass precious variables to config.status.
2435 if test "$ac_new_set" = set; then
2436 case $ac_new_val in
2437 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2438 *) ac_arg=$ac_var=$ac_new_val ;;
2439 esac
2440 case " $ac_configure_args " in
2441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2442 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2443 esac
2445 done
2446 if $ac_cache_corrupted; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2450 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2451 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2453 ## -------------------- ##
2454 ## Main body of script. ##
2455 ## -------------------- ##
2457 ac_ext=c
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465 ac_config_headers="$ac_config_headers include/config.h"
2467 ac_aux_dir=
2468 for ac_dir in tools "$srcdir"/tools; do
2469 if test -f "$ac_dir/install-sh"; then
2470 ac_aux_dir=$ac_dir
2471 ac_install_sh="$ac_aux_dir/install-sh -c"
2472 break
2473 elif test -f "$ac_dir/install.sh"; then
2474 ac_aux_dir=$ac_dir
2475 ac_install_sh="$ac_aux_dir/install.sh -c"
2476 break
2477 elif test -f "$ac_dir/shtool"; then
2478 ac_aux_dir=$ac_dir
2479 ac_install_sh="$ac_aux_dir/shtool install -c"
2480 break
2482 done
2483 if test -z "$ac_aux_dir"; then
2484 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2487 # These three variables are undocumented and unsupported,
2488 # and are intended to be withdrawn in a future Autoconf release.
2489 # They can cause serious problems if a builder's source tree is in a directory
2490 # whose full name contains unusual characters.
2491 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2492 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2493 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2499 # Check whether --enable-win16 was given.
2500 if test "${enable_win16+set}" = set; then :
2501 enableval=$enable_win16;
2504 # Check whether --enable-win64 was given.
2505 if test "${enable_win64+set}" = set; then :
2506 enableval=$enable_win64;
2509 # Check whether --enable-tests was given.
2510 if test "${enable_tests+set}" = set; then :
2511 enableval=$enable_tests;
2514 # Check whether --enable-maintainer-mode was given.
2515 if test "${enable_maintainer_mode+set}" = set; then :
2516 enableval=$enable_maintainer_mode;
2521 # Check whether --with-alsa was given.
2522 if test "${with_alsa+set}" = set; then :
2523 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2527 # Check whether --with-capi was given.
2528 if test "${with_capi+set}" = set; then :
2529 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2533 # Check whether --with-cms was given.
2534 if test "${with_cms+set}" = set; then :
2535 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2539 # Check whether --with-coreaudio was given.
2540 if test "${with_coreaudio+set}" = set; then :
2541 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2545 # Check whether --with-cups was given.
2546 if test "${with_cups+set}" = set; then :
2547 withval=$with_cups;
2551 # Check whether --with-curses was given.
2552 if test "${with_curses+set}" = set; then :
2553 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2557 # Check whether --with-dbus was given.
2558 if test "${with_dbus+set}" = set; then :
2559 withval=$with_dbus;
2563 # Check whether --with-fontconfig was given.
2564 if test "${with_fontconfig+set}" = set; then :
2565 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2569 # Check whether --with-freetype was given.
2570 if test "${with_freetype+set}" = set; then :
2571 withval=$with_freetype;
2575 # Check whether --with-gettext was given.
2576 if test "${with_gettext+set}" = set; then :
2577 withval=$with_gettext;
2581 # Check whether --with-gettextpo was given.
2582 if test "${with_gettextpo+set}" = set; then :
2583 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2587 # Check whether --with-gphoto was given.
2588 if test "${with_gphoto+set}" = set; then :
2589 withval=$with_gphoto;
2593 # Check whether --with-glu was given.
2594 if test "${with_glu+set}" = set; then :
2595 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2599 # Check whether --with-gnutls was given.
2600 if test "${with_gnutls+set}" = set; then :
2601 withval=$with_gnutls;
2605 # Check whether --with-gsm was given.
2606 if test "${with_gsm+set}" = set; then :
2607 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2611 # Check whether --with-gstreamer was given.
2612 if test "${with_gstreamer+set}" = set; then :
2613 withval=$with_gstreamer;
2617 # Check whether --with-hal was given.
2618 if test "${with_hal+set}" = set; then :
2619 withval=$with_hal;
2623 # Check whether --with-jpeg was given.
2624 if test "${with_jpeg+set}" = set; then :
2625 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2629 # Check whether --with-ldap was given.
2630 if test "${with_ldap+set}" = set; then :
2631 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2635 # Check whether --with-mpg123 was given.
2636 if test "${with_mpg123+set}" = set; then :
2637 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2641 # Check whether --with-openal was given.
2642 if test "${with_openal+set}" = set; then :
2643 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2647 # Check whether --with-opencl was given.
2648 if test "${with_opencl+set}" = set; then :
2649 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2653 # Check whether --with-opengl was given.
2654 if test "${with_opengl+set}" = set; then :
2655 withval=$with_opengl;
2659 # Check whether --with-openssl was given.
2660 if test "${with_openssl+set}" = set; then :
2661 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2665 # Check whether --with-oss was given.
2666 if test "${with_oss+set}" = set; then :
2667 withval=$with_oss;
2671 # Check whether --with-png was given.
2672 if test "${with_png+set}" = set; then :
2673 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2677 # Check whether --with-pthread was given.
2678 if test "${with_pthread+set}" = set; then :
2679 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2683 # Check whether --with-sane was given.
2684 if test "${with_sane+set}" = set; then :
2685 withval=$with_sane;
2689 # Check whether --with-tiff was given.
2690 if test "${with_tiff+set}" = set; then :
2691 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2695 # Check whether --with-v4l was given.
2696 if test "${with_v4l+set}" = set; then :
2697 withval=$with_v4l;
2701 # Check whether --with-xcomposite was given.
2702 if test "${with_xcomposite+set}" = set; then :
2703 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2707 # Check whether --with-xcursor was given.
2708 if test "${with_xcursor+set}" = set; then :
2709 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2713 # Check whether --with-xinerama was given.
2714 if test "${with_xinerama+set}" = set; then :
2715 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2719 # Check whether --with-xinput was given.
2720 if test "${with_xinput+set}" = set; then :
2721 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2725 # Check whether --with-xinput2 was given.
2726 if test "${with_xinput2+set}" = set; then :
2727 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2731 # Check whether --with-xml was given.
2732 if test "${with_xml+set}" = set; then :
2733 withval=$with_xml;
2737 # Check whether --with-xrandr was given.
2738 if test "${with_xrandr+set}" = set; then :
2739 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2743 # Check whether --with-xrender was given.
2744 if test "${with_xrender+set}" = set; then :
2745 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2749 # Check whether --with-xshape was given.
2750 if test "${with_xshape+set}" = set; then :
2751 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2755 # Check whether --with-xshm was given.
2756 if test "${with_xshm+set}" = set; then :
2757 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2761 # Check whether --with-xslt was given.
2762 if test "${with_xslt+set}" = set; then :
2763 withval=$with_xslt;
2767 # Check whether --with-xxf86vm was given.
2768 if test "${with_xxf86vm+set}" = set; then :
2769 withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; ac_cv_header_X11_extensions_xf86vmproto_h=no; fi
2773 # Check whether --with-zlib was given.
2774 if test "${with_zlib+set}" = set; then :
2775 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2780 # Check whether --with-wine-tools was given.
2781 if test "${with_wine_tools+set}" = set; then :
2782 withval=$with_wine_tools;
2786 # Check whether --with-wine64 was given.
2787 if test "${with_wine64+set}" = set; then :
2788 withval=$with_wine64;
2792 # Make sure we can run config.sub.
2793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2794 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2797 $as_echo_n "checking build system type... " >&6; }
2798 if ${ac_cv_build+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 ac_build_alias=$build_alias
2802 test "x$ac_build_alias" = x &&
2803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2804 test "x$ac_build_alias" = x &&
2805 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2811 $as_echo "$ac_cv_build" >&6; }
2812 case $ac_cv_build in
2813 *-*-*) ;;
2814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2815 esac
2816 build=$ac_cv_build
2817 ac_save_IFS=$IFS; IFS='-'
2818 set x $ac_cv_build
2819 shift
2820 build_cpu=$1
2821 build_vendor=$2
2822 shift; shift
2823 # Remember, the first character of IFS is used to create $*,
2824 # except with old shells:
2825 build_os=$*
2826 IFS=$ac_save_IFS
2827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2831 $as_echo_n "checking host system type... " >&6; }
2832 if ${ac_cv_host+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test "x$host_alias" = x; then
2836 ac_cv_host=$ac_cv_build
2837 else
2838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2844 $as_echo "$ac_cv_host" >&6; }
2845 case $ac_cv_host in
2846 *-*-*) ;;
2847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2848 esac
2849 host=$ac_cv_host
2850 ac_save_IFS=$IFS; IFS='-'
2851 set x $ac_cv_host
2852 shift
2853 host_cpu=$1
2854 host_vendor=$2
2855 shift; shift
2856 # Remember, the first character of IFS is used to create $*,
2857 # except with old shells:
2858 host_os=$*
2859 IFS=$ac_save_IFS
2860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2864 case "$srcdir" in
2865 .) ;;
2866 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2867 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2868 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2869 fi ;;
2870 esac
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2874 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2875 set x ${MAKE-make}
2876 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2877 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 cat >conftest.make <<\_ACEOF
2881 SHELL = /bin/sh
2882 all:
2883 @echo '@@@%%%=$(MAKE)=@@@%%%'
2884 _ACEOF
2885 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2886 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2887 *@@@%%%=?*=@@@%%%*)
2888 eval ac_cv_prog_make_${ac_make}_set=yes;;
2890 eval ac_cv_prog_make_${ac_make}_set=no;;
2891 esac
2892 rm -f conftest.make
2894 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2896 $as_echo "yes" >&6; }
2897 SET_MAKE=
2898 else
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2901 SET_MAKE="MAKE=${MAKE-make}"
2904 ac_ext=c
2905 ac_cpp='$CPP $CPPFLAGS'
2906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2909 if test -n "$ac_tool_prefix"; then
2910 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2911 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_CC+:} false; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 if test -n "$CC"; then
2918 ac_cv_prog_CC="$CC" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2931 done
2932 done
2933 IFS=$as_save_IFS
2937 CC=$ac_cv_prog_CC
2938 if test -n "$CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940 $as_echo "$CC" >&6; }
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2948 if test -z "$ac_cv_prog_CC"; then
2949 ac_ct_CC=$CC
2950 # Extract the first word of "gcc", so it can be a program name with args.
2951 set dummy gcc; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2955 $as_echo_n "(cached) " >&6
2956 else
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_ac_ct_CC="gcc"
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2971 done
2972 done
2973 IFS=$as_save_IFS
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978 if test -n "$ac_ct_CC"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2980 $as_echo "$ac_ct_CC" >&6; }
2981 else
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2986 if test "x$ac_ct_CC" = x; then
2987 CC=""
2988 else
2989 case $cross_compiling:$ac_tool_warned in
2990 yes:)
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2993 ac_tool_warned=yes ;;
2994 esac
2995 CC=$ac_ct_CC
2997 else
2998 CC="$ac_cv_prog_CC"
3001 if test -z "$CC"; then
3002 if test -n "$ac_tool_prefix"; then
3003 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}cc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_CC+:} false; then :
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_CC="${ac_tool_prefix}cc"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 break 2
3024 done
3025 done
3026 IFS=$as_save_IFS
3030 CC=$ac_cv_prog_CC
3031 if test -n "$CC"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3033 $as_echo "$CC" >&6; }
3034 else
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3042 if test -z "$CC"; then
3043 # Extract the first word of "cc", so it can be a program name with args.
3044 set dummy cc; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if ${ac_cv_prog_CC+:} false; then :
3048 $as_echo_n "(cached) " >&6
3049 else
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC="$CC" # Let the user override the test.
3052 else
3053 ac_prog_rejected=no
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3062 ac_prog_rejected=yes
3063 continue
3065 ac_cv_prog_CC="cc"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3069 done
3070 done
3071 IFS=$as_save_IFS
3073 if test $ac_prog_rejected = yes; then
3074 # We found a bogon in the path, so make sure we never use it.
3075 set dummy $ac_cv_prog_CC
3076 shift
3077 if test $# != 0; then
3078 # We chose a different compiler from the bogus one.
3079 # However, it has the same basename, so the bogon will be chosen
3080 # first if we set CC to just the basename; use the full file name.
3081 shift
3082 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3098 if test -z "$CC"; then
3099 if test -n "$ac_tool_prefix"; then
3100 for ac_prog in cl.exe
3102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_CC+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3123 done
3124 done
3125 IFS=$as_save_IFS
3129 CC=$ac_cv_prog_CC
3130 if test -n "$CC"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3133 else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3139 test -n "$CC" && break
3140 done
3142 if test -z "$CC"; then
3143 ac_ct_CC=$CC
3144 for ac_prog in cl.exe
3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 if test -n "$ac_ct_CC"; then
3154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163 ac_cv_prog_ac_ct_CC="$ac_prog"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3167 done
3168 done
3169 IFS=$as_save_IFS
3173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3174 if test -n "$ac_ct_CC"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3176 $as_echo "$ac_ct_CC" >&6; }
3177 else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3183 test -n "$ac_ct_CC" && break
3184 done
3186 if test "x$ac_ct_CC" = x; then
3187 CC=""
3188 else
3189 case $cross_compiling:$ac_tool_warned in
3190 yes:)
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193 ac_tool_warned=yes ;;
3194 esac
3195 CC=$ac_ct_CC
3202 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 as_fn_error $? "no acceptable C compiler found in \$PATH
3205 See \`config.log' for more details" "$LINENO" 5; }
3207 # Provide some information about the compiler.
3208 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3209 set X $ac_compile
3210 ac_compiler=$2
3211 for ac_option in --version -v -V -qversion; do
3212 { { ac_try="$ac_compiler $ac_option >&5"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3220 ac_status=$?
3221 if test -s conftest.err; then
3222 sed '10a\
3223 ... rest of stderr output deleted ...
3224 10q' conftest.err >conftest.er1
3225 cat conftest.er1 >&5
3227 rm -f conftest.er1 conftest.err
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }
3230 done
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h. */
3236 main ()
3240 return 0;
3242 _ACEOF
3243 ac_clean_files_save=$ac_clean_files
3244 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3245 # Try to create an executable without -o first, disregard a.out.
3246 # It will help us diagnose broken compilers, and finding out an intuition
3247 # of exeext.
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3249 $as_echo_n "checking whether the C compiler works... " >&6; }
3250 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3252 # The possible output files:
3253 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3255 ac_rmfiles=
3256 for ac_file in $ac_files
3258 case $ac_file in
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3260 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3261 esac
3262 done
3263 rm -f $ac_rmfiles
3265 if { { ac_try="$ac_link_default"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_link_default") 2>&5
3273 ac_status=$?
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }; then :
3276 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3277 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3278 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3279 # so that the user can short-circuit this test for compilers unknown to
3280 # Autoconf.
3281 for ac_file in $ac_files ''
3283 test -f "$ac_file" || continue
3284 case $ac_file in
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3287 [ab].out )
3288 # We found the default executable, but exeext='' is most
3289 # certainly right.
3290 break;;
3291 *.* )
3292 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3293 then :; else
3294 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3296 # We set ac_cv_exeext here because the later test for it is not
3297 # safe: cross compilers may not add the suffix if given an `-o'
3298 # argument, so we may need to know it at that point already.
3299 # Even if this section looks crufty: it has the advantage of
3300 # actually working.
3301 break;;
3303 break;;
3304 esac
3305 done
3306 test "$ac_cv_exeext" = no && ac_cv_exeext=
3308 else
3309 ac_file=''
3311 if test -z "$ac_file"; then :
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 $as_echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error 77 "C compiler cannot create executables
3320 See \`config.log' for more details" "$LINENO" 5; }
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323 $as_echo "yes" >&6; }
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3326 $as_echo_n "checking for C compiler default output file name... " >&6; }
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3328 $as_echo "$ac_file" >&6; }
3329 ac_exeext=$ac_cv_exeext
3331 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3332 ac_clean_files=$ac_clean_files_save
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3334 $as_echo_n "checking for suffix of executables... " >&6; }
3335 if { { ac_try="$ac_link"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342 (eval "$ac_link") 2>&5
3343 ac_status=$?
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }; then :
3346 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3347 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3348 # work properly (i.e., refer to `conftest.exe'), while it won't with
3349 # `rm'.
3350 for ac_file in conftest.exe conftest conftest.*; do
3351 test -f "$ac_file" || continue
3352 case $ac_file in
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3354 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355 break;;
3356 * ) break;;
3357 esac
3358 done
3359 else
3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3363 See \`config.log' for more details" "$LINENO" 5; }
3365 rm -f conftest conftest$ac_cv_exeext
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3367 $as_echo "$ac_cv_exeext" >&6; }
3369 rm -f conftest.$ac_ext
3370 EXEEXT=$ac_cv_exeext
3371 ac_exeext=$EXEEXT
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3374 #include <stdio.h>
3376 main ()
3378 FILE *f = fopen ("conftest.out", "w");
3379 return ferror (f) || fclose (f) != 0;
3382 return 0;
3384 _ACEOF
3385 ac_clean_files="$ac_clean_files conftest.out"
3386 # Check that the compiler produces executables we can run. If not, either
3387 # the compiler is broken, or we cross compile.
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3389 $as_echo_n "checking whether we are cross compiling... " >&6; }
3390 if test "$cross_compiling" != yes; then
3391 { { ac_try="$ac_link"
3392 case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_link") 2>&5
3399 ac_status=$?
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }
3402 if { ac_try='./conftest$ac_cv_exeext'
3403 { { case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_try") 2>&5
3410 ac_status=$?
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }; }; then
3413 cross_compiling=no
3414 else
3415 if test "$cross_compiling" = maybe; then
3416 cross_compiling=yes
3417 else
3418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error $? "cannot run C compiled programs.
3421 If you meant to cross compile, use \`--host'.
3422 See \`config.log' for more details" "$LINENO" 5; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3427 $as_echo "$cross_compiling" >&6; }
3429 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3430 ac_clean_files=$ac_clean_files_save
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3432 $as_echo_n "checking for suffix of object files... " >&6; }
3433 if ${ac_cv_objext+:} false; then :
3434 $as_echo_n "(cached) " >&6
3435 else
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3440 main ()
3444 return 0;
3446 _ACEOF
3447 rm -f conftest.o conftest.obj
3448 if { { ac_try="$ac_compile"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_compile") 2>&5
3456 ac_status=$?
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; then :
3459 for ac_file in conftest.o conftest.obj conftest.*; do
3460 test -f "$ac_file" || continue;
3461 case $ac_file in
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3463 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3464 break;;
3465 esac
3466 done
3467 else
3468 $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "cannot compute suffix of object files: cannot compile
3474 See \`config.log' for more details" "$LINENO" 5; }
3476 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3479 $as_echo "$ac_cv_objext" >&6; }
3480 OBJEXT=$ac_cv_objext
3481 ac_objext=$OBJEXT
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3483 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3484 if ${ac_cv_c_compiler_gnu+:} false; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3491 main ()
3493 #ifndef __GNUC__
3494 choke me
3495 #endif
3498 return 0;
3500 _ACEOF
3501 if ac_fn_c_try_compile "$LINENO"; then :
3502 ac_compiler_gnu=yes
3503 else
3504 ac_compiler_gnu=no
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3511 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3512 if test $ac_compiler_gnu = yes; then
3513 GCC=yes
3514 else
3515 GCC=
3517 ac_test_CFLAGS=${CFLAGS+set}
3518 ac_save_CFLAGS=$CFLAGS
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3520 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3521 if ${ac_cv_prog_cc_g+:} false; then :
3522 $as_echo_n "(cached) " >&6
3523 else
3524 ac_save_c_werror_flag=$ac_c_werror_flag
3525 ac_c_werror_flag=yes
3526 ac_cv_prog_cc_g=no
3527 CFLAGS="-g"
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3532 main ()
3536 return 0;
3538 _ACEOF
3539 if ac_fn_c_try_compile "$LINENO"; then :
3540 ac_cv_prog_cc_g=yes
3541 else
3542 CFLAGS=""
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3547 main ()
3551 return 0;
3553 _ACEOF
3554 if ac_fn_c_try_compile "$LINENO"; then :
3556 else
3557 ac_c_werror_flag=$ac_save_c_werror_flag
3558 CFLAGS="-g"
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3563 main ()
3567 return 0;
3569 _ACEOF
3570 if ac_fn_c_try_compile "$LINENO"; then :
3571 ac_cv_prog_cc_g=yes
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_c_werror_flag=$ac_save_c_werror_flag
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3581 $as_echo "$ac_cv_prog_cc_g" >&6; }
3582 if test "$ac_test_CFLAGS" = set; then
3583 CFLAGS=$ac_save_CFLAGS
3584 elif test $ac_cv_prog_cc_g = yes; then
3585 if test "$GCC" = yes; then
3586 CFLAGS="-g -O2"
3587 else
3588 CFLAGS="-g"
3590 else
3591 if test "$GCC" = yes; then
3592 CFLAGS="-O2"
3593 else
3594 CFLAGS=
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3598 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3599 if ${ac_cv_prog_cc_c89+:} false; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 ac_cv_prog_cc_c89=no
3603 ac_save_CC=$CC
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606 #include <stdarg.h>
3607 #include <stdio.h>
3608 #include <sys/types.h>
3609 #include <sys/stat.h>
3610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3611 struct buf { int x; };
3612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3613 static char *e (p, i)
3614 char **p;
3615 int i;
3617 return p[i];
3619 static char *f (char * (*g) (char **, int), char **p, ...)
3621 char *s;
3622 va_list v;
3623 va_start (v,p);
3624 s = g (p, va_arg (v,int));
3625 va_end (v);
3626 return s;
3629 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3630 function prototypes and stuff, but not '\xHH' hex character constants.
3631 These don't provoke an error unfortunately, instead are silently treated
3632 as 'x'. The following induces an error, until -std is added to get
3633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3634 array size at least. It's necessary to write '\x00'==0 to get something
3635 that's true only with -std. */
3636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3638 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3639 inside strings and character constants. */
3640 #define FOO(x) 'x'
3641 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3643 int test (int i, double x);
3644 struct s1 {int (*f) (int a);};
3645 struct s2 {int (*f) (double a);};
3646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3647 int argc;
3648 char **argv;
3650 main ()
3652 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3654 return 0;
3656 _ACEOF
3657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3660 CC="$ac_save_CC $ac_arg"
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662 ac_cv_prog_cc_c89=$ac_arg
3664 rm -f core conftest.err conftest.$ac_objext
3665 test "x$ac_cv_prog_cc_c89" != "xno" && break
3666 done
3667 rm -f conftest.$ac_ext
3668 CC=$ac_save_CC
3671 # AC_CACHE_VAL
3672 case "x$ac_cv_prog_cc_c89" in
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3675 $as_echo "none needed" >&6; } ;;
3676 xno)
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3678 $as_echo "unsupported" >&6; } ;;
3680 CC="$CC $ac_cv_prog_cc_c89"
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3682 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3683 esac
3684 if test "x$ac_cv_prog_cc_c89" != xno; then :
3688 ac_ext=c
3689 ac_cpp='$CPP $CPPFLAGS'
3690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694 ac_ext=cpp
3695 ac_cpp='$CXXCPP $CPPFLAGS'
3696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3699 if test -z "$CXX"; then
3700 if test -n "$CCC"; then
3701 CXX=$CCC
3702 else
3703 if test -n "$ac_tool_prefix"; then
3704 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if ${ac_cv_prog_CXX+:} false; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 if test -n "$CXX"; then
3714 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 break 2
3727 done
3728 done
3729 IFS=$as_save_IFS
3733 CXX=$ac_cv_prog_CXX
3734 if test -n "$CXX"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3736 $as_echo "$CXX" >&6; }
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3743 test -n "$CXX" && break
3744 done
3746 if test -z "$CXX"; then
3747 ac_ct_CXX=$CXX
3748 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3750 # Extract the first word of "$ac_prog", so it can be a program name with args.
3751 set dummy $ac_prog; ac_word=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 if test -n "$ac_ct_CXX"; then
3758 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 ac_cv_prog_ac_ct_CXX="$ac_prog"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3771 done
3772 done
3773 IFS=$as_save_IFS
3777 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3778 if test -n "$ac_ct_CXX"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3780 $as_echo "$ac_ct_CXX" >&6; }
3781 else
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3787 test -n "$ac_ct_CXX" && break
3788 done
3790 if test "x$ac_ct_CXX" = x; then
3791 CXX="g++"
3792 else
3793 case $cross_compiling:$ac_tool_warned in
3794 yes:)
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3797 ac_tool_warned=yes ;;
3798 esac
3799 CXX=$ac_ct_CXX
3805 # Provide some information about the compiler.
3806 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3807 set X $ac_compile
3808 ac_compiler=$2
3809 for ac_option in --version -v -V -qversion; do
3810 { { ac_try="$ac_compiler $ac_option >&5"
3811 case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3818 ac_status=$?
3819 if test -s conftest.err; then
3820 sed '10a\
3821 ... rest of stderr output deleted ...
3822 10q' conftest.err >conftest.er1
3823 cat conftest.er1 >&5
3825 rm -f conftest.er1 conftest.err
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3828 done
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3831 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3832 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3839 main ()
3841 #ifndef __GNUC__
3842 choke me
3843 #endif
3846 return 0;
3848 _ACEOF
3849 if ac_fn_cxx_try_compile "$LINENO"; then :
3850 ac_compiler_gnu=yes
3851 else
3852 ac_compiler_gnu=no
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3859 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3860 if test $ac_compiler_gnu = yes; then
3861 GXX=yes
3862 else
3863 GXX=
3865 ac_test_CXXFLAGS=${CXXFLAGS+set}
3866 ac_save_CXXFLAGS=$CXXFLAGS
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3868 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3869 if ${ac_cv_prog_cxx_g+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3873 ac_cxx_werror_flag=yes
3874 ac_cv_prog_cxx_g=no
3875 CXXFLAGS="-g"
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3880 main ()
3884 return 0;
3886 _ACEOF
3887 if ac_fn_cxx_try_compile "$LINENO"; then :
3888 ac_cv_prog_cxx_g=yes
3889 else
3890 CXXFLAGS=""
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3895 main ()
3899 return 0;
3901 _ACEOF
3902 if ac_fn_cxx_try_compile "$LINENO"; then :
3904 else
3905 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3906 CXXFLAGS="-g"
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3911 main ()
3915 return 0;
3917 _ACEOF
3918 if ac_fn_cxx_try_compile "$LINENO"; then :
3919 ac_cv_prog_cxx_g=yes
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3929 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3930 if test "$ac_test_CXXFLAGS" = set; then
3931 CXXFLAGS=$ac_save_CXXFLAGS
3932 elif test $ac_cv_prog_cxx_g = yes; then
3933 if test "$GXX" = yes; then
3934 CXXFLAGS="-g -O2"
3935 else
3936 CXXFLAGS="-g"
3938 else
3939 if test "$GXX" = yes; then
3940 CXXFLAGS="-O2"
3941 else
3942 CXXFLAGS=
3945 ac_ext=c
3946 ac_cpp='$CPP $CPPFLAGS'
3947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 if test -n "$ac_tool_prefix"; then
3952 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3953 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if ${ac_cv_prog_CPPBIN+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 if test -n "$CPPBIN"; then
3960 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3961 else
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3969 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 break 2
3973 done
3974 done
3975 IFS=$as_save_IFS
3979 CPPBIN=$ac_cv_prog_CPPBIN
3980 if test -n "$CPPBIN"; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3982 $as_echo "$CPPBIN" >&6; }
3983 else
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3990 if test -z "$ac_cv_prog_CPPBIN"; then
3991 ac_ct_CPPBIN=$CPPBIN
3992 # Extract the first word of "cpp", so it can be a program name with args.
3993 set dummy cpp; ac_word=$2
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995 $as_echo_n "checking for $ac_word... " >&6; }
3996 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 if test -n "$ac_ct_CPPBIN"; then
4000 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009 ac_cv_prog_ac_ct_CPPBIN="cpp"
4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 break 2
4013 done
4014 done
4015 IFS=$as_save_IFS
4019 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4020 if test -n "$ac_ct_CPPBIN"; then
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4022 $as_echo "$ac_ct_CPPBIN" >&6; }
4023 else
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025 $as_echo "no" >&6; }
4028 if test "x$ac_ct_CPPBIN" = x; then
4029 CPPBIN="cpp"
4030 else
4031 case $cross_compiling:$ac_tool_warned in
4032 yes:)
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4035 ac_tool_warned=yes ;;
4036 esac
4037 CPPBIN=$ac_ct_CPPBIN
4039 else
4040 CPPBIN="$ac_cv_prog_CPPBIN"
4044 cat >>confdefs.h <<_ACEOF
4045 #define EXEEXT "$ac_exeext"
4046 _ACEOF
4049 case $host in
4050 *-darwin*)
4051 if test "x$enable_win64" = "xyes"
4052 then
4053 CC="$CC -m64"
4054 CXX="$CXX -m64"
4055 host_cpu="x86_64"
4056 notice_platform="64-bit "
4057 TARGETFLAGS="-m64"
4059 else
4060 CC="$CC -m32"
4061 CXX="$CXX -m32"
4062 host_cpu="i386"
4063 notice_platform="32-bit "
4064 TARGETFLAGS="-m32"
4066 enable_win16=${enable_win16:-yes}
4069 x86_64*)
4070 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4071 then
4072 CC="$CC -m32"
4073 CXX="$CXX -m32"
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4075 $as_echo_n "checking whether $CC works... " >&6; }
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4081 main ()
4085 return 0;
4087 _ACEOF
4088 if ac_fn_c_try_link "$LINENO"; then :
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4090 $as_echo "yes" >&6; }
4091 else
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4094 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4096 rm -f core conftest.err conftest.$ac_objext \
4097 conftest$ac_exeext conftest.$ac_ext
4098 host_cpu="i386"
4099 notice_platform="32-bit "
4100 TARGETFLAGS="-m32"
4102 enable_win16=${enable_win16:-yes}
4103 else
4104 if test "x${GCC}" = "xyes"
4105 then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4107 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110 #include <stdarg.h>
4112 main ()
4114 void func(__builtin_ms_va_list *args);
4116 return 0;
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4121 $as_echo "yes" >&6; }
4122 else
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4125 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 TARGETFLAGS="-m64"
4133 *-mingw32*|*-cygwin*)
4134 enable_win16=${enable_win16:-no}
4135 CFLAGS="$CFLAGS -D_WIN32"
4137 i[3456789]86*)
4138 enable_win16=${enable_win16:-yes}
4140 esac
4142 enable_win16=${enable_win16:-no}
4143 enable_win64=${enable_win64:-no}
4145 enable_winetest=${enable_winetest:-$enable_tests}
4147 if test -n "$with_wine64"
4148 then
4149 if test "x$enable_win64" = "xyes"
4150 then
4151 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4152 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4154 WOW64_DISABLE=\#
4156 enable_fonts=${enable_fonts:-no}
4157 enable_server=${enable_server:-no}
4158 enable_tools=${enable_tools:-no}
4159 elif test "x$enable_win64" = "xyes"
4160 then
4161 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4165 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4166 if ${wine_cv_toolsdir+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 wine_cv_toolsdir="$with_wine_tools"
4170 if test -z "$with_wine_tools"; then
4171 if test "$cross_compiling" = "yes"; then
4172 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4173 elif test -n "$with_wine64"; then
4174 wine_cv_toolsdir="$with_wine64"
4177 if test -z "$wine_cv_toolsdir"; then
4178 wine_cv_toolsdir="\$(top_builddir)"
4179 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4180 case "$wine_cv_toolsdir" in
4181 /*) ;;
4182 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4183 esac
4184 else
4185 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4189 $as_echo "$wine_cv_toolsdir" >&6; }
4190 TOOLSDIR=$wine_cv_toolsdir
4192 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4193 then
4194 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4198 for ac_prog in flex
4200 # Extract the first word of "$ac_prog", so it can be a program name with args.
4201 set dummy $ac_prog; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if ${ac_cv_prog_FLEX+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 if test -n "$FLEX"; then
4208 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217 ac_cv_prog_FLEX="$ac_prog"
4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4221 done
4222 done
4223 IFS=$as_save_IFS
4227 FLEX=$ac_cv_prog_FLEX
4228 if test -n "$FLEX"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4230 $as_echo "$FLEX" >&6; }
4231 else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4237 test -n "$FLEX" && break
4238 done
4239 test -n "$FLEX" || FLEX="none"
4241 if test "$FLEX" = "none"
4242 then
4243 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4246 $as_echo_n "checking whether flex is recent enough... " >&6; }
4247 cat >conftest.l <<EOF
4248 %top{
4249 #include "prediluvian.h"
4253 if $FLEX -t conftest.l >/dev/null 2>&5
4254 then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4256 $as_echo "yes" >&6; }
4257 else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4260 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4263 for ac_prog in bison
4265 # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_BISON+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 if test -n "$BISON"; then
4273 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_BISON="$ac_prog"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4286 done
4287 done
4288 IFS=$as_save_IFS
4292 BISON=$ac_cv_prog_BISON
4293 if test -n "$BISON"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4295 $as_echo "$BISON" >&6; }
4296 else
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4302 test -n "$BISON" && break
4303 done
4304 test -n "$BISON" || BISON="none"
4306 if test "$BISON" = "none"
4307 then
4308 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4311 if test -n "$ac_tool_prefix"; then
4312 for ac_prog in ar gar
4314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if ${ac_cv_prog_AR+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -n "$AR"; then
4322 ac_cv_prog_AR="$AR" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4335 done
4336 done
4337 IFS=$as_save_IFS
4341 AR=$ac_cv_prog_AR
4342 if test -n "$AR"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4344 $as_echo "$AR" >&6; }
4345 else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4351 test -n "$AR" && break
4352 done
4354 if test -z "$AR"; then
4355 ac_ct_AR=$AR
4356 for ac_prog in ar gar
4358 # Extract the first word of "$ac_prog", so it can be a program name with args.
4359 set dummy $ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 if test -n "$ac_ct_AR"; then
4366 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_ac_ct_AR="$ac_prog"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4379 done
4380 done
4381 IFS=$as_save_IFS
4385 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4386 if test -n "$ac_ct_AR"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4388 $as_echo "$ac_ct_AR" >&6; }
4389 else
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4395 test -n "$ac_ct_AR" && break
4396 done
4398 if test "x$ac_ct_AR" = x; then
4399 AR="ar"
4400 else
4401 case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407 AR=$ac_ct_AR
4411 ARFLAGS=rc
4413 if test -n "$ac_tool_prefix"; then
4414 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4415 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_RANLIB+:} false; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 if test -n "$RANLIB"; then
4422 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4435 done
4436 done
4437 IFS=$as_save_IFS
4441 RANLIB=$ac_cv_prog_RANLIB
4442 if test -n "$RANLIB"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4444 $as_echo "$RANLIB" >&6; }
4445 else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4452 if test -z "$ac_cv_prog_RANLIB"; then
4453 ac_ct_RANLIB=$RANLIB
4454 # Extract the first word of "ranlib", so it can be a program name with args.
4455 set dummy ranlib; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if test -n "$ac_ct_RANLIB"; then
4462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_ac_ct_RANLIB="ranlib"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4475 done
4476 done
4477 IFS=$as_save_IFS
4481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4482 if test -n "$ac_ct_RANLIB"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4484 $as_echo "$ac_ct_RANLIB" >&6; }
4485 else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4490 if test "x$ac_ct_RANLIB" = x; then
4491 RANLIB=":"
4492 else
4493 case $cross_compiling:$ac_tool_warned in
4494 yes:)
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4497 ac_tool_warned=yes ;;
4498 esac
4499 RANLIB=$ac_ct_RANLIB
4501 else
4502 RANLIB="$ac_cv_prog_RANLIB"
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4506 $as_echo_n "checking whether ln -s works... " >&6; }
4507 LN_S=$as_ln_s
4508 if test "$LN_S" = "ln -s"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4510 $as_echo "yes" >&6; }
4511 else
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4513 $as_echo "no, using $LN_S" >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4517 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4518 if ${ac_cv_path_GREP+:} false; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test -z "$GREP"; then
4522 ac_path_GREP_found=false
4523 # Loop through the user's path and test for each of PROGNAME-LIST
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_prog in grep ggrep; do
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4532 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4533 # Check for GNU ac_path_GREP and select it if it is found.
4534 # Check for GNU $ac_path_GREP
4535 case `"$ac_path_GREP" --version 2>&1` in
4536 *GNU*)
4537 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4539 ac_count=0
4540 $as_echo_n 0123456789 >"conftest.in"
4541 while :
4543 cat "conftest.in" "conftest.in" >"conftest.tmp"
4544 mv "conftest.tmp" "conftest.in"
4545 cp "conftest.in" "conftest.nl"
4546 $as_echo 'GREP' >> "conftest.nl"
4547 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4549 as_fn_arith $ac_count + 1 && ac_count=$as_val
4550 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4551 # Best one so far, save it but keep looking for a better one
4552 ac_cv_path_GREP="$ac_path_GREP"
4553 ac_path_GREP_max=$ac_count
4555 # 10*(2^10) chars as input seems more than enough
4556 test $ac_count -gt 10 && break
4557 done
4558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4559 esac
4561 $ac_path_GREP_found && break 3
4562 done
4563 done
4564 done
4565 IFS=$as_save_IFS
4566 if test -z "$ac_cv_path_GREP"; then
4567 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4569 else
4570 ac_cv_path_GREP=$GREP
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4575 $as_echo "$ac_cv_path_GREP" >&6; }
4576 GREP="$ac_cv_path_GREP"
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4580 $as_echo_n "checking for egrep... " >&6; }
4581 if ${ac_cv_path_EGREP+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4585 then ac_cv_path_EGREP="$GREP -E"
4586 else
4587 if test -z "$EGREP"; then
4588 ac_path_EGREP_found=false
4589 # Loop through the user's path and test for each of PROGNAME-LIST
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_prog in egrep; do
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4598 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4599 # Check for GNU ac_path_EGREP and select it if it is found.
4600 # Check for GNU $ac_path_EGREP
4601 case `"$ac_path_EGREP" --version 2>&1` in
4602 *GNU*)
4603 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4605 ac_count=0
4606 $as_echo_n 0123456789 >"conftest.in"
4607 while :
4609 cat "conftest.in" "conftest.in" >"conftest.tmp"
4610 mv "conftest.tmp" "conftest.in"
4611 cp "conftest.in" "conftest.nl"
4612 $as_echo 'EGREP' >> "conftest.nl"
4613 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4615 as_fn_arith $ac_count + 1 && ac_count=$as_val
4616 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4617 # Best one so far, save it but keep looking for a better one
4618 ac_cv_path_EGREP="$ac_path_EGREP"
4619 ac_path_EGREP_max=$ac_count
4621 # 10*(2^10) chars as input seems more than enough
4622 test $ac_count -gt 10 && break
4623 done
4624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4625 esac
4627 $ac_path_EGREP_found && break 3
4628 done
4629 done
4630 done
4631 IFS=$as_save_IFS
4632 if test -z "$ac_cv_path_EGREP"; then
4633 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4635 else
4636 ac_cv_path_EGREP=$EGREP
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4642 $as_echo "$ac_cv_path_EGREP" >&6; }
4643 EGREP="$ac_cv_path_EGREP"
4646 # Extract the first word of "ldconfig", so it can be a program name with args.
4647 set dummy ldconfig; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_path_LDCONFIG+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 case $LDCONFIG in
4654 [\\/]* | ?:[\\/]*)
4655 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in /sbin /usr/sbin $PATH
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4669 done
4670 done
4671 IFS=$as_save_IFS
4673 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4675 esac
4677 LDCONFIG=$ac_cv_path_LDCONFIG
4678 if test -n "$LDCONFIG"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4680 $as_echo "$LDCONFIG" >&6; }
4681 else
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4687 # Find a good install program. We prefer a C program (faster),
4688 # so one script is as good as another. But avoid the broken or
4689 # incompatible versions:
4690 # SysV /etc/install, /usr/sbin/install
4691 # SunOS /usr/etc/install
4692 # IRIX /sbin/install
4693 # AIX /bin/install
4694 # AmigaOS /C/install, which installs bootblocks on floppy discs
4695 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4696 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4697 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4698 # OS/2's system install, which has a completely different semantic
4699 # ./install, which can be erroneously created by make from ./install.sh.
4700 # Reject install programs that cannot install multiple files.
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4702 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4703 if test -z "$INSTALL"; then
4704 if ${ac_cv_path_install+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 # Account for people who put trailing slashes in PATH elements.
4713 case $as_dir/ in #((
4714 ./ | .// | /[cC]/* | \
4715 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4716 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4717 /usr/ucb/* ) ;;
4719 # OSF1 and SCO ODT 3.0 have their own names for install.
4720 # Don't use installbsd from OSF since it installs stuff as root
4721 # by default.
4722 for ac_prog in ginstall scoinst install; do
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4725 if test $ac_prog = install &&
4726 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4727 # AIX install. It has an incompatible calling convention.
4729 elif test $ac_prog = install &&
4730 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4731 # program-specific install script used by HP pwplus--don't use.
4733 else
4734 rm -rf conftest.one conftest.two conftest.dir
4735 echo one > conftest.one
4736 echo two > conftest.two
4737 mkdir conftest.dir
4738 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4739 test -s conftest.one && test -s conftest.two &&
4740 test -s conftest.dir/conftest.one &&
4741 test -s conftest.dir/conftest.two
4742 then
4743 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4744 break 3
4748 done
4749 done
4751 esac
4753 done
4754 IFS=$as_save_IFS
4756 rm -rf conftest.one conftest.two conftest.dir
4759 if test "${ac_cv_path_install+set}" = set; then
4760 INSTALL=$ac_cv_path_install
4761 else
4762 # As a last resort, use the slow shell script. Don't cache a
4763 # value for INSTALL within a source directory, because that will
4764 # break other packages using the cache if that directory is
4765 # removed, or if the value is a relative name.
4766 INSTALL=$ac_install_sh
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4770 $as_echo "$INSTALL" >&6; }
4772 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4773 # It thinks the first close brace ends the variable substitution.
4774 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4776 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4778 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4780 case "$INSTALL" in
4781 [\\/$]* | ?:[\\/]* ) ;;
4782 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4783 esac
4785 for ac_prog in lclint lint
4787 # Extract the first word of "$ac_prog", so it can be a program name with args.
4788 set dummy $ac_prog; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if ${ac_cv_prog_LINT+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -n "$LINT"; then
4795 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_LINT="$ac_prog"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4808 done
4809 done
4810 IFS=$as_save_IFS
4814 LINT=$ac_cv_prog_LINT
4815 if test -n "$LINT"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4817 $as_echo "$LINT" >&6; }
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4824 test -n "$LINT" && break
4825 done
4827 if test "$LINT" = "lint"
4828 then
4829 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4833 for ac_prog in fontforge
4835 # Extract the first word of "$ac_prog", so it can be a program name with args.
4836 set dummy $ac_prog; ac_word=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if ${ac_cv_prog_FONTFORGE+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 if test -n "$FONTFORGE"; then
4843 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4844 else
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4852 ac_cv_prog_FONTFORGE="$ac_prog"
4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 break 2
4856 done
4857 done
4858 IFS=$as_save_IFS
4862 FONTFORGE=$ac_cv_prog_FONTFORGE
4863 if test -n "$FONTFORGE"; then
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4865 $as_echo "$FONTFORGE" >&6; }
4866 else
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4872 test -n "$FONTFORGE" && break
4873 done
4874 test -n "$FONTFORGE" || FONTFORGE="false"
4876 for ac_prog in pkg-config
4878 # Extract the first word of "$ac_prog", so it can be a program name with args.
4879 set dummy $ac_prog; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 if test -n "$PKG_CONFIG"; then
4886 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_PKG_CONFIG="$ac_prog"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4899 done
4900 done
4901 IFS=$as_save_IFS
4905 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4906 if test -n "$PKG_CONFIG"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4908 $as_echo "$PKG_CONFIG" >&6; }
4909 else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4915 test -n "$PKG_CONFIG" && break
4916 done
4917 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4919 for ac_prog in rsvg
4921 # Extract the first word of "$ac_prog", so it can be a program name with args.
4922 set dummy $ac_prog; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if ${ac_cv_prog_RSVG+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 if test -n "$RSVG"; then
4929 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_prog_RSVG="$ac_prog"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4942 done
4943 done
4944 IFS=$as_save_IFS
4948 RSVG=$ac_cv_prog_RSVG
4949 if test -n "$RSVG"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4951 $as_echo "$RSVG" >&6; }
4952 else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4958 test -n "$RSVG" && break
4959 done
4960 test -n "$RSVG" || RSVG="false"
4962 for ac_prog in convert
4964 # Extract the first word of "$ac_prog", so it can be a program name with args.
4965 set dummy $ac_prog; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_prog_CONVERT+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971 if test -n "$CONVERT"; then
4972 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981 ac_cv_prog_CONVERT="$ac_prog"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 break 2
4985 done
4986 done
4987 IFS=$as_save_IFS
4991 CONVERT=$ac_cv_prog_CONVERT
4992 if test -n "$CONVERT"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4994 $as_echo "$CONVERT" >&6; }
4995 else
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
5001 test -n "$CONVERT" && break
5002 done
5003 test -n "$CONVERT" || CONVERT="false"
5005 for ac_prog in icotool
5007 # Extract the first word of "$ac_prog", so it can be a program name with args.
5008 set dummy $ac_prog; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_prog_ICOTOOL+:} false; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 if test -n "$ICOTOOL"; then
5015 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5016 else
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024 ac_cv_prog_ICOTOOL="$ac_prog"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5028 done
5029 done
5030 IFS=$as_save_IFS
5034 ICOTOOL=$ac_cv_prog_ICOTOOL
5035 if test -n "$ICOTOOL"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5037 $as_echo "$ICOTOOL" >&6; }
5038 else
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5044 test -n "$ICOTOOL" && break
5045 done
5046 test -n "$ICOTOOL" || ICOTOOL="false"
5048 for ac_prog in msgfmt
5050 # Extract the first word of "$ac_prog", so it can be a program name with args.
5051 set dummy $ac_prog; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_MSGFMT+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 if test -n "$MSGFMT"; then
5058 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067 ac_cv_prog_MSGFMT="$ac_prog"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5071 done
5072 done
5073 IFS=$as_save_IFS
5077 MSGFMT=$ac_cv_prog_MSGFMT
5078 if test -n "$MSGFMT"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5080 $as_echo "$MSGFMT" >&6; }
5081 else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5087 test -n "$MSGFMT" && break
5088 done
5089 test -n "$MSGFMT" || MSGFMT="false"
5092 if test "x$enable_maintainer_mode" != "xyes"
5093 then
5094 MAINTAINER_MODE=\#
5096 else
5097 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5098 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5100 if test "$CONVERT" = false
5101 then
5102 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5103 else
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5105 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5106 convert_version=`convert --version | head -n1`
5107 if test "x$convert_version" != "x"
5108 then
5109 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5110 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5111 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5112 then
5113 CONVERT=false
5116 if test "$CONVERT" = false
5117 then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5119 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5120 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5121 else
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5123 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5127 if test "$ICOTOOL" = false
5128 then
5129 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5130 else
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5132 $as_echo_n "checking for recent enough icotool... " >&6; }
5133 icotool_version=`icotool --version | head -n1`
5134 if test "x$icotool_version" != "x"
5135 then
5136 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5137 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5138 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5139 then
5140 ICOTOOL=false
5141 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5144 if test "$ICOTOOL" = false
5145 then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5147 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5148 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5151 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5155 with_gettext=yes
5156 with_gettextpo=yes
5157 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5160 test "x$with_gettext" != xno || MSGFMT=false
5161 if test "$MSGFMT" = false; then :
5162 case "x$with_gettext" in
5163 x) as_fn_append wine_warnings "|gettext tools not found, translations won't be built." ;;
5164 xno) ;;
5165 *) as_fn_error $? "gettext tools not found, translations won't be built.
5166 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5167 esac
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5172 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5173 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 ac_check_lib_save_LIBS=$LIBS
5177 LIBS="-li386 $LIBS"
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5181 /* Override any GCC internal prototype to avoid an error.
5182 Use char because int might match the return type of a GCC
5183 builtin and then its argument prototype would still apply. */
5184 #ifdef __cplusplus
5185 extern "C"
5186 #endif
5187 char i386_set_ldt ();
5189 main ()
5191 return i386_set_ldt ();
5193 return 0;
5195 _ACEOF
5196 if ac_fn_c_try_link "$LINENO"; then :
5197 ac_cv_lib_i386_i386_set_ldt=yes
5198 else
5199 ac_cv_lib_i386_i386_set_ldt=no
5201 rm -f core conftest.err conftest.$ac_objext \
5202 conftest$ac_exeext conftest.$ac_ext
5203 LIBS=$ac_check_lib_save_LIBS
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5206 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5207 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5208 cat >>confdefs.h <<_ACEOF
5209 #define HAVE_LIBI386 1
5210 _ACEOF
5212 LIBS="-li386 $LIBS"
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5217 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5218 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 ac_check_lib_save_LIBS=$LIBS
5222 LIBS="-lossaudio $LIBS"
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5226 /* Override any GCC internal prototype to avoid an error.
5227 Use char because int might match the return type of a GCC
5228 builtin and then its argument prototype would still apply. */
5229 #ifdef __cplusplus
5230 extern "C"
5231 #endif
5232 char _oss_ioctl ();
5234 main ()
5236 return _oss_ioctl ();
5238 return 0;
5240 _ACEOF
5241 if ac_fn_c_try_link "$LINENO"; then :
5242 ac_cv_lib_ossaudio__oss_ioctl=yes
5243 else
5244 ac_cv_lib_ossaudio__oss_ioctl=no
5246 rm -f core conftest.err conftest.$ac_objext \
5247 conftest$ac_exeext conftest.$ac_ext
5248 LIBS=$ac_check_lib_save_LIBS
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5251 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5252 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5253 cat >>confdefs.h <<_ACEOF
5254 #define HAVE_LIBOSSAUDIO 1
5255 _ACEOF
5257 LIBS="-lossaudio $LIBS"
5262 XLIB=""
5264 OPENGL_LIBS=""
5268 # Check whether --enable-largefile was given.
5269 if test "${enable_largefile+set}" = set; then :
5270 enableval=$enable_largefile;
5273 if test "$enable_largefile" != no; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5276 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5277 if ${ac_cv_sys_largefile_CC+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 ac_cv_sys_largefile_CC=no
5281 if test "$GCC" != yes; then
5282 ac_save_CC=$CC
5283 while :; do
5284 # IRIX 6.2 and later do not support large files by default,
5285 # so use the C compiler's -n32 option if that helps.
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 #include <sys/types.h>
5289 /* Check that off_t can represent 2**63 - 1 correctly.
5290 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5291 since some C++ compilers masquerading as C compilers
5292 incorrectly reject 9223372036854775807. */
5293 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5295 && LARGE_OFF_T % 2147483647 == 1)
5296 ? 1 : -1];
5298 main ()
5302 return 0;
5304 _ACEOF
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306 break
5308 rm -f core conftest.err conftest.$ac_objext
5309 CC="$CC -n32"
5310 if ac_fn_c_try_compile "$LINENO"; then :
5311 ac_cv_sys_largefile_CC=' -n32'; break
5313 rm -f core conftest.err conftest.$ac_objext
5314 break
5315 done
5316 CC=$ac_save_CC
5317 rm -f conftest.$ac_ext
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5321 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5322 if test "$ac_cv_sys_largefile_CC" != no; then
5323 CC=$CC$ac_cv_sys_largefile_CC
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5327 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5328 if ${ac_cv_sys_file_offset_bits+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 while :; do
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #include <sys/types.h>
5335 /* Check that off_t can represent 2**63 - 1 correctly.
5336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5337 since some C++ compilers masquerading as C compilers
5338 incorrectly reject 9223372036854775807. */
5339 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5341 && LARGE_OFF_T % 2147483647 == 1)
5342 ? 1 : -1];
5344 main ()
5348 return 0;
5350 _ACEOF
5351 if ac_fn_c_try_compile "$LINENO"; then :
5352 ac_cv_sys_file_offset_bits=no; break
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 #define _FILE_OFFSET_BITS 64
5358 #include <sys/types.h>
5359 /* Check that off_t can represent 2**63 - 1 correctly.
5360 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5361 since some C++ compilers masquerading as C compilers
5362 incorrectly reject 9223372036854775807. */
5363 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5364 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5365 && LARGE_OFF_T % 2147483647 == 1)
5366 ? 1 : -1];
5368 main ()
5372 return 0;
5374 _ACEOF
5375 if ac_fn_c_try_compile "$LINENO"; then :
5376 ac_cv_sys_file_offset_bits=64; break
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 ac_cv_sys_file_offset_bits=unknown
5380 break
5381 done
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5384 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5385 case $ac_cv_sys_file_offset_bits in #(
5386 no | unknown) ;;
5388 cat >>confdefs.h <<_ACEOF
5389 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5390 _ACEOF
5392 esac
5393 rm -rf conftest*
5394 if test $ac_cv_sys_file_offset_bits = unknown; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5396 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5397 if ${ac_cv_sys_large_files+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 while :; do
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #include <sys/types.h>
5404 /* Check that off_t can represent 2**63 - 1 correctly.
5405 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5406 since some C++ compilers masquerading as C compilers
5407 incorrectly reject 9223372036854775807. */
5408 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5409 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5410 && LARGE_OFF_T % 2147483647 == 1)
5411 ? 1 : -1];
5413 main ()
5417 return 0;
5419 _ACEOF
5420 if ac_fn_c_try_compile "$LINENO"; then :
5421 ac_cv_sys_large_files=no; break
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 #define _LARGE_FILES 1
5427 #include <sys/types.h>
5428 /* Check that off_t can represent 2**63 - 1 correctly.
5429 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5430 since some C++ compilers masquerading as C compilers
5431 incorrectly reject 9223372036854775807. */
5432 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5433 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5434 && LARGE_OFF_T % 2147483647 == 1)
5435 ? 1 : -1];
5437 main ()
5441 return 0;
5443 _ACEOF
5444 if ac_fn_c_try_compile "$LINENO"; then :
5445 ac_cv_sys_large_files=1; break
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 ac_cv_sys_large_files=unknown
5449 break
5450 done
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5453 $as_echo "$ac_cv_sys_large_files" >&6; }
5454 case $ac_cv_sys_large_files in #(
5455 no | unknown) ;;
5457 cat >>confdefs.h <<_ACEOF
5458 #define _LARGE_FILES $ac_cv_sys_large_files
5459 _ACEOF
5461 esac
5462 rm -rf conftest*
5467 ac_ext=c
5468 ac_cpp='$CPP $CPPFLAGS'
5469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5473 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5474 # On Suns, sometimes $CPP names a directory.
5475 if test -n "$CPP" && test -d "$CPP"; then
5476 CPP=
5478 if test -z "$CPP"; then
5479 if ${ac_cv_prog_CPP+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 # Double quotes because CPP needs to be expanded
5483 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5485 ac_preproc_ok=false
5486 for ac_c_preproc_warn_flag in '' yes
5488 # Use a header file that comes with gcc, so configuring glibc
5489 # with a fresh cross-compiler works.
5490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5491 # <limits.h> exists even on freestanding compilers.
5492 # On the NeXT, cc -E runs the code through the compiler's parser,
5493 # not just through cpp. "Syntax error" is here to catch this case.
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h. */
5496 #ifdef __STDC__
5497 # include <limits.h>
5498 #else
5499 # include <assert.h>
5500 #endif
5501 Syntax error
5502 _ACEOF
5503 if ac_fn_c_try_cpp "$LINENO"; then :
5505 else
5506 # Broken: fails on valid input.
5507 continue
5509 rm -f conftest.err conftest.i conftest.$ac_ext
5511 # OK, works on sane cases. Now check whether nonexistent headers
5512 # can be detected and how.
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 #include <ac_nonexistent.h>
5516 _ACEOF
5517 if ac_fn_c_try_cpp "$LINENO"; then :
5518 # Broken: success on invalid input.
5519 continue
5520 else
5521 # Passes both tests.
5522 ac_preproc_ok=:
5523 break
5525 rm -f conftest.err conftest.i conftest.$ac_ext
5527 done
5528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5529 rm -f conftest.i conftest.err conftest.$ac_ext
5530 if $ac_preproc_ok; then :
5531 break
5534 done
5535 ac_cv_prog_CPP=$CPP
5538 CPP=$ac_cv_prog_CPP
5539 else
5540 ac_cv_prog_CPP=$CPP
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5543 $as_echo "$CPP" >&6; }
5544 ac_preproc_ok=false
5545 for ac_c_preproc_warn_flag in '' yes
5547 # Use a header file that comes with gcc, so configuring glibc
5548 # with a fresh cross-compiler works.
5549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5550 # <limits.h> exists even on freestanding compilers.
5551 # On the NeXT, cc -E runs the code through the compiler's parser,
5552 # not just through cpp. "Syntax error" is here to catch this case.
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5555 #ifdef __STDC__
5556 # include <limits.h>
5557 #else
5558 # include <assert.h>
5559 #endif
5560 Syntax error
5561 _ACEOF
5562 if ac_fn_c_try_cpp "$LINENO"; then :
5564 else
5565 # Broken: fails on valid input.
5566 continue
5568 rm -f conftest.err conftest.i conftest.$ac_ext
5570 # OK, works on sane cases. Now check whether nonexistent headers
5571 # can be detected and how.
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #include <ac_nonexistent.h>
5575 _ACEOF
5576 if ac_fn_c_try_cpp "$LINENO"; then :
5577 # Broken: success on invalid input.
5578 continue
5579 else
5580 # Passes both tests.
5581 ac_preproc_ok=:
5582 break
5584 rm -f conftest.err conftest.i conftest.$ac_ext
5586 done
5587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5588 rm -f conftest.i conftest.err conftest.$ac_ext
5589 if $ac_preproc_ok; then :
5591 else
5592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5594 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5595 See \`config.log' for more details" "$LINENO" 5; }
5598 ac_ext=c
5599 ac_cpp='$CPP $CPPFLAGS'
5600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5606 $as_echo_n "checking for ANSI C header files... " >&6; }
5607 if ${ac_cv_header_stdc+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <stdlib.h>
5613 #include <stdarg.h>
5614 #include <string.h>
5615 #include <float.h>
5618 main ()
5622 return 0;
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"; then :
5626 ac_cv_header_stdc=yes
5627 else
5628 ac_cv_header_stdc=no
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 if test $ac_cv_header_stdc = yes; then
5633 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 #include <string.h>
5638 _ACEOF
5639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5640 $EGREP "memchr" >/dev/null 2>&1; then :
5642 else
5643 ac_cv_header_stdc=no
5645 rm -f conftest*
5649 if test $ac_cv_header_stdc = yes; then
5650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #include <stdlib.h>
5655 _ACEOF
5656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5657 $EGREP "free" >/dev/null 2>&1; then :
5659 else
5660 ac_cv_header_stdc=no
5662 rm -f conftest*
5666 if test $ac_cv_header_stdc = yes; then
5667 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5668 if test "$cross_compiling" = yes; then :
5670 else
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <ctype.h>
5674 #include <stdlib.h>
5675 #if ((' ' & 0x0FF) == 0x020)
5676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5678 #else
5679 # define ISLOWER(c) \
5680 (('a' <= (c) && (c) <= 'i') \
5681 || ('j' <= (c) && (c) <= 'r') \
5682 || ('s' <= (c) && (c) <= 'z'))
5683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5684 #endif
5686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5688 main ()
5690 int i;
5691 for (i = 0; i < 256; i++)
5692 if (XOR (islower (i), ISLOWER (i))
5693 || toupper (i) != TOUPPER (i))
5694 return 2;
5695 return 0;
5697 _ACEOF
5698 if ac_fn_c_try_run "$LINENO"; then :
5700 else
5701 ac_cv_header_stdc=no
5703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5704 conftest.$ac_objext conftest.beam conftest.$ac_ext
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5710 $as_echo "$ac_cv_header_stdc" >&6; }
5711 if test $ac_cv_header_stdc = yes; then
5713 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5717 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5718 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5719 inttypes.h stdint.h unistd.h
5720 do :
5721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5722 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5724 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5725 cat >>confdefs.h <<_ACEOF
5726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5727 _ACEOF
5731 done
5734 for ac_header in \
5735 AL/al.h \
5736 ApplicationServices/ApplicationServices.h \
5737 AudioToolbox/AudioConverter.h \
5738 AudioUnit/AudioUnit.h \
5739 AudioUnit/AudioComponent.h \
5740 CL/cl.h \
5741 Carbon/Carbon.h \
5742 CoreAudio/CoreAudio.h \
5743 DiskArbitration/DiskArbitration.h \
5744 IOKit/IOKitLib.h \
5745 IOKit/hid/IOHIDLib.h \
5746 OpenAL/al.h \
5747 OpenCL/opencl.h \
5748 QuickTime/ImageCompression.h \
5749 Security/Security.h \
5750 alias.h \
5751 alsa/asoundlib.h \
5752 arpa/inet.h \
5753 arpa/nameser.h \
5754 asm/types.h \
5755 capi20.h \
5756 curses.h \
5757 direct.h \
5758 dirent.h \
5759 dlfcn.h \
5760 elf.h \
5761 float.h \
5762 fnmatch.h \
5763 fontconfig/fontconfig.h \
5764 getopt.h \
5765 gettext-po.h \
5766 grp.h \
5767 gsm.h \
5768 gsm/gsm.h \
5769 ieeefp.h \
5770 inet/mib2.h \
5771 io.h \
5772 jpeglib.h \
5773 kstat.h \
5774 lber.h \
5775 lcms.h \
5776 lcms/lcms.h \
5777 ldap.h \
5778 link.h \
5779 linux/cdrom.h \
5780 linux/compiler.h \
5781 linux/hdreg.h \
5782 linux/input.h \
5783 linux/ioctl.h \
5784 linux/joystick.h \
5785 linux/major.h \
5786 linux/param.h \
5787 linux/serial.h \
5788 linux/types.h \
5789 linux/ucdrom.h \
5790 mach-o/nlist.h \
5791 mach-o/loader.h \
5792 mach/mach.h \
5793 mach/machine.h \
5794 machine/cpu.h \
5795 machine/limits.h \
5796 machine/sysarch.h \
5797 mntent.h \
5798 mpg123.h \
5799 ncurses.h \
5800 netdb.h \
5801 netinet/in.h \
5802 netinet/in_systm.h \
5803 netinet/tcp.h \
5804 netinet/tcp_fsm.h \
5805 openssl/err.h \
5806 openssl/ssl.h \
5807 png.h \
5808 poll.h \
5809 port.h \
5810 process.h \
5811 pthread.h \
5812 pwd.h \
5813 sched.h \
5814 scsi/scsi.h \
5815 scsi/scsi_ioctl.h \
5816 scsi/sg.h \
5817 stdbool.h \
5818 stdint.h \
5819 strings.h \
5820 stropts.h \
5821 sys/asoundlib.h \
5822 sys/attr.h \
5823 sys/cdio.h \
5824 sys/elf32.h \
5825 sys/epoll.h \
5826 sys/event.h \
5827 sys/exec_elf.h \
5828 sys/filio.h \
5829 sys/inotify.h \
5830 sys/ioctl.h \
5831 sys/ipc.h \
5832 sys/limits.h \
5833 sys/link.h \
5834 sys/mman.h \
5835 sys/modem.h \
5836 sys/msg.h \
5837 sys/mtio.h \
5838 sys/param.h \
5839 sys/poll.h \
5840 sys/prctl.h \
5841 sys/protosw.h \
5842 sys/ptrace.h \
5843 sys/resource.h \
5844 sys/scsiio.h \
5845 sys/shm.h \
5846 sys/signal.h \
5847 sys/socket.h \
5848 sys/socketvar.h \
5849 sys/sockio.h \
5850 sys/statvfs.h \
5851 sys/strtio.h \
5852 sys/syscall.h \
5853 sys/tihdr.h \
5854 sys/time.h \
5855 sys/timeout.h \
5856 sys/times.h \
5857 sys/uio.h \
5858 sys/un.h \
5859 sys/utsname.h \
5860 sys/vm86.h \
5861 sys/wait.h \
5862 syscall.h \
5863 termios.h \
5864 tiffio.h \
5865 unistd.h \
5866 utime.h \
5867 valgrind/memcheck.h \
5868 valgrind/valgrind.h \
5869 zlib.h
5871 do :
5872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5873 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5874 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5875 cat >>confdefs.h <<_ACEOF
5876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5877 _ACEOF
5881 done
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5884 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5885 if ${ac_cv_header_stat_broken+:} false; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5890 #include <sys/types.h>
5891 #include <sys/stat.h>
5893 #if defined S_ISBLK && defined S_IFDIR
5894 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5895 #endif
5897 #if defined S_ISBLK && defined S_IFCHR
5898 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5899 #endif
5901 #if defined S_ISLNK && defined S_IFREG
5902 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5903 #endif
5905 #if defined S_ISSOCK && defined S_IFREG
5906 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5907 #endif
5909 _ACEOF
5910 if ac_fn_c_try_compile "$LINENO"; then :
5911 ac_cv_header_stat_broken=no
5912 else
5913 ac_cv_header_stat_broken=yes
5915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5918 $as_echo "$ac_cv_header_stat_broken" >&6; }
5919 if test $ac_cv_header_stat_broken = yes; then
5921 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5927 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5928 do :
5929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5930 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5931 #ifdef HAVE_SYS_PARAM_H
5932 # include <sys/param.h>
5933 #endif
5935 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5936 cat >>confdefs.h <<_ACEOF
5937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5938 _ACEOF
5942 done
5945 for ac_header in \
5946 netinet/ip.h \
5947 net/if.h \
5948 net/if_arp.h \
5949 net/if_dl.h \
5950 net/if_types.h \
5951 net/route.h \
5952 netinet/if_ether.h \
5953 netinet/if_inarp.h \
5954 netinet/in_pcb.h \
5955 netinet/ip_icmp.h \
5956 netinet/ip_var.h \
5957 netinet/udp.h \
5958 netipx/ipx.h \
5960 do :
5961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5962 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5963 #ifdef HAVE_SYS_SOCKET_H
5964 # include <sys/socket.h>
5965 #endif
5966 #ifdef HAVE_SYS_SOCKETVAR_H
5967 # include <sys/socketvar.h>
5968 #endif
5969 #ifdef HAVE_NET_ROUTE_H
5970 # include <net/route.h>
5971 #endif
5972 #ifdef HAVE_NETINET_IN_H
5973 # include <netinet/in.h>
5974 #endif
5975 #ifdef HAVE_NETINET_IN_SYSTM_H
5976 # include <netinet/in_systm.h>
5977 #endif
5978 #ifdef HAVE_NET_IF_H
5979 # include <net/if.h>
5980 #endif
5981 #ifdef HAVE_NETINET_IP_H
5982 # include <netinet/ip.h>
5983 #endif
5985 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5986 cat >>confdefs.h <<_ACEOF
5987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5988 _ACEOF
5992 done
5995 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5996 do :
5997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5998 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5999 #ifdef HAVE_ALIAS_H
6000 # include <alias.h>
6001 #endif
6002 #ifdef HAVE_SYS_SOCKET_H
6003 # include <sys/socket.h>
6004 #endif
6005 #ifdef HAVE_SYS_SOCKETVAR_H
6006 # include <sys/socketvar.h>
6007 #endif
6008 #ifdef HAVE_SYS_TIMEOUT_H
6009 # include <sys/timeout.h>
6010 #endif
6011 #ifdef HAVE_NETINET_IN_H
6012 # include <netinet/in.h>
6013 #endif
6014 #ifdef HAVE_NETINET_IN_SYSTM_H
6015 # include <netinet/in_systm.h>
6016 #endif
6017 #ifdef HAVE_NETINET_IP_H
6018 # include <netinet/ip.h>
6019 #endif
6020 #ifdef HAVE_NETINET_IP_VAR_H
6021 # include <netinet/ip_var.h>
6022 #endif
6023 #ifdef HAVE_NETINET_IP_ICMP_H
6024 # include <netinet/ip_icmp.h>
6025 #endif
6026 #ifdef HAVE_NETINET_UDP_H
6027 # include <netinet/udp.h>
6028 #endif
6029 #ifdef HAVE_NETINET_TCP_H
6030 # include <netinet/tcp.h>
6031 #endif
6032 #ifdef HAVE_NETINET_TCP_TIMER_H
6033 #include <netinet/tcp_timer.h>
6034 #endif
6036 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6037 cat >>confdefs.h <<_ACEOF
6038 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6039 _ACEOF
6043 done
6046 for ac_header in linux/ipx.h linux/irda.h
6047 do :
6048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6049 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6050 #ifdef HAVE_ASM_TYPES_H
6051 # include <asm/types.h>
6052 #endif
6053 #ifdef HAVE_SYS_SOCKET_H
6054 # include <sys/socket.h>
6055 #endif
6056 #ifdef HAVE_LINUX_TYPES_H
6057 # include <linux/types.h>
6058 #endif
6060 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6061 cat >>confdefs.h <<_ACEOF
6062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6063 _ACEOF
6067 done
6070 for ac_header in mach-o/dyld_images.h
6071 do :
6072 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6073 # include <stdbool.h>
6074 #endif
6075 #ifdef HAVE_STDINT_H
6076 # include <stdint.h>
6077 #endif
6079 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6080 cat >>confdefs.h <<_ACEOF
6081 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6082 _ACEOF
6086 done
6089 for ac_header in resolv.h
6090 do :
6091 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6092 #ifdef HAVE_SYS_SOCKET_H
6093 # include <sys/socket.h>
6094 #endif
6095 #ifdef HAVE_NETINET_IN_H
6096 # include <netinet/in.h>
6097 #endif
6098 #ifdef HAVE_ARPA_NAMESER_H
6099 # include <arpa/nameser.h>
6100 #endif
6102 if test "x$ac_cv_header_resolv_h" = xyes; then :
6103 cat >>confdefs.h <<_ACEOF
6104 #define HAVE_RESOLV_H 1
6105 _ACEOF
6109 done
6112 for ac_header in ifaddrs.h
6113 do :
6114 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6116 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6117 cat >>confdefs.h <<_ACEOF
6118 #define HAVE_IFADDRS_H 1
6119 _ACEOF
6123 done
6126 for ac_header in ucontext.h
6127 do :
6128 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6130 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6131 cat >>confdefs.h <<_ACEOF
6132 #define HAVE_UCONTEXT_H 1
6133 _ACEOF
6137 done
6140 for ac_header in sys/thr.h
6141 do :
6142 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6143 #ifdef HAVE_UCONTEXT_H
6144 #include <ucontext.h>
6145 #endif
6147 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6148 cat >>confdefs.h <<_ACEOF
6149 #define HAVE_SYS_THR_H 1
6150 _ACEOF
6154 done
6157 for ac_header in pthread_np.h
6158 do :
6159 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6160 #include <pthread.h>
6161 #endif
6163 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6164 cat >>confdefs.h <<_ACEOF
6165 #define HAVE_PTHREAD_NP_H 1
6166 _ACEOF
6170 done
6173 for ac_header in linux/videodev.h linux/videodev2.h
6174 do :
6175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6176 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6177 #include <sys/time.h>
6178 #endif
6179 #include <sys/types.h>
6180 #ifdef HAVE_ASM_TYPES_H
6181 #include <asm/types.h>
6182 #endif
6184 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6185 cat >>confdefs.h <<_ACEOF
6186 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6187 _ACEOF
6191 done
6194 for ac_header in linux/capi.h
6195 do :
6196 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6198 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6199 cat >>confdefs.h <<_ACEOF
6200 #define HAVE_LINUX_CAPI_H 1
6201 _ACEOF
6205 done
6209 DLLEXT=""
6211 DLLFLAGS="-D_REENTRANT"
6213 LDSHARED=""
6215 LDDLLFLAGS=""
6217 LIBEXT="so"
6219 IMPLIBEXT="def"
6221 LDRPATH_INSTALL=""
6223 LDRPATH_LOCAL=""
6225 STATIC_IMPLIBEXT="def.a"
6226 # Extract the first word of "ldd", so it can be a program name with args.
6227 set dummy ldd; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_path_LDD+:} false; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 case $LDD in
6234 [\\/]* | ?:[\\/]*)
6235 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 as_dummy="/sbin:/usr/sbin:$PATH"
6240 for as_dir in $as_dummy
6242 IFS=$as_save_IFS
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 break 2
6250 done
6251 done
6252 IFS=$as_save_IFS
6254 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6256 esac
6258 LDD=$ac_cv_path_LDD
6259 if test -n "$LDD"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6261 $as_echo "$LDD" >&6; }
6262 else
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6269 case $host_os in
6270 cygwin*|mingw32*)
6271 if test -n "$ac_tool_prefix"; then
6272 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6273 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if ${ac_cv_prog_DLLTOOL+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 if test -n "$DLLTOOL"; then
6280 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6293 done
6294 done
6295 IFS=$as_save_IFS
6299 DLLTOOL=$ac_cv_prog_DLLTOOL
6300 if test -n "$DLLTOOL"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6302 $as_echo "$DLLTOOL" >&6; }
6303 else
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6310 if test -z "$ac_cv_prog_DLLTOOL"; then
6311 ac_ct_DLLTOOL=$DLLTOOL
6312 # Extract the first word of "dlltool", so it can be a program name with args.
6313 set dummy dlltool; ac_word=$2
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 if test -n "$ac_ct_DLLTOOL"; then
6320 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6333 done
6334 done
6335 IFS=$as_save_IFS
6339 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6340 if test -n "$ac_ct_DLLTOOL"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6342 $as_echo "$ac_ct_DLLTOOL" >&6; }
6343 else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6348 if test "x$ac_ct_DLLTOOL" = x; then
6349 DLLTOOL="false"
6350 else
6351 case $cross_compiling:$ac_tool_warned in
6352 yes:)
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6355 ac_tool_warned=yes ;;
6356 esac
6357 DLLTOOL=$ac_ct_DLLTOOL
6359 else
6360 DLLTOOL="$ac_cv_prog_DLLTOOL"
6363 if test -n "$ac_tool_prefix"; then
6364 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6365 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if ${ac_cv_prog_DLLWRAP+:} false; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 if test -n "$DLLWRAP"; then
6372 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 break 2
6385 done
6386 done
6387 IFS=$as_save_IFS
6391 DLLWRAP=$ac_cv_prog_DLLWRAP
6392 if test -n "$DLLWRAP"; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6394 $as_echo "$DLLWRAP" >&6; }
6395 else
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6402 if test -z "$ac_cv_prog_DLLWRAP"; then
6403 ac_ct_DLLWRAP=$DLLWRAP
6404 # Extract the first word of "dllwrap", so it can be a program name with args.
6405 set dummy dllwrap; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 if test -n "$ac_ct_DLLWRAP"; then
6412 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6425 done
6426 done
6427 IFS=$as_save_IFS
6431 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6432 if test -n "$ac_ct_DLLWRAP"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6434 $as_echo "$ac_ct_DLLWRAP" >&6; }
6435 else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6440 if test "x$ac_ct_DLLWRAP" = x; then
6441 DLLWRAP="false"
6442 else
6443 case $cross_compiling:$ac_tool_warned in
6444 yes:)
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447 ac_tool_warned=yes ;;
6448 esac
6449 DLLWRAP=$ac_ct_DLLWRAP
6451 else
6452 DLLWRAP="$ac_cv_prog_DLLWRAP"
6455 if test "$DLLWRAP" = "false"; then
6456 LIBEXT="a"
6457 else
6458 LIBEXT="dll"
6460 IMPLIBEXT="a"
6461 STATIC_IMPLIBEXT="a"
6462 enable_iphlpapi=${enable_iphlpapi:-no}
6463 enable_kernel32=${enable_kernel32:-no}
6464 enable_msvcrt=${enable_msvcrt:-no}
6465 enable_ntdll=${enable_ntdll:-no}
6466 enable_ws2_32=${enable_ws2_32:-no}
6467 enable_loader=${enable_loader:-no}
6468 enable_server=${enable_server:-no}
6469 with_x=${with_x:-no}
6470 with_pthread=${with_pthread:-no}
6472 darwin*|macosx*)
6473 DLLEXT=".so"
6474 LIBEXT="dylib"
6475 DLLFLAGS="$DLLFLAGS -fPIC"
6476 LDDLLFLAGS="-bundle -multiply_defined suppress"
6477 LIBWINE_LDFLAGS="-multiply_defined suppress"
6478 LDSHARED="\$(CC) -dynamiclib"
6479 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6480 COREFOUNDATIONLIB="-framework CoreFoundation"
6482 IOKITLIB="-framework IOKit -framework CoreFoundation"
6484 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6486 case $host_os in
6487 darwin11*)
6488 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6491 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6493 esac
6494 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6495 then
6496 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6499 if test "$ac_cv_header_Security_Security_h" = "yes"
6500 then
6501 SECURITYLIB="-framework Security -framework CoreFoundation"
6503 ac_save_LIBS="$LIBS"
6504 LIBS="$LIBS $SECURITYLIB"
6505 for ac_func in SSLCopyPeerCertificates
6506 do :
6507 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6508 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6509 cat >>confdefs.h <<_ACEOF
6510 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6511 _ACEOF
6514 done
6516 LIBS="$ac_save_LIBS"
6517 with_gnutls=${with_gnutls:-no}
6519 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6520 then
6521 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6522 then
6523 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6525 else
6526 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6529 ac_save_LIBS="$LIBS"
6530 LIBS="$LIBS $COREAUDIO"
6531 for ac_func in AUGraphAddNode
6532 do :
6533 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6534 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6535 cat >>confdefs.h <<_ACEOF
6536 #define HAVE_AUGRAPHADDNODE 1
6537 _ACEOF
6540 done
6542 LIBS="$ac_save_LIBS"
6544 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6545 then
6546 FRAMEWORK_OPENAL="-framework OpenAL"
6549 cat >>confdefs.h <<_ACEOF
6550 #define HAVE_OPENAL 1
6551 _ACEOF
6553 ac_cv_lib_openal=yes
6555 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6556 then
6557 LIBOPENCL="-framework OpenCL"
6559 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6561 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6562 then
6563 ac_save_LIBS="$LIBS"
6564 LIBS="$LIBS $IOKITLIB"
6565 for ac_func in IOHIDManagerCreate
6566 do :
6567 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6568 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6569 cat >>confdefs.h <<_ACEOF
6570 #define HAVE_IOHIDMANAGERCREATE 1
6571 _ACEOF
6574 done
6576 LIBS="$ac_save_LIBS"
6578 case $host_cpu in
6579 *powerpc*)
6580 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6581 esac
6582 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6583 then
6584 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6586 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6587 else
6588 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6590 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6591 then
6592 CARBONLIB="-framework Carbon"
6594 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6596 if test "x$enable_win16" = "xyes"
6597 then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6599 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6600 if test "$cross_compiling" = yes; then :
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6602 $as_echo "cross-compiling, assuming yes" >&6; }
6603 else
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6606 asm(".text\n"
6607 "bad:\tnop;nop\n"
6608 "good:\tnop;nop\n\t"
6609 ".globl _testfunc\n"
6610 "_testfunc:\tcallw good");
6611 extern void testfunc();
6613 main ()
6615 unsigned short *p = (unsigned short *)testfunc;
6616 return p[0] != 0xe866 || p[1] != 0xfffa
6618 return 0;
6620 _ACEOF
6621 if ac_fn_c_try_run "$LINENO"; then :
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6623 $as_echo "yes" >&6; }
6624 else
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6627 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
6629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6630 conftest.$ac_objext conftest.beam conftest.$ac_ext
6636 DLLFLAGS="$DLLFLAGS -fPIC"
6637 DLLEXT=".so"
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6639 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6640 if ${ac_cv_c_dll_gnuelf+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 ac_wine_try_cflags_saved=$CFLAGS
6644 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6647 void myfunc() {}
6648 _ACEOF
6649 if ac_fn_c_try_link "$LINENO"; then :
6650 ac_cv_c_dll_gnuelf="yes"
6651 else
6652 ac_cv_c_dll_gnuelf="no"
6654 rm -f core conftest.err conftest.$ac_objext \
6655 conftest$ac_exeext conftest.$ac_ext
6656 CFLAGS=$ac_wine_try_cflags_saved
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6659 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6660 if test "$ac_cv_c_dll_gnuelf" = "yes"
6661 then
6662 LDSHARED="\$(CC) -shared"
6663 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6665 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6666 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 ac_wine_try_cflags_saved=$CFLAGS
6670 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6673 int main(int argc, char **argv) { return 0; }
6674 _ACEOF
6675 if ac_fn_c_try_link "$LINENO"; then :
6676 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6677 else
6678 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6680 rm -f core conftest.err conftest.$ac_objext \
6681 conftest$ac_exeext conftest.$ac_ext
6682 CFLAGS=$ac_wine_try_cflags_saved
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6685 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6686 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6687 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6688 else
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6690 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6691 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 ac_wine_try_cflags_saved=$CFLAGS
6695 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698 int main(int argc, char **argv) { return 0; }
6699 _ACEOF
6700 if ac_fn_c_try_link "$LINENO"; then :
6701 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6702 else
6703 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6705 rm -f core conftest.err conftest.$ac_objext \
6706 conftest$ac_exeext conftest.$ac_ext
6707 CFLAGS=$ac_wine_try_cflags_saved
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6710 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6711 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6712 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6717 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6718 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 ac_wine_try_cflags_saved=$CFLAGS
6722 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6725 int main(int argc, char **argv) { return 0; }
6726 _ACEOF
6727 if ac_fn_c_try_link "$LINENO"; then :
6728 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6729 else
6730 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6732 rm -f core conftest.err conftest.$ac_objext \
6733 conftest$ac_exeext conftest.$ac_ext
6734 CFLAGS=$ac_wine_try_cflags_saved
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6737 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6738 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6739 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6742 { $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
6743 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6744 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 ac_wine_try_cflags_saved=$CFLAGS
6748 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 int main(int argc, char **argv) { return 0; }
6752 _ACEOF
6753 if ac_fn_c_try_link "$LINENO"; then :
6754 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6755 else
6756 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6758 rm -f core conftest.err conftest.$ac_objext \
6759 conftest$ac_exeext conftest.$ac_ext
6760 CFLAGS=$ac_wine_try_cflags_saved
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6763 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6764 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6765 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6768 echo '{ global: *; };' >conftest.map
6769 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6771 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6772 if eval \${$as_ac_var+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 ac_wine_try_cflags_saved=$CFLAGS
6776 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 int main(int argc, char **argv) { return 0; }
6780 _ACEOF
6781 if ac_fn_c_try_link "$LINENO"; then :
6782 eval "$as_ac_var=yes"
6783 else
6784 eval "$as_ac_var=no"
6786 rm -f core conftest.err conftest.$ac_objext \
6787 conftest$ac_exeext conftest.$ac_ext
6788 CFLAGS=$ac_wine_try_cflags_saved
6790 eval ac_res=\$$as_ac_var
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6792 $as_echo "$ac_res" >&6; }
6793 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6794 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6796 rm -f conftest.map
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6799 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6800 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6801 $as_echo_n "(cached) " >&6
6802 else
6803 ac_wine_try_cflags_saved=$CFLAGS
6804 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807 int main(int argc, char **argv) { return 0; }
6808 _ACEOF
6809 if ac_fn_c_try_link "$LINENO"; then :
6810 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6811 else
6812 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6814 rm -f core conftest.err conftest.$ac_objext \
6815 conftest$ac_exeext conftest.$ac_ext
6816 CFLAGS=$ac_wine_try_cflags_saved
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6819 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6820 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6821 LDEXECFLAGS="-Wl,--export-dynamic"
6825 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6827 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6828 if eval \${$as_ac_var+:} false; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 ac_wine_try_cflags_saved=$CFLAGS
6832 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 int main(int argc, char **argv) { return 0; }
6836 _ACEOF
6837 if ac_fn_c_try_link "$LINENO"; then :
6838 eval "$as_ac_var=yes"
6839 else
6840 eval "$as_ac_var=no"
6842 rm -f core conftest.err conftest.$ac_objext \
6843 conftest$ac_exeext conftest.$ac_ext
6844 CFLAGS=$ac_wine_try_cflags_saved
6846 eval ac_res=\$$as_ac_var
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6848 $as_echo "$ac_res" >&6; }
6849 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6850 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6851 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6852 else
6853 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6855 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6856 if eval \${$as_ac_var+:} false; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 ac_wine_try_cflags_saved=$CFLAGS
6860 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863 int main(int argc, char **argv) { return 0; }
6864 _ACEOF
6865 if ac_fn_c_try_link "$LINENO"; then :
6866 eval "$as_ac_var=yes"
6867 else
6868 eval "$as_ac_var=no"
6870 rm -f core conftest.err conftest.$ac_objext \
6871 conftest$ac_exeext conftest.$ac_ext
6872 CFLAGS=$ac_wine_try_cflags_saved
6874 eval ac_res=\$$as_ac_var
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6876 $as_echo "$ac_res" >&6; }
6877 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6878 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6879 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6884 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6885 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 ac_wine_try_cflags_saved=$CFLAGS
6889 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892 int main(int argc, char **argv) { return 0; }
6893 _ACEOF
6894 if ac_fn_c_try_link "$LINENO"; then :
6895 ac_cv_cflags__Wl___enable_new_dtags=yes
6896 else
6897 ac_cv_cflags__Wl___enable_new_dtags=no
6899 rm -f core conftest.err conftest.$ac_objext \
6900 conftest$ac_exeext conftest.$ac_ext
6901 CFLAGS=$ac_wine_try_cflags_saved
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6904 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6905 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6906 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6909 case $host_cpu in
6910 *i[3456789]86* | x86_64)
6911 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6913 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6914 if eval \${$as_ac_var+:} false; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 ac_wine_try_cflags_saved=$CFLAGS
6918 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 int main(int argc, char **argv) { return 0; }
6922 _ACEOF
6923 if ac_fn_c_try_link "$LINENO"; then :
6924 eval "$as_ac_var=yes"
6925 else
6926 eval "$as_ac_var=no"
6928 rm -f core conftest.err conftest.$ac_objext \
6929 conftest$ac_exeext conftest.$ac_ext
6930 CFLAGS=$ac_wine_try_cflags_saved
6932 eval ac_res=\$$as_ac_var
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6934 $as_echo "$ac_res" >&6; }
6935 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6936 case $host_os in
6937 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6938 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6939 esac
6942 # Extract the first word of "prelink", so it can be a program name with args.
6943 set dummy prelink; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if ${ac_cv_path_PRELINK+:} false; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 case $PRELINK in
6950 [\\/]* | ?:[\\/]*)
6951 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in /sbin /usr/sbin $PATH
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6965 done
6966 done
6967 IFS=$as_save_IFS
6969 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6971 esac
6973 PRELINK=$ac_cv_path_PRELINK
6974 if test -n "$PRELINK"; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6976 $as_echo "$PRELINK" >&6; }
6977 else
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979 $as_echo "no" >&6; }
6983 if test "x$PRELINK" = xfalse
6984 then
6985 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6988 esac
6990 else
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6992 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6993 if ${ac_cv_c_dll_unixware+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 ac_wine_try_cflags_saved=$CFLAGS
6997 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h. */
7000 void myfunc() {}
7001 _ACEOF
7002 if ac_fn_c_try_link "$LINENO"; then :
7003 ac_cv_c_dll_unixware="yes"
7004 else
7005 ac_cv_c_dll_unixware="no"
7007 rm -f core conftest.err conftest.$ac_objext \
7008 conftest$ac_exeext conftest.$ac_ext
7009 CFLAGS=$ac_wine_try_cflags_saved
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7012 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7013 if test "$ac_cv_c_dll_unixware" = "yes"
7014 then
7015 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7016 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7018 else
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7020 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7021 if ${ac_cv_c_dll_hpux+:} false; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 ac_wine_try_cflags_saved=$CFLAGS
7025 CFLAGS="$CFLAGS -shared"
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7028 void myfunc() {}
7029 _ACEOF
7030 if ac_fn_c_try_link "$LINENO"; then :
7031 ac_cv_c_dll_hpux="yes"
7032 else
7033 ac_cv_c_dll_hpux="no"
7035 rm -f core conftest.err conftest.$ac_objext \
7036 conftest$ac_exeext conftest.$ac_ext
7037 CFLAGS=$ac_wine_try_cflags_saved
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7040 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7041 if test "$ac_cv_c_dll_hpux" = "yes"
7042 then
7043 LIBEXT="sl"
7044 DLLEXT=".sl"
7045 LDDLLFLAGS="-shared -fPIC"
7046 LDSHARED="\$(CC) -shared"
7051 esac
7053 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7054 enable_winequartz_drv=${enable_winequartz_drv:-no}
7056 if test "$LIBEXT" = "a"; then
7057 as_fn_error $? "could not find a way to build shared libraries.
7058 It is currently not possible to build Wine without shared library
7059 (.so) support to allow transparent switch between .so and .dll files.
7060 If you are using Linux, you will need a newer binutils.
7061 " "$LINENO" 5
7064 CROSSTEST_DISABLE=\#
7066 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7067 then
7068 case "$host_cpu" in
7069 i[3456789]86*)
7070 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 " ;;
7071 x86_64)
7072 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 " ;;
7074 ac_prefix_list="" ;;
7075 esac
7076 for ac_prog in $ac_prefix_list
7078 # Extract the first word of "$ac_prog", so it can be a program name with args.
7079 set dummy $ac_prog; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if ${ac_cv_prog_CROSSCC+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 if test -n "$CROSSCC"; then
7086 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7095 ac_cv_prog_CROSSCC="$ac_prog"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7099 done
7100 done
7101 IFS=$as_save_IFS
7105 CROSSCC=$ac_cv_prog_CROSSCC
7106 if test -n "$CROSSCC"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7108 $as_echo "$CROSSCC" >&6; }
7109 else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7115 test -n "$CROSSCC" && break
7116 done
7117 test -n "$CROSSCC" || CROSSCC="false"
7119 if test "$CROSSCC" != "false"
7120 then
7121 ac_save_CC="$CC"
7122 CC="$CROSSCC"
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7124 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7129 main ()
7133 return 0;
7135 _ACEOF
7136 if ac_fn_c_try_compile "$LINENO"; then :
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7138 $as_echo "yes" >&6; }
7139 set x $CROSSCC
7140 shift
7141 target=""
7142 while test $# -ge 1
7144 case "$1" in
7145 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7146 esac
7147 shift
7148 done
7149 if test -n "$target"
7150 then
7151 CROSSTEST_DISABLE=""
7152 CROSSTARGET="$target"
7155 else
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 $as_echo "no" >&6; }
7159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160 CC="$ac_save_CC"
7165 if test "$ac_cv_header_pthread_h" = "yes"
7166 then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7168 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7169 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 ac_check_lib_save_LIBS=$LIBS
7173 LIBS="-lpthread $LIBS"
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7177 /* Override any GCC internal prototype to avoid an error.
7178 Use char because int might match the return type of a GCC
7179 builtin and then its argument prototype would still apply. */
7180 #ifdef __cplusplus
7181 extern "C"
7182 #endif
7183 char pthread_create ();
7185 main ()
7187 return pthread_create ();
7189 return 0;
7191 _ACEOF
7192 if ac_fn_c_try_link "$LINENO"; then :
7193 ac_cv_lib_pthread_pthread_create=yes
7194 else
7195 ac_cv_lib_pthread_pthread_create=no
7197 rm -f core conftest.err conftest.$ac_objext \
7198 conftest$ac_exeext conftest.$ac_ext
7199 LIBS=$ac_check_lib_save_LIBS
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7202 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7203 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7204 LIBPTHREAD="-lpthread"
7209 if test "x$LIBPTHREAD" = "x"; then :
7210 case "x$with_pthread" in
7211 xno) ;;
7212 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7213 Wine cannot support threads without libpthread.
7214 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7215 esac
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7220 $as_echo_n "checking for X... " >&6; }
7223 # Check whether --with-x was given.
7224 if test "${with_x+set}" = set; then :
7225 withval=$with_x;
7228 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7229 if test "x$with_x" = xno; then
7230 # The user explicitly disabled X.
7231 have_x=disabled
7232 else
7233 case $x_includes,$x_libraries in #(
7234 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7235 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 # One or both of the vars are not set, and there is no cached value.
7239 ac_x_includes=no ac_x_libraries=no
7240 rm -f -r conftest.dir
7241 if mkdir conftest.dir; then
7242 cd conftest.dir
7243 cat >Imakefile <<'_ACEOF'
7244 incroot:
7245 @echo incroot='${INCROOT}'
7246 usrlibdir:
7247 @echo usrlibdir='${USRLIBDIR}'
7248 libdir:
7249 @echo libdir='${LIBDIR}'
7250 _ACEOF
7251 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7252 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7253 for ac_var in incroot usrlibdir libdir; do
7254 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7255 done
7256 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7257 for ac_extension in a so sl dylib la dll; do
7258 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7259 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7260 ac_im_usrlibdir=$ac_im_libdir; break
7262 done
7263 # Screen out bogus values from the imake configuration. They are
7264 # bogus both because they are the default anyway, and because
7265 # using them would break gcc on systems where it needs fixed includes.
7266 case $ac_im_incroot in
7267 /usr/include) ac_x_includes= ;;
7268 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7269 esac
7270 case $ac_im_usrlibdir in
7271 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7272 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7273 esac
7275 cd ..
7276 rm -f -r conftest.dir
7279 # Standard set of common directories for X headers.
7280 # Check X11 before X11Rn because it is often a symlink to the current release.
7281 ac_x_header_dirs='
7282 /usr/X11/include
7283 /usr/X11R7/include
7284 /usr/X11R6/include
7285 /usr/X11R5/include
7286 /usr/X11R4/include
7288 /usr/include/X11
7289 /usr/include/X11R7
7290 /usr/include/X11R6
7291 /usr/include/X11R5
7292 /usr/include/X11R4
7294 /usr/local/X11/include
7295 /usr/local/X11R7/include
7296 /usr/local/X11R6/include
7297 /usr/local/X11R5/include
7298 /usr/local/X11R4/include
7300 /usr/local/include/X11
7301 /usr/local/include/X11R7
7302 /usr/local/include/X11R6
7303 /usr/local/include/X11R5
7304 /usr/local/include/X11R4
7306 /usr/X386/include
7307 /usr/x386/include
7308 /usr/XFree86/include/X11
7310 /usr/include
7311 /usr/local/include
7312 /usr/unsupported/include
7313 /usr/athena/include
7314 /usr/local/x11r5/include
7315 /usr/lpp/Xamples/include
7317 /usr/openwin/include
7318 /usr/openwin/share/include'
7320 if test "$ac_x_includes" = no; then
7321 # Guess where to find include files, by looking for Xlib.h.
7322 # First, try using that file with no special directory specified.
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7325 #include <X11/Xlib.h>
7326 _ACEOF
7327 if ac_fn_c_try_cpp "$LINENO"; then :
7328 # We can compile using X headers with no special include directory.
7329 ac_x_includes=
7330 else
7331 for ac_dir in $ac_x_header_dirs; do
7332 if test -r "$ac_dir/X11/Xlib.h"; then
7333 ac_x_includes=$ac_dir
7334 break
7336 done
7338 rm -f conftest.err conftest.i conftest.$ac_ext
7339 fi # $ac_x_includes = no
7341 if test "$ac_x_libraries" = no; then
7342 # Check for the libraries.
7343 # See if we find them without any special options.
7344 # Don't add to $LIBS permanently.
7345 ac_save_LIBS=$LIBS
7346 LIBS="-lX11 $LIBS"
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7349 #include <X11/Xlib.h>
7351 main ()
7353 XrmInitialize ()
7355 return 0;
7357 _ACEOF
7358 if ac_fn_c_try_link "$LINENO"; then :
7359 LIBS=$ac_save_LIBS
7360 # We can link X programs with no special library path.
7361 ac_x_libraries=
7362 else
7363 LIBS=$ac_save_LIBS
7364 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7366 # Don't even attempt the hair of trying to link an X program!
7367 for ac_extension in a so sl dylib la dll; do
7368 if test -r "$ac_dir/libX11.$ac_extension"; then
7369 ac_x_libraries=$ac_dir
7370 break 2
7372 done
7373 done
7375 rm -f core conftest.err conftest.$ac_objext \
7376 conftest$ac_exeext conftest.$ac_ext
7377 fi # $ac_x_libraries = no
7379 case $ac_x_includes,$ac_x_libraries in #(
7380 no,* | *,no | *\'*)
7381 # Didn't find X, or a directory has "'" in its name.
7382 ac_cv_have_x="have_x=no";; #(
7384 # Record where we found X for the cache.
7385 ac_cv_have_x="have_x=yes\
7386 ac_x_includes='$ac_x_includes'\
7387 ac_x_libraries='$ac_x_libraries'"
7388 esac
7390 ;; #(
7391 *) have_x=yes;;
7392 esac
7393 eval "$ac_cv_have_x"
7394 fi # $with_x != no
7396 if test "$have_x" != yes; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7398 $as_echo "$have_x" >&6; }
7399 no_x=yes
7400 else
7401 # If each of the values was on the command line, it overrides each guess.
7402 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7403 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7404 # Update the cache value to reflect the command line values.
7405 ac_cv_have_x="have_x=yes\
7406 ac_x_includes='$x_includes'\
7407 ac_x_libraries='$x_libraries'"
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7409 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7412 if test "$no_x" = yes; then
7413 # Not all programs may use this symbol, but it does not hurt to define it.
7415 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7417 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7418 else
7419 if test -n "$x_includes"; then
7420 X_CFLAGS="$X_CFLAGS -I$x_includes"
7423 # It would also be nice to do this for all -L options, not just this one.
7424 if test -n "$x_libraries"; then
7425 X_LIBS="$X_LIBS -L$x_libraries"
7426 # For Solaris; some versions of Sun CC require a space after -R and
7427 # others require no space. Words are not sufficient . . . .
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7429 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7430 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7431 ac_xsave_c_werror_flag=$ac_c_werror_flag
7432 ac_c_werror_flag=yes
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7437 main ()
7441 return 0;
7443 _ACEOF
7444 if ac_fn_c_try_link "$LINENO"; then :
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7447 X_LIBS="$X_LIBS -R$x_libraries"
7448 else
7449 LIBS="$ac_xsave_LIBS -R $x_libraries"
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7454 main ()
7458 return 0;
7460 _ACEOF
7461 if ac_fn_c_try_link "$LINENO"; then :
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7463 $as_echo "yes" >&6; }
7464 X_LIBS="$X_LIBS -R $x_libraries"
7465 else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7467 $as_echo "neither works" >&6; }
7469 rm -f core conftest.err conftest.$ac_objext \
7470 conftest$ac_exeext conftest.$ac_ext
7472 rm -f core conftest.err conftest.$ac_objext \
7473 conftest$ac_exeext conftest.$ac_ext
7474 ac_c_werror_flag=$ac_xsave_c_werror_flag
7475 LIBS=$ac_xsave_LIBS
7478 # Check for system-dependent libraries X programs must link with.
7479 # Do this before checking for the system-independent R6 libraries
7480 # (-lICE), since we may need -lsocket or whatever for X linking.
7482 if test "$ISC" = yes; then
7483 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7484 else
7485 # Martyn Johnson says this is needed for Ultrix, if the X
7486 # libraries were built with DECnet support. And Karl Berry says
7487 # the Alpha needs dnet_stub (dnet does not exist).
7488 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7492 /* Override any GCC internal prototype to avoid an error.
7493 Use char because int might match the return type of a GCC
7494 builtin and then its argument prototype would still apply. */
7495 #ifdef __cplusplus
7496 extern "C"
7497 #endif
7498 char XOpenDisplay ();
7500 main ()
7502 return XOpenDisplay ();
7504 return 0;
7506 _ACEOF
7507 if ac_fn_c_try_link "$LINENO"; then :
7509 else
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7511 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7512 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 ac_check_lib_save_LIBS=$LIBS
7516 LIBS="-ldnet $LIBS"
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7520 /* Override any GCC internal prototype to avoid an error.
7521 Use char because int might match the return type of a GCC
7522 builtin and then its argument prototype would still apply. */
7523 #ifdef __cplusplus
7524 extern "C"
7525 #endif
7526 char dnet_ntoa ();
7528 main ()
7530 return dnet_ntoa ();
7532 return 0;
7534 _ACEOF
7535 if ac_fn_c_try_link "$LINENO"; then :
7536 ac_cv_lib_dnet_dnet_ntoa=yes
7537 else
7538 ac_cv_lib_dnet_dnet_ntoa=no
7540 rm -f core conftest.err conftest.$ac_objext \
7541 conftest$ac_exeext conftest.$ac_ext
7542 LIBS=$ac_check_lib_save_LIBS
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7545 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7546 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7547 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7550 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7552 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7553 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 ac_check_lib_save_LIBS=$LIBS
7557 LIBS="-ldnet_stub $LIBS"
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7561 /* Override any GCC internal prototype to avoid an error.
7562 Use char because int might match the return type of a GCC
7563 builtin and then its argument prototype would still apply. */
7564 #ifdef __cplusplus
7565 extern "C"
7566 #endif
7567 char dnet_ntoa ();
7569 main ()
7571 return dnet_ntoa ();
7573 return 0;
7575 _ACEOF
7576 if ac_fn_c_try_link "$LINENO"; then :
7577 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7578 else
7579 ac_cv_lib_dnet_stub_dnet_ntoa=no
7581 rm -f core conftest.err conftest.$ac_objext \
7582 conftest$ac_exeext conftest.$ac_ext
7583 LIBS=$ac_check_lib_save_LIBS
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7586 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7587 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7588 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7593 rm -f core conftest.err conftest.$ac_objext \
7594 conftest$ac_exeext conftest.$ac_ext
7595 LIBS="$ac_xsave_LIBS"
7597 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7598 # to get the SysV transport functions.
7599 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7600 # needs -lnsl.
7601 # The nsl library prevents programs from opening the X display
7602 # on Irix 5.2, according to T.E. Dickey.
7603 # The functions gethostbyname, getservbyname, and inet_addr are
7604 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7605 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7606 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7610 if test $ac_cv_func_gethostbyname = no; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7612 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7613 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7614 $as_echo_n "(cached) " >&6
7615 else
7616 ac_check_lib_save_LIBS=$LIBS
7617 LIBS="-lnsl $LIBS"
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7621 /* Override any GCC internal prototype to avoid an error.
7622 Use char because int might match the return type of a GCC
7623 builtin and then its argument prototype would still apply. */
7624 #ifdef __cplusplus
7625 extern "C"
7626 #endif
7627 char gethostbyname ();
7629 main ()
7631 return gethostbyname ();
7633 return 0;
7635 _ACEOF
7636 if ac_fn_c_try_link "$LINENO"; then :
7637 ac_cv_lib_nsl_gethostbyname=yes
7638 else
7639 ac_cv_lib_nsl_gethostbyname=no
7641 rm -f core conftest.err conftest.$ac_objext \
7642 conftest$ac_exeext conftest.$ac_ext
7643 LIBS=$ac_check_lib_save_LIBS
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7646 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7647 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7648 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7651 if test $ac_cv_lib_nsl_gethostbyname = no; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7653 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7654 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7655 $as_echo_n "(cached) " >&6
7656 else
7657 ac_check_lib_save_LIBS=$LIBS
7658 LIBS="-lbsd $LIBS"
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7662 /* Override any GCC internal prototype to avoid an error.
7663 Use char because int might match the return type of a GCC
7664 builtin and then its argument prototype would still apply. */
7665 #ifdef __cplusplus
7666 extern "C"
7667 #endif
7668 char gethostbyname ();
7670 main ()
7672 return gethostbyname ();
7674 return 0;
7676 _ACEOF
7677 if ac_fn_c_try_link "$LINENO"; then :
7678 ac_cv_lib_bsd_gethostbyname=yes
7679 else
7680 ac_cv_lib_bsd_gethostbyname=no
7682 rm -f core conftest.err conftest.$ac_objext \
7683 conftest$ac_exeext conftest.$ac_ext
7684 LIBS=$ac_check_lib_save_LIBS
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7687 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7688 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7689 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7695 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7696 # socket/setsockopt and other routines are undefined under SCO ODT
7697 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7698 # on later versions), says Simon Leinen: it contains gethostby*
7699 # variants that don't use the name server (or something). -lsocket
7700 # must be given before -lnsl if both are needed. We assume that
7701 # if connect needs -lnsl, so does gethostbyname.
7702 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7703 if test "x$ac_cv_func_connect" = xyes; then :
7707 if test $ac_cv_func_connect = no; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7709 $as_echo_n "checking for connect in -lsocket... " >&6; }
7710 if ${ac_cv_lib_socket_connect+:} false; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 ac_check_lib_save_LIBS=$LIBS
7714 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7718 /* Override any GCC internal prototype to avoid an error.
7719 Use char because int might match the return type of a GCC
7720 builtin and then its argument prototype would still apply. */
7721 #ifdef __cplusplus
7722 extern "C"
7723 #endif
7724 char connect ();
7726 main ()
7728 return connect ();
7730 return 0;
7732 _ACEOF
7733 if ac_fn_c_try_link "$LINENO"; then :
7734 ac_cv_lib_socket_connect=yes
7735 else
7736 ac_cv_lib_socket_connect=no
7738 rm -f core conftest.err conftest.$ac_objext \
7739 conftest$ac_exeext conftest.$ac_ext
7740 LIBS=$ac_check_lib_save_LIBS
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7743 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7744 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7745 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7750 # Guillermo Gomez says -lposix is necessary on A/UX.
7751 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7752 if test "x$ac_cv_func_remove" = xyes; then :
7756 if test $ac_cv_func_remove = no; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7758 $as_echo_n "checking for remove in -lposix... " >&6; }
7759 if ${ac_cv_lib_posix_remove+:} false; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 ac_check_lib_save_LIBS=$LIBS
7763 LIBS="-lposix $LIBS"
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7767 /* Override any GCC internal prototype to avoid an error.
7768 Use char because int might match the return type of a GCC
7769 builtin and then its argument prototype would still apply. */
7770 #ifdef __cplusplus
7771 extern "C"
7772 #endif
7773 char remove ();
7775 main ()
7777 return remove ();
7779 return 0;
7781 _ACEOF
7782 if ac_fn_c_try_link "$LINENO"; then :
7783 ac_cv_lib_posix_remove=yes
7784 else
7785 ac_cv_lib_posix_remove=no
7787 rm -f core conftest.err conftest.$ac_objext \
7788 conftest$ac_exeext conftest.$ac_ext
7789 LIBS=$ac_check_lib_save_LIBS
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7792 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7793 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7794 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7799 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7800 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7801 if test "x$ac_cv_func_shmat" = xyes; then :
7805 if test $ac_cv_func_shmat = no; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7807 $as_echo_n "checking for shmat in -lipc... " >&6; }
7808 if ${ac_cv_lib_ipc_shmat+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 ac_check_lib_save_LIBS=$LIBS
7812 LIBS="-lipc $LIBS"
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7816 /* Override any GCC internal prototype to avoid an error.
7817 Use char because int might match the return type of a GCC
7818 builtin and then its argument prototype would still apply. */
7819 #ifdef __cplusplus
7820 extern "C"
7821 #endif
7822 char shmat ();
7824 main ()
7826 return shmat ();
7828 return 0;
7830 _ACEOF
7831 if ac_fn_c_try_link "$LINENO"; then :
7832 ac_cv_lib_ipc_shmat=yes
7833 else
7834 ac_cv_lib_ipc_shmat=no
7836 rm -f core conftest.err conftest.$ac_objext \
7837 conftest$ac_exeext conftest.$ac_ext
7838 LIBS=$ac_check_lib_save_LIBS
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7841 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7842 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7843 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7849 # Check for libraries that X11R6 Xt/Xaw programs need.
7850 ac_save_LDFLAGS=$LDFLAGS
7851 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7852 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7853 # check for ICE first), but we must link in the order -lSM -lICE or
7854 # we get undefined symbols. So assume we have SM if we have ICE.
7855 # These have to be linked with before -lX11, unlike the other
7856 # libraries we check for below, so use a different variable.
7857 # John Interrante, Karl Berry
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7859 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7860 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 ac_check_lib_save_LIBS=$LIBS
7864 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7868 /* Override any GCC internal prototype to avoid an error.
7869 Use char because int might match the return type of a GCC
7870 builtin and then its argument prototype would still apply. */
7871 #ifdef __cplusplus
7872 extern "C"
7873 #endif
7874 char IceConnectionNumber ();
7876 main ()
7878 return IceConnectionNumber ();
7880 return 0;
7882 _ACEOF
7883 if ac_fn_c_try_link "$LINENO"; then :
7884 ac_cv_lib_ICE_IceConnectionNumber=yes
7885 else
7886 ac_cv_lib_ICE_IceConnectionNumber=no
7888 rm -f core conftest.err conftest.$ac_objext \
7889 conftest$ac_exeext conftest.$ac_ext
7890 LIBS=$ac_check_lib_save_LIBS
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7893 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7894 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7895 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7898 LDFLAGS=$ac_save_LDFLAGS
7903 if test "$have_x" = "yes"
7904 then
7905 XLIB="-lX11"
7906 ac_save_CPPFLAGS="$CPPFLAGS"
7907 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7910 $as_echo_n "checking for -lX11... " >&6; }
7911 if ${ac_cv_lib_soname_X11+:} false; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 ac_check_soname_save_LIBS=$LIBS
7915 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7919 /* Override any GCC internal prototype to avoid an error.
7920 Use char because int might match the return type of a GCC
7921 builtin and then its argument prototype would still apply. */
7922 #ifdef __cplusplus
7923 extern "C"
7924 #endif
7925 char XCreateWindow ();
7927 main ()
7929 return XCreateWindow ();
7931 return 0;
7933 _ACEOF
7934 if ac_fn_c_try_link "$LINENO"; then :
7935 case "$LIBEXT" in
7936 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7937 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'` ;;
7938 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7939 esac
7941 rm -f core conftest.err conftest.$ac_objext \
7942 conftest$ac_exeext conftest.$ac_ext
7943 LIBS=$ac_check_soname_save_LIBS
7945 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7947 $as_echo "not found" >&6; }
7949 else
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7951 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7953 cat >>confdefs.h <<_ACEOF
7954 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7955 _ACEOF
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7960 $as_echo_n "checking for -lXext... " >&6; }
7961 if ${ac_cv_lib_soname_Xext+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 ac_check_soname_save_LIBS=$LIBS
7965 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7969 /* Override any GCC internal prototype to avoid an error.
7970 Use char because int might match the return type of a GCC
7971 builtin and then its argument prototype would still apply. */
7972 #ifdef __cplusplus
7973 extern "C"
7974 #endif
7975 char XextCreateExtension ();
7977 main ()
7979 return XextCreateExtension ();
7981 return 0;
7983 _ACEOF
7984 if ac_fn_c_try_link "$LINENO"; then :
7985 case "$LIBEXT" in
7986 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7987 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'` ;;
7988 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7989 esac
7991 rm -f core conftest.err conftest.$ac_objext \
7992 conftest$ac_exeext conftest.$ac_ext
7993 LIBS=$ac_check_soname_save_LIBS
7995 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7997 $as_echo "not found" >&6; }
7999 else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8001 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8003 cat >>confdefs.h <<_ACEOF
8004 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8005 _ACEOF
8007 XLIB="-lXext $XLIB"
8010 for ac_header in X11/Xlib.h \
8011 X11/XKBlib.h \
8012 X11/Xutil.h \
8013 X11/Xcursor/Xcursor.h \
8014 X11/extensions/shape.h \
8015 X11/extensions/XInput.h \
8016 X11/extensions/XInput2.h \
8017 X11/extensions/XShm.h \
8018 X11/extensions/Xcomposite.h \
8019 X11/extensions/Xinerama.h \
8020 X11/extensions/Xrandr.h \
8021 X11/extensions/Xrender.h \
8022 X11/extensions/xf86vmode.h \
8023 X11/extensions/xf86vmproto.h
8024 do :
8025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8026 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8027 # include <X11/Xlib.h>
8028 #endif
8029 #ifdef HAVE_X11_XUTIL_H
8030 # include <X11/Xutil.h>
8031 #endif
8033 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8034 cat >>confdefs.h <<_ACEOF
8035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8036 _ACEOF
8040 done
8043 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8044 then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8046 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8047 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8048 $as_echo_n "(cached) " >&6
8049 else
8050 ac_check_lib_save_LIBS=$LIBS
8051 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8055 /* Override any GCC internal prototype to avoid an error.
8056 Use char because int might match the return type of a GCC
8057 builtin and then its argument prototype would still apply. */
8058 #ifdef __cplusplus
8059 extern "C"
8060 #endif
8061 char XkbQueryExtension ();
8063 main ()
8065 return XkbQueryExtension ();
8067 return 0;
8069 _ACEOF
8070 if ac_fn_c_try_link "$LINENO"; then :
8071 ac_cv_lib_X11_XkbQueryExtension=yes
8072 else
8073 ac_cv_lib_X11_XkbQueryExtension=no
8075 rm -f core conftest.err conftest.$ac_objext \
8076 conftest$ac_exeext conftest.$ac_ext
8077 LIBS=$ac_check_lib_save_LIBS
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8080 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8081 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8083 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8089 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8090 then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8092 $as_echo_n "checking for -lXcursor... " >&6; }
8093 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 ac_check_soname_save_LIBS=$LIBS
8097 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8101 /* Override any GCC internal prototype to avoid an error.
8102 Use char because int might match the return type of a GCC
8103 builtin and then its argument prototype would still apply. */
8104 #ifdef __cplusplus
8105 extern "C"
8106 #endif
8107 char XcursorImageLoadCursor ();
8109 main ()
8111 return XcursorImageLoadCursor ();
8113 return 0;
8115 _ACEOF
8116 if ac_fn_c_try_link "$LINENO"; then :
8117 case "$LIBEXT" in
8118 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8119 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'` ;;
8120 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8121 esac
8123 rm -f core conftest.err conftest.$ac_objext \
8124 conftest$ac_exeext conftest.$ac_ext
8125 LIBS=$ac_check_soname_save_LIBS
8127 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8129 $as_echo "not found" >&6; }
8131 else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8133 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8135 cat >>confdefs.h <<_ACEOF
8136 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8137 _ACEOF
8142 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8143 case "x$with_xcursor" in
8144 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8145 xno) ;;
8146 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8147 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8148 esac
8151 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8152 then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8154 $as_echo_n "checking for -lXi... " >&6; }
8155 if ${ac_cv_lib_soname_Xi+:} false; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158 ac_check_soname_save_LIBS=$LIBS
8159 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8163 /* Override any GCC internal prototype to avoid an error.
8164 Use char because int might match the return type of a GCC
8165 builtin and then its argument prototype would still apply. */
8166 #ifdef __cplusplus
8167 extern "C"
8168 #endif
8169 char XOpenDevice ();
8171 main ()
8173 return XOpenDevice ();
8175 return 0;
8177 _ACEOF
8178 if ac_fn_c_try_link "$LINENO"; then :
8179 case "$LIBEXT" in
8180 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8181 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'` ;;
8182 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8183 esac
8185 rm -f core conftest.err conftest.$ac_objext \
8186 conftest$ac_exeext conftest.$ac_ext
8187 LIBS=$ac_check_soname_save_LIBS
8189 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8191 $as_echo "not found" >&6; }
8193 else
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8195 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8197 cat >>confdefs.h <<_ACEOF
8198 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8199 _ACEOF
8204 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8205 case "x$with_xinput" in
8206 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8207 xno) ;;
8208 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8209 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8210 esac
8213 if test "x$ac_cv_lib_soname_Xi" != x
8214 then
8215 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8216 case "x$with_xinput2" in
8217 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8218 xno) ;;
8219 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8220 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8221 esac
8225 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8226 then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8228 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8229 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8232 ac_check_lib_save_LIBS=$LIBS
8233 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8237 /* Override any GCC internal prototype to avoid an error.
8238 Use char because int might match the return type of a GCC
8239 builtin and then its argument prototype would still apply. */
8240 #ifdef __cplusplus
8241 extern "C"
8242 #endif
8243 char XShmQueryExtension ();
8245 main ()
8247 return XShmQueryExtension ();
8249 return 0;
8251 _ACEOF
8252 if ac_fn_c_try_link "$LINENO"; then :
8253 ac_cv_lib_Xext_XShmQueryExtension=yes
8254 else
8255 ac_cv_lib_Xext_XShmQueryExtension=no
8257 rm -f core conftest.err conftest.$ac_objext \
8258 conftest$ac_exeext conftest.$ac_ext
8259 LIBS=$ac_check_lib_save_LIBS
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8262 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8263 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8265 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8270 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8271 case "x$with_xshm" in
8272 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8273 xno) ;;
8274 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8275 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8276 esac
8279 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8280 then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8282 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8283 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8284 $as_echo_n "(cached) " >&6
8285 else
8286 ac_check_lib_save_LIBS=$LIBS
8287 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h. */
8291 /* Override any GCC internal prototype to avoid an error.
8292 Use char because int might match the return type of a GCC
8293 builtin and then its argument prototype would still apply. */
8294 #ifdef __cplusplus
8295 extern "C"
8296 #endif
8297 char XShapeQueryExtension ();
8299 main ()
8301 return XShapeQueryExtension ();
8303 return 0;
8305 _ACEOF
8306 if ac_fn_c_try_link "$LINENO"; then :
8307 ac_cv_lib_Xext_XShapeQueryExtension=yes
8308 else
8309 ac_cv_lib_Xext_XShapeQueryExtension=no
8311 rm -f core conftest.err conftest.$ac_objext \
8312 conftest$ac_exeext conftest.$ac_ext
8313 LIBS=$ac_check_lib_save_LIBS
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8316 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8317 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8319 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8324 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8325 case "x$with_xshape" in
8326 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8327 xno) ;;
8328 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8329 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8330 esac
8333 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8334 then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8336 $as_echo_n "checking for -lXxf86vm... " >&6; }
8337 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 ac_check_soname_save_LIBS=$LIBS
8341 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h. */
8345 /* Override any GCC internal prototype to avoid an error.
8346 Use char because int might match the return type of a GCC
8347 builtin and then its argument prototype would still apply. */
8348 #ifdef __cplusplus
8349 extern "C"
8350 #endif
8351 char XF86VidModeQueryExtension ();
8353 main ()
8355 return XF86VidModeQueryExtension ();
8357 return 0;
8359 _ACEOF
8360 if ac_fn_c_try_link "$LINENO"; then :
8361 case "$LIBEXT" in
8362 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8363 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'` ;;
8364 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8365 esac
8367 rm -f core conftest.err conftest.$ac_objext \
8368 conftest$ac_exeext conftest.$ac_ext
8369 LIBS=$ac_check_soname_save_LIBS
8371 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8373 $as_echo "not found" >&6; }
8375 else
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8377 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8379 cat >>confdefs.h <<_ACEOF
8380 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8381 _ACEOF
8386 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8387 case "x$with_xxf86vm" in
8388 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8389 xno) ;;
8390 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8391 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8392 esac
8395 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"
8396 then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8398 $as_echo_n "checking for -lXrender... " >&6; }
8399 if ${ac_cv_lib_soname_Xrender+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 ac_check_soname_save_LIBS=$LIBS
8403 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8407 /* Override any GCC internal prototype to avoid an error.
8408 Use char because int might match the return type of a GCC
8409 builtin and then its argument prototype would still apply. */
8410 #ifdef __cplusplus
8411 extern "C"
8412 #endif
8413 char XRenderQueryExtension ();
8415 main ()
8417 return XRenderQueryExtension ();
8419 return 0;
8421 _ACEOF
8422 if ac_fn_c_try_link "$LINENO"; then :
8423 case "$LIBEXT" in
8424 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8425 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'` ;;
8426 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8427 esac
8429 rm -f core conftest.err conftest.$ac_objext \
8430 conftest$ac_exeext conftest.$ac_ext
8431 LIBS=$ac_check_soname_save_LIBS
8433 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8435 $as_echo "not found" >&6; }
8437 else
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8439 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8441 cat >>confdefs.h <<_ACEOF
8442 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8443 _ACEOF
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8446 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8447 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 ac_check_lib_save_LIBS=$LIBS
8451 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8455 /* Override any GCC internal prototype to avoid an error.
8456 Use char because int might match the return type of a GCC
8457 builtin and then its argument prototype would still apply. */
8458 #ifdef __cplusplus
8459 extern "C"
8460 #endif
8461 char XRenderSetPictureTransform ();
8463 main ()
8465 return XRenderSetPictureTransform ();
8467 return 0;
8469 _ACEOF
8470 if ac_fn_c_try_link "$LINENO"; then :
8471 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8472 else
8473 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8475 rm -f core conftest.err conftest.$ac_objext \
8476 conftest$ac_exeext conftest.$ac_ext
8477 LIBS=$ac_check_lib_save_LIBS
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8480 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8481 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8483 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8488 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8489 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 ac_check_lib_save_LIBS=$LIBS
8493 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8497 /* Override any GCC internal prototype to avoid an error.
8498 Use char because int might match the return type of a GCC
8499 builtin and then its argument prototype would still apply. */
8500 #ifdef __cplusplus
8501 extern "C"
8502 #endif
8503 char XRenderCreateLinearGradient ();
8505 main ()
8507 return XRenderCreateLinearGradient ();
8509 return 0;
8511 _ACEOF
8512 if ac_fn_c_try_link "$LINENO"; then :
8513 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8514 else
8515 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8517 rm -f core conftest.err conftest.$ac_objext \
8518 conftest$ac_exeext conftest.$ac_ext
8519 LIBS=$ac_check_lib_save_LIBS
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8522 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8523 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8525 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8532 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8533 case "x$with_xrender" in
8534 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8535 xno) ;;
8536 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8537 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8538 esac
8541 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8542 then
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 #include <X11/Xlib.h>
8546 #include <X11/extensions/Xrandr.h>
8548 main ()
8550 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8552 return 0;
8554 _ACEOF
8555 if ac_fn_c_try_compile "$LINENO"; then :
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8557 $as_echo_n "checking for -lXrandr... " >&6; }
8558 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 ac_check_soname_save_LIBS=$LIBS
8562 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8566 /* Override any GCC internal prototype to avoid an error.
8567 Use char because int might match the return type of a GCC
8568 builtin and then its argument prototype would still apply. */
8569 #ifdef __cplusplus
8570 extern "C"
8571 #endif
8572 char XRRQueryExtension ();
8574 main ()
8576 return XRRQueryExtension ();
8578 return 0;
8580 _ACEOF
8581 if ac_fn_c_try_link "$LINENO"; then :
8582 case "$LIBEXT" in
8583 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8584 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'` ;;
8585 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8586 esac
8588 rm -f core conftest.err conftest.$ac_objext \
8589 conftest$ac_exeext conftest.$ac_ext
8590 LIBS=$ac_check_soname_save_LIBS
8592 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8594 $as_echo "not found" >&6; }
8596 else
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8598 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8600 cat >>confdefs.h <<_ACEOF
8601 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8602 _ACEOF
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8610 case "x$with_xrandr" in
8611 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8612 xno) ;;
8613 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8614 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8615 esac
8618 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8619 then
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8622 #include <X11/Xlib.h>
8623 #include <X11/extensions/Xinerama.h>
8625 main ()
8627 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8629 return 0;
8631 _ACEOF
8632 if ac_fn_c_try_compile "$LINENO"; then :
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8634 $as_echo_n "checking for -lXinerama... " >&6; }
8635 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 ac_check_soname_save_LIBS=$LIBS
8639 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8643 /* Override any GCC internal prototype to avoid an error.
8644 Use char because int might match the return type of a GCC
8645 builtin and then its argument prototype would still apply. */
8646 #ifdef __cplusplus
8647 extern "C"
8648 #endif
8649 char XineramaQueryScreens ();
8651 main ()
8653 return XineramaQueryScreens ();
8655 return 0;
8657 _ACEOF
8658 if ac_fn_c_try_link "$LINENO"; then :
8659 case "$LIBEXT" in
8660 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8661 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'` ;;
8662 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8663 esac
8665 rm -f core conftest.err conftest.$ac_objext \
8666 conftest$ac_exeext conftest.$ac_ext
8667 LIBS=$ac_check_soname_save_LIBS
8669 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8671 $as_echo "not found" >&6; }
8673 else
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8675 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8677 cat >>confdefs.h <<_ACEOF
8678 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8679 _ACEOF
8684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8686 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8687 case "x$with_xinerama" in
8688 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8689 xno) ;;
8690 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8691 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8692 esac
8695 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8696 then
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8698 $as_echo_n "checking for -lXcomposite... " >&6; }
8699 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 ac_check_soname_save_LIBS=$LIBS
8703 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8707 /* Override any GCC internal prototype to avoid an error.
8708 Use char because int might match the return type of a GCC
8709 builtin and then its argument prototype would still apply. */
8710 #ifdef __cplusplus
8711 extern "C"
8712 #endif
8713 char XCompositeRedirectWindow ();
8715 main ()
8717 return XCompositeRedirectWindow ();
8719 return 0;
8721 _ACEOF
8722 if ac_fn_c_try_link "$LINENO"; then :
8723 case "$LIBEXT" in
8724 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8725 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'` ;;
8726 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8727 esac
8729 rm -f core conftest.err conftest.$ac_objext \
8730 conftest$ac_exeext conftest.$ac_ext
8731 LIBS=$ac_check_soname_save_LIBS
8733 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8735 $as_echo "not found" >&6; }
8737 else
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8739 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8741 cat >>confdefs.h <<_ACEOF
8742 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8743 _ACEOF
8748 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8749 case "x$with_xcomposite" in
8750 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8751 xno) ;;
8752 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8753 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8754 esac
8757 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8758 #include <X11/Xlib.h>
8759 #endif
8761 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8763 cat >>confdefs.h <<_ACEOF
8764 #define HAVE_XICCALLBACK_CALLBACK 1
8765 _ACEOF
8769 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8770 #include <X11/Xlib.h>
8771 #endif
8773 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8775 cat >>confdefs.h <<_ACEOF
8776 #define HAVE_XEVENT_XCOOKIE 1
8777 _ACEOF
8784 opengl_msg=""
8785 if test "x$with_opengl" != "xno"
8786 then
8787 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8788 do :
8789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8790 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8791 # include <GL/glx.h>
8792 #endif
8794 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8795 cat >>confdefs.h <<_ACEOF
8796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8797 _ACEOF
8801 done
8803 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8804 then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8806 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8807 if ${wine_cv_opengl_header_version_OK+:} false; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8812 #include <GL/gl.h>
8814 main ()
8816 GLenum test = GL_UNSIGNED_SHORT_5_6_5; return (test == GL_UNSIGNED_SHORT_5_6_5);
8818 return 0;
8820 _ACEOF
8821 if ac_fn_c_try_compile "$LINENO"; then :
8822 wine_cv_opengl_header_version_OK="yes"
8823 else
8824 wine_cv_opengl_header_version_OK="no"
8826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8829 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8831 if test "$wine_cv_opengl_header_version_OK" = "yes"
8832 then
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 $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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8873 $as_echo_n "checking for -lGL... " >&6; }
8874 if ${ac_cv_lib_soname_GL+:} false; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 ac_check_soname_save_LIBS=$LIBS
8878 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"
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8882 /* Override any GCC internal prototype to avoid an error.
8883 Use char because int might match the return type of a GCC
8884 builtin and then its argument prototype would still apply. */
8885 #ifdef __cplusplus
8886 extern "C"
8887 #endif
8888 char glXCreateContext ();
8890 main ()
8892 return glXCreateContext ();
8894 return 0;
8896 _ACEOF
8897 if ac_fn_c_try_link "$LINENO"; then :
8898 case "$LIBEXT" in
8899 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8900 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'` ;;
8901 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8902 esac
8904 rm -f core conftest.err conftest.$ac_objext \
8905 conftest$ac_exeext conftest.$ac_ext
8906 LIBS=$ac_check_soname_save_LIBS
8908 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8910 $as_echo "not found" >&6; }
8911 if test -f /usr/X11R6/lib/libGL.a
8912 then
8913 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8914 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8915 else
8916 opengl_msg="No OpenGL library found on this system."
8918 else
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8920 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8922 cat >>confdefs.h <<_ACEOF
8923 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8924 _ACEOF
8926 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"
8928 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8931 else
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8933 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8935 cat >>confdefs.h <<_ACEOF
8936 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8937 _ACEOF
8939 OPENGL_LIBS="-lGL"
8941 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8944 if test "$ac_cv_header_GL_glu_h" = "yes"
8945 then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8947 $as_echo_n "checking for -lGLU... " >&6; }
8948 if ${ac_cv_lib_soname_GLU+:} false; then :
8949 $as_echo_n "(cached) " >&6
8950 else
8951 ac_check_soname_save_LIBS=$LIBS
8952 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8956 /* Override any GCC internal prototype to avoid an error.
8957 Use char because int might match the return type of a GCC
8958 builtin and then its argument prototype would still apply. */
8959 #ifdef __cplusplus
8960 extern "C"
8961 #endif
8962 char gluLookAt ();
8964 main ()
8966 return gluLookAt ();
8968 return 0;
8970 _ACEOF
8971 if ac_fn_c_try_link "$LINENO"; then :
8972 case "$LIBEXT" in
8973 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8974 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'` ;;
8975 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8976 esac
8978 rm -f core conftest.err conftest.$ac_objext \
8979 conftest$ac_exeext conftest.$ac_ext
8980 LIBS=$ac_check_soname_save_LIBS
8982 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8984 $as_echo "not found" >&6; }
8986 else
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8988 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8990 cat >>confdefs.h <<_ACEOF
8991 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8992 _ACEOF
8997 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8998 case "x$with_glu" in
8999 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9000 xno) ;;
9001 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9002 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9003 esac
9005 else
9006 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
9008 else
9009 opengl_msg="OpenGL development headers not found."
9011 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
9012 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
9013 else
9014 enable_opengl32=${enable_opengl32:-no}
9015 enable_glu32=${enable_glu32:-no}
9017 if test -n "$opengl_msg"; then :
9018 case "x$with_opengl" in
9019 x) as_fn_append wine_warnings "|$opengl_msg
9020 OpenGL and Direct3D won't be supported." ;;
9021 xno) ;;
9022 *) as_fn_error $? "$opengl_msg
9023 OpenGL and Direct3D won't be supported.
9024 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9025 esac
9028 CPPFLAGS="$ac_save_CPPFLAGS"
9029 else
9030 XLIB=""
9031 X_CFLAGS=""
9032 X_LIBS=""
9033 enable_winex11_drv=${enable_winex11_drv:-no}
9034 enable_opengl32=${enable_opengl32:-no}
9035 enable_glu32=${enable_glu32:-no}
9037 if test "x$XLIB" = "x"; then :
9038 case "x$with_x" in
9039 xno) ;;
9040 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9041 without X support, which probably isn't what you want. You will need
9042 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9043 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9044 esac
9047 if test "$ac_cv_header_CL_cl_h" = "yes"
9048 then
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9050 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9051 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 ac_check_lib_save_LIBS=$LIBS
9055 LIBS="-lOpenCL $LIBS"
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9059 /* Override any GCC internal prototype to avoid an error.
9060 Use char because int might match the return type of a GCC
9061 builtin and then its argument prototype would still apply. */
9062 #ifdef __cplusplus
9063 extern "C"
9064 #endif
9065 char clGetPlatformInfo ();
9067 main ()
9069 return clGetPlatformInfo ();
9071 return 0;
9073 _ACEOF
9074 if ac_fn_c_try_link "$LINENO"; then :
9075 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9076 else
9077 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9079 rm -f core conftest.err conftest.$ac_objext \
9080 conftest$ac_exeext conftest.$ac_ext
9081 LIBS=$ac_check_lib_save_LIBS
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9084 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9085 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9086 LIBOPENCL="-lOpenCL"
9091 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9092 case "x$with_opencl" in
9093 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9094 xno) ;;
9095 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9096 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9097 esac
9099 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9102 XML2LIBS=""
9104 XML2INCL=""
9106 XSLTINCL=""
9108 if test "x$with_xml" != "xno"
9109 then
9110 ac_save_CPPFLAGS="$CPPFLAGS"
9111 if test "$PKG_CONFIG" != "false"
9112 then
9113 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9114 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9115 else
9116 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9117 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9119 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9120 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9121 do :
9122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9123 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9124 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9125 cat >>confdefs.h <<_ACEOF
9126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9127 _ACEOF
9131 done
9133 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"
9134 then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9136 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9137 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9138 $as_echo_n "(cached) " >&6
9139 else
9140 ac_check_lib_save_LIBS=$LIBS
9141 LIBS="-lxml2 $ac_xml_libs $LIBS"
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9145 /* Override any GCC internal prototype to avoid an error.
9146 Use char because int might match the return type of a GCC
9147 builtin and then its argument prototype would still apply. */
9148 #ifdef __cplusplus
9149 extern "C"
9150 #endif
9151 char xmlParseMemory ();
9153 main ()
9155 return xmlParseMemory ();
9157 return 0;
9159 _ACEOF
9160 if ac_fn_c_try_link "$LINENO"; then :
9161 ac_cv_lib_xml2_xmlParseMemory=yes
9162 else
9163 ac_cv_lib_xml2_xmlParseMemory=no
9165 rm -f core conftest.err conftest.$ac_objext \
9166 conftest$ac_exeext conftest.$ac_ext
9167 LIBS=$ac_check_lib_save_LIBS
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9170 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9171 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9173 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9175 XML2LIBS="$ac_xml_libs"
9176 XML2INCL="$ac_xml_cflags"
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9180 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9181 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 ac_check_lib_save_LIBS=$LIBS
9185 LIBS="-lxml2 $ac_xml_libs $LIBS"
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9189 /* Override any GCC internal prototype to avoid an error.
9190 Use char because int might match the return type of a GCC
9191 builtin and then its argument prototype would still apply. */
9192 #ifdef __cplusplus
9193 extern "C"
9194 #endif
9195 char xmlReadMemory ();
9197 main ()
9199 return xmlReadMemory ();
9201 return 0;
9203 _ACEOF
9204 if ac_fn_c_try_link "$LINENO"; then :
9205 ac_cv_lib_xml2_xmlReadMemory=yes
9206 else
9207 ac_cv_lib_xml2_xmlReadMemory=no
9209 rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211 LIBS=$ac_check_lib_save_LIBS
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9214 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9215 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9217 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9222 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9223 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9224 $as_echo_n "(cached) " >&6
9225 else
9226 ac_check_lib_save_LIBS=$LIBS
9227 LIBS="-lxml2 $ac_xml_libs $LIBS"
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9231 /* Override any GCC internal prototype to avoid an error.
9232 Use char because int might match the return type of a GCC
9233 builtin and then its argument prototype would still apply. */
9234 #ifdef __cplusplus
9235 extern "C"
9236 #endif
9237 char xmlNewDocPI ();
9239 main ()
9241 return xmlNewDocPI ();
9243 return 0;
9245 _ACEOF
9246 if ac_fn_c_try_link "$LINENO"; then :
9247 ac_cv_lib_xml2_xmlNewDocPI=yes
9248 else
9249 ac_cv_lib_xml2_xmlNewDocPI=no
9251 rm -f core conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9253 LIBS=$ac_check_lib_save_LIBS
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9256 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9257 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9259 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9264 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9265 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 ac_check_lib_save_LIBS=$LIBS
9269 LIBS="-lxml2 $ac_xml_libs $LIBS"
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9273 /* Override any GCC internal prototype to avoid an error.
9274 Use char because int might match the return type of a GCC
9275 builtin and then its argument prototype would still apply. */
9276 #ifdef __cplusplus
9277 extern "C"
9278 #endif
9279 char xmlSchemaSetParserStructuredErrors ();
9281 main ()
9283 return xmlSchemaSetParserStructuredErrors ();
9285 return 0;
9287 _ACEOF
9288 if ac_fn_c_try_link "$LINENO"; then :
9289 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9290 else
9291 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9293 rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 LIBS=$ac_check_lib_save_LIBS
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9298 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9299 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9301 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9306 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9307 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 ac_check_lib_save_LIBS=$LIBS
9311 LIBS="-lxml2 $ac_xml_libs $LIBS"
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9315 /* Override any GCC internal prototype to avoid an error.
9316 Use char because int might match the return type of a GCC
9317 builtin and then its argument prototype would still apply. */
9318 #ifdef __cplusplus
9319 extern "C"
9320 #endif
9321 char xmlSchemaSetValidStructuredErrors ();
9323 main ()
9325 return xmlSchemaSetValidStructuredErrors ();
9327 return 0;
9329 _ACEOF
9330 if ac_fn_c_try_link "$LINENO"; then :
9331 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9332 else
9333 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9335 rm -f core conftest.err conftest.$ac_objext \
9336 conftest$ac_exeext conftest.$ac_ext
9337 LIBS=$ac_check_lib_save_LIBS
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9340 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9341 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9343 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9348 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9349 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 ac_check_lib_save_LIBS=$LIBS
9353 LIBS="-lxml2 $ac_xml_libs $LIBS"
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9357 /* Override any GCC internal prototype to avoid an error.
9358 Use char because int might match the return type of a GCC
9359 builtin and then its argument prototype would still apply. */
9360 #ifdef __cplusplus
9361 extern "C"
9362 #endif
9363 char xmlFirstElementChild ();
9365 main ()
9367 return xmlFirstElementChild ();
9369 return 0;
9371 _ACEOF
9372 if ac_fn_c_try_link "$LINENO"; then :
9373 ac_cv_lib_xml2_xmlFirstElementChild=yes
9374 else
9375 ac_cv_lib_xml2_xmlFirstElementChild=no
9377 rm -f core conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
9379 LIBS=$ac_check_lib_save_LIBS
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9382 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9383 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9385 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9389 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9391 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9393 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9398 CPPFLAGS="$ac_save_CPPFLAGS"
9400 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9401 case "x$with_xml" in
9402 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9403 xno) ;;
9404 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9405 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9406 esac
9409 if test "x$with_xslt" != "xno"
9410 then
9411 if test "$PKG_CONFIG" != "false"
9412 then
9413 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9414 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9415 else
9416 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9417 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9419 ac_save_CPPFLAGS="$CPPFLAGS"
9420 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9421 for ac_header in libxslt/pattern.h libxslt/transform.h
9422 do :
9423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9424 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9425 # include <libxslt/pattern.h>
9426 #endif
9428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9429 cat >>confdefs.h <<_ACEOF
9430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9431 _ACEOF
9435 done
9437 CPPFLAGS="$ac_save_CPPFLAGS"
9438 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9439 then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9441 $as_echo_n "checking for -lxslt... " >&6; }
9442 if ${ac_cv_lib_soname_xslt+:} false; then :
9443 $as_echo_n "(cached) " >&6
9444 else
9445 ac_check_soname_save_LIBS=$LIBS
9446 LIBS="-lxslt $ac_xslt_libs $LIBS"
9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9450 /* Override any GCC internal prototype to avoid an error.
9451 Use char because int might match the return type of a GCC
9452 builtin and then its argument prototype would still apply. */
9453 #ifdef __cplusplus
9454 extern "C"
9455 #endif
9456 char xsltCompilePattern ();
9458 main ()
9460 return xsltCompilePattern ();
9462 return 0;
9464 _ACEOF
9465 if ac_fn_c_try_link "$LINENO"; then :
9466 case "$LIBEXT" in
9467 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9468 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'` ;;
9469 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9470 esac
9472 rm -f core conftest.err conftest.$ac_objext \
9473 conftest$ac_exeext conftest.$ac_ext
9474 LIBS=$ac_check_soname_save_LIBS
9476 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9478 $as_echo "not found" >&6; }
9480 else
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9482 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9484 cat >>confdefs.h <<_ACEOF
9485 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9486 _ACEOF
9488 XSLTINCL="$ac_xslt_cflags"
9492 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9493 case "x$with_xslt" in
9494 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9495 xno) ;;
9496 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9497 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9498 esac
9501 if test "x$with_dbus" != "xno"
9502 then
9503 ac_save_CPPFLAGS="$CPPFLAGS"
9504 if test "$PKG_CONFIG" != "false"
9505 then
9506 ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9507 ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9508 CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9510 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9511 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9513 $as_echo_n "checking for -ldbus-1... " >&6; }
9514 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 ac_check_soname_save_LIBS=$LIBS
9518 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9522 /* Override any GCC internal prototype to avoid an error.
9523 Use char because int might match the return type of a GCC
9524 builtin and then its argument prototype would still apply. */
9525 #ifdef __cplusplus
9526 extern "C"
9527 #endif
9528 char dbus_connection_close ();
9530 main ()
9532 return dbus_connection_close ();
9534 return 0;
9536 _ACEOF
9537 if ac_fn_c_try_link "$LINENO"; then :
9538 case "$LIBEXT" in
9539 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9540 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'` ;;
9541 *) 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'` ;;
9542 esac
9544 rm -f core conftest.err conftest.$ac_objext \
9545 conftest$ac_exeext conftest.$ac_ext
9546 LIBS=$ac_check_soname_save_LIBS
9548 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9550 $as_echo "not found" >&6; }
9552 else
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9554 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9556 cat >>confdefs.h <<_ACEOF
9557 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9558 _ACEOF
9560 DBUSINCL="$ac_dbus_cflags"
9566 CPPFLAGS="$ac_save_CPPFLAGS"
9568 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9569 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9570 case "x$with_dbus" in
9571 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9572 xno) ;;
9573 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9574 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9575 esac
9578 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9579 then
9580 ac_save_CPPFLAGS="$CPPFLAGS"
9581 if test "$PKG_CONFIG" != "false"
9582 then
9583 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9584 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9585 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9587 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9588 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9590 $as_echo_n "checking for -lhal... " >&6; }
9591 if ${ac_cv_lib_soname_hal+:} false; then :
9592 $as_echo_n "(cached) " >&6
9593 else
9594 ac_check_soname_save_LIBS=$LIBS
9595 LIBS="-lhal $ac_hal_libs $LIBS"
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9599 /* Override any GCC internal prototype to avoid an error.
9600 Use char because int might match the return type of a GCC
9601 builtin and then its argument prototype would still apply. */
9602 #ifdef __cplusplus
9603 extern "C"
9604 #endif
9605 char libhal_ctx_new ();
9607 main ()
9609 return libhal_ctx_new ();
9611 return 0;
9613 _ACEOF
9614 if ac_fn_c_try_link "$LINENO"; then :
9615 case "$LIBEXT" in
9616 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9617 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'` ;;
9618 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9619 esac
9621 rm -f core conftest.err conftest.$ac_objext \
9622 conftest$ac_exeext conftest.$ac_ext
9623 LIBS=$ac_check_soname_save_LIBS
9625 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9627 $as_echo "not found" >&6; }
9629 else
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9631 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9633 cat >>confdefs.h <<_ACEOF
9634 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9635 _ACEOF
9637 HALINCL="$ac_hal_cflags"
9643 CPPFLAGS="$ac_save_CPPFLAGS"
9644 if test "x$ac_cv_lib_soname_hal" = "x" -a \
9645 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9646 case "x$with_hal" in
9647 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9648 xno) ;;
9649 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9650 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9651 esac
9655 if test "x$with_gnutls" != "xno"
9656 then
9657 ac_save_CPPFLAGS="$CPPFLAGS"
9658 if test "$PKG_CONFIG" != "false"
9659 then
9660 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9661 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9662 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9664 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9665 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9668 #include <gnutls/gnutls.h>
9670 main ()
9672 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9674 return 0;
9676 _ACEOF
9677 if ac_fn_c_try_compile "$LINENO"; then :
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9679 $as_echo_n "checking for -lgnutls... " >&6; }
9680 if ${ac_cv_lib_soname_gnutls+:} false; then :
9681 $as_echo_n "(cached) " >&6
9682 else
9683 ac_check_soname_save_LIBS=$LIBS
9684 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h. */
9688 /* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
9691 #ifdef __cplusplus
9692 extern "C"
9693 #endif
9694 char gnutls_global_init ();
9696 main ()
9698 return gnutls_global_init ();
9700 return 0;
9702 _ACEOF
9703 if ac_fn_c_try_link "$LINENO"; then :
9704 case "$LIBEXT" in
9705 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9706 dylib) ac_cv_lib_soname_gnutls=`otool -L conftest$ac_exeext | grep "libgnutls\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgnutls\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9707 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9708 esac
9710 rm -f core conftest.err conftest.$ac_objext \
9711 conftest$ac_exeext conftest.$ac_ext
9712 LIBS=$ac_check_soname_save_LIBS
9714 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9716 $as_echo "not found" >&6; }
9718 else
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9720 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9722 cat >>confdefs.h <<_ACEOF
9723 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9724 _ACEOF
9726 GNUTLSINCL="$ac_gnutls_cflags"
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9734 CPPFLAGS="$ac_save_CPPFLAGS"
9736 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9737 case "x$with_gnutls" in
9738 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9739 xno) ;;
9740 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9741 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9742 esac
9745 CURSESLIBS=""
9746 if test "$ac_cv_header_ncurses_h" = "yes"
9747 then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9749 $as_echo_n "checking for -lncurses... " >&6; }
9750 if ${ac_cv_lib_soname_ncurses+:} false; then :
9751 $as_echo_n "(cached) " >&6
9752 else
9753 ac_check_soname_save_LIBS=$LIBS
9754 LIBS="-lncurses $LIBS"
9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h. */
9758 /* Override any GCC internal prototype to avoid an error.
9759 Use char because int might match the return type of a GCC
9760 builtin and then its argument prototype would still apply. */
9761 #ifdef __cplusplus
9762 extern "C"
9763 #endif
9764 char waddch ();
9766 main ()
9768 return waddch ();
9770 return 0;
9772 _ACEOF
9773 if ac_fn_c_try_link "$LINENO"; then :
9774 case "$LIBEXT" in
9775 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9776 dylib) ac_cv_lib_soname_ncurses=`otool -L conftest$ac_exeext | grep "libncurses\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libncurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9777 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9778 esac
9780 rm -f core conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
9782 LIBS=$ac_check_soname_save_LIBS
9784 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9786 $as_echo "not found" >&6; }
9788 else
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9790 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9792 cat >>confdefs.h <<_ACEOF
9793 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9794 _ACEOF
9796 CURSESLIBS="-lncurses"
9798 elif test "$ac_cv_header_curses_h" = "yes"
9799 then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9801 $as_echo_n "checking for -lcurses... " >&6; }
9802 if ${ac_cv_lib_soname_curses+:} false; then :
9803 $as_echo_n "(cached) " >&6
9804 else
9805 ac_check_soname_save_LIBS=$LIBS
9806 LIBS="-lcurses $LIBS"
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9810 /* Override any GCC internal prototype to avoid an error.
9811 Use char because int might match the return type of a GCC
9812 builtin and then its argument prototype would still apply. */
9813 #ifdef __cplusplus
9814 extern "C"
9815 #endif
9816 char waddch ();
9818 main ()
9820 return waddch ();
9822 return 0;
9824 _ACEOF
9825 if ac_fn_c_try_link "$LINENO"; then :
9826 case "$LIBEXT" in
9827 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9828 dylib) ac_cv_lib_soname_curses=`otool -L conftest$ac_exeext | grep "libcurses\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9829 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9830 esac
9832 rm -f core conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
9834 LIBS=$ac_check_soname_save_LIBS
9836 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9838 $as_echo "not found" >&6; }
9840 else
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9842 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9844 cat >>confdefs.h <<_ACEOF
9845 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9846 _ACEOF
9848 CURSESLIBS="-lcurses"
9851 ac_save_LIBS="$LIBS"
9852 LIBS="$LIBS $CURSESLIBS"
9853 for ac_func in mousemask
9854 do :
9855 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9856 if test "x$ac_cv_func_mousemask" = xyes; then :
9857 cat >>confdefs.h <<_ACEOF
9858 #define HAVE_MOUSEMASK 1
9859 _ACEOF
9862 done
9864 LIBS="$ac_save_LIBS"
9865 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9866 case "x$with_curses" in
9867 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9868 xno) ;;
9869 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9870 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9871 esac
9874 if test "x$with_sane" != "xno"
9875 then
9876 ac_save_CPPFLAGS="$CPPFLAGS"
9877 # Extract the first word of "sane-config", so it can be a program name with args.
9878 set dummy sane-config; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if ${ac_cv_prog_sane_devel+:} false; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 if test -n "$sane_devel"; then
9885 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9886 else
9887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888 for as_dir in $PATH
9890 IFS=$as_save_IFS
9891 test -z "$as_dir" && as_dir=.
9892 for ac_exec_ext in '' $ac_executable_extensions; do
9893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9894 ac_cv_prog_sane_devel="sane-config"
9895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9896 break 2
9898 done
9899 done
9900 IFS=$as_save_IFS
9902 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9905 sane_devel=$ac_cv_prog_sane_devel
9906 if test -n "$sane_devel"; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9908 $as_echo "$sane_devel" >&6; }
9909 else
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9911 $as_echo "no" >&6; }
9915 if test "$sane_devel" != "no"
9916 then
9917 ac_sane_incl="`$sane_devel --cflags`"
9918 ac_sane_libs="`$sane_devel --ldflags`"
9919 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9921 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9922 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9924 $as_echo_n "checking for -lsane... " >&6; }
9925 if ${ac_cv_lib_soname_sane+:} false; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 ac_check_soname_save_LIBS=$LIBS
9929 LIBS="-lsane $ac_sane_libs $LIBS"
9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9933 /* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
9936 #ifdef __cplusplus
9937 extern "C"
9938 #endif
9939 char sane_init ();
9941 main ()
9943 return sane_init ();
9945 return 0;
9947 _ACEOF
9948 if ac_fn_c_try_link "$LINENO"; then :
9949 case "$LIBEXT" in
9950 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9951 dylib) ac_cv_lib_soname_sane=`otool -L conftest$ac_exeext | grep "libsane\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libsane\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9952 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9953 esac
9955 rm -f core conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9957 LIBS=$ac_check_soname_save_LIBS
9959 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9961 $as_echo "not found" >&6; }
9963 else
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9965 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9967 cat >>confdefs.h <<_ACEOF
9968 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9969 _ACEOF
9971 SANEINCL="$ac_sane_incl"
9977 CPPFLAGS="$ac_save_CPPFLAGS"
9979 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9980 case "x$with_sane" in
9981 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9982 xno) ;;
9983 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9984 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9985 esac
9988 if test "x$with_v4l" != "xno"
9989 then
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9991 $as_echo_n "checking for -lv4l1... " >&6; }
9992 if ${ac_cv_lib_soname_v4l1+:} false; then :
9993 $as_echo_n "(cached) " >&6
9994 else
9995 ac_check_soname_save_LIBS=$LIBS
9996 LIBS="-lv4l1 $LIBS"
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
10000 /* Override any GCC internal prototype to avoid an error.
10001 Use char because int might match the return type of a GCC
10002 builtin and then its argument prototype would still apply. */
10003 #ifdef __cplusplus
10004 extern "C"
10005 #endif
10006 char v4l1_open ();
10008 main ()
10010 return v4l1_open ();
10012 return 0;
10014 _ACEOF
10015 if ac_fn_c_try_link "$LINENO"; then :
10016 case "$LIBEXT" in
10017 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10018 dylib) ac_cv_lib_soname_v4l1=`otool -L conftest$ac_exeext | grep "libv4l1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libv4l1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10019 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10020 esac
10022 rm -f core conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
10024 LIBS=$ac_check_soname_save_LIBS
10026 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10028 $as_echo "not found" >&6; }
10030 else
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10032 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10034 cat >>confdefs.h <<_ACEOF
10035 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10036 _ACEOF
10041 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10042 case "x$with_v4l" in
10043 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10044 xno) ;;
10045 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10046 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10047 esac
10050 if test "x$with_gphoto" != "xno"
10051 then
10052 ac_save_CPPFLAGS="$CPPFLAGS"
10053 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10054 set dummy gphoto2-config; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10058 $as_echo_n "(cached) " >&6
10059 else
10060 if test -n "$gphoto2_devel"; then
10061 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10062 else
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10066 IFS=$as_save_IFS
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10070 ac_cv_prog_gphoto2_devel="gphoto2-config"
10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 break 2
10074 done
10075 done
10076 IFS=$as_save_IFS
10078 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10081 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10082 if test -n "$gphoto2_devel"; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10084 $as_echo "$gphoto2_devel" >&6; }
10085 else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10091 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10092 set dummy gphoto2-port-config; ac_word=$2
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094 $as_echo_n "checking for $ac_word... " >&6; }
10095 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098 if test -n "$gphoto2port_devel"; then
10099 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10100 else
10101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102 for as_dir in $PATH
10104 IFS=$as_save_IFS
10105 test -z "$as_dir" && as_dir=.
10106 for ac_exec_ext in '' $ac_executable_extensions; do
10107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10108 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110 break 2
10112 done
10113 done
10114 IFS=$as_save_IFS
10116 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10119 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10120 if test -n "$gphoto2port_devel"; then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10122 $as_echo "$gphoto2port_devel" >&6; }
10123 else
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125 $as_echo "no" >&6; }
10129 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10130 then
10131 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10132 ac_gphoto2_libs=""
10133 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10135 case "$i" in
10136 -L/usr/lib|-L/usr/lib64) ;;
10137 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10138 esac
10139 done
10140 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10142 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10143 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10144 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10146 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10147 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 ac_check_lib_save_LIBS=$LIBS
10151 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h. */
10155 /* Override any GCC internal prototype to avoid an error.
10156 Use char because int might match the return type of a GCC
10157 builtin and then its argument prototype would still apply. */
10158 #ifdef __cplusplus
10159 extern "C"
10160 #endif
10161 char gp_camera_new ();
10163 main ()
10165 return gp_camera_new ();
10167 return 0;
10169 _ACEOF
10170 if ac_fn_c_try_link "$LINENO"; then :
10171 ac_cv_lib_gphoto2_gp_camera_new=yes
10172 else
10173 ac_cv_lib_gphoto2_gp_camera_new=no
10175 rm -f core conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10180 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10181 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10183 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10185 GPHOTO2LIBS="$ac_gphoto2_libs"
10187 GPHOTO2INCL="$ac_gphoto2_incl"
10194 CPPFLAGS="$ac_save_CPPFLAGS"
10196 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10197 case "x$with_gphoto" in
10198 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10199 xno) ;;
10200 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10201 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10202 esac
10206 if test "$ac_cv_header_resolv_h" = "yes"
10207 then
10208 ac_save_LIBS="$LIBS"
10209 for lib in '' -lresolv
10211 LIBS="$lib $ac_save_LIBS"
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10214 #ifdef HAVE_NETINET_IN_H
10215 #include <netinet/in.h>
10216 #endif
10217 #include <resolv.h>
10219 main ()
10221 res_query("foo",ns_c_in,0,0,0);
10223 return 0;
10225 _ACEOF
10226 if ac_fn_c_try_link "$LINENO"; then :
10228 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10230 RESOLVLIBS="$lib"
10233 rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235 if test "${RESOLVLIBS+set}" = set; then
10236 break
10238 done
10239 LIBS="$ac_save_LIBS"
10242 LCMSLIBS=""
10244 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10245 then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10247 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10248 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 ac_check_lib_save_LIBS=$LIBS
10252 LIBS="-llcms $LIBS"
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10256 /* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
10259 #ifdef __cplusplus
10260 extern "C"
10261 #endif
10262 char cmsOpenProfileFromFile ();
10264 main ()
10266 return cmsOpenProfileFromFile ();
10268 return 0;
10270 _ACEOF
10271 if ac_fn_c_try_link "$LINENO"; then :
10272 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10273 else
10274 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10276 rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10278 LIBS=$ac_check_lib_save_LIBS
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10281 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10282 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10284 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10286 LCMSLIBS="-llcms"
10290 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10291 case "x$with_cms" in
10292 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10293 xno) ;;
10294 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10295 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10296 esac
10299 if test "x$with_freetype" != "xno"
10300 then
10301 for ac_prog in freetype-config freetype2-config
10303 # Extract the first word of "$ac_prog", so it can be a program name with args.
10304 set dummy $ac_prog; ac_word=$2
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306 $as_echo_n "checking for $ac_word... " >&6; }
10307 if ${ac_cv_prog_ft_devel+:} false; then :
10308 $as_echo_n "(cached) " >&6
10309 else
10310 if test -n "$ft_devel"; then
10311 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10312 else
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10320 ac_cv_prog_ft_devel="$ac_prog"
10321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 break 2
10324 done
10325 done
10326 IFS=$as_save_IFS
10330 ft_devel=$ac_cv_prog_ft_devel
10331 if test -n "$ft_devel"; then
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10333 $as_echo "$ft_devel" >&6; }
10334 else
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336 $as_echo "no" >&6; }
10340 test -n "$ft_devel" && break
10341 done
10342 test -n "$ft_devel" || ft_devel="no"
10344 if test "$ft_devel" != "no"
10345 then
10346 ac_freetype_incl=`$ft_devel --cflags`
10347 ac_freetype_libs=`$ft_devel --libs`
10349 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10351 $as_echo_n "checking for -lfreetype... " >&6; }
10352 if ${ac_cv_lib_soname_freetype+:} false; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 ac_check_soname_save_LIBS=$LIBS
10356 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10360 /* Override any GCC internal prototype to avoid an error.
10361 Use char because int might match the return type of a GCC
10362 builtin and then its argument prototype would still apply. */
10363 #ifdef __cplusplus
10364 extern "C"
10365 #endif
10366 char FT_Init_FreeType ();
10368 main ()
10370 return FT_Init_FreeType ();
10372 return 0;
10374 _ACEOF
10375 if ac_fn_c_try_link "$LINENO"; then :
10376 case "$LIBEXT" in
10377 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10378 dylib) ac_cv_lib_soname_freetype=`otool -L conftest$ac_exeext | grep "libfreetype\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfreetype\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10379 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10380 esac
10382 rm -f core conftest.err conftest.$ac_objext \
10383 conftest$ac_exeext conftest.$ac_ext
10384 LIBS=$ac_check_soname_save_LIBS
10386 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10388 $as_echo "not found" >&6; }
10389 ft_lib=no
10390 else
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10392 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10394 cat >>confdefs.h <<_ACEOF
10395 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10396 _ACEOF
10398 ft_lib=yes
10400 if test "$ft_lib" = "yes"
10401 then
10402 ac_save_CPPFLAGS="$CPPFLAGS"
10403 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10404 for ac_header in ft2build.h \
10405 freetype/freetype.h \
10406 freetype/ftglyph.h \
10407 freetype/fttypes.h \
10408 freetype/tttables.h \
10409 freetype/ftsnames.h \
10410 freetype/ttnameid.h \
10411 freetype/ftoutln.h \
10412 freetype/ftwinfnt.h \
10413 freetype/ftmodapi.h \
10414 freetype/ftlcdfil.h
10415 do :
10416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10417 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10418 # include <ft2build.h>
10419 #endif
10421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10422 cat >>confdefs.h <<_ACEOF
10423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10424 _ACEOF
10428 done
10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10432 #include <ft2build.h>
10433 #include <freetype/fttrigon.h>
10434 _ACEOF
10435 if ac_fn_c_try_cpp "$LINENO"; then :
10437 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10439 wine_cv_fttrigon=yes
10440 else
10441 wine_cv_fttrigon=no
10443 rm -f conftest.err conftest.i conftest.$ac_ext
10444 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10446 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10448 cat >>confdefs.h <<_ACEOF
10449 #define HAVE_FT_TRUETYPEENGINETYPE 1
10450 _ACEOF
10455 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10456 then
10458 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10460 FREETYPELIBS="$ac_freetype_libs"
10462 FREETYPEINCL="$ac_freetype_incl"
10467 if test "x$FREETYPELIBS" = "x"; then :
10468 case "x$with_freetype" in
10469 xno) ;;
10470 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10471 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10472 esac
10474 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10477 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10478 if ${ac_cv_c_ppdev+:} false; then :
10479 $as_echo_n "(cached) " >&6
10480 else
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10483 #ifdef HAVE_SYS_IOCTL_H
10484 # include <sys/ioctl.h>
10485 #endif
10486 #include <linux/ppdev.h>
10488 main ()
10490 ioctl (1,PPCLAIM,0)
10492 return 0;
10494 _ACEOF
10495 if ac_fn_c_try_compile "$LINENO"; then :
10496 ac_cv_c_ppdev="yes"
10497 else
10498 ac_cv_c_ppdev="no"
10500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10503 $as_echo "$ac_cv_c_ppdev" >&6; }
10504 if test "$ac_cv_c_ppdev" = "yes"
10505 then
10507 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10511 ac_wine_check_funcs_save_LIBS="$LIBS"
10512 LIBS="$LIBS $LIBPTHREAD"
10513 for ac_func in \
10514 pthread_attr_get_np \
10515 pthread_getattr_np \
10516 pthread_get_stackaddr_np \
10517 pthread_get_stacksize_np
10518 do :
10519 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10520 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10521 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10522 cat >>confdefs.h <<_ACEOF
10523 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10524 _ACEOF
10527 done
10529 LIBS="$ac_wine_check_funcs_save_LIBS"
10531 if test "$ac_cv_header_zlib_h" = "yes"
10532 then
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10534 $as_echo_n "checking for inflate in -lz... " >&6; }
10535 if ${ac_cv_lib_z_inflate+:} false; then :
10536 $as_echo_n "(cached) " >&6
10537 else
10538 ac_check_lib_save_LIBS=$LIBS
10539 LIBS="-lz $LIBS"
10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10543 /* Override any GCC internal prototype to avoid an error.
10544 Use char because int might match the return type of a GCC
10545 builtin and then its argument prototype would still apply. */
10546 #ifdef __cplusplus
10547 extern "C"
10548 #endif
10549 char inflate ();
10551 main ()
10553 return inflate ();
10555 return 0;
10557 _ACEOF
10558 if ac_fn_c_try_link "$LINENO"; then :
10559 ac_cv_lib_z_inflate=yes
10560 else
10561 ac_cv_lib_z_inflate=no
10563 rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10565 LIBS=$ac_check_lib_save_LIBS
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10568 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10569 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10571 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10573 ZLIB="-lz"
10578 if test "x$ZLIB" = "x"; then :
10579 case "x$with_zlib" in
10580 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10581 xno) ;;
10582 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10583 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10584 esac
10587 if test "x$enable_tools" != xno
10588 then
10589 if test "$ac_cv_header_gettext_po_h" = "yes"
10590 then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10592 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10593 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10594 $as_echo_n "(cached) " >&6
10595 else
10596 ac_check_lib_save_LIBS=$LIBS
10597 LIBS="-lgettextpo $LIBS"
10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10601 /* Override any GCC internal prototype to avoid an error.
10602 Use char because int might match the return type of a GCC
10603 builtin and then its argument prototype would still apply. */
10604 #ifdef __cplusplus
10605 extern "C"
10606 #endif
10607 char po_message_msgctxt ();
10609 main ()
10611 return po_message_msgctxt ();
10613 return 0;
10615 _ACEOF
10616 if ac_fn_c_try_link "$LINENO"; then :
10617 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10618 else
10619 ac_cv_lib_gettextpo_po_message_msgctxt=no
10621 rm -f core conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623 LIBS=$ac_check_lib_save_LIBS
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10626 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10627 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10629 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10631 LIBGETTEXTPO="-lgettextpo"
10636 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10637 case "x$with_gettextpo" in
10638 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10639 xno) ;;
10640 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10641 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10642 esac
10646 if test "x$with_gstreamer" != "xno"
10647 then
10648 ac_save_CPPFLAGS="$CPPFLAGS"
10649 if test "$PKG_CONFIG" != "false"; then
10650 ac_gst_incl=""
10651 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10653 case "$i" in
10654 -I*) ac_gst_incl="$ac_gst_incl $i";;
10655 esac
10656 done
10657 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10658 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10659 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10660 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10661 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10662 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10664 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10667 #include <gst/app/gstappsink.h>
10669 main ()
10671 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10673 return 0;
10675 _ACEOF
10676 if ac_fn_c_try_compile "$LINENO"; then :
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10678 $as_echo "yes" >&6; }
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10680 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10681 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10682 $as_echo_n "(cached) " >&6
10683 else
10684 ac_check_lib_save_LIBS=$LIBS
10685 LIBS="-lgstreamer-0.10 $LIBS"
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10689 /* Override any GCC internal prototype to avoid an error.
10690 Use char because int might match the return type of a GCC
10691 builtin and then its argument prototype would still apply. */
10692 #ifdef __cplusplus
10693 extern "C"
10694 #endif
10695 char gst_pad_get_caps_reffed ();
10697 main ()
10699 return gst_pad_get_caps_reffed ();
10701 return 0;
10703 _ACEOF
10704 if ac_fn_c_try_link "$LINENO"; then :
10705 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10706 else
10707 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10709 rm -f core conftest.err conftest.$ac_objext \
10710 conftest$ac_exeext conftest.$ac_ext
10711 LIBS=$ac_check_lib_save_LIBS
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10714 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10715 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10717 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10718 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10719 $as_echo_n "(cached) " >&6
10720 else
10721 ac_check_lib_save_LIBS=$LIBS
10722 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10726 /* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10729 #ifdef __cplusplus
10730 extern "C"
10731 #endif
10732 char gst_app_buffer_new ();
10734 main ()
10736 return gst_app_buffer_new ();
10738 return 0;
10740 _ACEOF
10741 if ac_fn_c_try_link "$LINENO"; then :
10742 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10743 else
10744 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10746 rm -f core conftest.err conftest.$ac_objext \
10747 conftest$ac_exeext conftest.$ac_ext
10748 LIBS=$ac_check_lib_save_LIBS
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10751 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10752 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10753 GSTREAMER_LIBS="$ac_gst_libs"
10755 GSTREAMER_INCL="$ac_gst_incl"
10761 else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763 $as_echo "no" >&6; }
10765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10773 CPPFLAGS="$ac_save_CPPFLAGS"
10775 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10776 case "x$with_gstreamer" in
10777 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10778 xno) ;;
10779 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10780 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10781 esac
10783 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10785 ALSALIBS=""
10787 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10788 then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10790 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10791 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10792 $as_echo_n "(cached) " >&6
10793 else
10794 ac_check_lib_save_LIBS=$LIBS
10795 LIBS="-lasound $LIBS"
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10799 /* Override any GCC internal prototype to avoid an error.
10800 Use char because int might match the return type of a GCC
10801 builtin and then its argument prototype would still apply. */
10802 #ifdef __cplusplus
10803 extern "C"
10804 #endif
10805 char snd_pcm_hw_params_get_access_mask ();
10807 main ()
10809 return snd_pcm_hw_params_get_access_mask ();
10811 return 0;
10813 _ACEOF
10814 if ac_fn_c_try_link "$LINENO"; then :
10815 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10816 else
10817 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10819 rm -f core conftest.err conftest.$ac_objext \
10820 conftest$ac_exeext conftest.$ac_ext
10821 LIBS=$ac_check_lib_save_LIBS
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10824 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10825 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10828 #ifdef HAVE_ALSA_ASOUNDLIB_H
10829 #include <alsa/asoundlib.h>
10830 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10831 #include <sys/asoundlib.h>
10832 #endif
10834 main ()
10836 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10838 return 0;
10840 _ACEOF
10841 if ac_fn_c_try_compile "$LINENO"; then :
10842 ALSALIBS="-lasound"
10844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10849 if test "x$with_oss" != xno
10850 then
10851 ac_save_CPPFLAGS="$CPPFLAGS"
10852 if test -f /etc/oss.conf
10853 then
10854 . /etc/oss.conf
10856 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10857 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10858 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10859 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10860 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10862 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10864 cat >>confdefs.h <<_ACEOF
10865 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10866 _ACEOF
10868 OSS4INCL="$ac_oss_incl"
10875 CPPFLAGS="$ac_save_CPPFLAGS"
10876 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10877 then
10878 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10883 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10884 then
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10886 $as_echo_n "checking for -lcapi20... " >&6; }
10887 if ${ac_cv_lib_soname_capi20+:} false; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 ac_check_soname_save_LIBS=$LIBS
10891 LIBS="-lcapi20 $LIBS"
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10895 /* Override any GCC internal prototype to avoid an error.
10896 Use char because int might match the return type of a GCC
10897 builtin and then its argument prototype would still apply. */
10898 #ifdef __cplusplus
10899 extern "C"
10900 #endif
10901 char capi20_register ();
10903 main ()
10905 return capi20_register ();
10907 return 0;
10909 _ACEOF
10910 if ac_fn_c_try_link "$LINENO"; then :
10911 case "$LIBEXT" in
10912 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10913 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'` ;;
10914 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10915 esac
10917 rm -f core conftest.err conftest.$ac_objext \
10918 conftest$ac_exeext conftest.$ac_ext
10919 LIBS=$ac_check_soname_save_LIBS
10921 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10923 $as_echo "not found" >&6; }
10925 else
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10927 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10929 cat >>confdefs.h <<_ACEOF
10930 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10931 _ACEOF
10936 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10937 case "x$with_capi" in
10938 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10939 xno) ;;
10940 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10941 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10942 esac
10945 CUPSINCL=""
10947 if test "x$with_cups" != "xno"
10948 then
10949 ac_save_CPPFLAGS="$CPPFLAGS"
10950 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10951 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10952 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10953 for ac_header in cups/cups.h
10954 do :
10955 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10956 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
10957 cat >>confdefs.h <<_ACEOF
10958 #define HAVE_CUPS_CUPS_H 1
10959 _ACEOF
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10961 $as_echo_n "checking for -lcups... " >&6; }
10962 if ${ac_cv_lib_soname_cups+:} false; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 ac_check_soname_save_LIBS=$LIBS
10966 LIBS="-lcups $ac_cups_libs $LIBS"
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10970 /* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10973 #ifdef __cplusplus
10974 extern "C"
10975 #endif
10976 char cupsGetDefault ();
10978 main ()
10980 return cupsGetDefault ();
10982 return 0;
10984 _ACEOF
10985 if ac_fn_c_try_link "$LINENO"; then :
10986 case "$LIBEXT" in
10987 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10988 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'` ;;
10989 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10990 esac
10992 rm -f core conftest.err conftest.$ac_objext \
10993 conftest$ac_exeext conftest.$ac_ext
10994 LIBS=$ac_check_soname_save_LIBS
10996 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10998 $as_echo "not found" >&6; }
11000 else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11002 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11004 cat >>confdefs.h <<_ACEOF
11005 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11006 _ACEOF
11008 CUPSINCL="$ac_cups_cflags"
11012 done
11014 CPPFLAGS="$ac_save_CPPFLAGS"
11016 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11017 case "x$with_cups" in
11018 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11019 xno) ;;
11020 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11021 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11022 esac
11025 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11026 then
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11028 $as_echo_n "checking for -lfontconfig... " >&6; }
11029 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11030 $as_echo_n "(cached) " >&6
11031 else
11032 ac_check_soname_save_LIBS=$LIBS
11033 LIBS="-lfontconfig $LIBS"
11034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11037 /* Override any GCC internal prototype to avoid an error.
11038 Use char because int might match the return type of a GCC
11039 builtin and then its argument prototype would still apply. */
11040 #ifdef __cplusplus
11041 extern "C"
11042 #endif
11043 char FcInit ();
11045 main ()
11047 return FcInit ();
11049 return 0;
11051 _ACEOF
11052 if ac_fn_c_try_link "$LINENO"; then :
11053 case "$LIBEXT" in
11054 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11055 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'` ;;
11056 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11057 esac
11059 rm -f core conftest.err conftest.$ac_objext \
11060 conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_soname_save_LIBS
11063 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11065 $as_echo "not found" >&6; }
11067 else
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11069 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11071 cat >>confdefs.h <<_ACEOF
11072 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11073 _ACEOF
11077 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11078 then
11079 ac_save_CPPFLAGS="$CPPFLAGS"
11080 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11081 $as_unset ac_cv_header_fontconfig_fontconfig_h
11082 for ac_header in fontconfig/fontconfig.h
11083 do :
11084 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11085 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11086 cat >>confdefs.h <<_ACEOF
11087 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11088 _ACEOF
11092 done
11094 CPPFLAGS="$ac_save_CPPFLAGS"
11095 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11096 then
11097 FONTCONFIGINCL="$X_CFLAGS"
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11100 $as_echo_n "checking for -lfontconfig... " >&6; }
11101 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11102 $as_echo_n "(cached) " >&6
11103 else
11104 ac_check_soname_save_LIBS=$LIBS
11105 LIBS="-lfontconfig $X_LIBS $LIBS"
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11109 /* Override any GCC internal prototype to avoid an error.
11110 Use char because int might match the return type of a GCC
11111 builtin and then its argument prototype would still apply. */
11112 #ifdef __cplusplus
11113 extern "C"
11114 #endif
11115 char FcInit ();
11117 main ()
11119 return FcInit ();
11121 return 0;
11123 _ACEOF
11124 if ac_fn_c_try_link "$LINENO"; then :
11125 case "$LIBEXT" in
11126 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11127 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'` ;;
11128 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11129 esac
11131 rm -f core conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 LIBS=$ac_check_soname_save_LIBS
11135 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11137 $as_echo "not found" >&6; }
11139 else
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11141 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11143 cat >>confdefs.h <<_ACEOF
11144 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11145 _ACEOF
11151 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11152 case "x$with_fontconfig" in
11153 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11154 xno) ;;
11155 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11156 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11157 esac
11160 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11161 then
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11163 $as_echo_n "checking for -lssl... " >&6; }
11164 if ${ac_cv_lib_soname_ssl+:} false; then :
11165 $as_echo_n "(cached) " >&6
11166 else
11167 ac_check_soname_save_LIBS=$LIBS
11168 LIBS="-lssl $LIBS"
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11172 /* Override any GCC internal prototype to avoid an error.
11173 Use char because int might match the return type of a GCC
11174 builtin and then its argument prototype would still apply. */
11175 #ifdef __cplusplus
11176 extern "C"
11177 #endif
11178 char SSL_library_init ();
11180 main ()
11182 return SSL_library_init ();
11184 return 0;
11186 _ACEOF
11187 if ac_fn_c_try_link "$LINENO"; then :
11188 case "$LIBEXT" in
11189 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11190 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'` ;;
11191 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11192 esac
11194 rm -f core conftest.err conftest.$ac_objext \
11195 conftest$ac_exeext conftest.$ac_ext
11196 LIBS=$ac_check_soname_save_LIBS
11198 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11200 $as_echo "not found" >&6; }
11202 else
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11204 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11206 cat >>confdefs.h <<_ACEOF
11207 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11208 _ACEOF
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11213 $as_echo_n "checking for -lcrypto... " >&6; }
11214 if ${ac_cv_lib_soname_crypto+:} false; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217 ac_check_soname_save_LIBS=$LIBS
11218 LIBS="-lcrypto $LIBS"
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11222 /* Override any GCC internal prototype to avoid an error.
11223 Use char because int might match the return type of a GCC
11224 builtin and then its argument prototype would still apply. */
11225 #ifdef __cplusplus
11226 extern "C"
11227 #endif
11228 char BIO_new_socket ();
11230 main ()
11232 return BIO_new_socket ();
11234 return 0;
11236 _ACEOF
11237 if ac_fn_c_try_link "$LINENO"; then :
11238 case "$LIBEXT" in
11239 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11240 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'` ;;
11241 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11242 esac
11244 rm -f core conftest.err conftest.$ac_objext \
11245 conftest$ac_exeext conftest.$ac_ext
11246 LIBS=$ac_check_soname_save_LIBS
11248 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11250 $as_echo "not found" >&6; }
11252 else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11254 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11256 cat >>confdefs.h <<_ACEOF
11257 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11258 _ACEOF
11263 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11264 case "x$with_openssl" in
11265 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11266 xno) ;;
11267 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11268 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11269 esac
11272 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11273 then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11275 $as_echo_n "checking for -lgsm... " >&6; }
11276 if ${ac_cv_lib_soname_gsm+:} false; then :
11277 $as_echo_n "(cached) " >&6
11278 else
11279 ac_check_soname_save_LIBS=$LIBS
11280 LIBS="-lgsm $LIBS"
11281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11282 /* end confdefs.h. */
11284 /* Override any GCC internal prototype to avoid an error.
11285 Use char because int might match the return type of a GCC
11286 builtin and then its argument prototype would still apply. */
11287 #ifdef __cplusplus
11288 extern "C"
11289 #endif
11290 char gsm_create ();
11292 main ()
11294 return gsm_create ();
11296 return 0;
11298 _ACEOF
11299 if ac_fn_c_try_link "$LINENO"; then :
11300 case "$LIBEXT" in
11301 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11302 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'` ;;
11303 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11304 esac
11306 rm -f core conftest.err conftest.$ac_objext \
11307 conftest$ac_exeext conftest.$ac_ext
11308 LIBS=$ac_check_soname_save_LIBS
11310 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11312 $as_echo "not found" >&6; }
11314 else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11316 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11318 cat >>confdefs.h <<_ACEOF
11319 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11320 _ACEOF
11325 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11326 case "x$with_gsm" in
11327 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11328 xno) ;;
11329 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11330 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11331 esac
11334 if test "$ac_cv_header_jpeglib_h" = "yes"
11335 then
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11337 $as_echo_n "checking for -ljpeg... " >&6; }
11338 if ${ac_cv_lib_soname_jpeg+:} false; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 ac_check_soname_save_LIBS=$LIBS
11342 LIBS="-ljpeg $LIBS"
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349 #ifdef __cplusplus
11350 extern "C"
11351 #endif
11352 char jpeg_start_decompress ();
11354 main ()
11356 return jpeg_start_decompress ();
11358 return 0;
11360 _ACEOF
11361 if ac_fn_c_try_link "$LINENO"; then :
11362 case "$LIBEXT" in
11363 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11364 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'` ;;
11365 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11366 esac
11368 rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370 LIBS=$ac_check_soname_save_LIBS
11372 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11374 $as_echo "not found" >&6; }
11376 else
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11378 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11380 cat >>confdefs.h <<_ACEOF
11381 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11382 _ACEOF
11387 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11388 case "x$with_jpeg" in
11389 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11390 xno) ;;
11391 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11392 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11393 esac
11396 if test "$ac_cv_header_png_h" = "yes"
11397 then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11399 $as_echo_n "checking for -lpng... " >&6; }
11400 if ${ac_cv_lib_soname_png+:} false; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 ac_check_soname_save_LIBS=$LIBS
11404 LIBS="-lpng -lm -lz $LIBS"
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11411 #ifdef __cplusplus
11412 extern "C"
11413 #endif
11414 char png_create_read_struct ();
11416 main ()
11418 return png_create_read_struct ();
11420 return 0;
11422 _ACEOF
11423 if ac_fn_c_try_link "$LINENO"; then :
11424 case "$LIBEXT" in
11425 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11426 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'` ;;
11427 *) 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'` ;;
11428 esac
11430 rm -f core conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 LIBS=$ac_check_soname_save_LIBS
11434 if test "x$ac_cv_lib_soname_png" = "x"; then :
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11436 $as_echo "not found" >&6; }
11438 else
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11440 $as_echo "$ac_cv_lib_soname_png" >&6; }
11442 cat >>confdefs.h <<_ACEOF
11443 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11444 _ACEOF
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11449 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11450 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11451 $as_echo_n "(cached) " >&6
11452 else
11453 ac_check_lib_save_LIBS=$LIBS
11454 LIBS="-lpng -lm -lz $LIBS"
11455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11458 /* Override any GCC internal prototype to avoid an error.
11459 Use char because int might match the return type of a GCC
11460 builtin and then its argument prototype would still apply. */
11461 #ifdef __cplusplus
11462 extern "C"
11463 #endif
11464 char png_set_expand_gray_1_2_4_to_8 ();
11466 main ()
11468 return png_set_expand_gray_1_2_4_to_8 ();
11470 return 0;
11472 _ACEOF
11473 if ac_fn_c_try_link "$LINENO"; then :
11474 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11475 else
11476 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11478 rm -f core conftest.err conftest.$ac_objext \
11479 conftest$ac_exeext conftest.$ac_ext
11480 LIBS=$ac_check_lib_save_LIBS
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11483 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11484 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11486 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11491 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11492 then
11493 ac_save_CPPFLAGS="$CPPFLAGS"
11494 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11495 $as_unset ac_cv_header_png_h
11496 for ac_header in png.h
11497 do :
11498 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11499 if test "x$ac_cv_header_png_h" = xyes; then :
11500 cat >>confdefs.h <<_ACEOF
11501 #define HAVE_PNG_H 1
11502 _ACEOF
11506 done
11508 CPPFLAGS="$ac_save_CPPFLAGS"
11509 if test "$ac_cv_header_png_h" = "yes"
11510 then
11511 PNGINCL="$X_CFLAGS"
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11514 $as_echo_n "checking for -lpng... " >&6; }
11515 if ${ac_cv_lib_soname_png+:} false; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518 ac_check_soname_save_LIBS=$LIBS
11519 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h. */
11523 /* Override any GCC internal prototype to avoid an error.
11524 Use char because int might match the return type of a GCC
11525 builtin and then its argument prototype would still apply. */
11526 #ifdef __cplusplus
11527 extern "C"
11528 #endif
11529 char png_create_read_struct ();
11531 main ()
11533 return png_create_read_struct ();
11535 return 0;
11537 _ACEOF
11538 if ac_fn_c_try_link "$LINENO"; then :
11539 case "$LIBEXT" in
11540 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11541 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'` ;;
11542 *) 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'` ;;
11543 esac
11545 rm -f core conftest.err conftest.$ac_objext \
11546 conftest$ac_exeext conftest.$ac_ext
11547 LIBS=$ac_check_soname_save_LIBS
11549 if test "x$ac_cv_lib_soname_png" = "x"; then :
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11551 $as_echo "not found" >&6; }
11553 else
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11555 $as_echo "$ac_cv_lib_soname_png" >&6; }
11557 cat >>confdefs.h <<_ACEOF
11558 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11559 _ACEOF
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11564 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11565 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11566 $as_echo_n "(cached) " >&6
11567 else
11568 ac_check_lib_save_LIBS=$LIBS
11569 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11573 /* Override any GCC internal prototype to avoid an error.
11574 Use char because int might match the return type of a GCC
11575 builtin and then its argument prototype would still apply. */
11576 #ifdef __cplusplus
11577 extern "C"
11578 #endif
11579 char png_set_expand_gray_1_2_4_to_8 ();
11581 main ()
11583 return png_set_expand_gray_1_2_4_to_8 ();
11585 return 0;
11587 _ACEOF
11588 if ac_fn_c_try_link "$LINENO"; then :
11589 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11590 else
11591 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11593 rm -f core conftest.err conftest.$ac_objext \
11594 conftest$ac_exeext conftest.$ac_ext
11595 LIBS=$ac_check_lib_save_LIBS
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11598 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11599 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11600 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11606 if test "x$ac_cv_lib_soname_png" = "x"; then :
11607 case "x$with_png" in
11608 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11609 xno) ;;
11610 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11611 This is an error since --with-png was requested." "$LINENO" 5 ;;
11612 esac
11615 if test "$ac_cv_header_tiffio_h" = "yes"
11616 then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11618 $as_echo_n "checking for -ltiff... " >&6; }
11619 if ${ac_cv_lib_soname_tiff+:} false; then :
11620 $as_echo_n "(cached) " >&6
11621 else
11622 ac_check_soname_save_LIBS=$LIBS
11623 LIBS="-ltiff $LIBS"
11624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11625 /* end confdefs.h. */
11627 /* Override any GCC internal prototype to avoid an error.
11628 Use char because int might match the return type of a GCC
11629 builtin and then its argument prototype would still apply. */
11630 #ifdef __cplusplus
11631 extern "C"
11632 #endif
11633 char TIFFClientOpen ();
11635 main ()
11637 return TIFFClientOpen ();
11639 return 0;
11641 _ACEOF
11642 if ac_fn_c_try_link "$LINENO"; then :
11643 case "$LIBEXT" in
11644 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11645 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'` ;;
11646 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11647 esac
11649 rm -f core conftest.err conftest.$ac_objext \
11650 conftest$ac_exeext conftest.$ac_ext
11651 LIBS=$ac_check_soname_save_LIBS
11653 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11655 $as_echo "not found" >&6; }
11657 else
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11659 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11661 cat >>confdefs.h <<_ACEOF
11662 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11663 _ACEOF
11668 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11669 case "x$with_tiff" in
11670 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11671 xno) ;;
11672 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11673 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11674 esac
11677 if test "$ac_cv_header_mpg123_h" = "yes"
11678 then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11680 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11681 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11682 $as_echo_n "(cached) " >&6
11683 else
11684 ac_check_lib_save_LIBS=$LIBS
11685 LIBS="-lmpg123 $LIBS"
11686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687 /* end confdefs.h. */
11689 /* Override any GCC internal prototype to avoid an error.
11690 Use char because int might match the return type of a GCC
11691 builtin and then its argument prototype would still apply. */
11692 #ifdef __cplusplus
11693 extern "C"
11694 #endif
11695 char mpg123_feed ();
11697 main ()
11699 return mpg123_feed ();
11701 return 0;
11703 _ACEOF
11704 if ac_fn_c_try_link "$LINENO"; then :
11705 ac_cv_lib_mpg123_mpg123_feed=yes
11706 else
11707 ac_cv_lib_mpg123_mpg123_feed=no
11709 rm -f core conftest.err conftest.$ac_objext \
11710 conftest$ac_exeext conftest.$ac_ext
11711 LIBS=$ac_check_lib_save_LIBS
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11714 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11715 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11716 LIBMPG123="-lmpg123"
11721 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11722 case "x$with_mpg123" in
11723 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11724 xno) ;;
11725 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11726 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11727 esac
11729 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}
11731 if test "$ac_cv_header_AL_al_h" = "yes"
11732 then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11734 $as_echo_n "checking for -lopenal... " >&6; }
11735 if ${ac_cv_lib_soname_openal+:} false; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 ac_check_soname_save_LIBS=$LIBS
11739 LIBS="-lopenal $LIBS"
11740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11743 /* Override any GCC internal prototype to avoid an error.
11744 Use char because int might match the return type of a GCC
11745 builtin and then its argument prototype would still apply. */
11746 #ifdef __cplusplus
11747 extern "C"
11748 #endif
11749 char alGetSource3i ();
11751 main ()
11753 return alGetSource3i ();
11755 return 0;
11757 _ACEOF
11758 if ac_fn_c_try_link "$LINENO"; then :
11759 case "$LIBEXT" in
11760 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11761 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'` ;;
11762 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11763 esac
11765 rm -f core conftest.err conftest.$ac_objext \
11766 conftest$ac_exeext conftest.$ac_ext
11767 LIBS=$ac_check_soname_save_LIBS
11769 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11771 $as_echo "not found" >&6; }
11773 else
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11775 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11777 cat >>confdefs.h <<_ACEOF
11778 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11779 _ACEOF
11781 LIBOPENAL="-lopenal"
11783 ac_cv_lib_openal=yes
11785 cat >>confdefs.h <<_ACEOF
11786 #define HAVE_OPENAL 1
11787 _ACEOF
11791 if test "x$ac_cv_lib_openal" != xyes; then :
11792 case "x$with_openal" in
11793 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11794 xno) ;;
11795 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11796 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11797 esac
11799 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11801 if test "$ac_cv_header_kstat_h" = "yes"
11802 then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11804 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11805 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11806 $as_echo_n "(cached) " >&6
11807 else
11808 ac_check_lib_save_LIBS=$LIBS
11809 LIBS="-lkstat $LIBS"
11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11813 /* Override any GCC internal prototype to avoid an error.
11814 Use char because int might match the return type of a GCC
11815 builtin and then its argument prototype would still apply. */
11816 #ifdef __cplusplus
11817 extern "C"
11818 #endif
11819 char kstat_open ();
11821 main ()
11823 return kstat_open ();
11825 return 0;
11827 _ACEOF
11828 if ac_fn_c_try_link "$LINENO"; then :
11829 ac_cv_lib_kstat_kstat_open=yes
11830 else
11831 ac_cv_lib_kstat_kstat_open=no
11833 rm -f core conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11835 LIBS=$ac_check_lib_save_LIBS
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11838 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11839 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11841 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11843 LIBKSTAT="-lkstat"
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11850 $as_echo_n "checking for -lodbc... " >&6; }
11851 if ${ac_cv_lib_soname_odbc+:} false; then :
11852 $as_echo_n "(cached) " >&6
11853 else
11854 ac_check_soname_save_LIBS=$LIBS
11855 LIBS="-lodbc $LIBS"
11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857 /* end confdefs.h. */
11859 /* Override any GCC internal prototype to avoid an error.
11860 Use char because int might match the return type of a GCC
11861 builtin and then its argument prototype would still apply. */
11862 #ifdef __cplusplus
11863 extern "C"
11864 #endif
11865 char SQLConnect ();
11867 main ()
11869 return SQLConnect ();
11871 return 0;
11873 _ACEOF
11874 if ac_fn_c_try_link "$LINENO"; then :
11875 case "$LIBEXT" in
11876 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11877 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'` ;;
11878 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11879 esac
11881 rm -f core conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext
11883 LIBS=$ac_check_soname_save_LIBS
11885 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11887 $as_echo "not found" >&6; }
11888 cat >>confdefs.h <<_ACEOF
11889 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11890 _ACEOF
11892 else
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11894 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11896 cat >>confdefs.h <<_ACEOF
11897 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11898 _ACEOF
11903 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11904 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
11905 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
11906 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11908 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
11909 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
11910 "x$with_alsa$with_coreaudio$with_oss" != xnonono
11911 then
11912 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11916 EXTRACFLAGS=""
11918 if test "x${GCC}" = "xyes"
11919 then
11920 EXTRACFLAGS="-Wall -pipe"
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11923 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11924 if ${ac_cv_c_gcc_strength_bug+:} false; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 if test "$cross_compiling" = yes; then :
11928 ac_cv_c_gcc_strength_bug="yes"
11929 else
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 int L[4] = {0,1,2,3};
11934 main ()
11936 static int Array[3];
11937 unsigned int B = 3;
11938 int i;
11939 for(i=0; i<B; i++) Array[i] = i - 3;
11940 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11941 L[i] = 4;
11942 return (Array[1] != -2 || L[2] != 3)
11944 return 0;
11946 _ACEOF
11947 if ac_fn_c_try_run "$LINENO"; then :
11948 ac_cv_c_gcc_strength_bug="no"
11949 else
11950 ac_cv_c_gcc_strength_bug="yes"
11952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11953 conftest.$ac_objext conftest.beam conftest.$ac_ext
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11958 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11959 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11960 then
11961 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11965 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11966 if ${ac_cv_cflags__fno_builtin+:} false; then :
11967 $as_echo_n "(cached) " >&6
11968 else
11969 ac_wine_try_cflags_saved=$CFLAGS
11970 CFLAGS="$CFLAGS -fno-builtin"
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h. */
11973 int main(int argc, char **argv) { return 0; }
11974 _ACEOF
11975 if ac_fn_c_try_link "$LINENO"; then :
11976 ac_cv_cflags__fno_builtin=yes
11977 else
11978 ac_cv_cflags__fno_builtin=no
11980 rm -f core conftest.err conftest.$ac_objext \
11981 conftest$ac_exeext conftest.$ac_ext
11982 CFLAGS=$ac_wine_try_cflags_saved
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11985 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11986 if test $ac_cv_cflags__fno_builtin = yes; then :
11987 BUILTINFLAG="-fno-builtin"
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11991 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11992 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
11993 $as_echo_n "(cached) " >&6
11994 else
11995 ac_wine_try_cflags_saved=$CFLAGS
11996 CFLAGS="$CFLAGS -fno-strict-aliasing"
11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h. */
11999 int main(int argc, char **argv) { return 0; }
12000 _ACEOF
12001 if ac_fn_c_try_link "$LINENO"; then :
12002 ac_cv_cflags__fno_strict_aliasing=yes
12003 else
12004 ac_cv_cflags__fno_strict_aliasing=no
12006 rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008 CFLAGS=$ac_wine_try_cflags_saved
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12011 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12012 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12013 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12016 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12017 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 ac_wine_try_cflags_saved=$CFLAGS
12021 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h. */
12024 int main(int argc, char **argv) { return 0; }
12025 _ACEOF
12026 if ac_fn_c_try_link "$LINENO"; then :
12027 ac_cv_cflags__Wdeclaration_after_statement=yes
12028 else
12029 ac_cv_cflags__Wdeclaration_after_statement=no
12031 rm -f core conftest.err conftest.$ac_objext \
12032 conftest$ac_exeext conftest.$ac_ext
12033 CFLAGS=$ac_wine_try_cflags_saved
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12036 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12037 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12038 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12041 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12042 if ${ac_cv_cflags__Wempty_body+:} false; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 ac_wine_try_cflags_saved=$CFLAGS
12046 CFLAGS="$CFLAGS -Wempty-body"
12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h. */
12049 int main(int argc, char **argv) { return 0; }
12050 _ACEOF
12051 if ac_fn_c_try_link "$LINENO"; then :
12052 ac_cv_cflags__Wempty_body=yes
12053 else
12054 ac_cv_cflags__Wempty_body=no
12056 rm -f core conftest.err conftest.$ac_objext \
12057 conftest$ac_exeext conftest.$ac_ext
12058 CFLAGS=$ac_wine_try_cflags_saved
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12061 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12062 if test $ac_cv_cflags__Wempty_body = yes; then :
12063 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12066 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12067 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 ac_wine_try_cflags_saved=$CFLAGS
12071 CFLAGS="$CFLAGS -Wstrict-prototypes"
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 int main(int argc, char **argv) { return 0; }
12075 _ACEOF
12076 if ac_fn_c_try_link "$LINENO"; then :
12077 ac_cv_cflags__Wstrict_prototypes=yes
12078 else
12079 ac_cv_cflags__Wstrict_prototypes=no
12081 rm -f core conftest.err conftest.$ac_objext \
12082 conftest$ac_exeext conftest.$ac_ext
12083 CFLAGS=$ac_wine_try_cflags_saved
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12086 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12087 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12088 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12091 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12092 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12095 ac_wine_try_cflags_saved=$CFLAGS
12096 CFLAGS="$CFLAGS -Wtype-limits"
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 int main(int argc, char **argv) { return 0; }
12100 _ACEOF
12101 if ac_fn_c_try_link "$LINENO"; then :
12102 ac_cv_cflags__Wtype_limits=yes
12103 else
12104 ac_cv_cflags__Wtype_limits=no
12106 rm -f core conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12108 CFLAGS=$ac_wine_try_cflags_saved
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12111 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12112 if test $ac_cv_cflags__Wtype_limits = yes; then :
12113 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12116 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12117 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 ac_wine_try_cflags_saved=$CFLAGS
12121 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12124 int main(int argc, char **argv) { return 0; }
12125 _ACEOF
12126 if ac_fn_c_try_link "$LINENO"; then :
12127 ac_cv_cflags__Wunused_but_set_parameter=yes
12128 else
12129 ac_cv_cflags__Wunused_but_set_parameter=no
12131 rm -f core conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12133 CFLAGS=$ac_wine_try_cflags_saved
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12136 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12137 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12138 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12141 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12142 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 ac_wine_try_cflags_saved=$CFLAGS
12146 CFLAGS="$CFLAGS -Wwrite-strings"
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12149 int main(int argc, char **argv) { return 0; }
12150 _ACEOF
12151 if ac_fn_c_try_link "$LINENO"; then :
12152 ac_cv_cflags__Wwrite_strings=yes
12153 else
12154 ac_cv_cflags__Wwrite_strings=no
12156 rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12158 CFLAGS=$ac_wine_try_cflags_saved
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12161 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12162 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12163 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12166 case $host_cpu in
12167 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12168 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12169 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 ac_wine_try_cflags_saved=$CFLAGS
12173 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176 int main(int argc, char **argv) { return 0; }
12177 _ACEOF
12178 if ac_fn_c_try_link "$LINENO"; then :
12179 ac_cv_cflags__fno_omit_frame_pointer=yes
12180 else
12181 ac_cv_cflags__fno_omit_frame_pointer=no
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185 CFLAGS=$ac_wine_try_cflags_saved
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12188 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12189 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12190 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12191 fi ;;
12192 esac
12194 case $host in
12195 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12196 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12197 if ${ac_cv_cflags__Wno_format+:} false; then :
12198 $as_echo_n "(cached) " >&6
12199 else
12200 ac_wine_try_cflags_saved=$CFLAGS
12201 CFLAGS="$CFLAGS -Wno-format"
12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12204 int main(int argc, char **argv) { return 0; }
12205 _ACEOF
12206 if ac_fn_c_try_link "$LINENO"; then :
12207 ac_cv_cflags__Wno_format=yes
12208 else
12209 ac_cv_cflags__Wno_format=no
12211 rm -f core conftest.err conftest.$ac_objext \
12212 conftest$ac_exeext conftest.$ac_ext
12213 CFLAGS=$ac_wine_try_cflags_saved
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12216 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12217 if test $ac_cv_cflags__Wno_format = yes; then :
12218 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12219 fi ;;
12220 esac
12222 saved_CFLAGS="$CFLAGS"
12223 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12225 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12226 if ${ac_cv_c_string_h_warnings+:} false; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230 /* end confdefs.h. */
12231 #include <string.h>
12233 main ()
12237 return 0;
12239 _ACEOF
12240 if ac_fn_c_try_compile "$LINENO"; then :
12241 ac_cv_c_string_h_warnings=no
12242 else
12243 ac_cv_c_string_h_warnings=yes
12245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12248 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12249 CFLAGS="$saved_CFLAGS"
12250 if test "$ac_cv_c_string_h_warnings" = "no"
12251 then
12252 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12255 saved_CFLAGS="$CFLAGS"
12256 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12258 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12259 if ${ac_cv_c_logicalop_noisy+:} false; then :
12260 $as_echo_n "(cached) " >&6
12261 else
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12264 #include <string.h>
12266 main ()
12268 char*f(const char *h,char n) {return strchr(h,n);}
12270 return 0;
12272 _ACEOF
12273 if ac_fn_c_try_compile "$LINENO"; then :
12274 ac_cv_c_logicalop_noisy=no
12275 else
12276 ac_cv_c_logicalop_noisy=yes
12278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12281 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12282 CFLAGS="$saved_CFLAGS"
12283 if test "$ac_cv_c_logicalop_noisy" = "no"
12284 then
12285 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12288 if test "x$enable_maintainer_mode" = "xyes"
12289 then
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12291 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12292 if ${ac_cv_cflags__Werror+:} false; then :
12293 $as_echo_n "(cached) " >&6
12294 else
12295 ac_wine_try_cflags_saved=$CFLAGS
12296 CFLAGS="$CFLAGS -Werror"
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12299 int main(int argc, char **argv) { return 0; }
12300 _ACEOF
12301 if ac_fn_c_try_link "$LINENO"; then :
12302 ac_cv_cflags__Werror=yes
12303 else
12304 ac_cv_cflags__Werror=no
12306 rm -f core conftest.err conftest.$ac_objext \
12307 conftest$ac_exeext conftest.$ac_ext
12308 CFLAGS=$ac_wine_try_cflags_saved
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12311 $as_echo "$ac_cv_cflags__Werror" >&6; }
12312 if test $ac_cv_cflags__Werror = yes; then :
12313 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12317 saved_CFLAGS="$CFLAGS"
12318 CFLAGS="$CFLAGS -Werror"
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12320 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12321 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12322 $as_echo_n "(cached) " >&6
12323 else
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12326 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12328 main ()
12332 return 0;
12334 _ACEOF
12335 if ac_fn_c_try_compile "$LINENO"; then :
12336 ac_cv_have_ms_hook_prologue="yes"
12337 else
12338 ac_cv_have_ms_hook_prologue="no"
12340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12343 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12344 CFLAGS="$saved_CFLAGS"
12345 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12346 then
12348 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12350 else
12351 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12358 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12359 if ${ac_cv_c_fortify_enabled+:} false; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12364 #include <string.h>
12366 main ()
12368 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12369 #error Fortify enabled
12370 #endif
12372 return 0;
12374 _ACEOF
12375 if ac_fn_c_try_compile "$LINENO"; then :
12376 ac_cv_c_fortify_enabled=no
12377 else
12378 ac_cv_c_fortify_enabled=yes
12380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12383 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12384 if test "$ac_cv_c_fortify_enabled" = yes
12385 then
12386 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12391 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12392 if ${ac_cv_c_extern_prefix+:} false; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12397 extern int ac_test;
12399 main ()
12401 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12403 return 0;
12405 _ACEOF
12406 if ac_fn_c_try_link "$LINENO"; then :
12407 ac_cv_c_extern_prefix="yes"
12408 else
12409 ac_cv_c_extern_prefix="no"
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12415 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12417 case $host_cpu in
12418 *i[3456789]86*)
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12420 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12421 if ${ac_cv_c_stdcall_suffix+:} false; then :
12422 $as_echo_n "(cached) " >&6
12423 else
12424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h. */
12426 #ifndef _MSC_VER
12427 #define __stdcall __attribute__((__stdcall__))
12428 #endif
12429 int __stdcall ac_test(int i) { return i; }
12431 main ()
12433 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12435 return 0;
12437 _ACEOF
12438 if ac_fn_c_try_link "$LINENO"; then :
12439 ac_cv_c_stdcall_suffix="yes"
12440 else
12441 ac_cv_c_stdcall_suffix="no"
12443 rm -f core conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12447 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12448 *) ac_cv_c_stdcall_suffix="no" ;;
12449 esac
12452 if test "$ac_cv_c_extern_prefix" = "yes"
12453 then
12454 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12456 asm_name_prefix="_"
12457 else
12458 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12460 asm_name_prefix=""
12464 if test "$ac_cv_c_stdcall_suffix" = "yes"
12465 then
12466 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12468 else
12469 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12475 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12476 if ${ac_cv_asm_func_def+:} false; then :
12477 $as_echo_n "(cached) " >&6
12478 else
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12483 main ()
12485 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\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=".def"
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,@function\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 @function"
12506 else
12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h. */
12511 main ()
12513 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12515 return 0;
12517 _ACEOF
12518 if ac_fn_c_try_link "$LINENO"; then :
12519 ac_cv_asm_func_def=".type 2"
12520 else
12521 ac_cv_asm_func_def="unknown"
12523 rm -f core conftest.err conftest.$ac_objext \
12524 conftest$ac_exeext conftest.$ac_ext
12526 rm -f core conftest.err conftest.$ac_objext \
12527 conftest$ac_exeext conftest.$ac_ext
12529 rm -f core conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12533 $as_echo "$ac_cv_asm_func_def" >&6; }
12536 case "$ac_cv_asm_func_def" in
12537 ".def")
12538 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12540 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12541 ".type @function")
12542 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12544 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12545 ".type 2")
12546 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12548 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12550 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12552 asm_func_header="" ;;
12553 esac
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12556 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12557 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12558 $as_echo_n "(cached) " >&6
12559 else
12560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561 /* end confdefs.h. */
12562 asm(".text\n\t.long 0");
12564 main ()
12568 return 0;
12570 _ACEOF
12571 if ac_fn_c_try_compile "$LINENO"; then :
12572 ac_cv_c_asm_outside_funcs="yes"
12573 else
12574 ac_cv_c_asm_outside_funcs="no"
12576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12579 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12582 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12583 if ${ac_cv_c_dot_previous+:} false; then :
12584 $as_echo_n "(cached) " >&6
12585 else
12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h. */
12590 main ()
12592 asm(".text\nac_test:\t.long 0\n\t.previous");
12594 return 0;
12596 _ACEOF
12597 if ac_fn_c_try_link "$LINENO"; then :
12598 ac_cv_c_dot_previous="yes"
12599 else
12600 ac_cv_c_dot_previous="no"
12602 rm -f core conftest.err conftest.$ac_objext \
12603 conftest$ac_exeext conftest.$ac_ext
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12606 $as_echo "$ac_cv_c_dot_previous" >&6; }
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12609 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12610 if ${ac_cv_c_cfi_support+:} false; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h. */
12615 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12617 main ()
12621 return 0;
12623 _ACEOF
12624 if ac_fn_c_try_compile "$LINENO"; then :
12625 ac_cv_c_cfi_support="yes"
12626 else
12627 ac_cv_c_cfi_support="no"
12629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12632 $as_echo "$ac_cv_c_cfi_support" >&6; }
12634 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12635 asm_func_trailer=""
12636 if test "$ac_cv_c_dot_previous" = "yes"
12637 then
12638 asm_func_trailer="\\n\\t.previous"
12640 if test "$ac_cv_c_cfi_support" = "yes"
12641 then
12642 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12643 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12645 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12647 UNWINDFLAGS=-fasynchronous-unwind-tables
12649 else
12650 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12654 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12657 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12658 then
12659 cat >>confdefs.h <<_ACEOF
12660 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12661 _ACEOF
12663 else
12664 cat >>confdefs.h <<_ACEOF
12665 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12666 _ACEOF
12670 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12673 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12677 LDPATH=""
12679 case $build_os in
12680 cygwin*|mingw32*)
12681 TOOLSEXT=".exe"
12683 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12685 darwin*|macosx*)
12688 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12690 esac
12692 case $host_os in
12693 mingw32*)
12694 CRTLIBS="-lmsvcrt"
12696 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12699 esac
12701 MAIN_BINARY="wine"
12703 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12705 case $host_os in
12706 linux*)
12707 case $host_cpu in
12708 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12710 x86_64*) EXTRA_BINARIES="wine64-preloader"
12712 esac
12714 esac
12717 ac_save_CFLAGS="$CFLAGS"
12718 CFLAGS="$CFLAGS $BUILTINFLAG"
12719 for ac_func in \
12720 _finite \
12721 _isnan \
12722 _pclose \
12723 _popen \
12724 _snprintf \
12725 _spawnvp \
12726 _strdup \
12727 _stricmp \
12728 _strnicmp \
12729 _strtoi64 \
12730 _strtoui64 \
12731 _vsnprintf \
12732 asctime_r \
12733 chsize \
12734 dlopen \
12735 epoll_create \
12736 ffs \
12737 finite \
12738 fnmatch \
12739 fork \
12740 fpclass \
12741 fstatfs \
12742 fstatvfs \
12743 ftruncate \
12744 futimes \
12745 futimesat \
12746 getattrlist \
12747 getdirentries \
12748 getopt_long \
12749 getpagesize \
12750 getpwuid \
12751 gettimeofday \
12752 getuid \
12753 kqueue \
12754 lstat \
12755 memmove \
12756 mmap \
12757 pclose \
12758 pipe2 \
12759 poll \
12760 popen \
12761 port_create \
12762 prctl \
12763 pread \
12764 pwrite \
12765 readdir \
12766 readlink \
12767 sched_yield \
12768 select \
12769 setproctitle \
12770 setrlimit \
12771 settimeofday \
12772 sigaltstack \
12773 sigprocmask \
12774 snprintf \
12775 spawnvp \
12776 statfs \
12777 statvfs \
12778 strcasecmp \
12779 strdup \
12780 strerror \
12781 strncasecmp \
12782 strtold \
12783 strtoll \
12784 strtoull \
12785 symlink \
12786 tcgetattr \
12787 thr_kill2 \
12788 timegm \
12789 usleep \
12790 vsnprintf \
12791 wait4 \
12792 waitpid \
12794 do :
12795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12796 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12797 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12798 cat >>confdefs.h <<_ACEOF
12799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12800 _ACEOF
12803 done
12805 CFLAGS="$ac_save_CFLAGS"
12807 if test "$ac_cv_func_dlopen" = no
12808 then
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12810 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12811 if ${ac_cv_lib_dl_dlopen+:} false; then :
12812 $as_echo_n "(cached) " >&6
12813 else
12814 ac_check_lib_save_LIBS=$LIBS
12815 LIBS="-ldl $LIBS"
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12819 /* Override any GCC internal prototype to avoid an error.
12820 Use char because int might match the return type of a GCC
12821 builtin and then its argument prototype would still apply. */
12822 #ifdef __cplusplus
12823 extern "C"
12824 #endif
12825 char dlopen ();
12827 main ()
12829 return dlopen ();
12831 return 0;
12833 _ACEOF
12834 if ac_fn_c_try_link "$LINENO"; then :
12835 ac_cv_lib_dl_dlopen=yes
12836 else
12837 ac_cv_lib_dl_dlopen=no
12839 rm -f core conftest.err conftest.$ac_objext \
12840 conftest$ac_exeext conftest.$ac_ext
12841 LIBS=$ac_check_lib_save_LIBS
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12844 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12845 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12846 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12847 LIBDL="-ldl"
12852 ac_wine_check_funcs_save_LIBS="$LIBS"
12853 LIBS="$LIBS $LIBDL"
12854 for ac_func in dladdr
12855 do :
12856 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12857 if test "x$ac_cv_func_dladdr" = xyes; then :
12858 cat >>confdefs.h <<_ACEOF
12859 #define HAVE_DLADDR 1
12860 _ACEOF
12863 done
12865 LIBS="$ac_wine_check_funcs_save_LIBS"
12867 if test "$ac_cv_func_poll" = no
12868 then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12870 $as_echo_n "checking for poll in -lpoll... " >&6; }
12871 if ${ac_cv_lib_poll_poll+:} false; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 ac_check_lib_save_LIBS=$LIBS
12875 LIBS="-lpoll $LIBS"
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12882 #ifdef __cplusplus
12883 extern "C"
12884 #endif
12885 char poll ();
12887 main ()
12889 return poll ();
12891 return 0;
12893 _ACEOF
12894 if ac_fn_c_try_link "$LINENO"; then :
12895 ac_cv_lib_poll_poll=yes
12896 else
12897 ac_cv_lib_poll_poll=no
12899 rm -f core conftest.err conftest.$ac_objext \
12900 conftest$ac_exeext conftest.$ac_ext
12901 LIBS=$ac_check_lib_save_LIBS
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12904 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12905 if test "x$ac_cv_lib_poll_poll" = xyes; then :
12906 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12907 LIBPOLL="-lpoll"
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12914 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12915 if ${ac_cv_search_gethostbyname+:} false; then :
12916 $as_echo_n "(cached) " >&6
12917 else
12918 ac_func_search_save_LIBS=$LIBS
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12922 /* Override any GCC internal prototype to avoid an error.
12923 Use char because int might match the return type of a GCC
12924 builtin and then its argument prototype would still apply. */
12925 #ifdef __cplusplus
12926 extern "C"
12927 #endif
12928 char gethostbyname ();
12930 main ()
12932 return gethostbyname ();
12934 return 0;
12936 _ACEOF
12937 for ac_lib in '' nsl; do
12938 if test -z "$ac_lib"; then
12939 ac_res="none required"
12940 else
12941 ac_res=-l$ac_lib
12942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12944 if ac_fn_c_try_link "$LINENO"; then :
12945 ac_cv_search_gethostbyname=$ac_res
12947 rm -f core conftest.err conftest.$ac_objext \
12948 conftest$ac_exeext
12949 if ${ac_cv_search_gethostbyname+:} false; then :
12950 break
12952 done
12953 if ${ac_cv_search_gethostbyname+:} false; then :
12955 else
12956 ac_cv_search_gethostbyname=no
12958 rm conftest.$ac_ext
12959 LIBS=$ac_func_search_save_LIBS
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12962 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12963 ac_res=$ac_cv_search_gethostbyname
12964 if test "$ac_res" != no; then :
12965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12971 $as_echo_n "checking for library containing connect... " >&6; }
12972 if ${ac_cv_search_connect+:} false; then :
12973 $as_echo_n "(cached) " >&6
12974 else
12975 ac_func_search_save_LIBS=$LIBS
12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12979 /* Override any GCC internal prototype to avoid an error.
12980 Use char because int might match the return type of a GCC
12981 builtin and then its argument prototype would still apply. */
12982 #ifdef __cplusplus
12983 extern "C"
12984 #endif
12985 char connect ();
12987 main ()
12989 return connect ();
12991 return 0;
12993 _ACEOF
12994 for ac_lib in '' socket; do
12995 if test -z "$ac_lib"; then
12996 ac_res="none required"
12997 else
12998 ac_res=-l$ac_lib
12999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13001 if ac_fn_c_try_link "$LINENO"; then :
13002 ac_cv_search_connect=$ac_res
13004 rm -f core conftest.err conftest.$ac_objext \
13005 conftest$ac_exeext
13006 if ${ac_cv_search_connect+:} false; then :
13007 break
13009 done
13010 if ${ac_cv_search_connect+:} false; then :
13012 else
13013 ac_cv_search_connect=no
13015 rm conftest.$ac_ext
13016 LIBS=$ac_func_search_save_LIBS
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13019 $as_echo "$ac_cv_search_connect" >&6; }
13020 ac_res=$ac_cv_search_connect
13021 if test "$ac_res" != no; then :
13022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13028 $as_echo_n "checking for library containing inet_aton... " >&6; }
13029 if ${ac_cv_search_inet_aton+:} false; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13032 ac_func_search_save_LIBS=$LIBS
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13036 /* Override any GCC internal prototype to avoid an error.
13037 Use char because int might match the return type of a GCC
13038 builtin and then its argument prototype would still apply. */
13039 #ifdef __cplusplus
13040 extern "C"
13041 #endif
13042 char inet_aton ();
13044 main ()
13046 return inet_aton ();
13048 return 0;
13050 _ACEOF
13051 for ac_lib in '' resolv; do
13052 if test -z "$ac_lib"; then
13053 ac_res="none required"
13054 else
13055 ac_res=-l$ac_lib
13056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13058 if ac_fn_c_try_link "$LINENO"; then :
13059 ac_cv_search_inet_aton=$ac_res
13061 rm -f core conftest.err conftest.$ac_objext \
13062 conftest$ac_exeext
13063 if ${ac_cv_search_inet_aton+:} false; then :
13064 break
13066 done
13067 if ${ac_cv_search_inet_aton+:} false; then :
13069 else
13070 ac_cv_search_inet_aton=no
13072 rm conftest.$ac_ext
13073 LIBS=$ac_func_search_save_LIBS
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13076 $as_echo "$ac_cv_search_inet_aton" >&6; }
13077 ac_res=$ac_cv_search_inet_aton
13078 if test "$ac_res" != no; then :
13079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13084 for ac_func in \
13085 getaddrinfo \
13086 getnameinfo \
13087 getnetbyname \
13088 getprotobyname \
13089 getprotobynumber \
13090 getservbyport \
13091 inet_network \
13092 inet_ntop \
13093 inet_pton \
13094 sendmsg \
13095 socketpair \
13097 do :
13098 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13099 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13100 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13101 cat >>confdefs.h <<_ACEOF
13102 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13103 _ACEOF
13106 done
13109 LDAPLIBS=""
13111 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13112 then
13113 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13115 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13117 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13118 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13119 $as_echo_n "(cached) " >&6
13120 else
13121 ac_check_lib_save_LIBS=$LIBS
13122 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13126 /* Override any GCC internal prototype to avoid an error.
13127 Use char because int might match the return type of a GCC
13128 builtin and then its argument prototype would still apply. */
13129 #ifdef __cplusplus
13130 extern "C"
13131 #endif
13132 char ldap_initialize ();
13134 main ()
13136 return ldap_initialize ();
13138 return 0;
13140 _ACEOF
13141 if ac_fn_c_try_link "$LINENO"; then :
13142 ac_cv_lib_ldap_r_ldap_initialize=yes
13143 else
13144 ac_cv_lib_ldap_r_ldap_initialize=no
13146 rm -f core conftest.err conftest.$ac_objext \
13147 conftest$ac_exeext conftest.$ac_ext
13148 LIBS=$ac_check_lib_save_LIBS
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13151 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13152 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13154 $as_echo_n "checking for ber_init in -llber... " >&6; }
13155 if ${ac_cv_lib_lber_ber_init+:} false; then :
13156 $as_echo_n "(cached) " >&6
13157 else
13158 ac_check_lib_save_LIBS=$LIBS
13159 LIBS="-llber $LIBPTHREAD $LIBS"
13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13163 /* Override any GCC internal prototype to avoid an error.
13164 Use char because int might match the return type of a GCC
13165 builtin and then its argument prototype would still apply. */
13166 #ifdef __cplusplus
13167 extern "C"
13168 #endif
13169 char ber_init ();
13171 main ()
13173 return ber_init ();
13175 return 0;
13177 _ACEOF
13178 if ac_fn_c_try_link "$LINENO"; then :
13179 ac_cv_lib_lber_ber_init=yes
13180 else
13181 ac_cv_lib_lber_ber_init=no
13183 rm -f core conftest.err conftest.$ac_objext \
13184 conftest$ac_exeext conftest.$ac_ext
13185 LIBS=$ac_check_lib_save_LIBS
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13188 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13189 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13191 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13193 LDAPLIBS="-lldap_r -llber"
13200 ac_wine_check_funcs_save_LIBS="$LIBS"
13201 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13202 for ac_func in \
13203 ldap_count_references \
13204 ldap_first_reference \
13205 ldap_next_reference \
13206 ldap_parse_reference \
13207 ldap_parse_sort_control \
13208 ldap_parse_sortresponse_control \
13209 ldap_parse_vlv_control \
13210 ldap_parse_vlvresponse_control
13211 do :
13212 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13213 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13214 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13215 cat >>confdefs.h <<_ACEOF
13216 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13217 _ACEOF
13220 done
13222 LIBS="$ac_wine_check_funcs_save_LIBS"
13224 if test "x$LDAPLIBS" = "x"; then :
13225 case "x$with_ldap" in
13226 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13227 xno) ;;
13228 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13229 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13230 esac
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13234 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13235 if ${wine_cv_one_arg_mkdir+:} false; then :
13236 $as_echo_n "(cached) " >&6
13237 else
13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h. */
13240 #include <sys/stat.h>
13242 main ()
13244 mkdir("foo");
13246 return 0;
13248 _ACEOF
13249 if ac_fn_c_try_compile "$LINENO"; then :
13250 wine_cv_one_arg_mkdir=yes
13251 else
13252 wine_cv_one_arg_mkdir=no
13254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13257 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13258 if test "$wine_cv_one_arg_mkdir" = "yes"
13259 then
13261 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13266 $as_echo_n "checking for sched_setaffinity... " >&6; }
13267 if ${wine_cv_have_sched_setaffinity+:} false; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13272 #define _GNU_SOURCE
13273 #include <sched.h>
13275 main ()
13277 sched_setaffinity(0, 0, 0);
13279 return 0;
13281 _ACEOF
13282 if ac_fn_c_try_link "$LINENO"; then :
13283 wine_cv_have_sched_setaffinity=yes
13284 else
13285 wine_cv_have_sched_setaffinity=no
13287 rm -f core conftest.err conftest.$ac_objext \
13288 conftest$ac_exeext conftest.$ac_ext
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13291 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13292 if test "$wine_cv_have_sched_setaffinity" = "yes"
13293 then
13295 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13301 $as_echo_n "checking for inline... " >&6; }
13302 if ${ac_cv_c_inline+:} false; then :
13303 $as_echo_n "(cached) " >&6
13304 else
13305 ac_cv_c_inline=no
13306 for ac_kw in inline __inline__ __inline; do
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309 #ifndef __cplusplus
13310 typedef int foo_t;
13311 static $ac_kw foo_t static_foo () {return 0; }
13312 $ac_kw foo_t foo () {return 0; }
13313 #endif
13315 _ACEOF
13316 if ac_fn_c_try_compile "$LINENO"; then :
13317 ac_cv_c_inline=$ac_kw
13319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320 test "$ac_cv_c_inline" != no && break
13321 done
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13325 $as_echo "$ac_cv_c_inline" >&6; }
13327 case $ac_cv_c_inline in
13328 inline | yes) ;;
13330 case $ac_cv_c_inline in
13331 no) ac_val=;;
13332 *) ac_val=$ac_cv_c_inline;;
13333 esac
13334 cat >>confdefs.h <<_ACEOF
13335 #ifndef __cplusplus
13336 #define inline $ac_val
13337 #endif
13338 _ACEOF
13340 esac
13342 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13343 if test "x$ac_cv_type_mode_t" = xyes; then :
13345 cat >>confdefs.h <<_ACEOF
13346 #define HAVE_MODE_T 1
13347 _ACEOF
13351 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13352 if test "x$ac_cv_type_off_t" = xyes; then :
13354 cat >>confdefs.h <<_ACEOF
13355 #define HAVE_OFF_T 1
13356 _ACEOF
13360 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13361 if test "x$ac_cv_type_pid_t" = xyes; then :
13363 cat >>confdefs.h <<_ACEOF
13364 #define HAVE_PID_T 1
13365 _ACEOF
13369 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13370 if test "x$ac_cv_type_size_t" = xyes; then :
13372 cat >>confdefs.h <<_ACEOF
13373 #define HAVE_SIZE_T 1
13374 _ACEOF
13378 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13379 if test "x$ac_cv_type_ssize_t" = xyes; then :
13381 cat >>confdefs.h <<_ACEOF
13382 #define HAVE_SSIZE_T 1
13383 _ACEOF
13387 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13388 if test "x$ac_cv_type_long_long" = xyes; then :
13390 cat >>confdefs.h <<_ACEOF
13391 #define HAVE_LONG_LONG 1
13392 _ACEOF
13396 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13397 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13399 cat >>confdefs.h <<_ACEOF
13400 #define HAVE_FSBLKCNT_T 1
13401 _ACEOF
13405 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13406 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13408 cat >>confdefs.h <<_ACEOF
13409 #define HAVE_FSFILCNT_T 1
13410 _ACEOF
13415 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13416 #include <signal.h>
13418 if test "x$ac_cv_type_sigset_t" = xyes; then :
13420 cat >>confdefs.h <<_ACEOF
13421 #define HAVE_SIGSET_T 1
13422 _ACEOF
13427 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13429 if test "x$ac_cv_type_request_sense" = xyes; then :
13431 cat >>confdefs.h <<_ACEOF
13432 #define HAVE_REQUEST_SENSE 1
13433 _ACEOF
13439 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13440 #ifdef HAVE_SYS_SOCKET_H
13441 #include <sys/socket.h>
13442 #endif
13443 #ifdef HAVE_SYS_SOCKETVAR_H
13444 #include <sys/socketvar.h>
13445 #endif
13446 #ifdef HAVE_NET_ROUTE_H
13447 #include <net/route.h>
13448 #endif
13449 #ifdef HAVE_NETINET_IN_H
13450 #include <netinet/in.h>
13451 #endif
13452 #ifdef HAVE_NETINET_IN_SYSTM_H
13453 #include <netinet/in_systm.h>
13454 #endif
13455 #ifdef HAVE_NETINET_IP_H
13456 #include <netinet/ip.h>
13457 #endif
13458 #ifdef HAVE_NETINET_IN_PCB_H
13459 #include <netinet/in_pcb.h>
13460 #endif
13462 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13464 cat >>confdefs.h <<_ACEOF
13465 #define HAVE_STRUCT_XINPGEN 1
13466 _ACEOF
13472 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13473 #include <linux/input.h>
13474 #endif
13476 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13478 cat >>confdefs.h <<_ACEOF
13479 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13480 _ACEOF
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13487 $as_echo_n "checking for sigaddset... " >&6; }
13488 if ${wine_cv_have_sigaddset+:} false; then :
13489 $as_echo_n "(cached) " >&6
13490 else
13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13492 /* end confdefs.h. */
13493 #include <signal.h>
13495 main ()
13497 sigset_t set; sigaddset(&set,SIGTERM);
13499 return 0;
13501 _ACEOF
13502 if ac_fn_c_try_link "$LINENO"; then :
13503 wine_cv_have_sigaddset=yes
13504 else
13505 wine_cv_have_sigaddset=no
13507 rm -f core conftest.err conftest.$ac_objext \
13508 conftest$ac_exeext conftest.$ac_ext
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13511 $as_echo "$wine_cv_have_sigaddset" >&6; }
13512 if test "$wine_cv_have_sigaddset" = "yes"
13513 then
13515 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13521 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13522 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13523 $as_echo_n "(cached) " >&6
13524 else
13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13527 #include <netdb.h>
13529 main ()
13532 char *name=0;
13533 struct hostent he;
13534 struct hostent *result;
13535 char *buf=0;
13536 int bufsize=0;
13537 int errnr;
13538 char *addr=0;
13539 int addrlen=0;
13540 int addrtype=0;
13541 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13542 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13545 return 0;
13547 _ACEOF
13548 if ac_fn_c_try_link "$LINENO"; then :
13549 wine_cv_linux_gethostbyname_r_6=yes
13550 else
13551 wine_cv_linux_gethostbyname_r_6=no
13554 rm -f core conftest.err conftest.$ac_objext \
13555 conftest$ac_exeext conftest.$ac_ext
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13559 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13560 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13561 then
13563 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13567 if test "$ac_cv_header_linux_joystick_h" = "yes"
13568 then
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13570 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13571 if ${wine_cv_linux_joystick_22_api+:} false; then :
13572 $as_echo_n "(cached) " >&6
13573 else
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13577 #include <sys/ioctl.h>
13578 #include <sys/types.h>
13579 #include <linux/joystick.h>
13581 struct js_event blub;
13582 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13583 #error "no 2.2 header"
13584 #endif
13587 main ()
13589 /*empty*/
13591 return 0;
13593 _ACEOF
13594 if ac_fn_c_try_compile "$LINENO"; then :
13595 wine_cv_linux_joystick_22_api=yes
13596 else
13597 wine_cv_linux_joystick_22_api=no
13599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13603 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13604 if test "$wine_cv_linux_joystick_22_api" = "yes"
13605 then
13607 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13613 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13614 #ifdef HAVE_SYS_PARAM_H
13615 # include <sys/param.h>
13616 #endif
13617 #ifdef HAVE_SYS_MOUNT_H
13618 # include <sys/mount.h>
13619 #endif
13620 #ifdef HAVE_SYS_VFS_H
13621 # include <sys/vfs.h>
13622 #endif
13623 #ifdef HAVE_SYS_STATFS_H
13624 # include <sys/statfs.h>
13625 #endif
13627 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13629 cat >>confdefs.h <<_ACEOF
13630 #define HAVE_STRUCT_STATFS_F_BFREE 1
13631 _ACEOF
13635 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13636 #ifdef HAVE_SYS_PARAM_H
13637 # include <sys/param.h>
13638 #endif
13639 #ifdef HAVE_SYS_MOUNT_H
13640 # include <sys/mount.h>
13641 #endif
13642 #ifdef HAVE_SYS_VFS_H
13643 # include <sys/vfs.h>
13644 #endif
13645 #ifdef HAVE_SYS_STATFS_H
13646 # include <sys/statfs.h>
13647 #endif
13649 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13651 cat >>confdefs.h <<_ACEOF
13652 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13653 _ACEOF
13657 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13658 #ifdef HAVE_SYS_PARAM_H
13659 # include <sys/param.h>
13660 #endif
13661 #ifdef HAVE_SYS_MOUNT_H
13662 # include <sys/mount.h>
13663 #endif
13664 #ifdef HAVE_SYS_VFS_H
13665 # include <sys/vfs.h>
13666 #endif
13667 #ifdef HAVE_SYS_STATFS_H
13668 # include <sys/statfs.h>
13669 #endif
13671 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13673 cat >>confdefs.h <<_ACEOF
13674 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13675 _ACEOF
13679 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13680 #ifdef HAVE_SYS_PARAM_H
13681 # include <sys/param.h>
13682 #endif
13683 #ifdef HAVE_SYS_MOUNT_H
13684 # include <sys/mount.h>
13685 #endif
13686 #ifdef HAVE_SYS_VFS_H
13687 # include <sys/vfs.h>
13688 #endif
13689 #ifdef HAVE_SYS_STATFS_H
13690 # include <sys/statfs.h>
13691 #endif
13693 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13695 cat >>confdefs.h <<_ACEOF
13696 #define HAVE_STRUCT_STATFS_F_FFREE 1
13697 _ACEOF
13701 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13702 #ifdef HAVE_SYS_PARAM_H
13703 # include <sys/param.h>
13704 #endif
13705 #ifdef HAVE_SYS_MOUNT_H
13706 # include <sys/mount.h>
13707 #endif
13708 #ifdef HAVE_SYS_VFS_H
13709 # include <sys/vfs.h>
13710 #endif
13711 #ifdef HAVE_SYS_STATFS_H
13712 # include <sys/statfs.h>
13713 #endif
13715 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13717 cat >>confdefs.h <<_ACEOF
13718 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13719 _ACEOF
13723 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13724 #ifdef HAVE_SYS_PARAM_H
13725 # include <sys/param.h>
13726 #endif
13727 #ifdef HAVE_SYS_MOUNT_H
13728 # include <sys/mount.h>
13729 #endif
13730 #ifdef HAVE_SYS_VFS_H
13731 # include <sys/vfs.h>
13732 #endif
13733 #ifdef HAVE_SYS_STATFS_H
13734 # include <sys/statfs.h>
13735 #endif
13737 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13739 cat >>confdefs.h <<_ACEOF
13740 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13741 _ACEOF
13747 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13748 #include <sys/statvfs.h>
13749 #endif
13751 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13753 cat >>confdefs.h <<_ACEOF
13754 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13755 _ACEOF
13761 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13762 #ifdef HAVE_SYS_SOCKET_H
13763 # include <sys/socket.h>
13764 #endif
13765 #ifdef HAVE_SYS_UN_H
13766 # include <sys/un.h>
13767 #endif
13769 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13771 cat >>confdefs.h <<_ACEOF
13772 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13773 _ACEOF
13777 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13778 #ifdef HAVE_SYS_SOCKET_H
13779 # include <sys/socket.h>
13780 #endif
13781 #ifdef HAVE_SYS_UN_H
13782 # include <sys/un.h>
13783 #endif
13785 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13787 cat >>confdefs.h <<_ACEOF
13788 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13789 _ACEOF
13793 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13794 #ifdef HAVE_SYS_SOCKET_H
13795 # include <sys/socket.h>
13796 #endif
13797 #ifdef HAVE_SYS_UN_H
13798 # include <sys/un.h>
13799 #endif
13801 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13803 cat >>confdefs.h <<_ACEOF
13804 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13805 _ACEOF
13811 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13812 #ifdef HAVE_SCSI_SG_H
13813 #include <scsi/sg.h>
13814 #endif
13816 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13818 cat >>confdefs.h <<_ACEOF
13819 #define HAVE_SCSIREQ_T_CMD 1
13820 _ACEOF
13824 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>
13825 #ifdef HAVE_SCSI_SG_H
13826 #include <scsi/sg.h>
13827 #endif
13829 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13831 cat >>confdefs.h <<_ACEOF
13832 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13833 _ACEOF
13839 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13841 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
13843 cat >>confdefs.h <<_ACEOF
13844 #define HAVE_SIGINFO_T_SI_FD 1
13845 _ACEOF
13851 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13852 #ifdef HAVE_SYS_MTIO_H
13853 #include <sys/mtio.h>
13854 #endif
13856 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
13858 cat >>confdefs.h <<_ACEOF
13859 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13860 _ACEOF
13864 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13865 #ifdef HAVE_SYS_MTIO_H
13866 #include <sys/mtio.h>
13867 #endif
13869 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
13871 cat >>confdefs.h <<_ACEOF
13872 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13873 _ACEOF
13877 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13878 #ifdef HAVE_SYS_MTIO_H
13879 #include <sys/mtio.h>
13880 #endif
13882 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
13884 cat >>confdefs.h <<_ACEOF
13885 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13886 _ACEOF
13892 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13893 #include <getopt.h>
13894 #endif
13896 if test "x$ac_cv_member_struct_option_name" = xyes; then :
13898 cat >>confdefs.h <<_ACEOF
13899 #define HAVE_STRUCT_OPTION_NAME 1
13900 _ACEOF
13906 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13907 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13909 cat >>confdefs.h <<_ACEOF
13910 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13911 _ACEOF
13915 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13916 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13918 cat >>confdefs.h <<_ACEOF
13919 #define HAVE_STRUCT_STAT_ST_MTIM 1
13920 _ACEOF
13924 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13925 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
13927 cat >>confdefs.h <<_ACEOF
13928 #define HAVE_STRUCT_STAT_ST_CTIM 1
13929 _ACEOF
13933 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13934 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
13936 cat >>confdefs.h <<_ACEOF
13937 #define HAVE_STRUCT_STAT_ST_ATIM 1
13938 _ACEOF
13944 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
13945 #include <sys/types.h>
13946 #endif
13947 #ifdef HAVE_NETINET_IN_H
13948 #include <netinet/in.h>
13949 #endif
13951 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13953 cat >>confdefs.h <<_ACEOF
13954 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13955 _ACEOF
13961 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13962 #include <sys/types.h>
13963 #endif
13964 #ifdef HAVE_NETINET_IN_H
13965 # include <netinet/in.h>
13966 #endif
13967 #ifdef HAVE_ARPA_NAMESER_H
13968 # include <arpa/nameser.h>
13969 #endif
13971 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
13973 cat >>confdefs.h <<_ACEOF
13974 #define HAVE_NS_MSG__MSG_PTR 1
13975 _ACEOF
13981 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13982 #include <sys/types.h>
13983 #endif
13984 #ifdef HAVE_ALIAS_H
13985 #include <alias.h>
13986 #endif
13987 #ifdef HAVE_SYS_SOCKET_H
13988 #include <sys/socket.h>
13989 #endif
13990 #ifdef HAVE_SYS_SOCKETVAR_H
13991 #include <sys/socketvar.h>
13992 #endif
13993 #ifdef HAVE_SYS_TIMEOUT_H
13994 #include <sys/timeout.h>
13995 #endif
13996 #ifdef HAVE_NETINET_IN_H
13997 #include <netinet/in.h>
13998 #endif
13999 #ifdef HAVE_NETINET_IN_SYSTM_H
14000 #include <netinet/in_systm.h>
14001 #endif
14002 #ifdef HAVE_NETINET_IP_H
14003 #include <netinet/ip.h>
14004 #endif
14005 #ifdef HAVE_NETINET_IP_VAR_H
14006 #include <netinet/ip_var.h>
14007 #endif
14008 #ifdef HAVE_NETINET_IP_ICMP_H
14009 #include <netinet/ip_icmp.h>
14010 #endif
14011 #ifdef HAVE_NETINET_ICMP_VAR
14012 #include <netinet/icmp_var.h>
14013 #endif
14015 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14017 cat >>confdefs.h <<_ACEOF
14018 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14019 _ACEOF
14025 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14026 #include <sys/types.h>
14027 #endif
14028 #ifdef HAVE_NET_IF_H
14029 # include <net/if.h>
14030 #endif
14032 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14034 cat >>confdefs.h <<_ACEOF
14035 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14036 _ACEOF
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14043 $as_echo_n "checking for timezone variable... " >&6; }
14044 if ${ac_cv_have_timezone+:} false; then :
14045 $as_echo_n "(cached) " >&6
14046 else
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h. */
14049 #include <time.h>
14051 main ()
14053 timezone = 1
14055 return 0;
14057 _ACEOF
14058 if ac_fn_c_try_link "$LINENO"; then :
14059 ac_cv_have_timezone="yes"
14060 else
14061 ac_cv_have_timezone="no"
14063 rm -f core conftest.err conftest.$ac_objext \
14064 conftest$ac_exeext conftest.$ac_ext
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14067 $as_echo "$ac_cv_have_timezone" >&6; }
14068 if test "$ac_cv_have_timezone" = "yes"
14069 then
14071 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14075 $as_echo_n "checking for daylight variable... " >&6; }
14076 if ${ac_cv_have_daylight+:} false; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14081 #include <time.h>
14083 main ()
14085 daylight = 1
14087 return 0;
14089 _ACEOF
14090 if ac_fn_c_try_link "$LINENO"; then :
14091 ac_cv_have_daylight="yes"
14092 else
14093 ac_cv_have_daylight="no"
14095 rm -f core conftest.err conftest.$ac_objext \
14096 conftest$ac_exeext conftest.$ac_ext
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14099 $as_echo "$ac_cv_have_daylight" >&6; }
14100 if test "$ac_cv_have_daylight" = "yes"
14101 then
14103 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14107 ac_save_LIBS="$LIBS"
14108 LIBS="$LIBS -lm"
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14110 $as_echo_n "checking for isinf... " >&6; }
14111 if ${ac_cv_have_isinf+:} false; then :
14112 $as_echo_n "(cached) " >&6
14113 else
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14116 #include <math.h>
14118 main ()
14120 float f = 0.0; return isinf(f)
14122 return 0;
14124 _ACEOF
14125 if ac_fn_c_try_link "$LINENO"; then :
14126 ac_cv_have_isinf="yes"
14127 else
14128 ac_cv_have_isinf="no"
14130 rm -f core conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14134 $as_echo "$ac_cv_have_isinf" >&6; }
14135 if test "$ac_cv_have_isinf" = "yes"
14136 then
14138 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14143 $as_echo_n "checking for isnan... " >&6; }
14144 if ${ac_cv_have_isnan+:} false; then :
14145 $as_echo_n "(cached) " >&6
14146 else
14147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14149 #include <math.h>
14151 main ()
14153 float f = 0.0; return isnan(f)
14155 return 0;
14157 _ACEOF
14158 if ac_fn_c_try_link "$LINENO"; then :
14159 ac_cv_have_isnan="yes"
14160 else
14161 ac_cv_have_isnan="no"
14163 rm -f core conftest.err conftest.$ac_objext \
14164 conftest$ac_exeext conftest.$ac_ext
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14167 $as_echo "$ac_cv_have_isnan" >&6; }
14168 if test "$ac_cv_have_isnan" = "yes"
14169 then
14171 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14174 LIBS="$ac_save_LIBS"
14177 case $host_cpu in
14178 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14179 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14180 if ${ac_cv_cpp_def___i386__+:} false; then :
14181 $as_echo_n "(cached) " >&6
14182 else
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14185 #ifndef __i386__
14187 #endif
14188 _ACEOF
14189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14190 $EGREP "yes" >/dev/null 2>&1; then :
14191 ac_cv_cpp_def___i386__=yes
14192 else
14193 ac_cv_cpp_def___i386__=no
14195 rm -f conftest*
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14199 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14200 if test $ac_cv_cpp_def___i386__ = yes; then :
14201 CFLAGS="$CFLAGS -D__i386__"
14202 LINTFLAGS="$LINTFLAGS -D__i386__"
14203 fi ;;
14204 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14205 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14206 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14207 $as_echo_n "(cached) " >&6
14208 else
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14211 #ifndef __x86_64__
14213 #endif
14214 _ACEOF
14215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14216 $EGREP "yes" >/dev/null 2>&1; then :
14217 ac_cv_cpp_def___x86_64__=yes
14218 else
14219 ac_cv_cpp_def___x86_64__=no
14221 rm -f conftest*
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14225 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14226 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14227 CFLAGS="$CFLAGS -D__x86_64__"
14228 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14229 fi ;;
14230 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14231 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14232 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14233 $as_echo_n "(cached) " >&6
14234 else
14235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h. */
14237 #ifndef __sparc64__
14239 #endif
14240 _ACEOF
14241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14242 $EGREP "yes" >/dev/null 2>&1; then :
14243 ac_cv_cpp_def___sparc64__=yes
14244 else
14245 ac_cv_cpp_def___sparc64__=no
14247 rm -f conftest*
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14251 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14252 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14253 CFLAGS="$CFLAGS -D__sparc64__"
14254 LINTFLAGS="$LINTFLAGS -D__sparc64__"
14255 fi ;;
14256 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14257 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14258 if ${ac_cv_cpp_def___sparc__+:} false; then :
14259 $as_echo_n "(cached) " >&6
14260 else
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14263 #ifndef __sparc__
14265 #endif
14266 _ACEOF
14267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14268 $EGREP "yes" >/dev/null 2>&1; then :
14269 ac_cv_cpp_def___sparc__=yes
14270 else
14271 ac_cv_cpp_def___sparc__=no
14273 rm -f conftest*
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14277 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14278 if test $ac_cv_cpp_def___sparc__ = yes; then :
14279 CFLAGS="$CFLAGS -D__sparc__"
14280 LINTFLAGS="$LINTFLAGS -D__sparc__"
14281 fi ;;
14282 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14283 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14284 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14285 $as_echo_n "(cached) " >&6
14286 else
14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14289 #ifndef __powerpc64__
14291 #endif
14292 _ACEOF
14293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14294 $EGREP "yes" >/dev/null 2>&1; then :
14295 ac_cv_cpp_def___powerpc64__=yes
14296 else
14297 ac_cv_cpp_def___powerpc64__=no
14299 rm -f conftest*
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14303 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14304 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14305 CFLAGS="$CFLAGS -D__powerpc64__"
14306 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14307 fi ;;
14308 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14309 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14310 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14311 $as_echo_n "(cached) " >&6
14312 else
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14315 #ifndef __powerpc__
14317 #endif
14318 _ACEOF
14319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14320 $EGREP "yes" >/dev/null 2>&1; then :
14321 ac_cv_cpp_def___powerpc__=yes
14322 else
14323 ac_cv_cpp_def___powerpc__=no
14325 rm -f conftest*
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14329 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14330 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14331 CFLAGS="$CFLAGS -D__powerpc__"
14332 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14333 fi ;;
14334 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14335 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14336 if ${ac_cv_cpp_def___arm__+:} false; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340 /* end confdefs.h. */
14341 #ifndef __arm__
14343 #endif
14344 _ACEOF
14345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14346 $EGREP "yes" >/dev/null 2>&1; then :
14347 ac_cv_cpp_def___arm__=yes
14348 else
14349 ac_cv_cpp_def___arm__=no
14351 rm -f conftest*
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14355 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14356 if test $ac_cv_cpp_def___arm__ = yes; then :
14357 CFLAGS="$CFLAGS -D__arm__"
14358 LINTFLAGS="$LINTFLAGS -D__arm__"
14359 fi ;;
14360 esac
14362 case $host_vendor in
14363 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14364 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14365 if ${ac_cv_cpp_def___sun__+:} false; then :
14366 $as_echo_n "(cached) " >&6
14367 else
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14370 #ifndef __sun__
14372 #endif
14373 _ACEOF
14374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14375 $EGREP "yes" >/dev/null 2>&1; then :
14376 ac_cv_cpp_def___sun__=yes
14377 else
14378 ac_cv_cpp_def___sun__=no
14380 rm -f conftest*
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14384 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14385 if test $ac_cv_cpp_def___sun__ = yes; then :
14386 CFLAGS="$CFLAGS -D__sun__"
14387 LINTFLAGS="$LINTFLAGS -D__sun__"
14388 fi ;;
14389 esac
14395 ac_config_commands="$ac_config_commands include/stamp-h"
14398 ALL_MAKEFILE_DEPENDS="
14399 # Rules automatically generated by configure
14401 .INIT: Makefile
14402 .MAKEFILEDEPS:
14403 all: Makefile
14404 Makefile: Makefile.in Make.vars.in Make.rules config.status
14405 @./config.status Make.tmp Makefile"
14407 ALL_POT_FILES=""
14408 ALL_TEST_RESOURCES=""
14411 wine_fn_append_file ()
14413 as_fn_append $1 " \\$as_nl $2"
14416 wine_fn_append_rule ()
14418 as_fn_append $1 "$as_nl$2"
14421 wine_fn_has_flag ()
14423 expr ",$2," : ".*,$1,.*" >/dev/null
14426 wine_fn_all_dir_rules ()
14428 ac_dir=$1
14429 ac_alldeps=$2
14430 ac_makedep="\$(MAKEDEP)"
14431 ac_input=Make.vars.in:$ac_dir/Makefile.in
14432 if test $ac_dir != tools
14433 then
14434 ac_alldeps="$2 $ac_makedep"
14436 case $2 in
14437 *.in) ac_input=$ac_input:$2 ;;
14438 *) ac_makedep="$2 $ac_makedep" ;;
14439 esac
14441 wine_fn_append_file ALL_DIRS $ac_dir
14442 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14443 "__clean__: $ac_dir/__clean__
14444 .PHONY: $ac_dir/__clean__
14445 $ac_dir/__clean__: $ac_dir/Makefile
14446 @cd $ac_dir && \$(MAKE) clean
14447 \$(RM) $ac_dir/Makefile
14448 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14449 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14450 depend: $ac_dir/__depend__
14451 .PHONY: $ac_dir/__depend__
14452 $ac_dir/__depend__: $ac_makedep dummy
14453 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14456 wine_fn_pot_rules ()
14458 ac_dir=$1
14459 ac_flags=$2
14461 test "x$with_gettextpo" = xyes || return
14463 if wine_fn_has_flag mc $ac_flags
14464 then
14465 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14466 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14467 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
14468 @cd $ac_dir && \$(MAKE) msg.pot
14469 $ac_dir/msg.pot: tools/wmc include"
14471 if wine_fn_has_flag po $ac_flags
14472 then
14473 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14474 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14475 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14476 @cd $ac_dir && \$(MAKE) rsrc.pot
14477 $ac_dir/rsrc.pot: tools/wrc include"
14481 wine_fn_config_makefile ()
14483 ac_dir=$1
14484 ac_enable=$2
14485 ac_flags=$3
14486 ac_rules=$4
14487 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14488 return 0
14491 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
14492 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14493 "all: $ac_dir
14494 .PHONY: $ac_dir
14495 $ac_dir: $ac_dir/Makefile dummy
14496 @cd $ac_dir && \$(MAKE)"
14498 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14500 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14501 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14502 $ac_dir/__install__:: $ac_dir
14503 @cd $ac_dir && \$(MAKE) install
14504 $ac_dir/__uninstall__:: $ac_dir/Makefile
14505 @cd $ac_dir && \$(MAKE) uninstall
14506 install:: $ac_dir/__install__
14507 __uninstall__: $ac_dir/__uninstall__"
14509 if wine_fn_has_flag install-lib $ac_flags
14510 then
14511 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14512 ".PHONY: $ac_dir/__install-lib__
14513 $ac_dir/__install-lib__:: $ac_dir
14514 @cd $ac_dir && \$(MAKE) install-lib
14515 install-lib:: $ac_dir/__install-lib__"
14518 if wine_fn_has_flag install-dev $ac_flags
14519 then
14520 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14521 ".PHONY: $ac_dir/__install-dev
14522 $ac_dir/__install-dev__:: $ac_dir
14523 @cd $ac_dir && \$(MAKE) install-dev
14524 install-dev:: $ac_dir/__install-dev__"
14528 wine_fn_config_lib ()
14530 ac_name=$1
14531 ac_flags=$2
14532 ac_dir=dlls/$ac_name
14533 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14535 if wine_fn_has_flag install-dev $ac_flags
14536 then :
14537 else
14538 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14539 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14540 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14541 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14542 $ac_dir/__uninstall__::
14543 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14544 install install-dev:: $ac_dir/__install__
14545 __uninstall__: $ac_dir/__uninstall__"
14548 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14549 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14552 wine_fn_config_dll ()
14554 ac_name=$1
14555 ac_dir=dlls/$ac_name
14556 ac_enable=$2
14557 ac_flags=$3
14558 ac_implib=${4:-$ac_name}
14559 ac_file=$ac_dir/lib$ac_implib
14560 ac_dll=$ac_name
14561 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14562 ac_implibflags=""
14564 case $ac_name in
14565 *16) ac_implibflags=" -m16" ;;
14566 *.*) ;;
14567 *) ac_dll=$ac_dll.dll ;;
14568 esac
14570 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
14572 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14573 test "$ac_enable" != enable_win16 || return 0
14574 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14575 else
14576 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14577 "$ac_dir: __builddeps__
14578 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14579 @cd $ac_dir && \$(MAKE) \$@"
14581 if wine_fn_has_flag install-lib $ac_flags
14582 then :
14583 else
14584 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14585 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14586 install install-lib:: $ac_dir/__install-lib__
14587 __uninstall__: $ac_dir/__uninstall__"
14588 if test -n "$DLLEXT"
14589 then
14590 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14591 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14592 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14593 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14594 $ac_dir/__uninstall__::
14595 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14596 else
14597 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14598 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14599 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14600 $ac_dir/__uninstall__::
14601 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14605 wine_fn_pot_rules $ac_dir $ac_flags
14608 if wine_fn_has_flag staticimplib $ac_flags
14609 then
14610 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14611 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14612 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14613 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14614 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14615 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14616 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14617 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14618 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14619 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14620 $ac_dir/__uninstall__::
14621 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14622 install install-dev:: $ac_dir/__install-dev__
14623 __uninstall__: $ac_dir/__uninstall__"
14625 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14626 then
14627 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14628 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14629 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14630 $ac_dir/__uninstall__::
14631 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14634 if test "x$CROSSTEST_DISABLE" = x
14635 then
14636 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14637 "__builddeps__: $ac_file.cross.a
14638 $ac_file.cross.a: $ac_dir/Makefile dummy
14639 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14642 elif wine_fn_has_flag implib $ac_flags
14643 then
14644 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14645 "__builddeps__: $ac_file.$IMPLIBEXT
14646 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14647 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14648 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14649 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14650 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14651 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14652 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14653 $ac_dir/__uninstall__::
14654 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14655 install install-dev:: $ac_dir/__install-dev__
14656 __uninstall__: $ac_dir/__uninstall__"
14657 if test "x$CROSSTEST_DISABLE" = x
14658 then
14659 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14660 "__builddeps__: $ac_file.cross.a
14661 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14662 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14665 if test "$ac_name" != "$ac_implib"
14666 then
14667 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14668 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14669 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14670 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14671 clean::
14672 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14673 if test "x$CROSSTEST_DISABLE" = x
14674 then
14675 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14676 "__builddeps__: dlls/lib$ac_implib.cross.a
14677 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14678 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14684 wine_fn_config_program ()
14686 ac_name=$1
14687 ac_dir=programs/$ac_name
14688 ac_enable=$2
14689 ac_flags=$3
14690 ac_program=$ac_name
14692 case $ac_name in
14693 *.*) ;;
14694 *) ac_program=$ac_program.exe ;;
14695 esac
14697 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
14699 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14701 else
14702 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14703 "$ac_dir: __builddeps__"
14705 wine_fn_pot_rules $ac_dir $ac_flags
14707 wine_fn_has_flag install $ac_flags || return
14708 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14709 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14710 install install-lib:: $ac_dir/__install__
14711 __uninstall__: $ac_dir/__uninstall__"
14713 if test -n "$DLLEXT"
14714 then
14715 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14716 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14717 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14718 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14719 $ac_dir/__uninstall__::
14720 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14722 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14723 then
14724 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14725 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
14726 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14727 $ac_dir/__uninstall__::
14728 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14730 else
14731 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14732 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14733 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14734 $ac_dir/__uninstall__::
14735 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
14738 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14739 then
14740 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14741 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14742 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14743 $ac_dir/__uninstall__::
14744 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14749 wine_fn_config_test ()
14751 ac_dir=$1
14752 ac_name=$2
14753 ac_flags=$3
14754 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14755 wine_fn_all_dir_rules $ac_dir Maketest.rules
14757 if test "x$enable_tests" = xno; then :
14759 else
14760 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14761 "all: $ac_dir
14762 .PHONY: $ac_dir
14763 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14764 @cd $ac_dir && \$(MAKE)
14765 programs/winetest: $ac_dir
14766 check test: $ac_dir/__test__
14767 .PHONY: $ac_dir/__test__
14768 $ac_dir/__test__: dummy
14769 @cd $ac_dir && \$(MAKE) test
14770 testclean::
14771 \$(RM) $ac_dir/*.ok"
14773 if test "x$CROSSTEST_DISABLE" = x
14774 then
14775 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14776 "crosstest: $ac_dir/__crosstest__
14777 .PHONY: $ac_dir/__crosstest__
14778 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14779 @cd $ac_dir && \$(MAKE) crosstest"
14784 wine_fn_config_tool ()
14786 ac_dir=$1
14787 ac_flags=$2
14788 if test "x$enable_tools" = xno; then :
14789 return 0
14792 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
14794 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14795 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
14796 case $ac_dir in
14797 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14798 esac
14801 wine_fn_config_makerules ()
14803 ac_rules=$1
14804 ac_deps=$2
14805 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14806 "$ac_rules: $ac_rules.in $ac_deps config.status
14807 @./config.status $ac_rules
14808 distclean::
14809 \$(RM) $ac_rules"
14812 wine_fn_config_symlink ()
14814 ac_link=$1
14815 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14816 "$ac_link:
14817 @./config.status $ac_link
14818 distclean::
14819 \$(RM) $ac_link"
14822 if test "x$CROSSTEST_DISABLE" != x
14823 then
14824 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14825 "crosstest:
14826 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14828 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14829 wine_fn_config_symlink dlls/shell32/AUTHORS
14830 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14831 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14832 if test "x$enable_fonts" != xno; then
14833 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14834 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14836 if test "x$enable_fonts" != xno; then
14837 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14838 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14840 if test "x$enable_fonts" != xno; then
14841 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14842 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14844 if test "x$enable_fonts" != xno; then
14845 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14846 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14848 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
14849 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
14850 if test "x$enable_tools" != xno; then
14851 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14852 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14854 ac_config_links="$ac_config_links wine:tools/winewrapper"
14855 wine_fn_config_symlink wine
14856 if test "x$enable_win64" != xno; then
14857 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14858 wine_fn_config_symlink wine64
14861 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14863 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14865 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14867 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14869 ac_config_commands="$ac_config_commands dlls/user32/resources"
14871 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14873 ac_config_commands="$ac_config_commands include/wine"
14876 wine_fn_config_makerules Make.rules
14877 MAKE_RULES=Make.rules
14878 ac_config_files="$ac_config_files Make.rules"
14880 wine_fn_config_makerules Maketest.rules Make.rules
14881 MAKE_TEST_RULES=Maketest.rules
14882 ac_config_files="$ac_config_files Maketest.rules"
14884 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14885 MAKE_DLL_RULES=dlls/Makedll.rules
14886 ac_config_files="$ac_config_files dlls/Makedll.rules"
14888 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14889 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14890 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14892 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14893 MAKE_PROG_RULES=programs/Makeprog.rules
14894 ac_config_files="$ac_config_files programs/Makeprog.rules"
14897 wine_fn_config_dll acledit enable_acledit
14898 wine_fn_config_dll aclui enable_aclui implib
14899 wine_fn_config_dll activeds enable_activeds implib
14900 wine_fn_config_dll actxprxy enable_actxprxy
14901 wine_fn_config_lib adsiid
14902 wine_fn_config_dll advapi32 enable_advapi32 implib
14903 wine_fn_config_test dlls/advapi32/tests advapi32_test
14904 wine_fn_config_dll advpack enable_advpack implib
14905 wine_fn_config_test dlls/advpack/tests advpack_test
14906 wine_fn_config_dll amstream enable_amstream
14907 wine_fn_config_test dlls/amstream/tests amstream_test
14908 wine_fn_config_dll apphelp enable_apphelp
14909 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14910 wine_fn_config_dll atl enable_atl implib
14911 wine_fn_config_test dlls/atl/tests atl_test
14912 wine_fn_config_dll authz enable_authz
14913 wine_fn_config_dll avicap32 enable_avicap32 implib
14914 wine_fn_config_dll avifil32 enable_avifil32 implib,po
14915 wine_fn_config_test dlls/avifil32/tests avifil32_test
14916 wine_fn_config_dll avifile.dll16 enable_win16
14917 wine_fn_config_dll avrt enable_avrt implib
14918 wine_fn_config_dll bcrypt enable_bcrypt
14919 wine_fn_config_dll browseui enable_browseui po
14920 wine_fn_config_test dlls/browseui/tests browseui_test
14921 wine_fn_config_dll cabinet enable_cabinet implib
14922 wine_fn_config_test dlls/cabinet/tests cabinet_test
14923 wine_fn_config_dll capi2032 enable_capi2032 implib
14924 wine_fn_config_dll cards enable_cards implib
14925 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14926 wine_fn_config_dll clusapi enable_clusapi implib
14927 wine_fn_config_dll comcat enable_comcat
14928 wine_fn_config_test dlls/comcat/tests comcat_test
14929 wine_fn_config_dll comctl32 enable_comctl32 implib,po
14930 wine_fn_config_test dlls/comctl32/tests comctl32_test
14931 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
14932 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14933 wine_fn_config_dll comm.drv16 enable_win16
14934 wine_fn_config_dll commdlg.dll16 enable_win16
14935 wine_fn_config_dll compobj.dll16 enable_win16
14936 wine_fn_config_dll compstui enable_compstui implib
14937 wine_fn_config_dll credui enable_credui implib,po
14938 wine_fn_config_test dlls/credui/tests credui_test
14939 wine_fn_config_dll crtdll enable_crtdll implib
14940 wine_fn_config_dll crypt32 enable_crypt32 implib,po
14941 wine_fn_config_test dlls/crypt32/tests crypt32_test
14942 wine_fn_config_dll cryptdlg enable_cryptdlg po
14943 wine_fn_config_dll cryptdll enable_cryptdll implib
14944 wine_fn_config_dll cryptnet enable_cryptnet implib
14945 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14946 wine_fn_config_dll cryptui enable_cryptui implib,po
14947 wine_fn_config_test dlls/cryptui/tests cryptui_test
14948 wine_fn_config_dll ctapi32 enable_ctapi32
14949 wine_fn_config_dll ctl3d.dll16 enable_win16
14950 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14951 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14952 wine_fn_config_dll d3d10 enable_d3d10 implib
14953 wine_fn_config_test dlls/d3d10/tests d3d10_test
14954 wine_fn_config_dll d3d10core enable_d3d10core implib
14955 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14956 wine_fn_config_dll d3d8 enable_d3d8 implib
14957 wine_fn_config_test dlls/d3d8/tests d3d8_test
14958 wine_fn_config_dll d3d9 enable_d3d9 implib
14959 wine_fn_config_test dlls/d3d9/tests d3d9_test
14960 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14961 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14962 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14963 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14964 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14965 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14966 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14967 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14968 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14969 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14970 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14971 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14972 wine_fn_config_dll d3dim enable_d3dim implib
14973 wine_fn_config_dll d3drm enable_d3drm implib
14974 wine_fn_config_test dlls/d3drm/tests d3drm_test
14975 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14976 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14977 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14978 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14979 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14980 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14981 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14982 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14983 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14984 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14985 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14986 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14987 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14988 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14989 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14990 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14991 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14992 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14993 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14994 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14995 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14996 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14997 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14998 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14999 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15000 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15001 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15002 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15003 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15004 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15005 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15006 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15007 wine_fn_config_dll d3dxof enable_d3dxof implib
15008 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15009 wine_fn_config_dll dbgeng enable_dbgeng implib
15010 wine_fn_config_dll dbghelp enable_dbghelp implib
15011 wine_fn_config_dll dciman32 enable_dciman32 implib
15012 wine_fn_config_dll ddeml.dll16 enable_win16
15013 wine_fn_config_dll ddraw enable_ddraw implib
15014 wine_fn_config_test dlls/ddraw/tests ddraw_test
15015 wine_fn_config_dll ddrawex enable_ddrawex
15016 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15017 wine_fn_config_dll devenum enable_devenum po
15018 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15019 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15020 wine_fn_config_test dlls/dinput/tests dinput_test
15021 wine_fn_config_dll dinput8 enable_dinput8 implib
15022 wine_fn_config_test dlls/dinput8/tests dinput8_test
15023 wine_fn_config_dll dispdib.dll16 enable_win16
15024 wine_fn_config_dll dispex enable_dispex
15025 wine_fn_config_test dlls/dispex/tests dispex_test
15026 wine_fn_config_dll display.drv16 enable_win16
15027 wine_fn_config_dll dmband enable_dmband
15028 wine_fn_config_dll dmcompos enable_dmcompos
15029 wine_fn_config_dll dmime enable_dmime
15030 wine_fn_config_test dlls/dmime/tests dmime_test
15031 wine_fn_config_dll dmloader enable_dmloader
15032 wine_fn_config_test dlls/dmloader/tests dmloader_test
15033 wine_fn_config_dll dmscript enable_dmscript
15034 wine_fn_config_dll dmstyle enable_dmstyle
15035 wine_fn_config_dll dmsynth enable_dmsynth
15036 wine_fn_config_dll dmusic enable_dmusic
15037 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15038 wine_fn_config_dll dnsapi enable_dnsapi implib
15039 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15040 wine_fn_config_dll dplay enable_dplay implib
15041 wine_fn_config_dll dplayx enable_dplayx implib
15042 wine_fn_config_test dlls/dplayx/tests dplayx_test
15043 wine_fn_config_dll dpnaddr enable_dpnaddr
15044 wine_fn_config_dll dpnet enable_dpnet implib
15045 wine_fn_config_test dlls/dpnet/tests dpnet_test
15046 wine_fn_config_dll dpnhpast enable_dpnhpast
15047 wine_fn_config_dll dpnlobby enable_dpnlobby
15048 wine_fn_config_dll dpwsockx enable_dpwsockx
15049 wine_fn_config_dll drmclien enable_drmclien
15050 wine_fn_config_dll dsound enable_dsound implib
15051 wine_fn_config_test dlls/dsound/tests dsound_test
15052 wine_fn_config_dll dssenh enable_dssenh
15053 wine_fn_config_dll dswave enable_dswave
15054 wine_fn_config_dll dwmapi enable_dwmapi implib
15055 wine_fn_config_dll dxdiagn enable_dxdiagn po
15056 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15057 wine_fn_config_lib dxerr8
15058 wine_fn_config_lib dxerr9
15059 wine_fn_config_dll dxgi enable_dxgi implib
15060 wine_fn_config_test dlls/dxgi/tests dxgi_test
15061 wine_fn_config_lib dxguid
15062 wine_fn_config_dll explorerframe enable_explorerframe
15063 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15064 wine_fn_config_dll faultrep enable_faultrep implib
15065 wine_fn_config_test dlls/faultrep/tests faultrep_test
15066 wine_fn_config_dll fltlib enable_fltlib
15067 wine_fn_config_dll fusion enable_fusion
15068 wine_fn_config_test dlls/fusion/tests fusion_test
15069 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15070 wine_fn_config_dll gameux enable_gameux
15071 wine_fn_config_test dlls/gameux/tests gameux_test
15072 wine_fn_config_dll gdi.exe16 enable_win16
15073 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15074 wine_fn_config_test dlls/gdi32/tests gdi32_test
15075 wine_fn_config_dll gdiplus enable_gdiplus implib
15076 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15077 wine_fn_config_dll glu32 enable_glu32 implib
15078 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15079 wine_fn_config_dll gpkcsp enable_gpkcsp
15080 wine_fn_config_dll hal enable_hal
15081 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15082 wine_fn_config_dll hid enable_hid implib
15083 wine_fn_config_dll hlink enable_hlink implib
15084 wine_fn_config_test dlls/hlink/tests hlink_test
15085 wine_fn_config_dll hnetcfg enable_hnetcfg
15086 wine_fn_config_dll httpapi enable_httpapi
15087 wine_fn_config_dll iccvid enable_iccvid po
15088 wine_fn_config_dll icmp enable_icmp
15089 wine_fn_config_dll ieframe enable_ieframe implib,po
15090 wine_fn_config_test dlls/ieframe/tests ieframe_test
15091 wine_fn_config_dll ifsmgr.vxd enable_win16
15092 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15093 wine_fn_config_dll imagehlp enable_imagehlp implib
15094 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15095 wine_fn_config_dll imm.dll16 enable_win16
15096 wine_fn_config_dll imm32 enable_imm32 implib
15097 wine_fn_config_test dlls/imm32/tests imm32_test
15098 wine_fn_config_dll inetcomm enable_inetcomm implib
15099 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15100 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15101 wine_fn_config_dll inetmib1 enable_inetmib1
15102 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15103 wine_fn_config_dll infosoft enable_infosoft
15104 wine_fn_config_test dlls/infosoft/tests infosoft_test
15105 wine_fn_config_dll initpki enable_initpki
15106 wine_fn_config_dll inkobj enable_inkobj
15107 wine_fn_config_dll inseng enable_inseng
15108 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15109 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15110 wine_fn_config_dll itircl enable_itircl
15111 wine_fn_config_dll itss enable_itss
15112 wine_fn_config_test dlls/itss/tests itss_test
15113 wine_fn_config_dll jscript enable_jscript po
15114 wine_fn_config_test dlls/jscript/tests jscript_test
15115 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15116 wine_fn_config_test dlls/kernel32/tests kernel32_test
15117 wine_fn_config_dll keyboard.drv16 enable_win16
15118 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15119 wine_fn_config_dll ktmw32 enable_ktmw32
15120 wine_fn_config_dll loadperf enable_loadperf implib
15121 wine_fn_config_dll localspl enable_localspl po
15122 wine_fn_config_test dlls/localspl/tests localspl_test
15123 wine_fn_config_dll localui enable_localui po
15124 wine_fn_config_test dlls/localui/tests localui_test
15125 wine_fn_config_dll lz32 enable_lz32 implib
15126 wine_fn_config_test dlls/lz32/tests lz32_test
15127 wine_fn_config_dll lzexpand.dll16 enable_win16
15128 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15129 wine_fn_config_test dlls/mapi32/tests mapi32_test
15130 wine_fn_config_dll mapistub enable_mapistub
15131 wine_fn_config_dll mciavi32 enable_mciavi32
15132 wine_fn_config_dll mcicda enable_mcicda
15133 wine_fn_config_dll mciqtz32 enable_mciqtz32
15134 wine_fn_config_dll mciseq enable_mciseq
15135 wine_fn_config_dll mciwave enable_mciwave
15136 wine_fn_config_dll midimap enable_midimap
15137 wine_fn_config_dll mlang enable_mlang implib
15138 wine_fn_config_test dlls/mlang/tests mlang_test
15139 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15140 wine_fn_config_dll mmdevapi enable_mmdevapi
15141 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15142 wine_fn_config_dll mmdevldr.vxd enable_win16
15143 wine_fn_config_dll mmsystem.dll16 enable_win16
15144 wine_fn_config_dll monodebg.vxd enable_win16
15145 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15146 wine_fn_config_dll mouse.drv16 enable_win16
15147 wine_fn_config_dll mpr enable_mpr implib,po
15148 wine_fn_config_dll mprapi enable_mprapi implib
15149 wine_fn_config_dll msacm.dll16 enable_win16
15150 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15151 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15152 wine_fn_config_test dlls/msacm32/tests msacm32_test
15153 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15154 wine_fn_config_dll mscat32 enable_mscat32
15155 wine_fn_config_dll mscms enable_mscms implib
15156 wine_fn_config_test dlls/mscms/tests mscms_test
15157 wine_fn_config_dll mscoree enable_mscoree
15158 wine_fn_config_test dlls/mscoree/tests mscoree_test
15159 wine_fn_config_dll msctf enable_msctf
15160 wine_fn_config_test dlls/msctf/tests msctf_test
15161 wine_fn_config_dll msdaps enable_msdaps
15162 wine_fn_config_dll msdmo enable_msdmo implib
15163 wine_fn_config_dll msftedit enable_msftedit
15164 wine_fn_config_dll msg711.acm enable_msg711_acm
15165 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15166 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15167 wine_fn_config_dll mshtml enable_mshtml implib,po
15168 wine_fn_config_test dlls/mshtml/tests mshtml_test
15169 wine_fn_config_dll msi enable_msi implib,po
15170 wine_fn_config_test dlls/msi/tests msi_test
15171 wine_fn_config_dll msimg32 enable_msimg32 implib
15172 wine_fn_config_dll msimsg enable_msimsg
15173 wine_fn_config_dll msimtf enable_msimtf
15174 wine_fn_config_dll msisip enable_msisip
15175 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15176 wine_fn_config_dll msnet32 enable_msnet32
15177 wine_fn_config_dll mspatcha enable_mspatcha
15178 wine_fn_config_dll msrle32 enable_msrle32 po
15179 wine_fn_config_dll mssign32 enable_mssign32
15180 wine_fn_config_dll mssip32 enable_mssip32
15181 wine_fn_config_dll mstask enable_mstask
15182 wine_fn_config_test dlls/mstask/tests mstask_test
15183 wine_fn_config_dll msvcirt enable_msvcirt
15184 wine_fn_config_dll msvcp100 enable_msvcp100
15185 wine_fn_config_dll msvcp60 enable_msvcp60
15186 wine_fn_config_dll msvcp70 enable_msvcp70
15187 wine_fn_config_dll msvcp71 enable_msvcp71
15188 wine_fn_config_dll msvcp80 enable_msvcp80
15189 wine_fn_config_dll msvcp90 enable_msvcp90
15190 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15191 wine_fn_config_dll msvcr100 enable_msvcr100
15192 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15193 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15194 wine_fn_config_dll msvcr80 enable_msvcr80
15195 wine_fn_config_dll msvcr90 enable_msvcr90
15196 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15197 wine_fn_config_dll msvcrt enable_msvcrt implib
15198 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15199 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15200 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15201 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15202 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15203 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15204 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15205 wine_fn_config_dll msvidc32 enable_msvidc32 po
15206 wine_fn_config_dll msvideo.dll16 enable_win16
15207 wine_fn_config_dll mswsock enable_mswsock implib
15208 wine_fn_config_dll msxml enable_msxml
15209 wine_fn_config_dll msxml2 enable_msxml2
15210 wine_fn_config_dll msxml3 enable_msxml3
15211 wine_fn_config_test dlls/msxml3/tests msxml3_test
15212 wine_fn_config_dll msxml4 enable_msxml4
15213 wine_fn_config_dll msxml6 enable_msxml6
15214 wine_fn_config_dll nddeapi enable_nddeapi implib
15215 wine_fn_config_dll netapi32 enable_netapi32 implib
15216 wine_fn_config_test dlls/netapi32/tests netapi32_test
15217 wine_fn_config_dll newdev enable_newdev implib
15218 wine_fn_config_dll normaliz enable_normaliz implib
15219 wine_fn_config_dll npmshtml enable_npmshtml
15220 wine_fn_config_dll ntdll enable_ntdll implib
15221 wine_fn_config_test dlls/ntdll/tests ntdll_test
15222 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15223 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15224 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15225 wine_fn_config_dll ntprint enable_ntprint
15226 wine_fn_config_test dlls/ntprint/tests ntprint_test
15227 wine_fn_config_dll objsel enable_objsel
15228 wine_fn_config_dll odbc32 enable_odbc32 implib
15229 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15230 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15231 wine_fn_config_dll ole2.dll16 enable_win16
15232 wine_fn_config_dll ole2conv.dll16 enable_win16
15233 wine_fn_config_dll ole2disp.dll16 enable_win16
15234 wine_fn_config_dll ole2nls.dll16 enable_win16
15235 wine_fn_config_dll ole2prox.dll16 enable_win16
15236 wine_fn_config_dll ole2thk.dll16 enable_win16
15237 wine_fn_config_dll ole32 enable_ole32 implib
15238 wine_fn_config_test dlls/ole32/tests ole32_test
15239 wine_fn_config_dll oleacc enable_oleacc implib,po
15240 wine_fn_config_test dlls/oleacc/tests oleacc_test
15241 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15242 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15243 wine_fn_config_dll olecli.dll16 enable_win16
15244 wine_fn_config_dll olecli32 enable_olecli32 implib
15245 wine_fn_config_dll oledb32 enable_oledb32
15246 wine_fn_config_test dlls/oledb32/tests oledb32_test
15247 wine_fn_config_dll oledlg enable_oledlg implib,po
15248 wine_fn_config_dll olepro32 enable_olepro32 implib
15249 wine_fn_config_dll olesvr.dll16 enable_win16
15250 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15251 wine_fn_config_dll olethk32 enable_olethk32
15252 wine_fn_config_dll openal32 enable_openal32
15253 wine_fn_config_dll opencl enable_opencl
15254 wine_fn_config_dll opengl32 enable_opengl32 implib
15255 wine_fn_config_test dlls/opengl32/tests opengl32_test
15256 wine_fn_config_dll pdh enable_pdh implib
15257 wine_fn_config_test dlls/pdh/tests pdh_test
15258 wine_fn_config_dll photometadatahandler enable_photometadatahandler
15259 wine_fn_config_dll pidgen enable_pidgen
15260 wine_fn_config_dll powrprof enable_powrprof implib
15261 wine_fn_config_dll printui enable_printui
15262 wine_fn_config_dll propsys enable_propsys implib
15263 wine_fn_config_test dlls/propsys/tests propsys_test
15264 wine_fn_config_dll psapi enable_psapi implib
15265 wine_fn_config_test dlls/psapi/tests psapi_test
15266 wine_fn_config_dll pstorec enable_pstorec
15267 wine_fn_config_dll qcap enable_qcap
15268 wine_fn_config_dll qedit enable_qedit
15269 wine_fn_config_test dlls/qedit/tests qedit_test
15270 wine_fn_config_dll qmgr enable_qmgr
15271 wine_fn_config_test dlls/qmgr/tests qmgr_test
15272 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15273 wine_fn_config_dll quartz enable_quartz implib
15274 wine_fn_config_test dlls/quartz/tests quartz_test
15275 wine_fn_config_dll query enable_query
15276 wine_fn_config_dll rasapi16.dll16 enable_win16
15277 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15278 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15279 wine_fn_config_dll rasdlg enable_rasdlg implib
15280 wine_fn_config_dll regapi enable_regapi
15281 wine_fn_config_dll resutils enable_resutils implib
15282 wine_fn_config_dll riched20 enable_riched20 implib
15283 wine_fn_config_test dlls/riched20/tests riched20_test
15284 wine_fn_config_dll riched32 enable_riched32
15285 wine_fn_config_test dlls/riched32/tests riched32_test
15286 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15287 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15288 wine_fn_config_dll rsabase enable_rsabase
15289 wine_fn_config_dll rsaenh enable_rsaenh implib
15290 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15291 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15292 wine_fn_config_dll rtutils enable_rtutils implib
15293 wine_fn_config_dll samlib enable_samlib
15294 wine_fn_config_dll sane.ds enable_sane_ds po
15295 wine_fn_config_dll scarddlg enable_scarddlg
15296 wine_fn_config_dll sccbase enable_sccbase
15297 wine_fn_config_dll schannel enable_schannel
15298 wine_fn_config_test dlls/schannel/tests schannel_test
15299 wine_fn_config_dll scrrun enable_scrrun
15300 wine_fn_config_dll secur32 enable_secur32 implib
15301 wine_fn_config_test dlls/secur32/tests secur32_test
15302 wine_fn_config_dll security enable_security
15303 wine_fn_config_dll sensapi enable_sensapi implib
15304 wine_fn_config_dll serialui enable_serialui implib,po
15305 wine_fn_config_test dlls/serialui/tests serialui_test
15306 wine_fn_config_dll setupapi enable_setupapi implib,po
15307 wine_fn_config_test dlls/setupapi/tests setupapi_test
15308 wine_fn_config_dll setupx.dll16 enable_win16
15309 wine_fn_config_dll sfc enable_sfc implib
15310 wine_fn_config_dll sfc_os enable_sfc_os implib
15311 wine_fn_config_dll shdoclc enable_shdoclc po
15312 wine_fn_config_dll shdocvw enable_shdocvw implib
15313 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15314 wine_fn_config_dll shell.dll16 enable_win16
15315 wine_fn_config_dll shell32 enable_shell32 implib,po
15316 wine_fn_config_test dlls/shell32/tests shell32_test
15317 wine_fn_config_dll shfolder enable_shfolder implib
15318 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15319 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15320 wine_fn_config_dll slbcsp enable_slbcsp
15321 wine_fn_config_dll slc enable_slc implib
15322 wine_fn_config_dll snmpapi enable_snmpapi implib
15323 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15324 wine_fn_config_dll softpub enable_softpub
15325 wine_fn_config_dll sound.drv16 enable_win16
15326 wine_fn_config_dll spoolss enable_spoolss implib
15327 wine_fn_config_test dlls/spoolss/tests spoolss_test
15328 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15329 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15330 wine_fn_config_dll sti enable_sti implib
15331 wine_fn_config_test dlls/sti/tests sti_test
15332 wine_fn_config_dll storage.dll16 enable_win16
15333 wine_fn_config_dll stress.dll16 enable_win16
15334 wine_fn_config_lib strmbase
15335 wine_fn_config_lib strmiids
15336 wine_fn_config_dll svrapi enable_svrapi
15337 wine_fn_config_dll sxs enable_sxs
15338 wine_fn_config_dll system.drv16 enable_win16
15339 wine_fn_config_dll t2embed enable_t2embed
15340 wine_fn_config_dll tapi32 enable_tapi32 implib
15341 wine_fn_config_dll toolhelp.dll16 enable_win16
15342 wine_fn_config_dll traffic enable_traffic
15343 wine_fn_config_dll twain.dll16 enable_win16
15344 wine_fn_config_dll twain_32 enable_twain_32
15345 wine_fn_config_test dlls/twain_32/tests twain_32_test
15346 wine_fn_config_dll typelib.dll16 enable_win16
15347 wine_fn_config_dll unicows enable_unicows implib
15348 wine_fn_config_dll updspapi enable_updspapi
15349 wine_fn_config_dll url enable_url implib
15350 wine_fn_config_dll urlmon enable_urlmon implib
15351 wine_fn_config_test dlls/urlmon/tests urlmon_test
15352 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15353 wine_fn_config_dll user.exe16 enable_win16
15354 wine_fn_config_dll user32 enable_user32 implib,po
15355 wine_fn_config_test dlls/user32/tests user32_test
15356 wine_fn_config_dll userenv enable_userenv implib
15357 wine_fn_config_test dlls/userenv/tests userenv_test
15358 wine_fn_config_dll usp10 enable_usp10 implib
15359 wine_fn_config_test dlls/usp10/tests usp10_test
15360 wine_fn_config_lib uuid
15361 wine_fn_config_dll uxtheme enable_uxtheme implib
15362 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15363 wine_fn_config_dll vbscript enable_vbscript
15364 wine_fn_config_test dlls/vbscript/tests vbscript_test
15365 wine_fn_config_dll vcomp enable_vcomp
15366 wine_fn_config_dll vdhcp.vxd enable_win16
15367 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15368 wine_fn_config_dll ver.dll16 enable_win16
15369 wine_fn_config_dll version enable_version implib
15370 wine_fn_config_test dlls/version/tests version_test
15371 wine_fn_config_dll vmm.vxd enable_win16
15372 wine_fn_config_dll vnbt.vxd enable_win16
15373 wine_fn_config_dll vnetbios.vxd enable_win16
15374 wine_fn_config_dll vtdapi.vxd enable_win16
15375 wine_fn_config_dll vwin32.vxd enable_win16
15376 wine_fn_config_dll w32skrnl enable_win16
15377 wine_fn_config_dll w32sys.dll16 enable_win16
15378 wine_fn_config_dll wbemprox enable_wbemprox
15379 wine_fn_config_dll wer enable_wer implib
15380 wine_fn_config_test dlls/wer/tests wer_test
15381 wine_fn_config_dll wiaservc enable_wiaservc
15382 wine_fn_config_dll win32s16.dll16 enable_win16
15383 wine_fn_config_dll win87em.dll16 enable_win16
15384 wine_fn_config_dll winaspi.dll16 enable_win16
15385 wine_fn_config_dll windebug.dll16 enable_win16
15386 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15387 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15388 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15389 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15390 wine_fn_config_lib winecrt0
15391 wine_fn_config_dll wined3d enable_wined3d implib
15392 wine_fn_config_dll winegstreamer enable_winegstreamer
15393 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15394 wine_fn_config_dll winemapi enable_winemapi
15395 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15396 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15397 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
15398 wine_fn_config_dll wineps16.drv16 enable_win16
15399 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15400 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15401 wine_fn_config_dll winex11.drv enable_winex11_drv
15402 wine_fn_config_dll wing.dll16 enable_win16
15403 wine_fn_config_dll wing32 enable_wing32
15404 wine_fn_config_dll winhttp enable_winhttp implib
15405 wine_fn_config_test dlls/winhttp/tests winhttp_test
15406 wine_fn_config_dll wininet enable_wininet implib,po
15407 wine_fn_config_test dlls/wininet/tests wininet_test
15408 wine_fn_config_dll winmm enable_winmm implib,po
15409 wine_fn_config_test dlls/winmm/tests winmm_test
15410 wine_fn_config_dll winnls.dll16 enable_win16
15411 wine_fn_config_dll winnls32 enable_winnls32 implib
15412 wine_fn_config_dll winscard enable_winscard implib
15413 wine_fn_config_dll winsock.dll16 enable_win16
15414 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15415 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15416 wine_fn_config_dll winsta enable_winsta
15417 wine_fn_config_dll wintab.dll16 enable_win16
15418 wine_fn_config_dll wintab32 enable_wintab32 implib
15419 wine_fn_config_test dlls/wintab32/tests wintab32_test
15420 wine_fn_config_dll wintrust enable_wintrust implib
15421 wine_fn_config_test dlls/wintrust/tests wintrust_test
15422 wine_fn_config_dll wlanapi enable_wlanapi
15423 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15424 wine_fn_config_test dlls/wldap32/tests wldap32_test
15425 wine_fn_config_dll wmi enable_wmi
15426 wine_fn_config_dll wmiutils enable_wmiutils
15427 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15428 wine_fn_config_dll wow32 enable_win16 implib
15429 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15430 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15431 wine_fn_config_dll wshom.ocx enable_wshom_ocx
15432 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
15433 wine_fn_config_dll wsock32 enable_wsock32 implib
15434 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15435 wine_fn_config_dll wuapi enable_wuapi
15436 wine_fn_config_dll wuaueng enable_wuaueng
15437 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15438 wine_fn_config_dll xinput1_1 enable_xinput1_1
15439 wine_fn_config_dll xinput1_2 enable_xinput1_2
15440 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15441 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15442 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15443 wine_fn_config_dll xmllite enable_xmllite
15444 wine_fn_config_test dlls/xmllite/tests xmllite_test
15445 wine_fn_config_dll xolehlp enable_xolehlp
15446 wine_fn_config_dll xpsprint enable_xpsprint
15447 wine_fn_config_makefile documentation enable_documentation
15448 wine_fn_config_makefile fonts enable_fonts install-lib
15449 wine_fn_config_makefile include enable_include install-dev
15450 wine_fn_config_makefile libs/port enable_libs_port
15451 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15452 wine_fn_config_makefile libs/wpp enable_libs_wpp
15453 wine_fn_config_makefile loader enable_loader install-lib,manpage
15454 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15455 wine_fn_config_program attrib enable_attrib install,po
15456 wine_fn_config_program cabarc enable_cabarc install
15457 wine_fn_config_program cacls enable_cacls install
15458 wine_fn_config_program clock enable_clock install,po
15459 wine_fn_config_program cmd enable_cmd install,po
15460 wine_fn_config_test programs/cmd/tests cmd.exe_test
15461 wine_fn_config_program control enable_control install
15462 wine_fn_config_program cscript enable_cscript install
15463 wine_fn_config_program dxdiag enable_dxdiag install,po
15464 wine_fn_config_program eject enable_eject install
15465 wine_fn_config_program expand enable_expand install
15466 wine_fn_config_program explorer enable_explorer install,po
15467 wine_fn_config_program extrac32 enable_extrac32 install
15468 wine_fn_config_program hh enable_hh install
15469 wine_fn_config_program hostname enable_hostname install,po
15470 wine_fn_config_program icinfo enable_icinfo install
15471 wine_fn_config_program iexplore enable_iexplore install
15472 wine_fn_config_program ipconfig enable_ipconfig install,po
15473 wine_fn_config_program lodctr enable_lodctr install
15474 wine_fn_config_program mofcomp enable_mofcomp install
15475 wine_fn_config_program mshta enable_mshta install
15476 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
15477 wine_fn_config_program net enable_net install,po
15478 wine_fn_config_program netsh enable_netsh install
15479 wine_fn_config_program ngen enable_ngen install
15480 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
15481 wine_fn_config_program oleview enable_oleview install,po
15482 wine_fn_config_program ping enable_ping install
15483 wine_fn_config_program plugplay enable_plugplay install
15484 wine_fn_config_program presentationfontcache enable_presentationfontcache install
15485 wine_fn_config_program progman enable_progman install,po
15486 wine_fn_config_program reg enable_reg install,po
15487 wine_fn_config_program regasm enable_regasm install
15488 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
15489 wine_fn_config_test programs/regedit/tests regedit.exe_test
15490 wine_fn_config_program regsvcs enable_regsvcs install
15491 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
15492 wine_fn_config_program rpcss enable_rpcss install
15493 wine_fn_config_program rundll.exe16 enable_win16 install
15494 wine_fn_config_program rundll32 enable_rundll32 install
15495 wine_fn_config_program sc enable_sc install
15496 wine_fn_config_program secedit enable_secedit install
15497 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15498 wine_fn_config_program services enable_services install
15499 wine_fn_config_program spoolsv enable_spoolsv install
15500 wine_fn_config_program start enable_start install,po
15501 wine_fn_config_program svchost enable_svchost install
15502 wine_fn_config_program taskkill enable_taskkill install,po
15503 wine_fn_config_program taskmgr enable_taskmgr install,po
15504 wine_fn_config_program termsv enable_termsv install
15505 wine_fn_config_program uninstaller enable_uninstaller install,po
15506 wine_fn_config_program unlodctr enable_unlodctr install
15507 wine_fn_config_program view enable_view install,po
15508 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
15509 wine_fn_config_program winebrowser enable_winebrowser install
15510 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15511 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15512 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
15513 wine_fn_config_program winedevice enable_winedevice install
15514 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
15515 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15516 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
15517 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15518 wine_fn_config_program winepath enable_winepath install,installbin,manpage
15519 wine_fn_config_program winetest enable_winetest
15520 wine_fn_config_program winevdm enable_win16 install
15521 wine_fn_config_program winhelp.exe16 enable_win16 install
15522 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15523 wine_fn_config_program winoldap.mod16 enable_win16 install
15524 wine_fn_config_program winver enable_winver install
15525 wine_fn_config_program wmic enable_wmic install
15526 wine_fn_config_program wordpad enable_wordpad install,po
15527 wine_fn_config_program write enable_write install,po
15528 wine_fn_config_program wscript enable_wscript install
15529 wine_fn_config_test programs/wscript/tests wscript.exe_test
15530 wine_fn_config_program xcopy enable_xcopy install,po
15531 wine_fn_config_makefile server enable_server install-lib,manpage
15532 wine_fn_config_tool tools install-dev,install-lib,manpage
15533 wine_fn_config_tool tools/widl install-dev,manpage
15534 wine_fn_config_tool tools/winebuild install-dev,manpage
15535 wine_fn_config_tool tools/winedump install-dev,manpage
15536 wine_fn_config_tool tools/winegcc install-dev,manpage
15537 wine_fn_config_tool tools/wmc install-dev,manpage
15538 wine_fn_config_tool tools/wrc install-dev,manpage
15540 LINGUAS="\
15541 ar \
15542 bg \
15543 ca \
15544 cs \
15545 da \
15546 de \
15547 el \
15548 en \
15549 en_US \
15550 eo \
15551 es \
15552 fa \
15553 fi \
15554 fr \
15555 he \
15556 hi \
15557 hu \
15558 it \
15559 ja \
15560 ko \
15561 lt \
15562 ml \
15563 nb_NO \
15564 nl \
15565 or \
15566 pa \
15567 pl \
15568 pt_BR \
15569 pt_PT \
15570 rm \
15571 ro \
15572 ru \
15573 sk \
15574 sl \
15575 sr_RS@cyrillic \
15576 sr_RS@latin \
15577 sv \
15578 te \
15579 th \
15580 tr \
15581 uk \
15582 wa \
15583 zh_CN \
15584 zh_TW"
15588 ac_config_commands="$ac_config_commands Makefile"
15591 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15595 if test "x$enable_maintainer_mode" = xyes
15596 then
15597 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15598 cd \$(srcdir) && autoconf --warnings=all
15599 \$(srcdir)/include/config.h.in: include/stamp-h.in
15600 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15601 cd \$(srcdir) && autoheader --warnings=all
15602 @echo timestamp > \$@"
15605 if test "x$with_gettextpo" = xyes
15606 then
15607 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15608 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15609 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
15610 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15611 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15612 msgcat -o \$@ \$(ALL_POT_FILES)"
15615 if test "$MSGFMT" != false
15616 then
15617 PORCFLAGS="--po-dir=\$(top_builddir)/po"
15619 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
15620 else
15621 LINGUAS=
15624 if test "x$enable_tools" != xno
15625 then
15626 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15627 clean:: __clean__
15628 \$(RM) tools/makedep\$(EXEEXT)"
15631 if test -n "$with_wine64"
15632 then
15633 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15634 fonts server tools:
15635 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15636 $with_wine64/loader/wine:
15637 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15638 $with_wine64/loader/wine-preloader:
15639 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15640 clean::
15641 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15644 cat >confcache <<\_ACEOF
15645 # This file is a shell script that caches the results of configure
15646 # tests run on this system so they can be shared between configure
15647 # scripts and configure runs, see configure's option --config-cache.
15648 # It is not useful on other systems. If it contains results you don't
15649 # want to keep, you may remove or edit it.
15651 # config.status only pays attention to the cache file if you give it
15652 # the --recheck option to rerun configure.
15654 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15656 # following values.
15658 _ACEOF
15660 # The following way of writing the cache mishandles newlines in values,
15661 # but we know of no workaround that is simple, portable, and efficient.
15662 # So, we kill variables containing newlines.
15663 # Ultrix sh set writes to stderr and can't be redirected directly,
15664 # and sets the high bit in the cache file unless we assign to the vars.
15666 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15667 eval ac_val=\$$ac_var
15668 case $ac_val in #(
15669 *${as_nl}*)
15670 case $ac_var in #(
15671 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15672 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15673 esac
15674 case $ac_var in #(
15675 _ | IFS | as_nl) ;; #(
15676 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15677 *) { eval $ac_var=; unset $ac_var;} ;;
15678 esac ;;
15679 esac
15680 done
15682 (set) 2>&1 |
15683 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15684 *${as_nl}ac_space=\ *)
15685 # `set' does not quote correctly, so add quotes: double-quote
15686 # substitution turns \\\\ into \\, and sed turns \\ into \.
15687 sed -n \
15688 "s/'/'\\\\''/g;
15689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15690 ;; #(
15692 # `set' quotes correctly as required by POSIX, so do not add quotes.
15693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15695 esac |
15696 sort
15698 sed '
15699 /^ac_cv_env_/b end
15700 t clear
15701 :clear
15702 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15703 t end
15704 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15705 :end' >>confcache
15706 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15707 if test -w "$cache_file"; then
15708 if test "x$cache_file" != "x/dev/null"; then
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15710 $as_echo "$as_me: updating cache $cache_file" >&6;}
15711 if test ! -f "$cache_file" || test -h "$cache_file"; then
15712 cat confcache >"$cache_file"
15713 else
15714 case $cache_file in #(
15715 */* | ?:*)
15716 mv -f confcache "$cache_file"$$ &&
15717 mv -f "$cache_file"$$ "$cache_file" ;; #(
15719 mv -f confcache "$cache_file" ;;
15720 esac
15723 else
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15725 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15728 rm -f confcache
15730 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15731 # Let make expand exec_prefix.
15732 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15734 DEFS=-DHAVE_CONFIG_H
15736 ac_libobjs=
15737 ac_ltlibobjs=
15739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15740 # 1. Remove the extension, and $U if already installed.
15741 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15742 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15743 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15744 # will be set to the directory where LIBOBJS objects are built.
15745 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15746 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15747 done
15748 LIBOBJS=$ac_libobjs
15750 LTLIBOBJS=$ac_ltlibobjs
15754 : "${CONFIG_STATUS=./config.status}"
15755 ac_write_fail=0
15756 ac_clean_files_save=$ac_clean_files
15757 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15759 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15760 as_write_fail=0
15761 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15762 #! $SHELL
15763 # Generated by $as_me.
15764 # Run this file to recreate the current configuration.
15765 # Compiler output produced by configure, useful for debugging
15766 # configure, is in config.log if it exists.
15768 debug=false
15769 ac_cs_recheck=false
15770 ac_cs_silent=false
15772 SHELL=\${CONFIG_SHELL-$SHELL}
15773 export SHELL
15774 _ASEOF
15775 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15776 ## -------------------- ##
15777 ## M4sh Initialization. ##
15778 ## -------------------- ##
15780 # Be more Bourne compatible
15781 DUALCASE=1; export DUALCASE # for MKS sh
15782 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15783 emulate sh
15784 NULLCMD=:
15785 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15786 # is contrary to our usage. Disable this feature.
15787 alias -g '${1+"$@"}'='"$@"'
15788 setopt NO_GLOB_SUBST
15789 else
15790 case `(set -o) 2>/dev/null` in #(
15791 *posix*) :
15792 set -o posix ;; #(
15793 *) :
15795 esac
15799 as_nl='
15801 export as_nl
15802 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15803 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15804 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15805 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15806 # Prefer a ksh shell builtin over an external printf program on Solaris,
15807 # but without wasting forks for bash or zsh.
15808 if test -z "$BASH_VERSION$ZSH_VERSION" \
15809 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15810 as_echo='print -r --'
15811 as_echo_n='print -rn --'
15812 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15813 as_echo='printf %s\n'
15814 as_echo_n='printf %s'
15815 else
15816 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15817 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15818 as_echo_n='/usr/ucb/echo -n'
15819 else
15820 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15821 as_echo_n_body='eval
15822 arg=$1;
15823 case $arg in #(
15824 *"$as_nl"*)
15825 expr "X$arg" : "X\\(.*\\)$as_nl";
15826 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15827 esac;
15828 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15830 export as_echo_n_body
15831 as_echo_n='sh -c $as_echo_n_body as_echo'
15833 export as_echo_body
15834 as_echo='sh -c $as_echo_body as_echo'
15837 # The user is always right.
15838 if test "${PATH_SEPARATOR+set}" != set; then
15839 PATH_SEPARATOR=:
15840 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15841 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15842 PATH_SEPARATOR=';'
15847 # IFS
15848 # We need space, tab and new line, in precisely that order. Quoting is
15849 # there to prevent editors from complaining about space-tab.
15850 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15851 # splitting by setting IFS to empty value.)
15852 IFS=" "" $as_nl"
15854 # Find who we are. Look in the path if we contain no directory separator.
15855 as_myself=
15856 case $0 in #((
15857 *[\\/]* ) as_myself=$0 ;;
15858 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15859 for as_dir in $PATH
15861 IFS=$as_save_IFS
15862 test -z "$as_dir" && as_dir=.
15863 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15864 done
15865 IFS=$as_save_IFS
15868 esac
15869 # We did not find ourselves, most probably we were run as `sh COMMAND'
15870 # in which case we are not to be found in the path.
15871 if test "x$as_myself" = x; then
15872 as_myself=$0
15874 if test ! -f "$as_myself"; then
15875 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15876 exit 1
15879 # Unset variables that we do not need and which cause bugs (e.g. in
15880 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15881 # suppresses any "Segmentation fault" message there. '((' could
15882 # trigger a bug in pdksh 5.2.14.
15883 for as_var in BASH_ENV ENV MAIL MAILPATH
15884 do eval test x\${$as_var+set} = xset \
15885 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15886 done
15887 PS1='$ '
15888 PS2='> '
15889 PS4='+ '
15891 # NLS nuisances.
15892 LC_ALL=C
15893 export LC_ALL
15894 LANGUAGE=C
15895 export LANGUAGE
15897 # CDPATH.
15898 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15901 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15902 # ----------------------------------------
15903 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15904 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15905 # script with STATUS, using 1 if that was 0.
15906 as_fn_error ()
15908 as_status=$1; test $as_status -eq 0 && as_status=1
15909 if test "$4"; then
15910 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15911 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15913 $as_echo "$as_me: error: $2" >&2
15914 as_fn_exit $as_status
15915 } # as_fn_error
15918 # as_fn_set_status STATUS
15919 # -----------------------
15920 # Set $? to STATUS, without forking.
15921 as_fn_set_status ()
15923 return $1
15924 } # as_fn_set_status
15926 # as_fn_exit STATUS
15927 # -----------------
15928 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15929 as_fn_exit ()
15931 set +e
15932 as_fn_set_status $1
15933 exit $1
15934 } # as_fn_exit
15936 # as_fn_unset VAR
15937 # ---------------
15938 # Portably unset VAR.
15939 as_fn_unset ()
15941 { eval $1=; unset $1;}
15943 as_unset=as_fn_unset
15944 # as_fn_append VAR VALUE
15945 # ----------------------
15946 # Append the text in VALUE to the end of the definition contained in VAR. Take
15947 # advantage of any shell optimizations that allow amortized linear growth over
15948 # repeated appends, instead of the typical quadratic growth present in naive
15949 # implementations.
15950 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15951 eval 'as_fn_append ()
15953 eval $1+=\$2
15955 else
15956 as_fn_append ()
15958 eval $1=\$$1\$2
15960 fi # as_fn_append
15962 # as_fn_arith ARG...
15963 # ------------------
15964 # Perform arithmetic evaluation on the ARGs, and store the result in the
15965 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15966 # must be portable across $(()) and expr.
15967 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15968 eval 'as_fn_arith ()
15970 as_val=$(( $* ))
15972 else
15973 as_fn_arith ()
15975 as_val=`expr "$@" || test $? -eq 1`
15977 fi # as_fn_arith
15980 if expr a : '\(a\)' >/dev/null 2>&1 &&
15981 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15982 as_expr=expr
15983 else
15984 as_expr=false
15987 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15988 as_basename=basename
15989 else
15990 as_basename=false
15993 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15994 as_dirname=dirname
15995 else
15996 as_dirname=false
15999 as_me=`$as_basename -- "$0" ||
16000 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16001 X"$0" : 'X\(//\)$' \| \
16002 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16003 $as_echo X/"$0" |
16004 sed '/^.*\/\([^/][^/]*\)\/*$/{
16005 s//\1/
16008 /^X\/\(\/\/\)$/{
16009 s//\1/
16012 /^X\/\(\/\).*/{
16013 s//\1/
16016 s/.*/./; q'`
16018 # Avoid depending upon Character Ranges.
16019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16022 as_cr_digits='0123456789'
16023 as_cr_alnum=$as_cr_Letters$as_cr_digits
16025 ECHO_C= ECHO_N= ECHO_T=
16026 case `echo -n x` in #(((((
16027 -n*)
16028 case `echo 'xy\c'` in
16029 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16030 xy) ECHO_C='\c';;
16031 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16032 ECHO_T=' ';;
16033 esac;;
16035 ECHO_N='-n';;
16036 esac
16038 rm -f conf$$ conf$$.exe conf$$.file
16039 if test -d conf$$.dir; then
16040 rm -f conf$$.dir/conf$$.file
16041 else
16042 rm -f conf$$.dir
16043 mkdir conf$$.dir 2>/dev/null
16045 if (echo >conf$$.file) 2>/dev/null; then
16046 if ln -s conf$$.file conf$$ 2>/dev/null; then
16047 as_ln_s='ln -s'
16048 # ... but there are two gotchas:
16049 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16050 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16051 # In both cases, we have to default to `cp -p'.
16052 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16053 as_ln_s='cp -p'
16054 elif ln conf$$.file conf$$ 2>/dev/null; then
16055 as_ln_s=ln
16056 else
16057 as_ln_s='cp -p'
16059 else
16060 as_ln_s='cp -p'
16062 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16063 rmdir conf$$.dir 2>/dev/null
16066 # as_fn_mkdir_p
16067 # -------------
16068 # Create "$as_dir" as a directory, including parents if necessary.
16069 as_fn_mkdir_p ()
16072 case $as_dir in #(
16073 -*) as_dir=./$as_dir;;
16074 esac
16075 test -d "$as_dir" || eval $as_mkdir_p || {
16076 as_dirs=
16077 while :; do
16078 case $as_dir in #(
16079 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16080 *) as_qdir=$as_dir;;
16081 esac
16082 as_dirs="'$as_qdir' $as_dirs"
16083 as_dir=`$as_dirname -- "$as_dir" ||
16084 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16085 X"$as_dir" : 'X\(//\)[^/]' \| \
16086 X"$as_dir" : 'X\(//\)$' \| \
16087 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16088 $as_echo X"$as_dir" |
16089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16090 s//\1/
16093 /^X\(\/\/\)[^/].*/{
16094 s//\1/
16097 /^X\(\/\/\)$/{
16098 s//\1/
16101 /^X\(\/\).*/{
16102 s//\1/
16105 s/.*/./; q'`
16106 test -d "$as_dir" && break
16107 done
16108 test -z "$as_dirs" || eval "mkdir $as_dirs"
16109 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16112 } # as_fn_mkdir_p
16113 if mkdir -p . 2>/dev/null; then
16114 as_mkdir_p='mkdir -p "$as_dir"'
16115 else
16116 test -d ./-p && rmdir ./-p
16117 as_mkdir_p=false
16120 if test -x / >/dev/null 2>&1; then
16121 as_test_x='test -x'
16122 else
16123 if ls -dL / >/dev/null 2>&1; then
16124 as_ls_L_option=L
16125 else
16126 as_ls_L_option=
16128 as_test_x='
16129 eval sh -c '\''
16130 if test -d "$1"; then
16131 test -d "$1/.";
16132 else
16133 case $1 in #(
16134 -*)set "./$1";;
16135 esac;
16136 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16137 ???[sx]*):;;*)false;;esac;fi
16138 '\'' sh
16141 as_executable_p=$as_test_x
16143 # Sed expression to map a string onto a valid CPP name.
16144 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16146 # Sed expression to map a string onto a valid variable name.
16147 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16150 exec 6>&1
16151 ## ----------------------------------- ##
16152 ## Main body of $CONFIG_STATUS script. ##
16153 ## ----------------------------------- ##
16154 _ASEOF
16155 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16158 # Save the log message, to keep $0 and so on meaningful, and to
16159 # report actual input values of CONFIG_FILES etc. instead of their
16160 # values after options handling.
16161 ac_log="
16162 This file was extended by Wine $as_me 1.3.37, which was
16163 generated by GNU Autoconf 2.68. Invocation command line was
16165 CONFIG_FILES = $CONFIG_FILES
16166 CONFIG_HEADERS = $CONFIG_HEADERS
16167 CONFIG_LINKS = $CONFIG_LINKS
16168 CONFIG_COMMANDS = $CONFIG_COMMANDS
16169 $ $0 $@
16171 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16174 _ACEOF
16176 case $ac_config_files in *"
16177 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16178 esac
16180 case $ac_config_headers in *"
16181 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16182 esac
16185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16186 # Files that config.status was made for.
16187 config_files="$ac_config_files"
16188 config_headers="$ac_config_headers"
16189 config_links="$ac_config_links"
16190 config_commands="$ac_config_commands"
16192 _ACEOF
16194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16195 ac_cs_usage="\
16196 \`$as_me' instantiates files and other configuration actions
16197 from templates according to the current configuration. Unless the files
16198 and actions are specified as TAGs, all are instantiated by default.
16200 Usage: $0 [OPTION]... [TAG]...
16202 -h, --help print this help, then exit
16203 -V, --version print version number and configuration settings, then exit
16204 --config print configuration, then exit
16205 -q, --quiet, --silent
16206 do not print progress messages
16207 -d, --debug don't remove temporary files
16208 --recheck update $as_me by reconfiguring in the same conditions
16209 --file=FILE[:TEMPLATE]
16210 instantiate the configuration file FILE
16211 --header=FILE[:TEMPLATE]
16212 instantiate the configuration header FILE
16214 Configuration files:
16215 $config_files
16217 Configuration headers:
16218 $config_headers
16220 Configuration links:
16221 $config_links
16223 Configuration commands:
16224 $config_commands
16226 Report bugs to <wine-devel@winehq.org>.
16227 Wine home page: <http://www.winehq.org>."
16229 _ACEOF
16230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16231 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16232 ac_cs_version="\\
16233 Wine config.status 1.3.37
16234 configured by $0, generated by GNU Autoconf 2.68,
16235 with options \\"\$ac_cs_config\\"
16237 Copyright (C) 2010 Free Software Foundation, Inc.
16238 This config.status script is free software; the Free Software Foundation
16239 gives unlimited permission to copy, distribute and modify it."
16241 ac_pwd='$ac_pwd'
16242 srcdir='$srcdir'
16243 INSTALL='$INSTALL'
16244 test -n "\$AWK" || AWK=awk
16245 _ACEOF
16247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16248 # The default lists apply if the user does not specify any file.
16249 ac_need_defaults=:
16250 while test $# != 0
16252 case $1 in
16253 --*=?*)
16254 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16255 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16256 ac_shift=:
16258 --*=)
16259 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16260 ac_optarg=
16261 ac_shift=:
16264 ac_option=$1
16265 ac_optarg=$2
16266 ac_shift=shift
16268 esac
16270 case $ac_option in
16271 # Handling of the options.
16272 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16273 ac_cs_recheck=: ;;
16274 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16275 $as_echo "$ac_cs_version"; exit ;;
16276 --config | --confi | --conf | --con | --co | --c )
16277 $as_echo "$ac_cs_config"; exit ;;
16278 --debug | --debu | --deb | --de | --d | -d )
16279 debug=: ;;
16280 --file | --fil | --fi | --f )
16281 $ac_shift
16282 case $ac_optarg in
16283 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16284 '') as_fn_error $? "missing file argument" ;;
16285 esac
16286 as_fn_append CONFIG_FILES " '$ac_optarg'"
16287 ac_need_defaults=false;;
16288 --header | --heade | --head | --hea )
16289 $ac_shift
16290 case $ac_optarg in
16291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16292 esac
16293 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16294 ac_need_defaults=false;;
16295 --he | --h)
16296 # Conflict between --help and --header
16297 as_fn_error $? "ambiguous option: \`$1'
16298 Try \`$0 --help' for more information.";;
16299 --help | --hel | -h )
16300 $as_echo "$ac_cs_usage"; exit ;;
16301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16302 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16303 ac_cs_silent=: ;;
16305 # This is an error.
16306 -*) as_fn_error $? "unrecognized option: \`$1'
16307 Try \`$0 --help' for more information." ;;
16309 *) as_fn_append ac_config_targets " $1"
16310 ac_need_defaults=false ;;
16312 esac
16313 shift
16314 done
16316 ac_configure_extra_args=
16318 if $ac_cs_silent; then
16319 exec 6>/dev/null
16320 ac_configure_extra_args="$ac_configure_extra_args --silent"
16323 _ACEOF
16324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16325 if \$ac_cs_recheck; then
16326 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16327 shift
16328 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16329 CONFIG_SHELL='$SHELL'
16330 export CONFIG_SHELL
16331 exec "\$@"
16334 _ACEOF
16335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16336 exec 5>>config.log
16338 echo
16339 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16340 ## Running $as_me. ##
16341 _ASBOX
16342 $as_echo "$ac_log"
16343 } >&5
16345 _ACEOF
16346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16348 # INIT-COMMANDS
16350 wine_fn_output_makefile ()
16352 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16353 $ALL_MAKEFILE_DEPENDS
16354 _WINE_EOF
16355 as_fn_error $? "could not create Makefile" "$LINENO" 5
16358 _ACEOF
16360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16362 # Handling of arguments.
16363 for ac_config_target in $ac_config_targets
16365 case $ac_config_target in
16366 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16367 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16368 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16369 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16370 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16371 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16372 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16373 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16374 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
16375 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16376 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16377 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16378 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16379 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16380 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16381 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16382 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16383 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16384 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16385 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16386 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16387 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16388 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16389 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16390 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16391 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16393 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16394 esac
16395 done
16398 # If the user did not use the arguments to specify the items to instantiate,
16399 # then the envvar interface is used. Set only those that are not.
16400 # We use the long form for the default assignment because of an extremely
16401 # bizarre bug on SunOS 4.1.3.
16402 if $ac_need_defaults; then
16403 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16404 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16405 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16406 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16409 # Have a temporary directory for convenience. Make it in the build tree
16410 # simply because there is no reason against having it here, and in addition,
16411 # creating and moving files from /tmp can sometimes cause problems.
16412 # Hook for its removal unless debugging.
16413 # Note that there is a small window in which the directory will not be cleaned:
16414 # after its creation but before its name has been assigned to `$tmp'.
16415 $debug ||
16417 tmp= ac_tmp=
16418 trap 'exit_status=$?
16419 : "${ac_tmp:=$tmp}"
16420 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16422 trap 'as_fn_exit 1' 1 2 13 15
16424 # Create a (secure) tmp directory for tmp files.
16427 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16428 test -d "$tmp"
16429 } ||
16431 tmp=./conf$$-$RANDOM
16432 (umask 077 && mkdir "$tmp")
16433 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16434 ac_tmp=$tmp
16436 # Set up the scripts for CONFIG_FILES section.
16437 # No need to generate them if there are no CONFIG_FILES.
16438 # This happens for instance with `./config.status config.h'.
16439 if test -n "$CONFIG_FILES"; then
16441 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16442 ac_cs_awk_getline=:
16443 ac_cs_awk_pipe_init=
16444 ac_cs_awk_read_file='
16445 while ((getline aline < (F[key])) > 0)
16446 print(aline)
16447 close(F[key])'
16448 ac_cs_awk_pipe_fini=
16449 else
16450 ac_cs_awk_getline=false
16451 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16452 ac_cs_awk_read_file='
16453 print "|#_!!_#|"
16454 print "cat " F[key] " &&"
16455 '$ac_cs_awk_pipe_init
16456 # The final `:' finishes the AND list.
16457 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16459 ac_cr=`echo X | tr X '\015'`
16460 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16461 # But we know of no other shell where ac_cr would be empty at this
16462 # point, so we can use a bashism as a fallback.
16463 if test "x$ac_cr" = x; then
16464 eval ac_cr=\$\'\\r\'
16466 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16467 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16468 ac_cs_awk_cr='\\r'
16469 else
16470 ac_cs_awk_cr=$ac_cr
16473 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16474 _ACEOF
16476 # Create commands to substitute file output variables.
16478 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16479 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16480 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16481 echo "_ACAWK" &&
16482 echo "_ACEOF"
16483 } >conf$$files.sh &&
16484 . ./conf$$files.sh ||
16485 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16486 rm -f conf$$files.sh
16489 echo "cat >conf$$subs.awk <<_ACEOF" &&
16490 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16491 echo "_ACEOF"
16492 } >conf$$subs.sh ||
16493 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16494 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16495 ac_delim='%!_!# '
16496 for ac_last_try in false false false false false :; do
16497 . ./conf$$subs.sh ||
16498 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16500 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16501 if test $ac_delim_n = $ac_delim_num; then
16502 break
16503 elif $ac_last_try; then
16504 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16505 else
16506 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16508 done
16509 rm -f conf$$subs.sh
16511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16512 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16513 _ACEOF
16514 sed -n '
16516 s/^/S["/; s/!.*/"]=/
16519 s/^[^!]*!//
16520 :repl
16521 t repl
16522 s/'"$ac_delim"'$//
16523 t delim
16526 s/\(.\{148\}\)..*/\1/
16527 t more1
16528 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16531 b repl
16532 :more1
16533 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16536 s/.\{148\}//
16537 t nl
16538 :delim
16540 s/\(.\{148\}\)..*/\1/
16541 t more2
16542 s/["\\]/\\&/g; s/^/"/; s/$/"/
16545 :more2
16546 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16549 s/.\{148\}//
16550 t delim
16551 ' <conf$$subs.awk | sed '
16552 /^[^""]/{
16554 s/\n//
16556 ' >>$CONFIG_STATUS || ac_write_fail=1
16557 rm -f conf$$subs.awk
16558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16559 _ACAWK
16560 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16561 for (key in S) S_is_set[key] = 1
16562 FS = "\a"
16563 \$ac_cs_awk_pipe_init
16566 line = $ 0
16567 nfields = split(line, field, "@")
16568 substed = 0
16569 len = length(field[1])
16570 for (i = 2; i < nfields; i++) {
16571 key = field[i]
16572 keylen = length(key)
16573 if (S_is_set[key]) {
16574 value = S[key]
16575 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16576 len += length(value) + length(field[++i])
16577 substed = 1
16578 } else
16579 len += 1 + keylen
16581 if (nfields == 3 && !substed) {
16582 key = field[2]
16583 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16584 \$ac_cs_awk_read_file
16585 next
16588 print line
16590 \$ac_cs_awk_pipe_fini
16591 _ACAWK
16592 _ACEOF
16593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16594 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16595 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16596 else
16598 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16599 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16600 _ACEOF
16602 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16603 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16604 # trailing colons and then remove the whole line if VPATH becomes empty
16605 # (actually we leave an empty line to preserve line numbers).
16606 if test "x$srcdir" = x.; then
16607 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16609 s///
16610 s/^/:/
16611 s/[ ]*$/:/
16612 s/:\$(srcdir):/:/g
16613 s/:\${srcdir}:/:/g
16614 s/:@srcdir@:/:/g
16615 s/^:*//
16616 s/:*$//
16618 s/\(=[ ]*\).*/\1/
16620 s/\n//
16621 s/^[^=]*=[ ]*$//
16625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16626 fi # test -n "$CONFIG_FILES"
16628 # Set up the scripts for CONFIG_HEADERS section.
16629 # No need to generate them if there are no CONFIG_HEADERS.
16630 # This happens for instance with `./config.status Makefile'.
16631 if test -n "$CONFIG_HEADERS"; then
16632 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16633 BEGIN {
16634 _ACEOF
16636 # Transform confdefs.h into an awk script `defines.awk', embedded as
16637 # here-document in config.status, that substitutes the proper values into
16638 # config.h.in to produce config.h.
16640 # Create a delimiter string that does not exist in confdefs.h, to ease
16641 # handling of long lines.
16642 ac_delim='%!_!# '
16643 for ac_last_try in false false :; do
16644 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16645 if test -z "$ac_tt"; then
16646 break
16647 elif $ac_last_try; then
16648 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16649 else
16650 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16652 done
16654 # For the awk script, D is an array of macro values keyed by name,
16655 # likewise P contains macro parameters if any. Preserve backslash
16656 # newline sequences.
16658 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16659 sed -n '
16660 s/.\{148\}/&'"$ac_delim"'/g
16661 t rset
16662 :rset
16663 s/^[ ]*#[ ]*define[ ][ ]*/ /
16664 t def
16666 :def
16667 s/\\$//
16668 t bsnl
16669 s/["\\]/\\&/g
16670 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16671 D["\1"]=" \3"/p
16672 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16674 :bsnl
16675 s/["\\]/\\&/g
16676 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16677 D["\1"]=" \3\\\\\\n"\\/p
16678 t cont
16679 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16680 t cont
16682 :cont
16684 s/.\{148\}/&'"$ac_delim"'/g
16685 t clear
16686 :clear
16687 s/\\$//
16688 t bsnlc
16689 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16691 :bsnlc
16692 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16693 b cont
16694 ' <confdefs.h | sed '
16695 s/'"$ac_delim"'/"\\\
16696 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16699 for (key in D) D_is_set[key] = 1
16700 FS = "\a"
16702 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16703 line = \$ 0
16704 split(line, arg, " ")
16705 if (arg[1] == "#") {
16706 defundef = arg[2]
16707 mac1 = arg[3]
16708 } else {
16709 defundef = substr(arg[1], 2)
16710 mac1 = arg[2]
16712 split(mac1, mac2, "(") #)
16713 macro = mac2[1]
16714 prefix = substr(line, 1, index(line, defundef) - 1)
16715 if (D_is_set[macro]) {
16716 # Preserve the white space surrounding the "#".
16717 print prefix "define", macro P[macro] D[macro]
16718 next
16719 } else {
16720 # Replace #undef with comments. This is necessary, for example,
16721 # in the case of _POSIX_SOURCE, which is predefined and required
16722 # on some systems where configure will not decide to define it.
16723 if (defundef == "undef") {
16724 print "/*", prefix defundef, macro, "*/"
16725 next
16729 { print }
16730 _ACAWK
16731 _ACEOF
16732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16733 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16734 fi # test -n "$CONFIG_HEADERS"
16737 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16738 shift
16739 for ac_tag
16741 case $ac_tag in
16742 :[FHLC]) ac_mode=$ac_tag; continue;;
16743 esac
16744 case $ac_mode$ac_tag in
16745 :[FHL]*:*);;
16746 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16747 :[FH]-) ac_tag=-:-;;
16748 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16749 esac
16750 ac_save_IFS=$IFS
16751 IFS=:
16752 set x $ac_tag
16753 IFS=$ac_save_IFS
16754 shift
16755 ac_file=$1
16756 shift
16758 case $ac_mode in
16759 :L) ac_source=$1;;
16760 :[FH])
16761 ac_file_inputs=
16762 for ac_f
16764 case $ac_f in
16765 -) ac_f="$ac_tmp/stdin";;
16766 *) # Look for the file first in the build tree, then in the source tree
16767 # (if the path is not absolute). The absolute path cannot be DOS-style,
16768 # because $ac_f cannot contain `:'.
16769 test -f "$ac_f" ||
16770 case $ac_f in
16771 [\\/$]*) false;;
16772 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16773 esac ||
16774 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16775 esac
16776 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16777 as_fn_append ac_file_inputs " '$ac_f'"
16778 done
16780 # Let's still pretend it is `configure' which instantiates (i.e., don't
16781 # use $as_me), people would be surprised to read:
16782 # /* config.h. Generated by config.status. */
16783 configure_input='Generated from '`
16784 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16785 `' by configure.'
16786 if test x"$ac_file" != x-; then
16787 configure_input="$ac_file. $configure_input"
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16789 $as_echo "$as_me: creating $ac_file" >&6;}
16791 # Neutralize special characters interpreted by sed in replacement strings.
16792 case $configure_input in #(
16793 *\&* | *\|* | *\\* )
16794 ac_sed_conf_input=`$as_echo "$configure_input" |
16795 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16796 *) ac_sed_conf_input=$configure_input;;
16797 esac
16799 case $ac_tag in
16800 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16801 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16802 esac
16804 esac
16806 ac_dir=`$as_dirname -- "$ac_file" ||
16807 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16808 X"$ac_file" : 'X\(//\)[^/]' \| \
16809 X"$ac_file" : 'X\(//\)$' \| \
16810 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16811 $as_echo X"$ac_file" |
16812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16813 s//\1/
16816 /^X\(\/\/\)[^/].*/{
16817 s//\1/
16820 /^X\(\/\/\)$/{
16821 s//\1/
16824 /^X\(\/\).*/{
16825 s//\1/
16828 s/.*/./; q'`
16829 as_dir="$ac_dir"; as_fn_mkdir_p
16830 ac_builddir=.
16832 case "$ac_dir" in
16833 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16835 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16836 # A ".." for each directory in $ac_dir_suffix.
16837 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16838 case $ac_top_builddir_sub in
16839 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16840 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16841 esac ;;
16842 esac
16843 ac_abs_top_builddir=$ac_pwd
16844 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16845 # for backward compatibility:
16846 ac_top_builddir=$ac_top_build_prefix
16848 case $srcdir in
16849 .) # We are building in place.
16850 ac_srcdir=.
16851 ac_top_srcdir=$ac_top_builddir_sub
16852 ac_abs_top_srcdir=$ac_pwd ;;
16853 [\\/]* | ?:[\\/]* ) # Absolute name.
16854 ac_srcdir=$srcdir$ac_dir_suffix;
16855 ac_top_srcdir=$srcdir
16856 ac_abs_top_srcdir=$srcdir ;;
16857 *) # Relative name.
16858 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16859 ac_top_srcdir=$ac_top_build_prefix$srcdir
16860 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16861 esac
16862 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16865 case $ac_mode in
16868 # CONFIG_FILE
16871 case $INSTALL in
16872 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16873 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16874 esac
16875 _ACEOF
16877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16878 # If the template does not know about datarootdir, expand it.
16879 # FIXME: This hack should be removed a few years after 2.60.
16880 ac_datarootdir_hack=; ac_datarootdir_seen=
16881 ac_sed_dataroot='
16882 /datarootdir/ {
16886 /@datadir@/p
16887 /@docdir@/p
16888 /@infodir@/p
16889 /@localedir@/p
16890 /@mandir@/p'
16891 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16892 *datarootdir*) ac_datarootdir_seen=yes;;
16893 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16895 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16896 _ACEOF
16897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16898 ac_datarootdir_hack='
16899 s&@datadir@&$datadir&g
16900 s&@docdir@&$docdir&g
16901 s&@infodir@&$infodir&g
16902 s&@localedir@&$localedir&g
16903 s&@mandir@&$mandir&g
16904 s&\\\${datarootdir}&$datarootdir&g' ;;
16905 esac
16906 _ACEOF
16908 # Neutralize VPATH when `$srcdir' = `.'.
16909 # Shell code in configure.ac might set extrasub.
16910 # FIXME: do we really want to maintain this feature?
16911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16912 ac_sed_extra="$ac_vpsub
16913 $extrasub
16914 _ACEOF
16915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16918 s|@configure_input@|$ac_sed_conf_input|;t t
16919 s&@top_builddir@&$ac_top_builddir_sub&;t t
16920 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16921 s&@srcdir@&$ac_srcdir&;t t
16922 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16923 s&@top_srcdir@&$ac_top_srcdir&;t t
16924 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16925 s&@builddir@&$ac_builddir&;t t
16926 s&@abs_builddir@&$ac_abs_builddir&;t t
16927 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16928 s&@INSTALL@&$ac_INSTALL&;t t
16929 $ac_datarootdir_hack
16931 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16932 if $ac_cs_awk_getline; then
16933 $AWK -f "$ac_tmp/subs.awk"
16934 else
16935 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16936 fi \
16937 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16939 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16940 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16941 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16942 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16944 which seems to be undefined. Please make sure it is defined" >&5
16945 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16946 which seems to be undefined. Please make sure it is defined" >&2;}
16948 rm -f "$ac_tmp/stdin"
16949 case $ac_file in
16950 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16951 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16952 esac \
16953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16957 # CONFIG_HEADER
16959 if test x"$ac_file" != x-; then
16961 $as_echo "/* $configure_input */" \
16962 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16963 } >"$ac_tmp/config.h" \
16964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16965 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16967 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16968 else
16969 rm -f "$ac_file"
16970 mv "$ac_tmp/config.h" "$ac_file" \
16971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16973 else
16974 $as_echo "/* $configure_input */" \
16975 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16976 || as_fn_error $? "could not create -" "$LINENO" 5
16981 # CONFIG_LINK
16984 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16986 else
16987 # Prefer the file from the source tree if names are identical.
16988 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16989 ac_source=$srcdir/$ac_source
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16993 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16995 if test ! -r "$ac_source"; then
16996 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16998 rm -f "$ac_file"
17000 # Try a relative symlink, then a hard link, then a copy.
17001 case $ac_source in
17002 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17003 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17004 esac
17005 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17006 ln "$ac_source" "$ac_file" 2>/dev/null ||
17007 cp -p "$ac_source" "$ac_file" ||
17008 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17011 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17012 $as_echo "$as_me: executing $ac_file commands" >&6;}
17014 esac
17017 case $ac_file$ac_mode in
17018 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17019 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17020 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17021 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17022 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17023 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17024 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17025 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17026 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17027 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17028 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17029 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17030 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17031 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17032 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17033 "Makefile":C) wine_fn_output_makefile Makefile ;;
17035 esac
17036 done # for ac_tag
17039 as_fn_exit 0
17040 _ACEOF
17041 ac_clean_files=$ac_clean_files_save
17043 test $ac_write_fail = 0 ||
17044 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17047 # configure is writing to config.log, and then calls config.status.
17048 # config.status does its own redirection, appending to config.log.
17049 # Unfortunately, on DOS this fails, as config.log is still kept open
17050 # by configure, so config.status won't be able to write to it; its
17051 # output is simply discarded. So we exec the FD to /dev/null,
17052 # effectively closing config.log, so it can be properly (re)opened and
17053 # appended to by config.status. When coming back to configure, we
17054 # need to make the FD available again.
17055 if test "$no_create" != yes; then
17056 ac_cs_success=:
17057 ac_config_status_args=
17058 test "$silent" = yes &&
17059 ac_config_status_args="$ac_config_status_args --quiet"
17060 exec 5>/dev/null
17061 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17062 exec 5>>config.log
17063 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17064 # would make configure fail if this is the last instruction.
17065 $ac_cs_success || as_fn_exit 1
17067 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17069 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17073 if test "$no_create" = "yes"
17074 then
17075 exit 0
17078 ac_save_IFS="$IFS"
17079 if test "x$wine_notices != "x; then
17080 echo >&6
17081 IFS="|"
17082 for msg in $wine_notices; do
17083 IFS="$ac_save_IFS"
17084 if test -n "$msg"; then
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17086 $as_echo "$as_me: $msg" >&6;}
17088 done
17090 IFS="|"
17091 for msg in $wine_warnings; do
17092 IFS="$ac_save_IFS"
17093 if test -n "$msg"; then
17094 echo >&2
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17096 $as_echo "$as_me: WARNING: $msg" >&2;}
17098 done
17099 IFS="$ac_save_IFS"
17101 echo "
17102 $as_me: Finished. Do '${ac_make}' to compile Wine.
17103 " >&6