winemac: Consolidate mouse move handling into -[WineApplicationController handleMouse...
[wine.git] / configure
blob8829b5e862cc23c080b97f3ac729ffc1809fc41c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.5.29.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: wine-devel@winehq.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='Wine'
582 PACKAGE_TARNAME='wine'
583 PACKAGE_VERSION='1.5.29'
584 PACKAGE_STRING='Wine 1.5.29'
585 PACKAGE_BUGREPORT='wine-devel@winehq.org'
586 PACKAGE_URL='http://www.winehq.org'
588 ac_unique_file="server/atom.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 PORCFLAGS
628 LINGUAS
629 ALL_TEST_RESOURCES
630 LDAPLIBS
631 LIBRT
632 LIBPOLL
633 LIBDL
634 EXTRA_BINARIES
635 MAIN_BINARY
636 TOOLSEXT
637 LDPATH
638 UNWINDFLAGS
639 BUILTINFLAG
640 EXTRACFLAGS
641 LIBKSTAT
642 LIBOPENAL
643 LIBMPG123
644 PNGINCL
645 FONTCONFIGINCL
646 CUPSINCL
647 OSS4INCL
648 ALSALIBS
649 GSTREAMER_LIBS
650 GSTREAMER_CFLAGS
651 LIBGETTEXTPO
652 ZLIB
653 FREETYPE_LIBS
654 FREETYPE_CFLAGS
655 LCMS_LIBS
656 LCMS_CFLAGS
657 RESOLVLIBS
658 GPHOTO2_PORT_LIBS
659 GPHOTO2_PORT_CFLAGS
660 GPHOTO2_LIBS
661 GPHOTO2_CFLAGS
662 SANE_LIBS
663 SANE_CFLAGS
664 GNUTLS_LIBS
665 GNUTLS_CFLAGS
666 HAL_LIBS
667 HAL_CFLAGS
668 DBUS_LIBS
669 DBUS_CFLAGS
670 XSLT_LIBS
671 XSLT_CFLAGS
672 XML2_LIBS
673 XML2_CFLAGS
674 PKG_CONFIG
675 X_EXTRA_LIBS
676 X_LIBS
677 X_PRE_LIBS
678 X_CFLAGS
679 XMKMF
680 LIBPTHREAD
681 CROSSTARGET
682 CROSSCC
683 CROSSTEST_DISABLE
684 PRELINK
685 CARBONLIB
686 QUICKTIMELIB
687 LIBOPENCL
688 FRAMEWORK_OPENAL
689 COREAUDIO
690 SECURITYLIB
691 DISKARBITRATIONLIB
692 LDEXECFLAGS
693 CORESERVICESLIB
694 APPLICATIONSERVICESLIB
695 IOKITLIB
696 COREFOUNDATIONLIB
697 LIBWINE_RULES
698 SOCKETLIBS
699 DLLWRAP
700 DLLTOOL
701 READELF
703 LDRPATH_LOCAL
704 LDRPATH_INSTALL
705 IMPLIBEXT
706 LDDLLFLAGS
707 DLLFLAGS
708 DLLEXT
710 OPENGL_LIBS
711 XLIB
712 MAINTAINER_MODE
713 MSGFMT
714 ICOTOOL
715 CONVERT
716 RSVG
717 FONTFORGE
718 LINTFLAGS
719 LINT
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 LDCONFIG
724 EGREP
725 GREP
726 LN_S
727 RANLIB
728 ARFLAGS
729 ac_ct_AR
731 BISON
732 FLEX
733 TOOLSDIR
734 WOW64_DISABLE
735 TARGETFLAGS
736 CPPBIN
737 ac_ct_CXX
738 CXXFLAGS
740 OBJEXT
741 EXEEXT
742 ac_ct_CC
743 CPPFLAGS
744 LDFLAGS
745 CFLAGS
747 SET_MAKE
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files='MAKE_RULES
795 MAKE_TEST_RULES
796 MAKE_DLL_RULES
797 MAKE_IMPLIB_RULES
798 MAKE_PROG_RULES'
799 ac_user_opts='
800 enable_option_checking
801 enable_win16
802 enable_win64
803 enable_tests
804 enable_maintainer_mode
805 with_alsa
806 with_capi
807 with_cms
808 with_coreaudio
809 with_cups
810 with_curses
811 with_dbus
812 with_fontconfig
813 with_freetype
814 with_gettext
815 with_gettextpo
816 with_gphoto
817 with_glu
818 with_gnutls
819 with_gsm
820 with_gstreamer
821 with_hal
822 with_jpeg
823 with_ldap
824 with_mpg123
825 with_openal
826 with_opencl
827 with_opengl
828 with_osmesa
829 with_oss
830 with_png
831 with_pthread
832 with_sane
833 with_tiff
834 with_v4l
835 with_xcomposite
836 with_xcursor
837 with_xinerama
838 with_xinput
839 with_xinput2
840 with_xml
841 with_xrandr
842 with_xrender
843 with_xshape
844 with_xshm
845 with_xslt
846 with_xxf86vm
847 with_zlib
848 with_wine_tools
849 with_wine64
850 enable_largefile
851 with_x
853 ac_precious_vars='build_alias
854 host_alias
855 target_alias
857 CFLAGS
858 LDFLAGS
859 LIBS
860 CPPFLAGS
862 CXXFLAGS
865 XMKMF
866 XML2_CFLAGS
867 XML2_LIBS
868 XSLT_CFLAGS
869 XSLT_LIBS
870 DBUS_CFLAGS
871 DBUS_LIBS
872 HAL_CFLAGS
873 HAL_LIBS
874 GNUTLS_CFLAGS
875 GNUTLS_LIBS
876 SANE_CFLAGS
877 SANE_LIBS
878 GPHOTO2_CFLAGS
879 GPHOTO2_LIBS
880 GPHOTO2_PORT_CFLAGS
881 GPHOTO2_PORT_LIBS
882 LCMS_CFLAGS
883 LCMS_LIBS
884 FREETYPE_CFLAGS
885 FREETYPE_LIBS
886 GSTREAMER_CFLAGS
887 GSTREAMER_LIBS'
890 # Initialize some variables set by options.
891 ac_init_help=
892 ac_init_version=false
893 ac_unrecognized_opts=
894 ac_unrecognized_sep=
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
938 ac_prev=
939 ac_dashdash=
940 for ac_option
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
944 eval $ac_prev=\$ac_option
945 ac_prev=
946 continue
949 case $ac_option in
950 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 *=) ac_optarg= ;;
952 *) ac_optarg=yes ;;
953 esac
955 # Accept the important Cygnus configure options, so we can diagnose typos.
957 case $ac_dashdash$ac_option in
959 ac_dashdash=yes ;;
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
962 ac_prev=bindir ;;
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964 bindir=$ac_optarg ;;
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
978 --config-cache | -C)
979 cache_file=config.cache ;;
981 -datadir | --datadir | --datadi | --datad)
982 ac_prev=datadir ;;
983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
984 datadir=$ac_optarg ;;
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
993 -disable-* | --disable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=no ;;
1009 -docdir | --docdir | --docdi | --doc | --do)
1010 ac_prev=docdir ;;
1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012 docdir=$ac_optarg ;;
1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 ac_prev=dvidir ;;
1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017 dvidir=$ac_optarg ;;
1019 -enable-* | --enable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error $? "invalid feature name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=\$ac_optarg ;;
1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037 | --exec | --exe | --ex)
1038 ac_prev=exec_prefix ;;
1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041 | --exec=* | --exe=* | --ex=*)
1042 exec_prefix=$ac_optarg ;;
1044 -gas | --gas | --ga | --g)
1045 # Obsolete; use --with-gas.
1046 with_gas=yes ;;
1048 -help | --help | --hel | --he | -h)
1049 ac_init_help=long ;;
1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051 ac_init_help=recursive ;;
1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053 ac_init_help=short ;;
1055 -host | --host | --hos | --ho)
1056 ac_prev=host_alias ;;
1057 -host=* | --host=* | --hos=* | --ho=*)
1058 host_alias=$ac_optarg ;;
1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061 ac_prev=htmldir ;;
1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063 | --ht=*)
1064 htmldir=$ac_optarg ;;
1066 -includedir | --includedir | --includedi | --included | --include \
1067 | --includ | --inclu | --incl | --inc)
1068 ac_prev=includedir ;;
1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070 | --includ=* | --inclu=* | --incl=* | --inc=*)
1071 includedir=$ac_optarg ;;
1073 -infodir | --infodir | --infodi | --infod | --info | --inf)
1074 ac_prev=infodir ;;
1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076 infodir=$ac_optarg ;;
1078 -libdir | --libdir | --libdi | --libd)
1079 ac_prev=libdir ;;
1080 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081 libdir=$ac_optarg ;;
1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084 | --libexe | --libex | --libe)
1085 ac_prev=libexecdir ;;
1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087 | --libexe=* | --libex=* | --libe=*)
1088 libexecdir=$ac_optarg ;;
1090 -localedir | --localedir | --localedi | --localed | --locale)
1091 ac_prev=localedir ;;
1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093 localedir=$ac_optarg ;;
1095 -localstatedir | --localstatedir | --localstatedi | --localstated \
1096 | --localstate | --localstat | --localsta | --localst | --locals)
1097 ac_prev=localstatedir ;;
1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100 localstatedir=$ac_optarg ;;
1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103 ac_prev=mandir ;;
1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105 mandir=$ac_optarg ;;
1107 -nfp | --nfp | --nf)
1108 # Obsolete; use --without-fp.
1109 with_fp=no ;;
1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112 | --no-cr | --no-c | -n)
1113 no_create=yes ;;
1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117 no_recursion=yes ;;
1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121 | --oldin | --oldi | --old | --ol | --o)
1122 ac_prev=oldincludedir ;;
1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126 oldincludedir=$ac_optarg ;;
1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129 ac_prev=prefix ;;
1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131 prefix=$ac_optarg ;;
1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134 | --program-pre | --program-pr | --program-p)
1135 ac_prev=program_prefix ;;
1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138 program_prefix=$ac_optarg ;;
1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141 | --program-suf | --program-su | --program-s)
1142 ac_prev=program_suffix ;;
1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145 program_suffix=$ac_optarg ;;
1147 -program-transform-name | --program-transform-name \
1148 | --program-transform-nam | --program-transform-na \
1149 | --program-transform-n | --program-transform- \
1150 | --program-transform | --program-transfor \
1151 | --program-transfo | --program-transf \
1152 | --program-trans | --program-tran \
1153 | --progr-tra | --program-tr | --program-t)
1154 ac_prev=program_transform_name ;;
1155 -program-transform-name=* | --program-transform-name=* \
1156 | --program-transform-nam=* | --program-transform-na=* \
1157 | --program-transform-n=* | --program-transform-=* \
1158 | --program-transform=* | --program-transfor=* \
1159 | --program-transfo=* | --program-transf=* \
1160 | --program-trans=* | --program-tran=* \
1161 | --progr-tra=* | --program-tr=* | --program-t=*)
1162 program_transform_name=$ac_optarg ;;
1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165 ac_prev=pdfdir ;;
1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167 pdfdir=$ac_optarg ;;
1169 -psdir | --psdir | --psdi | --psd | --ps)
1170 ac_prev=psdir ;;
1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172 psdir=$ac_optarg ;;
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1176 silent=yes ;;
1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179 ac_prev=sbindir ;;
1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181 | --sbi=* | --sb=*)
1182 sbindir=$ac_optarg ;;
1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186 | --sharedst | --shareds | --shared | --share | --shar \
1187 | --sha | --sh)
1188 ac_prev=sharedstatedir ;;
1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192 | --sha=* | --sh=*)
1193 sharedstatedir=$ac_optarg ;;
1195 -site | --site | --sit)
1196 ac_prev=site ;;
1197 -site=* | --site=* | --sit=*)
1198 site=$ac_optarg ;;
1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201 ac_prev=srcdir ;;
1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203 srcdir=$ac_optarg ;;
1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206 | --syscon | --sysco | --sysc | --sys | --sy)
1207 ac_prev=sysconfdir ;;
1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210 sysconfdir=$ac_optarg ;;
1212 -target | --target | --targe | --targ | --tar | --ta | --t)
1213 ac_prev=target_alias ;;
1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215 target_alias=$ac_optarg ;;
1217 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218 verbose=yes ;;
1220 -version | --version | --versio | --versi | --vers | -V)
1221 ac_init_version=: ;;
1223 -with-* | --with-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: $ac_useropt"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1232 "with_$ac_useropt"
1233 "*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=\$ac_optarg ;;
1239 -without-* | --without-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 as_fn_error $? "invalid package name: $ac_useropt"
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1248 "with_$ac_useropt"
1249 "*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=no ;;
1255 --x)
1256 # Obsolete; use --with-x.
1257 with_x=yes ;;
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264 x_includes=$ac_optarg ;;
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271 x_libraries=$ac_optarg ;;
1273 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1274 Try \`$0 --help' for more information"
1277 *=*)
1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
1280 case $ac_envvar in #(
1281 '' | [0-9]* | *[!_$as_cr_alnum]* )
1282 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1283 esac
1284 eval $ac_envvar=\$ac_optarg
1285 export $ac_envvar ;;
1288 # FIXME: should be removed in autoconf 3.0.
1289 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1295 esac
1296 done
1298 if test -n "$ac_prev"; then
1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300 as_fn_error $? "missing argument to $ac_option"
1303 if test -n "$ac_unrecognized_opts"; then
1304 case $enable_option_checking in
1305 no) ;;
1306 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1307 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308 esac
1311 # Check all directory arguments for consistency.
1312 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313 datadir sysconfdir sharedstatedir localstatedir includedir \
1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315 libdir localedir mandir
1317 eval ac_val=\$$ac_var
1318 # Remove trailing slashes.
1319 case $ac_val in
1320 */ )
1321 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322 eval $ac_var=\$ac_val;;
1323 esac
1324 # Be sure to have absolute directory names.
1325 case $ac_val in
1326 [\\/$]* | ?:[\\/]* ) continue;;
1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1328 esac
1329 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1330 done
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1335 build=$build_alias
1336 host=$host_alias
1337 target=$target_alias
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x; then
1341 if test "x$build_alias" = x; then
1342 cross_compiling=maybe
1343 elif test "x$build_alias" != "x$host_alias"; then
1344 cross_compiling=yes
1348 ac_tool_prefix=
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351 test "$silent" = yes && exec 6>/dev/null
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357 as_fn_error $? "working directory cannot be determined"
1358 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359 as_fn_error $? "pwd does not report name of working directory"
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 s//\1/
1376 /^X\(\/\/\)[^/].*/{
1377 s//\1/
1380 /^X\(\/\/\)$/{
1381 s//\1/
1384 /^X\(\/\).*/{
1385 s//\1/
1388 s/.*/./; q'`
1389 srcdir=$ac_confdir
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 srcdir=..
1393 else
1394 ac_srcdir_defaulted=no
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 ac_abs_confdir=`(
1402 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1403 pwd)`
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 srcdir=.
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1411 case $srcdir in
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 esac
1414 for ac_var in $ac_precious_vars; do
1415 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_env_${ac_var}_value=\$${ac_var}
1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419 done
1422 # Report the --help message.
1424 if test "$ac_init_help" = "long"; then
1425 # Omit some internal or obsolete options to make the list less imposing.
1426 # This message is too long to be a string in the A/UX 3.1 sh.
1427 cat <<_ACEOF
1428 \`configure' configures Wine 1.5.29 to adapt to many kinds of systems.
1430 Usage: $0 [OPTION]... [VAR=VALUE]...
1432 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433 VAR=VALUE. See below for descriptions of some of the useful variables.
1435 Defaults for the options are specified in brackets.
1437 Configuration:
1438 -h, --help display this help and exit
1439 --help=short display options specific to this package
1440 --help=recursive display the short help of all the included packages
1441 -V, --version display version information and exit
1442 -q, --quiet, --silent do not print \`checking ...' messages
1443 --cache-file=FILE cache test results in FILE [disabled]
1444 -C, --config-cache alias for \`--cache-file=config.cache'
1445 -n, --no-create do not create output files
1446 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1448 Installation directories:
1449 --prefix=PREFIX install architecture-independent files in PREFIX
1450 [$ac_default_prefix]
1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1452 [PREFIX]
1454 By default, \`make install' will install all the files in
1455 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1456 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457 for instance \`--prefix=\$HOME'.
1459 For better control, use the options below.
1461 Fine tuning of the installation directories:
1462 --bindir=DIR user executables [EPREFIX/bin]
1463 --sbindir=DIR system admin executables [EPREFIX/sbin]
1464 --libexecdir=DIR program executables [EPREFIX/libexec]
1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468 --libdir=DIR object code libraries [EPREFIX/lib]
1469 --includedir=DIR C header files [PREFIX/include]
1470 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473 --infodir=DIR info documentation [DATAROOTDIR/info]
1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475 --mandir=DIR man documentation [DATAROOTDIR/man]
1476 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1477 --htmldir=DIR html documentation [DOCDIR]
1478 --dvidir=DIR dvi documentation [DOCDIR]
1479 --pdfdir=DIR pdf documentation [DOCDIR]
1480 --psdir=DIR ps documentation [DOCDIR]
1481 _ACEOF
1483 cat <<\_ACEOF
1485 X features:
1486 --x-includes=DIR X include files are in DIR
1487 --x-libraries=DIR X library files are in DIR
1489 System types:
1490 --build=BUILD configure for building on BUILD [guessed]
1491 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1492 _ACEOF
1495 if test -n "$ac_init_help"; then
1496 case $ac_init_help in
1497 short | recursive ) echo "Configuration of Wine 1.5.29:";;
1498 esac
1499 cat <<\_ACEOF
1501 Optional Features:
1502 --disable-option-checking ignore unrecognized --enable/--with options
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1505 --disable-win16 do not include Win16 support
1506 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1507 binaries)
1508 --disable-tests do not build the regression tests
1509 --enable-maintainer-mode
1510 enable maintainer-specific build rules
1511 --disable-largefile omit support for large files
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --without-alsa do not use the Alsa sound support
1517 --without-capi do not use CAPI (ISDN support)
1518 --without-cms do not use CMS (color management support)
1519 --without-coreaudio do not use the CoreAudio sound support
1520 --without-cups do not use CUPS
1521 --without-curses do not use (n)curses
1522 --without-dbus do not use DBus (dynamic device support)
1523 --without-fontconfig do not use fontconfig
1524 --without-freetype do not use the FreeType library
1525 --without-gettext do not use gettext
1526 --with-gettextpo use the GetTextPO library to rebuild po files
1527 --without-gphoto do not use gphoto (Digital Camera support)
1528 --without-glu do not use the GLU library
1529 --without-gnutls do not use GnuTLS (schannel support)
1530 --without-gsm do not use libgsm (GSM 06.10 codec support)
1531 --without-gstreamer do not use GStreamer (codecs support)
1532 --without-hal do not use HAL (dynamic device support)
1533 --without-jpeg do not use JPEG
1534 --without-ldap do not use LDAP
1535 --without-mpg123 do not use the mpg123 library
1536 --without-openal do not use OpenAL
1537 --without-opencl do not use OpenCL
1538 --without-opengl do not use OpenGL
1539 --without-osmesa do not use the OSMesa library
1540 --without-oss do not use the OSS sound support
1541 --without-png do not use PNG
1542 --without-pthread do not use the pthread library
1543 --without-sane do not use SANE (scanner support)
1544 --without-tiff do not use TIFF
1545 --without-v4l do not use v4l1 (v4l support)
1546 --without-xcomposite do not use the Xcomposite extension
1547 --without-xcursor do not use the Xcursor extension
1548 --without-xinerama do not use Xinerama (multi-monitor support)
1549 --without-xinput do not use the Xinput extension
1550 --without-xinput2 do not use the Xinput 2 extension
1551 --without-xml do not use XML
1552 --without-xrandr do not use Xrandr (resolution changes)
1553 --without-xrender do not use the Xrender extension
1554 --without-xshape do not use the Xshape extension
1555 --without-xshm do not use XShm (shared memory extension)
1556 --without-xslt do not use XSLT
1557 --without-xxf86vm do not use XFree video mode extension
1558 --without-zlib do not use Zlib (data compression)
1559 --with-wine-tools=DIR use Wine tools from directory DIR
1560 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1561 --with-x use the X Window System
1563 Some influential environment variables:
1564 CC C compiler command
1565 CFLAGS C compiler flags
1566 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1567 nonstandard directory <lib dir>
1568 LIBS libraries to pass to the linker, e.g. -l<library>
1569 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1570 you have headers in a nonstandard directory <include dir>
1571 CXX C++ compiler command
1572 CXXFLAGS C++ compiler flags
1573 CPP C preprocessor
1574 XMKMF Path to xmkmf, Makefile generator for X Window System
1575 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
1576 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
1577 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
1578 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
1579 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
1580 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
1581 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
1582 HAL_LIBS Linker flags for hal, overriding pkg-config
1583 GNUTLS_CFLAGS
1584 C compiler flags for gnutls, overriding pkg-config
1585 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
1586 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
1587 SANE_LIBS Linker flags for libsane, overriding pkg-config
1588 GPHOTO2_CFLAGS
1589 C compiler flags for libgphoto2, overriding pkg-config
1590 GPHOTO2_LIBS
1591 Linker flags for libgphoto2, overriding pkg-config
1592 GPHOTO2_PORT_CFLAGS
1593 C compiler flags for libgphoto2_port, overriding pkg-config
1594 GPHOTO2_PORT_LIBS
1595 Linker flags for libgphoto2_port, overriding pkg-config
1596 LCMS_CFLAGS C compiler flags for lcms, overriding pkg-config
1597 LCMS_LIBS Linker flags for lcms, overriding pkg-config
1598 FREETYPE_CFLAGS
1599 C compiler flags for freetype2, overriding pkg-config
1600 FREETYPE_LIBS
1601 Linker flags for freetype2, overriding pkg-config
1602 GSTREAMER_CFLAGS
1603 C compiler flags for gstreamer-app-0.10, overriding pkg-config
1604 GSTREAMER_LIBS
1605 Linker flags for gstreamer-app-0.10, overriding pkg-config
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1610 Report bugs to <wine-devel@winehq.org>.
1611 Wine home page: <http://www.winehq.org>.
1612 _ACEOF
1613 ac_status=$?
1616 if test "$ac_init_help" = "recursive"; then
1617 # If there are subdirs, report their specific --help.
1618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619 test -d "$ac_dir" ||
1620 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1621 continue
1622 ac_builddir=.
1624 case "$ac_dir" in
1625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633 esac ;;
1634 esac
1635 ac_abs_top_builddir=$ac_pwd
1636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir=$ac_top_build_prefix
1640 case $srcdir in
1641 .) # We are building in place.
1642 ac_srcdir=.
1643 ac_top_srcdir=$ac_top_builddir_sub
1644 ac_abs_top_srcdir=$ac_pwd ;;
1645 [\\/]* | ?:[\\/]* ) # Absolute name.
1646 ac_srcdir=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir=$srcdir
1648 ac_abs_top_srcdir=$srcdir ;;
1649 *) # Relative name.
1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1653 esac
1654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656 cd "$ac_dir" || { ac_status=$?; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1664 else
1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666 fi || ac_status=$?
1667 cd "$ac_pwd" || { ac_status=$?; break; }
1668 done
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1673 cat <<\_ACEOF
1674 Wine configure 1.5.29
1675 generated by GNU Autoconf 2.69
1677 Copyright (C) 2012 Free Software Foundation, Inc.
1678 This configure script is free software; the Free Software Foundation
1679 gives unlimited permission to copy, distribute and modify it.
1680 _ACEOF
1681 exit
1684 ## ------------------------ ##
1685 ## Autoconf initialization. ##
1686 ## ------------------------ ##
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext
1695 if { { ac_try="$ac_compile"
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_compile") 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_objext; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1719 ac_retval=1
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_c_try_compile
1726 # ac_fn_cxx_try_compile LINENO
1727 # ----------------------------
1728 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_cxx_try_compile ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext
1733 if { { ac_try="$ac_compile"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_compile") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_cxx_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest.$ac_objext; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1757 ac_retval=1
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1762 } # ac_fn_cxx_try_compile
1764 # ac_fn_c_try_link LINENO
1765 # -----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_link ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext conftest$ac_exeext
1771 if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest$ac_exeext && {
1790 test "$cross_compiling" = yes ||
1791 test -x conftest$ac_exeext
1792 }; then :
1793 ac_retval=0
1794 else
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1798 ac_retval=1
1800 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1801 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1802 # interfere with the next link command; also delete a directory that is
1803 # left behind by Apple's compiler. We do this before executing the actions.
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status $ac_retval
1808 } # ac_fn_c_try_link
1810 # ac_fn_c_try_cpp LINENO
1811 # ----------------------
1812 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1813 ac_fn_c_try_cpp ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_cpp conftest.$ac_ext"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } > conftest.i && {
1832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 }; then :
1835 ac_retval=0
1836 else
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1840 ac_retval=1
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1845 } # ac_fn_c_try_cpp
1847 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1848 # -------------------------------------------------------
1849 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1850 # the include files in INCLUDES and setting the cache variable VAR
1851 # accordingly.
1852 ac_fn_c_check_header_mongrel ()
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if eval \${$3+:} false; then :
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857 $as_echo_n "checking for $2... " >&6; }
1858 if eval \${$3+:} false; then :
1859 $as_echo_n "(cached) " >&6
1861 eval ac_res=\$$3
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 else
1865 # Is the header compilable?
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1867 $as_echo_n "checking $2 usability... " >&6; }
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1871 #include <$2>
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"; then :
1874 ac_header_compiler=yes
1875 else
1876 ac_header_compiler=no
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1880 $as_echo "$ac_header_compiler" >&6; }
1882 # Is the header present?
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1884 $as_echo_n "checking $2 presence... " >&6; }
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 #include <$2>
1888 _ACEOF
1889 if ac_fn_c_try_cpp "$LINENO"; then :
1890 ac_header_preproc=yes
1891 else
1892 ac_header_preproc=no
1894 rm -f conftest.err conftest.i conftest.$ac_ext
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1896 $as_echo "$ac_header_preproc" >&6; }
1898 # So? What about this header?
1899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1900 yes:no: )
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1902 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1904 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1906 no:yes:* )
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1908 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1910 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1912 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1914 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1916 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1917 ( $as_echo "## ------------------------------------ ##
1918 ## Report this to wine-devel@winehq.org ##
1919 ## ------------------------------------ ##"
1920 ) | sed "s/^/$as_me: WARNING: /" >&2
1922 esac
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1927 else
1928 eval "$3=\$ac_header_compiler"
1930 eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 } # ac_fn_c_check_header_mongrel
1938 # ac_fn_c_try_run LINENO
1939 # ----------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1941 # that executables *can* be run.
1942 ac_fn_c_try_run ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { { ac_try="$ac_link"
1946 case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_link") 2>&5
1953 ac_status=$?
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1956 { { case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_try") 2>&5
1963 ac_status=$?
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; }; }; then :
1966 ac_retval=0
1967 else
1968 $as_echo "$as_me: program exited with status $ac_status" >&5
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1972 ac_retval=$ac_status
1974 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 as_fn_set_status $ac_retval
1978 } # ac_fn_c_try_run
1980 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1981 # -------------------------------------------------------
1982 # Tests whether HEADER exists and can be compiled using the include files in
1983 # INCLUDES, setting the cache variable VAR accordingly.
1984 ac_fn_c_check_header_compile ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990 $as_echo_n "(cached) " >&6
1991 else
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 eval "$3=yes"
1999 else
2000 eval "$3=no"
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 } # ac_fn_c_check_header_compile
2011 # ac_fn_c_check_func LINENO FUNC VAR
2012 # ----------------------------------
2013 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2014 ac_fn_c_check_func ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if eval \${$3+:} false; then :
2020 $as_echo_n "(cached) " >&6
2021 else
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2026 #define $2 innocuous_$2
2028 /* System header to define __stub macros and hopefully few prototypes,
2029 which can conflict with char $2 (); below.
2030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2031 <limits.h> exists even on freestanding compilers. */
2033 #ifdef __STDC__
2034 # include <limits.h>
2035 #else
2036 # include <assert.h>
2037 #endif
2039 #undef $2
2041 /* Override any GCC internal prototype to avoid an error.
2042 Use char because int might match the return type of a GCC
2043 builtin and then its argument prototype would still apply. */
2044 #ifdef __cplusplus
2045 extern "C"
2046 #endif
2047 char $2 ();
2048 /* The GNU C library defines this for functions which it implements
2049 to always fail with ENOSYS. Some functions are actually named
2050 something starting with __ and the normal name is an alias. */
2051 #if defined __stub_$2 || defined __stub___$2
2052 choke me
2053 #endif
2056 main ()
2058 return $2 ();
2060 return 0;
2062 _ACEOF
2063 if ac_fn_c_try_link "$LINENO"; then :
2064 eval "$3=yes"
2065 else
2066 eval "$3=no"
2068 rm -f core conftest.err conftest.$ac_objext \
2069 conftest$ac_exeext conftest.$ac_ext
2071 eval ac_res=\$$3
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 } # ac_fn_c_check_func
2078 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2079 # ----------------------------------------------------
2080 # Tries to find if the field MEMBER exists in type AGGR, after including
2081 # INCLUDES, setting cache variable VAR accordingly.
2082 ac_fn_c_check_member ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2086 $as_echo_n "checking for $2.$3... " >&6; }
2087 if eval \${$4+:} false; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2094 main ()
2096 static $2 ac_aggr;
2097 if (ac_aggr.$3)
2098 return 0;
2100 return 0;
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"; then :
2104 eval "$4=yes"
2105 else
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2110 main ()
2112 static $2 ac_aggr;
2113 if (sizeof ac_aggr.$3)
2114 return 0;
2116 return 0;
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 eval "$4=yes"
2121 else
2122 eval "$4=no"
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 eval ac_res=\$$4
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_member
2135 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2136 # -------------------------------------------
2137 # Tests whether TYPE exists after having included INCLUDES, setting cache
2138 # variable VAR accordingly.
2139 ac_fn_c_check_type ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2143 $as_echo_n "checking for $2... " >&6; }
2144 if eval \${$3+:} false; then :
2145 $as_echo_n "(cached) " >&6
2146 else
2147 eval "$3=no"
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2152 main ()
2154 if (sizeof ($2))
2155 return 0;
2157 return 0;
2159 _ACEOF
2160 if ac_fn_c_try_compile "$LINENO"; then :
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2165 main ()
2167 if (sizeof (($2)))
2168 return 0;
2170 return 0;
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"; then :
2175 else
2176 eval "$3=yes"
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 eval ac_res=\$$3
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187 } # ac_fn_c_check_type
2188 cat >config.log <<_ACEOF
2189 This file contains any messages produced by compilers while
2190 running configure, to aid debugging if configure makes a mistake.
2192 It was created by Wine $as_me 1.5.29, which was
2193 generated by GNU Autoconf 2.69. Invocation command line was
2195 $ $0 $@
2197 _ACEOF
2198 exec 5>>config.log
2200 cat <<_ASUNAME
2201 ## --------- ##
2202 ## Platform. ##
2203 ## --------- ##
2205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2217 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2222 _ASUNAME
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 $as_echo "PATH: $as_dir"
2230 done
2231 IFS=$as_save_IFS
2233 } >&5
2235 cat >&5 <<_ACEOF
2238 ## ----------- ##
2239 ## Core tests. ##
2240 ## ----------- ##
2242 _ACEOF
2245 # Keep a trace of the command line.
2246 # Strip out --no-create and --no-recursion so they do not pile up.
2247 # Strip out --silent because we don't want to record it for future runs.
2248 # Also quote any args containing shell meta-characters.
2249 # Make two passes to allow for proper duplicate-argument suppression.
2250 ac_configure_args=
2251 ac_configure_args0=
2252 ac_configure_args1=
2253 ac_must_keep_next=false
2254 for ac_pass in 1 2
2256 for ac_arg
2258 case $ac_arg in
2259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2261 | -silent | --silent | --silen | --sile | --sil)
2262 continue ;;
2263 *\'*)
2264 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2265 esac
2266 case $ac_pass in
2267 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2269 as_fn_append ac_configure_args1 " '$ac_arg'"
2270 if test $ac_must_keep_next = true; then
2271 ac_must_keep_next=false # Got value, back to normal.
2272 else
2273 case $ac_arg in
2274 *=* | --config-cache | -C | -disable-* | --disable-* \
2275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2277 | -with-* | --with-* | -without-* | --without-* | --x)
2278 case "$ac_configure_args0 " in
2279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2280 esac
2282 -* ) ac_must_keep_next=true ;;
2283 esac
2285 as_fn_append ac_configure_args " '$ac_arg'"
2287 esac
2288 done
2289 done
2290 { ac_configure_args0=; unset ac_configure_args0;}
2291 { ac_configure_args1=; unset ac_configure_args1;}
2293 # When interrupted or exit'd, cleanup temporary files, and complete
2294 # config.log. We remove comments because anyway the quotes in there
2295 # would cause problems or look ugly.
2296 # WARNING: Use '\'' to represent an apostrophe within the trap.
2297 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2298 trap 'exit_status=$?
2299 # Save into config.log some information that might help in debugging.
2301 echo
2303 $as_echo "## ---------------- ##
2304 ## Cache variables. ##
2305 ## ---------------- ##"
2306 echo
2307 # The following way of writing the cache mishandles newlines in values,
2309 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2310 eval ac_val=\$$ac_var
2311 case $ac_val in #(
2312 *${as_nl}*)
2313 case $ac_var in #(
2314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2315 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2316 esac
2317 case $ac_var in #(
2318 _ | IFS | as_nl) ;; #(
2319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2320 *) { eval $ac_var=; unset $ac_var;} ;;
2321 esac ;;
2322 esac
2323 done
2324 (set) 2>&1 |
2325 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2326 *${as_nl}ac_space=\ *)
2327 sed -n \
2328 "s/'\''/'\''\\\\'\'''\''/g;
2329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2330 ;; #(
2332 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2334 esac |
2335 sort
2337 echo
2339 $as_echo "## ----------------- ##
2340 ## Output variables. ##
2341 ## ----------------- ##"
2342 echo
2343 for ac_var in $ac_subst_vars
2345 eval ac_val=\$$ac_var
2346 case $ac_val in
2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348 esac
2349 $as_echo "$ac_var='\''$ac_val'\''"
2350 done | sort
2351 echo
2353 if test -n "$ac_subst_files"; then
2354 $as_echo "## ------------------- ##
2355 ## File substitutions. ##
2356 ## ------------------- ##"
2357 echo
2358 for ac_var in $ac_subst_files
2360 eval ac_val=\$$ac_var
2361 case $ac_val in
2362 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2363 esac
2364 $as_echo "$ac_var='\''$ac_val'\''"
2365 done | sort
2366 echo
2369 if test -s confdefs.h; then
2370 $as_echo "## ----------- ##
2371 ## confdefs.h. ##
2372 ## ----------- ##"
2373 echo
2374 cat confdefs.h
2375 echo
2377 test "$ac_signal" != 0 &&
2378 $as_echo "$as_me: caught signal $ac_signal"
2379 $as_echo "$as_me: exit $exit_status"
2380 } >&5
2381 rm -f core *.core core.conftest.* &&
2382 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2383 exit $exit_status
2385 for ac_signal in 1 2 13 15; do
2386 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2387 done
2388 ac_signal=0
2390 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2391 rm -f -r conftest* confdefs.h
2393 $as_echo "/* confdefs.h */" > confdefs.h
2395 # Predefined preprocessor variables.
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_NAME "$PACKAGE_NAME"
2399 _ACEOF
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2403 _ACEOF
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2407 _ACEOF
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_STRING "$PACKAGE_STRING"
2411 _ACEOF
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2415 _ACEOF
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_URL "$PACKAGE_URL"
2419 _ACEOF
2422 # Let the site file select an alternate cache file if it wants to.
2423 # Prefer an explicitly selected file to automatically selected ones.
2424 ac_site_file1=NONE
2425 ac_site_file2=NONE
2426 if test -n "$CONFIG_SITE"; then
2427 # We do not want a PATH search for config.site.
2428 case $CONFIG_SITE in #((
2429 -*) ac_site_file1=./$CONFIG_SITE;;
2430 */*) ac_site_file1=$CONFIG_SITE;;
2431 *) ac_site_file1=./$CONFIG_SITE;;
2432 esac
2433 elif test "x$prefix" != xNONE; then
2434 ac_site_file1=$prefix/share/config.site
2435 ac_site_file2=$prefix/etc/config.site
2436 else
2437 ac_site_file1=$ac_default_prefix/share/config.site
2438 ac_site_file2=$ac_default_prefix/etc/config.site
2440 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2442 test "x$ac_site_file" = xNONE && continue
2443 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2445 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2446 sed 's/^/| /' "$ac_site_file" >&5
2447 . "$ac_site_file" \
2448 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2450 as_fn_error $? "failed to load site script $ac_site_file
2451 See \`config.log' for more details" "$LINENO" 5; }
2453 done
2455 if test -r "$cache_file"; then
2456 # Some versions of bash will fail to source /dev/null (special files
2457 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2458 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460 $as_echo "$as_me: loading cache $cache_file" >&6;}
2461 case $cache_file in
2462 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463 *) . "./$cache_file";;
2464 esac
2466 else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468 $as_echo "$as_me: creating cache $cache_file" >&6;}
2469 >$cache_file
2472 # Check that the precious variables saved in the cache have kept the same
2473 # value.
2474 ac_cache_corrupted=false
2475 for ac_var in $ac_precious_vars; do
2476 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2477 eval ac_new_set=\$ac_env_${ac_var}_set
2478 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2479 eval ac_new_val=\$ac_env_${ac_var}_value
2480 case $ac_old_set,$ac_new_set in
2481 set,)
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2483 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2484 ac_cache_corrupted=: ;;
2485 ,set)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2487 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,);;
2491 if test "x$ac_old_val" != "x$ac_new_val"; then
2492 # differences in whitespace do not lead to failure.
2493 ac_old_val_w=`echo x $ac_old_val`
2494 ac_new_val_w=`echo x $ac_new_val`
2495 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2497 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2498 ac_cache_corrupted=:
2499 else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2501 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2502 eval $ac_var=\$ac_old_val
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2505 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2507 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2508 fi;;
2509 esac
2510 # Pass precious variables to config.status.
2511 if test "$ac_new_set" = set; then
2512 case $ac_new_val in
2513 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2514 *) ac_arg=$ac_var=$ac_new_val ;;
2515 esac
2516 case " $ac_configure_args " in
2517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2518 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2519 esac
2521 done
2522 if $ac_cache_corrupted; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2526 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2527 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2529 ## -------------------- ##
2530 ## Main body of script. ##
2531 ## -------------------- ##
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541 ac_config_headers="$ac_config_headers include/config.h"
2543 ac_aux_dir=
2544 for ac_dir in tools "$srcdir"/tools; do
2545 if test -f "$ac_dir/install-sh"; then
2546 ac_aux_dir=$ac_dir
2547 ac_install_sh="$ac_aux_dir/install-sh -c"
2548 break
2549 elif test -f "$ac_dir/install.sh"; then
2550 ac_aux_dir=$ac_dir
2551 ac_install_sh="$ac_aux_dir/install.sh -c"
2552 break
2553 elif test -f "$ac_dir/shtool"; then
2554 ac_aux_dir=$ac_dir
2555 ac_install_sh="$ac_aux_dir/shtool install -c"
2556 break
2558 done
2559 if test -z "$ac_aux_dir"; then
2560 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2568 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2569 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2575 # Check whether --enable-win16 was given.
2576 if test "${enable_win16+set}" = set; then :
2577 enableval=$enable_win16;
2580 # Check whether --enable-win64 was given.
2581 if test "${enable_win64+set}" = set; then :
2582 enableval=$enable_win64;
2585 # Check whether --enable-tests was given.
2586 if test "${enable_tests+set}" = set; then :
2587 enableval=$enable_tests;
2590 # Check whether --enable-maintainer-mode was given.
2591 if test "${enable_maintainer_mode+set}" = set; then :
2592 enableval=$enable_maintainer_mode;
2597 # Check whether --with-alsa was given.
2598 if test "${with_alsa+set}" = set; then :
2599 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2603 # Check whether --with-capi was given.
2604 if test "${with_capi+set}" = set; then :
2605 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2609 # Check whether --with-cms was given.
2610 if test "${with_cms+set}" = set; then :
2611 withval=$with_cms;
2615 # Check whether --with-coreaudio was given.
2616 if test "${with_coreaudio+set}" = set; then :
2617 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2621 # Check whether --with-cups was given.
2622 if test "${with_cups+set}" = set; then :
2623 withval=$with_cups;
2627 # Check whether --with-curses was given.
2628 if test "${with_curses+set}" = set; then :
2629 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2633 # Check whether --with-dbus was given.
2634 if test "${with_dbus+set}" = set; then :
2635 withval=$with_dbus;
2639 # Check whether --with-fontconfig was given.
2640 if test "${with_fontconfig+set}" = set; then :
2641 withval=$with_fontconfig;
2645 # Check whether --with-freetype was given.
2646 if test "${with_freetype+set}" = set; then :
2647 withval=$with_freetype;
2651 # Check whether --with-gettext was given.
2652 if test "${with_gettext+set}" = set; then :
2653 withval=$with_gettext;
2657 # Check whether --with-gettextpo was given.
2658 if test "${with_gettextpo+set}" = set; then :
2659 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2663 # Check whether --with-gphoto was given.
2664 if test "${with_gphoto+set}" = set; then :
2665 withval=$with_gphoto;
2669 # Check whether --with-glu was given.
2670 if test "${with_glu+set}" = set; then :
2671 withval=$with_glu;
2675 # Check whether --with-gnutls was given.
2676 if test "${with_gnutls+set}" = set; then :
2677 withval=$with_gnutls;
2681 # Check whether --with-gsm was given.
2682 if test "${with_gsm+set}" = set; then :
2683 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2687 # Check whether --with-gstreamer was given.
2688 if test "${with_gstreamer+set}" = set; then :
2689 withval=$with_gstreamer;
2693 # Check whether --with-hal was given.
2694 if test "${with_hal+set}" = set; then :
2695 withval=$with_hal;
2699 # Check whether --with-jpeg was given.
2700 if test "${with_jpeg+set}" = set; then :
2701 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2705 # Check whether --with-ldap was given.
2706 if test "${with_ldap+set}" = set; then :
2707 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2711 # Check whether --with-mpg123 was given.
2712 if test "${with_mpg123+set}" = set; then :
2713 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2717 # Check whether --with-openal was given.
2718 if test "${with_openal+set}" = set; then :
2719 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2723 # Check whether --with-opencl was given.
2724 if test "${with_opencl+set}" = set; then :
2725 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2729 # Check whether --with-opengl was given.
2730 if test "${with_opengl+set}" = set; then :
2731 withval=$with_opengl;
2735 # Check whether --with-osmesa was given.
2736 if test "${with_osmesa+set}" = set; then :
2737 withval=$with_osmesa;
2741 # Check whether --with-oss was given.
2742 if test "${with_oss+set}" = set; then :
2743 withval=$with_oss;
2747 # Check whether --with-png was given.
2748 if test "${with_png+set}" = set; then :
2749 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2753 # Check whether --with-pthread was given.
2754 if test "${with_pthread+set}" = set; then :
2755 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2759 # Check whether --with-sane was given.
2760 if test "${with_sane+set}" = set; then :
2761 withval=$with_sane;
2765 # Check whether --with-tiff was given.
2766 if test "${with_tiff+set}" = set; then :
2767 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2771 # Check whether --with-v4l was given.
2772 if test "${with_v4l+set}" = set; then :
2773 withval=$with_v4l;
2777 # Check whether --with-xcomposite was given.
2778 if test "${with_xcomposite+set}" = set; then :
2779 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2783 # Check whether --with-xcursor was given.
2784 if test "${with_xcursor+set}" = set; then :
2785 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2789 # Check whether --with-xinerama was given.
2790 if test "${with_xinerama+set}" = set; then :
2791 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2795 # Check whether --with-xinput was given.
2796 if test "${with_xinput+set}" = set; then :
2797 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2801 # Check whether --with-xinput2 was given.
2802 if test "${with_xinput2+set}" = set; then :
2803 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2807 # Check whether --with-xml was given.
2808 if test "${with_xml+set}" = set; then :
2809 withval=$with_xml;
2813 # Check whether --with-xrandr was given.
2814 if test "${with_xrandr+set}" = set; then :
2815 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2819 # Check whether --with-xrender was given.
2820 if test "${with_xrender+set}" = set; then :
2821 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2825 # Check whether --with-xshape was given.
2826 if test "${with_xshape+set}" = set; then :
2827 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2831 # Check whether --with-xshm was given.
2832 if test "${with_xshm+set}" = set; then :
2833 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2837 # Check whether --with-xslt was given.
2838 if test "${with_xslt+set}" = set; then :
2839 withval=$with_xslt;
2843 # Check whether --with-xxf86vm was given.
2844 if test "${with_xxf86vm+set}" = set; then :
2845 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
2849 # Check whether --with-zlib was given.
2850 if test "${with_zlib+set}" = set; then :
2851 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2856 # Check whether --with-wine-tools was given.
2857 if test "${with_wine_tools+set}" = set; then :
2858 withval=$with_wine_tools;
2862 # Check whether --with-wine64 was given.
2863 if test "${with_wine64+set}" = set; then :
2864 withval=$with_wine64;
2868 # Make sure we can run config.sub.
2869 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2870 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2873 $as_echo_n "checking build system type... " >&6; }
2874 if ${ac_cv_build+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 ac_build_alias=$build_alias
2878 test "x$ac_build_alias" = x &&
2879 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2880 test "x$ac_build_alias" = x &&
2881 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2882 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2883 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2887 $as_echo "$ac_cv_build" >&6; }
2888 case $ac_cv_build in
2889 *-*-*) ;;
2890 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2891 esac
2892 build=$ac_cv_build
2893 ac_save_IFS=$IFS; IFS='-'
2894 set x $ac_cv_build
2895 shift
2896 build_cpu=$1
2897 build_vendor=$2
2898 shift; shift
2899 # Remember, the first character of IFS is used to create $*,
2900 # except with old shells:
2901 build_os=$*
2902 IFS=$ac_save_IFS
2903 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2907 $as_echo_n "checking host system type... " >&6; }
2908 if ${ac_cv_host+:} false; then :
2909 $as_echo_n "(cached) " >&6
2910 else
2911 if test "x$host_alias" = x; then
2912 ac_cv_host=$ac_cv_build
2913 else
2914 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2915 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2920 $as_echo "$ac_cv_host" >&6; }
2921 case $ac_cv_host in
2922 *-*-*) ;;
2923 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2924 esac
2925 host=$ac_cv_host
2926 ac_save_IFS=$IFS; IFS='-'
2927 set x $ac_cv_host
2928 shift
2929 host_cpu=$1
2930 host_vendor=$2
2931 shift; shift
2932 # Remember, the first character of IFS is used to create $*,
2933 # except with old shells:
2934 host_os=$*
2935 IFS=$ac_save_IFS
2936 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2940 case "$srcdir" in
2941 .) ;;
2942 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2943 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2944 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2945 fi ;;
2946 esac
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2950 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2951 set x ${MAKE-make}
2952 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2953 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 cat >conftest.make <<\_ACEOF
2957 SHELL = /bin/sh
2958 all:
2959 @echo '@@@%%%=$(MAKE)=@@@%%%'
2960 _ACEOF
2961 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2962 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2963 *@@@%%%=?*=@@@%%%*)
2964 eval ac_cv_prog_make_${ac_make}_set=yes;;
2966 eval ac_cv_prog_make_${ac_make}_set=no;;
2967 esac
2968 rm -f conftest.make
2970 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972 $as_echo "yes" >&6; }
2973 SET_MAKE=
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 SET_MAKE="MAKE=${MAKE-make}"
2980 ac_ext=c
2981 ac_cpp='$CPP $CPPFLAGS'
2982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2985 if test -n "$ac_tool_prefix"; then
2986 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2987 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_CC+:} false; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3007 done
3008 done
3009 IFS=$as_save_IFS
3013 CC=$ac_cv_prog_CC
3014 if test -n "$CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3024 if test -z "$ac_cv_prog_CC"; then
3025 ac_ct_CC=$CC
3026 # Extract the first word of "gcc", so it can be a program name with args.
3027 set dummy gcc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3031 $as_echo_n "(cached) " >&6
3032 else
3033 if test -n "$ac_ct_CC"; then
3034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_ac_ct_CC="gcc"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 break 2
3047 done
3048 done
3049 IFS=$as_save_IFS
3053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3054 if test -n "$ac_ct_CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3056 $as_echo "$ac_ct_CC" >&6; }
3057 else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3062 if test "x$ac_ct_CC" = x; then
3063 CC=""
3064 else
3065 case $cross_compiling:$ac_tool_warned in
3066 yes:)
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3069 ac_tool_warned=yes ;;
3070 esac
3071 CC=$ac_ct_CC
3073 else
3074 CC="$ac_cv_prog_CC"
3077 if test -z "$CC"; then
3078 if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3080 set dummy ${ac_tool_prefix}cc; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if ${ac_cv_prog_CC+:} false; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_CC="${ac_tool_prefix}cc"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3100 done
3101 done
3102 IFS=$as_save_IFS
3106 CC=$ac_cv_prog_CC
3107 if test -n "$CC"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3118 if test -z "$CC"; then
3119 # Extract the first word of "cc", so it can be a program name with args.
3120 set dummy cc; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3128 else
3129 ac_prog_rejected=no
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3138 ac_prog_rejected=yes
3139 continue
3141 ac_cv_prog_CC="cc"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 break 2
3145 done
3146 done
3147 IFS=$as_save_IFS
3149 if test $ac_prog_rejected = yes; then
3150 # We found a bogon in the path, so make sure we never use it.
3151 set dummy $ac_cv_prog_CC
3152 shift
3153 if test $# != 0; then
3154 # We chose a different compiler from the bogus one.
3155 # However, it has the same basename, so the bogon will be chosen
3156 # first if we set CC to just the basename; use the full file name.
3157 shift
3158 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3163 CC=$ac_cv_prog_CC
3164 if test -n "$CC"; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3166 $as_echo "$CC" >&6; }
3167 else
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3174 if test -z "$CC"; then
3175 if test -n "$ac_tool_prefix"; then
3176 for ac_prog in cl.exe
3178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_CC+:} false; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC="$CC" # Let the user override the test.
3187 else
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 for as_dir in $PATH
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 break 2
3199 done
3200 done
3201 IFS=$as_save_IFS
3205 CC=$ac_cv_prog_CC
3206 if test -n "$CC"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3208 $as_echo "$CC" >&6; }
3209 else
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3215 test -n "$CC" && break
3216 done
3218 if test -z "$CC"; then
3219 ac_ct_CC=$CC
3220 for ac_prog in cl.exe
3222 # Extract the first word of "$ac_prog", so it can be a program name with args.
3223 set dummy $ac_prog; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 if test -n "$ac_ct_CC"; then
3230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3235 IFS=$as_save_IFS
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239 ac_cv_prog_ac_ct_CC="$ac_prog"
3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 break 2
3243 done
3244 done
3245 IFS=$as_save_IFS
3249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3250 if test -n "$ac_ct_CC"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3252 $as_echo "$ac_ct_CC" >&6; }
3253 else
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3259 test -n "$ac_ct_CC" && break
3260 done
3262 if test "x$ac_ct_CC" = x; then
3263 CC=""
3264 else
3265 case $cross_compiling:$ac_tool_warned in
3266 yes:)
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3269 ac_tool_warned=yes ;;
3270 esac
3271 CC=$ac_ct_CC
3278 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3280 as_fn_error $? "no acceptable C compiler found in \$PATH
3281 See \`config.log' for more details" "$LINENO" 5; }
3283 # Provide some information about the compiler.
3284 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3285 set X $ac_compile
3286 ac_compiler=$2
3287 for ac_option in --version -v -V -qversion; do
3288 { { ac_try="$ac_compiler $ac_option >&5"
3289 case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3296 ac_status=$?
3297 if test -s conftest.err; then
3298 sed '10a\
3299 ... rest of stderr output deleted ...
3300 10q' conftest.err >conftest.er1
3301 cat conftest.er1 >&5
3303 rm -f conftest.er1 conftest.err
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }
3306 done
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3312 main ()
3316 return 0;
3318 _ACEOF
3319 ac_clean_files_save=$ac_clean_files
3320 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3321 # Try to create an executable without -o first, disregard a.out.
3322 # It will help us diagnose broken compilers, and finding out an intuition
3323 # of exeext.
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3325 $as_echo_n "checking whether the C compiler works... " >&6; }
3326 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3328 # The possible output files:
3329 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3331 ac_rmfiles=
3332 for ac_file in $ac_files
3334 case $ac_file in
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3336 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3337 esac
3338 done
3339 rm -f $ac_rmfiles
3341 if { { ac_try="$ac_link_default"
3342 case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 $as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_link_default") 2>&5
3349 ac_status=$?
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }; then :
3352 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3353 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3354 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3355 # so that the user can short-circuit this test for compilers unknown to
3356 # Autoconf.
3357 for ac_file in $ac_files ''
3359 test -f "$ac_file" || continue
3360 case $ac_file in
3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3363 [ab].out )
3364 # We found the default executable, but exeext='' is most
3365 # certainly right.
3366 break;;
3367 *.* )
3368 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3369 then :; else
3370 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372 # We set ac_cv_exeext here because the later test for it is not
3373 # safe: cross compilers may not add the suffix if given an `-o'
3374 # argument, so we may need to know it at that point already.
3375 # Even if this section looks crufty: it has the advantage of
3376 # actually working.
3377 break;;
3379 break;;
3380 esac
3381 done
3382 test "$ac_cv_exeext" = no && ac_cv_exeext=
3384 else
3385 ac_file=''
3387 if test -z "$ac_file"; then :
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3390 $as_echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395 as_fn_error 77 "C compiler cannot create executables
3396 See \`config.log' for more details" "$LINENO" 5; }
3397 else
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3399 $as_echo "yes" >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3402 $as_echo_n "checking for C compiler default output file name... " >&6; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3404 $as_echo "$ac_file" >&6; }
3405 ac_exeext=$ac_cv_exeext
3407 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3408 ac_clean_files=$ac_clean_files_save
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3410 $as_echo_n "checking for suffix of executables... " >&6; }
3411 if { { ac_try="$ac_link"
3412 case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 $as_echo "$ac_try_echo"; } >&5
3418 (eval "$ac_link") 2>&5
3419 ac_status=$?
3420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421 test $ac_status = 0; }; then :
3422 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3423 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3424 # work properly (i.e., refer to `conftest.exe'), while it won't with
3425 # `rm'.
3426 for ac_file in conftest.exe conftest conftest.*; do
3427 test -f "$ac_file" || continue
3428 case $ac_file in
3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3430 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3431 break;;
3432 * ) break;;
3433 esac
3434 done
3435 else
3436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3439 See \`config.log' for more details" "$LINENO" 5; }
3441 rm -f conftest conftest$ac_cv_exeext
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3443 $as_echo "$ac_cv_exeext" >&6; }
3445 rm -f conftest.$ac_ext
3446 EXEEXT=$ac_cv_exeext
3447 ac_exeext=$EXEEXT
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3450 #include <stdio.h>
3452 main ()
3454 FILE *f = fopen ("conftest.out", "w");
3455 return ferror (f) || fclose (f) != 0;
3458 return 0;
3460 _ACEOF
3461 ac_clean_files="$ac_clean_files conftest.out"
3462 # Check that the compiler produces executables we can run. If not, either
3463 # the compiler is broken, or we cross compile.
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3465 $as_echo_n "checking whether we are cross compiling... " >&6; }
3466 if test "$cross_compiling" != yes; then
3467 { { ac_try="$ac_link"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473 $as_echo "$ac_try_echo"; } >&5
3474 (eval "$ac_link") 2>&5
3475 ac_status=$?
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }
3478 if { ac_try='./conftest$ac_cv_exeext'
3479 { { case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_try") 2>&5
3486 ac_status=$?
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }; }; then
3489 cross_compiling=no
3490 else
3491 if test "$cross_compiling" = maybe; then
3492 cross_compiling=yes
3493 else
3494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496 as_fn_error $? "cannot run C compiled programs.
3497 If you meant to cross compile, use \`--host'.
3498 See \`config.log' for more details" "$LINENO" 5; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3503 $as_echo "$cross_compiling" >&6; }
3505 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3506 ac_clean_files=$ac_clean_files_save
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3508 $as_echo_n "checking for suffix of object files... " >&6; }
3509 if ${ac_cv_objext+:} false; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3516 main ()
3520 return 0;
3522 _ACEOF
3523 rm -f conftest.o conftest.obj
3524 if { { ac_try="$ac_compile"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530 $as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_compile") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; then :
3535 for ac_file in conftest.o conftest.obj conftest.*; do
3536 test -f "$ac_file" || continue;
3537 case $ac_file in
3538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3539 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3540 break;;
3541 esac
3542 done
3543 else
3544 $as_echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549 as_fn_error $? "cannot compute suffix of object files: cannot compile
3550 See \`config.log' for more details" "$LINENO" 5; }
3552 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3555 $as_echo "$ac_cv_objext" >&6; }
3556 OBJEXT=$ac_cv_objext
3557 ac_objext=$OBJEXT
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3559 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3560 if ${ac_cv_c_compiler_gnu+:} false; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3567 main ()
3569 #ifndef __GNUC__
3570 choke me
3571 #endif
3574 return 0;
3576 _ACEOF
3577 if ac_fn_c_try_compile "$LINENO"; then :
3578 ac_compiler_gnu=yes
3579 else
3580 ac_compiler_gnu=no
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3587 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3588 if test $ac_compiler_gnu = yes; then
3589 GCC=yes
3590 else
3591 GCC=
3593 ac_test_CFLAGS=${CFLAGS+set}
3594 ac_save_CFLAGS=$CFLAGS
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3596 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3597 if ${ac_cv_prog_cc_g+:} false; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 ac_save_c_werror_flag=$ac_c_werror_flag
3601 ac_c_werror_flag=yes
3602 ac_cv_prog_cc_g=no
3603 CFLAGS="-g"
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3608 main ()
3612 return 0;
3614 _ACEOF
3615 if ac_fn_c_try_compile "$LINENO"; then :
3616 ac_cv_prog_cc_g=yes
3617 else
3618 CFLAGS=""
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3623 main ()
3627 return 0;
3629 _ACEOF
3630 if ac_fn_c_try_compile "$LINENO"; then :
3632 else
3633 ac_c_werror_flag=$ac_save_c_werror_flag
3634 CFLAGS="-g"
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3639 main ()
3643 return 0;
3645 _ACEOF
3646 if ac_fn_c_try_compile "$LINENO"; then :
3647 ac_cv_prog_cc_g=yes
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 ac_c_werror_flag=$ac_save_c_werror_flag
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3657 $as_echo "$ac_cv_prog_cc_g" >&6; }
3658 if test "$ac_test_CFLAGS" = set; then
3659 CFLAGS=$ac_save_CFLAGS
3660 elif test $ac_cv_prog_cc_g = yes; then
3661 if test "$GCC" = yes; then
3662 CFLAGS="-g -O2"
3663 else
3664 CFLAGS="-g"
3666 else
3667 if test "$GCC" = yes; then
3668 CFLAGS="-O2"
3669 else
3670 CFLAGS=
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3674 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3675 if ${ac_cv_prog_cc_c89+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 ac_cv_prog_cc_c89=no
3679 ac_save_CC=$CC
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682 #include <stdarg.h>
3683 #include <stdio.h>
3684 struct stat;
3685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3686 struct buf { int x; };
3687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3688 static char *e (p, i)
3689 char **p;
3690 int i;
3692 return p[i];
3694 static char *f (char * (*g) (char **, int), char **p, ...)
3696 char *s;
3697 va_list v;
3698 va_start (v,p);
3699 s = g (p, va_arg (v,int));
3700 va_end (v);
3701 return s;
3704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3705 function prototypes and stuff, but not '\xHH' hex character constants.
3706 These don't provoke an error unfortunately, instead are silently treated
3707 as 'x'. The following induces an error, until -std is added to get
3708 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3709 array size at least. It's necessary to write '\x00'==0 to get something
3710 that's true only with -std. */
3711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3713 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3714 inside strings and character constants. */
3715 #define FOO(x) 'x'
3716 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3718 int test (int i, double x);
3719 struct s1 {int (*f) (int a);};
3720 struct s2 {int (*f) (double a);};
3721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3722 int argc;
3723 char **argv;
3725 main ()
3727 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3729 return 0;
3731 _ACEOF
3732 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3733 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3735 CC="$ac_save_CC $ac_arg"
3736 if ac_fn_c_try_compile "$LINENO"; then :
3737 ac_cv_prog_cc_c89=$ac_arg
3739 rm -f core conftest.err conftest.$ac_objext
3740 test "x$ac_cv_prog_cc_c89" != "xno" && break
3741 done
3742 rm -f conftest.$ac_ext
3743 CC=$ac_save_CC
3746 # AC_CACHE_VAL
3747 case "x$ac_cv_prog_cc_c89" in
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3750 $as_echo "none needed" >&6; } ;;
3751 xno)
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3753 $as_echo "unsupported" >&6; } ;;
3755 CC="$CC $ac_cv_prog_cc_c89"
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3757 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3758 esac
3759 if test "x$ac_cv_prog_cc_c89" != xno; then :
3763 ac_ext=c
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769 ac_ext=cpp
3770 ac_cpp='$CXXCPP $CPPFLAGS'
3771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3774 if test -z "$CXX"; then
3775 if test -n "$CCC"; then
3776 CXX=$CCC
3777 else
3778 if test -n "$ac_tool_prefix"; then
3779 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3782 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784 $as_echo_n "checking for $ac_word... " >&6; }
3785 if ${ac_cv_prog_CXX+:} false; then :
3786 $as_echo_n "(cached) " >&6
3787 else
3788 if test -n "$CXX"; then
3789 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3790 else
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3798 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 break 2
3802 done
3803 done
3804 IFS=$as_save_IFS
3808 CXX=$ac_cv_prog_CXX
3809 if test -n "$CXX"; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3811 $as_echo "$CXX" >&6; }
3812 else
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3818 test -n "$CXX" && break
3819 done
3821 if test -z "$CXX"; then
3822 ac_ct_CXX=$CXX
3823 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3825 # Extract the first word of "$ac_prog", so it can be a program name with args.
3826 set dummy $ac_prog; ac_word=$2
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 $as_echo_n "checking for $ac_word... " >&6; }
3829 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3830 $as_echo_n "(cached) " >&6
3831 else
3832 if test -n "$ac_ct_CXX"; then
3833 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_prog_ac_ct_CXX="$ac_prog"
3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 break 2
3846 done
3847 done
3848 IFS=$as_save_IFS
3852 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3853 if test -n "$ac_ct_CXX"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3855 $as_echo "$ac_ct_CXX" >&6; }
3856 else
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3862 test -n "$ac_ct_CXX" && break
3863 done
3865 if test "x$ac_ct_CXX" = x; then
3866 CXX="g++"
3867 else
3868 case $cross_compiling:$ac_tool_warned in
3869 yes:)
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3872 ac_tool_warned=yes ;;
3873 esac
3874 CXX=$ac_ct_CXX
3880 # Provide some information about the compiler.
3881 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3882 set X $ac_compile
3883 ac_compiler=$2
3884 for ac_option in --version -v -V -qversion; do
3885 { { ac_try="$ac_compiler $ac_option >&5"
3886 case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3889 esac
3890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891 $as_echo "$ac_try_echo"; } >&5
3892 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3893 ac_status=$?
3894 if test -s conftest.err; then
3895 sed '10a\
3896 ... rest of stderr output deleted ...
3897 10q' conftest.err >conftest.er1
3898 cat conftest.er1 >&5
3900 rm -f conftest.er1 conftest.err
3901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; }
3903 done
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3906 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3907 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3914 main ()
3916 #ifndef __GNUC__
3917 choke me
3918 #endif
3921 return 0;
3923 _ACEOF
3924 if ac_fn_cxx_try_compile "$LINENO"; then :
3925 ac_compiler_gnu=yes
3926 else
3927 ac_compiler_gnu=no
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3934 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3935 if test $ac_compiler_gnu = yes; then
3936 GXX=yes
3937 else
3938 GXX=
3940 ac_test_CXXFLAGS=${CXXFLAGS+set}
3941 ac_save_CXXFLAGS=$CXXFLAGS
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3943 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3944 if ${ac_cv_prog_cxx_g+:} false; then :
3945 $as_echo_n "(cached) " >&6
3946 else
3947 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3948 ac_cxx_werror_flag=yes
3949 ac_cv_prog_cxx_g=no
3950 CXXFLAGS="-g"
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3955 main ()
3959 return 0;
3961 _ACEOF
3962 if ac_fn_cxx_try_compile "$LINENO"; then :
3963 ac_cv_prog_cxx_g=yes
3964 else
3965 CXXFLAGS=""
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3970 main ()
3974 return 0;
3976 _ACEOF
3977 if ac_fn_cxx_try_compile "$LINENO"; then :
3979 else
3980 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3981 CXXFLAGS="-g"
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3986 main ()
3990 return 0;
3992 _ACEOF
3993 if ac_fn_cxx_try_compile "$LINENO"; then :
3994 ac_cv_prog_cxx_g=yes
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4004 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4005 if test "$ac_test_CXXFLAGS" = set; then
4006 CXXFLAGS=$ac_save_CXXFLAGS
4007 elif test $ac_cv_prog_cxx_g = yes; then
4008 if test "$GXX" = yes; then
4009 CXXFLAGS="-g -O2"
4010 else
4011 CXXFLAGS="-g"
4013 else
4014 if test "$GXX" = yes; then
4015 CXXFLAGS="-O2"
4016 else
4017 CXXFLAGS=
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4026 if test -n "$ac_tool_prefix"; then
4027 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4028 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if ${ac_cv_prog_CPPBIN+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 if test -n "$CPPBIN"; then
4035 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4036 else
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4040 IFS=$as_save_IFS
4041 test -z "$as_dir" && as_dir=.
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 break 2
4048 done
4049 done
4050 IFS=$as_save_IFS
4054 CPPBIN=$ac_cv_prog_CPPBIN
4055 if test -n "$CPPBIN"; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4057 $as_echo "$CPPBIN" >&6; }
4058 else
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4065 if test -z "$ac_cv_prog_CPPBIN"; then
4066 ac_ct_CPPBIN=$CPPBIN
4067 # Extract the first word of "cpp", so it can be a program name with args.
4068 set dummy cpp; ac_word=$2
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 if test -n "$ac_ct_CPPBIN"; then
4075 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_prog_ac_ct_CPPBIN="cpp"
4085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4088 done
4089 done
4090 IFS=$as_save_IFS
4094 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4095 if test -n "$ac_ct_CPPBIN"; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4097 $as_echo "$ac_ct_CPPBIN" >&6; }
4098 else
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4103 if test "x$ac_ct_CPPBIN" = x; then
4104 CPPBIN="cpp"
4105 else
4106 case $cross_compiling:$ac_tool_warned in
4107 yes:)
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4110 ac_tool_warned=yes ;;
4111 esac
4112 CPPBIN=$ac_ct_CPPBIN
4114 else
4115 CPPBIN="$ac_cv_prog_CPPBIN"
4119 cat >>confdefs.h <<_ACEOF
4120 #define EXEEXT "$ac_exeext"
4121 _ACEOF
4124 case $host in
4125 *-darwin*)
4126 if test "x$enable_win64" = "xyes"
4127 then
4128 CC="$CC -m64"
4129 CXX="$CXX -m64"
4130 host_cpu="x86_64"
4131 notice_platform="64-bit "
4132 TARGETFLAGS="-m64"
4134 else
4135 CC="$CC -m32"
4136 CXX="$CXX -m32"
4137 host_cpu="i386"
4138 notice_platform="32-bit "
4139 TARGETFLAGS="-m32"
4141 enable_win16=${enable_win16:-yes}
4143 with_fontconfig=${with_fontconfig:-no}
4145 x86_64*)
4146 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4147 then
4148 CC="$CC -m32"
4149 CXX="$CXX -m32"
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4151 $as_echo_n "checking whether $CC works... " >&6; }
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4157 main ()
4161 return 0;
4163 _ACEOF
4164 if ac_fn_c_try_link "$LINENO"; then :
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4166 $as_echo "yes" >&6; }
4167 else
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4170 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4172 rm -f core conftest.err conftest.$ac_objext \
4173 conftest$ac_exeext conftest.$ac_ext
4174 host_cpu="i386"
4175 notice_platform="32-bit "
4176 TARGETFLAGS="-m32"
4178 enable_win16=${enable_win16:-yes}
4179 else
4180 if test "x${GCC}" = "xyes"
4181 then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4183 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #include <stdarg.h>
4188 main ()
4190 void func(__builtin_ms_va_list *args);
4192 return 0;
4194 _ACEOF
4195 if ac_fn_c_try_compile "$LINENO"; then :
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4197 $as_echo "yes" >&6; }
4198 else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4201 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 TARGETFLAGS="-m64"
4209 arm*)
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4211 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 int ac_test(int i) { return i; }
4216 main ()
4218 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4220 return 0;
4222 _ACEOF
4223 if ac_fn_c_try_link "$LINENO"; then :
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4225 $as_echo "yes" >&6; }
4226 else
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228 $as_echo "no" >&6; }
4229 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4231 rm -f core conftest.err conftest.$ac_objext \
4232 conftest$ac_exeext conftest.$ac_ext
4233 CFLAGS="$CFLAGS -marm"
4235 *-mingw32*|*-cygwin*)
4236 enable_win16=${enable_win16:-no}
4237 CFLAGS="$CFLAGS -D_WIN32"
4239 i[3456789]86*)
4240 enable_win16=${enable_win16:-yes}
4242 esac
4244 enable_win16=${enable_win16:-no}
4245 enable_win64=${enable_win64:-no}
4247 enable_winetest=${enable_winetest:-$enable_tests}
4249 if test -n "$with_wine64"
4250 then
4251 if test "x$enable_win64" = "xyes"
4252 then
4253 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4254 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4256 WOW64_DISABLE=\#
4258 enable_fonts=${enable_fonts:-no}
4259 enable_server=${enable_server:-no}
4260 enable_tools=${enable_tools:-no}
4261 elif test "x$enable_win64" = "xyes"
4262 then
4263 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4267 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4268 if ${wine_cv_toolsdir+:} false; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 wine_cv_toolsdir="$with_wine_tools"
4272 if test -z "$with_wine_tools"; then
4273 if test "$cross_compiling" = "yes"; then
4274 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4275 elif test -n "$with_wine64"; then
4276 wine_cv_toolsdir="$with_wine64"
4279 if test -z "$wine_cv_toolsdir"; then
4280 wine_cv_toolsdir="\$(top_builddir)"
4281 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4282 case "$wine_cv_toolsdir" in
4283 /*) ;;
4284 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4285 esac
4286 else
4287 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4291 $as_echo "$wine_cv_toolsdir" >&6; }
4292 TOOLSDIR=$wine_cv_toolsdir
4294 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4295 then
4296 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4300 for ac_prog in flex
4302 # Extract the first word of "$ac_prog", so it can be a program name with args.
4303 set dummy $ac_prog; ac_word=$2
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305 $as_echo_n "checking for $ac_word... " >&6; }
4306 if ${ac_cv_prog_FLEX+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if test -n "$FLEX"; then
4310 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319 ac_cv_prog_FLEX="$ac_prog"
4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4323 done
4324 done
4325 IFS=$as_save_IFS
4329 FLEX=$ac_cv_prog_FLEX
4330 if test -n "$FLEX"; then
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4332 $as_echo "$FLEX" >&6; }
4333 else
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 $as_echo "no" >&6; }
4339 test -n "$FLEX" && break
4340 done
4341 test -n "$FLEX" || FLEX="none"
4343 if test "$FLEX" = "none"
4344 then
4345 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4348 $as_echo_n "checking whether flex is recent enough... " >&6; }
4349 cat >conftest.l <<EOF
4350 %top{
4351 #include "prediluvian.h"
4355 if $FLEX -t conftest.l >/dev/null 2>&5
4356 then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4358 $as_echo "yes" >&6; }
4359 else
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4362 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4365 for ac_prog in bison
4367 # Extract the first word of "$ac_prog", so it can be a program name with args.
4368 set dummy $ac_prog; ac_word=$2
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 $as_echo_n "checking for $ac_word... " >&6; }
4371 if ${ac_cv_prog_BISON+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 if test -n "$BISON"; then
4375 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4376 else
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4384 ac_cv_prog_BISON="$ac_prog"
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
4388 done
4389 done
4390 IFS=$as_save_IFS
4394 BISON=$ac_cv_prog_BISON
4395 if test -n "$BISON"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4397 $as_echo "$BISON" >&6; }
4398 else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4404 test -n "$BISON" && break
4405 done
4406 test -n "$BISON" || BISON="none"
4408 if test "$BISON" = "none"
4409 then
4410 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4413 if test -n "$ac_tool_prefix"; then
4414 for ac_prog in ar gar
4416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if ${ac_cv_prog_AR+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test -n "$AR"; then
4424 ac_cv_prog_AR="$AR" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4437 done
4438 done
4439 IFS=$as_save_IFS
4443 AR=$ac_cv_prog_AR
4444 if test -n "$AR"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4446 $as_echo "$AR" >&6; }
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4453 test -n "$AR" && break
4454 done
4456 if test -z "$AR"; then
4457 ac_ct_AR=$AR
4458 for ac_prog in ar gar
4460 # Extract the first word of "$ac_prog", so it can be a program name with args.
4461 set dummy $ac_prog; ac_word=$2
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 $as_echo_n "checking for $ac_word... " >&6; }
4464 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test -n "$ac_ct_AR"; then
4468 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4469 else
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_prog_ac_ct_AR="$ac_prog"
4478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4481 done
4482 done
4483 IFS=$as_save_IFS
4487 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4488 if test -n "$ac_ct_AR"; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4490 $as_echo "$ac_ct_AR" >&6; }
4491 else
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 $as_echo "no" >&6; }
4497 test -n "$ac_ct_AR" && break
4498 done
4500 if test "x$ac_ct_AR" = x; then
4501 AR="ar"
4502 else
4503 case $cross_compiling:$ac_tool_warned in
4504 yes:)
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4507 ac_tool_warned=yes ;;
4508 esac
4509 AR=$ac_ct_AR
4513 ARFLAGS=rc
4515 if test -n "$ac_tool_prefix"; then
4516 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4517 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if ${ac_cv_prog_RANLIB+:} false; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 if test -n "$RANLIB"; then
4524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4537 done
4538 done
4539 IFS=$as_save_IFS
4543 RANLIB=$ac_cv_prog_RANLIB
4544 if test -n "$RANLIB"; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4546 $as_echo "$RANLIB" >&6; }
4547 else
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4554 if test -z "$ac_cv_prog_RANLIB"; then
4555 ac_ct_RANLIB=$RANLIB
4556 # Extract the first word of "ranlib", so it can be a program name with args.
4557 set dummy ranlib; ac_word=$2
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559 $as_echo_n "checking for $ac_word... " >&6; }
4560 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 if test -n "$ac_ct_RANLIB"; then
4564 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_prog_ac_ct_RANLIB="ranlib"
4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4577 done
4578 done
4579 IFS=$as_save_IFS
4583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4584 if test -n "$ac_ct_RANLIB"; then
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4586 $as_echo "$ac_ct_RANLIB" >&6; }
4587 else
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 $as_echo "no" >&6; }
4592 if test "x$ac_ct_RANLIB" = x; then
4593 RANLIB=":"
4594 else
4595 case $cross_compiling:$ac_tool_warned in
4596 yes:)
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4599 ac_tool_warned=yes ;;
4600 esac
4601 RANLIB=$ac_ct_RANLIB
4603 else
4604 RANLIB="$ac_cv_prog_RANLIB"
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4608 $as_echo_n "checking whether ln -s works... " >&6; }
4609 LN_S=$as_ln_s
4610 if test "$LN_S" = "ln -s"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4612 $as_echo "yes" >&6; }
4613 else
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4615 $as_echo "no, using $LN_S" >&6; }
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4619 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4620 if ${ac_cv_path_GREP+:} false; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if test -z "$GREP"; then
4624 ac_path_GREP_found=false
4625 # Loop through the user's path and test for each of PROGNAME-LIST
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_prog in grep ggrep; do
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4634 as_fn_executable_p "$ac_path_GREP" || continue
4635 # Check for GNU ac_path_GREP and select it if it is found.
4636 # Check for GNU $ac_path_GREP
4637 case `"$ac_path_GREP" --version 2>&1` in
4638 *GNU*)
4639 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4641 ac_count=0
4642 $as_echo_n 0123456789 >"conftest.in"
4643 while :
4645 cat "conftest.in" "conftest.in" >"conftest.tmp"
4646 mv "conftest.tmp" "conftest.in"
4647 cp "conftest.in" "conftest.nl"
4648 $as_echo 'GREP' >> "conftest.nl"
4649 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4651 as_fn_arith $ac_count + 1 && ac_count=$as_val
4652 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4653 # Best one so far, save it but keep looking for a better one
4654 ac_cv_path_GREP="$ac_path_GREP"
4655 ac_path_GREP_max=$ac_count
4657 # 10*(2^10) chars as input seems more than enough
4658 test $ac_count -gt 10 && break
4659 done
4660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4661 esac
4663 $ac_path_GREP_found && break 3
4664 done
4665 done
4666 done
4667 IFS=$as_save_IFS
4668 if test -z "$ac_cv_path_GREP"; then
4669 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4671 else
4672 ac_cv_path_GREP=$GREP
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4677 $as_echo "$ac_cv_path_GREP" >&6; }
4678 GREP="$ac_cv_path_GREP"
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4682 $as_echo_n "checking for egrep... " >&6; }
4683 if ${ac_cv_path_EGREP+:} false; then :
4684 $as_echo_n "(cached) " >&6
4685 else
4686 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4687 then ac_cv_path_EGREP="$GREP -E"
4688 else
4689 if test -z "$EGREP"; then
4690 ac_path_EGREP_found=false
4691 # Loop through the user's path and test for each of PROGNAME-LIST
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_prog in egrep; do
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4700 as_fn_executable_p "$ac_path_EGREP" || continue
4701 # Check for GNU ac_path_EGREP and select it if it is found.
4702 # Check for GNU $ac_path_EGREP
4703 case `"$ac_path_EGREP" --version 2>&1` in
4704 *GNU*)
4705 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4707 ac_count=0
4708 $as_echo_n 0123456789 >"conftest.in"
4709 while :
4711 cat "conftest.in" "conftest.in" >"conftest.tmp"
4712 mv "conftest.tmp" "conftest.in"
4713 cp "conftest.in" "conftest.nl"
4714 $as_echo 'EGREP' >> "conftest.nl"
4715 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4716 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4717 as_fn_arith $ac_count + 1 && ac_count=$as_val
4718 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4719 # Best one so far, save it but keep looking for a better one
4720 ac_cv_path_EGREP="$ac_path_EGREP"
4721 ac_path_EGREP_max=$ac_count
4723 # 10*(2^10) chars as input seems more than enough
4724 test $ac_count -gt 10 && break
4725 done
4726 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4727 esac
4729 $ac_path_EGREP_found && break 3
4730 done
4731 done
4732 done
4733 IFS=$as_save_IFS
4734 if test -z "$ac_cv_path_EGREP"; then
4735 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4737 else
4738 ac_cv_path_EGREP=$EGREP
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4744 $as_echo "$ac_cv_path_EGREP" >&6; }
4745 EGREP="$ac_cv_path_EGREP"
4748 # Extract the first word of "ldconfig", so it can be a program name with args.
4749 set dummy ldconfig; ac_word=$2
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if ${ac_cv_path_LDCONFIG+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 case $LDCONFIG in
4756 [\\/]* | ?:[\\/]*)
4757 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in /sbin /usr/sbin $PATH
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4767 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4771 done
4772 done
4773 IFS=$as_save_IFS
4775 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4777 esac
4779 LDCONFIG=$ac_cv_path_LDCONFIG
4780 if test -n "$LDCONFIG"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4782 $as_echo "$LDCONFIG" >&6; }
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4789 # Find a good install program. We prefer a C program (faster),
4790 # so one script is as good as another. But avoid the broken or
4791 # incompatible versions:
4792 # SysV /etc/install, /usr/sbin/install
4793 # SunOS /usr/etc/install
4794 # IRIX /sbin/install
4795 # AIX /bin/install
4796 # AmigaOS /C/install, which installs bootblocks on floppy discs
4797 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4798 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4799 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4800 # OS/2's system install, which has a completely different semantic
4801 # ./install, which can be erroneously created by make from ./install.sh.
4802 # Reject install programs that cannot install multiple files.
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4804 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4805 if test -z "$INSTALL"; then
4806 if ${ac_cv_path_install+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
4814 # Account for people who put trailing slashes in PATH elements.
4815 case $as_dir/ in #((
4816 ./ | .// | /[cC]/* | \
4817 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4818 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4819 /usr/ucb/* ) ;;
4821 # OSF1 and SCO ODT 3.0 have their own names for install.
4822 # Don't use installbsd from OSF since it installs stuff as root
4823 # by default.
4824 for ac_prog in ginstall scoinst install; do
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4827 if test $ac_prog = install &&
4828 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4829 # AIX install. It has an incompatible calling convention.
4831 elif test $ac_prog = install &&
4832 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4833 # program-specific install script used by HP pwplus--don't use.
4835 else
4836 rm -rf conftest.one conftest.two conftest.dir
4837 echo one > conftest.one
4838 echo two > conftest.two
4839 mkdir conftest.dir
4840 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4841 test -s conftest.one && test -s conftest.two &&
4842 test -s conftest.dir/conftest.one &&
4843 test -s conftest.dir/conftest.two
4844 then
4845 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4846 break 3
4850 done
4851 done
4853 esac
4855 done
4856 IFS=$as_save_IFS
4858 rm -rf conftest.one conftest.two conftest.dir
4861 if test "${ac_cv_path_install+set}" = set; then
4862 INSTALL=$ac_cv_path_install
4863 else
4864 # As a last resort, use the slow shell script. Don't cache a
4865 # value for INSTALL within a source directory, because that will
4866 # break other packages using the cache if that directory is
4867 # removed, or if the value is a relative name.
4868 INSTALL=$ac_install_sh
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4872 $as_echo "$INSTALL" >&6; }
4874 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4875 # It thinks the first close brace ends the variable substitution.
4876 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4878 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4880 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4882 case "$INSTALL" in
4883 [\\/$]* | ?:[\\/]* ) ;;
4884 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4885 esac
4887 for ac_prog in lclint lint
4889 # Extract the first word of "$ac_prog", so it can be a program name with args.
4890 set dummy $ac_prog; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if ${ac_cv_prog_LINT+:} false; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 if test -n "$LINT"; then
4897 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906 ac_cv_prog_LINT="$ac_prog"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4910 done
4911 done
4912 IFS=$as_save_IFS
4916 LINT=$ac_cv_prog_LINT
4917 if test -n "$LINT"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4919 $as_echo "$LINT" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4926 test -n "$LINT" && break
4927 done
4929 if test "$LINT" = "lint"
4930 then
4931 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4935 for ac_prog in fontforge
4937 # Extract the first word of "$ac_prog", so it can be a program name with args.
4938 set dummy $ac_prog; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if ${ac_cv_prog_FONTFORGE+:} false; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 if test -n "$FONTFORGE"; then
4945 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4954 ac_cv_prog_FONTFORGE="$ac_prog"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4958 done
4959 done
4960 IFS=$as_save_IFS
4964 FONTFORGE=$ac_cv_prog_FONTFORGE
4965 if test -n "$FONTFORGE"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4967 $as_echo "$FONTFORGE" >&6; }
4968 else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4974 test -n "$FONTFORGE" && break
4975 done
4976 test -n "$FONTFORGE" || FONTFORGE="false"
4978 for ac_prog in rsvg
4980 # Extract the first word of "$ac_prog", so it can be a program name with args.
4981 set dummy $ac_prog; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if ${ac_cv_prog_RSVG+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if test -n "$RSVG"; then
4988 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997 ac_cv_prog_RSVG="$ac_prog"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5001 done
5002 done
5003 IFS=$as_save_IFS
5007 RSVG=$ac_cv_prog_RSVG
5008 if test -n "$RSVG"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5010 $as_echo "$RSVG" >&6; }
5011 else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5017 test -n "$RSVG" && break
5018 done
5019 test -n "$RSVG" || RSVG="false"
5021 for ac_prog in convert
5023 # Extract the first word of "$ac_prog", so it can be a program name with args.
5024 set dummy $ac_prog; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_prog_CONVERT+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 if test -n "$CONVERT"; then
5031 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_prog_CONVERT="$ac_prog"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5044 done
5045 done
5046 IFS=$as_save_IFS
5050 CONVERT=$ac_cv_prog_CONVERT
5051 if test -n "$CONVERT"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5053 $as_echo "$CONVERT" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5060 test -n "$CONVERT" && break
5061 done
5062 test -n "$CONVERT" || CONVERT="false"
5064 for ac_prog in icotool
5066 # Extract the first word of "$ac_prog", so it can be a program name with args.
5067 set dummy $ac_prog; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_prog_ICOTOOL+:} false; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 if test -n "$ICOTOOL"; then
5074 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083 ac_cv_prog_ICOTOOL="$ac_prog"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5087 done
5088 done
5089 IFS=$as_save_IFS
5093 ICOTOOL=$ac_cv_prog_ICOTOOL
5094 if test -n "$ICOTOOL"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5096 $as_echo "$ICOTOOL" >&6; }
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5103 test -n "$ICOTOOL" && break
5104 done
5105 test -n "$ICOTOOL" || ICOTOOL="false"
5107 for ac_prog in msgfmt
5109 # Extract the first word of "$ac_prog", so it can be a program name with args.
5110 set dummy $ac_prog; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if ${ac_cv_prog_MSGFMT+:} false; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 if test -n "$MSGFMT"; then
5117 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5118 else
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_MSGFMT="$ac_prog"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5130 done
5131 done
5132 IFS=$as_save_IFS
5136 MSGFMT=$ac_cv_prog_MSGFMT
5137 if test -n "$MSGFMT"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5139 $as_echo "$MSGFMT" >&6; }
5140 else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5146 test -n "$MSGFMT" && break
5147 done
5148 test -n "$MSGFMT" || MSGFMT="false"
5151 if test "x$enable_maintainer_mode" != "xyes"
5152 then
5153 MAINTAINER_MODE=\#
5155 else
5156 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5157 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5159 if test "$CONVERT" = false
5160 then
5161 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5164 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5165 convert_version=`convert --version | head -n1`
5166 if test "x$convert_version" != "x"
5167 then
5168 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5169 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5170 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5171 then
5172 CONVERT=false
5175 if test "$CONVERT" = false
5176 then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5178 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5179 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5180 else
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5182 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5186 if test "$ICOTOOL" = false
5187 then
5188 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5191 $as_echo_n "checking for recent enough icotool... " >&6; }
5192 icotool_version=`icotool --version | head -n1`
5193 if test "x$icotool_version" != "x"
5194 then
5195 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5196 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5197 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5198 then
5199 ICOTOOL=false
5200 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5203 if test "$ICOTOOL" = false
5204 then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5206 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5207 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5208 else
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5210 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5214 with_gettext=yes
5215 with_gettextpo=yes
5216 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5219 test "x$with_gettext" != xno || MSGFMT=false
5220 if test "$MSGFMT" != "false"
5221 then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5223 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5224 cat >conftest.po <<EOF
5225 # comment
5226 msgctxt "ctxt"
5227 msgid "id"
5228 msgstr "str"
5230 if $MSGFMT -o /dev/null conftest.po 2>&5
5231 then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5233 $as_echo "yes" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 MSGFMT=false
5240 if test "$MSGFMT" = false; then :
5241 case "x$with_gettext" in
5242 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5243 xno) ;;
5244 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5245 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5246 esac
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5251 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5252 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 ac_check_lib_save_LIBS=$LIBS
5256 LIBS="-li386 $LIBS"
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5260 /* Override any GCC internal prototype to avoid an error.
5261 Use char because int might match the return type of a GCC
5262 builtin and then its argument prototype would still apply. */
5263 #ifdef __cplusplus
5264 extern "C"
5265 #endif
5266 char i386_set_ldt ();
5268 main ()
5270 return i386_set_ldt ();
5272 return 0;
5274 _ACEOF
5275 if ac_fn_c_try_link "$LINENO"; then :
5276 ac_cv_lib_i386_i386_set_ldt=yes
5277 else
5278 ac_cv_lib_i386_i386_set_ldt=no
5280 rm -f core conftest.err conftest.$ac_objext \
5281 conftest$ac_exeext conftest.$ac_ext
5282 LIBS=$ac_check_lib_save_LIBS
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5285 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5286 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5287 cat >>confdefs.h <<_ACEOF
5288 #define HAVE_LIBI386 1
5289 _ACEOF
5291 LIBS="-li386 $LIBS"
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5296 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5297 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 ac_check_lib_save_LIBS=$LIBS
5301 LIBS="-lossaudio $LIBS"
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5305 /* Override any GCC internal prototype to avoid an error.
5306 Use char because int might match the return type of a GCC
5307 builtin and then its argument prototype would still apply. */
5308 #ifdef __cplusplus
5309 extern "C"
5310 #endif
5311 char _oss_ioctl ();
5313 main ()
5315 return _oss_ioctl ();
5317 return 0;
5319 _ACEOF
5320 if ac_fn_c_try_link "$LINENO"; then :
5321 ac_cv_lib_ossaudio__oss_ioctl=yes
5322 else
5323 ac_cv_lib_ossaudio__oss_ioctl=no
5325 rm -f core conftest.err conftest.$ac_objext \
5326 conftest$ac_exeext conftest.$ac_ext
5327 LIBS=$ac_check_lib_save_LIBS
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5330 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5331 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5332 cat >>confdefs.h <<_ACEOF
5333 #define HAVE_LIBOSSAUDIO 1
5334 _ACEOF
5336 LIBS="-lossaudio $LIBS"
5341 XLIB=""
5343 OPENGL_LIBS=""
5347 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5349 # Check whether --enable-largefile was given.
5350 if test "${enable_largefile+set}" = set; then :
5351 enableval=$enable_largefile;
5354 if test "$enable_largefile" != no; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5357 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5358 if ${ac_cv_sys_largefile_CC+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 ac_cv_sys_largefile_CC=no
5362 if test "$GCC" != yes; then
5363 ac_save_CC=$CC
5364 while :; do
5365 # IRIX 6.2 and later do not support large files by default,
5366 # so use the C compiler's -n32 option if that helps.
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 #include <sys/types.h>
5370 /* Check that off_t can represent 2**63 - 1 correctly.
5371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5372 since some C++ compilers masquerading as C compilers
5373 incorrectly reject 9223372036854775807. */
5374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5376 && LARGE_OFF_T % 2147483647 == 1)
5377 ? 1 : -1];
5379 main ()
5383 return 0;
5385 _ACEOF
5386 if ac_fn_c_try_compile "$LINENO"; then :
5387 break
5389 rm -f core conftest.err conftest.$ac_objext
5390 CC="$CC -n32"
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392 ac_cv_sys_largefile_CC=' -n32'; break
5394 rm -f core conftest.err conftest.$ac_objext
5395 break
5396 done
5397 CC=$ac_save_CC
5398 rm -f conftest.$ac_ext
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5402 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5403 if test "$ac_cv_sys_largefile_CC" != no; then
5404 CC=$CC$ac_cv_sys_largefile_CC
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5408 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5409 if ${ac_cv_sys_file_offset_bits+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 while :; do
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415 #include <sys/types.h>
5416 /* Check that off_t can represent 2**63 - 1 correctly.
5417 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5418 since some C++ compilers masquerading as C compilers
5419 incorrectly reject 9223372036854775807. */
5420 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5421 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5422 && LARGE_OFF_T % 2147483647 == 1)
5423 ? 1 : -1];
5425 main ()
5429 return 0;
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433 ac_cv_sys_file_offset_bits=no; break
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 #define _FILE_OFFSET_BITS 64
5439 #include <sys/types.h>
5440 /* Check that off_t can represent 2**63 - 1 correctly.
5441 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5442 since some C++ compilers masquerading as C compilers
5443 incorrectly reject 9223372036854775807. */
5444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5446 && LARGE_OFF_T % 2147483647 == 1)
5447 ? 1 : -1];
5449 main ()
5453 return 0;
5455 _ACEOF
5456 if ac_fn_c_try_compile "$LINENO"; then :
5457 ac_cv_sys_file_offset_bits=64; break
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 ac_cv_sys_file_offset_bits=unknown
5461 break
5462 done
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5465 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5466 case $ac_cv_sys_file_offset_bits in #(
5467 no | unknown) ;;
5469 cat >>confdefs.h <<_ACEOF
5470 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5471 _ACEOF
5473 esac
5474 rm -rf conftest*
5475 if test $ac_cv_sys_file_offset_bits = unknown; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5477 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5478 if ${ac_cv_sys_large_files+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 while :; do
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 #include <sys/types.h>
5485 /* Check that off_t can represent 2**63 - 1 correctly.
5486 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5487 since some C++ compilers masquerading as C compilers
5488 incorrectly reject 9223372036854775807. */
5489 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5490 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5491 && LARGE_OFF_T % 2147483647 == 1)
5492 ? 1 : -1];
5494 main ()
5498 return 0;
5500 _ACEOF
5501 if ac_fn_c_try_compile "$LINENO"; then :
5502 ac_cv_sys_large_files=no; break
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 #define _LARGE_FILES 1
5508 #include <sys/types.h>
5509 /* Check that off_t can represent 2**63 - 1 correctly.
5510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5511 since some C++ compilers masquerading as C compilers
5512 incorrectly reject 9223372036854775807. */
5513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5515 && LARGE_OFF_T % 2147483647 == 1)
5516 ? 1 : -1];
5518 main ()
5522 return 0;
5524 _ACEOF
5525 if ac_fn_c_try_compile "$LINENO"; then :
5526 ac_cv_sys_large_files=1; break
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 ac_cv_sys_large_files=unknown
5530 break
5531 done
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5534 $as_echo "$ac_cv_sys_large_files" >&6; }
5535 case $ac_cv_sys_large_files in #(
5536 no | unknown) ;;
5538 cat >>confdefs.h <<_ACEOF
5539 #define _LARGE_FILES $ac_cv_sys_large_files
5540 _ACEOF
5542 esac
5543 rm -rf conftest*
5550 ac_ext=c
5551 ac_cpp='$CPP $CPPFLAGS'
5552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5556 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5557 # On Suns, sometimes $CPP names a directory.
5558 if test -n "$CPP" && test -d "$CPP"; then
5559 CPP=
5561 if test -z "$CPP"; then
5562 if ${ac_cv_prog_CPP+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 # Double quotes because CPP needs to be expanded
5566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5568 ac_preproc_ok=false
5569 for ac_c_preproc_warn_flag in '' yes
5571 # Use a header file that comes with gcc, so configuring glibc
5572 # with a fresh cross-compiler works.
5573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5574 # <limits.h> exists even on freestanding compilers.
5575 # On the NeXT, cc -E runs the code through the compiler's parser,
5576 # not just through cpp. "Syntax error" is here to catch this case.
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 #ifdef __STDC__
5580 # include <limits.h>
5581 #else
5582 # include <assert.h>
5583 #endif
5584 Syntax error
5585 _ACEOF
5586 if ac_fn_c_try_cpp "$LINENO"; then :
5588 else
5589 # Broken: fails on valid input.
5590 continue
5592 rm -f conftest.err conftest.i conftest.$ac_ext
5594 # OK, works on sane cases. Now check whether nonexistent headers
5595 # can be detected and how.
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598 #include <ac_nonexistent.h>
5599 _ACEOF
5600 if ac_fn_c_try_cpp "$LINENO"; then :
5601 # Broken: success on invalid input.
5602 continue
5603 else
5604 # Passes both tests.
5605 ac_preproc_ok=:
5606 break
5608 rm -f conftest.err conftest.i conftest.$ac_ext
5610 done
5611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5612 rm -f conftest.i conftest.err conftest.$ac_ext
5613 if $ac_preproc_ok; then :
5614 break
5617 done
5618 ac_cv_prog_CPP=$CPP
5621 CPP=$ac_cv_prog_CPP
5622 else
5623 ac_cv_prog_CPP=$CPP
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5626 $as_echo "$CPP" >&6; }
5627 ac_preproc_ok=false
5628 for ac_c_preproc_warn_flag in '' yes
5630 # Use a header file that comes with gcc, so configuring glibc
5631 # with a fresh cross-compiler works.
5632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5633 # <limits.h> exists even on freestanding compilers.
5634 # On the NeXT, cc -E runs the code through the compiler's parser,
5635 # not just through cpp. "Syntax error" is here to catch this case.
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #ifdef __STDC__
5639 # include <limits.h>
5640 #else
5641 # include <assert.h>
5642 #endif
5643 Syntax error
5644 _ACEOF
5645 if ac_fn_c_try_cpp "$LINENO"; then :
5647 else
5648 # Broken: fails on valid input.
5649 continue
5651 rm -f conftest.err conftest.i conftest.$ac_ext
5653 # OK, works on sane cases. Now check whether nonexistent headers
5654 # can be detected and how.
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657 #include <ac_nonexistent.h>
5658 _ACEOF
5659 if ac_fn_c_try_cpp "$LINENO"; then :
5660 # Broken: success on invalid input.
5661 continue
5662 else
5663 # Passes both tests.
5664 ac_preproc_ok=:
5665 break
5667 rm -f conftest.err conftest.i conftest.$ac_ext
5669 done
5670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5671 rm -f conftest.i conftest.err conftest.$ac_ext
5672 if $ac_preproc_ok; then :
5674 else
5675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5677 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5678 See \`config.log' for more details" "$LINENO" 5; }
5681 ac_ext=c
5682 ac_cpp='$CPP $CPPFLAGS'
5683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5689 $as_echo_n "checking for ANSI C header files... " >&6; }
5690 if ${ac_cv_header_stdc+:} false; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5695 #include <stdlib.h>
5696 #include <stdarg.h>
5697 #include <string.h>
5698 #include <float.h>
5701 main ()
5705 return 0;
5707 _ACEOF
5708 if ac_fn_c_try_compile "$LINENO"; then :
5709 ac_cv_header_stdc=yes
5710 else
5711 ac_cv_header_stdc=no
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 if test $ac_cv_header_stdc = yes; then
5716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5719 #include <string.h>
5721 _ACEOF
5722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5723 $EGREP "memchr" >/dev/null 2>&1; then :
5725 else
5726 ac_cv_header_stdc=no
5728 rm -f conftest*
5732 if test $ac_cv_header_stdc = yes; then
5733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 #include <stdlib.h>
5738 _ACEOF
5739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5740 $EGREP "free" >/dev/null 2>&1; then :
5742 else
5743 ac_cv_header_stdc=no
5745 rm -f conftest*
5749 if test $ac_cv_header_stdc = yes; then
5750 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5751 if test "$cross_compiling" = yes; then :
5753 else
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 #include <ctype.h>
5757 #include <stdlib.h>
5758 #if ((' ' & 0x0FF) == 0x020)
5759 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5761 #else
5762 # define ISLOWER(c) \
5763 (('a' <= (c) && (c) <= 'i') \
5764 || ('j' <= (c) && (c) <= 'r') \
5765 || ('s' <= (c) && (c) <= 'z'))
5766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5767 #endif
5769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5771 main ()
5773 int i;
5774 for (i = 0; i < 256; i++)
5775 if (XOR (islower (i), ISLOWER (i))
5776 || toupper (i) != TOUPPER (i))
5777 return 2;
5778 return 0;
5780 _ACEOF
5781 if ac_fn_c_try_run "$LINENO"; then :
5783 else
5784 ac_cv_header_stdc=no
5786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5787 conftest.$ac_objext conftest.beam conftest.$ac_ext
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5793 $as_echo "$ac_cv_header_stdc" >&6; }
5794 if test $ac_cv_header_stdc = yes; then
5796 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5800 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5801 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5802 inttypes.h stdint.h unistd.h
5803 do :
5804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5805 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5807 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5808 cat >>confdefs.h <<_ACEOF
5809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5810 _ACEOF
5814 done
5817 for ac_header in \
5818 AL/al.h \
5819 ApplicationServices/ApplicationServices.h \
5820 AudioToolbox/AudioConverter.h \
5821 AudioUnit/AudioUnit.h \
5822 AudioUnit/AudioComponent.h \
5823 CL/cl.h \
5824 Carbon/Carbon.h \
5825 CoreAudio/CoreAudio.h \
5826 CoreServices/CoreServices.h \
5827 DiskArbitration/DiskArbitration.h \
5828 IOKit/IOKitLib.h \
5829 IOKit/hid/IOHIDLib.h \
5830 OpenAL/al.h \
5831 OpenCL/opencl.h \
5832 QuickTime/ImageCompression.h \
5833 Security/Security.h \
5834 alias.h \
5835 alsa/asoundlib.h \
5836 arpa/inet.h \
5837 arpa/nameser.h \
5838 asm/types.h \
5839 capi20.h \
5840 curses.h \
5841 direct.h \
5842 dirent.h \
5843 dlfcn.h \
5844 elf.h \
5845 float.h \
5846 fnmatch.h \
5847 fontconfig/fontconfig.h \
5848 getopt.h \
5849 gettext-po.h \
5850 grp.h \
5851 gsm.h \
5852 gsm/gsm.h \
5853 ieeefp.h \
5854 inet/mib2.h \
5855 io.h \
5856 jpeglib.h \
5857 kstat.h \
5858 lber.h \
5859 ldap.h \
5860 link.h \
5861 linux/cdrom.h \
5862 linux/compiler.h \
5863 linux/filter.h \
5864 linux/hdreg.h \
5865 linux/input.h \
5866 linux/ioctl.h \
5867 linux/joystick.h \
5868 linux/major.h \
5869 linux/param.h \
5870 linux/serial.h \
5871 linux/types.h \
5872 linux/ucdrom.h \
5873 lwp.h \
5874 mach-o/nlist.h \
5875 mach-o/loader.h \
5876 mach/mach.h \
5877 mach/machine.h \
5878 machine/cpu.h \
5879 machine/limits.h \
5880 machine/sysarch.h \
5881 mntent.h \
5882 mpg123.h \
5883 ncurses.h \
5884 netdb.h \
5885 netinet/in.h \
5886 netinet/in_systm.h \
5887 netinet/tcp.h \
5888 netinet/tcp_fsm.h \
5889 png.h \
5890 poll.h \
5891 port.h \
5892 process.h \
5893 pthread.h \
5894 pwd.h \
5895 sched.h \
5896 scsi/scsi.h \
5897 scsi/scsi_ioctl.h \
5898 scsi/sg.h \
5899 stdbool.h \
5900 stdint.h \
5901 stropts.h \
5902 sys/asoundlib.h \
5903 sys/attr.h \
5904 sys/cdio.h \
5905 sys/elf32.h \
5906 sys/epoll.h \
5907 sys/event.h \
5908 sys/exec_elf.h \
5909 sys/filio.h \
5910 sys/inotify.h \
5911 sys/ioctl.h \
5912 sys/ipc.h \
5913 sys/limits.h \
5914 sys/link.h \
5915 sys/mman.h \
5916 sys/modem.h \
5917 sys/msg.h \
5918 sys/mtio.h \
5919 sys/param.h \
5920 sys/poll.h \
5921 sys/prctl.h \
5922 sys/protosw.h \
5923 sys/ptrace.h \
5924 sys/resource.h \
5925 sys/scsiio.h \
5926 sys/shm.h \
5927 sys/signal.h \
5928 sys/socket.h \
5929 sys/socketvar.h \
5930 sys/sockio.h \
5931 sys/statvfs.h \
5932 sys/strtio.h \
5933 sys/syscall.h \
5934 sys/tihdr.h \
5935 sys/time.h \
5936 sys/timeout.h \
5937 sys/times.h \
5938 sys/uio.h \
5939 sys/utsname.h \
5940 sys/vm86.h \
5941 sys/wait.h \
5942 syscall.h \
5943 termios.h \
5944 tiffio.h \
5945 unistd.h \
5946 utime.h \
5947 valgrind/memcheck.h \
5948 valgrind/valgrind.h \
5949 zlib.h
5951 do :
5952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5955 cat >>confdefs.h <<_ACEOF
5956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5957 _ACEOF
5961 done
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5964 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5965 if ${ac_cv_header_stat_broken+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 #include <sys/types.h>
5971 #include <sys/stat.h>
5973 #if defined S_ISBLK && defined S_IFDIR
5974 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5975 #endif
5977 #if defined S_ISBLK && defined S_IFCHR
5978 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5979 #endif
5981 #if defined S_ISLNK && defined S_IFREG
5982 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5983 #endif
5985 #if defined S_ISSOCK && defined S_IFREG
5986 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5987 #endif
5989 _ACEOF
5990 if ac_fn_c_try_compile "$LINENO"; then :
5991 ac_cv_header_stat_broken=no
5992 else
5993 ac_cv_header_stat_broken=yes
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5998 $as_echo "$ac_cv_header_stat_broken" >&6; }
5999 if test $ac_cv_header_stat_broken = yes; then
6001 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6007 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6008 do :
6009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6010 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6011 #ifdef HAVE_SYS_PARAM_H
6012 # include <sys/param.h>
6013 #endif
6015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6016 cat >>confdefs.h <<_ACEOF
6017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6018 _ACEOF
6022 done
6025 for ac_header in \
6026 netinet/ip.h \
6027 net/if.h \
6028 net/if_arp.h \
6029 net/if_dl.h \
6030 net/if_types.h \
6031 net/route.h \
6032 netinet/if_ether.h \
6033 netinet/if_inarp.h \
6034 netinet/in_pcb.h \
6035 netinet/ip_icmp.h \
6036 netinet/ip_var.h \
6037 netinet/udp.h \
6038 netipx/ipx.h \
6039 sys/un.h \
6041 do :
6042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6043 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6044 #ifdef HAVE_SYS_SOCKET_H
6045 # include <sys/socket.h>
6046 #endif
6047 #ifdef HAVE_SYS_SOCKETVAR_H
6048 # include <sys/socketvar.h>
6049 #endif
6050 #ifdef HAVE_NET_ROUTE_H
6051 # include <net/route.h>
6052 #endif
6053 #ifdef HAVE_NETINET_IN_H
6054 # include <netinet/in.h>
6055 #endif
6056 #ifdef HAVE_NETINET_IN_SYSTM_H
6057 # include <netinet/in_systm.h>
6058 #endif
6059 #ifdef HAVE_NET_IF_H
6060 # include <net/if.h>
6061 #endif
6062 #ifdef HAVE_NETINET_IP_H
6063 # include <netinet/ip.h>
6064 #endif
6066 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6067 cat >>confdefs.h <<_ACEOF
6068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6069 _ACEOF
6073 done
6076 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6077 do :
6078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6079 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6080 #ifdef HAVE_ALIAS_H
6081 # include <alias.h>
6082 #endif
6083 #ifdef HAVE_SYS_SOCKET_H
6084 # include <sys/socket.h>
6085 #endif
6086 #ifdef HAVE_SYS_SOCKETVAR_H
6087 # include <sys/socketvar.h>
6088 #endif
6089 #ifdef HAVE_SYS_TIMEOUT_H
6090 # include <sys/timeout.h>
6091 #endif
6092 #ifdef HAVE_NETINET_IN_H
6093 # include <netinet/in.h>
6094 #endif
6095 #ifdef HAVE_NETINET_IN_SYSTM_H
6096 # include <netinet/in_systm.h>
6097 #endif
6098 #ifdef HAVE_NETINET_IP_H
6099 # include <netinet/ip.h>
6100 #endif
6101 #ifdef HAVE_NETINET_IP_VAR_H
6102 # include <netinet/ip_var.h>
6103 #endif
6104 #ifdef HAVE_NETINET_IP_ICMP_H
6105 # include <netinet/ip_icmp.h>
6106 #endif
6107 #ifdef HAVE_NETINET_UDP_H
6108 # include <netinet/udp.h>
6109 #endif
6110 #ifdef HAVE_NETINET_TCP_H
6111 # include <netinet/tcp.h>
6112 #endif
6113 #ifdef HAVE_NETINET_TCP_TIMER_H
6114 #include <netinet/tcp_timer.h>
6115 #endif
6117 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6118 cat >>confdefs.h <<_ACEOF
6119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6120 _ACEOF
6124 done
6127 for ac_header in linux/ipx.h linux/irda.h
6128 do :
6129 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6130 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6131 #ifdef HAVE_ASM_TYPES_H
6132 # include <asm/types.h>
6133 #endif
6134 #ifdef HAVE_SYS_SOCKET_H
6135 # include <sys/socket.h>
6136 #endif
6137 #ifdef HAVE_LINUX_TYPES_H
6138 # include <linux/types.h>
6139 #endif
6141 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6142 cat >>confdefs.h <<_ACEOF
6143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6144 _ACEOF
6148 done
6151 for ac_header in mach-o/dyld_images.h
6152 do :
6153 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6154 # include <stdbool.h>
6155 #endif
6156 #ifdef HAVE_STDINT_H
6157 # include <stdint.h>
6158 #endif
6160 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6161 cat >>confdefs.h <<_ACEOF
6162 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6163 _ACEOF
6167 done
6170 for ac_header in resolv.h
6171 do :
6172 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6173 #ifdef HAVE_SYS_SOCKET_H
6174 # include <sys/socket.h>
6175 #endif
6176 #ifdef HAVE_NETINET_IN_H
6177 # include <netinet/in.h>
6178 #endif
6179 #ifdef HAVE_ARPA_NAMESER_H
6180 # include <arpa/nameser.h>
6181 #endif
6183 if test "x$ac_cv_header_resolv_h" = xyes; then :
6184 cat >>confdefs.h <<_ACEOF
6185 #define HAVE_RESOLV_H 1
6186 _ACEOF
6190 done
6193 for ac_header in ifaddrs.h
6194 do :
6195 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6197 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6198 cat >>confdefs.h <<_ACEOF
6199 #define HAVE_IFADDRS_H 1
6200 _ACEOF
6204 done
6207 for ac_header in ucontext.h
6208 do :
6209 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6211 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6212 cat >>confdefs.h <<_ACEOF
6213 #define HAVE_UCONTEXT_H 1
6214 _ACEOF
6218 done
6221 for ac_header in sys/thr.h
6222 do :
6223 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6224 #ifdef HAVE_UCONTEXT_H
6225 #include <ucontext.h>
6226 #endif
6228 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6229 cat >>confdefs.h <<_ACEOF
6230 #define HAVE_SYS_THR_H 1
6231 _ACEOF
6235 done
6238 for ac_header in pthread_np.h
6239 do :
6240 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6241 #include <pthread.h>
6242 #endif
6244 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6245 cat >>confdefs.h <<_ACEOF
6246 #define HAVE_PTHREAD_NP_H 1
6247 _ACEOF
6251 done
6254 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6255 do :
6256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6257 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6258 #include <sys/time.h>
6259 #endif
6260 #include <sys/types.h>
6261 #ifdef HAVE_ASM_TYPES_H
6262 #include <asm/types.h>
6263 #endif
6265 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6266 cat >>confdefs.h <<_ACEOF
6267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6268 _ACEOF
6272 done
6275 for ac_header in linux/capi.h
6276 do :
6277 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6279 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6280 cat >>confdefs.h <<_ACEOF
6281 #define HAVE_LINUX_CAPI_H 1
6282 _ACEOF
6286 done
6290 DLLEXT=""
6292 DLLFLAGS="-D_REENTRANT"
6294 LDDLLFLAGS=""
6296 IMPLIBEXT="def"
6298 LDRPATH_INSTALL=""
6300 LDRPATH_LOCAL=""
6302 LIBEXT="so"
6303 STATIC_IMPLIBEXT="def.a"
6304 # Extract the first word of "ldd", so it can be a program name with args.
6305 set dummy ldd; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_path_LDD+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 case $LDD in
6312 [\\/]* | ?:[\\/]*)
6313 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 as_dummy="/sbin:/usr/sbin:$PATH"
6318 for as_dir in $as_dummy
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6328 done
6329 done
6330 IFS=$as_save_IFS
6332 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6334 esac
6336 LDD=$ac_cv_path_LDD
6337 if test -n "$LDD"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6339 $as_echo "$LDD" >&6; }
6340 else
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6346 if test -n "$ac_tool_prefix"; then
6347 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6348 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if ${ac_cv_prog_READELF+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 if test -n "$READELF"; then
6355 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6364 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6368 done
6369 done
6370 IFS=$as_save_IFS
6374 READELF=$ac_cv_prog_READELF
6375 if test -n "$READELF"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6377 $as_echo "$READELF" >&6; }
6378 else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6385 if test -z "$ac_cv_prog_READELF"; then
6386 ac_ct_READELF=$READELF
6387 # Extract the first word of "readelf", so it can be a program name with args.
6388 set dummy readelf; ac_word=$2
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 if test -n "$ac_ct_READELF"; then
6395 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6396 else
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404 ac_cv_prog_ac_ct_READELF="readelf"
6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6408 done
6409 done
6410 IFS=$as_save_IFS
6414 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6415 if test -n "$ac_ct_READELF"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6417 $as_echo "$ac_ct_READELF" >&6; }
6418 else
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6423 if test "x$ac_ct_READELF" = x; then
6424 READELF="true"
6425 else
6426 case $cross_compiling:$ac_tool_warned in
6427 yes:)
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430 ac_tool_warned=yes ;;
6431 esac
6432 READELF=$ac_ct_READELF
6434 else
6435 READELF="$ac_cv_prog_READELF"
6439 case $host_os in
6440 cygwin*|mingw32*)
6441 if test -n "$ac_tool_prefix"; then
6442 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6443 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if ${ac_cv_prog_DLLTOOL+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 if test -n "$DLLTOOL"; then
6450 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6463 done
6464 done
6465 IFS=$as_save_IFS
6469 DLLTOOL=$ac_cv_prog_DLLTOOL
6470 if test -n "$DLLTOOL"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6472 $as_echo "$DLLTOOL" >&6; }
6473 else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6480 if test -z "$ac_cv_prog_DLLTOOL"; then
6481 ac_ct_DLLTOOL=$DLLTOOL
6482 # Extract the first word of "dlltool", so it can be a program name with args.
6483 set dummy dlltool; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 if test -n "$ac_ct_DLLTOOL"; then
6490 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6503 done
6504 done
6505 IFS=$as_save_IFS
6509 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6510 if test -n "$ac_ct_DLLTOOL"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6512 $as_echo "$ac_ct_DLLTOOL" >&6; }
6513 else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6518 if test "x$ac_ct_DLLTOOL" = x; then
6519 DLLTOOL="false"
6520 else
6521 case $cross_compiling:$ac_tool_warned in
6522 yes:)
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525 ac_tool_warned=yes ;;
6526 esac
6527 DLLTOOL=$ac_ct_DLLTOOL
6529 else
6530 DLLTOOL="$ac_cv_prog_DLLTOOL"
6533 if test -n "$ac_tool_prefix"; then
6534 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6535 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_prog_DLLWRAP+:} false; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 if test -n "$DLLWRAP"; then
6542 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6555 done
6556 done
6557 IFS=$as_save_IFS
6561 DLLWRAP=$ac_cv_prog_DLLWRAP
6562 if test -n "$DLLWRAP"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6564 $as_echo "$DLLWRAP" >&6; }
6565 else
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6572 if test -z "$ac_cv_prog_DLLWRAP"; then
6573 ac_ct_DLLWRAP=$DLLWRAP
6574 # Extract the first word of "dllwrap", so it can be a program name with args.
6575 set dummy dllwrap; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 if test -n "$ac_ct_DLLWRAP"; then
6582 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6595 done
6596 done
6597 IFS=$as_save_IFS
6601 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6602 if test -n "$ac_ct_DLLWRAP"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6604 $as_echo "$ac_ct_DLLWRAP" >&6; }
6605 else
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6610 if test "x$ac_ct_DLLWRAP" = x; then
6611 DLLWRAP="false"
6612 else
6613 case $cross_compiling:$ac_tool_warned in
6614 yes:)
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619 DLLWRAP=$ac_ct_DLLWRAP
6621 else
6622 DLLWRAP="$ac_cv_prog_DLLWRAP"
6625 if test "$DLLWRAP" = "false"; then
6626 as_fn_error $? "dllwrap is needed to build a dll for Windows" "$LINENO" 5
6628 LIBEXT="dll"
6629 IMPLIBEXT="a"
6630 STATIC_IMPLIBEXT="a"
6631 enable_iphlpapi=${enable_iphlpapi:-no}
6632 enable_kernel32=${enable_kernel32:-no}
6633 enable_msvcrt=${enable_msvcrt:-no}
6634 enable_ntdll=${enable_ntdll:-no}
6635 enable_ws2_32=${enable_ws2_32:-no}
6636 enable_loader=${enable_loader:-no}
6637 enable_server=${enable_server:-no}
6638 with_x=${with_x:-no}
6639 with_pthread=${with_pthread:-no}
6641 crtlibs=""
6642 case $host_os in
6643 mingw32*)
6644 crtlibs="-lmsvcrt"
6645 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
6647 esac
6649 LIBWINE_RULES="
6650 all: libwine.dll libwine.a
6652 libwine.a: wine.def
6653 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
6655 libwine.dll: \$(OBJS) wine.def Makefile.in
6656 \$(DLLWRAP) --def \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
6658 install install-lib:: libwine.dll \$(DESTDIR)\$(libdir) dummy
6659 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
6661 install install-dev:: libwine.a \$(DESTDIR)\$(libdir) dummy
6662 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
6664 uninstall::
6665 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
6667 clean::
6668 \$(RM) libwine.dll version.c
6673 darwin*|macosx*)
6674 DLLEXT=".so"
6675 LIBEXT="dylib"
6676 DLLFLAGS="$DLLFLAGS -fPIC"
6677 LDDLLFLAGS="-bundle -multiply_defined suppress"
6678 LIBWINE_LDFLAGS="-multiply_defined suppress"
6679 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6680 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
6681 COREFOUNDATIONLIB="-framework CoreFoundation"
6683 IOKITLIB="-framework IOKit -framework CoreFoundation"
6685 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6687 CORESERVICESLIB="-framework CoreServices"
6689 case $host_os in
6690 darwin11*)
6691 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6694 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6696 esac
6697 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6698 then
6699 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6702 if test "$ac_cv_header_Security_Security_h" = "yes"
6703 then
6704 SECURITYLIB="-framework Security -framework CoreFoundation"
6706 ac_save_LIBS="$LIBS"
6707 LIBS="$LIBS $SECURITYLIB"
6708 for ac_func in SSLCopyPeerCertificates
6709 do :
6710 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6711 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6712 cat >>confdefs.h <<_ACEOF
6713 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6714 _ACEOF
6717 done
6719 LIBS="$ac_save_LIBS"
6720 with_gnutls=${with_gnutls:-no}
6722 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6723 then
6724 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6725 then
6726 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6728 else
6729 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6732 ac_save_LIBS="$LIBS"
6733 LIBS="$LIBS $COREAUDIO"
6734 for ac_func in AUGraphAddNode
6735 do :
6736 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6737 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6738 cat >>confdefs.h <<_ACEOF
6739 #define HAVE_AUGRAPHADDNODE 1
6740 _ACEOF
6743 done
6745 LIBS="$ac_save_LIBS"
6747 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6748 then
6749 FRAMEWORK_OPENAL="-framework OpenAL"
6752 cat >>confdefs.h <<_ACEOF
6753 #define HAVE_OPENAL 1
6754 _ACEOF
6756 ac_cv_lib_openal=yes
6758 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6759 then
6760 LIBOPENCL="-framework OpenCL"
6762 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6764 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6765 then
6766 ac_save_LIBS="$LIBS"
6767 LIBS="$LIBS $IOKITLIB"
6768 for ac_func in IOHIDManagerCreate
6769 do :
6770 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6771 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6772 cat >>confdefs.h <<_ACEOF
6773 #define HAVE_IOHIDMANAGERCREATE 1
6774 _ACEOF
6777 done
6779 LIBS="$ac_save_LIBS"
6781 case $host_cpu in
6782 *powerpc*)
6783 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6784 esac
6785 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6786 then
6787 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6789 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6790 else
6791 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6793 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6794 then
6795 CARBONLIB="-framework Carbon"
6799 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
6800 then
6801 ac_save_LIBS="$LIBS"
6802 LIBS="$LIBS $APPLICATIONSERVICESLIB"
6803 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
6804 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
6805 enable_winemac_drv=${enable_winemac_drv:-yes}
6808 LIBS="$ac_save_LIBS"
6811 if test "x$enable_win16" = "xyes"
6812 then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6814 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6815 if test "$cross_compiling" = yes; then :
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6817 $as_echo "cross-compiling, assuming yes" >&6; }
6818 else
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6821 asm(".text\n"
6822 "bad:\tnop;nop\n"
6823 "good:\tnop;nop\n\t"
6824 ".globl _testfunc\n"
6825 "_testfunc:\tcallw good");
6826 extern void testfunc();
6828 main ()
6830 unsigned short *p = (unsigned short *)testfunc;
6831 return p[0] != 0xe866 || p[1] != 0xfffa
6833 return 0;
6835 _ACEOF
6836 if ac_fn_c_try_run "$LINENO"; then :
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6838 $as_echo "yes" >&6; }
6839 else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 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
6844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6845 conftest.$ac_objext conftest.beam conftest.$ac_ext
6850 LIBWINE_RULES="
6851 all: libwine.dylib
6853 libwine.\$(VERSION).dylib: \$(OBJS) \$(RELPATH) Makefile.in
6854 \$(CC) -dynamiclib -install_name @rpath/libwine.\$(SOVERSION).dylib -Wl,-rpath,@loader_path/ -compatibility_version \$(SOVERSION) -current_version \$(VERSION) \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
6856 libwine.\$(SOVERSION).dylib: libwine.\$(VERSION).dylib
6857 \$(RM) \$@ && \$(LN_S) libwine.\$(VERSION).dylib \$@
6859 libwine.dylib: libwine.\$(SOVERSION).dylib
6860 \$(RM) \$@ && \$(LN_S) libwine.\$(SOVERSION).dylib \$@
6862 install install-lib:: libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir) dummy
6863 \$(INSTALL_PROGRAM) libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir)/libwine.\$(VERSION).dylib
6864 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.\$(SOVERSION).dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6866 install install-dev:: \$(DESTDIR)\$(libdir) dummy
6867 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.dylib
6869 uninstall::
6870 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6872 clean::
6873 \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib version.c
6878 linux-android*)
6879 DLLFLAGS="$DLLFLAGS -fPIC"
6880 DLLEXT=".so"
6881 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6883 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6884 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 ac_wine_try_cflags_saved=$CFLAGS
6888 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 int main(int argc, char **argv) { return 0; }
6892 _ACEOF
6893 if ac_fn_c_try_link "$LINENO"; then :
6894 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6895 else
6896 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6898 rm -f core conftest.err conftest.$ac_objext \
6899 conftest$ac_exeext conftest.$ac_ext
6900 CFLAGS=$ac_wine_try_cflags_saved
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6903 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6904 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6905 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6907 { $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
6908 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6909 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 ac_wine_try_cflags_saved=$CFLAGS
6913 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6916 int main(int argc, char **argv) { return 0; }
6917 _ACEOF
6918 if ac_fn_c_try_link "$LINENO"; then :
6919 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6920 else
6921 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6923 rm -f core conftest.err conftest.$ac_objext \
6924 conftest$ac_exeext conftest.$ac_ext
6925 CFLAGS=$ac_wine_try_cflags_saved
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6928 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6929 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6930 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6933 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6934 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 ac_wine_try_cflags_saved=$CFLAGS
6938 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6941 int main(int argc, char **argv) { return 0; }
6942 _ACEOF
6943 if ac_fn_c_try_link "$LINENO"; then :
6944 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6945 else
6946 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6948 rm -f core conftest.err conftest.$ac_objext \
6949 conftest$ac_exeext conftest.$ac_ext
6950 CFLAGS=$ac_wine_try_cflags_saved
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6953 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6954 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6955 LDEXECFLAGS="-Wl,--export-dynamic"
6958 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6960 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6961 if eval \${$as_ac_var+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 ac_wine_try_cflags_saved=$CFLAGS
6965 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6968 int main(int argc, char **argv) { return 0; }
6969 _ACEOF
6970 if ac_fn_c_try_link "$LINENO"; then :
6971 eval "$as_ac_var=yes"
6972 else
6973 eval "$as_ac_var=no"
6975 rm -f core conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6977 CFLAGS=$ac_wine_try_cflags_saved
6979 eval ac_res=\$$as_ac_var
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6981 $as_echo "$ac_res" >&6; }
6982 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6983 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6984 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6985 else
6986 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6988 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6989 if eval \${$as_ac_var+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 ac_wine_try_cflags_saved=$CFLAGS
6993 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996 int main(int argc, char **argv) { return 0; }
6997 _ACEOF
6998 if ac_fn_c_try_link "$LINENO"; then :
6999 eval "$as_ac_var=yes"
7000 else
7001 eval "$as_ac_var=no"
7003 rm -f core conftest.err conftest.$ac_objext \
7004 conftest$ac_exeext conftest.$ac_ext
7005 CFLAGS=$ac_wine_try_cflags_saved
7007 eval ac_res=\$$as_ac_var
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7009 $as_echo "$ac_res" >&6; }
7010 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7011 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7012 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7017 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7018 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 ac_wine_try_cflags_saved=$CFLAGS
7022 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 int main(int argc, char **argv) { return 0; }
7026 _ACEOF
7027 if ac_fn_c_try_link "$LINENO"; then :
7028 ac_cv_cflags__Wl___enable_new_dtags=yes
7029 else
7030 ac_cv_cflags__Wl___enable_new_dtags=no
7032 rm -f core conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 CFLAGS=$ac_wine_try_cflags_saved
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7037 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7038 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7039 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7042 case $host_cpu in
7043 *i[3456789]86* | x86_64)
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7045 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7046 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 ac_wine_try_cflags_saved=$CFLAGS
7050 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7053 int main(int argc, char **argv) { return 0; }
7054 _ACEOF
7055 if ac_fn_c_try_link "$LINENO"; then :
7056 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7057 else
7058 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7060 rm -f core conftest.err conftest.$ac_objext \
7061 conftest$ac_exeext conftest.$ac_ext
7062 CFLAGS=$ac_wine_try_cflags_saved
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7065 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7066 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7067 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
7070 esac
7072 LIBWINE_RULES="
7073 all: libwine.so
7075 libwine.so: \$(OBJS) Makefile.in
7076 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7078 install install-lib:: libwine.so \$(DESTDIR)\$(libdir) dummy
7079 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
7081 uninstall::
7082 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
7084 clean::
7085 \$(RM) libwine.so version.c
7091 DLLFLAGS="$DLLFLAGS -fPIC"
7092 DLLEXT=".so"
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
7094 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
7095 if ${ac_cv_c_dll_gnuelf+:} false; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 ac_wine_try_cflags_saved=$CFLAGS
7099 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7102 void myfunc() {}
7103 _ACEOF
7104 if ac_fn_c_try_link "$LINENO"; then :
7105 ac_cv_c_dll_gnuelf="yes"
7106 else
7107 ac_cv_c_dll_gnuelf="no"
7109 rm -f core conftest.err conftest.$ac_objext \
7110 conftest$ac_exeext conftest.$ac_ext
7111 CFLAGS=$ac_wine_try_cflags_saved
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
7114 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
7115 if test "$ac_cv_c_dll_gnuelf" = "yes"
7116 then
7117 LDSHARED="\$(CC) -shared"
7118 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
7120 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
7121 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 ac_wine_try_cflags_saved=$CFLAGS
7125 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128 int main(int argc, char **argv) { return 0; }
7129 _ACEOF
7130 if ac_fn_c_try_link "$LINENO"; then :
7131 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
7132 else
7133 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
7135 rm -f core conftest.err conftest.$ac_objext \
7136 conftest$ac_exeext conftest.$ac_ext
7137 CFLAGS=$ac_wine_try_cflags_saved
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
7140 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
7141 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
7142 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.\$(SOVERSION)"
7143 else
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
7145 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
7146 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
7147 $as_echo_n "(cached) " >&6
7148 else
7149 ac_wine_try_cflags_saved=$CFLAGS
7150 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7153 int main(int argc, char **argv) { return 0; }
7154 _ACEOF
7155 if ac_fn_c_try_link "$LINENO"; then :
7156 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
7157 else
7158 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
7160 rm -f core conftest.err conftest.$ac_objext \
7161 conftest$ac_exeext conftest.$ac_ext
7162 CFLAGS=$ac_wine_try_cflags_saved
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
7165 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
7166 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
7167 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.\$(SOVERSION)"
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
7172 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
7173 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 ac_wine_try_cflags_saved=$CFLAGS
7177 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7180 int main(int argc, char **argv) { return 0; }
7181 _ACEOF
7182 if ac_fn_c_try_link "$LINENO"; then :
7183 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
7184 else
7185 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
7187 rm -f core conftest.err conftest.$ac_objext \
7188 conftest$ac_exeext conftest.$ac_ext
7189 CFLAGS=$ac_wine_try_cflags_saved
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
7192 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
7193 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
7194 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
7197 { $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
7198 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
7199 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 ac_wine_try_cflags_saved=$CFLAGS
7203 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 int main(int argc, char **argv) { return 0; }
7207 _ACEOF
7208 if ac_fn_c_try_link "$LINENO"; then :
7209 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
7210 else
7211 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
7213 rm -f core conftest.err conftest.$ac_objext \
7214 conftest$ac_exeext conftest.$ac_ext
7215 CFLAGS=$ac_wine_try_cflags_saved
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
7218 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
7219 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
7220 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
7223 echo '{ global: *; };' >conftest.map
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
7225 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
7226 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 ac_wine_try_cflags_saved=$CFLAGS
7230 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7233 int main(int argc, char **argv) { return 0; }
7234 _ACEOF
7235 if ac_fn_c_try_link "$LINENO"; then :
7236 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
7237 else
7238 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
7240 rm -f core conftest.err conftest.$ac_objext \
7241 conftest$ac_exeext conftest.$ac_ext
7242 CFLAGS=$ac_wine_try_cflags_saved
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
7245 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
7246 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
7247 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
7249 rm -f conftest.map
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7252 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7253 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 ac_wine_try_cflags_saved=$CFLAGS
7257 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7260 int main(int argc, char **argv) { return 0; }
7261 _ACEOF
7262 if ac_fn_c_try_link "$LINENO"; then :
7263 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7264 else
7265 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7267 rm -f core conftest.err conftest.$ac_objext \
7268 conftest$ac_exeext conftest.$ac_ext
7269 CFLAGS=$ac_wine_try_cflags_saved
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7272 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7273 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7274 LDEXECFLAGS="-Wl,--export-dynamic"
7278 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7280 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7281 if eval \${$as_ac_var+:} false; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 ac_wine_try_cflags_saved=$CFLAGS
7285 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 int main(int argc, char **argv) { return 0; }
7289 _ACEOF
7290 if ac_fn_c_try_link "$LINENO"; then :
7291 eval "$as_ac_var=yes"
7292 else
7293 eval "$as_ac_var=no"
7295 rm -f core conftest.err conftest.$ac_objext \
7296 conftest$ac_exeext conftest.$ac_ext
7297 CFLAGS=$ac_wine_try_cflags_saved
7299 eval ac_res=\$$as_ac_var
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7301 $as_echo "$ac_res" >&6; }
7302 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7303 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7304 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7305 else
7306 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7308 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7309 if eval \${$as_ac_var+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 ac_wine_try_cflags_saved=$CFLAGS
7313 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7316 int main(int argc, char **argv) { return 0; }
7317 _ACEOF
7318 if ac_fn_c_try_link "$LINENO"; then :
7319 eval "$as_ac_var=yes"
7320 else
7321 eval "$as_ac_var=no"
7323 rm -f core conftest.err conftest.$ac_objext \
7324 conftest$ac_exeext conftest.$ac_ext
7325 CFLAGS=$ac_wine_try_cflags_saved
7327 eval ac_res=\$$as_ac_var
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7329 $as_echo "$ac_res" >&6; }
7330 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7331 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7332 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7337 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7338 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 ac_wine_try_cflags_saved=$CFLAGS
7342 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7345 int main(int argc, char **argv) { return 0; }
7346 _ACEOF
7347 if ac_fn_c_try_link "$LINENO"; then :
7348 ac_cv_cflags__Wl___enable_new_dtags=yes
7349 else
7350 ac_cv_cflags__Wl___enable_new_dtags=no
7352 rm -f core conftest.err conftest.$ac_objext \
7353 conftest$ac_exeext conftest.$ac_ext
7354 CFLAGS=$ac_wine_try_cflags_saved
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7357 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7358 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7359 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7362 case $host_cpu in
7363 *i[3456789]86* | x86_64)
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7365 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7366 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 ac_wine_try_cflags_saved=$CFLAGS
7370 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7373 int main(int argc, char **argv) { return 0; }
7374 _ACEOF
7375 if ac_fn_c_try_link "$LINENO"; then :
7376 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7377 else
7378 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7380 rm -f core conftest.err conftest.$ac_objext \
7381 conftest$ac_exeext conftest.$ac_ext
7382 CFLAGS=$ac_wine_try_cflags_saved
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7385 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7386 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7387 case $host_os in
7388 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7389 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7390 esac
7393 # Extract the first word of "prelink", so it can be a program name with args.
7394 set dummy prelink; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if ${ac_cv_path_PRELINK+:} false; then :
7398 $as_echo_n "(cached) " >&6
7399 else
7400 case $PRELINK in
7401 [\\/]* | ?:[\\/]*)
7402 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in /sbin /usr/sbin $PATH
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7416 done
7417 done
7418 IFS=$as_save_IFS
7420 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7422 esac
7424 PRELINK=$ac_cv_path_PRELINK
7425 if test -n "$PRELINK"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7427 $as_echo "$PRELINK" >&6; }
7428 else
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7434 if test "x$PRELINK" = xfalse
7435 then
7436 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7439 esac
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7443 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7444 if ${ac_cv_c_dll_unixware+:} false; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7447 ac_wine_try_cflags_saved=$CFLAGS
7448 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7451 void myfunc() {}
7452 _ACEOF
7453 if ac_fn_c_try_link "$LINENO"; then :
7454 ac_cv_c_dll_unixware="yes"
7455 else
7456 ac_cv_c_dll_unixware="no"
7458 rm -f core conftest.err conftest.$ac_objext \
7459 conftest$ac_exeext conftest.$ac_ext
7460 CFLAGS=$ac_wine_try_cflags_saved
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7463 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7464 if test "$ac_cv_c_dll_unixware" = "yes"
7465 then
7466 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.\$(SOVERSION)"
7467 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7470 LIBWINE_RULES="
7471 all: libwine.so
7473 libwine.so.\$(VERSION): \$(OBJS) wine.map Makefile.in
7474 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7476 libwine.so.\$(SOVERSION): libwine.so.\$(VERSION)
7477 \$(RM) \$@ && \$(LN_S) libwine.so.\$(VERSION) \$@
7479 libwine.so: libwine.so.\$(SOVERSION)
7480 \$(RM) \$@ && \$(LN_S) libwine.so.\$(SOVERSION) \$@
7482 install install-lib:: libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir) dummy
7483 \$(INSTALL_PROGRAM) libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir)/libwine.so.\$(VERSION)
7484 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.\$(SOVERSION) && \$(LN_S) libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7486 install install-dev:: \$(DESTDIR)\$(libdir) dummy
7487 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.\$(VERSION) libwine.so
7489 uninstall::
7490 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7492 clean::
7493 \$(RM) libwine.so.\$(SOVERSION) libwine.so.\$(VERSION) version.c
7497 esac
7499 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7500 enable_winemac_drv=${enable_winemac_drv:-no}
7502 CROSSTEST_DISABLE=\#
7504 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7505 then
7506 case "$host_cpu" in
7507 i[3456789]86*)
7508 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
7509 mingw32-gcc" ;;
7510 x86_64)
7511 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 " ;;
7513 ac_prefix_list="" ;;
7514 esac
7515 for ac_prog in $ac_prefix_list
7517 # Extract the first word of "$ac_prog", so it can be a program name with args.
7518 set dummy $ac_prog; ac_word=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if ${ac_cv_prog_CROSSCC+:} false; then :
7522 $as_echo_n "(cached) " >&6
7523 else
7524 if test -n "$CROSSCC"; then
7525 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7526 else
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7530 IFS=$as_save_IFS
7531 test -z "$as_dir" && as_dir=.
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534 ac_cv_prog_CROSSCC="$ac_prog"
7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 break 2
7538 done
7539 done
7540 IFS=$as_save_IFS
7544 CROSSCC=$ac_cv_prog_CROSSCC
7545 if test -n "$CROSSCC"; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7547 $as_echo "$CROSSCC" >&6; }
7548 else
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7554 test -n "$CROSSCC" && break
7555 done
7556 test -n "$CROSSCC" || CROSSCC="false"
7558 if test "$CROSSCC" != "false"
7559 then
7560 ac_save_CC="$CC"
7561 CC="$CROSSCC"
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7563 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7568 main ()
7572 return 0;
7574 _ACEOF
7575 if ac_fn_c_try_compile "$LINENO"; then :
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7577 $as_echo "yes" >&6; }
7578 set x $CROSSCC
7579 shift
7580 target=""
7581 while test $# -ge 1
7583 case "$1" in
7584 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7585 esac
7586 shift
7587 done
7588 if test -n "$target"
7589 then
7590 CROSSTEST_DISABLE=""
7591 CROSSTARGET="$target"
7594 else
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 CC="$ac_save_CC"
7604 if test "$ac_cv_header_pthread_h" = "yes"
7605 then
7606 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
7607 if test "x$ac_cv_func_pthread_create" = xyes; then :
7609 else
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7611 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7612 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 ac_check_lib_save_LIBS=$LIBS
7616 LIBS="-lpthread $LIBS"
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7620 /* Override any GCC internal prototype to avoid an error.
7621 Use char because int might match the return type of a GCC
7622 builtin and then its argument prototype would still apply. */
7623 #ifdef __cplusplus
7624 extern "C"
7625 #endif
7626 char pthread_create ();
7628 main ()
7630 return pthread_create ();
7632 return 0;
7634 _ACEOF
7635 if ac_fn_c_try_link "$LINENO"; then :
7636 ac_cv_lib_pthread_pthread_create=yes
7637 else
7638 ac_cv_lib_pthread_pthread_create=no
7640 rm -f core conftest.err conftest.$ac_objext \
7641 conftest$ac_exeext conftest.$ac_ext
7642 LIBS=$ac_check_lib_save_LIBS
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7645 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7646 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7647 LIBPTHREAD="-lpthread"
7654 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
7655 case "x$with_pthread" in
7656 xno) ;;
7657 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7658 Wine cannot support threads without libpthread.
7659 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7660 esac
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7665 $as_echo_n "checking for X... " >&6; }
7668 # Check whether --with-x was given.
7669 if test "${with_x+set}" = set; then :
7670 withval=$with_x;
7673 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7674 if test "x$with_x" = xno; then
7675 # The user explicitly disabled X.
7676 have_x=disabled
7677 else
7678 case $x_includes,$x_libraries in #(
7679 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7680 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7681 $as_echo_n "(cached) " >&6
7682 else
7683 # One or both of the vars are not set, and there is no cached value.
7684 ac_x_includes=no ac_x_libraries=no
7685 rm -f -r conftest.dir
7686 if mkdir conftest.dir; then
7687 cd conftest.dir
7688 cat >Imakefile <<'_ACEOF'
7689 incroot:
7690 @echo incroot='${INCROOT}'
7691 usrlibdir:
7692 @echo usrlibdir='${USRLIBDIR}'
7693 libdir:
7694 @echo libdir='${LIBDIR}'
7695 _ACEOF
7696 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7697 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7698 for ac_var in incroot usrlibdir libdir; do
7699 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7700 done
7701 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7702 for ac_extension in a so sl dylib la dll; do
7703 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7704 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7705 ac_im_usrlibdir=$ac_im_libdir; break
7707 done
7708 # Screen out bogus values from the imake configuration. They are
7709 # bogus both because they are the default anyway, and because
7710 # using them would break gcc on systems where it needs fixed includes.
7711 case $ac_im_incroot in
7712 /usr/include) ac_x_includes= ;;
7713 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7714 esac
7715 case $ac_im_usrlibdir in
7716 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7717 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7718 esac
7720 cd ..
7721 rm -f -r conftest.dir
7724 # Standard set of common directories for X headers.
7725 # Check X11 before X11Rn because it is often a symlink to the current release.
7726 ac_x_header_dirs='
7727 /usr/X11/include
7728 /usr/X11R7/include
7729 /usr/X11R6/include
7730 /usr/X11R5/include
7731 /usr/X11R4/include
7733 /usr/include/X11
7734 /usr/include/X11R7
7735 /usr/include/X11R6
7736 /usr/include/X11R5
7737 /usr/include/X11R4
7739 /usr/local/X11/include
7740 /usr/local/X11R7/include
7741 /usr/local/X11R6/include
7742 /usr/local/X11R5/include
7743 /usr/local/X11R4/include
7745 /usr/local/include/X11
7746 /usr/local/include/X11R7
7747 /usr/local/include/X11R6
7748 /usr/local/include/X11R5
7749 /usr/local/include/X11R4
7751 /usr/X386/include
7752 /usr/x386/include
7753 /usr/XFree86/include/X11
7755 /usr/include
7756 /usr/local/include
7757 /usr/unsupported/include
7758 /usr/athena/include
7759 /usr/local/x11r5/include
7760 /usr/lpp/Xamples/include
7762 /usr/openwin/include
7763 /usr/openwin/share/include'
7765 if test "$ac_x_includes" = no; then
7766 # Guess where to find include files, by looking for Xlib.h.
7767 # First, try using that file with no special directory specified.
7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7770 #include <X11/Xlib.h>
7771 _ACEOF
7772 if ac_fn_c_try_cpp "$LINENO"; then :
7773 # We can compile using X headers with no special include directory.
7774 ac_x_includes=
7775 else
7776 for ac_dir in $ac_x_header_dirs; do
7777 if test -r "$ac_dir/X11/Xlib.h"; then
7778 ac_x_includes=$ac_dir
7779 break
7781 done
7783 rm -f conftest.err conftest.i conftest.$ac_ext
7784 fi # $ac_x_includes = no
7786 if test "$ac_x_libraries" = no; then
7787 # Check for the libraries.
7788 # See if we find them without any special options.
7789 # Don't add to $LIBS permanently.
7790 ac_save_LIBS=$LIBS
7791 LIBS="-lX11 $LIBS"
7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793 /* end confdefs.h. */
7794 #include <X11/Xlib.h>
7796 main ()
7798 XrmInitialize ()
7800 return 0;
7802 _ACEOF
7803 if ac_fn_c_try_link "$LINENO"; then :
7804 LIBS=$ac_save_LIBS
7805 # We can link X programs with no special library path.
7806 ac_x_libraries=
7807 else
7808 LIBS=$ac_save_LIBS
7809 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7811 # Don't even attempt the hair of trying to link an X program!
7812 for ac_extension in a so sl dylib la dll; do
7813 if test -r "$ac_dir/libX11.$ac_extension"; then
7814 ac_x_libraries=$ac_dir
7815 break 2
7817 done
7818 done
7820 rm -f core conftest.err conftest.$ac_objext \
7821 conftest$ac_exeext conftest.$ac_ext
7822 fi # $ac_x_libraries = no
7824 case $ac_x_includes,$ac_x_libraries in #(
7825 no,* | *,no | *\'*)
7826 # Didn't find X, or a directory has "'" in its name.
7827 ac_cv_have_x="have_x=no";; #(
7829 # Record where we found X for the cache.
7830 ac_cv_have_x="have_x=yes\
7831 ac_x_includes='$ac_x_includes'\
7832 ac_x_libraries='$ac_x_libraries'"
7833 esac
7835 ;; #(
7836 *) have_x=yes;;
7837 esac
7838 eval "$ac_cv_have_x"
7839 fi # $with_x != no
7841 if test "$have_x" != yes; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7843 $as_echo "$have_x" >&6; }
7844 no_x=yes
7845 else
7846 # If each of the values was on the command line, it overrides each guess.
7847 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7848 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7849 # Update the cache value to reflect the command line values.
7850 ac_cv_have_x="have_x=yes\
7851 ac_x_includes='$x_includes'\
7852 ac_x_libraries='$x_libraries'"
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7854 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7857 if test "$no_x" = yes; then
7858 # Not all programs may use this symbol, but it does not hurt to define it.
7860 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7862 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7863 else
7864 if test -n "$x_includes"; then
7865 X_CFLAGS="$X_CFLAGS -I$x_includes"
7868 # It would also be nice to do this for all -L options, not just this one.
7869 if test -n "$x_libraries"; then
7870 X_LIBS="$X_LIBS -L$x_libraries"
7871 # For Solaris; some versions of Sun CC require a space after -R and
7872 # others require no space. Words are not sufficient . . . .
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7874 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7875 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7876 ac_xsave_c_werror_flag=$ac_c_werror_flag
7877 ac_c_werror_flag=yes
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7882 main ()
7886 return 0;
7888 _ACEOF
7889 if ac_fn_c_try_link "$LINENO"; then :
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7892 X_LIBS="$X_LIBS -R$x_libraries"
7893 else
7894 LIBS="$ac_xsave_LIBS -R $x_libraries"
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7899 main ()
7903 return 0;
7905 _ACEOF
7906 if ac_fn_c_try_link "$LINENO"; then :
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7908 $as_echo "yes" >&6; }
7909 X_LIBS="$X_LIBS -R $x_libraries"
7910 else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7912 $as_echo "neither works" >&6; }
7914 rm -f core conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7917 rm -f core conftest.err conftest.$ac_objext \
7918 conftest$ac_exeext conftest.$ac_ext
7919 ac_c_werror_flag=$ac_xsave_c_werror_flag
7920 LIBS=$ac_xsave_LIBS
7923 # Check for system-dependent libraries X programs must link with.
7924 # Do this before checking for the system-independent R6 libraries
7925 # (-lICE), since we may need -lsocket or whatever for X linking.
7927 if test "$ISC" = yes; then
7928 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7929 else
7930 # Martyn Johnson says this is needed for Ultrix, if the X
7931 # libraries were built with DECnet support. And Karl Berry says
7932 # the Alpha needs dnet_stub (dnet does not exist).
7933 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7937 /* Override any GCC internal prototype to avoid an error.
7938 Use char because int might match the return type of a GCC
7939 builtin and then its argument prototype would still apply. */
7940 #ifdef __cplusplus
7941 extern "C"
7942 #endif
7943 char XOpenDisplay ();
7945 main ()
7947 return XOpenDisplay ();
7949 return 0;
7951 _ACEOF
7952 if ac_fn_c_try_link "$LINENO"; then :
7954 else
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7956 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7957 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 ac_check_lib_save_LIBS=$LIBS
7961 LIBS="-ldnet $LIBS"
7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h. */
7965 /* Override any GCC internal prototype to avoid an error.
7966 Use char because int might match the return type of a GCC
7967 builtin and then its argument prototype would still apply. */
7968 #ifdef __cplusplus
7969 extern "C"
7970 #endif
7971 char dnet_ntoa ();
7973 main ()
7975 return dnet_ntoa ();
7977 return 0;
7979 _ACEOF
7980 if ac_fn_c_try_link "$LINENO"; then :
7981 ac_cv_lib_dnet_dnet_ntoa=yes
7982 else
7983 ac_cv_lib_dnet_dnet_ntoa=no
7985 rm -f core conftest.err conftest.$ac_objext \
7986 conftest$ac_exeext conftest.$ac_ext
7987 LIBS=$ac_check_lib_save_LIBS
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7990 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7991 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7992 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7995 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7997 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7998 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 ac_check_lib_save_LIBS=$LIBS
8002 LIBS="-ldnet_stub $LIBS"
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8006 /* Override any GCC internal prototype to avoid an error.
8007 Use char because int might match the return type of a GCC
8008 builtin and then its argument prototype would still apply. */
8009 #ifdef __cplusplus
8010 extern "C"
8011 #endif
8012 char dnet_ntoa ();
8014 main ()
8016 return dnet_ntoa ();
8018 return 0;
8020 _ACEOF
8021 if ac_fn_c_try_link "$LINENO"; then :
8022 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8023 else
8024 ac_cv_lib_dnet_stub_dnet_ntoa=no
8026 rm -f core conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8028 LIBS=$ac_check_lib_save_LIBS
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8031 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8032 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8033 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8038 rm -f core conftest.err conftest.$ac_objext \
8039 conftest$ac_exeext conftest.$ac_ext
8040 LIBS="$ac_xsave_LIBS"
8042 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8043 # to get the SysV transport functions.
8044 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8045 # needs -lnsl.
8046 # The nsl library prevents programs from opening the X display
8047 # on Irix 5.2, according to T.E. Dickey.
8048 # The functions gethostbyname, getservbyname, and inet_addr are
8049 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8050 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8051 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8055 if test $ac_cv_func_gethostbyname = no; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8057 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8058 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 ac_check_lib_save_LIBS=$LIBS
8062 LIBS="-lnsl $LIBS"
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h. */
8066 /* Override any GCC internal prototype to avoid an error.
8067 Use char because int might match the return type of a GCC
8068 builtin and then its argument prototype would still apply. */
8069 #ifdef __cplusplus
8070 extern "C"
8071 #endif
8072 char gethostbyname ();
8074 main ()
8076 return gethostbyname ();
8078 return 0;
8080 _ACEOF
8081 if ac_fn_c_try_link "$LINENO"; then :
8082 ac_cv_lib_nsl_gethostbyname=yes
8083 else
8084 ac_cv_lib_nsl_gethostbyname=no
8086 rm -f core conftest.err conftest.$ac_objext \
8087 conftest$ac_exeext conftest.$ac_ext
8088 LIBS=$ac_check_lib_save_LIBS
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8091 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8092 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8093 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8096 if test $ac_cv_lib_nsl_gethostbyname = no; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8098 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8099 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 ac_check_lib_save_LIBS=$LIBS
8103 LIBS="-lbsd $LIBS"
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8107 /* Override any GCC internal prototype to avoid an error.
8108 Use char because int might match the return type of a GCC
8109 builtin and then its argument prototype would still apply. */
8110 #ifdef __cplusplus
8111 extern "C"
8112 #endif
8113 char gethostbyname ();
8115 main ()
8117 return gethostbyname ();
8119 return 0;
8121 _ACEOF
8122 if ac_fn_c_try_link "$LINENO"; then :
8123 ac_cv_lib_bsd_gethostbyname=yes
8124 else
8125 ac_cv_lib_bsd_gethostbyname=no
8127 rm -f core conftest.err conftest.$ac_objext \
8128 conftest$ac_exeext conftest.$ac_ext
8129 LIBS=$ac_check_lib_save_LIBS
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8132 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8133 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8134 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8140 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8141 # socket/setsockopt and other routines are undefined under SCO ODT
8142 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8143 # on later versions), says Simon Leinen: it contains gethostby*
8144 # variants that don't use the name server (or something). -lsocket
8145 # must be given before -lnsl if both are needed. We assume that
8146 # if connect needs -lnsl, so does gethostbyname.
8147 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8148 if test "x$ac_cv_func_connect" = xyes; then :
8152 if test $ac_cv_func_connect = no; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8154 $as_echo_n "checking for connect in -lsocket... " >&6; }
8155 if ${ac_cv_lib_socket_connect+:} false; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158 ac_check_lib_save_LIBS=$LIBS
8159 LIBS="-lsocket $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 connect ();
8171 main ()
8173 return connect ();
8175 return 0;
8177 _ACEOF
8178 if ac_fn_c_try_link "$LINENO"; then :
8179 ac_cv_lib_socket_connect=yes
8180 else
8181 ac_cv_lib_socket_connect=no
8183 rm -f core conftest.err conftest.$ac_objext \
8184 conftest$ac_exeext conftest.$ac_ext
8185 LIBS=$ac_check_lib_save_LIBS
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8188 $as_echo "$ac_cv_lib_socket_connect" >&6; }
8189 if test "x$ac_cv_lib_socket_connect" = xyes; then :
8190 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8195 # Guillermo Gomez says -lposix is necessary on A/UX.
8196 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8197 if test "x$ac_cv_func_remove" = xyes; then :
8201 if test $ac_cv_func_remove = no; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8203 $as_echo_n "checking for remove in -lposix... " >&6; }
8204 if ${ac_cv_lib_posix_remove+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 ac_check_lib_save_LIBS=$LIBS
8208 LIBS="-lposix $LIBS"
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8212 /* Override any GCC internal prototype to avoid an error.
8213 Use char because int might match the return type of a GCC
8214 builtin and then its argument prototype would still apply. */
8215 #ifdef __cplusplus
8216 extern "C"
8217 #endif
8218 char remove ();
8220 main ()
8222 return remove ();
8224 return 0;
8226 _ACEOF
8227 if ac_fn_c_try_link "$LINENO"; then :
8228 ac_cv_lib_posix_remove=yes
8229 else
8230 ac_cv_lib_posix_remove=no
8232 rm -f core conftest.err conftest.$ac_objext \
8233 conftest$ac_exeext conftest.$ac_ext
8234 LIBS=$ac_check_lib_save_LIBS
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8237 $as_echo "$ac_cv_lib_posix_remove" >&6; }
8238 if test "x$ac_cv_lib_posix_remove" = xyes; then :
8239 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8244 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8245 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8246 if test "x$ac_cv_func_shmat" = xyes; then :
8250 if test $ac_cv_func_shmat = no; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8252 $as_echo_n "checking for shmat in -lipc... " >&6; }
8253 if ${ac_cv_lib_ipc_shmat+:} false; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 ac_check_lib_save_LIBS=$LIBS
8257 LIBS="-lipc $LIBS"
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8261 /* Override any GCC internal prototype to avoid an error.
8262 Use char because int might match the return type of a GCC
8263 builtin and then its argument prototype would still apply. */
8264 #ifdef __cplusplus
8265 extern "C"
8266 #endif
8267 char shmat ();
8269 main ()
8271 return shmat ();
8273 return 0;
8275 _ACEOF
8276 if ac_fn_c_try_link "$LINENO"; then :
8277 ac_cv_lib_ipc_shmat=yes
8278 else
8279 ac_cv_lib_ipc_shmat=no
8281 rm -f core conftest.err conftest.$ac_objext \
8282 conftest$ac_exeext conftest.$ac_ext
8283 LIBS=$ac_check_lib_save_LIBS
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8286 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8287 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8288 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8294 # Check for libraries that X11R6 Xt/Xaw programs need.
8295 ac_save_LDFLAGS=$LDFLAGS
8296 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8297 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8298 # check for ICE first), but we must link in the order -lSM -lICE or
8299 # we get undefined symbols. So assume we have SM if we have ICE.
8300 # These have to be linked with before -lX11, unlike the other
8301 # libraries we check for below, so use a different variable.
8302 # John Interrante, Karl Berry
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8304 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8305 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8306 $as_echo_n "(cached) " >&6
8307 else
8308 ac_check_lib_save_LIBS=$LIBS
8309 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8313 /* Override any GCC internal prototype to avoid an error.
8314 Use char because int might match the return type of a GCC
8315 builtin and then its argument prototype would still apply. */
8316 #ifdef __cplusplus
8317 extern "C"
8318 #endif
8319 char IceConnectionNumber ();
8321 main ()
8323 return IceConnectionNumber ();
8325 return 0;
8327 _ACEOF
8328 if ac_fn_c_try_link "$LINENO"; then :
8329 ac_cv_lib_ICE_IceConnectionNumber=yes
8330 else
8331 ac_cv_lib_ICE_IceConnectionNumber=no
8333 rm -f core conftest.err conftest.$ac_objext \
8334 conftest$ac_exeext conftest.$ac_ext
8335 LIBS=$ac_check_lib_save_LIBS
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8338 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8339 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8340 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8343 LDFLAGS=$ac_save_LDFLAGS
8348 if test "$have_x" = "yes"
8349 then
8350 XLIB="-lX11"
8351 ac_save_CPPFLAGS="$CPPFLAGS"
8352 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
8355 $as_echo_n "checking for -lX11... " >&6; }
8356 if ${ac_cv_lib_soname_X11+:} false; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 ac_check_soname_save_LIBS=$LIBS
8360 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8364 /* Override any GCC internal prototype to avoid an error.
8365 Use char because int might match the return type of a GCC
8366 builtin and then its argument prototype would still apply. */
8367 #ifdef __cplusplus
8368 extern "C"
8369 #endif
8370 char XCreateWindow ();
8372 main ()
8374 return XCreateWindow ();
8376 return 0;
8378 _ACEOF
8379 if ac_fn_c_try_link "$LINENO"; then :
8380 case "$LIBEXT" in
8381 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8382 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'` ;;
8383 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8384 if test "x$ac_cv_lib_soname_X11" = x; then :
8385 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8386 fi ;;
8387 esac
8389 rm -f core conftest.err conftest.$ac_objext \
8390 conftest$ac_exeext conftest.$ac_ext
8391 LIBS=$ac_check_soname_save_LIBS
8393 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8395 $as_echo "not found" >&6; }
8397 else
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8399 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8401 cat >>confdefs.h <<_ACEOF
8402 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8403 _ACEOF
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8408 $as_echo_n "checking for -lXext... " >&6; }
8409 if ${ac_cv_lib_soname_Xext+:} false; then :
8410 $as_echo_n "(cached) " >&6
8411 else
8412 ac_check_soname_save_LIBS=$LIBS
8413 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8417 /* Override any GCC internal prototype to avoid an error.
8418 Use char because int might match the return type of a GCC
8419 builtin and then its argument prototype would still apply. */
8420 #ifdef __cplusplus
8421 extern "C"
8422 #endif
8423 char XextCreateExtension ();
8425 main ()
8427 return XextCreateExtension ();
8429 return 0;
8431 _ACEOF
8432 if ac_fn_c_try_link "$LINENO"; then :
8433 case "$LIBEXT" in
8434 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8435 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'` ;;
8436 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8437 if test "x$ac_cv_lib_soname_Xext" = x; then :
8438 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8439 fi ;;
8440 esac
8442 rm -f core conftest.err conftest.$ac_objext \
8443 conftest$ac_exeext conftest.$ac_ext
8444 LIBS=$ac_check_soname_save_LIBS
8446 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8448 $as_echo "not found" >&6; }
8450 else
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8452 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8454 cat >>confdefs.h <<_ACEOF
8455 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8456 _ACEOF
8458 XLIB="-lXext $XLIB"
8461 for ac_header in X11/Xlib.h \
8462 X11/XKBlib.h \
8463 X11/Xutil.h \
8464 X11/Xcursor/Xcursor.h \
8465 X11/extensions/shape.h \
8466 X11/extensions/XInput.h \
8467 X11/extensions/XInput2.h \
8468 X11/extensions/XShm.h \
8469 X11/extensions/Xcomposite.h \
8470 X11/extensions/Xinerama.h \
8471 X11/extensions/Xrandr.h \
8472 X11/extensions/Xrender.h \
8473 X11/extensions/xf86vmode.h \
8474 X11/extensions/xf86vmproto.h
8475 do :
8476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8477 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8478 # include <X11/Xlib.h>
8479 #endif
8480 #ifdef HAVE_X11_XUTIL_H
8481 # include <X11/Xutil.h>
8482 #endif
8484 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8485 cat >>confdefs.h <<_ACEOF
8486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8487 _ACEOF
8491 done
8494 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8495 then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8497 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8498 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 ac_check_lib_save_LIBS=$LIBS
8502 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8506 /* Override any GCC internal prototype to avoid an error.
8507 Use char because int might match the return type of a GCC
8508 builtin and then its argument prototype would still apply. */
8509 #ifdef __cplusplus
8510 extern "C"
8511 #endif
8512 char XkbQueryExtension ();
8514 main ()
8516 return XkbQueryExtension ();
8518 return 0;
8520 _ACEOF
8521 if ac_fn_c_try_link "$LINENO"; then :
8522 ac_cv_lib_X11_XkbQueryExtension=yes
8523 else
8524 ac_cv_lib_X11_XkbQueryExtension=no
8526 rm -f core conftest.err conftest.$ac_objext \
8527 conftest$ac_exeext conftest.$ac_ext
8528 LIBS=$ac_check_lib_save_LIBS
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8531 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8532 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8534 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8540 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8541 then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8543 $as_echo_n "checking for -lXcursor... " >&6; }
8544 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 ac_check_soname_save_LIBS=$LIBS
8548 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8552 /* Override any GCC internal prototype to avoid an error.
8553 Use char because int might match the return type of a GCC
8554 builtin and then its argument prototype would still apply. */
8555 #ifdef __cplusplus
8556 extern "C"
8557 #endif
8558 char XcursorImageLoadCursor ();
8560 main ()
8562 return XcursorImageLoadCursor ();
8564 return 0;
8566 _ACEOF
8567 if ac_fn_c_try_link "$LINENO"; then :
8568 case "$LIBEXT" in
8569 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8570 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'` ;;
8571 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8572 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
8573 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8574 fi ;;
8575 esac
8577 rm -f core conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8579 LIBS=$ac_check_soname_save_LIBS
8581 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8583 $as_echo "not found" >&6; }
8585 else
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8587 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8589 cat >>confdefs.h <<_ACEOF
8590 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8591 _ACEOF
8596 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8597 case "x$with_xcursor" in
8598 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8599 xno) ;;
8600 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8601 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8602 esac
8605 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8606 then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8608 $as_echo_n "checking for -lXi... " >&6; }
8609 if ${ac_cv_lib_soname_Xi+:} false; then :
8610 $as_echo_n "(cached) " >&6
8611 else
8612 ac_check_soname_save_LIBS=$LIBS
8613 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8617 /* Override any GCC internal prototype to avoid an error.
8618 Use char because int might match the return type of a GCC
8619 builtin and then its argument prototype would still apply. */
8620 #ifdef __cplusplus
8621 extern "C"
8622 #endif
8623 char XOpenDevice ();
8625 main ()
8627 return XOpenDevice ();
8629 return 0;
8631 _ACEOF
8632 if ac_fn_c_try_link "$LINENO"; then :
8633 case "$LIBEXT" in
8634 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8635 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'` ;;
8636 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8637 if test "x$ac_cv_lib_soname_Xi" = x; then :
8638 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8639 fi ;;
8640 esac
8642 rm -f core conftest.err conftest.$ac_objext \
8643 conftest$ac_exeext conftest.$ac_ext
8644 LIBS=$ac_check_soname_save_LIBS
8646 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8648 $as_echo "not found" >&6; }
8650 else
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8652 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8654 cat >>confdefs.h <<_ACEOF
8655 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8656 _ACEOF
8661 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8662 case "x$with_xinput" in
8663 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8664 xno) ;;
8665 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8666 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8667 esac
8670 if test "x$ac_cv_lib_soname_Xi" != x
8671 then
8672 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8673 case "x$with_xinput2" in
8674 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8675 xno) ;;
8676 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8677 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8678 esac
8682 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8683 then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8685 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8686 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 ac_check_lib_save_LIBS=$LIBS
8690 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8694 /* Override any GCC internal prototype to avoid an error.
8695 Use char because int might match the return type of a GCC
8696 builtin and then its argument prototype would still apply. */
8697 #ifdef __cplusplus
8698 extern "C"
8699 #endif
8700 char XShmQueryExtension ();
8702 main ()
8704 return XShmQueryExtension ();
8706 return 0;
8708 _ACEOF
8709 if ac_fn_c_try_link "$LINENO"; then :
8710 ac_cv_lib_Xext_XShmQueryExtension=yes
8711 else
8712 ac_cv_lib_Xext_XShmQueryExtension=no
8714 rm -f core conftest.err conftest.$ac_objext \
8715 conftest$ac_exeext conftest.$ac_ext
8716 LIBS=$ac_check_lib_save_LIBS
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8719 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8720 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8722 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8727 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8728 case "x$with_xshm" in
8729 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8730 xno) ;;
8731 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8732 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8733 esac
8736 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8737 then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8739 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8740 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 ac_check_lib_save_LIBS=$LIBS
8744 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8748 /* Override any GCC internal prototype to avoid an error.
8749 Use char because int might match the return type of a GCC
8750 builtin and then its argument prototype would still apply. */
8751 #ifdef __cplusplus
8752 extern "C"
8753 #endif
8754 char XShapeQueryExtension ();
8756 main ()
8758 return XShapeQueryExtension ();
8760 return 0;
8762 _ACEOF
8763 if ac_fn_c_try_link "$LINENO"; then :
8764 ac_cv_lib_Xext_XShapeQueryExtension=yes
8765 else
8766 ac_cv_lib_Xext_XShapeQueryExtension=no
8768 rm -f core conftest.err conftest.$ac_objext \
8769 conftest$ac_exeext conftest.$ac_ext
8770 LIBS=$ac_check_lib_save_LIBS
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8773 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8774 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8776 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8781 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8782 case "x$with_xshape" in
8783 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8784 xno) ;;
8785 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8786 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8787 esac
8790 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8791 then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8793 $as_echo_n "checking for -lXxf86vm... " >&6; }
8794 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 ac_check_soname_save_LIBS=$LIBS
8798 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h. */
8802 /* Override any GCC internal prototype to avoid an error.
8803 Use char because int might match the return type of a GCC
8804 builtin and then its argument prototype would still apply. */
8805 #ifdef __cplusplus
8806 extern "C"
8807 #endif
8808 char XF86VidModeQueryExtension ();
8810 main ()
8812 return XF86VidModeQueryExtension ();
8814 return 0;
8816 _ACEOF
8817 if ac_fn_c_try_link "$LINENO"; then :
8818 case "$LIBEXT" in
8819 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8820 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'` ;;
8821 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8822 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
8823 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8824 fi ;;
8825 esac
8827 rm -f core conftest.err conftest.$ac_objext \
8828 conftest$ac_exeext conftest.$ac_ext
8829 LIBS=$ac_check_soname_save_LIBS
8831 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8833 $as_echo "not found" >&6; }
8835 else
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8837 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8839 cat >>confdefs.h <<_ACEOF
8840 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8841 _ACEOF
8846 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8847 case "x$with_xxf86vm" in
8848 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8849 xno) ;;
8850 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8851 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8852 esac
8855 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"
8856 then
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8858 $as_echo_n "checking for -lXrender... " >&6; }
8859 if ${ac_cv_lib_soname_Xrender+:} false; then :
8860 $as_echo_n "(cached) " >&6
8861 else
8862 ac_check_soname_save_LIBS=$LIBS
8863 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8867 /* Override any GCC internal prototype to avoid an error.
8868 Use char because int might match the return type of a GCC
8869 builtin and then its argument prototype would still apply. */
8870 #ifdef __cplusplus
8871 extern "C"
8872 #endif
8873 char XRenderQueryExtension ();
8875 main ()
8877 return XRenderQueryExtension ();
8879 return 0;
8881 _ACEOF
8882 if ac_fn_c_try_link "$LINENO"; then :
8883 case "$LIBEXT" in
8884 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8885 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'` ;;
8886 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8887 if test "x$ac_cv_lib_soname_Xrender" = x; then :
8888 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8889 fi ;;
8890 esac
8892 rm -f core conftest.err conftest.$ac_objext \
8893 conftest$ac_exeext conftest.$ac_ext
8894 LIBS=$ac_check_soname_save_LIBS
8896 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8898 $as_echo "not found" >&6; }
8900 else
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8902 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8904 cat >>confdefs.h <<_ACEOF
8905 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8906 _ACEOF
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8909 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8910 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8911 $as_echo_n "(cached) " >&6
8912 else
8913 ac_check_lib_save_LIBS=$LIBS
8914 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8918 /* Override any GCC internal prototype to avoid an error.
8919 Use char because int might match the return type of a GCC
8920 builtin and then its argument prototype would still apply. */
8921 #ifdef __cplusplus
8922 extern "C"
8923 #endif
8924 char XRenderSetPictureTransform ();
8926 main ()
8928 return XRenderSetPictureTransform ();
8930 return 0;
8932 _ACEOF
8933 if ac_fn_c_try_link "$LINENO"; then :
8934 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8935 else
8936 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8938 rm -f core conftest.err conftest.$ac_objext \
8939 conftest$ac_exeext conftest.$ac_ext
8940 LIBS=$ac_check_lib_save_LIBS
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8943 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8944 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8946 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8951 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8952 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8953 $as_echo_n "(cached) " >&6
8954 else
8955 ac_check_lib_save_LIBS=$LIBS
8956 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8960 /* Override any GCC internal prototype to avoid an error.
8961 Use char because int might match the return type of a GCC
8962 builtin and then its argument prototype would still apply. */
8963 #ifdef __cplusplus
8964 extern "C"
8965 #endif
8966 char XRenderCreateLinearGradient ();
8968 main ()
8970 return XRenderCreateLinearGradient ();
8972 return 0;
8974 _ACEOF
8975 if ac_fn_c_try_link "$LINENO"; then :
8976 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8977 else
8978 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8980 rm -f core conftest.err conftest.$ac_objext \
8981 conftest$ac_exeext conftest.$ac_ext
8982 LIBS=$ac_check_lib_save_LIBS
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8985 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8986 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8988 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8995 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8996 case "x$with_xrender" in
8997 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8998 xno) ;;
8999 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
9000 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
9001 esac
9004 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
9005 then
9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9008 #include <X11/Xlib.h>
9009 #include <X11/extensions/Xrandr.h>
9011 main ()
9013 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
9015 return 0;
9017 _ACEOF
9018 if ac_fn_c_try_compile "$LINENO"; then :
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9020 $as_echo_n "checking for -lXrandr... " >&6; }
9021 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 ac_check_soname_save_LIBS=$LIBS
9025 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9029 /* Override any GCC internal prototype to avoid an error.
9030 Use char because int might match the return type of a GCC
9031 builtin and then its argument prototype would still apply. */
9032 #ifdef __cplusplus
9033 extern "C"
9034 #endif
9035 char XRRQueryExtension ();
9037 main ()
9039 return XRRQueryExtension ();
9041 return 0;
9043 _ACEOF
9044 if ac_fn_c_try_link "$LINENO"; then :
9045 case "$LIBEXT" in
9046 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9047 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'` ;;
9048 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9049 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
9050 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9051 fi ;;
9052 esac
9054 rm -f core conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9056 LIBS=$ac_check_soname_save_LIBS
9058 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9060 $as_echo "not found" >&6; }
9062 else
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9064 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
9066 cat >>confdefs.h <<_ACEOF
9067 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
9068 _ACEOF
9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9072 #include <X11/Xlib.h>
9073 #include <X11/extensions/Xrandr.h>
9075 main ()
9077 static typeof(XRRGetScreenResources) *f; if (f) return 0;
9079 return 0;
9081 _ACEOF
9082 if ac_fn_c_try_compile "$LINENO"; then :
9084 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
9087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9093 case "x$with_xrandr" in
9094 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
9095 xno) ;;
9096 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
9097 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
9098 esac
9101 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
9102 then
9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104 /* end confdefs.h. */
9105 #include <X11/Xlib.h>
9106 #include <X11/extensions/Xinerama.h>
9108 main ()
9110 static typeof(XineramaQueryScreens) * func; if (func) return 0;
9112 return 0;
9114 _ACEOF
9115 if ac_fn_c_try_compile "$LINENO"; then :
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
9117 $as_echo_n "checking for -lXinerama... " >&6; }
9118 if ${ac_cv_lib_soname_Xinerama+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 ac_check_soname_save_LIBS=$LIBS
9122 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9126 /* Override any GCC internal prototype to avoid an error.
9127 Use char because int might match the return type of a GCC
9128 builtin and then its argument prototype would still apply. */
9129 #ifdef __cplusplus
9130 extern "C"
9131 #endif
9132 char XineramaQueryScreens ();
9134 main ()
9136 return XineramaQueryScreens ();
9138 return 0;
9140 _ACEOF
9141 if ac_fn_c_try_link "$LINENO"; then :
9142 case "$LIBEXT" in
9143 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9144 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'` ;;
9145 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9146 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
9147 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9148 fi ;;
9149 esac
9151 rm -f core conftest.err conftest.$ac_objext \
9152 conftest$ac_exeext conftest.$ac_ext
9153 LIBS=$ac_check_soname_save_LIBS
9155 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9157 $as_echo "not found" >&6; }
9159 else
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
9161 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
9163 cat >>confdefs.h <<_ACEOF
9164 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
9165 _ACEOF
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9173 case "x$with_xinerama" in
9174 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
9175 xno) ;;
9176 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
9177 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
9178 esac
9181 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
9182 then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
9184 $as_echo_n "checking for -lXcomposite... " >&6; }
9185 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
9186 $as_echo_n "(cached) " >&6
9187 else
9188 ac_check_soname_save_LIBS=$LIBS
9189 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9193 /* Override any GCC internal prototype to avoid an error.
9194 Use char because int might match the return type of a GCC
9195 builtin and then its argument prototype would still apply. */
9196 #ifdef __cplusplus
9197 extern "C"
9198 #endif
9199 char XCompositeRedirectWindow ();
9201 main ()
9203 return XCompositeRedirectWindow ();
9205 return 0;
9207 _ACEOF
9208 if ac_fn_c_try_link "$LINENO"; then :
9209 case "$LIBEXT" in
9210 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9211 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'` ;;
9212 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9213 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
9214 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9215 fi ;;
9216 esac
9218 rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9220 LIBS=$ac_check_soname_save_LIBS
9222 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9224 $as_echo "not found" >&6; }
9226 else
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
9228 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
9230 cat >>confdefs.h <<_ACEOF
9231 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
9232 _ACEOF
9237 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9238 case "x$with_xcomposite" in
9239 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
9240 xno) ;;
9241 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
9242 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
9243 esac
9246 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
9247 #include <X11/Xlib.h>
9248 #endif
9250 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
9252 cat >>confdefs.h <<_ACEOF
9253 #define HAVE_XICCALLBACK_CALLBACK 1
9254 _ACEOF
9258 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
9259 #include <X11/Xlib.h>
9260 #endif
9262 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
9264 cat >>confdefs.h <<_ACEOF
9265 #define HAVE_XEVENT_XCOOKIE 1
9266 _ACEOF
9273 opengl_msg=""
9274 if test "x$with_opengl" != "xno"
9275 then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9277 $as_echo_n "checking for -lGL... " >&6; }
9278 if ${ac_cv_lib_soname_GL+:} false; then :
9279 $as_echo_n "(cached) " >&6
9280 else
9281 ac_check_soname_save_LIBS=$LIBS
9282 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284 /* end confdefs.h. */
9286 /* Override any GCC internal prototype to avoid an error.
9287 Use char because int might match the return type of a GCC
9288 builtin and then its argument prototype would still apply. */
9289 #ifdef __cplusplus
9290 extern "C"
9291 #endif
9292 char glXCreateContext ();
9294 main ()
9296 return glXCreateContext ();
9298 return 0;
9300 _ACEOF
9301 if ac_fn_c_try_link "$LINENO"; then :
9302 case "$LIBEXT" in
9303 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9304 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'` ;;
9305 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9306 if test "x$ac_cv_lib_soname_GL" = x; then :
9307 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9308 fi ;;
9309 esac
9311 rm -f core conftest.err conftest.$ac_objext \
9312 conftest$ac_exeext conftest.$ac_ext
9313 LIBS=$ac_check_soname_save_LIBS
9315 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9317 $as_echo "not found" >&6; }
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9319 $as_echo_n "checking for -lGL... " >&6; }
9320 if ${ac_cv_lib_soname_GL+:} false; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 ac_check_soname_save_LIBS=$LIBS
9324 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"
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9328 /* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
9331 #ifdef __cplusplus
9332 extern "C"
9333 #endif
9334 char glXCreateContext ();
9336 main ()
9338 return glXCreateContext ();
9340 return 0;
9342 _ACEOF
9343 if ac_fn_c_try_link "$LINENO"; then :
9344 case "$LIBEXT" in
9345 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9346 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'` ;;
9347 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9348 if test "x$ac_cv_lib_soname_GL" = x; then :
9349 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9350 fi ;;
9351 esac
9353 rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9355 LIBS=$ac_check_soname_save_LIBS
9357 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9359 $as_echo "not found" >&6; }
9360 if test -f /usr/X11R6/lib/libGL.a
9361 then
9362 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
9363 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
9364 else
9365 opengl_msg="No OpenGL library found on this system."
9367 else
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9369 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9371 cat >>confdefs.h <<_ACEOF
9372 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9373 _ACEOF
9375 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"
9377 else
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9379 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9381 cat >>confdefs.h <<_ACEOF
9382 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9383 _ACEOF
9385 OPENGL_LIBS="-lGL"
9387 if test "x$with_glu" != "xno"
9388 then
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
9390 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
9391 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 ac_check_lib_save_LIBS=$LIBS
9395 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397 /* end confdefs.h. */
9399 /* Override any GCC internal prototype to avoid an error.
9400 Use char because int might match the return type of a GCC
9401 builtin and then its argument prototype would still apply. */
9402 #ifdef __cplusplus
9403 extern "C"
9404 #endif
9405 char gluLookAt ();
9407 main ()
9409 return gluLookAt ();
9411 return 0;
9413 _ACEOF
9414 if ac_fn_c_try_link "$LINENO"; then :
9415 ac_cv_lib_GLU_gluLookAt=yes
9416 else
9417 ac_cv_lib_GLU_gluLookAt=no
9419 rm -f core conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext conftest.$ac_ext
9421 LIBS=$ac_check_lib_save_LIBS
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
9424 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
9425 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
9429 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
9430 case "x$with_glu" in
9431 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9432 xno) ;;
9433 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9434 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9435 esac
9439 if test "x$with_osmesa" != "xno"
9440 then
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
9442 $as_echo_n "checking for -lOSMesa... " >&6; }
9443 if ${ac_cv_lib_soname_OSMesa+:} false; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 ac_check_soname_save_LIBS=$LIBS
9447 LIBS="-lOSMesa $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9451 /* Override any GCC internal prototype to avoid an error.
9452 Use char because int might match the return type of a GCC
9453 builtin and then its argument prototype would still apply. */
9454 #ifdef __cplusplus
9455 extern "C"
9456 #endif
9457 char glAccum ();
9459 main ()
9461 return glAccum ();
9463 return 0;
9465 _ACEOF
9466 if ac_fn_c_try_link "$LINENO"; then :
9467 case "$LIBEXT" in
9468 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9469 dylib) ac_cv_lib_soname_OSMesa=`otool -L conftest$ac_exeext | grep "libOSMesa\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libOSMesa\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9470 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9471 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
9472 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9473 fi ;;
9474 esac
9476 rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9478 LIBS=$ac_check_soname_save_LIBS
9480 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9482 $as_echo "not found" >&6; }
9484 else
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
9486 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
9488 cat >>confdefs.h <<_ACEOF
9489 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
9490 _ACEOF
9494 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9495 case "x$with_osmesa" in
9496 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
9497 xno) ;;
9498 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
9499 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
9500 esac
9504 if test -n "$opengl_msg"; then :
9505 case "x$with_opengl" in
9506 x) as_fn_append wine_warnings "|$opengl_msg
9507 OpenGL and Direct3D won't be supported." ;;
9508 xno) ;;
9509 *) as_fn_error $? "$opengl_msg
9510 OpenGL and Direct3D won't be supported.
9511 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9512 esac
9515 CPPFLAGS="$ac_save_CPPFLAGS"
9516 else
9517 XLIB=""
9518 X_CFLAGS=""
9519 X_LIBS=""
9520 enable_winex11_drv=${enable_winex11_drv:-no}
9522 if test "x$XLIB" = "x"; then :
9523 case "x$with_x" in
9524 xno) ;;
9525 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9526 without X support, which probably isn't what you want. You will need
9527 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9528 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9529 esac
9532 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
9534 if test "$ac_cv_header_CL_cl_h" = "yes"
9535 then
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9537 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9538 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9539 $as_echo_n "(cached) " >&6
9540 else
9541 ac_check_lib_save_LIBS=$LIBS
9542 LIBS="-lOpenCL $LIBS"
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9546 /* Override any GCC internal prototype to avoid an error.
9547 Use char because int might match the return type of a GCC
9548 builtin and then its argument prototype would still apply. */
9549 #ifdef __cplusplus
9550 extern "C"
9551 #endif
9552 char clGetPlatformInfo ();
9554 main ()
9556 return clGetPlatformInfo ();
9558 return 0;
9560 _ACEOF
9561 if ac_fn_c_try_link "$LINENO"; then :
9562 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9563 else
9564 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9566 rm -f core conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
9568 LIBS=$ac_check_lib_save_LIBS
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9571 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9572 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9573 LIBOPENCL="-lOpenCL"
9578 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9579 case "x$with_opencl" in
9580 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9581 xno) ;;
9582 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9583 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9584 esac
9586 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9589 if test "x$with_xml" != "xno"
9590 then
9591 ac_save_CPPFLAGS="$CPPFLAGS"
9592 if test -n "$ac_tool_prefix"; then
9593 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9594 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596 $as_echo_n "checking for $ac_word... " >&6; }
9597 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 if test -n "$PKG_CONFIG"; then
9601 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
9602 else
9603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604 for as_dir in $PATH
9606 IFS=$as_save_IFS
9607 test -z "$as_dir" && as_dir=.
9608 for ac_exec_ext in '' $ac_executable_extensions; do
9609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9610 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
9611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9612 break 2
9614 done
9615 done
9616 IFS=$as_save_IFS
9620 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
9621 if test -n "$PKG_CONFIG"; then
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9623 $as_echo "$PKG_CONFIG" >&6; }
9624 else
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626 $as_echo "no" >&6; }
9631 if test -z "$ac_cv_prog_PKG_CONFIG"; then
9632 ac_ct_PKG_CONFIG=$PKG_CONFIG
9633 # Extract the first word of "pkg-config", so it can be a program name with args.
9634 set dummy pkg-config; ac_word=$2
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636 $as_echo_n "checking for $ac_word... " >&6; }
9637 if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 if test -n "$ac_ct_PKG_CONFIG"; then
9641 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
9642 else
9643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 for as_dir in $PATH
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9650 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
9651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 break 2
9654 done
9655 done
9656 IFS=$as_save_IFS
9660 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
9661 if test -n "$ac_ct_PKG_CONFIG"; then
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
9663 $as_echo "$ac_ct_PKG_CONFIG" >&6; }
9664 else
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9666 $as_echo "no" >&6; }
9669 if test "x$ac_ct_PKG_CONFIG" = x; then
9670 PKG_CONFIG=""
9671 else
9672 case $cross_compiling:$ac_tool_warned in
9673 yes:)
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9676 ac_tool_warned=yes ;;
9677 esac
9678 PKG_CONFIG=$ac_ct_PKG_CONFIG
9680 else
9681 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
9684 if test -n "$XML2_CFLAGS"; then :
9686 elif test -n "$PKG_CONFIG"; then :
9687 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
9689 XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
9690 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
9691 if test -n "$XML2_LIBS"; then :
9693 elif test -n "$PKG_CONFIG"; then :
9694 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
9696 XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
9697 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
9698 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9699 do :
9700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9701 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9702 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9703 cat >>confdefs.h <<_ACEOF
9704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9705 _ACEOF
9709 done
9711 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"
9712 then
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9714 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9715 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 ac_check_lib_save_LIBS=$LIBS
9719 LIBS="-lxml2 $XML2_LIBS $LIBS"
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9723 /* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9726 #ifdef __cplusplus
9727 extern "C"
9728 #endif
9729 char xmlParseMemory ();
9731 main ()
9733 return xmlParseMemory ();
9735 return 0;
9737 _ACEOF
9738 if ac_fn_c_try_link "$LINENO"; then :
9739 ac_cv_lib_xml2_xmlParseMemory=yes
9740 else
9741 ac_cv_lib_xml2_xmlParseMemory=no
9743 rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_check_lib_save_LIBS
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9748 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9749 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9751 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9753 else
9754 XML2_LIBS=""
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9758 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9759 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 ac_check_lib_save_LIBS=$LIBS
9763 LIBS="-lxml2 $XML2_LIBS $LIBS"
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9767 /* Override any GCC internal prototype to avoid an error.
9768 Use char because int might match the return type of a GCC
9769 builtin and then its argument prototype would still apply. */
9770 #ifdef __cplusplus
9771 extern "C"
9772 #endif
9773 char xmlReadMemory ();
9775 main ()
9777 return xmlReadMemory ();
9779 return 0;
9781 _ACEOF
9782 if ac_fn_c_try_link "$LINENO"; then :
9783 ac_cv_lib_xml2_xmlReadMemory=yes
9784 else
9785 ac_cv_lib_xml2_xmlReadMemory=no
9787 rm -f core conftest.err conftest.$ac_objext \
9788 conftest$ac_exeext conftest.$ac_ext
9789 LIBS=$ac_check_lib_save_LIBS
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9792 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9793 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9795 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9800 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9801 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 ac_check_lib_save_LIBS=$LIBS
9805 LIBS="-lxml2 $XML2_LIBS $LIBS"
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h. */
9809 /* Override any GCC internal prototype to avoid an error.
9810 Use char because int might match the return type of a GCC
9811 builtin and then its argument prototype would still apply. */
9812 #ifdef __cplusplus
9813 extern "C"
9814 #endif
9815 char xmlNewDocPI ();
9817 main ()
9819 return xmlNewDocPI ();
9821 return 0;
9823 _ACEOF
9824 if ac_fn_c_try_link "$LINENO"; then :
9825 ac_cv_lib_xml2_xmlNewDocPI=yes
9826 else
9827 ac_cv_lib_xml2_xmlNewDocPI=no
9829 rm -f core conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9831 LIBS=$ac_check_lib_save_LIBS
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9834 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9835 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9837 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9842 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9843 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9844 $as_echo_n "(cached) " >&6
9845 else
9846 ac_check_lib_save_LIBS=$LIBS
9847 LIBS="-lxml2 $XML2_LIBS $LIBS"
9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h. */
9851 /* Override any GCC internal prototype to avoid an error.
9852 Use char because int might match the return type of a GCC
9853 builtin and then its argument prototype would still apply. */
9854 #ifdef __cplusplus
9855 extern "C"
9856 #endif
9857 char xmlSchemaSetParserStructuredErrors ();
9859 main ()
9861 return xmlSchemaSetParserStructuredErrors ();
9863 return 0;
9865 _ACEOF
9866 if ac_fn_c_try_link "$LINENO"; then :
9867 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9868 else
9869 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9871 rm -f core conftest.err conftest.$ac_objext \
9872 conftest$ac_exeext conftest.$ac_ext
9873 LIBS=$ac_check_lib_save_LIBS
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9876 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9877 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9879 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9884 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9885 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 ac_check_lib_save_LIBS=$LIBS
9889 LIBS="-lxml2 $XML2_LIBS $LIBS"
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9893 /* Override any GCC internal prototype to avoid an error.
9894 Use char because int might match the return type of a GCC
9895 builtin and then its argument prototype would still apply. */
9896 #ifdef __cplusplus
9897 extern "C"
9898 #endif
9899 char xmlSchemaSetValidStructuredErrors ();
9901 main ()
9903 return xmlSchemaSetValidStructuredErrors ();
9905 return 0;
9907 _ACEOF
9908 if ac_fn_c_try_link "$LINENO"; then :
9909 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9910 else
9911 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9913 rm -f core conftest.err conftest.$ac_objext \
9914 conftest$ac_exeext conftest.$ac_ext
9915 LIBS=$ac_check_lib_save_LIBS
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9918 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9919 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9921 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9926 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9927 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9928 $as_echo_n "(cached) " >&6
9929 else
9930 ac_check_lib_save_LIBS=$LIBS
9931 LIBS="-lxml2 $XML2_LIBS $LIBS"
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9935 /* Override any GCC internal prototype to avoid an error.
9936 Use char because int might match the return type of a GCC
9937 builtin and then its argument prototype would still apply. */
9938 #ifdef __cplusplus
9939 extern "C"
9940 #endif
9941 char xmlFirstElementChild ();
9943 main ()
9945 return xmlFirstElementChild ();
9947 return 0;
9949 _ACEOF
9950 if ac_fn_c_try_link "$LINENO"; then :
9951 ac_cv_lib_xml2_xmlFirstElementChild=yes
9952 else
9953 ac_cv_lib_xml2_xmlFirstElementChild=no
9955 rm -f core conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9957 LIBS=$ac_check_lib_save_LIBS
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9960 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9961 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9963 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9967 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9969 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9971 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9975 else
9976 XML2_CFLAGS=""
9977 XML2_LIBS=""
9979 CPPFLAGS="$ac_save_CPPFLAGS"
9981 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9982 case "x$with_xml" in
9983 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9984 xno) ;;
9985 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9986 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9987 esac
9990 if test "x$with_xslt" != "xno"
9991 then
9992 ac_save_CPPFLAGS="$CPPFLAGS"
9993 if test -n "$XSLT_CFLAGS"; then :
9995 elif test -n "$PKG_CONFIG"; then :
9996 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
9998 XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
9999 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
10000 if test -n "$XSLT_LIBS"; then :
10002 elif test -n "$PKG_CONFIG"; then :
10003 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
10005 XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
10006 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
10007 for ac_header in libxslt/pattern.h libxslt/transform.h
10008 do :
10009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10010 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
10011 # include <libxslt/pattern.h>
10012 #endif
10014 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10015 cat >>confdefs.h <<_ACEOF
10016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10017 _ACEOF
10021 done
10023 CPPFLAGS="$ac_save_CPPFLAGS"
10024 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10025 then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10027 $as_echo_n "checking for -lxslt... " >&6; }
10028 if ${ac_cv_lib_soname_xslt+:} false; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10031 ac_check_soname_save_LIBS=$LIBS
10032 LIBS="-lxslt $XSLT_LIBS $LIBS"
10033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034 /* end confdefs.h. */
10036 /* Override any GCC internal prototype to avoid an error.
10037 Use char because int might match the return type of a GCC
10038 builtin and then its argument prototype would still apply. */
10039 #ifdef __cplusplus
10040 extern "C"
10041 #endif
10042 char xsltCompilePattern ();
10044 main ()
10046 return xsltCompilePattern ();
10048 return 0;
10050 _ACEOF
10051 if ac_fn_c_try_link "$LINENO"; then :
10052 case "$LIBEXT" in
10053 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10054 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'` ;;
10055 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10056 if test "x$ac_cv_lib_soname_xslt" = x; then :
10057 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10058 fi ;;
10059 esac
10061 rm -f core conftest.err conftest.$ac_objext \
10062 conftest$ac_exeext conftest.$ac_ext
10063 LIBS=$ac_check_soname_save_LIBS
10065 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10067 $as_echo "not found" >&6; }
10069 else
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10071 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10073 cat >>confdefs.h <<_ACEOF
10074 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10075 _ACEOF
10079 else
10080 XSLT_CFLAGS=""
10083 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10084 case "x$with_xslt" in
10085 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10086 xno) ;;
10087 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10088 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10089 esac
10092 if test "x$with_dbus" != "xno"
10093 then
10094 ac_save_CPPFLAGS="$CPPFLAGS"
10095 if test -n "$DBUS_CFLAGS"; then :
10097 elif test -n "$PKG_CONFIG"; then :
10098 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10101 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10102 if test -n "$DBUS_LIBS"; then :
10104 elif test -n "$PKG_CONFIG"; then :
10105 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10109 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10110 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10112 $as_echo_n "checking for -ldbus-1... " >&6; }
10113 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 ac_check_soname_save_LIBS=$LIBS
10117 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10121 /* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
10124 #ifdef __cplusplus
10125 extern "C"
10126 #endif
10127 char dbus_connection_close ();
10129 main ()
10131 return dbus_connection_close ();
10133 return 0;
10135 _ACEOF
10136 if ac_fn_c_try_link "$LINENO"; then :
10137 case "$LIBEXT" in
10138 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10139 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'` ;;
10140 *) ac_cv_lib_soname_dbus_1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libdbus-1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libdbus-1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10141 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10142 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10143 fi ;;
10144 esac
10146 rm -f core conftest.err conftest.$ac_objext \
10147 conftest$ac_exeext conftest.$ac_ext
10148 LIBS=$ac_check_soname_save_LIBS
10150 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10152 $as_echo "not found" >&6; }
10153 DBUS_CFLAGS=""
10154 else
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10156 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10158 cat >>confdefs.h <<_ACEOF
10159 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10160 _ACEOF
10164 else
10165 DBUS_CFLAGS=""
10169 CPPFLAGS="$ac_save_CPPFLAGS"
10171 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
10172 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10173 case "x$with_dbus" in
10174 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
10175 xno) ;;
10176 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
10177 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
10178 esac
10181 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
10182 then
10183 ac_save_CPPFLAGS="$CPPFLAGS"
10184 if test -n "$HAL_CFLAGS"; then :
10186 elif test -n "$PKG_CONFIG"; then :
10187 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
10190 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
10191 if test -n "$HAL_LIBS"; then :
10193 elif test -n "$PKG_CONFIG"; then :
10194 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
10197 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
10198 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
10199 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
10201 $as_echo_n "checking for -lhal... " >&6; }
10202 if ${ac_cv_lib_soname_hal+:} false; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 ac_check_soname_save_LIBS=$LIBS
10206 LIBS="-lhal $HAL_LIBS $LIBS"
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10210 /* Override any GCC internal prototype to avoid an error.
10211 Use char because int might match the return type of a GCC
10212 builtin and then its argument prototype would still apply. */
10213 #ifdef __cplusplus
10214 extern "C"
10215 #endif
10216 char libhal_ctx_new ();
10218 main ()
10220 return libhal_ctx_new ();
10222 return 0;
10224 _ACEOF
10225 if ac_fn_c_try_link "$LINENO"; then :
10226 case "$LIBEXT" in
10227 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10228 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'` ;;
10229 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10230 if test "x$ac_cv_lib_soname_hal" = x; then :
10231 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10232 fi ;;
10233 esac
10235 rm -f core conftest.err conftest.$ac_objext \
10236 conftest$ac_exeext conftest.$ac_ext
10237 LIBS=$ac_check_soname_save_LIBS
10239 if test "x$ac_cv_lib_soname_hal" = "x"; then :
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10241 $as_echo "not found" >&6; }
10242 HAL_CFLAGS=""
10243 else
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
10245 $as_echo "$ac_cv_lib_soname_hal" >&6; }
10247 cat >>confdefs.h <<_ACEOF
10248 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
10249 _ACEOF
10253 else
10254 HAL_CFLAGS=""
10258 CPPFLAGS="$ac_save_CPPFLAGS"
10259 if test "x$ac_cv_lib_soname_hal" = "x" -a \
10260 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10261 case "x$with_hal" in
10262 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
10263 xno) ;;
10264 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
10265 This is an error since --with-hal was requested." "$LINENO" 5 ;;
10266 esac
10270 if test "x$with_gnutls" != "xno"
10271 then
10272 ac_save_CPPFLAGS="$CPPFLAGS"
10273 if test -n "$GNUTLS_CFLAGS"; then :
10275 elif test -n "$PKG_CONFIG"; then :
10276 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
10279 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
10280 if test -n "$GNUTLS_LIBS"; then :
10282 elif test -n "$PKG_CONFIG"; then :
10283 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
10287 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
10288 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10291 #include <gnutls/gnutls.h>
10293 main ()
10295 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
10297 return 0;
10299 _ACEOF
10300 if ac_fn_c_try_compile "$LINENO"; then :
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
10302 $as_echo_n "checking for -lgnutls... " >&6; }
10303 if ${ac_cv_lib_soname_gnutls+:} false; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 ac_check_soname_save_LIBS=$LIBS
10307 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
10308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10309 /* end confdefs.h. */
10311 /* Override any GCC internal prototype to avoid an error.
10312 Use char because int might match the return type of a GCC
10313 builtin and then its argument prototype would still apply. */
10314 #ifdef __cplusplus
10315 extern "C"
10316 #endif
10317 char gnutls_global_init ();
10319 main ()
10321 return gnutls_global_init ();
10323 return 0;
10325 _ACEOF
10326 if ac_fn_c_try_link "$LINENO"; then :
10327 case "$LIBEXT" in
10328 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10329 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'` ;;
10330 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10331 if test "x$ac_cv_lib_soname_gnutls" = x; then :
10332 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10333 fi ;;
10334 esac
10336 rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_soname_save_LIBS
10340 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10342 $as_echo "not found" >&6; }
10343 GNUTLS_CFLAGS=""
10344 else
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
10346 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
10348 cat >>confdefs.h <<_ACEOF
10349 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
10350 _ACEOF
10355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10356 else
10357 GNUTLS_CFLAGS=""
10361 CPPFLAGS="$ac_save_CPPFLAGS"
10363 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10364 case "x$with_gnutls" in
10365 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
10366 xno) ;;
10367 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
10368 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
10369 esac
10372 CURSESLIBS=""
10373 if test "$ac_cv_header_ncurses_h" = "yes"
10374 then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
10376 $as_echo_n "checking for -lncurses... " >&6; }
10377 if ${ac_cv_lib_soname_ncurses+:} false; then :
10378 $as_echo_n "(cached) " >&6
10379 else
10380 ac_check_soname_save_LIBS=$LIBS
10381 LIBS="-lncurses $LIBS"
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10385 /* Override any GCC internal prototype to avoid an error.
10386 Use char because int might match the return type of a GCC
10387 builtin and then its argument prototype would still apply. */
10388 #ifdef __cplusplus
10389 extern "C"
10390 #endif
10391 char waddch ();
10393 main ()
10395 return waddch ();
10397 return 0;
10399 _ACEOF
10400 if ac_fn_c_try_link "$LINENO"; then :
10401 case "$LIBEXT" in
10402 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10403 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'` ;;
10404 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10405 if test "x$ac_cv_lib_soname_ncurses" = x; then :
10406 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10407 fi ;;
10408 esac
10410 rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412 LIBS=$ac_check_soname_save_LIBS
10414 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10416 $as_echo "not found" >&6; }
10418 else
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
10420 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
10422 cat >>confdefs.h <<_ACEOF
10423 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
10424 _ACEOF
10426 CURSESLIBS="-lncurses"
10428 elif test "$ac_cv_header_curses_h" = "yes"
10429 then
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
10431 $as_echo_n "checking for -lcurses... " >&6; }
10432 if ${ac_cv_lib_soname_curses+:} false; then :
10433 $as_echo_n "(cached) " >&6
10434 else
10435 ac_check_soname_save_LIBS=$LIBS
10436 LIBS="-lcurses $LIBS"
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10440 /* Override any GCC internal prototype to avoid an error.
10441 Use char because int might match the return type of a GCC
10442 builtin and then its argument prototype would still apply. */
10443 #ifdef __cplusplus
10444 extern "C"
10445 #endif
10446 char waddch ();
10448 main ()
10450 return waddch ();
10452 return 0;
10454 _ACEOF
10455 if ac_fn_c_try_link "$LINENO"; then :
10456 case "$LIBEXT" in
10457 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10458 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'` ;;
10459 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10460 if test "x$ac_cv_lib_soname_curses" = x; then :
10461 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10462 fi ;;
10463 esac
10465 rm -f core conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10467 LIBS=$ac_check_soname_save_LIBS
10469 if test "x$ac_cv_lib_soname_curses" = "x"; then :
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10471 $as_echo "not found" >&6; }
10473 else
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
10475 $as_echo "$ac_cv_lib_soname_curses" >&6; }
10477 cat >>confdefs.h <<_ACEOF
10478 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
10479 _ACEOF
10481 CURSESLIBS="-lcurses"
10484 ac_save_LIBS="$LIBS"
10485 LIBS="$LIBS $CURSESLIBS"
10486 for ac_func in mousemask
10487 do :
10488 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
10489 if test "x$ac_cv_func_mousemask" = xyes; then :
10490 cat >>confdefs.h <<_ACEOF
10491 #define HAVE_MOUSEMASK 1
10492 _ACEOF
10495 done
10497 LIBS="$ac_save_LIBS"
10498 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
10499 case "x$with_curses" in
10500 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
10501 xno) ;;
10502 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
10503 This is an error since --with-curses was requested." "$LINENO" 5 ;;
10504 esac
10507 if test "x$with_sane" != "xno"
10508 then
10509 ac_save_CPPFLAGS="$CPPFLAGS"
10510 if test -n "$SANE_CFLAGS"; then :
10512 elif test -n "$PKG_CONFIG"; then :
10513 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
10515 SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
10516 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
10517 if test -n "$SANE_LIBS"; then :
10519 elif test -n "$PKG_CONFIG"; then :
10520 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
10522 SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
10524 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10525 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10527 $as_echo_n "checking for -lsane... " >&6; }
10528 if ${ac_cv_lib_soname_sane+:} false; then :
10529 $as_echo_n "(cached) " >&6
10530 else
10531 ac_check_soname_save_LIBS=$LIBS
10532 LIBS="-lsane $SANE_LIBS $LIBS"
10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534 /* end confdefs.h. */
10536 /* Override any GCC internal prototype to avoid an error.
10537 Use char because int might match the return type of a GCC
10538 builtin and then its argument prototype would still apply. */
10539 #ifdef __cplusplus
10540 extern "C"
10541 #endif
10542 char sane_init ();
10544 main ()
10546 return sane_init ();
10548 return 0;
10550 _ACEOF
10551 if ac_fn_c_try_link "$LINENO"; then :
10552 case "$LIBEXT" in
10553 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10554 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'` ;;
10555 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10556 if test "x$ac_cv_lib_soname_sane" = x; then :
10557 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10558 fi ;;
10559 esac
10561 rm -f core conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_soname_save_LIBS
10565 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10567 $as_echo "not found" >&6; }
10568 SANE_CFLAGS=""
10569 else
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10571 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10573 cat >>confdefs.h <<_ACEOF
10574 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10575 _ACEOF
10579 else
10580 SANE_CFLAGS=""
10584 CPPFLAGS="$ac_save_CPPFLAGS"
10586 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10587 case "x$with_sane" in
10588 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10589 xno) ;;
10590 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10591 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10592 esac
10595 if test "x$with_v4l" != "xno"
10596 then
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10598 $as_echo_n "checking for -lv4l1... " >&6; }
10599 if ${ac_cv_lib_soname_v4l1+:} false; then :
10600 $as_echo_n "(cached) " >&6
10601 else
10602 ac_check_soname_save_LIBS=$LIBS
10603 LIBS="-lv4l1 $LIBS"
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10610 #ifdef __cplusplus
10611 extern "C"
10612 #endif
10613 char v4l1_open ();
10615 main ()
10617 return v4l1_open ();
10619 return 0;
10621 _ACEOF
10622 if ac_fn_c_try_link "$LINENO"; then :
10623 case "$LIBEXT" in
10624 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10625 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'` ;;
10626 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10627 if test "x$ac_cv_lib_soname_v4l1" = x; then :
10628 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10629 fi ;;
10630 esac
10632 rm -f core conftest.err conftest.$ac_objext \
10633 conftest$ac_exeext conftest.$ac_ext
10634 LIBS=$ac_check_soname_save_LIBS
10636 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10638 $as_echo "not found" >&6; }
10640 else
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10642 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10644 cat >>confdefs.h <<_ACEOF
10645 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10646 _ACEOF
10651 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10652 case "x$with_v4l" in
10653 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10654 xno) ;;
10655 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10656 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10657 esac
10660 if test "x$with_gphoto" != "xno"
10661 then
10662 ac_save_CPPFLAGS="$CPPFLAGS"
10663 if test -n "$GPHOTO2_CFLAGS"; then :
10665 elif test -n "$PKG_CONFIG"; then :
10666 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
10668 GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
10669 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
10670 if test -n "$GPHOTO2_LIBS"; then :
10672 elif test -n "$PKG_CONFIG"; then :
10673 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
10675 GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
10676 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
10677 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10678 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10680 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10681 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10682 $as_echo_n "(cached) " >&6
10683 else
10684 ac_check_lib_save_LIBS=$LIBS
10685 LIBS="-lgphoto2 $GPHOTO2_LIBS $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 gp_camera_new ();
10697 main ()
10699 return gp_camera_new ();
10701 return 0;
10703 _ACEOF
10704 if ac_fn_c_try_link "$LINENO"; then :
10705 ac_cv_lib_gphoto2_gp_camera_new=yes
10706 else
10707 ac_cv_lib_gphoto2_gp_camera_new=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_gphoto2_gp_camera_new" >&5
10714 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10715 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10717 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10719 else
10720 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10723 else
10724 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10728 if test -n "$GPHOTO2_PORT_CFLAGS"; then :
10730 elif test -n "$PKG_CONFIG"; then :
10731 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
10733 GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
10734 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
10735 if test -n "$GPHOTO2_PORT_LIBS"; then :
10737 elif test -n "$PKG_CONFIG"; then :
10738 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
10740 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
10741 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
10742 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
10743 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
10745 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
10746 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
10747 $as_echo_n "(cached) " >&6
10748 else
10749 ac_check_lib_save_LIBS=$LIBS
10750 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10754 /* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
10757 #ifdef __cplusplus
10758 extern "C"
10759 #endif
10760 char gp_port_info_list_new ();
10762 main ()
10764 return gp_port_info_list_new ();
10766 return 0;
10768 _ACEOF
10769 if ac_fn_c_try_link "$LINENO"; then :
10770 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
10771 else
10772 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
10774 rm -f core conftest.err conftest.$ac_objext \
10775 conftest$ac_exeext conftest.$ac_ext
10776 LIBS=$ac_check_lib_save_LIBS
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
10779 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
10780 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
10782 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
10784 else
10785 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
10788 else
10789 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
10793 CPPFLAGS="$ac_save_CPPFLAGS"
10795 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10796 case "x$with_gphoto" in
10797 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10798 xno) ;;
10799 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10800 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10801 esac
10803 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
10804 case "x$with_gphoto" in
10805 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
10806 xno) ;;
10807 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
10808 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10809 esac
10813 if test "$ac_cv_header_resolv_h" = "yes"
10814 then
10815 ac_save_LIBS="$LIBS"
10816 for lib in '' -lresolv
10818 LIBS="$lib $ac_save_LIBS"
10819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10820 /* end confdefs.h. */
10821 #ifdef HAVE_NETINET_IN_H
10822 #include <netinet/in.h>
10823 #endif
10824 #include <resolv.h>
10826 main ()
10828 res_query("foo",ns_c_in,0,0,0);
10830 return 0;
10832 _ACEOF
10833 if ac_fn_c_try_link "$LINENO"; then :
10835 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10837 RESOLVLIBS="$lib"
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 if test "${RESOLVLIBS+set}" = set; then
10843 break
10845 done
10846 LIBS="$ac_save_LIBS"
10849 if test "x$with_lcms" != "xno"
10850 then
10851 ac_save_CPPFLAGS="$CPPFLAGS"
10852 if test -n "$LCMS_CFLAGS"; then :
10854 elif test -n "$PKG_CONFIG"; then :
10855 LCMS_CFLAGS=`$PKG_CONFIG --cflags lcms 2>/dev/null`
10858 CPPFLAGS="$CPPFLAGS $LCMS_CFLAGS"
10859 if test -n "$LCMS_LIBS"; then :
10861 elif test -n "$PKG_CONFIG"; then :
10862 LCMS_LIBS=`$PKG_CONFIG --libs lcms 2>/dev/null`
10865 LCMS_LIBS=${LCMS_LIBS:-"-llcms"}
10866 for ac_header in lcms.h lcms/lcms.h
10867 do :
10868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10869 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10870 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10871 cat >>confdefs.h <<_ACEOF
10872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10873 _ACEOF
10877 done
10879 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10880 then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10882 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10883 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 ac_check_lib_save_LIBS=$LIBS
10887 LIBS="-llcms $LIBS"
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10891 /* Override any GCC internal prototype to avoid an error.
10892 Use char because int might match the return type of a GCC
10893 builtin and then its argument prototype would still apply. */
10894 #ifdef __cplusplus
10895 extern "C"
10896 #endif
10897 char cmsOpenProfileFromFile ();
10899 main ()
10901 return cmsOpenProfileFromFile ();
10903 return 0;
10905 _ACEOF
10906 if ac_fn_c_try_link "$LINENO"; then :
10907 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10908 else
10909 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10911 rm -f core conftest.err conftest.$ac_objext \
10912 conftest$ac_exeext conftest.$ac_ext
10913 LIBS=$ac_check_lib_save_LIBS
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10916 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10917 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10919 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10921 else
10922 LCMS_LIBS=""
10925 else
10926 LCMS_CFLAGS=""
10927 LCMS_LIBS=""
10929 CPPFLAGS="$ac_save_CPPFLAGS"
10931 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10932 case "x$with_cms" in
10933 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10934 xno) ;;
10935 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10936 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10937 esac
10940 if test "x$with_freetype" != "xno"
10941 then
10942 ac_save_CPPFLAGS="$CPPFLAGS"
10943 if test -n "$FREETYPE_CFLAGS"; then :
10945 elif test -n "$PKG_CONFIG"; then :
10946 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
10948 FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
10949 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
10950 if test -n "$FREETYPE_LIBS"; then :
10952 elif test -n "$PKG_CONFIG"; then :
10953 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
10955 FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
10956 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10958 $as_echo_n "checking for -lfreetype... " >&6; }
10959 if ${ac_cv_lib_soname_freetype+:} false; then :
10960 $as_echo_n "(cached) " >&6
10961 else
10962 ac_check_soname_save_LIBS=$LIBS
10963 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h. */
10967 /* Override any GCC internal prototype to avoid an error.
10968 Use char because int might match the return type of a GCC
10969 builtin and then its argument prototype would still apply. */
10970 #ifdef __cplusplus
10971 extern "C"
10972 #endif
10973 char FT_Init_FreeType ();
10975 main ()
10977 return FT_Init_FreeType ();
10979 return 0;
10981 _ACEOF
10982 if ac_fn_c_try_link "$LINENO"; then :
10983 case "$LIBEXT" in
10984 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10985 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'` ;;
10986 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10987 if test "x$ac_cv_lib_soname_freetype" = x; then :
10988 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10989 fi ;;
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_freetype" = "x"; then :
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10998 $as_echo "not found" >&6; }
10999 ft_lib=no
11000 else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
11002 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
11004 cat >>confdefs.h <<_ACEOF
11005 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11006 _ACEOF
11008 ft_lib=yes
11010 if test "$ft_lib" = "yes"
11011 then
11012 for ac_header in ft2build.h \
11013 freetype/freetype.h \
11014 freetype/ftglyph.h \
11015 freetype/fttypes.h \
11016 freetype/tttables.h \
11017 freetype/ftsnames.h \
11018 freetype/ttnameid.h \
11019 freetype/ftoutln.h \
11020 freetype/ftwinfnt.h \
11021 freetype/ftmodapi.h \
11022 freetype/ftlcdfil.h
11023 do :
11024 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11025 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
11026 # include <ft2build.h>
11027 #endif
11029 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11030 cat >>confdefs.h <<_ACEOF
11031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11032 _ACEOF
11036 done
11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11040 #include <ft2build.h>
11041 #include <freetype/fttrigon.h>
11042 _ACEOF
11043 if ac_fn_c_try_cpp "$LINENO"; then :
11045 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
11047 wine_cv_fttrigon=yes
11048 else
11049 wine_cv_fttrigon=no
11051 rm -f conftest.err conftest.i conftest.$ac_ext
11052 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
11054 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
11056 cat >>confdefs.h <<_ACEOF
11057 #define HAVE_FT_TRUETYPEENGINETYPE 1
11058 _ACEOF
11063 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
11064 then
11066 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11068 else
11069 FREETYPE_LIBS=""
11071 else
11072 FREETYPE_LIBS=""
11074 CPPFLAGS="$ac_save_CPPFLAGS"
11076 if test "x$ac_cv_header_freetype_freetype_h" != xyes -o "x$wine_cv_fttrigon" != xyes; then :
11077 case "x$with_freetype" in
11078 xno) ;;
11079 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
11080 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
11081 esac
11083 test "x$ac_cv_header_freetype_freetype_h" = xyes -a "x$wine_cv_fttrigon" = xyes || enable_fonts=${enable_fonts:-no}
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
11086 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
11087 if ${ac_cv_c_ppdev+:} false; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11092 #ifdef HAVE_SYS_IOCTL_H
11093 # include <sys/ioctl.h>
11094 #endif
11095 #include <linux/ppdev.h>
11097 main ()
11099 ioctl (1,PPCLAIM,0)
11101 return 0;
11103 _ACEOF
11104 if ac_fn_c_try_compile "$LINENO"; then :
11105 ac_cv_c_ppdev="yes"
11106 else
11107 ac_cv_c_ppdev="no"
11109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11112 $as_echo "$ac_cv_c_ppdev" >&6; }
11113 if test "$ac_cv_c_ppdev" = "yes"
11114 then
11116 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11120 ac_wine_check_funcs_save_LIBS="$LIBS"
11121 LIBS="$LIBS $LIBPTHREAD"
11122 for ac_func in \
11123 pthread_attr_get_np \
11124 pthread_getattr_np \
11125 pthread_getthreadid_np \
11126 pthread_get_stackaddr_np \
11127 pthread_get_stacksize_np
11128 do :
11129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11130 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11131 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11132 cat >>confdefs.h <<_ACEOF
11133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11134 _ACEOF
11137 done
11139 LIBS="$ac_wine_check_funcs_save_LIBS"
11141 if test "$ac_cv_header_zlib_h" = "yes"
11142 then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11144 $as_echo_n "checking for inflate in -lz... " >&6; }
11145 if ${ac_cv_lib_z_inflate+:} false; then :
11146 $as_echo_n "(cached) " >&6
11147 else
11148 ac_check_lib_save_LIBS=$LIBS
11149 LIBS="-lz $LIBS"
11150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h. */
11153 /* Override any GCC internal prototype to avoid an error.
11154 Use char because int might match the return type of a GCC
11155 builtin and then its argument prototype would still apply. */
11156 #ifdef __cplusplus
11157 extern "C"
11158 #endif
11159 char inflate ();
11161 main ()
11163 return inflate ();
11165 return 0;
11167 _ACEOF
11168 if ac_fn_c_try_link "$LINENO"; then :
11169 ac_cv_lib_z_inflate=yes
11170 else
11171 ac_cv_lib_z_inflate=no
11173 rm -f core conftest.err conftest.$ac_objext \
11174 conftest$ac_exeext conftest.$ac_ext
11175 LIBS=$ac_check_lib_save_LIBS
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11178 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11179 if test "x$ac_cv_lib_z_inflate" = xyes; then :
11181 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11183 ZLIB="-lz"
11188 if test "x$ZLIB" = "x"; then :
11189 case "x$with_zlib" in
11190 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
11191 xno) ;;
11192 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
11193 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
11194 esac
11197 if test "x$enable_tools" != xno
11198 then
11199 if test "$ac_cv_header_gettext_po_h" = "yes"
11200 then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
11202 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
11203 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
11204 $as_echo_n "(cached) " >&6
11205 else
11206 ac_check_lib_save_LIBS=$LIBS
11207 LIBS="-lgettextpo $LIBS"
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11211 /* Override any GCC internal prototype to avoid an error.
11212 Use char because int might match the return type of a GCC
11213 builtin and then its argument prototype would still apply. */
11214 #ifdef __cplusplus
11215 extern "C"
11216 #endif
11217 char po_message_msgctxt ();
11219 main ()
11221 return po_message_msgctxt ();
11223 return 0;
11225 _ACEOF
11226 if ac_fn_c_try_link "$LINENO"; then :
11227 ac_cv_lib_gettextpo_po_message_msgctxt=yes
11228 else
11229 ac_cv_lib_gettextpo_po_message_msgctxt=no
11231 rm -f core conftest.err conftest.$ac_objext \
11232 conftest$ac_exeext conftest.$ac_ext
11233 LIBS=$ac_check_lib_save_LIBS
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
11236 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
11237 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
11239 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
11241 LIBGETTEXTPO="-lgettextpo"
11246 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
11247 case "x$with_gettextpo" in
11248 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
11249 xno) ;;
11250 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
11251 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
11252 esac
11256 if test "x$with_gstreamer" != "xno"
11257 then
11258 ac_save_CPPFLAGS="$CPPFLAGS"
11259 if test -n "$GSTREAMER_CFLAGS"; then :
11261 elif test -n "$PKG_CONFIG"; then :
11262 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
11265 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
11266 if test -n "$GSTREAMER_LIBS"; then :
11268 elif test -n "$PKG_CONFIG"; then :
11269 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
11273 ac_gst_incl=""
11274 for i in $GSTREAMER_CFLAGS
11276 case "$i" in
11277 -I*) ac_gst_incl="$ac_gst_incl $i";;
11278 esac
11279 done
11280 GSTREAMER_CFLAGS=$ac_gst_incl
11281 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
11282 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
11283 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
11284 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
11285 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
11287 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h. */
11290 #include <gst/app/gstappsink.h>
11292 main ()
11294 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
11296 return 0;
11298 _ACEOF
11299 if ac_fn_c_try_compile "$LINENO"; then :
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11301 $as_echo "yes" >&6; }
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
11303 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
11304 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
11305 $as_echo_n "(cached) " >&6
11306 else
11307 ac_check_lib_save_LIBS=$LIBS
11308 LIBS="-lgstreamer-0.10 $LIBS"
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11312 /* Override any GCC internal prototype to avoid an error.
11313 Use char because int might match the return type of a GCC
11314 builtin and then its argument prototype would still apply. */
11315 #ifdef __cplusplus
11316 extern "C"
11317 #endif
11318 char gst_pad_get_caps_reffed ();
11320 main ()
11322 return gst_pad_get_caps_reffed ();
11324 return 0;
11326 _ACEOF
11327 if ac_fn_c_try_link "$LINENO"; then :
11328 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
11329 else
11330 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
11332 rm -f core conftest.err conftest.$ac_objext \
11333 conftest$ac_exeext conftest.$ac_ext
11334 LIBS=$ac_check_lib_save_LIBS
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
11337 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
11338 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
11340 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
11341 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
11342 $as_echo_n "(cached) " >&6
11343 else
11344 ac_check_lib_save_LIBS=$LIBS
11345 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
11346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h. */
11349 /* Override any GCC internal prototype to avoid an error.
11350 Use char because int might match the return type of a GCC
11351 builtin and then its argument prototype would still apply. */
11352 #ifdef __cplusplus
11353 extern "C"
11354 #endif
11355 char gst_app_buffer_new ();
11357 main ()
11359 return gst_app_buffer_new ();
11361 return 0;
11363 _ACEOF
11364 if ac_fn_c_try_link "$LINENO"; then :
11365 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
11366 else
11367 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
11369 rm -f core conftest.err conftest.$ac_objext \
11370 conftest$ac_exeext conftest.$ac_ext
11371 LIBS=$ac_check_lib_save_LIBS
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
11374 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
11375 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
11381 else
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383 $as_echo "no" >&6; }
11385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11389 else
11390 GSTREAMER_CFLAGS=""
11394 CPPFLAGS="$ac_save_CPPFLAGS"
11396 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
11397 case "x$with_gstreamer" in
11398 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
11399 xno) ;;
11400 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
11401 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
11402 esac
11404 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
11406 ALSALIBS=""
11408 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11409 then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
11411 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
11412 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 ac_check_lib_save_LIBS=$LIBS
11416 LIBS="-lasound $LIBS"
11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11420 /* Override any GCC internal prototype to avoid an error.
11421 Use char because int might match the return type of a GCC
11422 builtin and then its argument prototype would still apply. */
11423 #ifdef __cplusplus
11424 extern "C"
11425 #endif
11426 char snd_pcm_hw_params_get_access_mask ();
11428 main ()
11430 return snd_pcm_hw_params_get_access_mask ();
11432 return 0;
11434 _ACEOF
11435 if ac_fn_c_try_link "$LINENO"; then :
11436 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
11437 else
11438 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
11440 rm -f core conftest.err conftest.$ac_objext \
11441 conftest$ac_exeext conftest.$ac_ext
11442 LIBS=$ac_check_lib_save_LIBS
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11445 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11446 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11449 #ifdef HAVE_ALSA_ASOUNDLIB_H
11450 #include <alsa/asoundlib.h>
11451 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11452 #include <sys/asoundlib.h>
11453 #endif
11455 main ()
11457 snd_pcm_hw_params_get_access_mask(NULL, NULL)
11459 return 0;
11461 _ACEOF
11462 if ac_fn_c_try_compile "$LINENO"; then :
11463 ALSALIBS="-lasound"
11465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 if test "x$with_oss" != xno
11471 then
11472 ac_save_CPPFLAGS="$CPPFLAGS"
11473 if test -f /etc/oss.conf
11474 then
11475 . /etc/oss.conf
11477 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11478 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11479 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11480 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11481 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11483 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11485 cat >>confdefs.h <<_ACEOF
11486 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11487 _ACEOF
11489 OSS4INCL="$ac_oss_incl"
11496 CPPFLAGS="$ac_save_CPPFLAGS"
11497 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11498 then
11499 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11504 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11505 then
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11507 $as_echo_n "checking for -lcapi20... " >&6; }
11508 if ${ac_cv_lib_soname_capi20+:} false; then :
11509 $as_echo_n "(cached) " >&6
11510 else
11511 ac_check_soname_save_LIBS=$LIBS
11512 LIBS="-lcapi20 $LIBS"
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11516 /* Override any GCC internal prototype to avoid an error.
11517 Use char because int might match the return type of a GCC
11518 builtin and then its argument prototype would still apply. */
11519 #ifdef __cplusplus
11520 extern "C"
11521 #endif
11522 char capi20_register ();
11524 main ()
11526 return capi20_register ();
11528 return 0;
11530 _ACEOF
11531 if ac_fn_c_try_link "$LINENO"; then :
11532 case "$LIBEXT" in
11533 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11534 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'` ;;
11535 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11536 if test "x$ac_cv_lib_soname_capi20" = x; then :
11537 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11538 fi ;;
11539 esac
11541 rm -f core conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
11543 LIBS=$ac_check_soname_save_LIBS
11545 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11547 $as_echo "not found" >&6; }
11549 else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11551 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11553 cat >>confdefs.h <<_ACEOF
11554 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11555 _ACEOF
11560 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11561 case "x$with_capi" in
11562 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11563 xno) ;;
11564 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11565 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11566 esac
11569 CUPSINCL=""
11571 if test "x$with_cups" != "xno"
11572 then
11573 ac_save_CPPFLAGS="$CPPFLAGS"
11574 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11575 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11576 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11577 for ac_header in cups/cups.h
11578 do :
11579 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11580 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11581 cat >>confdefs.h <<_ACEOF
11582 #define HAVE_CUPS_CUPS_H 1
11583 _ACEOF
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11585 $as_echo_n "checking for -lcups... " >&6; }
11586 if ${ac_cv_lib_soname_cups+:} false; then :
11587 $as_echo_n "(cached) " >&6
11588 else
11589 ac_check_soname_save_LIBS=$LIBS
11590 LIBS="-lcups $ac_cups_libs $LIBS"
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11594 /* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11597 #ifdef __cplusplus
11598 extern "C"
11599 #endif
11600 char cupsGetDefault ();
11602 main ()
11604 return cupsGetDefault ();
11606 return 0;
11608 _ACEOF
11609 if ac_fn_c_try_link "$LINENO"; then :
11610 case "$LIBEXT" in
11611 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11612 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'` ;;
11613 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11614 if test "x$ac_cv_lib_soname_cups" = x; then :
11615 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11616 fi ;;
11617 esac
11619 rm -f core conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11621 LIBS=$ac_check_soname_save_LIBS
11623 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11625 $as_echo "not found" >&6; }
11627 else
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11629 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11631 cat >>confdefs.h <<_ACEOF
11632 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11633 _ACEOF
11635 CUPSINCL="$ac_cups_cflags"
11639 done
11641 CPPFLAGS="$ac_save_CPPFLAGS"
11643 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11644 case "x$with_cups" in
11645 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11646 xno) ;;
11647 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11648 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11649 esac
11652 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11653 then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11655 $as_echo_n "checking for -lfontconfig... " >&6; }
11656 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 ac_check_soname_save_LIBS=$LIBS
11660 LIBS="-lfontconfig $LIBS"
11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11664 /* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 char FcInit ();
11672 main ()
11674 return FcInit ();
11676 return 0;
11678 _ACEOF
11679 if ac_fn_c_try_link "$LINENO"; then :
11680 case "$LIBEXT" in
11681 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11682 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'` ;;
11683 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11684 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11685 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11686 fi ;;
11687 esac
11689 rm -f core conftest.err conftest.$ac_objext \
11690 conftest$ac_exeext conftest.$ac_ext
11691 LIBS=$ac_check_soname_save_LIBS
11693 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11695 $as_echo "not found" >&6; }
11697 else
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11699 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11701 cat >>confdefs.h <<_ACEOF
11702 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11703 _ACEOF
11707 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11708 then
11709 ac_save_CPPFLAGS="$CPPFLAGS"
11710 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11711 $as_unset ac_cv_header_fontconfig_fontconfig_h
11712 for ac_header in fontconfig/fontconfig.h
11713 do :
11714 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11715 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11716 cat >>confdefs.h <<_ACEOF
11717 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11718 _ACEOF
11722 done
11724 CPPFLAGS="$ac_save_CPPFLAGS"
11725 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11726 then
11727 FONTCONFIGINCL="$X_CFLAGS"
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11730 $as_echo_n "checking for -lfontconfig... " >&6; }
11731 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11732 $as_echo_n "(cached) " >&6
11733 else
11734 ac_check_soname_save_LIBS=$LIBS
11735 LIBS="-lfontconfig $X_LIBS $LIBS"
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h. */
11739 /* Override any GCC internal prototype to avoid an error.
11740 Use char because int might match the return type of a GCC
11741 builtin and then its argument prototype would still apply. */
11742 #ifdef __cplusplus
11743 extern "C"
11744 #endif
11745 char FcInit ();
11747 main ()
11749 return FcInit ();
11751 return 0;
11753 _ACEOF
11754 if ac_fn_c_try_link "$LINENO"; then :
11755 case "$LIBEXT" in
11756 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11757 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'` ;;
11758 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11759 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11760 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11761 fi ;;
11762 esac
11764 rm -f core conftest.err conftest.$ac_objext \
11765 conftest$ac_exeext conftest.$ac_ext
11766 LIBS=$ac_check_soname_save_LIBS
11768 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11770 $as_echo "not found" >&6; }
11772 else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11774 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11776 cat >>confdefs.h <<_ACEOF
11777 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11778 _ACEOF
11784 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11785 case "x$with_fontconfig" in
11786 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11787 xno) ;;
11788 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11789 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11790 esac
11793 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11794 then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11796 $as_echo_n "checking for -lgsm... " >&6; }
11797 if ${ac_cv_lib_soname_gsm+:} false; then :
11798 $as_echo_n "(cached) " >&6
11799 else
11800 ac_check_soname_save_LIBS=$LIBS
11801 LIBS="-lgsm $LIBS"
11802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h. */
11805 /* Override any GCC internal prototype to avoid an error.
11806 Use char because int might match the return type of a GCC
11807 builtin and then its argument prototype would still apply. */
11808 #ifdef __cplusplus
11809 extern "C"
11810 #endif
11811 char gsm_create ();
11813 main ()
11815 return gsm_create ();
11817 return 0;
11819 _ACEOF
11820 if ac_fn_c_try_link "$LINENO"; then :
11821 case "$LIBEXT" in
11822 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11823 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'` ;;
11824 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11825 if test "x$ac_cv_lib_soname_gsm" = x; then :
11826 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11827 fi ;;
11828 esac
11830 rm -f core conftest.err conftest.$ac_objext \
11831 conftest$ac_exeext conftest.$ac_ext
11832 LIBS=$ac_check_soname_save_LIBS
11834 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11836 $as_echo "not found" >&6; }
11838 else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11840 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11842 cat >>confdefs.h <<_ACEOF
11843 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11844 _ACEOF
11849 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11850 case "x$with_gsm" in
11851 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11852 xno) ;;
11853 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11854 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11855 esac
11858 if test "$ac_cv_header_jpeglib_h" = "yes"
11859 then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11861 $as_echo_n "checking for -ljpeg... " >&6; }
11862 if ${ac_cv_lib_soname_jpeg+:} false; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 ac_check_soname_save_LIBS=$LIBS
11866 LIBS="-ljpeg $LIBS"
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11870 /* Override any GCC internal prototype to avoid an error.
11871 Use char because int might match the return type of a GCC
11872 builtin and then its argument prototype would still apply. */
11873 #ifdef __cplusplus
11874 extern "C"
11875 #endif
11876 char jpeg_start_decompress ();
11878 main ()
11880 return jpeg_start_decompress ();
11882 return 0;
11884 _ACEOF
11885 if ac_fn_c_try_link "$LINENO"; then :
11886 case "$LIBEXT" in
11887 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11888 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'` ;;
11889 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11890 if test "x$ac_cv_lib_soname_jpeg" = x; then :
11891 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11892 fi ;;
11893 esac
11895 rm -f core conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11897 LIBS=$ac_check_soname_save_LIBS
11899 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11901 $as_echo "not found" >&6; }
11903 else
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11905 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11907 cat >>confdefs.h <<_ACEOF
11908 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11909 _ACEOF
11914 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11915 case "x$with_jpeg" in
11916 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11917 xno) ;;
11918 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11919 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11920 esac
11923 if test "$ac_cv_header_png_h" = "yes"
11924 then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11926 $as_echo_n "checking for -lpng... " >&6; }
11927 if ${ac_cv_lib_soname_png+:} false; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 ac_check_soname_save_LIBS=$LIBS
11931 LIBS="-lpng -lm -lz $LIBS"
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11935 /* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
11938 #ifdef __cplusplus
11939 extern "C"
11940 #endif
11941 char png_create_read_struct ();
11943 main ()
11945 return png_create_read_struct ();
11947 return 0;
11949 _ACEOF
11950 if ac_fn_c_try_link "$LINENO"; then :
11951 case "$LIBEXT" in
11952 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11953 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'` ;;
11954 *) ac_cv_lib_soname_png=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\\[\\(libpng[0-9]*\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11955 if test "x$ac_cv_lib_soname_png" = x; then :
11956 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11957 fi ;;
11958 esac
11960 rm -f core conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11962 LIBS=$ac_check_soname_save_LIBS
11964 if test "x$ac_cv_lib_soname_png" = "x"; then :
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11966 $as_echo "not found" >&6; }
11968 else
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11970 $as_echo "$ac_cv_lib_soname_png" >&6; }
11972 cat >>confdefs.h <<_ACEOF
11973 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11974 _ACEOF
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11979 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11980 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11981 $as_echo_n "(cached) " >&6
11982 else
11983 ac_check_lib_save_LIBS=$LIBS
11984 LIBS="-lpng -lm -lz $LIBS"
11985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h. */
11988 /* Override any GCC internal prototype to avoid an error.
11989 Use char because int might match the return type of a GCC
11990 builtin and then its argument prototype would still apply. */
11991 #ifdef __cplusplus
11992 extern "C"
11993 #endif
11994 char png_set_expand_gray_1_2_4_to_8 ();
11996 main ()
11998 return png_set_expand_gray_1_2_4_to_8 ();
12000 return 0;
12002 _ACEOF
12003 if ac_fn_c_try_link "$LINENO"; then :
12004 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
12005 else
12006 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
12008 rm -f core conftest.err conftest.$ac_objext \
12009 conftest$ac_exeext conftest.$ac_ext
12010 LIBS=$ac_check_lib_save_LIBS
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
12013 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
12014 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
12016 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12021 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
12022 then
12023 ac_save_CPPFLAGS="$CPPFLAGS"
12024 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12025 $as_unset ac_cv_header_png_h
12026 for ac_header in png.h
12027 do :
12028 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12029 if test "x$ac_cv_header_png_h" = xyes; then :
12030 cat >>confdefs.h <<_ACEOF
12031 #define HAVE_PNG_H 1
12032 _ACEOF
12036 done
12038 CPPFLAGS="$ac_save_CPPFLAGS"
12039 if test "$ac_cv_header_png_h" = "yes"
12040 then
12041 PNGINCL="$X_CFLAGS"
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
12044 $as_echo_n "checking for -lpng... " >&6; }
12045 if ${ac_cv_lib_soname_png+:} false; then :
12046 $as_echo_n "(cached) " >&6
12047 else
12048 ac_check_soname_save_LIBS=$LIBS
12049 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12053 /* Override any GCC internal prototype to avoid an error.
12054 Use char because int might match the return type of a GCC
12055 builtin and then its argument prototype would still apply. */
12056 #ifdef __cplusplus
12057 extern "C"
12058 #endif
12059 char png_create_read_struct ();
12061 main ()
12063 return png_create_read_struct ();
12065 return 0;
12067 _ACEOF
12068 if ac_fn_c_try_link "$LINENO"; then :
12069 case "$LIBEXT" in
12070 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12071 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'` ;;
12072 *) ac_cv_lib_soname_png=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\\[\\(libpng[0-9]*\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12073 if test "x$ac_cv_lib_soname_png" = x; then :
12074 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12075 fi ;;
12076 esac
12078 rm -f core conftest.err conftest.$ac_objext \
12079 conftest$ac_exeext conftest.$ac_ext
12080 LIBS=$ac_check_soname_save_LIBS
12082 if test "x$ac_cv_lib_soname_png" = "x"; then :
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12084 $as_echo "not found" >&6; }
12086 else
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
12088 $as_echo "$ac_cv_lib_soname_png" >&6; }
12090 cat >>confdefs.h <<_ACEOF
12091 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
12092 _ACEOF
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
12097 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
12098 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 ac_check_lib_save_LIBS=$LIBS
12102 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12109 #ifdef __cplusplus
12110 extern "C"
12111 #endif
12112 char png_set_expand_gray_1_2_4_to_8 ();
12114 main ()
12116 return png_set_expand_gray_1_2_4_to_8 ();
12118 return 0;
12120 _ACEOF
12121 if ac_fn_c_try_link "$LINENO"; then :
12122 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
12123 else
12124 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
12126 rm -f core conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12128 LIBS=$ac_check_lib_save_LIBS
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
12131 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
12132 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
12133 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12139 if test "x$ac_cv_lib_soname_png" = "x"; then :
12140 case "x$with_png" in
12141 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12142 xno) ;;
12143 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12144 This is an error since --with-png was requested." "$LINENO" 5 ;;
12145 esac
12148 if test "$ac_cv_header_tiffio_h" = "yes"
12149 then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12151 $as_echo_n "checking for -ltiff... " >&6; }
12152 if ${ac_cv_lib_soname_tiff+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 ac_check_soname_save_LIBS=$LIBS
12156 LIBS="-ltiff $LIBS"
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12160 /* Override any GCC internal prototype to avoid an error.
12161 Use char because int might match the return type of a GCC
12162 builtin and then its argument prototype would still apply. */
12163 #ifdef __cplusplus
12164 extern "C"
12165 #endif
12166 char TIFFClientOpen ();
12168 main ()
12170 return TIFFClientOpen ();
12172 return 0;
12174 _ACEOF
12175 if ac_fn_c_try_link "$LINENO"; then :
12176 case "$LIBEXT" in
12177 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12178 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'` ;;
12179 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12180 if test "x$ac_cv_lib_soname_tiff" = x; then :
12181 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12182 fi ;;
12183 esac
12185 rm -f core conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12187 LIBS=$ac_check_soname_save_LIBS
12189 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12191 $as_echo "not found" >&6; }
12193 else
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
12195 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
12197 cat >>confdefs.h <<_ACEOF
12198 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
12199 _ACEOF
12204 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12205 case "x$with_tiff" in
12206 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
12207 xno) ;;
12208 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
12209 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
12210 esac
12213 if test "$ac_cv_header_mpg123_h" = "yes"
12214 then
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
12216 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
12217 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
12218 $as_echo_n "(cached) " >&6
12219 else
12220 ac_check_lib_save_LIBS=$LIBS
12221 LIBS="-lmpg123 $LIBS"
12222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h. */
12225 /* Override any GCC internal prototype to avoid an error.
12226 Use char because int might match the return type of a GCC
12227 builtin and then its argument prototype would still apply. */
12228 #ifdef __cplusplus
12229 extern "C"
12230 #endif
12231 char mpg123_feed ();
12233 main ()
12235 return mpg123_feed ();
12237 return 0;
12239 _ACEOF
12240 if ac_fn_c_try_link "$LINENO"; then :
12241 ac_cv_lib_mpg123_mpg123_feed=yes
12242 else
12243 ac_cv_lib_mpg123_mpg123_feed=no
12245 rm -f core conftest.err conftest.$ac_objext \
12246 conftest$ac_exeext conftest.$ac_ext
12247 LIBS=$ac_check_lib_save_LIBS
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
12250 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
12251 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
12252 LIBMPG123="-lmpg123"
12257 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
12258 case "x$with_mpg123" in
12259 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
12260 xno) ;;
12261 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
12262 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
12263 esac
12265 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}
12267 if test "$ac_cv_header_AL_al_h" = "yes"
12268 then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
12270 $as_echo_n "checking for -lopenal... " >&6; }
12271 if ${ac_cv_lib_soname_openal+:} false; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 ac_check_soname_save_LIBS=$LIBS
12275 LIBS="-lopenal $LIBS"
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12279 /* Override any GCC internal prototype to avoid an error.
12280 Use char because int might match the return type of a GCC
12281 builtin and then its argument prototype would still apply. */
12282 #ifdef __cplusplus
12283 extern "C"
12284 #endif
12285 char alGetSource3i ();
12287 main ()
12289 return alGetSource3i ();
12291 return 0;
12293 _ACEOF
12294 if ac_fn_c_try_link "$LINENO"; then :
12295 case "$LIBEXT" in
12296 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12297 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'` ;;
12298 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12299 if test "x$ac_cv_lib_soname_openal" = x; then :
12300 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12301 fi ;;
12302 esac
12304 rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_soname_save_LIBS
12308 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12310 $as_echo "not found" >&6; }
12312 else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12314 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12316 cat >>confdefs.h <<_ACEOF
12317 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12318 _ACEOF
12320 LIBOPENAL="-lopenal"
12322 ac_cv_lib_openal=yes
12324 cat >>confdefs.h <<_ACEOF
12325 #define HAVE_OPENAL 1
12326 _ACEOF
12330 if test "x$ac_cv_lib_openal" != xyes; then :
12331 case "x$with_openal" in
12332 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12333 xno) ;;
12334 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12335 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12336 esac
12338 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12340 if test "$ac_cv_header_kstat_h" = "yes"
12341 then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12343 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12344 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12345 $as_echo_n "(cached) " >&6
12346 else
12347 ac_check_lib_save_LIBS=$LIBS
12348 LIBS="-lkstat $LIBS"
12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350 /* end confdefs.h. */
12352 /* Override any GCC internal prototype to avoid an error.
12353 Use char because int might match the return type of a GCC
12354 builtin and then its argument prototype would still apply. */
12355 #ifdef __cplusplus
12356 extern "C"
12357 #endif
12358 char kstat_open ();
12360 main ()
12362 return kstat_open ();
12364 return 0;
12366 _ACEOF
12367 if ac_fn_c_try_link "$LINENO"; then :
12368 ac_cv_lib_kstat_kstat_open=yes
12369 else
12370 ac_cv_lib_kstat_kstat_open=no
12372 rm -f core conftest.err conftest.$ac_objext \
12373 conftest$ac_exeext conftest.$ac_ext
12374 LIBS=$ac_check_lib_save_LIBS
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12377 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12378 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12380 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12382 LIBKSTAT="-lkstat"
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12389 $as_echo_n "checking for -lodbc... " >&6; }
12390 if ${ac_cv_lib_soname_odbc+:} false; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 ac_check_soname_save_LIBS=$LIBS
12394 LIBS="-lodbc $LIBS"
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12398 /* Override any GCC internal prototype to avoid an error.
12399 Use char because int might match the return type of a GCC
12400 builtin and then its argument prototype would still apply. */
12401 #ifdef __cplusplus
12402 extern "C"
12403 #endif
12404 char SQLConnect ();
12406 main ()
12408 return SQLConnect ();
12410 return 0;
12412 _ACEOF
12413 if ac_fn_c_try_link "$LINENO"; then :
12414 case "$LIBEXT" in
12415 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12416 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'` ;;
12417 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12418 if test "x$ac_cv_lib_soname_odbc" = x; then :
12419 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12420 fi ;;
12421 esac
12423 rm -f core conftest.err conftest.$ac_objext \
12424 conftest$ac_exeext conftest.$ac_ext
12425 LIBS=$ac_check_soname_save_LIBS
12427 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12429 $as_echo "not found" >&6; }
12430 cat >>confdefs.h <<_ACEOF
12431 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12432 _ACEOF
12434 else
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12436 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12438 cat >>confdefs.h <<_ACEOF
12439 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12440 _ACEOF
12445 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12446 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12447 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12448 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12450 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
12451 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12452 "x$with_alsa$with_coreaudio$with_oss" != xnonono
12453 then
12454 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12458 EXTRACFLAGS=""
12460 if test "x${GCC}" = "xyes"
12461 then
12462 EXTRACFLAGS="-Wall -pipe"
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12465 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12466 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 if test "$cross_compiling" = yes; then :
12470 ac_cv_c_gcc_strength_bug="yes"
12471 else
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12474 int L[4] = {0,1,2,3};
12476 main ()
12478 static int Array[3];
12479 unsigned int B = 3;
12480 int i;
12481 for(i=0; i<B; i++) Array[i] = i - 3;
12482 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12483 L[i] = 4;
12484 return (Array[1] != -2 || L[2] != 3)
12486 return 0;
12488 _ACEOF
12489 if ac_fn_c_try_run "$LINENO"; then :
12490 ac_cv_c_gcc_strength_bug="no"
12491 else
12492 ac_cv_c_gcc_strength_bug="yes"
12494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12495 conftest.$ac_objext conftest.beam conftest.$ac_ext
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12500 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12501 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12502 then
12503 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12507 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12508 if ${ac_cv_cflags__fno_builtin+:} false; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511 ac_wine_try_cflags_saved=$CFLAGS
12512 CFLAGS="$CFLAGS -fno-builtin"
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515 int main(int argc, char **argv) { return 0; }
12516 _ACEOF
12517 if ac_fn_c_try_link "$LINENO"; then :
12518 ac_cv_cflags__fno_builtin=yes
12519 else
12520 ac_cv_cflags__fno_builtin=no
12522 rm -f core conftest.err conftest.$ac_objext \
12523 conftest$ac_exeext conftest.$ac_ext
12524 CFLAGS=$ac_wine_try_cflags_saved
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12527 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12528 if test $ac_cv_cflags__fno_builtin = yes; then :
12529 BUILTINFLAG="-fno-builtin"
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12533 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12534 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12535 $as_echo_n "(cached) " >&6
12536 else
12537 ac_wine_try_cflags_saved=$CFLAGS
12538 CFLAGS="$CFLAGS -fno-strict-aliasing"
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12541 int main(int argc, char **argv) { return 0; }
12542 _ACEOF
12543 if ac_fn_c_try_link "$LINENO"; then :
12544 ac_cv_cflags__fno_strict_aliasing=yes
12545 else
12546 ac_cv_cflags__fno_strict_aliasing=no
12548 rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12550 CFLAGS=$ac_wine_try_cflags_saved
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12553 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12554 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12555 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12558 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12559 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 ac_wine_try_cflags_saved=$CFLAGS
12563 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12566 int main(int argc, char **argv) { return 0; }
12567 _ACEOF
12568 if ac_fn_c_try_link "$LINENO"; then :
12569 ac_cv_cflags__Wdeclaration_after_statement=yes
12570 else
12571 ac_cv_cflags__Wdeclaration_after_statement=no
12573 rm -f core conftest.err conftest.$ac_objext \
12574 conftest$ac_exeext conftest.$ac_ext
12575 CFLAGS=$ac_wine_try_cflags_saved
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12578 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12579 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12580 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12583 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12584 if ${ac_cv_cflags__Wempty_body+:} false; then :
12585 $as_echo_n "(cached) " >&6
12586 else
12587 ac_wine_try_cflags_saved=$CFLAGS
12588 CFLAGS="$CFLAGS -Wempty-body"
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12591 int main(int argc, char **argv) { return 0; }
12592 _ACEOF
12593 if ac_fn_c_try_link "$LINENO"; then :
12594 ac_cv_cflags__Wempty_body=yes
12595 else
12596 ac_cv_cflags__Wempty_body=no
12598 rm -f core conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12600 CFLAGS=$ac_wine_try_cflags_saved
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12603 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12604 if test $ac_cv_cflags__Wempty_body = yes; then :
12605 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12608 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12609 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12610 $as_echo_n "(cached) " >&6
12611 else
12612 ac_wine_try_cflags_saved=$CFLAGS
12613 CFLAGS="$CFLAGS -Wignored-qualifiers"
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12616 int main(int argc, char **argv) { return 0; }
12617 _ACEOF
12618 if ac_fn_c_try_link "$LINENO"; then :
12619 ac_cv_cflags__Wignored_qualifiers=yes
12620 else
12621 ac_cv_cflags__Wignored_qualifiers=no
12623 rm -f core conftest.err conftest.$ac_objext \
12624 conftest$ac_exeext conftest.$ac_ext
12625 CFLAGS=$ac_wine_try_cflags_saved
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12628 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12629 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12630 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12633 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12634 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12637 ac_wine_try_cflags_saved=$CFLAGS
12638 CFLAGS="$CFLAGS -Wstrict-prototypes"
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12641 int main(int argc, char **argv) { return 0; }
12642 _ACEOF
12643 if ac_fn_c_try_link "$LINENO"; then :
12644 ac_cv_cflags__Wstrict_prototypes=yes
12645 else
12646 ac_cv_cflags__Wstrict_prototypes=no
12648 rm -f core conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12650 CFLAGS=$ac_wine_try_cflags_saved
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12653 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12654 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12655 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12658 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12659 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12660 $as_echo_n "(cached) " >&6
12661 else
12662 ac_wine_try_cflags_saved=$CFLAGS
12663 CFLAGS="$CFLAGS -Wtype-limits"
12664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h. */
12666 int main(int argc, char **argv) { return 0; }
12667 _ACEOF
12668 if ac_fn_c_try_link "$LINENO"; then :
12669 ac_cv_cflags__Wtype_limits=yes
12670 else
12671 ac_cv_cflags__Wtype_limits=no
12673 rm -f core conftest.err conftest.$ac_objext \
12674 conftest$ac_exeext conftest.$ac_ext
12675 CFLAGS=$ac_wine_try_cflags_saved
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12678 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12679 if test $ac_cv_cflags__Wtype_limits = yes; then :
12680 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12683 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12684 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12685 $as_echo_n "(cached) " >&6
12686 else
12687 ac_wine_try_cflags_saved=$CFLAGS
12688 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12691 int main(int argc, char **argv) { return 0; }
12692 _ACEOF
12693 if ac_fn_c_try_link "$LINENO"; then :
12694 ac_cv_cflags__Wunused_but_set_parameter=yes
12695 else
12696 ac_cv_cflags__Wunused_but_set_parameter=no
12698 rm -f core conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12700 CFLAGS=$ac_wine_try_cflags_saved
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12703 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12704 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12705 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12708 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12709 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12710 $as_echo_n "(cached) " >&6
12711 else
12712 ac_wine_try_cflags_saved=$CFLAGS
12713 CFLAGS="$CFLAGS -Wwrite-strings"
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h. */
12716 int main(int argc, char **argv) { return 0; }
12717 _ACEOF
12718 if ac_fn_c_try_link "$LINENO"; then :
12719 ac_cv_cflags__Wwrite_strings=yes
12720 else
12721 ac_cv_cflags__Wwrite_strings=no
12723 rm -f core conftest.err conftest.$ac_objext \
12724 conftest$ac_exeext conftest.$ac_ext
12725 CFLAGS=$ac_wine_try_cflags_saved
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12728 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12729 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12730 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12733 for ac_flag in $CFLAGS; do
12734 case $ac_flag in
12735 -g) case $host_os in
12736 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
12737 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
12738 if ${ac_cv_cflags__gstabsp+:} false; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 ac_wine_try_cflags_saved=$CFLAGS
12742 CFLAGS="$CFLAGS -gstabs+"
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12745 int main(int argc, char **argv) { return 0; }
12746 _ACEOF
12747 if ac_fn_c_try_link "$LINENO"; then :
12748 ac_cv_cflags__gstabsp=yes
12749 else
12750 ac_cv_cflags__gstabsp=no
12752 rm -f core conftest.err conftest.$ac_objext \
12753 conftest$ac_exeext conftest.$ac_ext
12754 CFLAGS=$ac_wine_try_cflags_saved
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
12757 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
12758 if test $ac_cv_cflags__gstabsp = yes; then :
12759 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12760 fi ;;
12761 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
12762 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
12763 if ${ac_cv_cflags__gdwarf_2+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 ac_wine_try_cflags_saved=$CFLAGS
12767 CFLAGS="$CFLAGS -gdwarf-2"
12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12770 int main(int argc, char **argv) { return 0; }
12771 _ACEOF
12772 if ac_fn_c_try_link "$LINENO"; then :
12773 ac_cv_cflags__gdwarf_2=yes
12774 else
12775 ac_cv_cflags__gdwarf_2=no
12777 rm -f core conftest.err conftest.$ac_objext \
12778 conftest$ac_exeext conftest.$ac_ext
12779 CFLAGS=$ac_wine_try_cflags_saved
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
12782 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
12783 if test $ac_cv_cflags__gdwarf_2 = yes; then :
12784 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
12787 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
12788 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 ac_wine_try_cflags_saved=$CFLAGS
12792 CFLAGS="$CFLAGS -gstrict-dwarf"
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12795 int main(int argc, char **argv) { return 0; }
12796 _ACEOF
12797 if ac_fn_c_try_link "$LINENO"; then :
12798 ac_cv_cflags__gstrict_dwarf=yes
12799 else
12800 ac_cv_cflags__gstrict_dwarf=no
12802 rm -f core conftest.err conftest.$ac_objext \
12803 conftest$ac_exeext conftest.$ac_ext
12804 CFLAGS=$ac_wine_try_cflags_saved
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
12807 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
12808 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
12809 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
12810 fi ;;
12811 esac ;;
12812 esac
12813 done
12815 case $host_cpu in
12816 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12817 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12818 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12819 $as_echo_n "(cached) " >&6
12820 else
12821 ac_wine_try_cflags_saved=$CFLAGS
12822 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12825 int main(int argc, char **argv) { return 0; }
12826 _ACEOF
12827 if ac_fn_c_try_link "$LINENO"; then :
12828 ac_cv_cflags__fno_omit_frame_pointer=yes
12829 else
12830 ac_cv_cflags__fno_omit_frame_pointer=no
12832 rm -f core conftest.err conftest.$ac_objext \
12833 conftest$ac_exeext conftest.$ac_ext
12834 CFLAGS=$ac_wine_try_cflags_saved
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12837 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12838 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12839 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12840 fi ;;
12841 esac
12843 case $host in
12844 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12845 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12846 if ${ac_cv_cflags__Wno_format+:} false; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 ac_wine_try_cflags_saved=$CFLAGS
12850 CFLAGS="$CFLAGS -Wno-format"
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12853 int main(int argc, char **argv) { return 0; }
12854 _ACEOF
12855 if ac_fn_c_try_link "$LINENO"; then :
12856 ac_cv_cflags__Wno_format=yes
12857 else
12858 ac_cv_cflags__Wno_format=no
12860 rm -f core conftest.err conftest.$ac_objext \
12861 conftest$ac_exeext conftest.$ac_ext
12862 CFLAGS=$ac_wine_try_cflags_saved
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12865 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12866 if test $ac_cv_cflags__Wno_format = yes; then :
12867 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12868 fi ;;
12869 esac
12871 saved_CFLAGS="$CFLAGS"
12872 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12874 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12875 if ${ac_cv_c_string_h_warnings+:} false; then :
12876 $as_echo_n "(cached) " >&6
12877 else
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 #include <string.h>
12882 main ()
12886 return 0;
12888 _ACEOF
12889 if ac_fn_c_try_compile "$LINENO"; then :
12890 ac_cv_c_string_h_warnings=no
12891 else
12892 ac_cv_c_string_h_warnings=yes
12894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12897 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12898 CFLAGS="$saved_CFLAGS"
12899 if test "$ac_cv_c_string_h_warnings" = "no"
12900 then
12901 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12904 saved_CFLAGS="$CFLAGS"
12905 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12907 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12908 if ${ac_cv_c_logicalop_noisy+:} false; then :
12909 $as_echo_n "(cached) " >&6
12910 else
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12913 #include <string.h>
12915 main ()
12917 char*f(const char *h,char n) {return strchr(h,n);}
12919 return 0;
12921 _ACEOF
12922 if ac_fn_c_try_compile "$LINENO"; then :
12923 ac_cv_c_logicalop_noisy=no
12924 else
12925 ac_cv_c_logicalop_noisy=yes
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12930 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12931 CFLAGS="$saved_CFLAGS"
12932 if test "$ac_cv_c_logicalop_noisy" = "no"
12933 then
12934 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12937 if test "x$enable_maintainer_mode" = "xyes"
12938 then
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12940 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12941 if ${ac_cv_cflags__Werror+:} false; then :
12942 $as_echo_n "(cached) " >&6
12943 else
12944 ac_wine_try_cflags_saved=$CFLAGS
12945 CFLAGS="$CFLAGS -Werror"
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12948 int main(int argc, char **argv) { return 0; }
12949 _ACEOF
12950 if ac_fn_c_try_link "$LINENO"; then :
12951 ac_cv_cflags__Werror=yes
12952 else
12953 ac_cv_cflags__Werror=no
12955 rm -f core conftest.err conftest.$ac_objext \
12956 conftest$ac_exeext conftest.$ac_ext
12957 CFLAGS=$ac_wine_try_cflags_saved
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12960 $as_echo "$ac_cv_cflags__Werror" >&6; }
12961 if test $ac_cv_cflags__Werror = yes; then :
12962 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12966 saved_CFLAGS="$CFLAGS"
12967 CFLAGS="$CFLAGS -Werror"
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12969 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12970 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12977 main ()
12981 return 0;
12983 _ACEOF
12984 if ac_fn_c_try_compile "$LINENO"; then :
12985 ac_cv_have_ms_hook_prologue="yes"
12986 else
12987 ac_cv_have_ms_hook_prologue="no"
12989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12992 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12993 CFLAGS="$saved_CFLAGS"
12994 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12995 then
12997 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12999 else
13000 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
13007 $as_echo_n "checking for the need to disable Fortify... " >&6; }
13008 if ${ac_cv_c_fortify_enabled+:} false; then :
13009 $as_echo_n "(cached) " >&6
13010 else
13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012 /* end confdefs.h. */
13013 #include <string.h>
13015 main ()
13017 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
13018 #error Fortify enabled
13019 #endif
13021 return 0;
13023 _ACEOF
13024 if ac_fn_c_try_compile "$LINENO"; then :
13025 ac_cv_c_fortify_enabled=no
13026 else
13027 ac_cv_c_fortify_enabled=yes
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
13032 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
13033 if test "$ac_cv_c_fortify_enabled" = yes
13034 then
13035 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
13040 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
13041 if ${ac_cv_c_extern_prefix+:} false; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13046 extern int ac_test;
13048 main ()
13050 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
13052 return 0;
13054 _ACEOF
13055 if ac_fn_c_try_link "$LINENO"; then :
13056 ac_cv_c_extern_prefix="yes"
13057 else
13058 ac_cv_c_extern_prefix="no"
13060 rm -f core conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext conftest.$ac_ext
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
13064 $as_echo "$ac_cv_c_extern_prefix" >&6; }
13066 case $host_cpu in
13067 *i[3456789]86*)
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
13069 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
13070 if ${ac_cv_c_stdcall_suffix+:} false; then :
13071 $as_echo_n "(cached) " >&6
13072 else
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13075 #ifndef _MSC_VER
13076 #define __stdcall __attribute__((__stdcall__))
13077 #endif
13078 int __stdcall ac_test(int i) { return i; }
13080 main ()
13082 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
13084 return 0;
13086 _ACEOF
13087 if ac_fn_c_try_link "$LINENO"; then :
13088 ac_cv_c_stdcall_suffix="yes"
13089 else
13090 ac_cv_c_stdcall_suffix="no"
13092 rm -f core conftest.err conftest.$ac_objext \
13093 conftest$ac_exeext conftest.$ac_ext
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
13096 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
13097 *) ac_cv_c_stdcall_suffix="no" ;;
13098 esac
13101 if test "$ac_cv_c_extern_prefix" = "yes"
13102 then
13103 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
13105 asm_name_prefix="_"
13106 else
13107 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
13109 asm_name_prefix=""
13113 if test "$ac_cv_c_stdcall_suffix" = "yes"
13114 then
13115 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
13117 else
13118 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
13124 $as_echo_n "checking how to define a function in assembly code... " >&6; }
13125 if ${ac_cv_asm_func_def+:} false; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13132 main ()
13134 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
13136 return 0;
13138 _ACEOF
13139 if ac_fn_c_try_link "$LINENO"; then :
13140 ac_cv_asm_func_def=".def"
13141 else
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13146 main ()
13148 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
13150 return 0;
13152 _ACEOF
13153 if ac_fn_c_try_link "$LINENO"; then :
13154 ac_cv_asm_func_def=".type @function"
13155 else
13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13160 main ()
13162 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
13164 return 0;
13166 _ACEOF
13167 if ac_fn_c_try_link "$LINENO"; then :
13168 ac_cv_asm_func_def=".type 2"
13169 else
13170 ac_cv_asm_func_def="unknown"
13172 rm -f core conftest.err conftest.$ac_objext \
13173 conftest$ac_exeext conftest.$ac_ext
13175 rm -f core conftest.err conftest.$ac_objext \
13176 conftest$ac_exeext conftest.$ac_ext
13178 rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext conftest.$ac_ext
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
13182 $as_echo "$ac_cv_asm_func_def" >&6; }
13185 case "$ac_cv_asm_func_def" in
13186 ".def")
13187 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
13189 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
13190 ".type @function")
13191 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
13193 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
13194 ".type 2")
13195 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
13197 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
13199 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
13201 asm_func_header="" ;;
13202 esac
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
13205 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
13206 if ${ac_cv_c_asm_outside_funcs+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13211 asm(".text\n\t.long 0");
13213 main ()
13217 return 0;
13219 _ACEOF
13220 if ac_fn_c_try_compile "$LINENO"; then :
13221 ac_cv_c_asm_outside_funcs="yes"
13222 else
13223 ac_cv_c_asm_outside_funcs="no"
13225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
13228 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
13231 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
13232 if ${ac_cv_c_dot_previous+:} false; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13239 main ()
13241 asm(".text\nac_test:\t.long 0\n\t.previous");
13243 return 0;
13245 _ACEOF
13246 if ac_fn_c_try_link "$LINENO"; then :
13247 ac_cv_c_dot_previous="yes"
13248 else
13249 ac_cv_c_dot_previous="no"
13251 rm -f core conftest.err conftest.$ac_objext \
13252 conftest$ac_exeext conftest.$ac_ext
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
13255 $as_echo "$ac_cv_c_dot_previous" >&6; }
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
13258 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
13259 if ${ac_cv_c_cfi_support+:} false; then :
13260 $as_echo_n "(cached) " >&6
13261 else
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
13266 main ()
13270 return 0;
13272 _ACEOF
13273 if ac_fn_c_try_compile "$LINENO"; then :
13274 ac_cv_c_cfi_support="yes"
13275 else
13276 ac_cv_c_cfi_support="no"
13278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
13281 $as_echo "$ac_cv_c_cfi_support" >&6; }
13283 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
13284 asm_func_trailer=""
13285 if test "$ac_cv_c_dot_previous" = "yes"
13286 then
13287 asm_func_trailer="\\n\\t.previous"
13289 if test "$ac_cv_c_cfi_support" = "yes"
13290 then
13291 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
13292 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
13294 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
13296 UNWINDFLAGS=-fasynchronous-unwind-tables
13298 else
13299 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
13303 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
13306 if test "$ac_cv_c_asm_outside_funcs" = "yes"
13307 then
13308 cat >>confdefs.h <<_ACEOF
13309 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
13310 _ACEOF
13312 else
13313 cat >>confdefs.h <<_ACEOF
13314 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
13315 _ACEOF
13319 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
13322 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
13326 LDPATH=""
13328 case $build_os in
13329 cygwin*|mingw32*)
13330 TOOLSEXT=".exe"
13332 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
13334 darwin*|macosx*)
13337 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
13339 esac
13341 MAIN_BINARY="wine"
13343 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
13345 case $host_os in
13346 linux*)
13347 case $host_cpu in
13348 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
13350 x86_64*) EXTRA_BINARIES="wine64-preloader"
13352 esac
13354 esac
13357 ac_save_CFLAGS="$CFLAGS"
13358 CFLAGS="$CFLAGS $BUILTINFLAG"
13359 for ac_func in \
13360 _finite \
13361 _isnan \
13362 _pclose \
13363 _popen \
13364 _snprintf \
13365 _spawnvp \
13366 _strdup \
13367 _stricmp \
13368 _strnicmp \
13369 _strtoi64 \
13370 _strtoui64 \
13371 _vsnprintf \
13372 asctime_r \
13373 chsize \
13374 dlopen \
13375 epoll_create \
13376 ffs \
13377 finite \
13378 fnmatch \
13379 fork \
13380 fpclass \
13381 fstatfs \
13382 fstatvfs \
13383 ftruncate \
13384 futimens \
13385 futimes \
13386 futimesat \
13387 getattrlist \
13388 getdirentries \
13389 getopt_long_only \
13390 getpwuid \
13391 gettimeofday \
13392 getuid \
13393 kqueue \
13394 lstat \
13395 memmove \
13396 mmap \
13397 pclose \
13398 pipe2 \
13399 poll \
13400 popen \
13401 port_create \
13402 prctl \
13403 pread \
13404 pwrite \
13405 readdir \
13406 readlink \
13407 sched_yield \
13408 select \
13409 setproctitle \
13410 setrlimit \
13411 settimeofday \
13412 sigaltstack \
13413 sigprocmask \
13414 snprintf \
13415 statfs \
13416 statvfs \
13417 strcasecmp \
13418 strdup \
13419 strerror \
13420 strncasecmp \
13421 strtold \
13422 strtoll \
13423 strtoull \
13424 symlink \
13425 tcgetattr \
13426 thr_kill2 \
13427 timegm \
13428 usleep \
13429 vsnprintf
13431 do :
13432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13433 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13434 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13435 cat >>confdefs.h <<_ACEOF
13436 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13437 _ACEOF
13440 done
13442 CFLAGS="$ac_save_CFLAGS"
13444 if test "$ac_cv_func_dlopen" = no
13445 then
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13447 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13448 if ${ac_cv_lib_dl_dlopen+:} false; then :
13449 $as_echo_n "(cached) " >&6
13450 else
13451 ac_check_lib_save_LIBS=$LIBS
13452 LIBS="-ldl $LIBS"
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13456 /* Override any GCC internal prototype to avoid an error.
13457 Use char because int might match the return type of a GCC
13458 builtin and then its argument prototype would still apply. */
13459 #ifdef __cplusplus
13460 extern "C"
13461 #endif
13462 char dlopen ();
13464 main ()
13466 return dlopen ();
13468 return 0;
13470 _ACEOF
13471 if ac_fn_c_try_link "$LINENO"; then :
13472 ac_cv_lib_dl_dlopen=yes
13473 else
13474 ac_cv_lib_dl_dlopen=no
13476 rm -f core conftest.err conftest.$ac_objext \
13477 conftest$ac_exeext conftest.$ac_ext
13478 LIBS=$ac_check_lib_save_LIBS
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13481 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13482 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13483 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13484 LIBDL="-ldl"
13489 ac_wine_check_funcs_save_LIBS="$LIBS"
13490 LIBS="$LIBS $LIBDL"
13491 for ac_func in dladdr
13492 do :
13493 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13494 if test "x$ac_cv_func_dladdr" = xyes; then :
13495 cat >>confdefs.h <<_ACEOF
13496 #define HAVE_DLADDR 1
13497 _ACEOF
13500 done
13502 LIBS="$ac_wine_check_funcs_save_LIBS"
13504 if test "$ac_cv_func_poll" = no
13505 then
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13507 $as_echo_n "checking for poll in -lpoll... " >&6; }
13508 if ${ac_cv_lib_poll_poll+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510 else
13511 ac_check_lib_save_LIBS=$LIBS
13512 LIBS="-lpoll $LIBS"
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13516 /* Override any GCC internal prototype to avoid an error.
13517 Use char because int might match the return type of a GCC
13518 builtin and then its argument prototype would still apply. */
13519 #ifdef __cplusplus
13520 extern "C"
13521 #endif
13522 char poll ();
13524 main ()
13526 return poll ();
13528 return 0;
13530 _ACEOF
13531 if ac_fn_c_try_link "$LINENO"; then :
13532 ac_cv_lib_poll_poll=yes
13533 else
13534 ac_cv_lib_poll_poll=no
13536 rm -f core conftest.err conftest.$ac_objext \
13537 conftest$ac_exeext conftest.$ac_ext
13538 LIBS=$ac_check_lib_save_LIBS
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13541 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13542 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13543 $as_echo "#define HAVE_POLL 1" >>confdefs.h
13544 LIBPOLL="-lpoll"
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13551 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13552 if ${ac_cv_search_gethostbyname+:} false; then :
13553 $as_echo_n "(cached) " >&6
13554 else
13555 ac_func_search_save_LIBS=$LIBS
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13559 /* Override any GCC internal prototype to avoid an error.
13560 Use char because int might match the return type of a GCC
13561 builtin and then its argument prototype would still apply. */
13562 #ifdef __cplusplus
13563 extern "C"
13564 #endif
13565 char gethostbyname ();
13567 main ()
13569 return gethostbyname ();
13571 return 0;
13573 _ACEOF
13574 for ac_lib in '' nsl; do
13575 if test -z "$ac_lib"; then
13576 ac_res="none required"
13577 else
13578 ac_res=-l$ac_lib
13579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13581 if ac_fn_c_try_link "$LINENO"; then :
13582 ac_cv_search_gethostbyname=$ac_res
13584 rm -f core conftest.err conftest.$ac_objext \
13585 conftest$ac_exeext
13586 if ${ac_cv_search_gethostbyname+:} false; then :
13587 break
13589 done
13590 if ${ac_cv_search_gethostbyname+:} false; then :
13592 else
13593 ac_cv_search_gethostbyname=no
13595 rm conftest.$ac_ext
13596 LIBS=$ac_func_search_save_LIBS
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13599 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13600 ac_res=$ac_cv_search_gethostbyname
13601 if test "$ac_res" != no; then :
13602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13608 $as_echo_n "checking for library containing connect... " >&6; }
13609 if ${ac_cv_search_connect+:} false; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 ac_func_search_save_LIBS=$LIBS
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13619 #ifdef __cplusplus
13620 extern "C"
13621 #endif
13622 char connect ();
13624 main ()
13626 return connect ();
13628 return 0;
13630 _ACEOF
13631 for ac_lib in '' socket; do
13632 if test -z "$ac_lib"; then
13633 ac_res="none required"
13634 else
13635 ac_res=-l$ac_lib
13636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13638 if ac_fn_c_try_link "$LINENO"; then :
13639 ac_cv_search_connect=$ac_res
13641 rm -f core conftest.err conftest.$ac_objext \
13642 conftest$ac_exeext
13643 if ${ac_cv_search_connect+:} false; then :
13644 break
13646 done
13647 if ${ac_cv_search_connect+:} false; then :
13649 else
13650 ac_cv_search_connect=no
13652 rm conftest.$ac_ext
13653 LIBS=$ac_func_search_save_LIBS
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13656 $as_echo "$ac_cv_search_connect" >&6; }
13657 ac_res=$ac_cv_search_connect
13658 if test "$ac_res" != no; then :
13659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13665 $as_echo_n "checking for library containing inet_aton... " >&6; }
13666 if ${ac_cv_search_inet_aton+:} false; then :
13667 $as_echo_n "(cached) " >&6
13668 else
13669 ac_func_search_save_LIBS=$LIBS
13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h. */
13673 /* Override any GCC internal prototype to avoid an error.
13674 Use char because int might match the return type of a GCC
13675 builtin and then its argument prototype would still apply. */
13676 #ifdef __cplusplus
13677 extern "C"
13678 #endif
13679 char inet_aton ();
13681 main ()
13683 return inet_aton ();
13685 return 0;
13687 _ACEOF
13688 for ac_lib in '' resolv; do
13689 if test -z "$ac_lib"; then
13690 ac_res="none required"
13691 else
13692 ac_res=-l$ac_lib
13693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13695 if ac_fn_c_try_link "$LINENO"; then :
13696 ac_cv_search_inet_aton=$ac_res
13698 rm -f core conftest.err conftest.$ac_objext \
13699 conftest$ac_exeext
13700 if ${ac_cv_search_inet_aton+:} false; then :
13701 break
13703 done
13704 if ${ac_cv_search_inet_aton+:} false; then :
13706 else
13707 ac_cv_search_inet_aton=no
13709 rm conftest.$ac_ext
13710 LIBS=$ac_func_search_save_LIBS
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13713 $as_echo "$ac_cv_search_inet_aton" >&6; }
13714 ac_res=$ac_cv_search_inet_aton
13715 if test "$ac_res" != no; then :
13716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13721 for ac_func in \
13722 getaddrinfo \
13723 getnameinfo \
13724 getnetbyname \
13725 getprotobyname \
13726 getprotobynumber \
13727 getservbyport \
13728 inet_network \
13729 inet_ntop \
13730 inet_pton \
13731 sendmsg \
13732 socketpair \
13734 do :
13735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13736 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13737 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13738 cat >>confdefs.h <<_ACEOF
13739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13740 _ACEOF
13743 done
13746 ac_save_LIBS=$LIBS
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13748 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13749 if ${ac_cv_search_clock_gettime+:} false; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752 ac_func_search_save_LIBS=$LIBS
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13756 /* Override any GCC internal prototype to avoid an error.
13757 Use char because int might match the return type of a GCC
13758 builtin and then its argument prototype would still apply. */
13759 #ifdef __cplusplus
13760 extern "C"
13761 #endif
13762 char clock_gettime ();
13764 main ()
13766 return clock_gettime ();
13768 return 0;
13770 _ACEOF
13771 for ac_lib in '' rt; do
13772 if test -z "$ac_lib"; then
13773 ac_res="none required"
13774 else
13775 ac_res=-l$ac_lib
13776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13778 if ac_fn_c_try_link "$LINENO"; then :
13779 ac_cv_search_clock_gettime=$ac_res
13781 rm -f core conftest.err conftest.$ac_objext \
13782 conftest$ac_exeext
13783 if ${ac_cv_search_clock_gettime+:} false; then :
13784 break
13786 done
13787 if ${ac_cv_search_clock_gettime+:} false; then :
13789 else
13790 ac_cv_search_clock_gettime=no
13792 rm conftest.$ac_ext
13793 LIBS=$ac_func_search_save_LIBS
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13796 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13797 ac_res=$ac_cv_search_clock_gettime
13798 if test "$ac_res" != no; then :
13799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13801 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13803 test "$ac_res" = "none required" || LIBRT="$ac_res"
13807 LIBS=$ac_save_LIBS
13809 LDAPLIBS=""
13811 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13812 then
13813 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13815 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13817 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13818 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 ac_check_lib_save_LIBS=$LIBS
13822 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h. */
13826 /* Override any GCC internal prototype to avoid an error.
13827 Use char because int might match the return type of a GCC
13828 builtin and then its argument prototype would still apply. */
13829 #ifdef __cplusplus
13830 extern "C"
13831 #endif
13832 char ldap_initialize ();
13834 main ()
13836 return ldap_initialize ();
13838 return 0;
13840 _ACEOF
13841 if ac_fn_c_try_link "$LINENO"; then :
13842 ac_cv_lib_ldap_r_ldap_initialize=yes
13843 else
13844 ac_cv_lib_ldap_r_ldap_initialize=no
13846 rm -f core conftest.err conftest.$ac_objext \
13847 conftest$ac_exeext conftest.$ac_ext
13848 LIBS=$ac_check_lib_save_LIBS
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13851 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13852 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13854 $as_echo_n "checking for ber_init in -llber... " >&6; }
13855 if ${ac_cv_lib_lber_ber_init+:} false; then :
13856 $as_echo_n "(cached) " >&6
13857 else
13858 ac_check_lib_save_LIBS=$LIBS
13859 LIBS="-llber $LIBPTHREAD $LIBS"
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13863 /* Override any GCC internal prototype to avoid an error.
13864 Use char because int might match the return type of a GCC
13865 builtin and then its argument prototype would still apply. */
13866 #ifdef __cplusplus
13867 extern "C"
13868 #endif
13869 char ber_init ();
13871 main ()
13873 return ber_init ();
13875 return 0;
13877 _ACEOF
13878 if ac_fn_c_try_link "$LINENO"; then :
13879 ac_cv_lib_lber_ber_init=yes
13880 else
13881 ac_cv_lib_lber_ber_init=no
13883 rm -f core conftest.err conftest.$ac_objext \
13884 conftest$ac_exeext conftest.$ac_ext
13885 LIBS=$ac_check_lib_save_LIBS
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13888 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13889 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13891 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13893 LDAPLIBS="-lldap_r -llber"
13900 ac_wine_check_funcs_save_LIBS="$LIBS"
13901 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13902 for ac_func in \
13903 ldap_count_references \
13904 ldap_first_reference \
13905 ldap_next_reference \
13906 ldap_parse_reference \
13907 ldap_parse_sort_control \
13908 ldap_parse_sortresponse_control \
13909 ldap_parse_vlv_control \
13910 ldap_parse_vlvresponse_control
13911 do :
13912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13913 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13914 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13915 cat >>confdefs.h <<_ACEOF
13916 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13917 _ACEOF
13920 done
13922 LIBS="$ac_wine_check_funcs_save_LIBS"
13924 if test "x$LDAPLIBS" = "x"; then :
13925 case "x$with_ldap" in
13926 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13927 xno) ;;
13928 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13929 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13930 esac
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13934 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13935 if ${wine_cv_one_arg_mkdir+:} false; then :
13936 $as_echo_n "(cached) " >&6
13937 else
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13940 #include <sys/stat.h>
13942 main ()
13944 mkdir("foo");
13946 return 0;
13948 _ACEOF
13949 if ac_fn_c_try_compile "$LINENO"; then :
13950 wine_cv_one_arg_mkdir=yes
13951 else
13952 wine_cv_one_arg_mkdir=no
13954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13957 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13958 if test "$wine_cv_one_arg_mkdir" = "yes"
13959 then
13961 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13966 $as_echo_n "checking for sched_setaffinity... " >&6; }
13967 if ${wine_cv_have_sched_setaffinity+:} false; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13972 #define _GNU_SOURCE
13973 #include <sched.h>
13975 main ()
13977 sched_setaffinity(0, 0, 0);
13979 return 0;
13981 _ACEOF
13982 if ac_fn_c_try_link "$LINENO"; then :
13983 wine_cv_have_sched_setaffinity=yes
13984 else
13985 wine_cv_have_sched_setaffinity=no
13987 rm -f core conftest.err conftest.$ac_objext \
13988 conftest$ac_exeext conftest.$ac_ext
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13991 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13992 if test "$wine_cv_have_sched_setaffinity" = "yes"
13993 then
13995 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
14000 $as_echo_n "checking for fallocate... " >&6; }
14001 if ${wine_cv_have_fallocate+:} false; then :
14002 $as_echo_n "(cached) " >&6
14003 else
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14006 #define _GNU_SOURCE
14007 #include <fcntl.h>
14009 main ()
14011 fallocate(-1, 0, 0, 0);
14013 return 0;
14015 _ACEOF
14016 if ac_fn_c_try_link "$LINENO"; then :
14017 wine_cv_have_fallocate=yes
14018 else
14019 wine_cv_have_fallocate=no
14021 rm -f core conftest.err conftest.$ac_objext \
14022 conftest$ac_exeext conftest.$ac_ext
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
14025 $as_echo "$wine_cv_have_fallocate" >&6; }
14026 if test "$wine_cv_have_fallocate" = "yes"
14027 then
14029 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14035 $as_echo_n "checking for inline... " >&6; }
14036 if ${ac_cv_c_inline+:} false; then :
14037 $as_echo_n "(cached) " >&6
14038 else
14039 ac_cv_c_inline=no
14040 for ac_kw in inline __inline__ __inline; do
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043 #ifndef __cplusplus
14044 typedef int foo_t;
14045 static $ac_kw foo_t static_foo () {return 0; }
14046 $ac_kw foo_t foo () {return 0; }
14047 #endif
14049 _ACEOF
14050 if ac_fn_c_try_compile "$LINENO"; then :
14051 ac_cv_c_inline=$ac_kw
14053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14054 test "$ac_cv_c_inline" != no && break
14055 done
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14059 $as_echo "$ac_cv_c_inline" >&6; }
14061 case $ac_cv_c_inline in
14062 inline | yes) ;;
14064 case $ac_cv_c_inline in
14065 no) ac_val=;;
14066 *) ac_val=$ac_cv_c_inline;;
14067 esac
14068 cat >>confdefs.h <<_ACEOF
14069 #ifndef __cplusplus
14070 #define inline $ac_val
14071 #endif
14072 _ACEOF
14074 esac
14076 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14077 if test "x$ac_cv_type_mode_t" = xyes; then :
14079 cat >>confdefs.h <<_ACEOF
14080 #define HAVE_MODE_T 1
14081 _ACEOF
14085 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14086 if test "x$ac_cv_type_off_t" = xyes; then :
14088 cat >>confdefs.h <<_ACEOF
14089 #define HAVE_OFF_T 1
14090 _ACEOF
14094 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14095 if test "x$ac_cv_type_pid_t" = xyes; then :
14097 cat >>confdefs.h <<_ACEOF
14098 #define HAVE_PID_T 1
14099 _ACEOF
14103 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14104 if test "x$ac_cv_type_size_t" = xyes; then :
14106 cat >>confdefs.h <<_ACEOF
14107 #define HAVE_SIZE_T 1
14108 _ACEOF
14112 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14113 if test "x$ac_cv_type_ssize_t" = xyes; then :
14115 cat >>confdefs.h <<_ACEOF
14116 #define HAVE_SSIZE_T 1
14117 _ACEOF
14121 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14122 if test "x$ac_cv_type_long_long" = xyes; then :
14124 cat >>confdefs.h <<_ACEOF
14125 #define HAVE_LONG_LONG 1
14126 _ACEOF
14130 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
14131 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
14133 cat >>confdefs.h <<_ACEOF
14134 #define HAVE_FSBLKCNT_T 1
14135 _ACEOF
14139 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
14140 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
14142 cat >>confdefs.h <<_ACEOF
14143 #define HAVE_FSFILCNT_T 1
14144 _ACEOF
14149 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
14150 #include <signal.h>
14152 if test "x$ac_cv_type_sigset_t" = xyes; then :
14154 cat >>confdefs.h <<_ACEOF
14155 #define HAVE_SIGSET_T 1
14156 _ACEOF
14161 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
14163 if test "x$ac_cv_type_request_sense" = xyes; then :
14165 cat >>confdefs.h <<_ACEOF
14166 #define HAVE_REQUEST_SENSE 1
14167 _ACEOF
14173 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
14174 #ifdef HAVE_SYS_SOCKET_H
14175 #include <sys/socket.h>
14176 #endif
14177 #ifdef HAVE_SYS_SOCKETVAR_H
14178 #include <sys/socketvar.h>
14179 #endif
14180 #ifdef HAVE_NET_ROUTE_H
14181 #include <net/route.h>
14182 #endif
14183 #ifdef HAVE_NETINET_IN_H
14184 #include <netinet/in.h>
14185 #endif
14186 #ifdef HAVE_NETINET_IN_SYSTM_H
14187 #include <netinet/in_systm.h>
14188 #endif
14189 #ifdef HAVE_NETINET_IP_H
14190 #include <netinet/ip.h>
14191 #endif
14192 #ifdef HAVE_NETINET_IN_PCB_H
14193 #include <netinet/in_pcb.h>
14194 #endif
14196 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
14198 cat >>confdefs.h <<_ACEOF
14199 #define HAVE_STRUCT_XINPGEN 1
14200 _ACEOF
14206 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
14207 #include <linux/input.h>
14208 #endif
14210 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
14212 cat >>confdefs.h <<_ACEOF
14213 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
14214 _ACEOF
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
14221 $as_echo_n "checking for sigaddset... " >&6; }
14222 if ${wine_cv_have_sigaddset+:} false; then :
14223 $as_echo_n "(cached) " >&6
14224 else
14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14227 #include <signal.h>
14229 main ()
14231 sigset_t set; sigaddset(&set,SIGTERM);
14233 return 0;
14235 _ACEOF
14236 if ac_fn_c_try_link "$LINENO"; then :
14237 wine_cv_have_sigaddset=yes
14238 else
14239 wine_cv_have_sigaddset=no
14241 rm -f core conftest.err conftest.$ac_objext \
14242 conftest$ac_exeext conftest.$ac_ext
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
14245 $as_echo "$wine_cv_have_sigaddset" >&6; }
14246 if test "$wine_cv_have_sigaddset" = "yes"
14247 then
14249 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14255 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
14256 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
14257 $as_echo_n "(cached) " >&6
14258 else
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14261 #include <netdb.h>
14263 main ()
14266 char *name=0;
14267 struct hostent he;
14268 struct hostent *result;
14269 char *buf=0;
14270 int bufsize=0;
14271 int errnr;
14272 char *addr=0;
14273 int addrlen=0;
14274 int addrtype=0;
14275 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14276 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14279 return 0;
14281 _ACEOF
14282 if ac_fn_c_try_link "$LINENO"; then :
14283 wine_cv_linux_gethostbyname_r_6=yes
14284 else
14285 wine_cv_linux_gethostbyname_r_6=no
14288 rm -f core conftest.err conftest.$ac_objext \
14289 conftest$ac_exeext conftest.$ac_ext
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
14293 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
14294 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14295 then
14297 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
14301 if test "$ac_cv_header_linux_joystick_h" = "yes"
14302 then
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14304 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
14305 if ${wine_cv_linux_joystick_22_api+:} false; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14311 #include <sys/ioctl.h>
14312 #include <sys/types.h>
14313 #include <linux/joystick.h>
14315 struct js_event blub;
14316 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14317 #error "no 2.2 header"
14318 #endif
14321 main ()
14323 /*empty*/
14325 return 0;
14327 _ACEOF
14328 if ac_fn_c_try_compile "$LINENO"; then :
14329 wine_cv_linux_joystick_22_api=yes
14330 else
14331 wine_cv_linux_joystick_22_api=no
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
14337 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
14338 if test "$wine_cv_linux_joystick_22_api" = "yes"
14339 then
14341 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
14347 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
14348 #ifdef HAVE_SYS_PARAM_H
14349 # include <sys/param.h>
14350 #endif
14351 #ifdef HAVE_SYS_MOUNT_H
14352 # include <sys/mount.h>
14353 #endif
14354 #ifdef HAVE_SYS_VFS_H
14355 # include <sys/vfs.h>
14356 #endif
14357 #ifdef HAVE_SYS_STATFS_H
14358 # include <sys/statfs.h>
14359 #endif
14361 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
14363 cat >>confdefs.h <<_ACEOF
14364 #define HAVE_STRUCT_STATFS_F_BFREE 1
14365 _ACEOF
14369 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
14370 #ifdef HAVE_SYS_PARAM_H
14371 # include <sys/param.h>
14372 #endif
14373 #ifdef HAVE_SYS_MOUNT_H
14374 # include <sys/mount.h>
14375 #endif
14376 #ifdef HAVE_SYS_VFS_H
14377 # include <sys/vfs.h>
14378 #endif
14379 #ifdef HAVE_SYS_STATFS_H
14380 # include <sys/statfs.h>
14381 #endif
14383 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
14385 cat >>confdefs.h <<_ACEOF
14386 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
14387 _ACEOF
14391 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
14392 #ifdef HAVE_SYS_PARAM_H
14393 # include <sys/param.h>
14394 #endif
14395 #ifdef HAVE_SYS_MOUNT_H
14396 # include <sys/mount.h>
14397 #endif
14398 #ifdef HAVE_SYS_VFS_H
14399 # include <sys/vfs.h>
14400 #endif
14401 #ifdef HAVE_SYS_STATFS_H
14402 # include <sys/statfs.h>
14403 #endif
14405 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
14407 cat >>confdefs.h <<_ACEOF
14408 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
14409 _ACEOF
14413 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
14414 #ifdef HAVE_SYS_PARAM_H
14415 # include <sys/param.h>
14416 #endif
14417 #ifdef HAVE_SYS_MOUNT_H
14418 # include <sys/mount.h>
14419 #endif
14420 #ifdef HAVE_SYS_VFS_H
14421 # include <sys/vfs.h>
14422 #endif
14423 #ifdef HAVE_SYS_STATFS_H
14424 # include <sys/statfs.h>
14425 #endif
14427 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
14429 cat >>confdefs.h <<_ACEOF
14430 #define HAVE_STRUCT_STATFS_F_FFREE 1
14431 _ACEOF
14435 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
14436 #ifdef HAVE_SYS_PARAM_H
14437 # include <sys/param.h>
14438 #endif
14439 #ifdef HAVE_SYS_MOUNT_H
14440 # include <sys/mount.h>
14441 #endif
14442 #ifdef HAVE_SYS_VFS_H
14443 # include <sys/vfs.h>
14444 #endif
14445 #ifdef HAVE_SYS_STATFS_H
14446 # include <sys/statfs.h>
14447 #endif
14449 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
14451 cat >>confdefs.h <<_ACEOF
14452 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
14453 _ACEOF
14457 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
14458 #ifdef HAVE_SYS_PARAM_H
14459 # include <sys/param.h>
14460 #endif
14461 #ifdef HAVE_SYS_MOUNT_H
14462 # include <sys/mount.h>
14463 #endif
14464 #ifdef HAVE_SYS_VFS_H
14465 # include <sys/vfs.h>
14466 #endif
14467 #ifdef HAVE_SYS_STATFS_H
14468 # include <sys/statfs.h>
14469 #endif
14471 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
14473 cat >>confdefs.h <<_ACEOF
14474 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
14475 _ACEOF
14481 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
14482 #include <sys/statvfs.h>
14483 #endif
14485 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
14487 cat >>confdefs.h <<_ACEOF
14488 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
14489 _ACEOF
14495 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
14496 #include <dirent.h>
14497 #endif
14499 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
14501 cat >>confdefs.h <<_ACEOF
14502 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
14503 _ACEOF
14509 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
14510 #ifdef HAVE_SYS_SOCKET_H
14511 # include <sys/socket.h>
14512 #endif
14513 #ifdef HAVE_SYS_UN_H
14514 # include <sys/un.h>
14515 #endif
14517 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
14519 cat >>confdefs.h <<_ACEOF
14520 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
14521 _ACEOF
14525 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14526 #ifdef HAVE_SYS_SOCKET_H
14527 # include <sys/socket.h>
14528 #endif
14529 #ifdef HAVE_SYS_UN_H
14530 # include <sys/un.h>
14531 #endif
14533 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14535 cat >>confdefs.h <<_ACEOF
14536 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14537 _ACEOF
14541 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14542 #ifdef HAVE_SYS_SOCKET_H
14543 # include <sys/socket.h>
14544 #endif
14545 #ifdef HAVE_SYS_UN_H
14546 # include <sys/un.h>
14547 #endif
14549 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14551 cat >>confdefs.h <<_ACEOF
14552 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14553 _ACEOF
14559 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14560 #ifdef HAVE_SCSI_SG_H
14561 #include <scsi/sg.h>
14562 #endif
14564 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14566 cat >>confdefs.h <<_ACEOF
14567 #define HAVE_SCSIREQ_T_CMD 1
14568 _ACEOF
14572 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>
14573 #ifdef HAVE_SCSI_SG_H
14574 #include <scsi/sg.h>
14575 #endif
14577 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14579 cat >>confdefs.h <<_ACEOF
14580 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14581 _ACEOF
14587 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14589 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14591 cat >>confdefs.h <<_ACEOF
14592 #define HAVE_SIGINFO_T_SI_FD 1
14593 _ACEOF
14599 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14600 #ifdef HAVE_SYS_MTIO_H
14601 #include <sys/mtio.h>
14602 #endif
14604 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14606 cat >>confdefs.h <<_ACEOF
14607 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14608 _ACEOF
14612 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14613 #ifdef HAVE_SYS_MTIO_H
14614 #include <sys/mtio.h>
14615 #endif
14617 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14619 cat >>confdefs.h <<_ACEOF
14620 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14621 _ACEOF
14625 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14626 #ifdef HAVE_SYS_MTIO_H
14627 #include <sys/mtio.h>
14628 #endif
14630 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14632 cat >>confdefs.h <<_ACEOF
14633 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14634 _ACEOF
14640 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14641 #include <getopt.h>
14642 #endif
14644 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14646 cat >>confdefs.h <<_ACEOF
14647 #define HAVE_STRUCT_OPTION_NAME 1
14648 _ACEOF
14654 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14655 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14657 cat >>confdefs.h <<_ACEOF
14658 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14659 _ACEOF
14663 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14664 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14666 cat >>confdefs.h <<_ACEOF
14667 #define HAVE_STRUCT_STAT_ST_MTIM 1
14668 _ACEOF
14672 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
14673 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
14675 cat >>confdefs.h <<_ACEOF
14676 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
14677 _ACEOF
14681 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14682 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14684 cat >>confdefs.h <<_ACEOF
14685 #define HAVE_STRUCT_STAT_ST_CTIM 1
14686 _ACEOF
14690 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
14691 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
14693 cat >>confdefs.h <<_ACEOF
14694 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
14695 _ACEOF
14699 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14700 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14702 cat >>confdefs.h <<_ACEOF
14703 #define HAVE_STRUCT_STAT_ST_ATIM 1
14704 _ACEOF
14708 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
14709 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
14711 cat >>confdefs.h <<_ACEOF
14712 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
14713 _ACEOF
14717 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
14718 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
14720 cat >>confdefs.h <<_ACEOF
14721 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
14722 _ACEOF
14726 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
14727 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
14729 cat >>confdefs.h <<_ACEOF
14730 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
14731 _ACEOF
14735 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
14736 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
14738 cat >>confdefs.h <<_ACEOF
14739 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
14740 _ACEOF
14744 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
14745 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
14747 cat >>confdefs.h <<_ACEOF
14748 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
14749 _ACEOF
14753 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
14754 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
14756 cat >>confdefs.h <<_ACEOF
14757 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
14758 _ACEOF
14764 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
14765 #include <sys/types.h>
14766 #endif
14767 #ifdef HAVE_NETINET_IN_H
14768 #include <netinet/in.h>
14769 #endif
14771 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14773 cat >>confdefs.h <<_ACEOF
14774 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14775 _ACEOF
14781 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14782 #include <sys/types.h>
14783 #endif
14784 #ifdef HAVE_NETINET_IN_H
14785 # include <netinet/in.h>
14786 #endif
14787 #ifdef HAVE_ARPA_NAMESER_H
14788 # include <arpa/nameser.h>
14789 #endif
14791 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14793 cat >>confdefs.h <<_ACEOF
14794 #define HAVE_NS_MSG__MSG_PTR 1
14795 _ACEOF
14801 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
14802 #include <sys/types.h>
14803 #endif
14804 #ifdef HAVE_NETINET_IP_H
14805 #include <netinet/ip.h>
14806 #endif
14807 #ifdef HAVE_NETINET_IP_ICMP_H
14808 #include <netinet/ip_icmp.h>
14809 #endif
14810 #ifdef HAVE_NETINET_ICMP_VAR_H
14811 #include <netinet/icmp_var.h>
14812 #endif
14814 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
14816 cat >>confdefs.h <<_ACEOF
14817 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
14818 _ACEOF
14824 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14825 #include <sys/types.h>
14826 #endif
14827 #ifdef HAVE_ALIAS_H
14828 #include <alias.h>
14829 #endif
14830 #ifdef HAVE_SYS_SOCKET_H
14831 #include <sys/socket.h>
14832 #endif
14833 #ifdef HAVE_SYS_SOCKETVAR_H
14834 #include <sys/socketvar.h>
14835 #endif
14836 #ifdef HAVE_SYS_TIMEOUT_H
14837 #include <sys/timeout.h>
14838 #endif
14839 #ifdef HAVE_NETINET_IN_H
14840 #include <netinet/in.h>
14841 #endif
14842 #ifdef HAVE_NETINET_IN_SYSTM_H
14843 #include <netinet/in_systm.h>
14844 #endif
14845 #ifdef HAVE_NETINET_IP_H
14846 #include <netinet/ip.h>
14847 #endif
14848 #ifdef HAVE_NETINET_IP_VAR_H
14849 #include <netinet/ip_var.h>
14850 #endif
14851 #ifdef HAVE_NETINET_IP_ICMP_H
14852 #include <netinet/ip_icmp.h>
14853 #endif
14854 #ifdef HAVE_NETINET_ICMP_VAR_H
14855 #include <netinet/icmp_var.h>
14856 #endif
14858 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14860 cat >>confdefs.h <<_ACEOF
14861 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14862 _ACEOF
14868 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
14869 #include <sys/types.h>
14870 #endif
14871 #ifdef HAVE_SYS_SOCKETVAR_H
14872 #include <sys/socketvar.h>
14873 #endif
14874 #ifdef HAVE_NETINET_IN_H
14875 #include <netinet/in.h>
14876 #endif
14877 #ifdef HAVE_NETINET_IP_VAR_H
14878 #include <netinet/ip_var.h>
14879 #endif
14881 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
14883 cat >>confdefs.h <<_ACEOF
14884 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
14885 _ACEOF
14891 ac_fn_c_check_member "$LINENO" "struct ip_stats" "ips_total" "ac_cv_member_struct_ip_stats_ips_total" "#ifdef HAVE_NETINET_IP_VAR_H
14892 #include <netinet/ip_var.h>
14893 #endif
14895 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
14897 cat >>confdefs.h <<_ACEOF
14898 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
14899 _ACEOF
14905 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
14906 #include <sys/types.h>
14907 #endif
14908 #ifdef HAVE_SYS_SOCKETVAR_H
14909 #include <sys/socketvar.h>
14910 #endif
14911 #ifdef HAVE_NETINET_IN_H
14912 #include <netinet/in.h>
14913 #endif
14914 #ifdef HAVE_NETINET_TCP_H
14915 #include <netinet/tcp.h>
14916 #endif
14917 #ifdef HAVE_NETINET_TCP_VAR_H
14918 #include <netinet/tcp_var.h>
14919 #endif
14921 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
14923 cat >>confdefs.h <<_ACEOF
14924 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
14925 _ACEOF
14931 ac_fn_c_check_member "$LINENO" "struct tcp_stats" "tcps_connattempt" "ac_cv_member_struct_tcp_stats_tcps_connattempt" "#ifdef HAVE_NETINET_TCP_VAR_H
14932 #include <netinet/tcp_var.h>
14933 #endif
14935 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
14937 cat >>confdefs.h <<_ACEOF
14938 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
14939 _ACEOF
14945 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
14946 #include <sys/types.h>
14947 #endif
14948 #ifdef HAVE_NETINET_IN_H
14949 #include <netinet/in.h>
14950 #endif
14951 #ifdef HAVE_NETINET_IP_VAR_H
14952 #include <netinet/ip_var.h>
14953 #endif
14954 #ifdef HAVE_NETINET_UDP_H
14955 #include <netinet/udp.h>
14956 #endif
14957 #ifdef HAVE_NETINET_UDP_VAR_H
14958 #include <netinet/udp_var.h>
14959 #endif
14961 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
14963 cat >>confdefs.h <<_ACEOF
14964 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
14965 _ACEOF
14971 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14972 #include <sys/types.h>
14973 #endif
14974 #ifdef HAVE_NET_IF_H
14975 # include <net/if.h>
14976 #endif
14978 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14980 cat >>confdefs.h <<_ACEOF
14981 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14982 _ACEOF
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14989 $as_echo_n "checking for timezone variable... " >&6; }
14990 if ${ac_cv_have_timezone+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14995 #include <time.h>
14997 main ()
14999 timezone = 1
15001 return 0;
15003 _ACEOF
15004 if ac_fn_c_try_link "$LINENO"; then :
15005 ac_cv_have_timezone="yes"
15006 else
15007 ac_cv_have_timezone="no"
15009 rm -f core conftest.err conftest.$ac_objext \
15010 conftest$ac_exeext conftest.$ac_ext
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
15013 $as_echo "$ac_cv_have_timezone" >&6; }
15014 if test "$ac_cv_have_timezone" = "yes"
15015 then
15017 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
15021 $as_echo_n "checking for daylight variable... " >&6; }
15022 if ${ac_cv_have_daylight+:} false; then :
15023 $as_echo_n "(cached) " >&6
15024 else
15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h. */
15027 #include <time.h>
15029 main ()
15031 daylight = 1
15033 return 0;
15035 _ACEOF
15036 if ac_fn_c_try_link "$LINENO"; then :
15037 ac_cv_have_daylight="yes"
15038 else
15039 ac_cv_have_daylight="no"
15041 rm -f core conftest.err conftest.$ac_objext \
15042 conftest$ac_exeext conftest.$ac_ext
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
15045 $as_echo "$ac_cv_have_daylight" >&6; }
15046 if test "$ac_cv_have_daylight" = "yes"
15047 then
15049 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
15053 ac_save_LIBS="$LIBS"
15054 LIBS="$LIBS -lm"
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
15056 $as_echo_n "checking for isinf... " >&6; }
15057 if ${ac_cv_have_isinf+:} false; then :
15058 $as_echo_n "(cached) " >&6
15059 else
15060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15061 /* end confdefs.h. */
15062 #include <math.h>
15064 main ()
15066 float f = 0.0; return isinf(f)
15068 return 0;
15070 _ACEOF
15071 if ac_fn_c_try_link "$LINENO"; then :
15072 ac_cv_have_isinf="yes"
15073 else
15074 ac_cv_have_isinf="no"
15076 rm -f core conftest.err conftest.$ac_objext \
15077 conftest$ac_exeext conftest.$ac_ext
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
15080 $as_echo "$ac_cv_have_isinf" >&6; }
15081 if test "$ac_cv_have_isinf" = "yes"
15082 then
15084 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
15089 $as_echo_n "checking for isnan... " >&6; }
15090 if ${ac_cv_have_isnan+:} false; then :
15091 $as_echo_n "(cached) " >&6
15092 else
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15095 #include <math.h>
15097 main ()
15099 float f = 0.0; return isnan(f)
15101 return 0;
15103 _ACEOF
15104 if ac_fn_c_try_link "$LINENO"; then :
15105 ac_cv_have_isnan="yes"
15106 else
15107 ac_cv_have_isnan="no"
15109 rm -f core conftest.err conftest.$ac_objext \
15110 conftest$ac_exeext conftest.$ac_ext
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
15113 $as_echo "$ac_cv_have_isnan" >&6; }
15114 if test "$ac_cv_have_isnan" = "yes"
15115 then
15117 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
15120 LIBS="$ac_save_LIBS"
15123 case $host_cpu in
15124 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
15125 $as_echo_n "checking whether we need to define __i386__... " >&6; }
15126 if ${ac_cv_cpp_def___i386__+:} false; then :
15127 $as_echo_n "(cached) " >&6
15128 else
15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130 /* end confdefs.h. */
15131 #ifndef __i386__
15133 #endif
15134 _ACEOF
15135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15136 $EGREP "yes" >/dev/null 2>&1; then :
15137 ac_cv_cpp_def___i386__=yes
15138 else
15139 ac_cv_cpp_def___i386__=no
15141 rm -f conftest*
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
15145 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
15146 if test $ac_cv_cpp_def___i386__ = yes; then :
15147 CFLAGS="$CFLAGS -D__i386__"
15148 LINTFLAGS="$LINTFLAGS -D__i386__"
15149 fi ;;
15150 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
15151 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
15152 if ${ac_cv_cpp_def___x86_64__+:} false; then :
15153 $as_echo_n "(cached) " >&6
15154 else
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15157 #ifndef __x86_64__
15159 #endif
15160 _ACEOF
15161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15162 $EGREP "yes" >/dev/null 2>&1; then :
15163 ac_cv_cpp_def___x86_64__=yes
15164 else
15165 ac_cv_cpp_def___x86_64__=no
15167 rm -f conftest*
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
15171 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
15172 if test $ac_cv_cpp_def___x86_64__ = yes; then :
15173 CFLAGS="$CFLAGS -D__x86_64__"
15174 LINTFLAGS="$LINTFLAGS -D__x86_64__"
15175 fi ;;
15176 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
15177 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
15178 if ${ac_cv_cpp_def___sparc64__+:} false; then :
15179 $as_echo_n "(cached) " >&6
15180 else
15181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15182 /* end confdefs.h. */
15183 #ifndef __sparc64__
15185 #endif
15186 _ACEOF
15187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15188 $EGREP "yes" >/dev/null 2>&1; then :
15189 ac_cv_cpp_def___sparc64__=yes
15190 else
15191 ac_cv_cpp_def___sparc64__=no
15193 rm -f conftest*
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
15197 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
15198 if test $ac_cv_cpp_def___sparc64__ = yes; then :
15199 CFLAGS="$CFLAGS -D__sparc64__"
15200 LINTFLAGS="$LINTFLAGS -D__sparc64__"
15201 fi ;;
15202 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
15203 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
15204 if ${ac_cv_cpp_def___sparc__+:} false; then :
15205 $as_echo_n "(cached) " >&6
15206 else
15207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15208 /* end confdefs.h. */
15209 #ifndef __sparc__
15211 #endif
15212 _ACEOF
15213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15214 $EGREP "yes" >/dev/null 2>&1; then :
15215 ac_cv_cpp_def___sparc__=yes
15216 else
15217 ac_cv_cpp_def___sparc__=no
15219 rm -f conftest*
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
15223 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
15224 if test $ac_cv_cpp_def___sparc__ = yes; then :
15225 CFLAGS="$CFLAGS -D__sparc__"
15226 LINTFLAGS="$LINTFLAGS -D__sparc__"
15227 fi ;;
15228 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
15229 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
15230 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
15231 $as_echo_n "(cached) " >&6
15232 else
15233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234 /* end confdefs.h. */
15235 #ifndef __powerpc64__
15237 #endif
15238 _ACEOF
15239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15240 $EGREP "yes" >/dev/null 2>&1; then :
15241 ac_cv_cpp_def___powerpc64__=yes
15242 else
15243 ac_cv_cpp_def___powerpc64__=no
15245 rm -f conftest*
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
15249 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
15250 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
15251 CFLAGS="$CFLAGS -D__powerpc64__"
15252 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
15253 fi ;;
15254 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
15255 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
15256 if ${ac_cv_cpp_def___powerpc__+:} false; then :
15257 $as_echo_n "(cached) " >&6
15258 else
15259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h. */
15261 #ifndef __powerpc__
15263 #endif
15264 _ACEOF
15265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15266 $EGREP "yes" >/dev/null 2>&1; then :
15267 ac_cv_cpp_def___powerpc__=yes
15268 else
15269 ac_cv_cpp_def___powerpc__=no
15271 rm -f conftest*
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
15275 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
15276 if test $ac_cv_cpp_def___powerpc__ = yes; then :
15277 CFLAGS="$CFLAGS -D__powerpc__"
15278 LINTFLAGS="$LINTFLAGS -D__powerpc__"
15279 fi ;;
15280 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
15281 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
15282 if ${ac_cv_cpp_def___aarch64__+:} false; then :
15283 $as_echo_n "(cached) " >&6
15284 else
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h. */
15287 #ifndef __aarch64__
15289 #endif
15290 _ACEOF
15291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15292 $EGREP "yes" >/dev/null 2>&1; then :
15293 ac_cv_cpp_def___aarch64__=yes
15294 else
15295 ac_cv_cpp_def___aarch64__=no
15297 rm -f conftest*
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
15301 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
15302 if test $ac_cv_cpp_def___aarch64__ = yes; then :
15303 CFLAGS="$CFLAGS -D__aarch64__"
15304 LINTFLAGS="$LINTFLAGS -D__aarch64__"
15305 fi ;;
15306 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
15307 $as_echo_n "checking whether we need to define __arm__... " >&6; }
15308 if ${ac_cv_cpp_def___arm__+:} false; then :
15309 $as_echo_n "(cached) " >&6
15310 else
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313 #ifndef __arm__
15315 #endif
15316 _ACEOF
15317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15318 $EGREP "yes" >/dev/null 2>&1; then :
15319 ac_cv_cpp_def___arm__=yes
15320 else
15321 ac_cv_cpp_def___arm__=no
15323 rm -f conftest*
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
15327 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
15328 if test $ac_cv_cpp_def___arm__ = yes; then :
15329 CFLAGS="$CFLAGS -D__arm__"
15330 LINTFLAGS="$LINTFLAGS -D__arm__"
15331 fi ;;
15332 esac
15334 case $host_vendor in
15335 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
15336 $as_echo_n "checking whether we need to define __sun__... " >&6; }
15337 if ${ac_cv_cpp_def___sun__+:} false; then :
15338 $as_echo_n "(cached) " >&6
15339 else
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h. */
15342 #ifndef __sun__
15344 #endif
15345 _ACEOF
15346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15347 $EGREP "yes" >/dev/null 2>&1; then :
15348 ac_cv_cpp_def___sun__=yes
15349 else
15350 ac_cv_cpp_def___sun__=no
15352 rm -f conftest*
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
15356 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
15357 if test $ac_cv_cpp_def___sun__ = yes; then :
15358 CFLAGS="$CFLAGS -D__sun__"
15359 LINTFLAGS="$LINTFLAGS -D__sun__"
15360 fi ;;
15361 esac
15367 ac_config_commands="$ac_config_commands include/stamp-h"
15370 ALL_MAKEFILE_DEPENDS="
15371 # Rules automatically generated by configure
15373 .INIT: Makefile
15374 .MAKEFILEDEPS:
15375 all: Makefile
15376 Makefile: Makefile.in Make.vars.in Make.rules config.status
15377 @./config.status Make.tmp Makefile"
15379 ALL_POT_FILES=""
15380 ALL_TEST_RESOURCES=""
15383 wine_fn_append_file ()
15385 as_fn_append $1 " \\$as_nl $2"
15388 wine_fn_append_rule ()
15390 as_fn_append $1 "$as_nl$2"
15393 wine_fn_has_flag ()
15395 expr ",$2," : ".*,$1,.*" >/dev/null
15398 wine_fn_all_dir_rules ()
15400 ac_dir=$1
15401 ac_alldeps=$2
15402 ac_makedep="\$(MAKEDEP)"
15403 ac_input=Make.vars.in:$ac_dir/Makefile.in
15404 if test $ac_dir != tools
15405 then
15406 ac_alldeps="$2 $ac_makedep"
15407 else
15408 ac_alldeps="$2 include/config.h"
15410 case $2 in
15411 *.in) ac_input=$ac_input:$2 ;;
15412 *) ac_makedep="$2 $ac_makedep" ;;
15413 esac
15415 wine_fn_append_file ALL_DIRS $ac_dir
15416 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15417 "__clean__: $ac_dir/__clean__
15418 .PHONY: $ac_dir/__clean__
15419 $ac_dir/__clean__: $ac_dir/Makefile
15420 @cd $ac_dir && \$(MAKE) clean
15421 \$(RM) $ac_dir/Makefile
15422 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
15423 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
15424 depend: $ac_dir/__depend__
15425 .PHONY: $ac_dir/__depend__
15426 $ac_dir/__depend__: $ac_makedep dummy
15427 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
15430 wine_fn_pot_rules ()
15432 ac_dir=$1
15433 ac_flags=$2
15435 test "x$with_gettextpo" = xyes || return
15437 if wine_fn_has_flag mc $ac_flags
15438 then
15439 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
15440 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15441 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
15442 @cd $ac_dir && \$(MAKE) msg.pot
15443 $ac_dir/msg.pot: tools/wmc include"
15445 if wine_fn_has_flag po $ac_flags
15446 then
15447 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
15448 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15449 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
15450 @cd $ac_dir && \$(MAKE) rsrc.pot
15451 $ac_dir/rsrc.pot: tools/wrc include"
15455 wine_fn_config_makefile ()
15457 ac_dir=$1
15458 ac_enable=$2
15459 ac_flags=$3
15460 ac_rules=$4
15461 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15462 return 0
15465 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
15466 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15467 "all: $ac_dir
15468 .PHONY: $ac_dir
15469 $ac_dir: $ac_dir/Makefile dummy
15470 @cd $ac_dir && \$(MAKE)"
15472 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
15474 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15475 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15476 $ac_dir/__install__:: $ac_dir
15477 @cd $ac_dir && \$(MAKE) install
15478 $ac_dir/__uninstall__:: $ac_dir/Makefile
15479 @cd $ac_dir && \$(MAKE) uninstall
15480 install:: $ac_dir/__install__
15481 __uninstall__: $ac_dir/__uninstall__"
15483 if wine_fn_has_flag install-lib $ac_flags
15484 then
15485 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15486 ".PHONY: $ac_dir/__install-lib__
15487 $ac_dir/__install-lib__:: $ac_dir
15488 @cd $ac_dir && \$(MAKE) install-lib
15489 install-lib:: $ac_dir/__install-lib__"
15492 if wine_fn_has_flag install-dev $ac_flags
15493 then
15494 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15495 ".PHONY: $ac_dir/__install-dev
15496 $ac_dir/__install-dev__:: $ac_dir
15497 @cd $ac_dir && \$(MAKE) install-dev
15498 install-dev:: $ac_dir/__install-dev__"
15502 wine_fn_config_lib ()
15504 ac_name=$1
15505 ac_flags=$2
15506 ac_dir=dlls/$ac_name
15507 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
15509 if wine_fn_has_flag install-dev $ac_flags
15510 then :
15511 else
15512 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15513 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15514 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
15515 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15516 $ac_dir/__uninstall__::
15517 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15518 install install-dev:: $ac_dir/__install__
15519 __uninstall__: $ac_dir/__uninstall__"
15522 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
15523 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
15526 wine_fn_config_dll ()
15528 ac_name=$1
15529 ac_dir=dlls/$ac_name
15530 ac_enable=$2
15531 ac_flags=$3
15532 ac_implib=${4:-$ac_name}
15533 ac_file=$ac_dir/lib$ac_implib
15534 ac_dll=$ac_name
15535 ac_deps="tools/widl tools/winebuild tools/winegcc include"
15536 ac_implibflags=""
15538 case $ac_name in
15539 *16) ac_implibflags=" -m16" ;;
15540 *.*) ;;
15541 *) ac_dll=$ac_dll.dll ;;
15542 esac
15544 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
15546 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15547 test "$ac_enable" != enable_win16 || return 0
15548 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
15549 else
15550 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15551 "$ac_dir: __builddeps__
15552 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
15553 @cd $ac_dir && \$(MAKE) \$@"
15555 if wine_fn_has_flag install-lib $ac_flags
15556 then :
15557 else
15558 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15559 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
15560 install install-lib:: $ac_dir/__install-lib__
15561 __uninstall__: $ac_dir/__uninstall__"
15562 if test -n "$DLLEXT"
15563 then
15564 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15565 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15566 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
15567 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
15568 $ac_dir/__uninstall__::
15569 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
15570 else
15571 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15572 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15573 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
15574 $ac_dir/__uninstall__::
15575 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
15579 wine_fn_pot_rules $ac_dir $ac_flags
15582 if wine_fn_has_flag staticimplib $ac_flags
15583 then
15584 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15585 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
15586 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
15587 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
15588 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
15589 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
15590 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
15591 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15592 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15593 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15594 $ac_dir/__uninstall__::
15595 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15596 install install-dev:: $ac_dir/__install-dev__
15597 __uninstall__: $ac_dir/__uninstall__"
15599 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
15600 then
15601 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15602 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
15603 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
15604 $ac_dir/__uninstall__::
15605 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
15608 if test "x$CROSSTEST_DISABLE" = x
15609 then
15610 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15611 "__builddeps__: $ac_file.cross.a
15612 $ac_file.cross.a: $ac_dir/Makefile dummy
15613 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
15616 elif wine_fn_has_flag implib $ac_flags
15617 then
15618 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15619 "__builddeps__: $ac_file.$IMPLIBEXT
15620 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15621 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15622 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15623 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15624 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15625 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15626 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15627 $ac_dir/__uninstall__::
15628 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15629 install install-dev:: $ac_dir/__install-dev__
15630 __uninstall__: $ac_dir/__uninstall__"
15631 if test "x$CROSSTEST_DISABLE" = x
15632 then
15633 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15634 "__builddeps__: $ac_file.cross.a
15635 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15636 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
15639 if test "$ac_name" != "$ac_implib"
15640 then
15641 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15642 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
15643 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
15644 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
15645 clean::
15646 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
15647 if test "x$CROSSTEST_DISABLE" = x
15648 then
15649 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15650 "__builddeps__: dlls/lib$ac_implib.cross.a
15651 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
15652 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
15658 wine_fn_config_program ()
15660 ac_name=$1
15661 ac_dir=programs/$ac_name
15662 ac_enable=$2
15663 ac_flags=$3
15664 ac_program=$ac_name
15666 case $ac_name in
15667 *.*) ;;
15668 *) ac_program=$ac_program.exe ;;
15669 esac
15671 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
15673 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15675 else
15676 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15677 "$ac_dir: __builddeps__"
15679 wine_fn_pot_rules $ac_dir $ac_flags
15681 wine_fn_has_flag install $ac_flags || return
15682 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15683 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15684 install install-lib:: $ac_dir/__install__
15685 __uninstall__: $ac_dir/__uninstall__"
15687 if test -n "$DLLEXT"
15688 then
15689 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15690 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15691 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
15692 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
15693 $ac_dir/__uninstall__::
15694 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
15696 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
15697 then
15698 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15699 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
15700 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
15701 $ac_dir/__uninstall__::
15702 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
15704 else
15705 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15706 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15707 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
15708 $ac_dir/__uninstall__::
15709 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
15712 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
15713 then
15714 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15715 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
15716 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
15717 $ac_dir/__uninstall__::
15718 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
15723 wine_fn_config_test ()
15725 ac_dir=$1
15726 ac_name=$2
15727 ac_flags=$3
15728 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
15729 wine_fn_all_dir_rules $ac_dir Maketest.rules
15731 if test "x$enable_tests" = xno; then :
15733 else
15734 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15735 "all: $ac_dir
15736 .PHONY: $ac_dir
15737 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
15738 @cd $ac_dir && \$(MAKE)
15739 programs/winetest: $ac_dir
15740 check test: $ac_dir/__test__
15741 .PHONY: $ac_dir/__test__
15742 $ac_dir/__test__: dummy
15743 @cd $ac_dir && \$(MAKE) test
15744 testclean::
15745 \$(RM) $ac_dir/*.ok"
15747 if test "x$CROSSTEST_DISABLE" = x
15748 then
15749 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15750 "crosstest: $ac_dir/__crosstest__
15751 .PHONY: $ac_dir/__crosstest__
15752 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
15753 @cd $ac_dir && \$(MAKE) crosstest"
15758 wine_fn_config_tool ()
15760 ac_dir=$1
15761 ac_flags=$2
15762 if test "x$enable_tools" = xno; then :
15763 return 0
15766 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
15768 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
15769 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
15770 case $ac_dir in
15771 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
15772 esac
15775 wine_fn_config_makerules ()
15777 ac_rules=$1
15778 ac_deps=$2
15779 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15780 "$ac_rules: $ac_rules.in $ac_deps config.status
15781 @./config.status $ac_rules
15782 distclean::
15783 \$(RM) $ac_rules"
15786 wine_fn_config_symlink ()
15788 ac_link=$1
15789 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15790 "$ac_link:
15791 @./config.status $ac_link
15792 distclean::
15793 \$(RM) $ac_link"
15796 if test "x$CROSSTEST_DISABLE" != x
15797 then
15798 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15799 "crosstest:
15800 @echo \"crosstest is not supported (mingw not installed?)\" && false"
15802 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
15803 wine_fn_config_symlink dlls/shell32/AUTHORS
15804 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
15805 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
15806 if test "x$enable_fonts" != xno; then
15807 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
15808 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
15810 if test "x$enable_fonts" != xno; then
15811 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
15812 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
15814 if test "x$enable_fonts" != xno; then
15815 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
15816 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
15818 if test "x$enable_fonts" != xno; then
15819 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
15820 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
15822 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
15823 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
15824 if test "x$enable_tools" != xno; then
15825 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
15826 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
15828 ac_config_links="$ac_config_links wine:tools/winewrapper"
15829 wine_fn_config_symlink wine
15830 if test "x$enable_win64" != xno; then
15831 ac_config_links="$ac_config_links wine64:tools/winewrapper"
15832 wine_fn_config_symlink wine64
15835 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
15837 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
15839 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
15841 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
15843 ac_config_commands="$ac_config_commands dlls/user32/resources"
15845 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
15847 ac_config_commands="$ac_config_commands include/wine"
15850 wine_fn_config_makerules Make.rules
15851 MAKE_RULES=Make.rules
15852 ac_config_files="$ac_config_files Make.rules"
15854 wine_fn_config_makerules Maketest.rules Make.rules
15855 MAKE_TEST_RULES=Maketest.rules
15856 ac_config_files="$ac_config_files Maketest.rules"
15858 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15859 MAKE_DLL_RULES=dlls/Makedll.rules
15860 ac_config_files="$ac_config_files dlls/Makedll.rules"
15862 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15863 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15864 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15866 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15867 MAKE_PROG_RULES=programs/Makeprog.rules
15868 ac_config_files="$ac_config_files programs/Makeprog.rules"
15871 wine_fn_config_dll acledit enable_acledit
15872 wine_fn_config_dll aclui enable_aclui implib
15873 wine_fn_config_dll activeds enable_activeds implib
15874 wine_fn_config_dll actxprxy enable_actxprxy
15875 wine_fn_config_lib adsiid
15876 wine_fn_config_dll advapi32 enable_advapi32 implib
15877 wine_fn_config_test dlls/advapi32/tests advapi32_test
15878 wine_fn_config_dll advpack enable_advpack implib
15879 wine_fn_config_test dlls/advpack/tests advpack_test
15880 wine_fn_config_dll amstream enable_amstream
15881 wine_fn_config_test dlls/amstream/tests amstream_test
15882 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
15883 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
15884 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
15885 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
15886 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
15887 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
15888 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
15889 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
15890 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
15891 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
15892 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
15893 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
15894 wine_fn_config_dll apphelp enable_apphelp
15895 wine_fn_config_test dlls/apphelp/tests apphelp_test
15896 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15897 wine_fn_config_dll atl enable_atl implib
15898 wine_fn_config_test dlls/atl/tests atl_test
15899 wine_fn_config_dll atl100 enable_atl100 implib
15900 wine_fn_config_test dlls/atl100/tests atl100_test
15901 wine_fn_config_dll atl80 enable_atl80 implib
15902 wine_fn_config_test dlls/atl80/tests atl80_test
15903 wine_fn_config_dll authz enable_authz
15904 wine_fn_config_dll avicap32 enable_avicap32 implib
15905 wine_fn_config_dll avifil32 enable_avifil32 implib,po
15906 wine_fn_config_test dlls/avifil32/tests avifil32_test
15907 wine_fn_config_dll avifile.dll16 enable_win16
15908 wine_fn_config_dll avrt enable_avrt implib
15909 wine_fn_config_dll bcrypt enable_bcrypt
15910 wine_fn_config_dll browseui enable_browseui po
15911 wine_fn_config_test dlls/browseui/tests browseui_test
15912 wine_fn_config_dll cabinet enable_cabinet implib
15913 wine_fn_config_test dlls/cabinet/tests cabinet_test
15914 wine_fn_config_dll capi2032 enable_capi2032 implib
15915 wine_fn_config_dll cards enable_cards implib
15916 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15917 wine_fn_config_dll clusapi enable_clusapi implib
15918 wine_fn_config_dll comcat enable_comcat
15919 wine_fn_config_test dlls/comcat/tests comcat_test
15920 wine_fn_config_dll comctl32 enable_comctl32 implib,po
15921 wine_fn_config_test dlls/comctl32/tests comctl32_test
15922 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
15923 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15924 wine_fn_config_dll comm.drv16 enable_win16
15925 wine_fn_config_dll commdlg.dll16 enable_win16
15926 wine_fn_config_dll compobj.dll16 enable_win16
15927 wine_fn_config_dll compstui enable_compstui implib
15928 wine_fn_config_dll credui enable_credui implib,po
15929 wine_fn_config_test dlls/credui/tests credui_test
15930 wine_fn_config_dll crtdll enable_crtdll implib
15931 wine_fn_config_dll crypt32 enable_crypt32 implib,po
15932 wine_fn_config_test dlls/crypt32/tests crypt32_test
15933 wine_fn_config_dll cryptdlg enable_cryptdlg po
15934 wine_fn_config_dll cryptdll enable_cryptdll implib
15935 wine_fn_config_dll cryptnet enable_cryptnet implib
15936 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15937 wine_fn_config_dll cryptui enable_cryptui implib,po
15938 wine_fn_config_test dlls/cryptui/tests cryptui_test
15939 wine_fn_config_dll ctapi32 enable_ctapi32
15940 wine_fn_config_dll ctl3d.dll16 enable_win16
15941 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15942 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15943 wine_fn_config_dll d3d10 enable_d3d10 implib
15944 wine_fn_config_test dlls/d3d10/tests d3d10_test
15945 wine_fn_config_dll d3d10core enable_d3d10core implib
15946 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15947 wine_fn_config_dll d3d11 enable_d3d11
15948 wine_fn_config_dll d3d8 enable_d3d8 implib
15949 wine_fn_config_test dlls/d3d8/tests d3d8_test
15950 wine_fn_config_dll d3d9 enable_d3d9 implib
15951 wine_fn_config_test dlls/d3d9/tests d3d9_test
15952 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15953 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15954 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15955 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15956 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15957 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15958 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15959 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15960 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15961 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15962 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15963 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15964 wine_fn_config_dll d3dim enable_d3dim implib
15965 wine_fn_config_dll d3drm enable_d3drm implib
15966 wine_fn_config_test dlls/d3drm/tests d3drm_test
15967 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15968 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15969 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15970 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15971 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15972 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15973 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15974 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15975 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15976 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15977 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15978 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15979 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15980 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15981 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15982 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15983 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15984 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15985 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15986 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15987 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15988 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15989 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15990 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15991 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15992 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15993 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15994 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15995 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15996 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15997 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15998 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15999 wine_fn_config_dll d3dxof enable_d3dxof implib
16000 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
16001 wine_fn_config_dll dbgeng enable_dbgeng implib
16002 wine_fn_config_dll dbghelp enable_dbghelp implib
16003 wine_fn_config_dll dciman32 enable_dciman32 implib
16004 wine_fn_config_dll ddeml.dll16 enable_win16
16005 wine_fn_config_dll ddraw enable_ddraw implib
16006 wine_fn_config_test dlls/ddraw/tests ddraw_test
16007 wine_fn_config_dll ddrawex enable_ddrawex
16008 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
16009 wine_fn_config_dll devenum enable_devenum po
16010 wine_fn_config_test dlls/devenum/tests devenum_test
16011 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
16012 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
16013 wine_fn_config_test dlls/dinput/tests dinput_test
16014 wine_fn_config_dll dinput8 enable_dinput8 implib
16015 wine_fn_config_test dlls/dinput8/tests dinput8_test
16016 wine_fn_config_dll dispdib.dll16 enable_win16
16017 wine_fn_config_dll dispex enable_dispex
16018 wine_fn_config_test dlls/dispex/tests dispex_test
16019 wine_fn_config_dll display.drv16 enable_win16
16020 wine_fn_config_dll dmband enable_dmband
16021 wine_fn_config_test dlls/dmband/tests dmband_test
16022 wine_fn_config_dll dmcompos enable_dmcompos
16023 wine_fn_config_dll dmime enable_dmime
16024 wine_fn_config_test dlls/dmime/tests dmime_test
16025 wine_fn_config_dll dmloader enable_dmloader
16026 wine_fn_config_test dlls/dmloader/tests dmloader_test
16027 wine_fn_config_dll dmscript enable_dmscript
16028 wine_fn_config_dll dmstyle enable_dmstyle
16029 wine_fn_config_dll dmsynth enable_dmsynth
16030 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
16031 wine_fn_config_dll dmusic enable_dmusic
16032 wine_fn_config_test dlls/dmusic/tests dmusic_test
16033 wine_fn_config_dll dmusic32 enable_dmusic32 implib
16034 wine_fn_config_dll dnsapi enable_dnsapi implib
16035 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
16036 wine_fn_config_dll dplay enable_dplay implib
16037 wine_fn_config_dll dplayx enable_dplayx implib
16038 wine_fn_config_test dlls/dplayx/tests dplayx_test
16039 wine_fn_config_dll dpnaddr enable_dpnaddr
16040 wine_fn_config_dll dpnet enable_dpnet implib
16041 wine_fn_config_test dlls/dpnet/tests dpnet_test
16042 wine_fn_config_dll dpnhpast enable_dpnhpast
16043 wine_fn_config_dll dpnlobby enable_dpnlobby
16044 wine_fn_config_dll dpwsockx enable_dpwsockx
16045 wine_fn_config_dll drmclien enable_drmclien
16046 wine_fn_config_dll dsound enable_dsound implib
16047 wine_fn_config_test dlls/dsound/tests dsound_test
16048 wine_fn_config_dll dssenh enable_dssenh
16049 wine_fn_config_test dlls/dssenh/tests dssenh_test
16050 wine_fn_config_dll dswave enable_dswave
16051 wine_fn_config_dll dwmapi enable_dwmapi implib
16052 wine_fn_config_dll dwrite enable_dwrite implib
16053 wine_fn_config_test dlls/dwrite/tests dwrite_test
16054 wine_fn_config_dll dxdiagn enable_dxdiagn po
16055 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
16056 wine_fn_config_lib dxerr8
16057 wine_fn_config_lib dxerr9
16058 wine_fn_config_dll dxgi enable_dxgi implib
16059 wine_fn_config_test dlls/dxgi/tests dxgi_test
16060 wine_fn_config_lib dxguid
16061 wine_fn_config_dll explorerframe enable_explorerframe
16062 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
16063 wine_fn_config_dll faultrep enable_faultrep implib
16064 wine_fn_config_test dlls/faultrep/tests faultrep_test
16065 wine_fn_config_dll fltlib enable_fltlib
16066 wine_fn_config_dll fusion enable_fusion
16067 wine_fn_config_test dlls/fusion/tests fusion_test
16068 wine_fn_config_dll fwpuclnt enable_fwpuclnt
16069 wine_fn_config_dll gameux enable_gameux
16070 wine_fn_config_test dlls/gameux/tests gameux_test
16071 wine_fn_config_dll gdi.exe16 enable_win16
16072 wine_fn_config_dll gdi32 enable_gdi32 implib,po
16073 wine_fn_config_test dlls/gdi32/tests gdi32_test
16074 wine_fn_config_dll gdiplus enable_gdiplus implib
16075 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
16076 wine_fn_config_dll glu32 enable_glu32 implib
16077 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
16078 wine_fn_config_dll gpkcsp enable_gpkcsp
16079 wine_fn_config_dll hal enable_hal
16080 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx implib,po htmlhelp
16081 wine_fn_config_dll hid enable_hid implib
16082 wine_fn_config_dll hlink enable_hlink implib
16083 wine_fn_config_test dlls/hlink/tests hlink_test
16084 wine_fn_config_dll hnetcfg enable_hnetcfg
16085 wine_fn_config_dll httpapi enable_httpapi
16086 wine_fn_config_dll iccvid enable_iccvid po
16087 wine_fn_config_dll icmp enable_icmp
16088 wine_fn_config_dll ieframe enable_ieframe implib,po
16089 wine_fn_config_test dlls/ieframe/tests ieframe_test
16090 wine_fn_config_dll ifsmgr.vxd enable_win16
16091 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
16092 wine_fn_config_dll imagehlp enable_imagehlp implib
16093 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
16094 wine_fn_config_dll imm.dll16 enable_win16
16095 wine_fn_config_dll imm32 enable_imm32 implib
16096 wine_fn_config_test dlls/imm32/tests imm32_test
16097 wine_fn_config_dll inetcomm enable_inetcomm implib
16098 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
16099 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16100 wine_fn_config_dll inetmib1 enable_inetmib1
16101 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16102 wine_fn_config_dll infosoft enable_infosoft
16103 wine_fn_config_test dlls/infosoft/tests infosoft_test
16104 wine_fn_config_dll initpki enable_initpki
16105 wine_fn_config_dll inkobj enable_inkobj
16106 wine_fn_config_dll inseng enable_inseng
16107 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16108 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16109 wine_fn_config_dll itircl enable_itircl
16110 wine_fn_config_dll itss enable_itss
16111 wine_fn_config_test dlls/itss/tests itss_test
16112 wine_fn_config_dll joy.cpl enable_joy_cpl po
16113 wine_fn_config_dll jscript enable_jscript po
16114 wine_fn_config_test dlls/jscript/tests jscript_test
16115 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
16116 wine_fn_config_test dlls/kernel32/tests kernel32_test
16117 wine_fn_config_dll keyboard.drv16 enable_win16
16118 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16119 wine_fn_config_dll ktmw32 enable_ktmw32
16120 wine_fn_config_dll loadperf enable_loadperf implib
16121 wine_fn_config_dll localspl enable_localspl po
16122 wine_fn_config_test dlls/localspl/tests localspl_test
16123 wine_fn_config_dll localui enable_localui po
16124 wine_fn_config_test dlls/localui/tests localui_test
16125 wine_fn_config_dll lz32 enable_lz32 implib
16126 wine_fn_config_test dlls/lz32/tests lz32_test
16127 wine_fn_config_dll lzexpand.dll16 enable_win16
16128 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16129 wine_fn_config_test dlls/mapi32/tests mapi32_test
16130 wine_fn_config_dll mapistub enable_mapistub
16131 wine_fn_config_dll mciavi32 enable_mciavi32
16132 wine_fn_config_dll mcicda enable_mcicda
16133 wine_fn_config_dll mciqtz32 enable_mciqtz32
16134 wine_fn_config_dll mciseq enable_mciseq
16135 wine_fn_config_dll mciwave enable_mciwave
16136 wine_fn_config_dll mgmtapi enable_mgmtapi
16137 wine_fn_config_dll midimap enable_midimap
16138 wine_fn_config_dll mlang enable_mlang implib
16139 wine_fn_config_test dlls/mlang/tests mlang_test
16140 wine_fn_config_dll mmcndmgr enable_mmcndmgr
16141 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16142 wine_fn_config_dll mmdevapi enable_mmdevapi
16143 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16144 wine_fn_config_dll mmdevldr.vxd enable_win16
16145 wine_fn_config_dll mmsystem.dll16 enable_win16
16146 wine_fn_config_dll monodebg.vxd enable_win16
16147 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16148 wine_fn_config_dll mouse.drv16 enable_win16
16149 wine_fn_config_dll mpr enable_mpr implib,po
16150 wine_fn_config_test dlls/mpr/tests mpr_test
16151 wine_fn_config_dll mprapi enable_mprapi implib
16152 wine_fn_config_dll msacm.dll16 enable_win16
16153 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16154 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16155 wine_fn_config_test dlls/msacm32/tests msacm32_test
16156 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16157 wine_fn_config_dll mscat32 enable_mscat32
16158 wine_fn_config_dll mscms enable_mscms implib
16159 wine_fn_config_test dlls/mscms/tests mscms_test
16160 wine_fn_config_dll mscoree enable_mscoree
16161 wine_fn_config_test dlls/mscoree/tests mscoree_test
16162 wine_fn_config_dll msctf enable_msctf
16163 wine_fn_config_test dlls/msctf/tests msctf_test
16164 wine_fn_config_dll msdaps enable_msdaps
16165 wine_fn_config_dll msdmo enable_msdmo implib
16166 wine_fn_config_dll msftedit enable_msftedit
16167 wine_fn_config_dll msg711.acm enable_msg711_acm
16168 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16169 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
16170 wine_fn_config_dll mshtml enable_mshtml implib,po
16171 wine_fn_config_test dlls/mshtml/tests mshtml_test
16172 wine_fn_config_dll msi enable_msi implib,po
16173 wine_fn_config_test dlls/msi/tests msi_test
16174 wine_fn_config_dll msident enable_msident
16175 wine_fn_config_dll msimg32 enable_msimg32 implib
16176 wine_fn_config_dll msimsg enable_msimsg
16177 wine_fn_config_dll msimtf enable_msimtf
16178 wine_fn_config_dll msisip enable_msisip
16179 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16180 wine_fn_config_dll msls31 enable_msls31
16181 wine_fn_config_dll msnet32 enable_msnet32
16182 wine_fn_config_dll mspatcha enable_mspatcha
16183 wine_fn_config_dll msrle32 enable_msrle32 po
16184 wine_fn_config_dll mssign32 enable_mssign32
16185 wine_fn_config_dll mssip32 enable_mssip32
16186 wine_fn_config_dll mstask enable_mstask
16187 wine_fn_config_test dlls/mstask/tests mstask_test
16188 wine_fn_config_dll msvcirt enable_msvcirt
16189 wine_fn_config_dll msvcm80 enable_msvcm80
16190 wine_fn_config_dll msvcm90 enable_msvcm90
16191 wine_fn_config_dll msvcp100 enable_msvcp100
16192 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16193 wine_fn_config_dll msvcp110 enable_msvcp110
16194 wine_fn_config_dll msvcp60 enable_msvcp60
16195 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16196 wine_fn_config_dll msvcp70 enable_msvcp70
16197 wine_fn_config_dll msvcp71 enable_msvcp71
16198 wine_fn_config_dll msvcp80 enable_msvcp80
16199 wine_fn_config_dll msvcp90 enable_msvcp90
16200 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16201 wine_fn_config_dll msvcr100 enable_msvcr100
16202 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16203 wine_fn_config_dll msvcr110 enable_msvcr110
16204 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16205 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16206 wine_fn_config_dll msvcr80 enable_msvcr80
16207 wine_fn_config_dll msvcr90 enable_msvcr90
16208 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16209 wine_fn_config_dll msvcrt enable_msvcrt implib
16210 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16211 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16212 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16213 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16214 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16215 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16216 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16217 wine_fn_config_dll msvidc32 enable_msvidc32 po
16218 wine_fn_config_dll msvideo.dll16 enable_win16
16219 wine_fn_config_dll mswsock enable_mswsock implib
16220 wine_fn_config_dll msxml enable_msxml
16221 wine_fn_config_dll msxml2 enable_msxml2
16222 wine_fn_config_dll msxml3 enable_msxml3
16223 wine_fn_config_test dlls/msxml3/tests msxml3_test
16224 wine_fn_config_dll msxml4 enable_msxml4
16225 wine_fn_config_dll msxml6 enable_msxml6
16226 wine_fn_config_dll nddeapi enable_nddeapi implib
16227 wine_fn_config_dll netapi32 enable_netapi32 implib
16228 wine_fn_config_test dlls/netapi32/tests netapi32_test
16229 wine_fn_config_dll newdev enable_newdev implib
16230 wine_fn_config_dll normaliz enable_normaliz implib
16231 wine_fn_config_dll npmshtml enable_npmshtml
16232 wine_fn_config_dll ntdll enable_ntdll implib
16233 wine_fn_config_test dlls/ntdll/tests ntdll_test
16234 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16235 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16236 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16237 wine_fn_config_dll ntprint enable_ntprint
16238 wine_fn_config_test dlls/ntprint/tests ntprint_test
16239 wine_fn_config_dll objsel enable_objsel
16240 wine_fn_config_dll odbc32 enable_odbc32 implib
16241 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16242 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16243 wine_fn_config_dll odbccu32 enable_odbccu32
16244 wine_fn_config_dll ole2.dll16 enable_win16
16245 wine_fn_config_dll ole2conv.dll16 enable_win16
16246 wine_fn_config_dll ole2disp.dll16 enable_win16
16247 wine_fn_config_dll ole2nls.dll16 enable_win16
16248 wine_fn_config_dll ole2prox.dll16 enable_win16
16249 wine_fn_config_dll ole2thk.dll16 enable_win16
16250 wine_fn_config_dll ole32 enable_ole32 implib
16251 wine_fn_config_test dlls/ole32/tests ole32_test
16252 wine_fn_config_dll oleacc enable_oleacc implib,po
16253 wine_fn_config_test dlls/oleacc/tests oleacc_test
16254 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
16255 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
16256 wine_fn_config_dll olecli.dll16 enable_win16
16257 wine_fn_config_dll olecli32 enable_olecli32 implib
16258 wine_fn_config_dll oledb32 enable_oledb32
16259 wine_fn_config_test dlls/oledb32/tests oledb32_test
16260 wine_fn_config_dll oledlg enable_oledlg implib,po
16261 wine_fn_config_dll olepro32 enable_olepro32 implib
16262 wine_fn_config_dll olesvr.dll16 enable_win16
16263 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16264 wine_fn_config_dll olethk32 enable_olethk32
16265 wine_fn_config_dll openal32 enable_openal32
16266 wine_fn_config_dll opencl enable_opencl
16267 wine_fn_config_dll opengl32 enable_opengl32 implib
16268 wine_fn_config_test dlls/opengl32/tests opengl32_test
16269 wine_fn_config_dll pdh enable_pdh implib
16270 wine_fn_config_test dlls/pdh/tests pdh_test
16271 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16272 wine_fn_config_dll pidgen enable_pidgen
16273 wine_fn_config_dll powrprof enable_powrprof implib
16274 wine_fn_config_dll printui enable_printui
16275 wine_fn_config_dll propsys enable_propsys implib
16276 wine_fn_config_test dlls/propsys/tests propsys_test
16277 wine_fn_config_dll psapi enable_psapi implib
16278 wine_fn_config_test dlls/psapi/tests psapi_test
16279 wine_fn_config_dll pstorec enable_pstorec
16280 wine_fn_config_dll qcap enable_qcap
16281 wine_fn_config_dll qedit enable_qedit
16282 wine_fn_config_test dlls/qedit/tests qedit_test
16283 wine_fn_config_dll qmgr enable_qmgr
16284 wine_fn_config_test dlls/qmgr/tests qmgr_test
16285 wine_fn_config_dll qmgrprxy enable_qmgrprxy
16286 wine_fn_config_dll quartz enable_quartz implib
16287 wine_fn_config_test dlls/quartz/tests quartz_test
16288 wine_fn_config_dll query enable_query
16289 wine_fn_config_dll rasapi16.dll16 enable_win16
16290 wine_fn_config_dll rasapi32 enable_rasapi32 implib
16291 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
16292 wine_fn_config_dll rasdlg enable_rasdlg implib
16293 wine_fn_config_dll regapi enable_regapi
16294 wine_fn_config_dll resutils enable_resutils implib
16295 wine_fn_config_dll riched20 enable_riched20 implib
16296 wine_fn_config_test dlls/riched20/tests riched20_test
16297 wine_fn_config_dll riched32 enable_riched32
16298 wine_fn_config_test dlls/riched32/tests riched32_test
16299 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
16300 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
16301 wine_fn_config_dll rsabase enable_rsabase
16302 wine_fn_config_dll rsaenh enable_rsaenh implib
16303 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
16304 wine_fn_config_dll rstrtmgr enable_rstrtmgr
16305 wine_fn_config_dll rtutils enable_rtutils implib
16306 wine_fn_config_dll samlib enable_samlib
16307 wine_fn_config_dll sane.ds enable_sane_ds po
16308 wine_fn_config_dll scarddlg enable_scarddlg
16309 wine_fn_config_dll sccbase enable_sccbase
16310 wine_fn_config_dll schannel enable_schannel
16311 wine_fn_config_test dlls/schannel/tests schannel_test
16312 wine_fn_config_dll scrrun enable_scrrun
16313 wine_fn_config_test dlls/scrrun/tests scrrun_test
16314 wine_fn_config_dll scsiport.sys enable_scsiport_sys
16315 wine_fn_config_dll secur32 enable_secur32 implib
16316 wine_fn_config_test dlls/secur32/tests secur32_test
16317 wine_fn_config_dll security enable_security
16318 wine_fn_config_dll sensapi enable_sensapi implib
16319 wine_fn_config_dll serialui enable_serialui implib,po
16320 wine_fn_config_test dlls/serialui/tests serialui_test
16321 wine_fn_config_dll setupapi enable_setupapi implib,po
16322 wine_fn_config_test dlls/setupapi/tests setupapi_test
16323 wine_fn_config_dll setupx.dll16 enable_win16
16324 wine_fn_config_dll sfc enable_sfc implib
16325 wine_fn_config_dll sfc_os enable_sfc_os implib
16326 wine_fn_config_dll shdoclc enable_shdoclc po
16327 wine_fn_config_dll shdocvw enable_shdocvw implib
16328 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
16329 wine_fn_config_dll shell.dll16 enable_win16
16330 wine_fn_config_dll shell32 enable_shell32 implib,po
16331 wine_fn_config_test dlls/shell32/tests shell32_test
16332 wine_fn_config_dll shfolder enable_shfolder implib
16333 wine_fn_config_dll shlwapi enable_shlwapi implib,po
16334 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
16335 wine_fn_config_dll slbcsp enable_slbcsp
16336 wine_fn_config_dll slc enable_slc implib
16337 wine_fn_config_dll snmpapi enable_snmpapi implib
16338 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
16339 wine_fn_config_dll softpub enable_softpub
16340 wine_fn_config_dll sound.drv16 enable_win16
16341 wine_fn_config_dll spoolss enable_spoolss implib
16342 wine_fn_config_test dlls/spoolss/tests spoolss_test
16343 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
16344 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
16345 wine_fn_config_dll sti enable_sti implib
16346 wine_fn_config_test dlls/sti/tests sti_test
16347 wine_fn_config_dll storage.dll16 enable_win16
16348 wine_fn_config_dll stress.dll16 enable_win16
16349 wine_fn_config_lib strmbase
16350 wine_fn_config_lib strmiids
16351 wine_fn_config_dll svrapi enable_svrapi
16352 wine_fn_config_dll sxs enable_sxs implib
16353 wine_fn_config_test dlls/sxs/tests sxs_test
16354 wine_fn_config_dll system.drv16 enable_win16
16355 wine_fn_config_dll t2embed enable_t2embed
16356 wine_fn_config_dll tapi32 enable_tapi32 implib
16357 wine_fn_config_dll toolhelp.dll16 enable_win16
16358 wine_fn_config_dll traffic enable_traffic
16359 wine_fn_config_dll twain.dll16 enable_win16
16360 wine_fn_config_dll twain_32 enable_twain_32
16361 wine_fn_config_test dlls/twain_32/tests twain_32_test
16362 wine_fn_config_dll typelib.dll16 enable_win16
16363 wine_fn_config_dll unicows enable_unicows implib
16364 wine_fn_config_dll updspapi enable_updspapi
16365 wine_fn_config_dll url enable_url implib
16366 wine_fn_config_dll urlmon enable_urlmon implib,po
16367 wine_fn_config_test dlls/urlmon/tests urlmon_test
16368 wine_fn_config_dll usbd.sys enable_usbd_sys implib
16369 wine_fn_config_dll user.exe16 enable_win16
16370 wine_fn_config_dll user32 enable_user32 implib,po
16371 wine_fn_config_test dlls/user32/tests user32_test
16372 wine_fn_config_dll userenv enable_userenv implib
16373 wine_fn_config_test dlls/userenv/tests userenv_test
16374 wine_fn_config_dll usp10 enable_usp10 implib
16375 wine_fn_config_test dlls/usp10/tests usp10_test
16376 wine_fn_config_lib uuid
16377 wine_fn_config_dll uxtheme enable_uxtheme implib
16378 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
16379 wine_fn_config_dll vbscript enable_vbscript
16380 wine_fn_config_test dlls/vbscript/tests vbscript_test
16381 wine_fn_config_dll vcomp enable_vcomp
16382 wine_fn_config_dll vcomp100 enable_vcomp100
16383 wine_fn_config_dll vcomp90 enable_vcomp90
16384 wine_fn_config_dll vdhcp.vxd enable_win16
16385 wine_fn_config_dll vdmdbg enable_vdmdbg implib
16386 wine_fn_config_dll ver.dll16 enable_win16
16387 wine_fn_config_dll version enable_version implib
16388 wine_fn_config_test dlls/version/tests version_test
16389 wine_fn_config_dll vmm.vxd enable_win16
16390 wine_fn_config_dll vnbt.vxd enable_win16
16391 wine_fn_config_dll vnetbios.vxd enable_win16
16392 wine_fn_config_dll vtdapi.vxd enable_win16
16393 wine_fn_config_dll vwin32.vxd enable_win16
16394 wine_fn_config_dll w32skrnl enable_win16
16395 wine_fn_config_dll w32sys.dll16 enable_win16
16396 wine_fn_config_dll wbemprox enable_wbemprox
16397 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
16398 wine_fn_config_dll webservices enable_webservices implib
16399 wine_fn_config_dll wer enable_wer implib
16400 wine_fn_config_test dlls/wer/tests wer_test
16401 wine_fn_config_dll wevtapi enable_wevtapi
16402 wine_fn_config_dll wiaservc enable_wiaservc
16403 wine_fn_config_dll win32s16.dll16 enable_win16
16404 wine_fn_config_dll win87em.dll16 enable_win16
16405 wine_fn_config_dll winaspi.dll16 enable_win16
16406 wine_fn_config_dll windebug.dll16 enable_win16
16407 wine_fn_config_dll windowscodecs enable_windowscodecs implib
16408 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
16409 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
16410 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
16411 wine_fn_config_dll winealsa.drv enable_winealsa_drv
16412 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
16413 wine_fn_config_lib winecrt0
16414 wine_fn_config_dll wined3d enable_wined3d implib
16415 wine_fn_config_dll winegstreamer enable_winegstreamer
16416 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
16417 wine_fn_config_dll winemac.drv enable_winemac_drv
16418 wine_fn_config_dll winemapi enable_winemapi
16419 wine_fn_config_dll winemp3.acm enable_winemp3_acm
16420 wine_fn_config_dll wineoss.drv enable_wineoss_drv
16421 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
16422 wine_fn_config_dll wineps16.drv16 enable_win16
16423 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
16424 wine_fn_config_dll winex11.drv enable_winex11_drv
16425 wine_fn_config_dll wing.dll16 enable_win16
16426 wine_fn_config_dll wing32 enable_wing32
16427 wine_fn_config_dll winhttp enable_winhttp implib
16428 wine_fn_config_test dlls/winhttp/tests winhttp_test
16429 wine_fn_config_dll wininet enable_wininet implib,po
16430 wine_fn_config_test dlls/wininet/tests wininet_test
16431 wine_fn_config_dll winmm enable_winmm implib,po
16432 wine_fn_config_test dlls/winmm/tests winmm_test
16433 wine_fn_config_dll winnls.dll16 enable_win16
16434 wine_fn_config_dll winnls32 enable_winnls32 implib
16435 wine_fn_config_dll winscard enable_winscard implib
16436 wine_fn_config_dll winsock.dll16 enable_win16
16437 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
16438 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
16439 wine_fn_config_dll winsta enable_winsta
16440 wine_fn_config_dll wintab.dll16 enable_win16
16441 wine_fn_config_dll wintab32 enable_wintab32 implib
16442 wine_fn_config_test dlls/wintab32/tests wintab32_test
16443 wine_fn_config_dll wintrust enable_wintrust implib
16444 wine_fn_config_test dlls/wintrust/tests wintrust_test
16445 wine_fn_config_dll wlanapi enable_wlanapi
16446 wine_fn_config_dll wldap32 enable_wldap32 implib,po
16447 wine_fn_config_test dlls/wldap32/tests wldap32_test
16448 wine_fn_config_dll wmi enable_wmi
16449 wine_fn_config_dll wmiutils enable_wmiutils
16450 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
16451 wine_fn_config_dll wmvcore enable_wmvcore
16452 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
16453 wine_fn_config_dll wow32 enable_win16 implib
16454 wine_fn_config_dll ws2_32 enable_ws2_32 implib
16455 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
16456 wine_fn_config_dll wshom.ocx enable_wshom_ocx
16457 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
16458 wine_fn_config_dll wsnmp32 enable_wsnmp32
16459 wine_fn_config_dll wsock32 enable_wsock32 implib
16460 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
16461 wine_fn_config_dll wuapi enable_wuapi
16462 wine_fn_config_dll wuaueng enable_wuaueng
16463 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
16464 wine_fn_config_dll xinput1_1 enable_xinput1_1
16465 wine_fn_config_dll xinput1_2 enable_xinput1_2
16466 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
16467 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
16468 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
16469 wine_fn_config_dll xmllite enable_xmllite
16470 wine_fn_config_test dlls/xmllite/tests xmllite_test
16471 wine_fn_config_dll xolehlp enable_xolehlp
16472 wine_fn_config_dll xpsprint enable_xpsprint
16473 wine_fn_config_dll xpssvcs enable_xpssvcs
16474 wine_fn_config_makefile documentation enable_documentation
16475 wine_fn_config_makefile fonts enable_fonts install-lib
16476 wine_fn_config_makefile include enable_include install-dev
16477 wine_fn_config_makefile libs/port enable_libs_port
16478 wine_fn_config_makefile libs/wine enable_libs_wine
16479 wine_fn_config_makefile libs/wpp enable_libs_wpp
16480 wine_fn_config_makefile loader enable_loader install-lib,manpage
16481 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
16482 wine_fn_config_program attrib enable_attrib install,po
16483 wine_fn_config_program cabarc enable_cabarc install
16484 wine_fn_config_program cacls enable_cacls install
16485 wine_fn_config_program clock enable_clock install,po
16486 wine_fn_config_program cmd enable_cmd install,po
16487 wine_fn_config_test programs/cmd/tests cmd.exe_test
16488 wine_fn_config_program conhost enable_conhost install
16489 wine_fn_config_program control enable_control install
16490 wine_fn_config_program cscript enable_cscript install
16491 wine_fn_config_program dxdiag enable_dxdiag install,po
16492 wine_fn_config_program eject enable_eject install
16493 wine_fn_config_program expand enable_expand install
16494 wine_fn_config_program explorer enable_explorer install,po
16495 wine_fn_config_program extrac32 enable_extrac32 install
16496 wine_fn_config_program findstr enable_findstr install
16497 wine_fn_config_program hh enable_hh install
16498 wine_fn_config_program hostname enable_hostname install,po
16499 wine_fn_config_program icinfo enable_icinfo install
16500 wine_fn_config_program iexplore enable_iexplore install
16501 wine_fn_config_program ipconfig enable_ipconfig install,po
16502 wine_fn_config_program lodctr enable_lodctr install
16503 wine_fn_config_program mofcomp enable_mofcomp install
16504 wine_fn_config_program mshta enable_mshta install
16505 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
16506 wine_fn_config_program net enable_net install,po
16507 wine_fn_config_program netsh enable_netsh install
16508 wine_fn_config_program netstat enable_netstat install,po
16509 wine_fn_config_program ngen enable_ngen install
16510 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
16511 wine_fn_config_program oleview enable_oleview install,po
16512 wine_fn_config_program ping enable_ping install
16513 wine_fn_config_program plugplay enable_plugplay install
16514 wine_fn_config_program presentationfontcache enable_presentationfontcache install
16515 wine_fn_config_program progman enable_progman install,po
16516 wine_fn_config_program reg enable_reg install,po
16517 wine_fn_config_program regasm enable_regasm install
16518 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
16519 wine_fn_config_test programs/regedit/tests regedit.exe_test
16520 wine_fn_config_program regsvcs enable_regsvcs install
16521 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
16522 wine_fn_config_program rpcss enable_rpcss install
16523 wine_fn_config_program rundll.exe16 enable_win16 install
16524 wine_fn_config_program rundll32 enable_rundll32 install
16525 wine_fn_config_program sc enable_sc install
16526 wine_fn_config_program schtasks enable_schtasks install
16527 wine_fn_config_program secedit enable_secedit install
16528 wine_fn_config_program servicemodelreg enable_servicemodelreg install
16529 wine_fn_config_program services enable_services install
16530 wine_fn_config_test programs/services/tests services.exe_test
16531 wine_fn_config_program spoolsv enable_spoolsv install
16532 wine_fn_config_program start enable_start install,po
16533 wine_fn_config_program svchost enable_svchost install
16534 wine_fn_config_program taskkill enable_taskkill install,po
16535 wine_fn_config_program taskmgr enable_taskmgr install,po
16536 wine_fn_config_program termsv enable_termsv install
16537 wine_fn_config_program uninstaller enable_uninstaller install,po
16538 wine_fn_config_program unlodctr enable_unlodctr install
16539 wine_fn_config_program view enable_view install,po
16540 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
16541 wine_fn_config_program winebrowser enable_winebrowser install
16542 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
16543 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
16544 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
16545 wine_fn_config_program winedevice enable_winedevice install
16546 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
16547 wine_fn_config_program winemenubuilder enable_winemenubuilder install
16548 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
16549 wine_fn_config_program winemsibuilder enable_winemsibuilder install
16550 wine_fn_config_program winepath enable_winepath install,installbin,manpage
16551 wine_fn_config_program winetest enable_winetest
16552 wine_fn_config_program winevdm enable_win16 install
16553 wine_fn_config_program winhelp.exe16 enable_win16 install
16554 wine_fn_config_program winhlp32 enable_winhlp32 install,po
16555 wine_fn_config_program winoldap.mod16 enable_win16 install
16556 wine_fn_config_program winver enable_winver install
16557 wine_fn_config_program wmic enable_wmic install,po
16558 wine_fn_config_program wordpad enable_wordpad install,po
16559 wine_fn_config_program write enable_write install,po
16560 wine_fn_config_program wscript enable_wscript install
16561 wine_fn_config_test programs/wscript/tests wscript.exe_test
16562 wine_fn_config_program wusa enable_wusa install
16563 wine_fn_config_program xcopy enable_xcopy install,po
16564 wine_fn_config_makefile server enable_server install-lib,manpage
16565 wine_fn_config_tool tools install-dev,install-lib,manpage
16566 wine_fn_config_tool tools/widl install-dev,manpage
16567 wine_fn_config_tool tools/winebuild install-dev,manpage
16568 wine_fn_config_tool tools/winedump install-dev,manpage
16569 wine_fn_config_tool tools/winegcc install-dev,manpage
16570 wine_fn_config_tool tools/wmc install-dev,manpage
16571 wine_fn_config_tool tools/wrc install-dev,manpage
16573 LINGUAS="\
16574 ar \
16575 bg \
16576 ca \
16577 cs \
16578 da \
16579 de \
16580 el \
16581 en \
16582 en_US \
16583 eo \
16584 es \
16585 fa \
16586 fi \
16587 fr \
16588 he \
16589 hi \
16590 hu \
16591 it \
16592 ja \
16593 ko \
16594 lt \
16595 ml \
16596 nb_NO \
16597 nl \
16598 or \
16599 pa \
16600 pl \
16601 pt_BR \
16602 pt_PT \
16603 rm \
16604 ro \
16605 ru \
16606 sk \
16607 sl \
16608 sr_RS@cyrillic \
16609 sr_RS@latin \
16610 sv \
16611 te \
16612 th \
16613 tr \
16614 uk \
16615 wa \
16616 zh_CN \
16617 zh_TW"
16621 ac_config_commands="$ac_config_commands Makefile"
16624 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
16628 if test "x$enable_maintainer_mode" = xyes
16629 then
16630 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
16631 cd \$(srcdir) && autoconf --warnings=all
16632 \$(srcdir)/include/config.h.in: include/stamp-h.in
16633 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
16634 cd \$(srcdir) && autoheader --warnings=all
16635 @echo timestamp > \$@"
16638 if test "x$with_gettextpo" = xyes
16639 then
16640 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
16641 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
16642 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
16643 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
16644 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
16645 msgcat -o \$@ \$(ALL_POT_FILES)"
16648 if test "$MSGFMT" != false
16649 then
16650 PORCFLAGS="--po-dir=\$(top_builddir)/po"
16652 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
16653 else
16654 LINGUAS=
16657 if test "x$enable_tools" != xno
16658 then
16659 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
16660 clean:: __clean__
16661 \$(RM) tools/makedep\$(EXEEXT)"
16664 if test -n "$with_wine64"
16665 then
16666 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
16667 fonts server tools:
16668 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
16669 $with_wine64/loader/wine:
16670 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
16671 $with_wine64/loader/wine-preloader:
16672 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
16673 clean::
16674 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
16677 cat >confcache <<\_ACEOF
16678 # This file is a shell script that caches the results of configure
16679 # tests run on this system so they can be shared between configure
16680 # scripts and configure runs, see configure's option --config-cache.
16681 # It is not useful on other systems. If it contains results you don't
16682 # want to keep, you may remove or edit it.
16684 # config.status only pays attention to the cache file if you give it
16685 # the --recheck option to rerun configure.
16687 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16688 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16689 # following values.
16691 _ACEOF
16693 # The following way of writing the cache mishandles newlines in values,
16694 # but we know of no workaround that is simple, portable, and efficient.
16695 # So, we kill variables containing newlines.
16696 # Ultrix sh set writes to stderr and can't be redirected directly,
16697 # and sets the high bit in the cache file unless we assign to the vars.
16699 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16700 eval ac_val=\$$ac_var
16701 case $ac_val in #(
16702 *${as_nl}*)
16703 case $ac_var in #(
16704 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16705 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16706 esac
16707 case $ac_var in #(
16708 _ | IFS | as_nl) ;; #(
16709 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16710 *) { eval $ac_var=; unset $ac_var;} ;;
16711 esac ;;
16712 esac
16713 done
16715 (set) 2>&1 |
16716 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16717 *${as_nl}ac_space=\ *)
16718 # `set' does not quote correctly, so add quotes: double-quote
16719 # substitution turns \\\\ into \\, and sed turns \\ into \.
16720 sed -n \
16721 "s/'/'\\\\''/g;
16722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16723 ;; #(
16725 # `set' quotes correctly as required by POSIX, so do not add quotes.
16726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16728 esac |
16729 sort
16731 sed '
16732 /^ac_cv_env_/b end
16733 t clear
16734 :clear
16735 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16736 t end
16737 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16738 :end' >>confcache
16739 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16740 if test -w "$cache_file"; then
16741 if test "x$cache_file" != "x/dev/null"; then
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16743 $as_echo "$as_me: updating cache $cache_file" >&6;}
16744 if test ! -f "$cache_file" || test -h "$cache_file"; then
16745 cat confcache >"$cache_file"
16746 else
16747 case $cache_file in #(
16748 */* | ?:*)
16749 mv -f confcache "$cache_file"$$ &&
16750 mv -f "$cache_file"$$ "$cache_file" ;; #(
16752 mv -f confcache "$cache_file" ;;
16753 esac
16756 else
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16758 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16761 rm -f confcache
16763 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16764 # Let make expand exec_prefix.
16765 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16767 DEFS=-DHAVE_CONFIG_H
16769 ac_libobjs=
16770 ac_ltlibobjs=
16772 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16773 # 1. Remove the extension, and $U if already installed.
16774 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16775 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16776 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16777 # will be set to the directory where LIBOBJS objects are built.
16778 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16779 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16780 done
16781 LIBOBJS=$ac_libobjs
16783 LTLIBOBJS=$ac_ltlibobjs
16787 : "${CONFIG_STATUS=./config.status}"
16788 ac_write_fail=0
16789 ac_clean_files_save=$ac_clean_files
16790 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16792 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16793 as_write_fail=0
16794 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16795 #! $SHELL
16796 # Generated by $as_me.
16797 # Run this file to recreate the current configuration.
16798 # Compiler output produced by configure, useful for debugging
16799 # configure, is in config.log if it exists.
16801 debug=false
16802 ac_cs_recheck=false
16803 ac_cs_silent=false
16805 SHELL=\${CONFIG_SHELL-$SHELL}
16806 export SHELL
16807 _ASEOF
16808 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16809 ## -------------------- ##
16810 ## M4sh Initialization. ##
16811 ## -------------------- ##
16813 # Be more Bourne compatible
16814 DUALCASE=1; export DUALCASE # for MKS sh
16815 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16816 emulate sh
16817 NULLCMD=:
16818 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16819 # is contrary to our usage. Disable this feature.
16820 alias -g '${1+"$@"}'='"$@"'
16821 setopt NO_GLOB_SUBST
16822 else
16823 case `(set -o) 2>/dev/null` in #(
16824 *posix*) :
16825 set -o posix ;; #(
16826 *) :
16828 esac
16832 as_nl='
16834 export as_nl
16835 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16836 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16837 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16838 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16839 # Prefer a ksh shell builtin over an external printf program on Solaris,
16840 # but without wasting forks for bash or zsh.
16841 if test -z "$BASH_VERSION$ZSH_VERSION" \
16842 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16843 as_echo='print -r --'
16844 as_echo_n='print -rn --'
16845 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16846 as_echo='printf %s\n'
16847 as_echo_n='printf %s'
16848 else
16849 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16850 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16851 as_echo_n='/usr/ucb/echo -n'
16852 else
16853 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16854 as_echo_n_body='eval
16855 arg=$1;
16856 case $arg in #(
16857 *"$as_nl"*)
16858 expr "X$arg" : "X\\(.*\\)$as_nl";
16859 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16860 esac;
16861 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16863 export as_echo_n_body
16864 as_echo_n='sh -c $as_echo_n_body as_echo'
16866 export as_echo_body
16867 as_echo='sh -c $as_echo_body as_echo'
16870 # The user is always right.
16871 if test "${PATH_SEPARATOR+set}" != set; then
16872 PATH_SEPARATOR=:
16873 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16874 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16875 PATH_SEPARATOR=';'
16880 # IFS
16881 # We need space, tab and new line, in precisely that order. Quoting is
16882 # there to prevent editors from complaining about space-tab.
16883 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16884 # splitting by setting IFS to empty value.)
16885 IFS=" "" $as_nl"
16887 # Find who we are. Look in the path if we contain no directory separator.
16888 as_myself=
16889 case $0 in #((
16890 *[\\/]* ) as_myself=$0 ;;
16891 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16892 for as_dir in $PATH
16894 IFS=$as_save_IFS
16895 test -z "$as_dir" && as_dir=.
16896 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16897 done
16898 IFS=$as_save_IFS
16901 esac
16902 # We did not find ourselves, most probably we were run as `sh COMMAND'
16903 # in which case we are not to be found in the path.
16904 if test "x$as_myself" = x; then
16905 as_myself=$0
16907 if test ! -f "$as_myself"; then
16908 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16909 exit 1
16912 # Unset variables that we do not need and which cause bugs (e.g. in
16913 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16914 # suppresses any "Segmentation fault" message there. '((' could
16915 # trigger a bug in pdksh 5.2.14.
16916 for as_var in BASH_ENV ENV MAIL MAILPATH
16917 do eval test x\${$as_var+set} = xset \
16918 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16919 done
16920 PS1='$ '
16921 PS2='> '
16922 PS4='+ '
16924 # NLS nuisances.
16925 LC_ALL=C
16926 export LC_ALL
16927 LANGUAGE=C
16928 export LANGUAGE
16930 # CDPATH.
16931 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16934 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16935 # ----------------------------------------
16936 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16937 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16938 # script with STATUS, using 1 if that was 0.
16939 as_fn_error ()
16941 as_status=$1; test $as_status -eq 0 && as_status=1
16942 if test "$4"; then
16943 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16944 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16946 $as_echo "$as_me: error: $2" >&2
16947 as_fn_exit $as_status
16948 } # as_fn_error
16951 # as_fn_set_status STATUS
16952 # -----------------------
16953 # Set $? to STATUS, without forking.
16954 as_fn_set_status ()
16956 return $1
16957 } # as_fn_set_status
16959 # as_fn_exit STATUS
16960 # -----------------
16961 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16962 as_fn_exit ()
16964 set +e
16965 as_fn_set_status $1
16966 exit $1
16967 } # as_fn_exit
16969 # as_fn_unset VAR
16970 # ---------------
16971 # Portably unset VAR.
16972 as_fn_unset ()
16974 { eval $1=; unset $1;}
16976 as_unset=as_fn_unset
16977 # as_fn_append VAR VALUE
16978 # ----------------------
16979 # Append the text in VALUE to the end of the definition contained in VAR. Take
16980 # advantage of any shell optimizations that allow amortized linear growth over
16981 # repeated appends, instead of the typical quadratic growth present in naive
16982 # implementations.
16983 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16984 eval 'as_fn_append ()
16986 eval $1+=\$2
16988 else
16989 as_fn_append ()
16991 eval $1=\$$1\$2
16993 fi # as_fn_append
16995 # as_fn_arith ARG...
16996 # ------------------
16997 # Perform arithmetic evaluation on the ARGs, and store the result in the
16998 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16999 # must be portable across $(()) and expr.
17000 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17001 eval 'as_fn_arith ()
17003 as_val=$(( $* ))
17005 else
17006 as_fn_arith ()
17008 as_val=`expr "$@" || test $? -eq 1`
17010 fi # as_fn_arith
17013 if expr a : '\(a\)' >/dev/null 2>&1 &&
17014 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17015 as_expr=expr
17016 else
17017 as_expr=false
17020 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17021 as_basename=basename
17022 else
17023 as_basename=false
17026 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17027 as_dirname=dirname
17028 else
17029 as_dirname=false
17032 as_me=`$as_basename -- "$0" ||
17033 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17034 X"$0" : 'X\(//\)$' \| \
17035 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17036 $as_echo X/"$0" |
17037 sed '/^.*\/\([^/][^/]*\)\/*$/{
17038 s//\1/
17041 /^X\/\(\/\/\)$/{
17042 s//\1/
17045 /^X\/\(\/\).*/{
17046 s//\1/
17049 s/.*/./; q'`
17051 # Avoid depending upon Character Ranges.
17052 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17053 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17054 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17055 as_cr_digits='0123456789'
17056 as_cr_alnum=$as_cr_Letters$as_cr_digits
17058 ECHO_C= ECHO_N= ECHO_T=
17059 case `echo -n x` in #(((((
17060 -n*)
17061 case `echo 'xy\c'` in
17062 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17063 xy) ECHO_C='\c';;
17064 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17065 ECHO_T=' ';;
17066 esac;;
17068 ECHO_N='-n';;
17069 esac
17071 rm -f conf$$ conf$$.exe conf$$.file
17072 if test -d conf$$.dir; then
17073 rm -f conf$$.dir/conf$$.file
17074 else
17075 rm -f conf$$.dir
17076 mkdir conf$$.dir 2>/dev/null
17078 if (echo >conf$$.file) 2>/dev/null; then
17079 if ln -s conf$$.file conf$$ 2>/dev/null; then
17080 as_ln_s='ln -s'
17081 # ... but there are two gotchas:
17082 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17083 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17084 # In both cases, we have to default to `cp -pR'.
17085 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17086 as_ln_s='cp -pR'
17087 elif ln conf$$.file conf$$ 2>/dev/null; then
17088 as_ln_s=ln
17089 else
17090 as_ln_s='cp -pR'
17092 else
17093 as_ln_s='cp -pR'
17095 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17096 rmdir conf$$.dir 2>/dev/null
17099 # as_fn_mkdir_p
17100 # -------------
17101 # Create "$as_dir" as a directory, including parents if necessary.
17102 as_fn_mkdir_p ()
17105 case $as_dir in #(
17106 -*) as_dir=./$as_dir;;
17107 esac
17108 test -d "$as_dir" || eval $as_mkdir_p || {
17109 as_dirs=
17110 while :; do
17111 case $as_dir in #(
17112 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17113 *) as_qdir=$as_dir;;
17114 esac
17115 as_dirs="'$as_qdir' $as_dirs"
17116 as_dir=`$as_dirname -- "$as_dir" ||
17117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17118 X"$as_dir" : 'X\(//\)[^/]' \| \
17119 X"$as_dir" : 'X\(//\)$' \| \
17120 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17121 $as_echo X"$as_dir" |
17122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17123 s//\1/
17126 /^X\(\/\/\)[^/].*/{
17127 s//\1/
17130 /^X\(\/\/\)$/{
17131 s//\1/
17134 /^X\(\/\).*/{
17135 s//\1/
17138 s/.*/./; q'`
17139 test -d "$as_dir" && break
17140 done
17141 test -z "$as_dirs" || eval "mkdir $as_dirs"
17142 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17145 } # as_fn_mkdir_p
17146 if mkdir -p . 2>/dev/null; then
17147 as_mkdir_p='mkdir -p "$as_dir"'
17148 else
17149 test -d ./-p && rmdir ./-p
17150 as_mkdir_p=false
17154 # as_fn_executable_p FILE
17155 # -----------------------
17156 # Test if FILE is an executable regular file.
17157 as_fn_executable_p ()
17159 test -f "$1" && test -x "$1"
17160 } # as_fn_executable_p
17161 as_test_x='test -x'
17162 as_executable_p=as_fn_executable_p
17164 # Sed expression to map a string onto a valid CPP name.
17165 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17167 # Sed expression to map a string onto a valid variable name.
17168 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17171 exec 6>&1
17172 ## ----------------------------------- ##
17173 ## Main body of $CONFIG_STATUS script. ##
17174 ## ----------------------------------- ##
17175 _ASEOF
17176 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17179 # Save the log message, to keep $0 and so on meaningful, and to
17180 # report actual input values of CONFIG_FILES etc. instead of their
17181 # values after options handling.
17182 ac_log="
17183 This file was extended by Wine $as_me 1.5.29, which was
17184 generated by GNU Autoconf 2.69. Invocation command line was
17186 CONFIG_FILES = $CONFIG_FILES
17187 CONFIG_HEADERS = $CONFIG_HEADERS
17188 CONFIG_LINKS = $CONFIG_LINKS
17189 CONFIG_COMMANDS = $CONFIG_COMMANDS
17190 $ $0 $@
17192 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17195 _ACEOF
17197 case $ac_config_files in *"
17198 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17199 esac
17201 case $ac_config_headers in *"
17202 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17203 esac
17206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17207 # Files that config.status was made for.
17208 config_files="$ac_config_files"
17209 config_headers="$ac_config_headers"
17210 config_links="$ac_config_links"
17211 config_commands="$ac_config_commands"
17213 _ACEOF
17215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17216 ac_cs_usage="\
17217 \`$as_me' instantiates files and other configuration actions
17218 from templates according to the current configuration. Unless the files
17219 and actions are specified as TAGs, all are instantiated by default.
17221 Usage: $0 [OPTION]... [TAG]...
17223 -h, --help print this help, then exit
17224 -V, --version print version number and configuration settings, then exit
17225 --config print configuration, then exit
17226 -q, --quiet, --silent
17227 do not print progress messages
17228 -d, --debug don't remove temporary files
17229 --recheck update $as_me by reconfiguring in the same conditions
17230 --file=FILE[:TEMPLATE]
17231 instantiate the configuration file FILE
17232 --header=FILE[:TEMPLATE]
17233 instantiate the configuration header FILE
17235 Configuration files:
17236 $config_files
17238 Configuration headers:
17239 $config_headers
17241 Configuration links:
17242 $config_links
17244 Configuration commands:
17245 $config_commands
17247 Report bugs to <wine-devel@winehq.org>.
17248 Wine home page: <http://www.winehq.org>."
17250 _ACEOF
17251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17252 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17253 ac_cs_version="\\
17254 Wine config.status 1.5.29
17255 configured by $0, generated by GNU Autoconf 2.69,
17256 with options \\"\$ac_cs_config\\"
17258 Copyright (C) 2012 Free Software Foundation, Inc.
17259 This config.status script is free software; the Free Software Foundation
17260 gives unlimited permission to copy, distribute and modify it."
17262 ac_pwd='$ac_pwd'
17263 srcdir='$srcdir'
17264 INSTALL='$INSTALL'
17265 test -n "\$AWK" || AWK=awk
17266 _ACEOF
17268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17269 # The default lists apply if the user does not specify any file.
17270 ac_need_defaults=:
17271 while test $# != 0
17273 case $1 in
17274 --*=?*)
17275 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17276 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17277 ac_shift=:
17279 --*=)
17280 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17281 ac_optarg=
17282 ac_shift=:
17285 ac_option=$1
17286 ac_optarg=$2
17287 ac_shift=shift
17289 esac
17291 case $ac_option in
17292 # Handling of the options.
17293 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17294 ac_cs_recheck=: ;;
17295 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17296 $as_echo "$ac_cs_version"; exit ;;
17297 --config | --confi | --conf | --con | --co | --c )
17298 $as_echo "$ac_cs_config"; exit ;;
17299 --debug | --debu | --deb | --de | --d | -d )
17300 debug=: ;;
17301 --file | --fil | --fi | --f )
17302 $ac_shift
17303 case $ac_optarg in
17304 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17305 '') as_fn_error $? "missing file argument" ;;
17306 esac
17307 as_fn_append CONFIG_FILES " '$ac_optarg'"
17308 ac_need_defaults=false;;
17309 --header | --heade | --head | --hea )
17310 $ac_shift
17311 case $ac_optarg in
17312 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17313 esac
17314 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17315 ac_need_defaults=false;;
17316 --he | --h)
17317 # Conflict between --help and --header
17318 as_fn_error $? "ambiguous option: \`$1'
17319 Try \`$0 --help' for more information.";;
17320 --help | --hel | -h )
17321 $as_echo "$ac_cs_usage"; exit ;;
17322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17323 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17324 ac_cs_silent=: ;;
17326 # This is an error.
17327 -*) as_fn_error $? "unrecognized option: \`$1'
17328 Try \`$0 --help' for more information." ;;
17330 *) as_fn_append ac_config_targets " $1"
17331 ac_need_defaults=false ;;
17333 esac
17334 shift
17335 done
17337 ac_configure_extra_args=
17339 if $ac_cs_silent; then
17340 exec 6>/dev/null
17341 ac_configure_extra_args="$ac_configure_extra_args --silent"
17344 _ACEOF
17345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17346 if \$ac_cs_recheck; then
17347 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17348 shift
17349 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17350 CONFIG_SHELL='$SHELL'
17351 export CONFIG_SHELL
17352 exec "\$@"
17355 _ACEOF
17356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17357 exec 5>>config.log
17359 echo
17360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17361 ## Running $as_me. ##
17362 _ASBOX
17363 $as_echo "$ac_log"
17364 } >&5
17366 _ACEOF
17367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17369 # INIT-COMMANDS
17371 wine_fn_output_makefile ()
17373 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
17374 $ALL_MAKEFILE_DEPENDS
17375 _WINE_EOF
17376 as_fn_error $? "could not create Makefile" "$LINENO" 5
17379 _ACEOF
17381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17383 # Handling of arguments.
17384 for ac_config_target in $ac_config_targets
17386 case $ac_config_target in
17387 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17388 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
17389 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
17390 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
17391 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
17392 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
17393 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
17394 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
17395 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
17396 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
17397 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
17398 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
17399 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
17400 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
17401 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
17402 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
17403 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
17404 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
17405 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17406 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17407 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
17408 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17409 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
17410 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17411 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
17412 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
17414 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17415 esac
17416 done
17419 # If the user did not use the arguments to specify the items to instantiate,
17420 # then the envvar interface is used. Set only those that are not.
17421 # We use the long form for the default assignment because of an extremely
17422 # bizarre bug on SunOS 4.1.3.
17423 if $ac_need_defaults; then
17424 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17425 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17426 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17427 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17430 # Have a temporary directory for convenience. Make it in the build tree
17431 # simply because there is no reason against having it here, and in addition,
17432 # creating and moving files from /tmp can sometimes cause problems.
17433 # Hook for its removal unless debugging.
17434 # Note that there is a small window in which the directory will not be cleaned:
17435 # after its creation but before its name has been assigned to `$tmp'.
17436 $debug ||
17438 tmp= ac_tmp=
17439 trap 'exit_status=$?
17440 : "${ac_tmp:=$tmp}"
17441 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17443 trap 'as_fn_exit 1' 1 2 13 15
17445 # Create a (secure) tmp directory for tmp files.
17448 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17449 test -d "$tmp"
17450 } ||
17452 tmp=./conf$$-$RANDOM
17453 (umask 077 && mkdir "$tmp")
17454 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17455 ac_tmp=$tmp
17457 # Set up the scripts for CONFIG_FILES section.
17458 # No need to generate them if there are no CONFIG_FILES.
17459 # This happens for instance with `./config.status config.h'.
17460 if test -n "$CONFIG_FILES"; then
17462 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17463 ac_cs_awk_getline=:
17464 ac_cs_awk_pipe_init=
17465 ac_cs_awk_read_file='
17466 while ((getline aline < (F[key])) > 0)
17467 print(aline)
17468 close(F[key])'
17469 ac_cs_awk_pipe_fini=
17470 else
17471 ac_cs_awk_getline=false
17472 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17473 ac_cs_awk_read_file='
17474 print "|#_!!_#|"
17475 print "cat " F[key] " &&"
17476 '$ac_cs_awk_pipe_init
17477 # The final `:' finishes the AND list.
17478 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17480 ac_cr=`echo X | tr X '\015'`
17481 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17482 # But we know of no other shell where ac_cr would be empty at this
17483 # point, so we can use a bashism as a fallback.
17484 if test "x$ac_cr" = x; then
17485 eval ac_cr=\$\'\\r\'
17487 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17488 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17489 ac_cs_awk_cr='\\r'
17490 else
17491 ac_cs_awk_cr=$ac_cr
17494 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17495 _ACEOF
17497 # Create commands to substitute file output variables.
17499 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17500 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17501 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17502 echo "_ACAWK" &&
17503 echo "_ACEOF"
17504 } >conf$$files.sh &&
17505 . ./conf$$files.sh ||
17506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17507 rm -f conf$$files.sh
17510 echo "cat >conf$$subs.awk <<_ACEOF" &&
17511 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17512 echo "_ACEOF"
17513 } >conf$$subs.sh ||
17514 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17515 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17516 ac_delim='%!_!# '
17517 for ac_last_try in false false false false false :; do
17518 . ./conf$$subs.sh ||
17519 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17521 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17522 if test $ac_delim_n = $ac_delim_num; then
17523 break
17524 elif $ac_last_try; then
17525 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17526 else
17527 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17529 done
17530 rm -f conf$$subs.sh
17532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17533 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17534 _ACEOF
17535 sed -n '
17537 s/^/S["/; s/!.*/"]=/
17540 s/^[^!]*!//
17541 :repl
17542 t repl
17543 s/'"$ac_delim"'$//
17544 t delim
17547 s/\(.\{148\}\)..*/\1/
17548 t more1
17549 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17552 b repl
17553 :more1
17554 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17557 s/.\{148\}//
17558 t nl
17559 :delim
17561 s/\(.\{148\}\)..*/\1/
17562 t more2
17563 s/["\\]/\\&/g; s/^/"/; s/$/"/
17566 :more2
17567 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17570 s/.\{148\}//
17571 t delim
17572 ' <conf$$subs.awk | sed '
17573 /^[^""]/{
17575 s/\n//
17577 ' >>$CONFIG_STATUS || ac_write_fail=1
17578 rm -f conf$$subs.awk
17579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17580 _ACAWK
17581 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17582 for (key in S) S_is_set[key] = 1
17583 FS = "\a"
17584 \$ac_cs_awk_pipe_init
17587 line = $ 0
17588 nfields = split(line, field, "@")
17589 substed = 0
17590 len = length(field[1])
17591 for (i = 2; i < nfields; i++) {
17592 key = field[i]
17593 keylen = length(key)
17594 if (S_is_set[key]) {
17595 value = S[key]
17596 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17597 len += length(value) + length(field[++i])
17598 substed = 1
17599 } else
17600 len += 1 + keylen
17602 if (nfields == 3 && !substed) {
17603 key = field[2]
17604 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17605 \$ac_cs_awk_read_file
17606 next
17609 print line
17611 \$ac_cs_awk_pipe_fini
17612 _ACAWK
17613 _ACEOF
17614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17615 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17616 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17617 else
17619 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17620 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17621 _ACEOF
17623 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17624 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17625 # trailing colons and then remove the whole line if VPATH becomes empty
17626 # (actually we leave an empty line to preserve line numbers).
17627 if test "x$srcdir" = x.; then
17628 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17630 s///
17631 s/^/:/
17632 s/[ ]*$/:/
17633 s/:\$(srcdir):/:/g
17634 s/:\${srcdir}:/:/g
17635 s/:@srcdir@:/:/g
17636 s/^:*//
17637 s/:*$//
17639 s/\(=[ ]*\).*/\1/
17641 s/\n//
17642 s/^[^=]*=[ ]*$//
17646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17647 fi # test -n "$CONFIG_FILES"
17649 # Set up the scripts for CONFIG_HEADERS section.
17650 # No need to generate them if there are no CONFIG_HEADERS.
17651 # This happens for instance with `./config.status Makefile'.
17652 if test -n "$CONFIG_HEADERS"; then
17653 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17654 BEGIN {
17655 _ACEOF
17657 # Transform confdefs.h into an awk script `defines.awk', embedded as
17658 # here-document in config.status, that substitutes the proper values into
17659 # config.h.in to produce config.h.
17661 # Create a delimiter string that does not exist in confdefs.h, to ease
17662 # handling of long lines.
17663 ac_delim='%!_!# '
17664 for ac_last_try in false false :; do
17665 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17666 if test -z "$ac_tt"; then
17667 break
17668 elif $ac_last_try; then
17669 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17670 else
17671 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17673 done
17675 # For the awk script, D is an array of macro values keyed by name,
17676 # likewise P contains macro parameters if any. Preserve backslash
17677 # newline sequences.
17679 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17680 sed -n '
17681 s/.\{148\}/&'"$ac_delim"'/g
17682 t rset
17683 :rset
17684 s/^[ ]*#[ ]*define[ ][ ]*/ /
17685 t def
17687 :def
17688 s/\\$//
17689 t bsnl
17690 s/["\\]/\\&/g
17691 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17692 D["\1"]=" \3"/p
17693 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17695 :bsnl
17696 s/["\\]/\\&/g
17697 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17698 D["\1"]=" \3\\\\\\n"\\/p
17699 t cont
17700 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17701 t cont
17703 :cont
17705 s/.\{148\}/&'"$ac_delim"'/g
17706 t clear
17707 :clear
17708 s/\\$//
17709 t bsnlc
17710 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17712 :bsnlc
17713 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17714 b cont
17715 ' <confdefs.h | sed '
17716 s/'"$ac_delim"'/"\\\
17717 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17720 for (key in D) D_is_set[key] = 1
17721 FS = "\a"
17723 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17724 line = \$ 0
17725 split(line, arg, " ")
17726 if (arg[1] == "#") {
17727 defundef = arg[2]
17728 mac1 = arg[3]
17729 } else {
17730 defundef = substr(arg[1], 2)
17731 mac1 = arg[2]
17733 split(mac1, mac2, "(") #)
17734 macro = mac2[1]
17735 prefix = substr(line, 1, index(line, defundef) - 1)
17736 if (D_is_set[macro]) {
17737 # Preserve the white space surrounding the "#".
17738 print prefix "define", macro P[macro] D[macro]
17739 next
17740 } else {
17741 # Replace #undef with comments. This is necessary, for example,
17742 # in the case of _POSIX_SOURCE, which is predefined and required
17743 # on some systems where configure will not decide to define it.
17744 if (defundef == "undef") {
17745 print "/*", prefix defundef, macro, "*/"
17746 next
17750 { print }
17751 _ACAWK
17752 _ACEOF
17753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17754 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17755 fi # test -n "$CONFIG_HEADERS"
17758 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17759 shift
17760 for ac_tag
17762 case $ac_tag in
17763 :[FHLC]) ac_mode=$ac_tag; continue;;
17764 esac
17765 case $ac_mode$ac_tag in
17766 :[FHL]*:*);;
17767 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17768 :[FH]-) ac_tag=-:-;;
17769 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17770 esac
17771 ac_save_IFS=$IFS
17772 IFS=:
17773 set x $ac_tag
17774 IFS=$ac_save_IFS
17775 shift
17776 ac_file=$1
17777 shift
17779 case $ac_mode in
17780 :L) ac_source=$1;;
17781 :[FH])
17782 ac_file_inputs=
17783 for ac_f
17785 case $ac_f in
17786 -) ac_f="$ac_tmp/stdin";;
17787 *) # Look for the file first in the build tree, then in the source tree
17788 # (if the path is not absolute). The absolute path cannot be DOS-style,
17789 # because $ac_f cannot contain `:'.
17790 test -f "$ac_f" ||
17791 case $ac_f in
17792 [\\/$]*) false;;
17793 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17794 esac ||
17795 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17796 esac
17797 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17798 as_fn_append ac_file_inputs " '$ac_f'"
17799 done
17801 # Let's still pretend it is `configure' which instantiates (i.e., don't
17802 # use $as_me), people would be surprised to read:
17803 # /* config.h. Generated by config.status. */
17804 configure_input='Generated from '`
17805 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17806 `' by configure.'
17807 if test x"$ac_file" != x-; then
17808 configure_input="$ac_file. $configure_input"
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17810 $as_echo "$as_me: creating $ac_file" >&6;}
17812 # Neutralize special characters interpreted by sed in replacement strings.
17813 case $configure_input in #(
17814 *\&* | *\|* | *\\* )
17815 ac_sed_conf_input=`$as_echo "$configure_input" |
17816 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17817 *) ac_sed_conf_input=$configure_input;;
17818 esac
17820 case $ac_tag in
17821 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17822 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17823 esac
17825 esac
17827 ac_dir=`$as_dirname -- "$ac_file" ||
17828 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17829 X"$ac_file" : 'X\(//\)[^/]' \| \
17830 X"$ac_file" : 'X\(//\)$' \| \
17831 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17832 $as_echo X"$ac_file" |
17833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17834 s//\1/
17837 /^X\(\/\/\)[^/].*/{
17838 s//\1/
17841 /^X\(\/\/\)$/{
17842 s//\1/
17845 /^X\(\/\).*/{
17846 s//\1/
17849 s/.*/./; q'`
17850 as_dir="$ac_dir"; as_fn_mkdir_p
17851 ac_builddir=.
17853 case "$ac_dir" in
17854 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17856 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17857 # A ".." for each directory in $ac_dir_suffix.
17858 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17859 case $ac_top_builddir_sub in
17860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17862 esac ;;
17863 esac
17864 ac_abs_top_builddir=$ac_pwd
17865 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17866 # for backward compatibility:
17867 ac_top_builddir=$ac_top_build_prefix
17869 case $srcdir in
17870 .) # We are building in place.
17871 ac_srcdir=.
17872 ac_top_srcdir=$ac_top_builddir_sub
17873 ac_abs_top_srcdir=$ac_pwd ;;
17874 [\\/]* | ?:[\\/]* ) # Absolute name.
17875 ac_srcdir=$srcdir$ac_dir_suffix;
17876 ac_top_srcdir=$srcdir
17877 ac_abs_top_srcdir=$srcdir ;;
17878 *) # Relative name.
17879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17880 ac_top_srcdir=$ac_top_build_prefix$srcdir
17881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17882 esac
17883 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17886 case $ac_mode in
17889 # CONFIG_FILE
17892 case $INSTALL in
17893 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17894 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17895 esac
17896 _ACEOF
17898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17899 # If the template does not know about datarootdir, expand it.
17900 # FIXME: This hack should be removed a few years after 2.60.
17901 ac_datarootdir_hack=; ac_datarootdir_seen=
17902 ac_sed_dataroot='
17903 /datarootdir/ {
17907 /@datadir@/p
17908 /@docdir@/p
17909 /@infodir@/p
17910 /@localedir@/p
17911 /@mandir@/p'
17912 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17913 *datarootdir*) ac_datarootdir_seen=yes;;
17914 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17916 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17917 _ACEOF
17918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17919 ac_datarootdir_hack='
17920 s&@datadir@&$datadir&g
17921 s&@docdir@&$docdir&g
17922 s&@infodir@&$infodir&g
17923 s&@localedir@&$localedir&g
17924 s&@mandir@&$mandir&g
17925 s&\\\${datarootdir}&$datarootdir&g' ;;
17926 esac
17927 _ACEOF
17929 # Neutralize VPATH when `$srcdir' = `.'.
17930 # Shell code in configure.ac might set extrasub.
17931 # FIXME: do we really want to maintain this feature?
17932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17933 ac_sed_extra="$ac_vpsub
17934 $extrasub
17935 _ACEOF
17936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17939 s|@configure_input@|$ac_sed_conf_input|;t t
17940 s&@top_builddir@&$ac_top_builddir_sub&;t t
17941 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17942 s&@srcdir@&$ac_srcdir&;t t
17943 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17944 s&@top_srcdir@&$ac_top_srcdir&;t t
17945 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17946 s&@builddir@&$ac_builddir&;t t
17947 s&@abs_builddir@&$ac_abs_builddir&;t t
17948 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17949 s&@INSTALL@&$ac_INSTALL&;t t
17950 $ac_datarootdir_hack
17952 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17953 if $ac_cs_awk_getline; then
17954 $AWK -f "$ac_tmp/subs.awk"
17955 else
17956 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17957 fi \
17958 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17960 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17961 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17963 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17965 which seems to be undefined. Please make sure it is defined" >&5
17966 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17967 which seems to be undefined. Please make sure it is defined" >&2;}
17969 rm -f "$ac_tmp/stdin"
17970 case $ac_file in
17971 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17972 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17973 esac \
17974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17978 # CONFIG_HEADER
17980 if test x"$ac_file" != x-; then
17982 $as_echo "/* $configure_input */" \
17983 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17984 } >"$ac_tmp/config.h" \
17985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17986 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17988 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17989 else
17990 rm -f "$ac_file"
17991 mv "$ac_tmp/config.h" "$ac_file" \
17992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17994 else
17995 $as_echo "/* $configure_input */" \
17996 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17997 || as_fn_error $? "could not create -" "$LINENO" 5
18002 # CONFIG_LINK
18005 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18007 else
18008 # Prefer the file from the source tree if names are identical.
18009 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18010 ac_source=$srcdir/$ac_source
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18014 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18016 if test ! -r "$ac_source"; then
18017 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18019 rm -f "$ac_file"
18021 # Try a relative symlink, then a hard link, then a copy.
18022 case $ac_source in
18023 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18024 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18025 esac
18026 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18027 ln "$ac_source" "$ac_file" 2>/dev/null ||
18028 cp -p "$ac_source" "$ac_file" ||
18029 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18032 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18033 $as_echo "$as_me: executing $ac_file commands" >&6;}
18035 esac
18038 case $ac_file$ac_mode in
18039 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
18040 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
18041 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
18042 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
18043 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
18044 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
18045 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
18046 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
18047 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
18048 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
18049 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
18050 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
18051 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
18052 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
18053 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
18054 "Makefile":C) wine_fn_output_makefile Makefile ;;
18056 esac
18057 done # for ac_tag
18060 as_fn_exit 0
18061 _ACEOF
18062 ac_clean_files=$ac_clean_files_save
18064 test $ac_write_fail = 0 ||
18065 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18068 # configure is writing to config.log, and then calls config.status.
18069 # config.status does its own redirection, appending to config.log.
18070 # Unfortunately, on DOS this fails, as config.log is still kept open
18071 # by configure, so config.status won't be able to write to it; its
18072 # output is simply discarded. So we exec the FD to /dev/null,
18073 # effectively closing config.log, so it can be properly (re)opened and
18074 # appended to by config.status. When coming back to configure, we
18075 # need to make the FD available again.
18076 if test "$no_create" != yes; then
18077 ac_cs_success=:
18078 ac_config_status_args=
18079 test "$silent" = yes &&
18080 ac_config_status_args="$ac_config_status_args --quiet"
18081 exec 5>/dev/null
18082 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18083 exec 5>>config.log
18084 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18085 # would make configure fail if this is the last instruction.
18086 $ac_cs_success || as_fn_exit 1
18088 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18090 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18094 if test "$no_create" = "yes"
18095 then
18096 exit 0
18099 ac_save_IFS="$IFS"
18100 if test "x$wine_notices != "x; then
18101 echo >&6
18102 IFS="|"
18103 for msg in $wine_notices; do
18104 IFS="$ac_save_IFS"
18105 if test -n "$msg"; then
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18107 $as_echo "$as_me: $msg" >&6;}
18109 done
18111 IFS="|"
18112 for msg in $wine_warnings; do
18113 IFS="$ac_save_IFS"
18114 if test -n "$msg"; then
18115 echo >&2
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18117 $as_echo "$as_me: WARNING: $msg" >&2;}
18119 done
18120 IFS="$ac_save_IFS"
18122 echo "
18123 $as_me: Finished. Do '${ac_make}' to compile Wine.
18124 " >&6