jscript: Use bytecode for block statement implementation.
[wine.git] / configure
blob712a6e45116fb5f9dccb3059039debee052ff809
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.3.35.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: wine-devel@winehq.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
247 exit 1
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
265 { eval $1=; unset $1;}
267 as_unset=as_fn_unset
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
274 return $1
275 } # as_fn_set_status
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
318 /^X\(\/\/\)$/{
319 s//\1/
322 /^X\(\/\).*/{
323 s//\1/
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
343 eval $1+=\$2
345 else
346 as_fn_append ()
348 eval $1=\$$1\$2
350 fi # as_fn_append
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
360 as_val=$(( $* ))
362 else
363 as_fn_arith ()
365 as_val=`expr "$@" || test $? -eq 1`
367 fi # as_fn_arith
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
414 /^X\/\(\/\/\)$/{
415 s//\1/
418 /^X\/\(\/\).*/{
419 s//\1/
422 s/.*/./; q'`
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
445 :lineno
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
473 ECHO_N='-n';;
474 esac
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
497 else
498 as_ln_s='cp -p'
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
560 # Identity of this package.
561 PACKAGE_NAME='Wine'
562 PACKAGE_TARNAME='wine'
563 PACKAGE_VERSION='1.3.35'
564 PACKAGE_STRING='Wine 1.3.35'
565 PACKAGE_BUGREPORT='wine-devel@winehq.org'
566 PACKAGE_URL='http://www.winehq.org'
568 ac_unique_file="server/atom.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 PORCFLAGS
608 LINGUAS
609 ALL_TEST_RESOURCES
610 LDAPLIBS
611 LIBPOLL
612 LIBDL
613 EXTRA_BINARIES
614 MAIN_BINARY
615 SOCKETLIBS
616 CRTLIBS
617 TOOLSEXT
618 LDPATH
619 UNWINDFLAGS
620 BUILTINFLAG
621 EXTRACFLAGS
622 LIBKSTAT
623 LIBOPENAL
624 LIBMPG123
625 PNGINCL
626 FONTCONFIGINCL
627 CUPSINCL
628 OSS4INCL
629 ALSALIBS
630 GSTREAMER_INCL
631 GSTREAMER_LIBS
632 LIBGETTEXTPO
633 ZLIB
634 FREETYPEINCL
635 FREETYPELIBS
636 ft_devel
637 LCMSLIBS
638 RESOLVLIBS
639 GPHOTO2INCL
640 GPHOTO2LIBS
641 gphoto2port_devel
642 gphoto2_devel
643 SANEINCL
644 sane_devel
645 GNUTLSINCL
646 HALINCL
647 XSLTINCL
648 XML2INCL
649 XML2LIBS
650 X_EXTRA_LIBS
651 X_LIBS
652 X_PRE_LIBS
653 X_CFLAGS
654 XMKMF
655 LIBPTHREAD
656 CROSSTARGET
657 CROSSCC
658 CROSSTEST_DISABLE
659 PRELINK
660 CARBONLIB
661 QUICKTIMELIB
662 LIBOPENCL
663 FRAMEWORK_OPENAL
664 COREAUDIO
665 SECURITYLIB
666 DISKARBITRATIONLIB
667 LDEXECFLAGS
668 APPLICATIONSERVICESLIB
669 IOKITLIB
670 COREFOUNDATIONLIB
671 DLLWRAP
672 DLLTOOL
674 LDRPATH_LOCAL
675 LDRPATH_INSTALL
676 IMPLIBEXT
677 LIBEXT
678 LDDLLFLAGS
679 LDSHARED
680 DLLFLAGS
681 DLLEXT
683 OPENGL_LIBS
684 XLIB
685 MAINTAINER_MODE
686 MSGFMT
687 ICOTOOL
688 CONVERT
689 RSVG
690 PKG_CONFIG
691 FONTFORGE
692 LINTFLAGS
693 LINT
694 INSTALL_DATA
695 INSTALL_SCRIPT
696 INSTALL_PROGRAM
697 LDCONFIG
698 EGREP
699 GREP
700 LN_S
701 RANLIB
702 ARFLAGS
703 ac_ct_AR
705 BISON
706 FLEX
707 TOOLSDIR
708 WOW64_DISABLE
709 TARGETFLAGS
710 CPPBIN
711 ac_ct_CXX
712 CXXFLAGS
714 OBJEXT
715 EXEEXT
716 ac_ct_CC
717 CPPFLAGS
718 LDFLAGS
719 CFLAGS
721 SET_MAKE
722 host_os
723 host_vendor
724 host_cpu
725 host
726 build_os
727 build_vendor
728 build_cpu
729 build
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files='MAKE_RULES
769 MAKE_TEST_RULES
770 MAKE_DLL_RULES
771 MAKE_IMPLIB_RULES
772 MAKE_PROG_RULES'
773 ac_user_opts='
774 enable_option_checking
775 enable_win16
776 enable_win64
777 enable_tests
778 enable_maintainer_mode
779 with_alsa
780 with_capi
781 with_cms
782 with_coreaudio
783 with_cups
784 with_curses
785 with_fontconfig
786 with_freetype
787 with_gettext
788 with_gettextpo
789 with_gphoto
790 with_glu
791 with_gnutls
792 with_gsm
793 with_gstreamer
794 with_hal
795 with_jpeg
796 with_ldap
797 with_mpg123
798 with_openal
799 with_opencl
800 with_opengl
801 with_openssl
802 with_oss
803 with_png
804 with_pthread
805 with_sane
806 with_tiff
807 with_v4l
808 with_xcomposite
809 with_xcursor
810 with_xinerama
811 with_xinput
812 with_xinput2
813 with_xml
814 with_xrandr
815 with_xrender
816 with_xshape
817 with_xshm
818 with_xslt
819 with_xxf86vm
820 with_zlib
821 with_wine_tools
822 with_wine64
823 enable_largefile
824 with_x
826 ac_precious_vars='build_alias
827 host_alias
828 target_alias
830 CFLAGS
831 LDFLAGS
832 LIBS
833 CPPFLAGS
835 CXXFLAGS
838 XMKMF'
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
889 ac_prev=
890 ac_dashdash=
891 for ac_option
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
900 case $ac_option in
901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *=) ac_optarg= ;;
903 *) ac_optarg=yes ;;
904 esac
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
910 ac_dashdash=yes ;;
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
929 --config-cache | -C)
930 cache_file=config.cache ;;
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
1133 sbindir=$ac_optarg ;;
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
1144 sharedstatedir=$ac_optarg ;;
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
1149 site=$ac_optarg ;;
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1174 -with-* | --with-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=no ;;
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1228 *=*)
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234 esac
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246 esac
1247 done
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error $? "missing argument to $ac_option"
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1256 no) ;;
1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1295 If a cross compiler is detected then cross compile mode will be used" >&2
1296 elif test "x$build_alias" != "x$host_alias"; then
1297 cross_compiling=yes
1301 ac_tool_prefix=
1302 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304 test "$silent" = yes && exec 6>/dev/null
1307 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308 ac_ls_di=`ls -di .` &&
1309 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310 as_fn_error $? "working directory cannot be determined"
1311 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312 as_fn_error $? "pwd does not report name of working directory"
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324 $as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1333 /^X\(\/\/\)$/{
1334 s//\1/
1337 /^X\(\/\).*/{
1338 s//\1/
1341 s/.*/./; q'`
1342 srcdir=$ac_confdir
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 srcdir=..
1346 else
1347 ac_srcdir_defaulted=no
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 ac_abs_confdir=`(
1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1356 pwd)`
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1364 case $srcdir in
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 esac
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 done
1375 # Report the --help message.
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
1381 \`configure' configures Wine 1.3.35 to adapt to many kinds of systems.
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1388 Defaults for the options are specified in brackets.
1390 Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking ...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 [PREFIX]
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1412 For better control, use the options below.
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1434 _ACEOF
1436 cat <<\_ACEOF
1438 X features:
1439 --x-includes=DIR X include files are in DIR
1440 --x-libraries=DIR X library files are in DIR
1442 System types:
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1445 _ACEOF
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of Wine 1.3.35:";;
1451 esac
1452 cat <<\_ACEOF
1454 Optional Features:
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --disable-win16 do not include Win16 support
1459 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1460 binaries)
1461 --disable-tests do not build the regression tests
1462 --enable-maintainer-mode
1463 enable maintainer-specific build rules
1464 --disable-largefile omit support for large files
1466 Optional Packages:
1467 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1469 --without-alsa do not use the Alsa sound support
1470 --without-capi do not use CAPI (ISDN support)
1471 --without-cms do not use CMS (color management support)
1472 --without-coreaudio do not use the CoreAudio sound support
1473 --without-cups do not use CUPS
1474 --without-curses do not use (n)curses
1475 --without-fontconfig do not use fontconfig
1476 --without-freetype do not use the FreeType library
1477 --without-gettext do not use gettext
1478 --with-gettextpo use the GetTextPO library to rebuild po files
1479 --without-gphoto do not use gphoto (Digital Camera support)
1480 --without-glu do not use the GLU library
1481 --without-gnutls do not use GnuTLS (schannel support)
1482 --without-gsm do not use libgsm (GSM 06.10 codec support)
1483 --without-gstreamer do not use GStreamer (codecs support)
1484 --without-hal do not use HAL (dynamic device support)
1485 --without-jpeg do not use JPEG
1486 --without-ldap do not use LDAP
1487 --without-mpg123 do not use the mpg123 library
1488 --without-openal do not use OpenAL
1489 --without-opencl do not use OpenCL
1490 --without-opengl do not use OpenGL
1491 --without-openssl do not use OpenSSL
1492 --without-oss do not use the OSS sound support
1493 --without-png do not use PNG
1494 --without-pthread do not use the pthread library
1495 --without-sane do not use SANE (scanner support)
1496 --without-tiff do not use TIFF
1497 --without-v4l do not use v4l1 (v4l support)
1498 --without-xcomposite do not use the Xcomposite extension
1499 --without-xcursor do not use the Xcursor extension
1500 --without-xinerama do not use Xinerama (multi-monitor support)
1501 --without-xinput do not use the Xinput extension
1502 --without-xinput2 do not use the Xinput 2 extension
1503 --without-xml do not use XML
1504 --without-xrandr do not use Xrandr (resolution changes)
1505 --without-xrender do not use the Xrender extension
1506 --without-xshape do not use the Xshape extension
1507 --without-xshm do not use XShm (shared memory extension)
1508 --without-xslt do not use XSLT
1509 --without-xxf86vm do not use XFree video mode extension
1510 --without-zlib do not use Zlib (data compression)
1511 --with-wine-tools=DIR use Wine tools from directory DIR
1512 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1513 --with-x use the X Window System
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CXX C++ compiler command
1524 CXXFLAGS C++ compiler flags
1525 CPP C preprocessor
1526 XMKMF Path to xmkmf, Makefile generator for X Window System
1528 Use these variables to override the choices made by `configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1531 Report bugs to <wine-devel@winehq.org>.
1532 Wine home page: <http://www.winehq.org>.
1533 _ACEOF
1534 ac_status=$?
1537 if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 continue
1543 ac_builddir=.
1545 case "$ac_dir" in
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 esac ;;
1555 esac
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1561 case $srcdir in
1562 .) # We are building in place.
1563 ac_srcdir=.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1570 *) # Relative name.
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 esac
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1585 else
1586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587 fi || ac_status=$?
1588 cd "$ac_pwd" || { ac_status=$?; break; }
1589 done
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1594 cat <<\_ACEOF
1595 Wine configure 1.3.35
1596 generated by GNU Autoconf 2.68
1598 Copyright (C) 2010 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1601 _ACEOF
1602 exit
1605 ## ------------------------ ##
1606 ## Autoconf initialization. ##
1607 ## ------------------------ ##
1609 # ac_fn_c_try_compile LINENO
1610 # --------------------------
1611 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_compile ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext
1616 if { { ac_try="$ac_compile"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_compile") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest.$ac_objext; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1640 ac_retval=1
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1645 } # ac_fn_c_try_compile
1647 # ac_fn_cxx_try_compile LINENO
1648 # ----------------------------
1649 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_cxx_try_compile ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext
1654 if { { ac_try="$ac_compile"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_compile") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_cxx_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest.$ac_objext; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1678 ac_retval=1
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1683 } # ac_fn_cxx_try_compile
1685 # ac_fn_c_try_link LINENO
1686 # -----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_link ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext conftest$ac_exeext
1692 if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest$ac_exeext && {
1711 test "$cross_compiling" = yes ||
1712 $as_test_x conftest$ac_exeext
1713 }; 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 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723 # interfere with the next link command; also delete a directory that is
1724 # left behind by Apple's compiler. We do this before executing the actions.
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1729 } # ac_fn_c_try_link
1731 # ac_fn_c_try_cpp LINENO
1732 # ----------------------
1733 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_cpp ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { { ac_try="$ac_cpp conftest.$ac_ext"
1738 case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } > conftest.i && {
1753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 }; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 ac_retval=1
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1766 } # ac_fn_c_try_cpp
1768 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1771 # the include files in INCLUDES and setting the cache variable VAR
1772 # accordingly.
1773 ac_fn_c_check_header_mongrel ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if eval \${$3+:} false; then :
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 else
1786 # Is the header compilable?
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1788 $as_echo_n "checking $2 usability... " >&6; }
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 ac_header_compiler=yes
1796 else
1797 ac_header_compiler=no
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1801 $as_echo "$ac_header_compiler" >&6; }
1803 # Is the header present?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1805 $as_echo_n "checking $2 presence... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1808 #include <$2>
1809 _ACEOF
1810 if ac_fn_c_try_cpp "$LINENO"; then :
1811 ac_header_preproc=yes
1812 else
1813 ac_header_preproc=no
1815 rm -f conftest.err conftest.i conftest.$ac_ext
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1817 $as_echo "$ac_header_preproc" >&6; }
1819 # So? What about this header?
1820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1821 yes:no: )
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1823 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1827 no:yes:* )
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1829 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1831 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1833 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1835 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1838 ( $as_echo "## ------------------------------------ ##
1839 ## Report this to wine-devel@winehq.org ##
1840 ## ------------------------------------ ##"
1841 ) | sed "s/^/$as_me: WARNING: /" >&2
1843 esac
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 eval "$3=\$ac_header_compiler"
1851 eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 } # ac_fn_c_check_header_mongrel
1859 # ac_fn_c_try_run LINENO
1860 # ----------------------
1861 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1862 # that executables *can* be run.
1863 ac_fn_c_try_run ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if { { ac_try="$ac_link"
1867 case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_link") 2>&5
1874 ac_status=$?
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1877 { { case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880 esac
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_try") 2>&5
1884 ac_status=$?
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; }; }; then :
1887 ac_retval=0
1888 else
1889 $as_echo "$as_me: program exited with status $ac_status" >&5
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1893 ac_retval=$ac_status
1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1899 } # ac_fn_c_try_run
1901 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists and can be compiled using the include files in
1904 # INCLUDES, setting the cache variable VAR accordingly.
1905 ac_fn_c_check_header_compile ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if eval \${$3+:} false; then :
1911 $as_echo_n "(cached) " >&6
1912 else
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1916 #include <$2>
1917 _ACEOF
1918 if ac_fn_c_try_compile "$LINENO"; then :
1919 eval "$3=yes"
1920 else
1921 eval "$3=no"
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 } # ac_fn_c_check_header_compile
1932 # ac_fn_c_check_func LINENO FUNC VAR
1933 # ----------------------------------
1934 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1935 ac_fn_c_check_func ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1942 else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1947 #define $2 innocuous_$2
1949 /* System header to define __stub macros and hopefully few prototypes,
1950 which can conflict with char $2 (); below.
1951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1952 <limits.h> exists even on freestanding compilers. */
1954 #ifdef __STDC__
1955 # include <limits.h>
1956 #else
1957 # include <assert.h>
1958 #endif
1960 #undef $2
1962 /* Override any GCC internal prototype to avoid an error.
1963 Use char because int might match the return type of a GCC
1964 builtin and then its argument prototype would still apply. */
1965 #ifdef __cplusplus
1966 extern "C"
1967 #endif
1968 char $2 ();
1969 /* The GNU C library defines this for functions which it implements
1970 to always fail with ENOSYS. Some functions are actually named
1971 something starting with __ and the normal name is an alias. */
1972 #if defined __stub_$2 || defined __stub___$2
1973 choke me
1974 #endif
1977 main ()
1979 return $2 ();
1981 return 0;
1983 _ACEOF
1984 if ac_fn_c_try_link "$LINENO"; then :
1985 eval "$3=yes"
1986 else
1987 eval "$3=no"
1989 rm -f core conftest.err conftest.$ac_objext \
1990 conftest$ac_exeext conftest.$ac_ext
1992 eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 } # ac_fn_c_check_func
1999 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2000 # ----------------------------------------------------
2001 # Tries to find if the field MEMBER exists in type AGGR, after including
2002 # INCLUDES, setting cache variable VAR accordingly.
2003 ac_fn_c_check_member ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2007 $as_echo_n "checking for $2.$3... " >&6; }
2008 if eval \${$4+:} false; then :
2009 $as_echo_n "(cached) " >&6
2010 else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2015 main ()
2017 static $2 ac_aggr;
2018 if (ac_aggr.$3)
2019 return 0;
2021 return 0;
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$4=yes"
2026 else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2031 main ()
2033 static $2 ac_aggr;
2034 if (sizeof ac_aggr.$3)
2035 return 0;
2037 return 0;
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 eval "$4=yes"
2042 else
2043 eval "$4=no"
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 eval ac_res=\$$4
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 } # ac_fn_c_check_member
2056 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2057 # -------------------------------------------
2058 # Tests whether TYPE exists after having included INCLUDES, setting cache
2059 # variable VAR accordingly.
2060 ac_fn_c_check_type ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval \${$3+:} false; then :
2066 $as_echo_n "(cached) " >&6
2067 else
2068 eval "$3=no"
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2073 main ()
2075 if (sizeof ($2))
2076 return 0;
2078 return 0;
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 if (sizeof (($2)))
2089 return 0;
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2096 else
2097 eval "$3=yes"
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 eval ac_res=\$$3
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108 } # ac_fn_c_check_type
2109 cat >config.log <<_ACEOF
2110 This file contains any messages produced by compilers while
2111 running configure, to aid debugging if configure makes a mistake.
2113 It was created by Wine $as_me 1.3.35, which was
2114 generated by GNU Autoconf 2.68. Invocation command line was
2116 $ $0 $@
2118 _ACEOF
2119 exec 5>>config.log
2121 cat <<_ASUNAME
2122 ## --------- ##
2123 ## Platform. ##
2124 ## --------- ##
2126 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2127 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2128 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2129 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2130 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2132 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2133 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2135 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2136 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2137 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2138 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2139 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2140 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2141 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2143 _ASUNAME
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2148 IFS=$as_save_IFS
2149 test -z "$as_dir" && as_dir=.
2150 $as_echo "PATH: $as_dir"
2151 done
2152 IFS=$as_save_IFS
2154 } >&5
2156 cat >&5 <<_ACEOF
2159 ## ----------- ##
2160 ## Core tests. ##
2161 ## ----------- ##
2163 _ACEOF
2166 # Keep a trace of the command line.
2167 # Strip out --no-create and --no-recursion so they do not pile up.
2168 # Strip out --silent because we don't want to record it for future runs.
2169 # Also quote any args containing shell meta-characters.
2170 # Make two passes to allow for proper duplicate-argument suppression.
2171 ac_configure_args=
2172 ac_configure_args0=
2173 ac_configure_args1=
2174 ac_must_keep_next=false
2175 for ac_pass in 1 2
2177 for ac_arg
2179 case $ac_arg in
2180 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2182 | -silent | --silent | --silen | --sile | --sil)
2183 continue ;;
2184 *\'*)
2185 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2186 esac
2187 case $ac_pass in
2188 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2190 as_fn_append ac_configure_args1 " '$ac_arg'"
2191 if test $ac_must_keep_next = true; then
2192 ac_must_keep_next=false # Got value, back to normal.
2193 else
2194 case $ac_arg in
2195 *=* | --config-cache | -C | -disable-* | --disable-* \
2196 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2197 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2198 | -with-* | --with-* | -without-* | --without-* | --x)
2199 case "$ac_configure_args0 " in
2200 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2201 esac
2203 -* ) ac_must_keep_next=true ;;
2204 esac
2206 as_fn_append ac_configure_args " '$ac_arg'"
2208 esac
2209 done
2210 done
2211 { ac_configure_args0=; unset ac_configure_args0;}
2212 { ac_configure_args1=; unset ac_configure_args1;}
2214 # When interrupted or exit'd, cleanup temporary files, and complete
2215 # config.log. We remove comments because anyway the quotes in there
2216 # would cause problems or look ugly.
2217 # WARNING: Use '\'' to represent an apostrophe within the trap.
2218 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2219 trap 'exit_status=$?
2220 # Save into config.log some information that might help in debugging.
2222 echo
2224 $as_echo "## ---------------- ##
2225 ## Cache variables. ##
2226 ## ---------------- ##"
2227 echo
2228 # The following way of writing the cache mishandles newlines in values,
2230 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2231 eval ac_val=\$$ac_var
2232 case $ac_val in #(
2233 *${as_nl}*)
2234 case $ac_var in #(
2235 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2236 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2237 esac
2238 case $ac_var in #(
2239 _ | IFS | as_nl) ;; #(
2240 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2241 *) { eval $ac_var=; unset $ac_var;} ;;
2242 esac ;;
2243 esac
2244 done
2245 (set) 2>&1 |
2246 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2247 *${as_nl}ac_space=\ *)
2248 sed -n \
2249 "s/'\''/'\''\\\\'\'''\''/g;
2250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2251 ;; #(
2253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2255 esac |
2256 sort
2258 echo
2260 $as_echo "## ----------------- ##
2261 ## Output variables. ##
2262 ## ----------------- ##"
2263 echo
2264 for ac_var in $ac_subst_vars
2266 eval ac_val=\$$ac_var
2267 case $ac_val in
2268 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2269 esac
2270 $as_echo "$ac_var='\''$ac_val'\''"
2271 done | sort
2272 echo
2274 if test -n "$ac_subst_files"; then
2275 $as_echo "## ------------------- ##
2276 ## File substitutions. ##
2277 ## ------------------- ##"
2278 echo
2279 for ac_var in $ac_subst_files
2281 eval ac_val=\$$ac_var
2282 case $ac_val in
2283 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2284 esac
2285 $as_echo "$ac_var='\''$ac_val'\''"
2286 done | sort
2287 echo
2290 if test -s confdefs.h; then
2291 $as_echo "## ----------- ##
2292 ## confdefs.h. ##
2293 ## ----------- ##"
2294 echo
2295 cat confdefs.h
2296 echo
2298 test "$ac_signal" != 0 &&
2299 $as_echo "$as_me: caught signal $ac_signal"
2300 $as_echo "$as_me: exit $exit_status"
2301 } >&5
2302 rm -f core *.core core.conftest.* &&
2303 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2304 exit $exit_status
2306 for ac_signal in 1 2 13 15; do
2307 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2308 done
2309 ac_signal=0
2311 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2312 rm -f -r conftest* confdefs.h
2314 $as_echo "/* confdefs.h */" > confdefs.h
2316 # Predefined preprocessor variables.
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_NAME "$PACKAGE_NAME"
2320 _ACEOF
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2324 _ACEOF
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2328 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_STRING "$PACKAGE_STRING"
2332 _ACEOF
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2336 _ACEOF
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_URL "$PACKAGE_URL"
2340 _ACEOF
2343 # Let the site file select an alternate cache file if it wants to.
2344 # Prefer an explicitly selected file to automatically selected ones.
2345 ac_site_file1=NONE
2346 ac_site_file2=NONE
2347 if test -n "$CONFIG_SITE"; then
2348 # We do not want a PATH search for config.site.
2349 case $CONFIG_SITE in #((
2350 -*) ac_site_file1=./$CONFIG_SITE;;
2351 */*) ac_site_file1=$CONFIG_SITE;;
2352 *) ac_site_file1=./$CONFIG_SITE;;
2353 esac
2354 elif test "x$prefix" != xNONE; then
2355 ac_site_file1=$prefix/share/config.site
2356 ac_site_file2=$prefix/etc/config.site
2357 else
2358 ac_site_file1=$ac_default_prefix/share/config.site
2359 ac_site_file2=$ac_default_prefix/etc/config.site
2361 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2363 test "x$ac_site_file" = xNONE && continue
2364 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2366 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2367 sed 's/^/| /' "$ac_site_file" >&5
2368 . "$ac_site_file" \
2369 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2371 as_fn_error $? "failed to load site script $ac_site_file
2372 See \`config.log' for more details" "$LINENO" 5; }
2374 done
2376 if test -r "$cache_file"; then
2377 # Some versions of bash will fail to source /dev/null (special files
2378 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2379 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2381 $as_echo "$as_me: loading cache $cache_file" >&6;}
2382 case $cache_file in
2383 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2384 *) . "./$cache_file";;
2385 esac
2387 else
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2389 $as_echo "$as_me: creating cache $cache_file" >&6;}
2390 >$cache_file
2393 # Check that the precious variables saved in the cache have kept the same
2394 # value.
2395 ac_cache_corrupted=false
2396 for ac_var in $ac_precious_vars; do
2397 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2398 eval ac_new_set=\$ac_env_${ac_var}_set
2399 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2400 eval ac_new_val=\$ac_env_${ac_var}_value
2401 case $ac_old_set,$ac_new_set in
2402 set,)
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2405 ac_cache_corrupted=: ;;
2406 ,set)
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2408 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2409 ac_cache_corrupted=: ;;
2410 ,);;
2412 if test "x$ac_old_val" != "x$ac_new_val"; then
2413 # differences in whitespace do not lead to failure.
2414 ac_old_val_w=`echo x $ac_old_val`
2415 ac_new_val_w=`echo x $ac_new_val`
2416 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2418 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2419 ac_cache_corrupted=:
2420 else
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2422 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2423 eval $ac_var=\$ac_old_val
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2426 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2428 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2429 fi;;
2430 esac
2431 # Pass precious variables to config.status.
2432 if test "$ac_new_set" = set; then
2433 case $ac_new_val in
2434 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2435 *) ac_arg=$ac_var=$ac_new_val ;;
2436 esac
2437 case " $ac_configure_args " in
2438 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2439 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2440 esac
2442 done
2443 if $ac_cache_corrupted; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2447 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2448 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2450 ## -------------------- ##
2451 ## Main body of script. ##
2452 ## -------------------- ##
2454 ac_ext=c
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462 ac_config_headers="$ac_config_headers include/config.h"
2464 ac_aux_dir=
2465 for ac_dir in tools "$srcdir"/tools; do
2466 if test -f "$ac_dir/install-sh"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/install-sh -c"
2469 break
2470 elif test -f "$ac_dir/install.sh"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/install.sh -c"
2473 break
2474 elif test -f "$ac_dir/shtool"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/shtool install -c"
2477 break
2479 done
2480 if test -z "$ac_aux_dir"; then
2481 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2484 # These three variables are undocumented and unsupported,
2485 # and are intended to be withdrawn in a future Autoconf release.
2486 # They can cause serious problems if a builder's source tree is in a directory
2487 # whose full name contains unusual characters.
2488 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2489 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2490 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2496 # Check whether --enable-win16 was given.
2497 if test "${enable_win16+set}" = set; then :
2498 enableval=$enable_win16;
2501 # Check whether --enable-win64 was given.
2502 if test "${enable_win64+set}" = set; then :
2503 enableval=$enable_win64;
2506 # Check whether --enable-tests was given.
2507 if test "${enable_tests+set}" = set; then :
2508 enableval=$enable_tests;
2511 # Check whether --enable-maintainer-mode was given.
2512 if test "${enable_maintainer_mode+set}" = set; then :
2513 enableval=$enable_maintainer_mode;
2518 # Check whether --with-alsa was given.
2519 if test "${with_alsa+set}" = set; then :
2520 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2524 # Check whether --with-capi was given.
2525 if test "${with_capi+set}" = set; then :
2526 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2530 # Check whether --with-cms was given.
2531 if test "${with_cms+set}" = set; then :
2532 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2536 # Check whether --with-coreaudio was given.
2537 if test "${with_coreaudio+set}" = set; then :
2538 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2542 # Check whether --with-cups was given.
2543 if test "${with_cups+set}" = set; then :
2544 withval=$with_cups;
2548 # Check whether --with-curses was given.
2549 if test "${with_curses+set}" = set; then :
2550 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2554 # Check whether --with-fontconfig was given.
2555 if test "${with_fontconfig+set}" = set; then :
2556 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2560 # Check whether --with-freetype was given.
2561 if test "${with_freetype+set}" = set; then :
2562 withval=$with_freetype;
2566 # Check whether --with-gettext was given.
2567 if test "${with_gettext+set}" = set; then :
2568 withval=$with_gettext;
2572 # Check whether --with-gettextpo was given.
2573 if test "${with_gettextpo+set}" = set; then :
2574 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2578 # Check whether --with-gphoto was given.
2579 if test "${with_gphoto+set}" = set; then :
2580 withval=$with_gphoto;
2584 # Check whether --with-glu was given.
2585 if test "${with_glu+set}" = set; then :
2586 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2590 # Check whether --with-gnutls was given.
2591 if test "${with_gnutls+set}" = set; then :
2592 withval=$with_gnutls;
2596 # Check whether --with-gsm was given.
2597 if test "${with_gsm+set}" = set; then :
2598 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2602 # Check whether --with-gstreamer was given.
2603 if test "${with_gstreamer+set}" = set; then :
2604 withval=$with_gstreamer;
2608 # Check whether --with-hal was given.
2609 if test "${with_hal+set}" = set; then :
2610 withval=$with_hal;
2614 # Check whether --with-jpeg was given.
2615 if test "${with_jpeg+set}" = set; then :
2616 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2620 # Check whether --with-ldap was given.
2621 if test "${with_ldap+set}" = set; then :
2622 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2626 # Check whether --with-mpg123 was given.
2627 if test "${with_mpg123+set}" = set; then :
2628 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2632 # Check whether --with-openal was given.
2633 if test "${with_openal+set}" = set; then :
2634 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2638 # Check whether --with-opencl was given.
2639 if test "${with_opencl+set}" = set; then :
2640 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2644 # Check whether --with-opengl was given.
2645 if test "${with_opengl+set}" = set; then :
2646 withval=$with_opengl;
2650 # Check whether --with-openssl was given.
2651 if test "${with_openssl+set}" = set; then :
2652 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2656 # Check whether --with-oss was given.
2657 if test "${with_oss+set}" = set; then :
2658 withval=$with_oss;
2662 # Check whether --with-png was given.
2663 if test "${with_png+set}" = set; then :
2664 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2668 # Check whether --with-pthread was given.
2669 if test "${with_pthread+set}" = set; then :
2670 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2674 # Check whether --with-sane was given.
2675 if test "${with_sane+set}" = set; then :
2676 withval=$with_sane;
2680 # Check whether --with-tiff was given.
2681 if test "${with_tiff+set}" = set; then :
2682 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2686 # Check whether --with-v4l was given.
2687 if test "${with_v4l+set}" = set; then :
2688 withval=$with_v4l;
2692 # Check whether --with-xcomposite was given.
2693 if test "${with_xcomposite+set}" = set; then :
2694 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2698 # Check whether --with-xcursor was given.
2699 if test "${with_xcursor+set}" = set; then :
2700 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2704 # Check whether --with-xinerama was given.
2705 if test "${with_xinerama+set}" = set; then :
2706 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2710 # Check whether --with-xinput was given.
2711 if test "${with_xinput+set}" = set; then :
2712 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2716 # Check whether --with-xinput2 was given.
2717 if test "${with_xinput2+set}" = set; then :
2718 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2722 # Check whether --with-xml was given.
2723 if test "${with_xml+set}" = set; then :
2724 withval=$with_xml;
2728 # Check whether --with-xrandr was given.
2729 if test "${with_xrandr+set}" = set; then :
2730 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2734 # Check whether --with-xrender was given.
2735 if test "${with_xrender+set}" = set; then :
2736 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2740 # Check whether --with-xshape was given.
2741 if test "${with_xshape+set}" = set; then :
2742 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2746 # Check whether --with-xshm was given.
2747 if test "${with_xshm+set}" = set; then :
2748 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2752 # Check whether --with-xslt was given.
2753 if test "${with_xslt+set}" = set; then :
2754 withval=$with_xslt;
2758 # Check whether --with-xxf86vm was given.
2759 if test "${with_xxf86vm+set}" = set; then :
2760 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
2764 # Check whether --with-zlib was given.
2765 if test "${with_zlib+set}" = set; then :
2766 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2771 # Check whether --with-wine-tools was given.
2772 if test "${with_wine_tools+set}" = set; then :
2773 withval=$with_wine_tools;
2777 # Check whether --with-wine64 was given.
2778 if test "${with_wine64+set}" = set; then :
2779 withval=$with_wine64;
2783 # Make sure we can run config.sub.
2784 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2785 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2788 $as_echo_n "checking build system type... " >&6; }
2789 if ${ac_cv_build+:} false; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 ac_build_alias=$build_alias
2793 test "x$ac_build_alias" = x &&
2794 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2795 test "x$ac_build_alias" = x &&
2796 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2797 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2798 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2802 $as_echo "$ac_cv_build" >&6; }
2803 case $ac_cv_build in
2804 *-*-*) ;;
2805 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2806 esac
2807 build=$ac_cv_build
2808 ac_save_IFS=$IFS; IFS='-'
2809 set x $ac_cv_build
2810 shift
2811 build_cpu=$1
2812 build_vendor=$2
2813 shift; shift
2814 # Remember, the first character of IFS is used to create $*,
2815 # except with old shells:
2816 build_os=$*
2817 IFS=$ac_save_IFS
2818 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2822 $as_echo_n "checking host system type... " >&6; }
2823 if ${ac_cv_host+:} false; then :
2824 $as_echo_n "(cached) " >&6
2825 else
2826 if test "x$host_alias" = x; then
2827 ac_cv_host=$ac_cv_build
2828 else
2829 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2830 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2835 $as_echo "$ac_cv_host" >&6; }
2836 case $ac_cv_host in
2837 *-*-*) ;;
2838 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2839 esac
2840 host=$ac_cv_host
2841 ac_save_IFS=$IFS; IFS='-'
2842 set x $ac_cv_host
2843 shift
2844 host_cpu=$1
2845 host_vendor=$2
2846 shift; shift
2847 # Remember, the first character of IFS is used to create $*,
2848 # except with old shells:
2849 host_os=$*
2850 IFS=$ac_save_IFS
2851 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2855 case "$srcdir" in
2856 .) ;;
2857 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2858 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2859 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2860 fi ;;
2861 esac
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2865 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2866 set x ${MAKE-make}
2867 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2868 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 cat >conftest.make <<\_ACEOF
2872 SHELL = /bin/sh
2873 all:
2874 @echo '@@@%%%=$(MAKE)=@@@%%%'
2875 _ACEOF
2876 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2877 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2878 *@@@%%%=?*=@@@%%%*)
2879 eval ac_cv_prog_make_${ac_make}_set=yes;;
2881 eval ac_cv_prog_make_${ac_make}_set=no;;
2882 esac
2883 rm -f conftest.make
2885 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2887 $as_echo "yes" >&6; }
2888 SET_MAKE=
2889 else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2892 SET_MAKE="MAKE=${MAKE-make}"
2895 ac_ext=c
2896 ac_cpp='$CPP $CPPFLAGS'
2897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900 if test -n "$ac_tool_prefix"; then
2901 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2902 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_prog_CC+:} false; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2922 done
2923 done
2924 IFS=$as_save_IFS
2928 CC=$ac_cv_prog_CC
2929 if test -n "$CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931 $as_echo "$CC" >&6; }
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2939 if test -z "$ac_cv_prog_CC"; then
2940 ac_ct_CC=$CC
2941 # Extract the first word of "gcc", so it can be a program name with args.
2942 set dummy gcc; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 if test -n "$ac_ct_CC"; then
2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_ac_ct_CC="gcc"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2962 done
2963 done
2964 IFS=$as_save_IFS
2968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2969 if test -n "$ac_ct_CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2971 $as_echo "$ac_ct_CC" >&6; }
2972 else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2977 if test "x$ac_ct_CC" = x; then
2978 CC=""
2979 else
2980 case $cross_compiling:$ac_tool_warned in
2981 yes:)
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984 ac_tool_warned=yes ;;
2985 esac
2986 CC=$ac_ct_CC
2988 else
2989 CC="$ac_cv_prog_CC"
2992 if test -z "$CC"; then
2993 if test -n "$ac_tool_prefix"; then
2994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}cc; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_CC+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_CC="${ac_tool_prefix}cc"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3015 done
3016 done
3017 IFS=$as_save_IFS
3021 CC=$ac_cv_prog_CC
3022 if test -n "$CC"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3024 $as_echo "$CC" >&6; }
3025 else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3033 if test -z "$CC"; then
3034 # Extract the first word of "cc", so it can be a program name with args.
3035 set dummy cc; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_CC+:} false; then :
3039 $as_echo_n "(cached) " >&6
3040 else
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3043 else
3044 ac_prog_rejected=no
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3053 ac_prog_rejected=yes
3054 continue
3056 ac_cv_prog_CC="cc"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3060 done
3061 done
3062 IFS=$as_save_IFS
3064 if test $ac_prog_rejected = yes; then
3065 # We found a bogon in the path, so make sure we never use it.
3066 set dummy $ac_cv_prog_CC
3067 shift
3068 if test $# != 0; then
3069 # We chose a different compiler from the bogus one.
3070 # However, it has the same basename, so the bogon will be chosen
3071 # first if we set CC to just the basename; use the full file name.
3072 shift
3073 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3078 CC=$ac_cv_prog_CC
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3082 else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3089 if test -z "$CC"; then
3090 if test -n "$ac_tool_prefix"; then
3091 for ac_prog in cl.exe
3093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3114 done
3115 done
3116 IFS=$as_save_IFS
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3130 test -n "$CC" && break
3131 done
3133 if test -z "$CC"; then
3134 ac_ct_CC=$CC
3135 for ac_prog in cl.exe
3137 # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$ac_ct_CC"; then
3145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_ac_ct_CC="$ac_prog"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3158 done
3159 done
3160 IFS=$as_save_IFS
3164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3165 if test -n "$ac_ct_CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3167 $as_echo "$ac_ct_CC" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$ac_ct_CC" && break
3175 done
3177 if test "x$ac_ct_CC" = x; then
3178 CC=""
3179 else
3180 case $cross_compiling:$ac_tool_warned in
3181 yes:)
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3184 ac_tool_warned=yes ;;
3185 esac
3186 CC=$ac_ct_CC
3193 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "no acceptable C compiler found in \$PATH
3196 See \`config.log' for more details" "$LINENO" 5; }
3198 # Provide some information about the compiler.
3199 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3200 set X $ac_compile
3201 ac_compiler=$2
3202 for ac_option in --version -v -V -qversion; do
3203 { { ac_try="$ac_compiler $ac_option >&5"
3204 case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3211 ac_status=$?
3212 if test -s conftest.err; then
3213 sed '10a\
3214 ... rest of stderr output deleted ...
3215 10q' conftest.err >conftest.er1
3216 cat conftest.er1 >&5
3218 rm -f conftest.er1 conftest.err
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }
3221 done
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3227 main ()
3231 return 0;
3233 _ACEOF
3234 ac_clean_files_save=$ac_clean_files
3235 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3236 # Try to create an executable without -o first, disregard a.out.
3237 # It will help us diagnose broken compilers, and finding out an intuition
3238 # of exeext.
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3240 $as_echo_n "checking whether the C compiler works... " >&6; }
3241 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3243 # The possible output files:
3244 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3246 ac_rmfiles=
3247 for ac_file in $ac_files
3249 case $ac_file in
3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3251 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3252 esac
3253 done
3254 rm -f $ac_rmfiles
3256 if { { ac_try="$ac_link_default"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_link_default") 2>&5
3264 ac_status=$?
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; then :
3267 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3268 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3269 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3270 # so that the user can short-circuit this test for compilers unknown to
3271 # Autoconf.
3272 for ac_file in $ac_files ''
3274 test -f "$ac_file" || continue
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3278 [ab].out )
3279 # We found the default executable, but exeext='' is most
3280 # certainly right.
3281 break;;
3282 *.* )
3283 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3284 then :; else
3285 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287 # We set ac_cv_exeext here because the later test for it is not
3288 # safe: cross compilers may not add the suffix if given an `-o'
3289 # argument, so we may need to know it at that point already.
3290 # Even if this section looks crufty: it has the advantage of
3291 # actually working.
3292 break;;
3294 break;;
3295 esac
3296 done
3297 test "$ac_cv_exeext" = no && ac_cv_exeext=
3299 else
3300 ac_file=''
3302 if test -z "$ac_file"; then :
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3305 $as_echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error 77 "C compiler cannot create executables
3311 See \`config.log' for more details" "$LINENO" 5; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314 $as_echo "yes" >&6; }
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3317 $as_echo_n "checking for C compiler default output file name... " >&6; }
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3319 $as_echo "$ac_file" >&6; }
3320 ac_exeext=$ac_cv_exeext
3322 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3323 ac_clean_files=$ac_clean_files_save
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3325 $as_echo_n "checking for suffix of executables... " >&6; }
3326 if { { ac_try="$ac_link"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_link") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3338 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3339 # work properly (i.e., refer to `conftest.exe'), while it won't with
3340 # `rm'.
3341 for ac_file in conftest.exe conftest conftest.*; do
3342 test -f "$ac_file" || continue
3343 case $ac_file in
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3345 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3346 break;;
3347 * ) break;;
3348 esac
3349 done
3350 else
3351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3354 See \`config.log' for more details" "$LINENO" 5; }
3356 rm -f conftest conftest$ac_cv_exeext
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3358 $as_echo "$ac_cv_exeext" >&6; }
3360 rm -f conftest.$ac_ext
3361 EXEEXT=$ac_cv_exeext
3362 ac_exeext=$EXEEXT
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3365 #include <stdio.h>
3367 main ()
3369 FILE *f = fopen ("conftest.out", "w");
3370 return ferror (f) || fclose (f) != 0;
3373 return 0;
3375 _ACEOF
3376 ac_clean_files="$ac_clean_files conftest.out"
3377 # Check that the compiler produces executables we can run. If not, either
3378 # the compiler is broken, or we cross compile.
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3380 $as_echo_n "checking whether we are cross compiling... " >&6; }
3381 if test "$cross_compiling" != yes; then
3382 { { ac_try="$ac_link"
3383 case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_link") 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }
3393 if { ac_try='./conftest$ac_cv_exeext'
3394 { { case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_try") 2>&5
3401 ac_status=$?
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; }; then
3404 cross_compiling=no
3405 else
3406 if test "$cross_compiling" = maybe; then
3407 cross_compiling=yes
3408 else
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error $? "cannot run C compiled programs.
3412 If you meant to cross compile, use \`--host'.
3413 See \`config.log' for more details" "$LINENO" 5; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3418 $as_echo "$cross_compiling" >&6; }
3420 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3421 ac_clean_files=$ac_clean_files_save
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3423 $as_echo_n "checking for suffix of object files... " >&6; }
3424 if ${ac_cv_objext+:} false; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3431 main ()
3435 return 0;
3437 _ACEOF
3438 rm -f conftest.o conftest.obj
3439 if { { ac_try="$ac_compile"
3440 case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_compile") 2>&5
3447 ac_status=$?
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }; then :
3450 for ac_file in conftest.o conftest.obj conftest.*; do
3451 test -f "$ac_file" || continue;
3452 case $ac_file in
3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3454 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3455 break;;
3456 esac
3457 done
3458 else
3459 $as_echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 as_fn_error $? "cannot compute suffix of object files: cannot compile
3465 See \`config.log' for more details" "$LINENO" 5; }
3467 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3470 $as_echo "$ac_cv_objext" >&6; }
3471 OBJEXT=$ac_cv_objext
3472 ac_objext=$OBJEXT
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3474 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3475 if ${ac_cv_c_compiler_gnu+:} false; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3482 main ()
3484 #ifndef __GNUC__
3485 choke me
3486 #endif
3489 return 0;
3491 _ACEOF
3492 if ac_fn_c_try_compile "$LINENO"; then :
3493 ac_compiler_gnu=yes
3494 else
3495 ac_compiler_gnu=no
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3502 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3503 if test $ac_compiler_gnu = yes; then
3504 GCC=yes
3505 else
3506 GCC=
3508 ac_test_CFLAGS=${CFLAGS+set}
3509 ac_save_CFLAGS=$CFLAGS
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3511 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3512 if ${ac_cv_prog_cc_g+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 ac_save_c_werror_flag=$ac_c_werror_flag
3516 ac_c_werror_flag=yes
3517 ac_cv_prog_cc_g=no
3518 CFLAGS="-g"
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3523 main ()
3527 return 0;
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_cv_prog_cc_g=yes
3532 else
3533 CFLAGS=""
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3538 main ()
3542 return 0;
3544 _ACEOF
3545 if ac_fn_c_try_compile "$LINENO"; then :
3547 else
3548 ac_c_werror_flag=$ac_save_c_werror_flag
3549 CFLAGS="-g"
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3554 main ()
3558 return 0;
3560 _ACEOF
3561 if ac_fn_c_try_compile "$LINENO"; then :
3562 ac_cv_prog_cc_g=yes
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 ac_c_werror_flag=$ac_save_c_werror_flag
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3572 $as_echo "$ac_cv_prog_cc_g" >&6; }
3573 if test "$ac_test_CFLAGS" = set; then
3574 CFLAGS=$ac_save_CFLAGS
3575 elif test $ac_cv_prog_cc_g = yes; then
3576 if test "$GCC" = yes; then
3577 CFLAGS="-g -O2"
3578 else
3579 CFLAGS="-g"
3581 else
3582 if test "$GCC" = yes; then
3583 CFLAGS="-O2"
3584 else
3585 CFLAGS=
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3589 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3590 if ${ac_cv_prog_cc_c89+:} false; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 ac_cv_prog_cc_c89=no
3594 ac_save_CC=$CC
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3597 #include <stdarg.h>
3598 #include <stdio.h>
3599 #include <sys/types.h>
3600 #include <sys/stat.h>
3601 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3602 struct buf { int x; };
3603 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3604 static char *e (p, i)
3605 char **p;
3606 int i;
3608 return p[i];
3610 static char *f (char * (*g) (char **, int), char **p, ...)
3612 char *s;
3613 va_list v;
3614 va_start (v,p);
3615 s = g (p, va_arg (v,int));
3616 va_end (v);
3617 return s;
3620 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3621 function prototypes and stuff, but not '\xHH' hex character constants.
3622 These don't provoke an error unfortunately, instead are silently treated
3623 as 'x'. The following induces an error, until -std is added to get
3624 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3625 array size at least. It's necessary to write '\x00'==0 to get something
3626 that's true only with -std. */
3627 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3629 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3630 inside strings and character constants. */
3631 #define FOO(x) 'x'
3632 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3634 int test (int i, double x);
3635 struct s1 {int (*f) (int a);};
3636 struct s2 {int (*f) (double a);};
3637 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3638 int argc;
3639 char **argv;
3641 main ()
3643 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3645 return 0;
3647 _ACEOF
3648 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3649 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3651 CC="$ac_save_CC $ac_arg"
3652 if ac_fn_c_try_compile "$LINENO"; then :
3653 ac_cv_prog_cc_c89=$ac_arg
3655 rm -f core conftest.err conftest.$ac_objext
3656 test "x$ac_cv_prog_cc_c89" != "xno" && break
3657 done
3658 rm -f conftest.$ac_ext
3659 CC=$ac_save_CC
3662 # AC_CACHE_VAL
3663 case "x$ac_cv_prog_cc_c89" in
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3666 $as_echo "none needed" >&6; } ;;
3667 xno)
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3669 $as_echo "unsupported" >&6; } ;;
3671 CC="$CC $ac_cv_prog_cc_c89"
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3673 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3674 esac
3675 if test "x$ac_cv_prog_cc_c89" != xno; then :
3679 ac_ext=c
3680 ac_cpp='$CPP $CPPFLAGS'
3681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685 ac_ext=cpp
3686 ac_cpp='$CXXCPP $CPPFLAGS'
3687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3690 if test -z "$CXX"; then
3691 if test -n "$CCC"; then
3692 CXX=$CCC
3693 else
3694 if test -n "$ac_tool_prefix"; then
3695 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3698 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if ${ac_cv_prog_CXX+:} false; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 if test -n "$CXX"; then
3705 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3714 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3718 done
3719 done
3720 IFS=$as_save_IFS
3724 CXX=$ac_cv_prog_CXX
3725 if test -n "$CXX"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3727 $as_echo "$CXX" >&6; }
3728 else
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3734 test -n "$CXX" && break
3735 done
3737 if test -z "$CXX"; then
3738 ac_ct_CXX=$CXX
3739 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3741 # Extract the first word of "$ac_prog", so it can be a program name with args.
3742 set dummy $ac_prog; ac_word=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 if test -n "$ac_ct_CXX"; then
3749 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3750 else
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3758 ac_cv_prog_ac_ct_CXX="$ac_prog"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 break 2
3762 done
3763 done
3764 IFS=$as_save_IFS
3768 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3769 if test -n "$ac_ct_CXX"; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3771 $as_echo "$ac_ct_CXX" >&6; }
3772 else
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 $as_echo "no" >&6; }
3778 test -n "$ac_ct_CXX" && break
3779 done
3781 if test "x$ac_ct_CXX" = x; then
3782 CXX="g++"
3783 else
3784 case $cross_compiling:$ac_tool_warned in
3785 yes:)
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3788 ac_tool_warned=yes ;;
3789 esac
3790 CXX=$ac_ct_CXX
3796 # Provide some information about the compiler.
3797 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3798 set X $ac_compile
3799 ac_compiler=$2
3800 for ac_option in --version -v -V -qversion; do
3801 { { ac_try="$ac_compiler $ac_option >&5"
3802 case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3809 ac_status=$?
3810 if test -s conftest.err; then
3811 sed '10a\
3812 ... rest of stderr output deleted ...
3813 10q' conftest.err >conftest.er1
3814 cat conftest.er1 >&5
3816 rm -f conftest.er1 conftest.err
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }
3819 done
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3822 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3823 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3824 $as_echo_n "(cached) " >&6
3825 else
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3830 main ()
3832 #ifndef __GNUC__
3833 choke me
3834 #endif
3837 return 0;
3839 _ACEOF
3840 if ac_fn_cxx_try_compile "$LINENO"; then :
3841 ac_compiler_gnu=yes
3842 else
3843 ac_compiler_gnu=no
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3850 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3851 if test $ac_compiler_gnu = yes; then
3852 GXX=yes
3853 else
3854 GXX=
3856 ac_test_CXXFLAGS=${CXXFLAGS+set}
3857 ac_save_CXXFLAGS=$CXXFLAGS
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3859 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3860 if ${ac_cv_prog_cxx_g+:} false; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3864 ac_cxx_werror_flag=yes
3865 ac_cv_prog_cxx_g=no
3866 CXXFLAGS="-g"
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3871 main ()
3875 return 0;
3877 _ACEOF
3878 if ac_fn_cxx_try_compile "$LINENO"; then :
3879 ac_cv_prog_cxx_g=yes
3880 else
3881 CXXFLAGS=""
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3886 main ()
3890 return 0;
3892 _ACEOF
3893 if ac_fn_cxx_try_compile "$LINENO"; then :
3895 else
3896 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3897 CXXFLAGS="-g"
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3902 main ()
3906 return 0;
3908 _ACEOF
3909 if ac_fn_cxx_try_compile "$LINENO"; then :
3910 ac_cv_prog_cxx_g=yes
3912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3920 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3921 if test "$ac_test_CXXFLAGS" = set; then
3922 CXXFLAGS=$ac_save_CXXFLAGS
3923 elif test $ac_cv_prog_cxx_g = yes; then
3924 if test "$GXX" = yes; then
3925 CXXFLAGS="-g -O2"
3926 else
3927 CXXFLAGS="-g"
3929 else
3930 if test "$GXX" = yes; then
3931 CXXFLAGS="-O2"
3932 else
3933 CXXFLAGS=
3936 ac_ext=c
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942 if test -n "$ac_tool_prefix"; then
3943 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3944 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if ${ac_cv_prog_CPPBIN+:} false; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 if test -n "$CPPBIN"; then
3951 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3952 else
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3960 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 break 2
3964 done
3965 done
3966 IFS=$as_save_IFS
3970 CPPBIN=$ac_cv_prog_CPPBIN
3971 if test -n "$CPPBIN"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3973 $as_echo "$CPPBIN" >&6; }
3974 else
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3981 if test -z "$ac_cv_prog_CPPBIN"; then
3982 ac_ct_CPPBIN=$CPPBIN
3983 # Extract the first word of "cpp", so it can be a program name with args.
3984 set dummy cpp; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 if test -n "$ac_ct_CPPBIN"; then
3991 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_prog_ac_ct_CPPBIN="cpp"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4004 done
4005 done
4006 IFS=$as_save_IFS
4010 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4011 if test -n "$ac_ct_CPPBIN"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4013 $as_echo "$ac_ct_CPPBIN" >&6; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4019 if test "x$ac_ct_CPPBIN" = x; then
4020 CPPBIN="cpp"
4021 else
4022 case $cross_compiling:$ac_tool_warned in
4023 yes:)
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned=yes ;;
4027 esac
4028 CPPBIN=$ac_ct_CPPBIN
4030 else
4031 CPPBIN="$ac_cv_prog_CPPBIN"
4035 cat >>confdefs.h <<_ACEOF
4036 #define EXEEXT "$ac_exeext"
4037 _ACEOF
4040 case $host in
4041 *-darwin*)
4042 if test "x$enable_win64" = "xyes"
4043 then
4044 CC="$CC -m64"
4045 CXX="$CXX -m64"
4046 host_cpu="x86_64"
4047 notice_platform="64-bit "
4048 TARGETFLAGS="-m64"
4050 else
4051 CC="$CC -m32"
4052 CXX="$CXX -m32"
4053 host_cpu="i386"
4054 notice_platform="32-bit "
4055 TARGETFLAGS="-m32"
4057 enable_win16=${enable_win16:-yes}
4060 x86_64*)
4061 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4062 then
4063 CC="$CC -m32"
4064 CXX="$CXX -m32"
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4066 $as_echo_n "checking whether $CC works... " >&6; }
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4072 main ()
4076 return 0;
4078 _ACEOF
4079 if ac_fn_c_try_link "$LINENO"; then :
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4081 $as_echo "yes" >&6; }
4082 else
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084 $as_echo "no" >&6; }
4085 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4087 rm -f core conftest.err conftest.$ac_objext \
4088 conftest$ac_exeext conftest.$ac_ext
4089 host_cpu="i386"
4090 notice_platform="32-bit "
4091 TARGETFLAGS="-m32"
4093 enable_win16=${enable_win16:-yes}
4094 else
4095 if test "x${GCC}" = "xyes"
4096 then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4098 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 #include <stdarg.h>
4103 main ()
4105 void func(__builtin_ms_va_list *args);
4107 return 0;
4109 _ACEOF
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4112 $as_echo "yes" >&6; }
4113 else
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115 $as_echo "no" >&6; }
4116 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 TARGETFLAGS="-m64"
4124 *-mingw32*|*-cygwin*)
4125 enable_win16=${enable_win16:-no}
4126 CFLAGS="$CFLAGS -D_WIN32"
4128 i[3456789]86*)
4129 enable_win16=${enable_win16:-yes}
4131 esac
4133 enable_win16=${enable_win16:-no}
4134 enable_win64=${enable_win64:-no}
4136 enable_winetest=${enable_winetest:-$enable_tests}
4138 if test -n "$with_wine64"
4139 then
4140 if test "x$enable_win64" = "xyes"
4141 then
4142 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4143 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4145 WOW64_DISABLE=\#
4147 enable_fonts=${enable_fonts:-no}
4148 enable_server=${enable_server:-no}
4149 enable_tools=${enable_tools:-no}
4150 elif test "x$enable_win64" = "xyes"
4151 then
4152 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4156 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4157 if ${wine_cv_toolsdir+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 wine_cv_toolsdir="$with_wine_tools"
4161 if test -z "$with_wine_tools"; then
4162 if test "$cross_compiling" = "yes"; then
4163 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4164 elif test -n "$with_wine64"; then
4165 wine_cv_toolsdir="$with_wine64"
4168 if test -z "$wine_cv_toolsdir"; then
4169 wine_cv_toolsdir="\$(top_builddir)"
4170 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4171 case "$wine_cv_toolsdir" in
4172 /*) ;;
4173 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4174 esac
4175 else
4176 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4180 $as_echo "$wine_cv_toolsdir" >&6; }
4181 TOOLSDIR=$wine_cv_toolsdir
4183 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4184 then
4185 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4189 for ac_prog in flex
4191 # Extract the first word of "$ac_prog", so it can be a program name with args.
4192 set dummy $ac_prog; ac_word=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if ${ac_cv_prog_FLEX+:} false; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 if test -n "$FLEX"; then
4199 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208 ac_cv_prog_FLEX="$ac_prog"
4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 break 2
4212 done
4213 done
4214 IFS=$as_save_IFS
4218 FLEX=$ac_cv_prog_FLEX
4219 if test -n "$FLEX"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4221 $as_echo "$FLEX" >&6; }
4222 else
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4228 test -n "$FLEX" && break
4229 done
4230 test -n "$FLEX" || FLEX="none"
4232 if test "$FLEX" = "none"
4233 then
4234 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4237 $as_echo_n "checking whether flex is recent enough... " >&6; }
4238 cat >conftest.l <<EOF
4239 %top{
4240 #include "prediluvian.h"
4244 if $FLEX -t conftest.l >/dev/null 2>&5
4245 then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4247 $as_echo "yes" >&6; }
4248 else
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250 $as_echo "no" >&6; }
4251 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4254 for ac_prog in bison
4256 # Extract the first word of "$ac_prog", so it can be a program name with args.
4257 set dummy $ac_prog; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if ${ac_cv_prog_BISON+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 if test -n "$BISON"; then
4264 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273 ac_cv_prog_BISON="$ac_prog"
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4277 done
4278 done
4279 IFS=$as_save_IFS
4283 BISON=$ac_cv_prog_BISON
4284 if test -n "$BISON"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4286 $as_echo "$BISON" >&6; }
4287 else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4293 test -n "$BISON" && break
4294 done
4295 test -n "$BISON" || BISON="none"
4297 if test "$BISON" = "none"
4298 then
4299 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4302 if test -n "$ac_tool_prefix"; then
4303 for ac_prog in ar gar
4305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_prog_AR+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 if test -n "$AR"; then
4313 ac_cv_prog_AR="$AR" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4326 done
4327 done
4328 IFS=$as_save_IFS
4332 AR=$ac_cv_prog_AR
4333 if test -n "$AR"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4335 $as_echo "$AR" >&6; }
4336 else
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4342 test -n "$AR" && break
4343 done
4345 if test -z "$AR"; then
4346 ac_ct_AR=$AR
4347 for ac_prog in ar gar
4349 # Extract the first word of "$ac_prog", so it can be a program name with args.
4350 set dummy $ac_prog; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 if test -n "$ac_ct_AR"; then
4357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_prog_ac_ct_AR="$ac_prog"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4370 done
4371 done
4372 IFS=$as_save_IFS
4376 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4377 if test -n "$ac_ct_AR"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4379 $as_echo "$ac_ct_AR" >&6; }
4380 else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4386 test -n "$ac_ct_AR" && break
4387 done
4389 if test "x$ac_ct_AR" = x; then
4390 AR="ar"
4391 else
4392 case $cross_compiling:$ac_tool_warned in
4393 yes:)
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4396 ac_tool_warned=yes ;;
4397 esac
4398 AR=$ac_ct_AR
4402 ARFLAGS=rc
4404 if test -n "$ac_tool_prefix"; then
4405 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4406 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if ${ac_cv_prog_RANLIB+:} false; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 if test -n "$RANLIB"; then
4413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4426 done
4427 done
4428 IFS=$as_save_IFS
4432 RANLIB=$ac_cv_prog_RANLIB
4433 if test -n "$RANLIB"; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4435 $as_echo "$RANLIB" >&6; }
4436 else
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 $as_echo "no" >&6; }
4443 if test -z "$ac_cv_prog_RANLIB"; then
4444 ac_ct_RANLIB=$RANLIB
4445 # Extract the first word of "ranlib", so it can be a program name with args.
4446 set dummy ranlib; ac_word=$2
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 if test -n "$ac_ct_RANLIB"; then
4453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_prog_ac_ct_RANLIB="ranlib"
4463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 break 2
4466 done
4467 done
4468 IFS=$as_save_IFS
4472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4473 if test -n "$ac_ct_RANLIB"; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4475 $as_echo "$ac_ct_RANLIB" >&6; }
4476 else
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4481 if test "x$ac_ct_RANLIB" = x; then
4482 RANLIB=":"
4483 else
4484 case $cross_compiling:$ac_tool_warned in
4485 yes:)
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4488 ac_tool_warned=yes ;;
4489 esac
4490 RANLIB=$ac_ct_RANLIB
4492 else
4493 RANLIB="$ac_cv_prog_RANLIB"
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4497 $as_echo_n "checking whether ln -s works... " >&6; }
4498 LN_S=$as_ln_s
4499 if test "$LN_S" = "ln -s"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4501 $as_echo "yes" >&6; }
4502 else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4504 $as_echo "no, using $LN_S" >&6; }
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4508 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4509 if ${ac_cv_path_GREP+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 if test -z "$GREP"; then
4513 ac_path_GREP_found=false
4514 # Loop through the user's path and test for each of PROGNAME-LIST
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_prog in grep ggrep; do
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4523 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4524 # Check for GNU ac_path_GREP and select it if it is found.
4525 # Check for GNU $ac_path_GREP
4526 case `"$ac_path_GREP" --version 2>&1` in
4527 *GNU*)
4528 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4530 ac_count=0
4531 $as_echo_n 0123456789 >"conftest.in"
4532 while :
4534 cat "conftest.in" "conftest.in" >"conftest.tmp"
4535 mv "conftest.tmp" "conftest.in"
4536 cp "conftest.in" "conftest.nl"
4537 $as_echo 'GREP' >> "conftest.nl"
4538 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4540 as_fn_arith $ac_count + 1 && ac_count=$as_val
4541 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4542 # Best one so far, save it but keep looking for a better one
4543 ac_cv_path_GREP="$ac_path_GREP"
4544 ac_path_GREP_max=$ac_count
4546 # 10*(2^10) chars as input seems more than enough
4547 test $ac_count -gt 10 && break
4548 done
4549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4550 esac
4552 $ac_path_GREP_found && break 3
4553 done
4554 done
4555 done
4556 IFS=$as_save_IFS
4557 if test -z "$ac_cv_path_GREP"; then
4558 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4560 else
4561 ac_cv_path_GREP=$GREP
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4566 $as_echo "$ac_cv_path_GREP" >&6; }
4567 GREP="$ac_cv_path_GREP"
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4571 $as_echo_n "checking for egrep... " >&6; }
4572 if ${ac_cv_path_EGREP+:} false; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4576 then ac_cv_path_EGREP="$GREP -E"
4577 else
4578 if test -z "$EGREP"; then
4579 ac_path_EGREP_found=false
4580 # Loop through the user's path and test for each of PROGNAME-LIST
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_prog in egrep; do
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4589 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4590 # Check for GNU ac_path_EGREP and select it if it is found.
4591 # Check for GNU $ac_path_EGREP
4592 case `"$ac_path_EGREP" --version 2>&1` in
4593 *GNU*)
4594 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4596 ac_count=0
4597 $as_echo_n 0123456789 >"conftest.in"
4598 while :
4600 cat "conftest.in" "conftest.in" >"conftest.tmp"
4601 mv "conftest.tmp" "conftest.in"
4602 cp "conftest.in" "conftest.nl"
4603 $as_echo 'EGREP' >> "conftest.nl"
4604 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4606 as_fn_arith $ac_count + 1 && ac_count=$as_val
4607 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4608 # Best one so far, save it but keep looking for a better one
4609 ac_cv_path_EGREP="$ac_path_EGREP"
4610 ac_path_EGREP_max=$ac_count
4612 # 10*(2^10) chars as input seems more than enough
4613 test $ac_count -gt 10 && break
4614 done
4615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4616 esac
4618 $ac_path_EGREP_found && break 3
4619 done
4620 done
4621 done
4622 IFS=$as_save_IFS
4623 if test -z "$ac_cv_path_EGREP"; then
4624 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4626 else
4627 ac_cv_path_EGREP=$EGREP
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4633 $as_echo "$ac_cv_path_EGREP" >&6; }
4634 EGREP="$ac_cv_path_EGREP"
4637 # Extract the first word of "ldconfig", so it can be a program name with args.
4638 set dummy ldconfig; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_path_LDCONFIG+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 case $LDCONFIG in
4645 [\\/]* | ?:[\\/]*)
4646 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in /sbin /usr/sbin $PATH
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4664 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4666 esac
4668 LDCONFIG=$ac_cv_path_LDCONFIG
4669 if test -n "$LDCONFIG"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4671 $as_echo "$LDCONFIG" >&6; }
4672 else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4678 # Find a good install program. We prefer a C program (faster),
4679 # so one script is as good as another. But avoid the broken or
4680 # incompatible versions:
4681 # SysV /etc/install, /usr/sbin/install
4682 # SunOS /usr/etc/install
4683 # IRIX /sbin/install
4684 # AIX /bin/install
4685 # AmigaOS /C/install, which installs bootblocks on floppy discs
4686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4689 # OS/2's system install, which has a completely different semantic
4690 # ./install, which can be erroneously created by make from ./install.sh.
4691 # Reject install programs that cannot install multiple files.
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4693 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4694 if test -z "$INSTALL"; then
4695 if ${ac_cv_path_install+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 # Account for people who put trailing slashes in PATH elements.
4704 case $as_dir/ in #((
4705 ./ | .// | /[cC]/* | \
4706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4707 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4708 /usr/ucb/* ) ;;
4710 # OSF1 and SCO ODT 3.0 have their own names for install.
4711 # Don't use installbsd from OSF since it installs stuff as root
4712 # by default.
4713 for ac_prog in ginstall scoinst install; do
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4716 if test $ac_prog = install &&
4717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4718 # AIX install. It has an incompatible calling convention.
4720 elif test $ac_prog = install &&
4721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4722 # program-specific install script used by HP pwplus--don't use.
4724 else
4725 rm -rf conftest.one conftest.two conftest.dir
4726 echo one > conftest.one
4727 echo two > conftest.two
4728 mkdir conftest.dir
4729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4730 test -s conftest.one && test -s conftest.two &&
4731 test -s conftest.dir/conftest.one &&
4732 test -s conftest.dir/conftest.two
4733 then
4734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4735 break 3
4739 done
4740 done
4742 esac
4744 done
4745 IFS=$as_save_IFS
4747 rm -rf conftest.one conftest.two conftest.dir
4750 if test "${ac_cv_path_install+set}" = set; then
4751 INSTALL=$ac_cv_path_install
4752 else
4753 # As a last resort, use the slow shell script. Don't cache a
4754 # value for INSTALL within a source directory, because that will
4755 # break other packages using the cache if that directory is
4756 # removed, or if the value is a relative name.
4757 INSTALL=$ac_install_sh
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4761 $as_echo "$INSTALL" >&6; }
4763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4764 # It thinks the first close brace ends the variable substitution.
4765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4771 case "$INSTALL" in
4772 [\\/$]* | ?:[\\/]* ) ;;
4773 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4774 esac
4776 for ac_prog in lclint lint
4778 # Extract the first word of "$ac_prog", so it can be a program name with args.
4779 set dummy $ac_prog; ac_word=$2
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781 $as_echo_n "checking for $ac_word... " >&6; }
4782 if ${ac_cv_prog_LINT+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 if test -n "$LINT"; then
4786 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795 ac_cv_prog_LINT="$ac_prog"
4796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4799 done
4800 done
4801 IFS=$as_save_IFS
4805 LINT=$ac_cv_prog_LINT
4806 if test -n "$LINT"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4808 $as_echo "$LINT" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4815 test -n "$LINT" && break
4816 done
4818 if test "$LINT" = "lint"
4819 then
4820 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4824 for ac_prog in fontforge
4826 # Extract the first word of "$ac_prog", so it can be a program name with args.
4827 set dummy $ac_prog; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_prog_FONTFORGE+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -n "$FONTFORGE"; then
4834 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_FONTFORGE="$ac_prog"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4847 done
4848 done
4849 IFS=$as_save_IFS
4853 FONTFORGE=$ac_cv_prog_FONTFORGE
4854 if test -n "$FONTFORGE"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4856 $as_echo "$FONTFORGE" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4863 test -n "$FONTFORGE" && break
4864 done
4865 test -n "$FONTFORGE" || FONTFORGE="false"
4867 for ac_prog in pkg-config
4869 # Extract the first word of "$ac_prog", so it can be a program name with args.
4870 set dummy $ac_prog; ac_word=$2
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4874 $as_echo_n "(cached) " >&6
4875 else
4876 if test -n "$PKG_CONFIG"; then
4877 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4878 else
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 ac_cv_prog_PKG_CONFIG="$ac_prog"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 break 2
4890 done
4891 done
4892 IFS=$as_save_IFS
4896 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4897 if test -n "$PKG_CONFIG"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4899 $as_echo "$PKG_CONFIG" >&6; }
4900 else
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4906 test -n "$PKG_CONFIG" && break
4907 done
4908 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4910 for ac_prog in rsvg
4912 # Extract the first word of "$ac_prog", so it can be a program name with args.
4913 set dummy $ac_prog; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_prog_RSVG+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if test -n "$RSVG"; then
4920 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4929 ac_cv_prog_RSVG="$ac_prog"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4933 done
4934 done
4935 IFS=$as_save_IFS
4939 RSVG=$ac_cv_prog_RSVG
4940 if test -n "$RSVG"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4942 $as_echo "$RSVG" >&6; }
4943 else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4949 test -n "$RSVG" && break
4950 done
4951 test -n "$RSVG" || RSVG="false"
4953 for ac_prog in convert
4955 # Extract the first word of "$ac_prog", so it can be a program name with args.
4956 set dummy $ac_prog; ac_word=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if ${ac_cv_prog_CONVERT+:} false; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 if test -n "$CONVERT"; then
4963 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4964 else
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972 ac_cv_prog_CONVERT="$ac_prog"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 break 2
4976 done
4977 done
4978 IFS=$as_save_IFS
4982 CONVERT=$ac_cv_prog_CONVERT
4983 if test -n "$CONVERT"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4985 $as_echo "$CONVERT" >&6; }
4986 else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4992 test -n "$CONVERT" && break
4993 done
4994 test -n "$CONVERT" || CONVERT="false"
4996 for ac_prog in icotool
4998 # Extract the first word of "$ac_prog", so it can be a program name with args.
4999 set dummy $ac_prog; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if ${ac_cv_prog_ICOTOOL+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 if test -n "$ICOTOOL"; then
5006 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_prog_ICOTOOL="$ac_prog"
5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5019 done
5020 done
5021 IFS=$as_save_IFS
5025 ICOTOOL=$ac_cv_prog_ICOTOOL
5026 if test -n "$ICOTOOL"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5028 $as_echo "$ICOTOOL" >&6; }
5029 else
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5035 test -n "$ICOTOOL" && break
5036 done
5037 test -n "$ICOTOOL" || ICOTOOL="false"
5039 for ac_prog in msgfmt
5041 # Extract the first word of "$ac_prog", so it can be a program name with args.
5042 set dummy $ac_prog; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_MSGFMT+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$MSGFMT"; then
5049 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_MSGFMT="$ac_prog"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5062 done
5063 done
5064 IFS=$as_save_IFS
5068 MSGFMT=$ac_cv_prog_MSGFMT
5069 if test -n "$MSGFMT"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5071 $as_echo "$MSGFMT" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5078 test -n "$MSGFMT" && break
5079 done
5080 test -n "$MSGFMT" || MSGFMT="false"
5083 if test "x$enable_maintainer_mode" != "xyes"
5084 then
5085 MAINTAINER_MODE=\#
5087 else
5088 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5089 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5091 if test "$CONVERT" = false
5092 then
5093 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5096 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5097 convert_version=`convert --version | head -n1`
5098 if test "x$convert_version" != "x"
5099 then
5100 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5101 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5102 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5103 then
5104 CONVERT=false
5107 if test "$CONVERT" = false
5108 then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5110 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5111 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5112 else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5114 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5118 if test "$ICOTOOL" = false
5119 then
5120 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5121 else
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5123 $as_echo_n "checking for recent enough icotool... " >&6; }
5124 icotool_version=`icotool --version | head -n1`
5125 if test "x$icotool_version" != "x"
5126 then
5127 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5128 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5129 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5130 then
5131 ICOTOOL=false
5132 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5135 if test "$ICOTOOL" = false
5136 then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5138 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5139 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5140 else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5142 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5146 with_gettext=yes
5147 with_gettextpo=yes
5148 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5151 test "x$with_gettext" != xno || MSGFMT=false
5152 if test "$MSGFMT" = false; then :
5153 case "x$with_gettext" in
5154 x) as_fn_append wine_warnings "|gettext tools not found, translations won't be built." ;;
5155 xno) ;;
5156 *) as_fn_error $? "gettext tools not found, translations won't be built.
5157 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5158 esac
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5163 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5164 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 ac_check_lib_save_LIBS=$LIBS
5168 LIBS="-li386 $LIBS"
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5172 /* Override any GCC internal prototype to avoid an error.
5173 Use char because int might match the return type of a GCC
5174 builtin and then its argument prototype would still apply. */
5175 #ifdef __cplusplus
5176 extern "C"
5177 #endif
5178 char i386_set_ldt ();
5180 main ()
5182 return i386_set_ldt ();
5184 return 0;
5186 _ACEOF
5187 if ac_fn_c_try_link "$LINENO"; then :
5188 ac_cv_lib_i386_i386_set_ldt=yes
5189 else
5190 ac_cv_lib_i386_i386_set_ldt=no
5192 rm -f core conftest.err conftest.$ac_objext \
5193 conftest$ac_exeext conftest.$ac_ext
5194 LIBS=$ac_check_lib_save_LIBS
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5197 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5198 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5199 cat >>confdefs.h <<_ACEOF
5200 #define HAVE_LIBI386 1
5201 _ACEOF
5203 LIBS="-li386 $LIBS"
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5208 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5209 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 ac_check_lib_save_LIBS=$LIBS
5213 LIBS="-lossaudio $LIBS"
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5217 /* Override any GCC internal prototype to avoid an error.
5218 Use char because int might match the return type of a GCC
5219 builtin and then its argument prototype would still apply. */
5220 #ifdef __cplusplus
5221 extern "C"
5222 #endif
5223 char _oss_ioctl ();
5225 main ()
5227 return _oss_ioctl ();
5229 return 0;
5231 _ACEOF
5232 if ac_fn_c_try_link "$LINENO"; then :
5233 ac_cv_lib_ossaudio__oss_ioctl=yes
5234 else
5235 ac_cv_lib_ossaudio__oss_ioctl=no
5237 rm -f core conftest.err conftest.$ac_objext \
5238 conftest$ac_exeext conftest.$ac_ext
5239 LIBS=$ac_check_lib_save_LIBS
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5242 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5243 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5244 cat >>confdefs.h <<_ACEOF
5245 #define HAVE_LIBOSSAUDIO 1
5246 _ACEOF
5248 LIBS="-lossaudio $LIBS"
5253 XLIB=""
5255 OPENGL_LIBS=""
5259 # Check whether --enable-largefile was given.
5260 if test "${enable_largefile+set}" = set; then :
5261 enableval=$enable_largefile;
5264 if test "$enable_largefile" != no; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5267 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5268 if ${ac_cv_sys_largefile_CC+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 ac_cv_sys_largefile_CC=no
5272 if test "$GCC" != yes; then
5273 ac_save_CC=$CC
5274 while :; do
5275 # IRIX 6.2 and later do not support large files by default,
5276 # so use the C compiler's -n32 option if that helps.
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5279 #include <sys/types.h>
5280 /* Check that off_t can represent 2**63 - 1 correctly.
5281 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5282 since some C++ compilers masquerading as C compilers
5283 incorrectly reject 9223372036854775807. */
5284 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5286 && LARGE_OFF_T % 2147483647 == 1)
5287 ? 1 : -1];
5289 main ()
5293 return 0;
5295 _ACEOF
5296 if ac_fn_c_try_compile "$LINENO"; then :
5297 break
5299 rm -f core conftest.err conftest.$ac_objext
5300 CC="$CC -n32"
5301 if ac_fn_c_try_compile "$LINENO"; then :
5302 ac_cv_sys_largefile_CC=' -n32'; break
5304 rm -f core conftest.err conftest.$ac_objext
5305 break
5306 done
5307 CC=$ac_save_CC
5308 rm -f conftest.$ac_ext
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5312 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5313 if test "$ac_cv_sys_largefile_CC" != no; then
5314 CC=$CC$ac_cv_sys_largefile_CC
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5318 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5319 if ${ac_cv_sys_file_offset_bits+:} false; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 while :; do
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 #include <sys/types.h>
5326 /* Check that off_t can represent 2**63 - 1 correctly.
5327 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5328 since some C++ compilers masquerading as C compilers
5329 incorrectly reject 9223372036854775807. */
5330 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5331 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5332 && LARGE_OFF_T % 2147483647 == 1)
5333 ? 1 : -1];
5335 main ()
5339 return 0;
5341 _ACEOF
5342 if ac_fn_c_try_compile "$LINENO"; then :
5343 ac_cv_sys_file_offset_bits=no; break
5345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348 #define _FILE_OFFSET_BITS 64
5349 #include <sys/types.h>
5350 /* Check that off_t can represent 2**63 - 1 correctly.
5351 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5352 since some C++ compilers masquerading as C compilers
5353 incorrectly reject 9223372036854775807. */
5354 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5355 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5356 && LARGE_OFF_T % 2147483647 == 1)
5357 ? 1 : -1];
5359 main ()
5363 return 0;
5365 _ACEOF
5366 if ac_fn_c_try_compile "$LINENO"; then :
5367 ac_cv_sys_file_offset_bits=64; break
5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370 ac_cv_sys_file_offset_bits=unknown
5371 break
5372 done
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5375 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5376 case $ac_cv_sys_file_offset_bits in #(
5377 no | unknown) ;;
5379 cat >>confdefs.h <<_ACEOF
5380 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5381 _ACEOF
5383 esac
5384 rm -rf conftest*
5385 if test $ac_cv_sys_file_offset_bits = unknown; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5387 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5388 if ${ac_cv_sys_large_files+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 while :; do
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394 #include <sys/types.h>
5395 /* Check that off_t can represent 2**63 - 1 correctly.
5396 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5397 since some C++ compilers masquerading as C compilers
5398 incorrectly reject 9223372036854775807. */
5399 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5400 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5401 && LARGE_OFF_T % 2147483647 == 1)
5402 ? 1 : -1];
5404 main ()
5408 return 0;
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412 ac_cv_sys_large_files=no; break
5414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 #define _LARGE_FILES 1
5418 #include <sys/types.h>
5419 /* Check that off_t can represent 2**63 - 1 correctly.
5420 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5421 since some C++ compilers masquerading as C compilers
5422 incorrectly reject 9223372036854775807. */
5423 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5424 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5425 && LARGE_OFF_T % 2147483647 == 1)
5426 ? 1 : -1];
5428 main ()
5432 return 0;
5434 _ACEOF
5435 if ac_fn_c_try_compile "$LINENO"; then :
5436 ac_cv_sys_large_files=1; break
5438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439 ac_cv_sys_large_files=unknown
5440 break
5441 done
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5444 $as_echo "$ac_cv_sys_large_files" >&6; }
5445 case $ac_cv_sys_large_files in #(
5446 no | unknown) ;;
5448 cat >>confdefs.h <<_ACEOF
5449 #define _LARGE_FILES $ac_cv_sys_large_files
5450 _ACEOF
5452 esac
5453 rm -rf conftest*
5458 ac_ext=c
5459 ac_cpp='$CPP $CPPFLAGS'
5460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5464 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5465 # On Suns, sometimes $CPP names a directory.
5466 if test -n "$CPP" && test -d "$CPP"; then
5467 CPP=
5469 if test -z "$CPP"; then
5470 if ${ac_cv_prog_CPP+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 # Double quotes because CPP needs to be expanded
5474 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5476 ac_preproc_ok=false
5477 for ac_c_preproc_warn_flag in '' yes
5479 # Use a header file that comes with gcc, so configuring glibc
5480 # with a fresh cross-compiler works.
5481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5482 # <limits.h> exists even on freestanding compilers.
5483 # On the NeXT, cc -E runs the code through the compiler's parser,
5484 # not just through cpp. "Syntax error" is here to catch this case.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 #ifdef __STDC__
5488 # include <limits.h>
5489 #else
5490 # include <assert.h>
5491 #endif
5492 Syntax error
5493 _ACEOF
5494 if ac_fn_c_try_cpp "$LINENO"; then :
5496 else
5497 # Broken: fails on valid input.
5498 continue
5500 rm -f conftest.err conftest.i conftest.$ac_ext
5502 # OK, works on sane cases. Now check whether nonexistent headers
5503 # can be detected and how.
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506 #include <ac_nonexistent.h>
5507 _ACEOF
5508 if ac_fn_c_try_cpp "$LINENO"; then :
5509 # Broken: success on invalid input.
5510 continue
5511 else
5512 # Passes both tests.
5513 ac_preproc_ok=:
5514 break
5516 rm -f conftest.err conftest.i conftest.$ac_ext
5518 done
5519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5520 rm -f conftest.i conftest.err conftest.$ac_ext
5521 if $ac_preproc_ok; then :
5522 break
5525 done
5526 ac_cv_prog_CPP=$CPP
5529 CPP=$ac_cv_prog_CPP
5530 else
5531 ac_cv_prog_CPP=$CPP
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5534 $as_echo "$CPP" >&6; }
5535 ac_preproc_ok=false
5536 for ac_c_preproc_warn_flag in '' yes
5538 # Use a header file that comes with gcc, so configuring glibc
5539 # with a fresh cross-compiler works.
5540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5541 # <limits.h> exists even on freestanding compilers.
5542 # On the NeXT, cc -E runs the code through the compiler's parser,
5543 # not just through cpp. "Syntax error" is here to catch this case.
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5546 #ifdef __STDC__
5547 # include <limits.h>
5548 #else
5549 # include <assert.h>
5550 #endif
5551 Syntax error
5552 _ACEOF
5553 if ac_fn_c_try_cpp "$LINENO"; then :
5555 else
5556 # Broken: fails on valid input.
5557 continue
5559 rm -f conftest.err conftest.i conftest.$ac_ext
5561 # OK, works on sane cases. Now check whether nonexistent headers
5562 # can be detected and how.
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565 #include <ac_nonexistent.h>
5566 _ACEOF
5567 if ac_fn_c_try_cpp "$LINENO"; then :
5568 # Broken: success on invalid input.
5569 continue
5570 else
5571 # Passes both tests.
5572 ac_preproc_ok=:
5573 break
5575 rm -f conftest.err conftest.i conftest.$ac_ext
5577 done
5578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5579 rm -f conftest.i conftest.err conftest.$ac_ext
5580 if $ac_preproc_ok; then :
5582 else
5583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5585 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5586 See \`config.log' for more details" "$LINENO" 5; }
5589 ac_ext=c
5590 ac_cpp='$CPP $CPPFLAGS'
5591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5597 $as_echo_n "checking for ANSI C header files... " >&6; }
5598 if ${ac_cv_header_stdc+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603 #include <stdlib.h>
5604 #include <stdarg.h>
5605 #include <string.h>
5606 #include <float.h>
5609 main ()
5613 return 0;
5615 _ACEOF
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617 ac_cv_header_stdc=yes
5618 else
5619 ac_cv_header_stdc=no
5621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 if test $ac_cv_header_stdc = yes; then
5624 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 #include <string.h>
5629 _ACEOF
5630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5631 $EGREP "memchr" >/dev/null 2>&1; then :
5633 else
5634 ac_cv_header_stdc=no
5636 rm -f conftest*
5640 if test $ac_cv_header_stdc = yes; then
5641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <stdlib.h>
5646 _ACEOF
5647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5648 $EGREP "free" >/dev/null 2>&1; then :
5650 else
5651 ac_cv_header_stdc=no
5653 rm -f conftest*
5657 if test $ac_cv_header_stdc = yes; then
5658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5659 if test "$cross_compiling" = yes; then :
5661 else
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5664 #include <ctype.h>
5665 #include <stdlib.h>
5666 #if ((' ' & 0x0FF) == 0x020)
5667 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5668 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5669 #else
5670 # define ISLOWER(c) \
5671 (('a' <= (c) && (c) <= 'i') \
5672 || ('j' <= (c) && (c) <= 'r') \
5673 || ('s' <= (c) && (c) <= 'z'))
5674 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5675 #endif
5677 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5679 main ()
5681 int i;
5682 for (i = 0; i < 256; i++)
5683 if (XOR (islower (i), ISLOWER (i))
5684 || toupper (i) != TOUPPER (i))
5685 return 2;
5686 return 0;
5688 _ACEOF
5689 if ac_fn_c_try_run "$LINENO"; then :
5691 else
5692 ac_cv_header_stdc=no
5694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5695 conftest.$ac_objext conftest.beam conftest.$ac_ext
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5701 $as_echo "$ac_cv_header_stdc" >&6; }
5702 if test $ac_cv_header_stdc = yes; then
5704 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5708 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5709 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5710 inttypes.h stdint.h unistd.h
5711 do :
5712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5713 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5715 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5716 cat >>confdefs.h <<_ACEOF
5717 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5718 _ACEOF
5722 done
5725 for ac_header in \
5726 AL/al.h \
5727 ApplicationServices/ApplicationServices.h \
5728 AudioToolbox/AudioConverter.h \
5729 AudioUnit/AudioUnit.h \
5730 AudioUnit/AudioComponent.h \
5731 CL/cl.h \
5732 Carbon/Carbon.h \
5733 CoreAudio/CoreAudio.h \
5734 DiskArbitration/DiskArbitration.h \
5735 IOKit/IOKitLib.h \
5736 IOKit/hid/IOHIDLib.h \
5737 OpenAL/al.h \
5738 OpenCL/opencl.h \
5739 QuickTime/ImageCompression.h \
5740 Security/Security.h \
5741 alias.h \
5742 alsa/asoundlib.h \
5743 arpa/inet.h \
5744 arpa/nameser.h \
5745 asm/types.h \
5746 capi20.h \
5747 curses.h \
5748 direct.h \
5749 dirent.h \
5750 dlfcn.h \
5751 elf.h \
5752 float.h \
5753 fnmatch.h \
5754 fontconfig/fontconfig.h \
5755 getopt.h \
5756 gettext-po.h \
5757 grp.h \
5758 gsm.h \
5759 gsm/gsm.h \
5760 ieeefp.h \
5761 inet/mib2.h \
5762 io.h \
5763 jpeglib.h \
5764 kstat.h \
5765 lber.h \
5766 lcms.h \
5767 lcms/lcms.h \
5768 ldap.h \
5769 link.h \
5770 linux/cdrom.h \
5771 linux/compiler.h \
5772 linux/hdreg.h \
5773 linux/input.h \
5774 linux/ioctl.h \
5775 linux/joystick.h \
5776 linux/major.h \
5777 linux/param.h \
5778 linux/serial.h \
5779 linux/types.h \
5780 linux/ucdrom.h \
5781 mach-o/nlist.h \
5782 mach-o/loader.h \
5783 mach/mach.h \
5784 mach/machine.h \
5785 machine/cpu.h \
5786 machine/limits.h \
5787 machine/sysarch.h \
5788 mntent.h \
5789 mpg123.h \
5790 ncurses.h \
5791 netdb.h \
5792 netinet/in.h \
5793 netinet/in_systm.h \
5794 netinet/tcp.h \
5795 netinet/tcp_fsm.h \
5796 openssl/err.h \
5797 openssl/ssl.h \
5798 png.h \
5799 poll.h \
5800 port.h \
5801 process.h \
5802 pthread.h \
5803 pwd.h \
5804 regex.h \
5805 sched.h \
5806 scsi/scsi.h \
5807 scsi/scsi_ioctl.h \
5808 scsi/sg.h \
5809 stdbool.h \
5810 stdint.h \
5811 strings.h \
5812 stropts.h \
5813 sys/asoundlib.h \
5814 sys/attr.h \
5815 sys/cdio.h \
5816 sys/elf32.h \
5817 sys/epoll.h \
5818 sys/event.h \
5819 sys/exec_elf.h \
5820 sys/filio.h \
5821 sys/inotify.h \
5822 sys/ioctl.h \
5823 sys/ipc.h \
5824 sys/limits.h \
5825 sys/link.h \
5826 sys/mman.h \
5827 sys/modem.h \
5828 sys/msg.h \
5829 sys/mtio.h \
5830 sys/param.h \
5831 sys/poll.h \
5832 sys/prctl.h \
5833 sys/protosw.h \
5834 sys/ptrace.h \
5835 sys/resource.h \
5836 sys/scsiio.h \
5837 sys/shm.h \
5838 sys/signal.h \
5839 sys/socket.h \
5840 sys/socketvar.h \
5841 sys/sockio.h \
5842 sys/statvfs.h \
5843 sys/strtio.h \
5844 sys/syscall.h \
5845 sys/tihdr.h \
5846 sys/time.h \
5847 sys/timeout.h \
5848 sys/times.h \
5849 sys/uio.h \
5850 sys/un.h \
5851 sys/utsname.h \
5852 sys/vm86.h \
5853 sys/wait.h \
5854 syscall.h \
5855 termios.h \
5856 tiffio.h \
5857 unistd.h \
5858 utime.h \
5859 valgrind/memcheck.h \
5860 valgrind/valgrind.h \
5861 zlib.h
5863 do :
5864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5865 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5866 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5867 cat >>confdefs.h <<_ACEOF
5868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5869 _ACEOF
5873 done
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5876 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5877 if ${ac_cv_header_stat_broken+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5882 #include <sys/types.h>
5883 #include <sys/stat.h>
5885 #if defined S_ISBLK && defined S_IFDIR
5886 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5887 #endif
5889 #if defined S_ISBLK && defined S_IFCHR
5890 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5891 #endif
5893 #if defined S_ISLNK && defined S_IFREG
5894 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5895 #endif
5897 #if defined S_ISSOCK && defined S_IFREG
5898 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5899 #endif
5901 _ACEOF
5902 if ac_fn_c_try_compile "$LINENO"; then :
5903 ac_cv_header_stat_broken=no
5904 else
5905 ac_cv_header_stat_broken=yes
5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5910 $as_echo "$ac_cv_header_stat_broken" >&6; }
5911 if test $ac_cv_header_stat_broken = yes; then
5913 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5919 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5920 do :
5921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5922 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5923 #ifdef HAVE_SYS_PARAM_H
5924 # include <sys/param.h>
5925 #endif
5927 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5928 cat >>confdefs.h <<_ACEOF
5929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5930 _ACEOF
5934 done
5937 for ac_header in \
5938 netinet/ip.h \
5939 net/if.h \
5940 net/if_arp.h \
5941 net/if_dl.h \
5942 net/if_types.h \
5943 net/route.h \
5944 netinet/if_ether.h \
5945 netinet/if_inarp.h \
5946 netinet/in_pcb.h \
5947 netinet/ip_icmp.h \
5948 netinet/ip_var.h \
5949 netinet/udp.h \
5950 netipx/ipx.h \
5952 do :
5953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5954 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5955 #ifdef HAVE_SYS_SOCKET_H
5956 # include <sys/socket.h>
5957 #endif
5958 #ifdef HAVE_SYS_SOCKETVAR_H
5959 # include <sys/socketvar.h>
5960 #endif
5961 #ifdef HAVE_NET_ROUTE_H
5962 # include <net/route.h>
5963 #endif
5964 #ifdef HAVE_NETINET_IN_H
5965 # include <netinet/in.h>
5966 #endif
5967 #ifdef HAVE_NETINET_IN_SYSTM_H
5968 # include <netinet/in_systm.h>
5969 #endif
5970 #ifdef HAVE_NET_IF_H
5971 # include <net/if.h>
5972 #endif
5973 #ifdef HAVE_NETINET_IP_H
5974 # include <netinet/ip.h>
5975 #endif
5977 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5978 cat >>confdefs.h <<_ACEOF
5979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5980 _ACEOF
5984 done
5987 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5988 do :
5989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5990 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5991 #ifdef HAVE_ALIAS_H
5992 # include <alias.h>
5993 #endif
5994 #ifdef HAVE_SYS_SOCKET_H
5995 # include <sys/socket.h>
5996 #endif
5997 #ifdef HAVE_SYS_SOCKETVAR_H
5998 # include <sys/socketvar.h>
5999 #endif
6000 #ifdef HAVE_SYS_TIMEOUT_H
6001 # include <sys/timeout.h>
6002 #endif
6003 #ifdef HAVE_NETINET_IN_H
6004 # include <netinet/in.h>
6005 #endif
6006 #ifdef HAVE_NETINET_IN_SYSTM_H
6007 # include <netinet/in_systm.h>
6008 #endif
6009 #ifdef HAVE_NETINET_IP_H
6010 # include <netinet/ip.h>
6011 #endif
6012 #ifdef HAVE_NETINET_IP_VAR_H
6013 # include <netinet/ip_var.h>
6014 #endif
6015 #ifdef HAVE_NETINET_IP_ICMP_H
6016 # include <netinet/ip_icmp.h>
6017 #endif
6018 #ifdef HAVE_NETINET_UDP_H
6019 # include <netinet/udp.h>
6020 #endif
6021 #ifdef HAVE_NETINET_TCP_H
6022 # include <netinet/tcp.h>
6023 #endif
6024 #ifdef HAVE_NETINET_TCP_TIMER_H
6025 #include <netinet/tcp_timer.h>
6026 #endif
6028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6029 cat >>confdefs.h <<_ACEOF
6030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6031 _ACEOF
6035 done
6038 for ac_header in linux/ipx.h linux/irda.h
6039 do :
6040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6041 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6042 #ifdef HAVE_ASM_TYPES_H
6043 # include <asm/types.h>
6044 #endif
6045 #ifdef HAVE_SYS_SOCKET_H
6046 # include <sys/socket.h>
6047 #endif
6048 #ifdef HAVE_LINUX_TYPES_H
6049 # include <linux/types.h>
6050 #endif
6052 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6053 cat >>confdefs.h <<_ACEOF
6054 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6055 _ACEOF
6059 done
6062 for ac_header in mach-o/dyld_images.h
6063 do :
6064 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6065 # include <stdbool.h>
6066 #endif
6067 #ifdef HAVE_STDINT_H
6068 # include <stdint.h>
6069 #endif
6071 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6072 cat >>confdefs.h <<_ACEOF
6073 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6074 _ACEOF
6078 done
6081 for ac_header in resolv.h
6082 do :
6083 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6084 #ifdef HAVE_SYS_SOCKET_H
6085 # include <sys/socket.h>
6086 #endif
6087 #ifdef HAVE_NETINET_IN_H
6088 # include <netinet/in.h>
6089 #endif
6090 #ifdef HAVE_ARPA_NAMESER_H
6091 # include <arpa/nameser.h>
6092 #endif
6094 if test "x$ac_cv_header_resolv_h" = xyes; then :
6095 cat >>confdefs.h <<_ACEOF
6096 #define HAVE_RESOLV_H 1
6097 _ACEOF
6101 done
6104 for ac_header in ifaddrs.h
6105 do :
6106 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6108 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6109 cat >>confdefs.h <<_ACEOF
6110 #define HAVE_IFADDRS_H 1
6111 _ACEOF
6115 done
6118 for ac_header in ucontext.h
6119 do :
6120 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6122 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6123 cat >>confdefs.h <<_ACEOF
6124 #define HAVE_UCONTEXT_H 1
6125 _ACEOF
6129 done
6132 for ac_header in sys/thr.h
6133 do :
6134 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6135 #ifdef HAVE_UCONTEXT_H
6136 #include <ucontext.h>
6137 #endif
6139 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6140 cat >>confdefs.h <<_ACEOF
6141 #define HAVE_SYS_THR_H 1
6142 _ACEOF
6146 done
6149 for ac_header in pthread_np.h
6150 do :
6151 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6152 #include <pthread.h>
6153 #endif
6155 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6156 cat >>confdefs.h <<_ACEOF
6157 #define HAVE_PTHREAD_NP_H 1
6158 _ACEOF
6162 done
6165 for ac_header in linux/videodev.h linux/videodev2.h
6166 do :
6167 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6168 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6169 #include <sys/time.h>
6170 #endif
6171 #include <sys/types.h>
6172 #ifdef HAVE_ASM_TYPES_H
6173 #include <asm/types.h>
6174 #endif
6176 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6177 cat >>confdefs.h <<_ACEOF
6178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6179 _ACEOF
6183 done
6186 for ac_header in linux/capi.h
6187 do :
6188 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6190 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6191 cat >>confdefs.h <<_ACEOF
6192 #define HAVE_LINUX_CAPI_H 1
6193 _ACEOF
6197 done
6201 DLLEXT=""
6203 DLLFLAGS="-D_REENTRANT"
6205 LDSHARED=""
6207 LDDLLFLAGS=""
6209 LIBEXT="so"
6211 IMPLIBEXT="def"
6213 LDRPATH_INSTALL=""
6215 LDRPATH_LOCAL=""
6217 STATIC_IMPLIBEXT="def.a"
6218 # Extract the first word of "ldd", so it can be a program name with args.
6219 set dummy ldd; ac_word=$2
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221 $as_echo_n "checking for $ac_word... " >&6; }
6222 if ${ac_cv_path_LDD+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 case $LDD in
6226 [\\/]* | ?:[\\/]*)
6227 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 as_dummy="/sbin:/usr/sbin:$PATH"
6232 for as_dir in $as_dummy
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6242 done
6243 done
6244 IFS=$as_save_IFS
6246 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6248 esac
6250 LDD=$ac_cv_path_LDD
6251 if test -n "$LDD"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6253 $as_echo "$LDD" >&6; }
6254 else
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6261 case $host_os in
6262 cygwin*|mingw32*)
6263 if test -n "$ac_tool_prefix"; then
6264 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6265 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if ${ac_cv_prog_DLLTOOL+:} false; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 if test -n "$DLLTOOL"; then
6272 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6285 done
6286 done
6287 IFS=$as_save_IFS
6291 DLLTOOL=$ac_cv_prog_DLLTOOL
6292 if test -n "$DLLTOOL"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6294 $as_echo "$DLLTOOL" >&6; }
6295 else
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6302 if test -z "$ac_cv_prog_DLLTOOL"; then
6303 ac_ct_DLLTOOL=$DLLTOOL
6304 # Extract the first word of "dlltool", so it can be a program name with args.
6305 set dummy dlltool; 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_prog_ac_ct_DLLTOOL+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 if test -n "$ac_ct_DLLTOOL"; then
6312 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6325 done
6326 done
6327 IFS=$as_save_IFS
6331 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6332 if test -n "$ac_ct_DLLTOOL"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6334 $as_echo "$ac_ct_DLLTOOL" >&6; }
6335 else
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6340 if test "x$ac_ct_DLLTOOL" = x; then
6341 DLLTOOL="false"
6342 else
6343 case $cross_compiling:$ac_tool_warned in
6344 yes:)
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6347 ac_tool_warned=yes ;;
6348 esac
6349 DLLTOOL=$ac_ct_DLLTOOL
6351 else
6352 DLLTOOL="$ac_cv_prog_DLLTOOL"
6355 if test -n "$ac_tool_prefix"; then
6356 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6357 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if ${ac_cv_prog_DLLWRAP+:} false; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 if test -n "$DLLWRAP"; then
6364 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6365 else
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6377 done
6378 done
6379 IFS=$as_save_IFS
6383 DLLWRAP=$ac_cv_prog_DLLWRAP
6384 if test -n "$DLLWRAP"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6386 $as_echo "$DLLWRAP" >&6; }
6387 else
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6394 if test -z "$ac_cv_prog_DLLWRAP"; then
6395 ac_ct_DLLWRAP=$DLLWRAP
6396 # Extract the first word of "dllwrap", so it can be a program name with args.
6397 set dummy dllwrap; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 if test -n "$ac_ct_DLLWRAP"; then
6404 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6417 done
6418 done
6419 IFS=$as_save_IFS
6423 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6424 if test -n "$ac_ct_DLLWRAP"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6426 $as_echo "$ac_ct_DLLWRAP" >&6; }
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6432 if test "x$ac_ct_DLLWRAP" = x; then
6433 DLLWRAP="false"
6434 else
6435 case $cross_compiling:$ac_tool_warned in
6436 yes:)
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6439 ac_tool_warned=yes ;;
6440 esac
6441 DLLWRAP=$ac_ct_DLLWRAP
6443 else
6444 DLLWRAP="$ac_cv_prog_DLLWRAP"
6447 if test "$DLLWRAP" = "false"; then
6448 LIBEXT="a"
6449 else
6450 LIBEXT="dll"
6452 IMPLIBEXT="a"
6453 STATIC_IMPLIBEXT="a"
6454 enable_iphlpapi=${enable_iphlpapi:-no}
6455 enable_kernel32=${enable_kernel32:-no}
6456 enable_msvcrt=${enable_msvcrt:-no}
6457 enable_ntdll=${enable_ntdll:-no}
6458 enable_ws2_32=${enable_ws2_32:-no}
6459 enable_loader=${enable_loader:-no}
6460 enable_server=${enable_server:-no}
6461 with_x=${with_x:-no}
6462 with_pthread=${with_pthread:-no}
6464 darwin*|macosx*)
6465 DLLEXT=".so"
6466 LIBEXT="dylib"
6467 DLLFLAGS="$DLLFLAGS -fPIC"
6468 LDDLLFLAGS="-bundle -multiply_defined suppress"
6469 LIBWINE_LDFLAGS="-multiply_defined suppress"
6470 LDSHARED="\$(CC) -dynamiclib"
6471 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6472 COREFOUNDATIONLIB="-framework CoreFoundation"
6474 IOKITLIB="-framework IOKit -framework CoreFoundation"
6476 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6478 case $host_os in
6479 darwin11*)
6480 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6483 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6485 esac
6486 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6487 then
6488 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6491 if test "$ac_cv_header_Security_Security_h" = "yes"
6492 then
6493 SECURITYLIB="-framework Security -framework CoreFoundation"
6495 ac_save_LIBS="$LIBS"
6496 LIBS="$LIBS $SECURITYLIB"
6497 for ac_func in SSLCopyPeerCertificates
6498 do :
6499 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6500 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6501 cat >>confdefs.h <<_ACEOF
6502 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6503 _ACEOF
6506 done
6508 LIBS="$ac_save_LIBS"
6509 with_gnutls=${with_gnutls:-no}
6511 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6512 then
6513 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6514 then
6515 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6517 else
6518 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6521 ac_save_LIBS="$LIBS"
6522 LIBS="$LIBS $COREAUDIO"
6523 for ac_func in AUGraphAddNode
6524 do :
6525 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6526 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6527 cat >>confdefs.h <<_ACEOF
6528 #define HAVE_AUGRAPHADDNODE 1
6529 _ACEOF
6532 done
6534 LIBS="$ac_save_LIBS"
6536 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6537 then
6538 FRAMEWORK_OPENAL="-framework OpenAL"
6541 cat >>confdefs.h <<_ACEOF
6542 #define HAVE_OPENAL 1
6543 _ACEOF
6545 ac_cv_lib_openal=yes
6547 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6548 then
6549 LIBOPENCL="-framework OpenCL"
6551 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6553 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6554 then
6555 ac_save_LIBS="$LIBS"
6556 LIBS="$LIBS $IOKITLIB"
6557 for ac_func in IOHIDManagerCreate
6558 do :
6559 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6560 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6561 cat >>confdefs.h <<_ACEOF
6562 #define HAVE_IOHIDMANAGERCREATE 1
6563 _ACEOF
6566 done
6568 LIBS="$ac_save_LIBS"
6570 case $host_cpu in
6571 *powerpc*)
6572 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6573 esac
6574 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6575 then
6576 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6578 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6579 else
6580 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6582 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6583 then
6584 CARBONLIB="-framework Carbon"
6586 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6588 if test "x$enable_win16" = "xyes"
6589 then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6591 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6592 if test "$cross_compiling" = yes; then :
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6594 $as_echo "cross-compiling, assuming yes" >&6; }
6595 else
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 asm(".text\n"
6599 "bad:\tnop;nop\n"
6600 "good:\tnop;nop\n\t"
6601 ".globl _testfunc\n"
6602 "_testfunc:\tcallw good");
6603 extern void testfunc();
6605 main ()
6607 unsigned short *p = (unsigned short *)testfunc;
6608 return p[0] != 0xe866 || p[1] != 0xfffa
6610 return 0;
6612 _ACEOF
6613 if ac_fn_c_try_run "$LINENO"; then :
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6615 $as_echo "yes" >&6; }
6616 else
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6619 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
6621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6622 conftest.$ac_objext conftest.beam conftest.$ac_ext
6628 DLLFLAGS="$DLLFLAGS -fPIC"
6629 DLLEXT=".so"
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6631 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6632 if ${ac_cv_c_dll_gnuelf+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 ac_wine_try_cflags_saved=$CFLAGS
6636 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 void myfunc() {}
6640 _ACEOF
6641 if ac_fn_c_try_link "$LINENO"; then :
6642 ac_cv_c_dll_gnuelf="yes"
6643 else
6644 ac_cv_c_dll_gnuelf="no"
6646 rm -f core conftest.err conftest.$ac_objext \
6647 conftest$ac_exeext conftest.$ac_ext
6648 CFLAGS=$ac_wine_try_cflags_saved
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6651 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6652 if test "$ac_cv_c_dll_gnuelf" = "yes"
6653 then
6654 LDSHARED="\$(CC) -shared"
6655 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6657 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6658 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 ac_wine_try_cflags_saved=$CFLAGS
6662 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6665 int main(int argc, char **argv) { return 0; }
6666 _ACEOF
6667 if ac_fn_c_try_link "$LINENO"; then :
6668 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6669 else
6670 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6672 rm -f core conftest.err conftest.$ac_objext \
6673 conftest$ac_exeext conftest.$ac_ext
6674 CFLAGS=$ac_wine_try_cflags_saved
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6677 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6678 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6679 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6680 else
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6682 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6683 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686 ac_wine_try_cflags_saved=$CFLAGS
6687 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689 /* end confdefs.h. */
6690 int main(int argc, char **argv) { return 0; }
6691 _ACEOF
6692 if ac_fn_c_try_link "$LINENO"; then :
6693 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6694 else
6695 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6697 rm -f core conftest.err conftest.$ac_objext \
6698 conftest$ac_exeext conftest.$ac_ext
6699 CFLAGS=$ac_wine_try_cflags_saved
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6702 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6703 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6704 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6709 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6710 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 ac_wine_try_cflags_saved=$CFLAGS
6714 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6717 int main(int argc, char **argv) { return 0; }
6718 _ACEOF
6719 if ac_fn_c_try_link "$LINENO"; then :
6720 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6721 else
6722 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6724 rm -f core conftest.err conftest.$ac_objext \
6725 conftest$ac_exeext conftest.$ac_ext
6726 CFLAGS=$ac_wine_try_cflags_saved
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6729 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6730 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6731 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6734 { $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
6735 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6736 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 ac_wine_try_cflags_saved=$CFLAGS
6740 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 int main(int argc, char **argv) { return 0; }
6744 _ACEOF
6745 if ac_fn_c_try_link "$LINENO"; then :
6746 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6747 else
6748 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6750 rm -f core conftest.err conftest.$ac_objext \
6751 conftest$ac_exeext conftest.$ac_ext
6752 CFLAGS=$ac_wine_try_cflags_saved
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6755 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6756 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6757 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6760 echo '{ global: *; };' >conftest.map
6761 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6763 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6764 if eval \${$as_ac_var+:} false; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 ac_wine_try_cflags_saved=$CFLAGS
6768 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771 int main(int argc, char **argv) { return 0; }
6772 _ACEOF
6773 if ac_fn_c_try_link "$LINENO"; then :
6774 eval "$as_ac_var=yes"
6775 else
6776 eval "$as_ac_var=no"
6778 rm -f core conftest.err conftest.$ac_objext \
6779 conftest$ac_exeext conftest.$ac_ext
6780 CFLAGS=$ac_wine_try_cflags_saved
6782 eval ac_res=\$$as_ac_var
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6784 $as_echo "$ac_res" >&6; }
6785 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6786 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6788 rm -f conftest.map
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6791 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6792 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 ac_wine_try_cflags_saved=$CFLAGS
6796 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6799 int main(int argc, char **argv) { return 0; }
6800 _ACEOF
6801 if ac_fn_c_try_link "$LINENO"; then :
6802 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6803 else
6804 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6806 rm -f core conftest.err conftest.$ac_objext \
6807 conftest$ac_exeext conftest.$ac_ext
6808 CFLAGS=$ac_wine_try_cflags_saved
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6811 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6812 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6813 LDEXECFLAGS="-Wl,--export-dynamic"
6817 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6819 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6820 if eval \${$as_ac_var+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 ac_wine_try_cflags_saved=$CFLAGS
6824 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827 int main(int argc, char **argv) { return 0; }
6828 _ACEOF
6829 if ac_fn_c_try_link "$LINENO"; then :
6830 eval "$as_ac_var=yes"
6831 else
6832 eval "$as_ac_var=no"
6834 rm -f core conftest.err conftest.$ac_objext \
6835 conftest$ac_exeext conftest.$ac_ext
6836 CFLAGS=$ac_wine_try_cflags_saved
6838 eval ac_res=\$$as_ac_var
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6840 $as_echo "$ac_res" >&6; }
6841 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6842 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6843 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6844 else
6845 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6847 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6848 if eval \${$as_ac_var+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 ac_wine_try_cflags_saved=$CFLAGS
6852 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855 int main(int argc, char **argv) { return 0; }
6856 _ACEOF
6857 if ac_fn_c_try_link "$LINENO"; then :
6858 eval "$as_ac_var=yes"
6859 else
6860 eval "$as_ac_var=no"
6862 rm -f core conftest.err conftest.$ac_objext \
6863 conftest$ac_exeext conftest.$ac_ext
6864 CFLAGS=$ac_wine_try_cflags_saved
6866 eval ac_res=\$$as_ac_var
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6868 $as_echo "$ac_res" >&6; }
6869 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6870 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6871 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6876 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6877 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6878 $as_echo_n "(cached) " >&6
6879 else
6880 ac_wine_try_cflags_saved=$CFLAGS
6881 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6884 int main(int argc, char **argv) { return 0; }
6885 _ACEOF
6886 if ac_fn_c_try_link "$LINENO"; then :
6887 ac_cv_cflags__Wl___enable_new_dtags=yes
6888 else
6889 ac_cv_cflags__Wl___enable_new_dtags=no
6891 rm -f core conftest.err conftest.$ac_objext \
6892 conftest$ac_exeext conftest.$ac_ext
6893 CFLAGS=$ac_wine_try_cflags_saved
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6896 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6897 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6898 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6901 case $host_cpu in
6902 *i[3456789]86* | x86_64)
6903 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6905 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6906 if eval \${$as_ac_var+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 ac_wine_try_cflags_saved=$CFLAGS
6910 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913 int main(int argc, char **argv) { return 0; }
6914 _ACEOF
6915 if ac_fn_c_try_link "$LINENO"; then :
6916 eval "$as_ac_var=yes"
6917 else
6918 eval "$as_ac_var=no"
6920 rm -f core conftest.err conftest.$ac_objext \
6921 conftest$ac_exeext conftest.$ac_ext
6922 CFLAGS=$ac_wine_try_cflags_saved
6924 eval ac_res=\$$as_ac_var
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6926 $as_echo "$ac_res" >&6; }
6927 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6928 case $host_os in
6929 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6930 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6931 esac
6934 # Extract the first word of "prelink", so it can be a program name with args.
6935 set dummy prelink; ac_word=$2
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 $as_echo_n "checking for $ac_word... " >&6; }
6938 if ${ac_cv_path_PRELINK+:} false; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 case $PRELINK in
6942 [\\/]* | ?:[\\/]*)
6943 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in /sbin /usr/sbin $PATH
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6957 done
6958 done
6959 IFS=$as_save_IFS
6961 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6963 esac
6965 PRELINK=$ac_cv_path_PRELINK
6966 if test -n "$PRELINK"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6968 $as_echo "$PRELINK" >&6; }
6969 else
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6975 if test "x$PRELINK" = xfalse
6976 then
6977 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6980 esac
6982 else
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6984 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6985 if ${ac_cv_c_dll_unixware+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 ac_wine_try_cflags_saved=$CFLAGS
6989 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6992 void myfunc() {}
6993 _ACEOF
6994 if ac_fn_c_try_link "$LINENO"; then :
6995 ac_cv_c_dll_unixware="yes"
6996 else
6997 ac_cv_c_dll_unixware="no"
6999 rm -f core conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001 CFLAGS=$ac_wine_try_cflags_saved
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7004 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7005 if test "$ac_cv_c_dll_unixware" = "yes"
7006 then
7007 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7008 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7010 else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7012 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7013 if ${ac_cv_c_dll_hpux+:} false; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 ac_wine_try_cflags_saved=$CFLAGS
7017 CFLAGS="$CFLAGS -shared"
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020 void myfunc() {}
7021 _ACEOF
7022 if ac_fn_c_try_link "$LINENO"; then :
7023 ac_cv_c_dll_hpux="yes"
7024 else
7025 ac_cv_c_dll_hpux="no"
7027 rm -f core conftest.err conftest.$ac_objext \
7028 conftest$ac_exeext conftest.$ac_ext
7029 CFLAGS=$ac_wine_try_cflags_saved
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7032 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7033 if test "$ac_cv_c_dll_hpux" = "yes"
7034 then
7035 LIBEXT="sl"
7036 DLLEXT=".sl"
7037 LDDLLFLAGS="-shared -fPIC"
7038 LDSHARED="\$(CC) -shared"
7043 esac
7045 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7046 enable_winequartz_drv=${enable_winequartz_drv:-no}
7048 if test "$LIBEXT" = "a"; then
7049 as_fn_error $? "could not find a way to build shared libraries.
7050 It is currently not possible to build Wine without shared library
7051 (.so) support to allow transparent switch between .so and .dll files.
7052 If you are using Linux, you will need a newer binutils.
7053 " "$LINENO" 5
7056 CROSSTEST_DISABLE=\#
7058 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7059 then
7060 case "$host_cpu" in
7061 i[3456789]86*)
7062 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 " ;;
7063 x86_64)
7064 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 " ;;
7066 ac_prefix_list="" ;;
7067 esac
7068 for ac_prog in $ac_prefix_list
7070 # Extract the first word of "$ac_prog", so it can be a program name with args.
7071 set dummy $ac_prog; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if ${ac_cv_prog_CROSSCC+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 if test -n "$CROSSCC"; then
7078 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7079 else
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7087 ac_cv_prog_CROSSCC="$ac_prog"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7091 done
7092 done
7093 IFS=$as_save_IFS
7097 CROSSCC=$ac_cv_prog_CROSSCC
7098 if test -n "$CROSSCC"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7100 $as_echo "$CROSSCC" >&6; }
7101 else
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103 $as_echo "no" >&6; }
7107 test -n "$CROSSCC" && break
7108 done
7109 test -n "$CROSSCC" || CROSSCC="false"
7111 if test "$CROSSCC" != "false"
7112 then
7113 ac_save_CC="$CC"
7114 CC="$CROSSCC"
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7116 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7121 main ()
7125 return 0;
7127 _ACEOF
7128 if ac_fn_c_try_compile "$LINENO"; then :
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7130 $as_echo "yes" >&6; }
7131 set x $CROSSCC
7132 shift
7133 target=""
7134 while test $# -ge 1
7136 case "$1" in
7137 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7138 esac
7139 shift
7140 done
7141 if test -n "$target"
7142 then
7143 CROSSTEST_DISABLE=""
7144 CROSSTARGET="$target"
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152 CC="$ac_save_CC"
7157 if test "$ac_cv_header_pthread_h" = "yes"
7158 then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7160 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7161 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 ac_check_lib_save_LIBS=$LIBS
7165 LIBS="-lpthread $LIBS"
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7169 /* Override any GCC internal prototype to avoid an error.
7170 Use char because int might match the return type of a GCC
7171 builtin and then its argument prototype would still apply. */
7172 #ifdef __cplusplus
7173 extern "C"
7174 #endif
7175 char pthread_create ();
7177 main ()
7179 return pthread_create ();
7181 return 0;
7183 _ACEOF
7184 if ac_fn_c_try_link "$LINENO"; then :
7185 ac_cv_lib_pthread_pthread_create=yes
7186 else
7187 ac_cv_lib_pthread_pthread_create=no
7189 rm -f core conftest.err conftest.$ac_objext \
7190 conftest$ac_exeext conftest.$ac_ext
7191 LIBS=$ac_check_lib_save_LIBS
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7194 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7195 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7196 LIBPTHREAD="-lpthread"
7201 if test "x$LIBPTHREAD" = "x"; then :
7202 case "x$with_pthread" in
7203 xno) ;;
7204 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7205 Wine cannot support threads without libpthread.
7206 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7207 esac
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7212 $as_echo_n "checking for X... " >&6; }
7215 # Check whether --with-x was given.
7216 if test "${with_x+set}" = set; then :
7217 withval=$with_x;
7220 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7221 if test "x$with_x" = xno; then
7222 # The user explicitly disabled X.
7223 have_x=disabled
7224 else
7225 case $x_includes,$x_libraries in #(
7226 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7227 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 # One or both of the vars are not set, and there is no cached value.
7231 ac_x_includes=no ac_x_libraries=no
7232 rm -f -r conftest.dir
7233 if mkdir conftest.dir; then
7234 cd conftest.dir
7235 cat >Imakefile <<'_ACEOF'
7236 incroot:
7237 @echo incroot='${INCROOT}'
7238 usrlibdir:
7239 @echo usrlibdir='${USRLIBDIR}'
7240 libdir:
7241 @echo libdir='${LIBDIR}'
7242 _ACEOF
7243 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7244 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7245 for ac_var in incroot usrlibdir libdir; do
7246 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7247 done
7248 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7249 for ac_extension in a so sl dylib la dll; do
7250 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7251 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7252 ac_im_usrlibdir=$ac_im_libdir; break
7254 done
7255 # Screen out bogus values from the imake configuration. They are
7256 # bogus both because they are the default anyway, and because
7257 # using them would break gcc on systems where it needs fixed includes.
7258 case $ac_im_incroot in
7259 /usr/include) ac_x_includes= ;;
7260 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7261 esac
7262 case $ac_im_usrlibdir in
7263 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7264 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7265 esac
7267 cd ..
7268 rm -f -r conftest.dir
7271 # Standard set of common directories for X headers.
7272 # Check X11 before X11Rn because it is often a symlink to the current release.
7273 ac_x_header_dirs='
7274 /usr/X11/include
7275 /usr/X11R7/include
7276 /usr/X11R6/include
7277 /usr/X11R5/include
7278 /usr/X11R4/include
7280 /usr/include/X11
7281 /usr/include/X11R7
7282 /usr/include/X11R6
7283 /usr/include/X11R5
7284 /usr/include/X11R4
7286 /usr/local/X11/include
7287 /usr/local/X11R7/include
7288 /usr/local/X11R6/include
7289 /usr/local/X11R5/include
7290 /usr/local/X11R4/include
7292 /usr/local/include/X11
7293 /usr/local/include/X11R7
7294 /usr/local/include/X11R6
7295 /usr/local/include/X11R5
7296 /usr/local/include/X11R4
7298 /usr/X386/include
7299 /usr/x386/include
7300 /usr/XFree86/include/X11
7302 /usr/include
7303 /usr/local/include
7304 /usr/unsupported/include
7305 /usr/athena/include
7306 /usr/local/x11r5/include
7307 /usr/lpp/Xamples/include
7309 /usr/openwin/include
7310 /usr/openwin/share/include'
7312 if test "$ac_x_includes" = no; then
7313 # Guess where to find include files, by looking for Xlib.h.
7314 # First, try using that file with no special directory specified.
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 #include <X11/Xlib.h>
7318 _ACEOF
7319 if ac_fn_c_try_cpp "$LINENO"; then :
7320 # We can compile using X headers with no special include directory.
7321 ac_x_includes=
7322 else
7323 for ac_dir in $ac_x_header_dirs; do
7324 if test -r "$ac_dir/X11/Xlib.h"; then
7325 ac_x_includes=$ac_dir
7326 break
7328 done
7330 rm -f conftest.err conftest.i conftest.$ac_ext
7331 fi # $ac_x_includes = no
7333 if test "$ac_x_libraries" = no; then
7334 # Check for the libraries.
7335 # See if we find them without any special options.
7336 # Don't add to $LIBS permanently.
7337 ac_save_LIBS=$LIBS
7338 LIBS="-lX11 $LIBS"
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7341 #include <X11/Xlib.h>
7343 main ()
7345 XrmInitialize ()
7347 return 0;
7349 _ACEOF
7350 if ac_fn_c_try_link "$LINENO"; then :
7351 LIBS=$ac_save_LIBS
7352 # We can link X programs with no special library path.
7353 ac_x_libraries=
7354 else
7355 LIBS=$ac_save_LIBS
7356 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7358 # Don't even attempt the hair of trying to link an X program!
7359 for ac_extension in a so sl dylib la dll; do
7360 if test -r "$ac_dir/libX11.$ac_extension"; then
7361 ac_x_libraries=$ac_dir
7362 break 2
7364 done
7365 done
7367 rm -f core conftest.err conftest.$ac_objext \
7368 conftest$ac_exeext conftest.$ac_ext
7369 fi # $ac_x_libraries = no
7371 case $ac_x_includes,$ac_x_libraries in #(
7372 no,* | *,no | *\'*)
7373 # Didn't find X, or a directory has "'" in its name.
7374 ac_cv_have_x="have_x=no";; #(
7376 # Record where we found X for the cache.
7377 ac_cv_have_x="have_x=yes\
7378 ac_x_includes='$ac_x_includes'\
7379 ac_x_libraries='$ac_x_libraries'"
7380 esac
7382 ;; #(
7383 *) have_x=yes;;
7384 esac
7385 eval "$ac_cv_have_x"
7386 fi # $with_x != no
7388 if test "$have_x" != yes; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7390 $as_echo "$have_x" >&6; }
7391 no_x=yes
7392 else
7393 # If each of the values was on the command line, it overrides each guess.
7394 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7395 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7396 # Update the cache value to reflect the command line values.
7397 ac_cv_have_x="have_x=yes\
7398 ac_x_includes='$x_includes'\
7399 ac_x_libraries='$x_libraries'"
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7401 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7404 if test "$no_x" = yes; then
7405 # Not all programs may use this symbol, but it does not hurt to define it.
7407 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7409 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7410 else
7411 if test -n "$x_includes"; then
7412 X_CFLAGS="$X_CFLAGS -I$x_includes"
7415 # It would also be nice to do this for all -L options, not just this one.
7416 if test -n "$x_libraries"; then
7417 X_LIBS="$X_LIBS -L$x_libraries"
7418 # For Solaris; some versions of Sun CC require a space after -R and
7419 # others require no space. Words are not sufficient . . . .
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7421 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7422 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7423 ac_xsave_c_werror_flag=$ac_c_werror_flag
7424 ac_c_werror_flag=yes
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7429 main ()
7433 return 0;
7435 _ACEOF
7436 if ac_fn_c_try_link "$LINENO"; then :
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7439 X_LIBS="$X_LIBS -R$x_libraries"
7440 else
7441 LIBS="$ac_xsave_LIBS -R $x_libraries"
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7446 main ()
7450 return 0;
7452 _ACEOF
7453 if ac_fn_c_try_link "$LINENO"; then :
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7455 $as_echo "yes" >&6; }
7456 X_LIBS="$X_LIBS -R $x_libraries"
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7459 $as_echo "neither works" >&6; }
7461 rm -f core conftest.err conftest.$ac_objext \
7462 conftest$ac_exeext conftest.$ac_ext
7464 rm -f core conftest.err conftest.$ac_objext \
7465 conftest$ac_exeext conftest.$ac_ext
7466 ac_c_werror_flag=$ac_xsave_c_werror_flag
7467 LIBS=$ac_xsave_LIBS
7470 # Check for system-dependent libraries X programs must link with.
7471 # Do this before checking for the system-independent R6 libraries
7472 # (-lICE), since we may need -lsocket or whatever for X linking.
7474 if test "$ISC" = yes; then
7475 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7476 else
7477 # Martyn Johnson says this is needed for Ultrix, if the X
7478 # libraries were built with DECnet support. And Karl Berry says
7479 # the Alpha needs dnet_stub (dnet does not exist).
7480 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7484 /* Override any GCC internal prototype to avoid an error.
7485 Use char because int might match the return type of a GCC
7486 builtin and then its argument prototype would still apply. */
7487 #ifdef __cplusplus
7488 extern "C"
7489 #endif
7490 char XOpenDisplay ();
7492 main ()
7494 return XOpenDisplay ();
7496 return 0;
7498 _ACEOF
7499 if ac_fn_c_try_link "$LINENO"; then :
7501 else
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7503 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7504 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 ac_check_lib_save_LIBS=$LIBS
7508 LIBS="-ldnet $LIBS"
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7512 /* Override any GCC internal prototype to avoid an error.
7513 Use char because int might match the return type of a GCC
7514 builtin and then its argument prototype would still apply. */
7515 #ifdef __cplusplus
7516 extern "C"
7517 #endif
7518 char dnet_ntoa ();
7520 main ()
7522 return dnet_ntoa ();
7524 return 0;
7526 _ACEOF
7527 if ac_fn_c_try_link "$LINENO"; then :
7528 ac_cv_lib_dnet_dnet_ntoa=yes
7529 else
7530 ac_cv_lib_dnet_dnet_ntoa=no
7532 rm -f core conftest.err conftest.$ac_objext \
7533 conftest$ac_exeext conftest.$ac_ext
7534 LIBS=$ac_check_lib_save_LIBS
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7537 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7538 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7539 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7542 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7544 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7545 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 ac_check_lib_save_LIBS=$LIBS
7549 LIBS="-ldnet_stub $LIBS"
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7553 /* Override any GCC internal prototype to avoid an error.
7554 Use char because int might match the return type of a GCC
7555 builtin and then its argument prototype would still apply. */
7556 #ifdef __cplusplus
7557 extern "C"
7558 #endif
7559 char dnet_ntoa ();
7561 main ()
7563 return dnet_ntoa ();
7565 return 0;
7567 _ACEOF
7568 if ac_fn_c_try_link "$LINENO"; then :
7569 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7570 else
7571 ac_cv_lib_dnet_stub_dnet_ntoa=no
7573 rm -f core conftest.err conftest.$ac_objext \
7574 conftest$ac_exeext conftest.$ac_ext
7575 LIBS=$ac_check_lib_save_LIBS
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7578 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7579 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7580 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7585 rm -f core conftest.err conftest.$ac_objext \
7586 conftest$ac_exeext conftest.$ac_ext
7587 LIBS="$ac_xsave_LIBS"
7589 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7590 # to get the SysV transport functions.
7591 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7592 # needs -lnsl.
7593 # The nsl library prevents programs from opening the X display
7594 # on Irix 5.2, according to T.E. Dickey.
7595 # The functions gethostbyname, getservbyname, and inet_addr are
7596 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7597 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7598 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7602 if test $ac_cv_func_gethostbyname = no; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7604 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7605 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 ac_check_lib_save_LIBS=$LIBS
7609 LIBS="-lnsl $LIBS"
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7613 /* Override any GCC internal prototype to avoid an error.
7614 Use char because int might match the return type of a GCC
7615 builtin and then its argument prototype would still apply. */
7616 #ifdef __cplusplus
7617 extern "C"
7618 #endif
7619 char gethostbyname ();
7621 main ()
7623 return gethostbyname ();
7625 return 0;
7627 _ACEOF
7628 if ac_fn_c_try_link "$LINENO"; then :
7629 ac_cv_lib_nsl_gethostbyname=yes
7630 else
7631 ac_cv_lib_nsl_gethostbyname=no
7633 rm -f core conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7635 LIBS=$ac_check_lib_save_LIBS
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7638 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7639 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7640 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7643 if test $ac_cv_lib_nsl_gethostbyname = no; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7645 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7646 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 ac_check_lib_save_LIBS=$LIBS
7650 LIBS="-lbsd $LIBS"
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7654 /* Override any GCC internal prototype to avoid an error.
7655 Use char because int might match the return type of a GCC
7656 builtin and then its argument prototype would still apply. */
7657 #ifdef __cplusplus
7658 extern "C"
7659 #endif
7660 char gethostbyname ();
7662 main ()
7664 return gethostbyname ();
7666 return 0;
7668 _ACEOF
7669 if ac_fn_c_try_link "$LINENO"; then :
7670 ac_cv_lib_bsd_gethostbyname=yes
7671 else
7672 ac_cv_lib_bsd_gethostbyname=no
7674 rm -f core conftest.err conftest.$ac_objext \
7675 conftest$ac_exeext conftest.$ac_ext
7676 LIBS=$ac_check_lib_save_LIBS
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7679 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7680 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7681 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7687 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7688 # socket/setsockopt and other routines are undefined under SCO ODT
7689 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7690 # on later versions), says Simon Leinen: it contains gethostby*
7691 # variants that don't use the name server (or something). -lsocket
7692 # must be given before -lnsl if both are needed. We assume that
7693 # if connect needs -lnsl, so does gethostbyname.
7694 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7695 if test "x$ac_cv_func_connect" = xyes; then :
7699 if test $ac_cv_func_connect = no; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7701 $as_echo_n "checking for connect in -lsocket... " >&6; }
7702 if ${ac_cv_lib_socket_connect+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 ac_check_lib_save_LIBS=$LIBS
7706 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7710 /* Override any GCC internal prototype to avoid an error.
7711 Use char because int might match the return type of a GCC
7712 builtin and then its argument prototype would still apply. */
7713 #ifdef __cplusplus
7714 extern "C"
7715 #endif
7716 char connect ();
7718 main ()
7720 return connect ();
7722 return 0;
7724 _ACEOF
7725 if ac_fn_c_try_link "$LINENO"; then :
7726 ac_cv_lib_socket_connect=yes
7727 else
7728 ac_cv_lib_socket_connect=no
7730 rm -f core conftest.err conftest.$ac_objext \
7731 conftest$ac_exeext conftest.$ac_ext
7732 LIBS=$ac_check_lib_save_LIBS
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7735 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7736 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7737 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7742 # Guillermo Gomez says -lposix is necessary on A/UX.
7743 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7744 if test "x$ac_cv_func_remove" = xyes; then :
7748 if test $ac_cv_func_remove = no; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7750 $as_echo_n "checking for remove in -lposix... " >&6; }
7751 if ${ac_cv_lib_posix_remove+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 ac_check_lib_save_LIBS=$LIBS
7755 LIBS="-lposix $LIBS"
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7759 /* Override any GCC internal prototype to avoid an error.
7760 Use char because int might match the return type of a GCC
7761 builtin and then its argument prototype would still apply. */
7762 #ifdef __cplusplus
7763 extern "C"
7764 #endif
7765 char remove ();
7767 main ()
7769 return remove ();
7771 return 0;
7773 _ACEOF
7774 if ac_fn_c_try_link "$LINENO"; then :
7775 ac_cv_lib_posix_remove=yes
7776 else
7777 ac_cv_lib_posix_remove=no
7779 rm -f core conftest.err conftest.$ac_objext \
7780 conftest$ac_exeext conftest.$ac_ext
7781 LIBS=$ac_check_lib_save_LIBS
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7784 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7785 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7786 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7791 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7792 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7793 if test "x$ac_cv_func_shmat" = xyes; then :
7797 if test $ac_cv_func_shmat = no; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7799 $as_echo_n "checking for shmat in -lipc... " >&6; }
7800 if ${ac_cv_lib_ipc_shmat+:} false; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 ac_check_lib_save_LIBS=$LIBS
7804 LIBS="-lipc $LIBS"
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7808 /* Override any GCC internal prototype to avoid an error.
7809 Use char because int might match the return type of a GCC
7810 builtin and then its argument prototype would still apply. */
7811 #ifdef __cplusplus
7812 extern "C"
7813 #endif
7814 char shmat ();
7816 main ()
7818 return shmat ();
7820 return 0;
7822 _ACEOF
7823 if ac_fn_c_try_link "$LINENO"; then :
7824 ac_cv_lib_ipc_shmat=yes
7825 else
7826 ac_cv_lib_ipc_shmat=no
7828 rm -f core conftest.err conftest.$ac_objext \
7829 conftest$ac_exeext conftest.$ac_ext
7830 LIBS=$ac_check_lib_save_LIBS
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7833 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7834 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7835 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7841 # Check for libraries that X11R6 Xt/Xaw programs need.
7842 ac_save_LDFLAGS=$LDFLAGS
7843 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7844 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7845 # check for ICE first), but we must link in the order -lSM -lICE or
7846 # we get undefined symbols. So assume we have SM if we have ICE.
7847 # These have to be linked with before -lX11, unlike the other
7848 # libraries we check for below, so use a different variable.
7849 # John Interrante, Karl Berry
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7851 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7852 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 ac_check_lib_save_LIBS=$LIBS
7856 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7860 /* Override any GCC internal prototype to avoid an error.
7861 Use char because int might match the return type of a GCC
7862 builtin and then its argument prototype would still apply. */
7863 #ifdef __cplusplus
7864 extern "C"
7865 #endif
7866 char IceConnectionNumber ();
7868 main ()
7870 return IceConnectionNumber ();
7872 return 0;
7874 _ACEOF
7875 if ac_fn_c_try_link "$LINENO"; then :
7876 ac_cv_lib_ICE_IceConnectionNumber=yes
7877 else
7878 ac_cv_lib_ICE_IceConnectionNumber=no
7880 rm -f core conftest.err conftest.$ac_objext \
7881 conftest$ac_exeext conftest.$ac_ext
7882 LIBS=$ac_check_lib_save_LIBS
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7885 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7886 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7887 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7890 LDFLAGS=$ac_save_LDFLAGS
7895 if test "$have_x" = "yes"
7896 then
7897 XLIB="-lX11"
7898 ac_save_CPPFLAGS="$CPPFLAGS"
7899 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7902 $as_echo_n "checking for -lX11... " >&6; }
7903 if ${ac_cv_lib_soname_X11+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 ac_check_soname_save_LIBS=$LIBS
7907 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7911 /* Override any GCC internal prototype to avoid an error.
7912 Use char because int might match the return type of a GCC
7913 builtin and then its argument prototype would still apply. */
7914 #ifdef __cplusplus
7915 extern "C"
7916 #endif
7917 char XCreateWindow ();
7919 main ()
7921 return XCreateWindow ();
7923 return 0;
7925 _ACEOF
7926 if ac_fn_c_try_link "$LINENO"; then :
7927 case "$LIBEXT" in
7928 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7929 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'` ;;
7930 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7931 esac
7933 rm -f core conftest.err conftest.$ac_objext \
7934 conftest$ac_exeext conftest.$ac_ext
7935 LIBS=$ac_check_soname_save_LIBS
7937 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7939 $as_echo "not found" >&6; }
7941 else
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7943 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7945 cat >>confdefs.h <<_ACEOF
7946 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7947 _ACEOF
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7952 $as_echo_n "checking for -lXext... " >&6; }
7953 if ${ac_cv_lib_soname_Xext+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 ac_check_soname_save_LIBS=$LIBS
7957 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7961 /* Override any GCC internal prototype to avoid an error.
7962 Use char because int might match the return type of a GCC
7963 builtin and then its argument prototype would still apply. */
7964 #ifdef __cplusplus
7965 extern "C"
7966 #endif
7967 char XextCreateExtension ();
7969 main ()
7971 return XextCreateExtension ();
7973 return 0;
7975 _ACEOF
7976 if ac_fn_c_try_link "$LINENO"; then :
7977 case "$LIBEXT" in
7978 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7979 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'` ;;
7980 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7981 esac
7983 rm -f core conftest.err conftest.$ac_objext \
7984 conftest$ac_exeext conftest.$ac_ext
7985 LIBS=$ac_check_soname_save_LIBS
7987 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7989 $as_echo "not found" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7993 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7995 cat >>confdefs.h <<_ACEOF
7996 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7997 _ACEOF
7999 XLIB="-lXext $XLIB"
8002 for ac_header in X11/Xlib.h \
8003 X11/XKBlib.h \
8004 X11/Xutil.h \
8005 X11/Xcursor/Xcursor.h \
8006 X11/extensions/shape.h \
8007 X11/extensions/XInput.h \
8008 X11/extensions/XInput2.h \
8009 X11/extensions/XShm.h \
8010 X11/extensions/Xcomposite.h \
8011 X11/extensions/Xinerama.h \
8012 X11/extensions/Xrandr.h \
8013 X11/extensions/Xrender.h \
8014 X11/extensions/xf86vmode.h \
8015 X11/extensions/xf86vmproto.h
8016 do :
8017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8018 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8019 # include <X11/Xlib.h>
8020 #endif
8021 #ifdef HAVE_X11_XUTIL_H
8022 # include <X11/Xutil.h>
8023 #endif
8025 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8026 cat >>confdefs.h <<_ACEOF
8027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8028 _ACEOF
8032 done
8035 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8036 then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8038 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8039 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 ac_check_lib_save_LIBS=$LIBS
8043 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8047 /* Override any GCC internal prototype to avoid an error.
8048 Use char because int might match the return type of a GCC
8049 builtin and then its argument prototype would still apply. */
8050 #ifdef __cplusplus
8051 extern "C"
8052 #endif
8053 char XkbQueryExtension ();
8055 main ()
8057 return XkbQueryExtension ();
8059 return 0;
8061 _ACEOF
8062 if ac_fn_c_try_link "$LINENO"; then :
8063 ac_cv_lib_X11_XkbQueryExtension=yes
8064 else
8065 ac_cv_lib_X11_XkbQueryExtension=no
8067 rm -f core conftest.err conftest.$ac_objext \
8068 conftest$ac_exeext conftest.$ac_ext
8069 LIBS=$ac_check_lib_save_LIBS
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8072 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8073 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8075 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8081 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8082 then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8084 $as_echo_n "checking for -lXcursor... " >&6; }
8085 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 ac_check_soname_save_LIBS=$LIBS
8089 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8093 /* Override any GCC internal prototype to avoid an error.
8094 Use char because int might match the return type of a GCC
8095 builtin and then its argument prototype would still apply. */
8096 #ifdef __cplusplus
8097 extern "C"
8098 #endif
8099 char XcursorImageLoadCursor ();
8101 main ()
8103 return XcursorImageLoadCursor ();
8105 return 0;
8107 _ACEOF
8108 if ac_fn_c_try_link "$LINENO"; then :
8109 case "$LIBEXT" in
8110 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8111 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'` ;;
8112 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8113 esac
8115 rm -f core conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
8117 LIBS=$ac_check_soname_save_LIBS
8119 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8121 $as_echo "not found" >&6; }
8123 else
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8125 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8127 cat >>confdefs.h <<_ACEOF
8128 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8129 _ACEOF
8134 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8135 case "x$with_xcursor" in
8136 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8137 xno) ;;
8138 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8139 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8140 esac
8143 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8144 then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8146 $as_echo_n "checking for -lXi... " >&6; }
8147 if ${ac_cv_lib_soname_Xi+:} false; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 ac_check_soname_save_LIBS=$LIBS
8151 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8155 /* Override any GCC internal prototype to avoid an error.
8156 Use char because int might match the return type of a GCC
8157 builtin and then its argument prototype would still apply. */
8158 #ifdef __cplusplus
8159 extern "C"
8160 #endif
8161 char XOpenDevice ();
8163 main ()
8165 return XOpenDevice ();
8167 return 0;
8169 _ACEOF
8170 if ac_fn_c_try_link "$LINENO"; then :
8171 case "$LIBEXT" in
8172 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8173 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'` ;;
8174 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8175 esac
8177 rm -f core conftest.err conftest.$ac_objext \
8178 conftest$ac_exeext conftest.$ac_ext
8179 LIBS=$ac_check_soname_save_LIBS
8181 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8183 $as_echo "not found" >&6; }
8185 else
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8187 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8189 cat >>confdefs.h <<_ACEOF
8190 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8191 _ACEOF
8196 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8197 case "x$with_xinput" in
8198 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8199 xno) ;;
8200 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8201 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8202 esac
8205 if test "x$ac_cv_lib_soname_Xi" != x
8206 then
8207 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8208 case "x$with_xinput2" in
8209 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8210 xno) ;;
8211 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8212 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8213 esac
8217 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8218 then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8220 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8221 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 ac_check_lib_save_LIBS=$LIBS
8225 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h. */
8229 /* Override any GCC internal prototype to avoid an error.
8230 Use char because int might match the return type of a GCC
8231 builtin and then its argument prototype would still apply. */
8232 #ifdef __cplusplus
8233 extern "C"
8234 #endif
8235 char XShmQueryExtension ();
8237 main ()
8239 return XShmQueryExtension ();
8241 return 0;
8243 _ACEOF
8244 if ac_fn_c_try_link "$LINENO"; then :
8245 ac_cv_lib_Xext_XShmQueryExtension=yes
8246 else
8247 ac_cv_lib_Xext_XShmQueryExtension=no
8249 rm -f core conftest.err conftest.$ac_objext \
8250 conftest$ac_exeext conftest.$ac_ext
8251 LIBS=$ac_check_lib_save_LIBS
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8254 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8255 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8257 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8262 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8263 case "x$with_xshm" in
8264 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8265 xno) ;;
8266 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8267 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8268 esac
8271 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8272 then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8274 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8275 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 ac_check_lib_save_LIBS=$LIBS
8279 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281 /* end confdefs.h. */
8283 /* Override any GCC internal prototype to avoid an error.
8284 Use char because int might match the return type of a GCC
8285 builtin and then its argument prototype would still apply. */
8286 #ifdef __cplusplus
8287 extern "C"
8288 #endif
8289 char XShapeQueryExtension ();
8291 main ()
8293 return XShapeQueryExtension ();
8295 return 0;
8297 _ACEOF
8298 if ac_fn_c_try_link "$LINENO"; then :
8299 ac_cv_lib_Xext_XShapeQueryExtension=yes
8300 else
8301 ac_cv_lib_Xext_XShapeQueryExtension=no
8303 rm -f core conftest.err conftest.$ac_objext \
8304 conftest$ac_exeext conftest.$ac_ext
8305 LIBS=$ac_check_lib_save_LIBS
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8308 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8309 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8311 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8316 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8317 case "x$with_xshape" in
8318 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8319 xno) ;;
8320 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8321 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8322 esac
8325 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8326 then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8328 $as_echo_n "checking for -lXxf86vm... " >&6; }
8329 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 ac_check_soname_save_LIBS=$LIBS
8333 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8337 /* Override any GCC internal prototype to avoid an error.
8338 Use char because int might match the return type of a GCC
8339 builtin and then its argument prototype would still apply. */
8340 #ifdef __cplusplus
8341 extern "C"
8342 #endif
8343 char XF86VidModeQueryExtension ();
8345 main ()
8347 return XF86VidModeQueryExtension ();
8349 return 0;
8351 _ACEOF
8352 if ac_fn_c_try_link "$LINENO"; then :
8353 case "$LIBEXT" in
8354 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8355 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'` ;;
8356 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8357 esac
8359 rm -f core conftest.err conftest.$ac_objext \
8360 conftest$ac_exeext conftest.$ac_ext
8361 LIBS=$ac_check_soname_save_LIBS
8363 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8365 $as_echo "not found" >&6; }
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8369 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8371 cat >>confdefs.h <<_ACEOF
8372 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8373 _ACEOF
8378 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8379 case "x$with_xxf86vm" in
8380 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8381 xno) ;;
8382 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8383 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8384 esac
8387 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"
8388 then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8390 $as_echo_n "checking for -lXrender... " >&6; }
8391 if ${ac_cv_lib_soname_Xrender+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394 ac_check_soname_save_LIBS=$LIBS
8395 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8399 /* Override any GCC internal prototype to avoid an error.
8400 Use char because int might match the return type of a GCC
8401 builtin and then its argument prototype would still apply. */
8402 #ifdef __cplusplus
8403 extern "C"
8404 #endif
8405 char XRenderQueryExtension ();
8407 main ()
8409 return XRenderQueryExtension ();
8411 return 0;
8413 _ACEOF
8414 if ac_fn_c_try_link "$LINENO"; then :
8415 case "$LIBEXT" in
8416 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8417 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'` ;;
8418 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8419 esac
8421 rm -f core conftest.err conftest.$ac_objext \
8422 conftest$ac_exeext conftest.$ac_ext
8423 LIBS=$ac_check_soname_save_LIBS
8425 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8427 $as_echo "not found" >&6; }
8429 else
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8431 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8433 cat >>confdefs.h <<_ACEOF
8434 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8435 _ACEOF
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8438 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8439 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 ac_check_lib_save_LIBS=$LIBS
8443 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8447 /* Override any GCC internal prototype to avoid an error.
8448 Use char because int might match the return type of a GCC
8449 builtin and then its argument prototype would still apply. */
8450 #ifdef __cplusplus
8451 extern "C"
8452 #endif
8453 char XRenderSetPictureTransform ();
8455 main ()
8457 return XRenderSetPictureTransform ();
8459 return 0;
8461 _ACEOF
8462 if ac_fn_c_try_link "$LINENO"; then :
8463 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8464 else
8465 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8467 rm -f core conftest.err conftest.$ac_objext \
8468 conftest$ac_exeext conftest.$ac_ext
8469 LIBS=$ac_check_lib_save_LIBS
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8472 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8473 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8475 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8480 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8481 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483 else
8484 ac_check_lib_save_LIBS=$LIBS
8485 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8489 /* Override any GCC internal prototype to avoid an error.
8490 Use char because int might match the return type of a GCC
8491 builtin and then its argument prototype would still apply. */
8492 #ifdef __cplusplus
8493 extern "C"
8494 #endif
8495 char XRenderCreateLinearGradient ();
8497 main ()
8499 return XRenderCreateLinearGradient ();
8501 return 0;
8503 _ACEOF
8504 if ac_fn_c_try_link "$LINENO"; then :
8505 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8506 else
8507 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8509 rm -f core conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
8511 LIBS=$ac_check_lib_save_LIBS
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8514 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8515 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8517 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8524 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8525 case "x$with_xrender" in
8526 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8527 xno) ;;
8528 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8529 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8530 esac
8533 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8534 then
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8537 #include <X11/Xlib.h>
8538 #include <X11/extensions/Xrandr.h>
8540 main ()
8542 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8544 return 0;
8546 _ACEOF
8547 if ac_fn_c_try_compile "$LINENO"; then :
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8549 $as_echo_n "checking for -lXrandr... " >&6; }
8550 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 ac_check_soname_save_LIBS=$LIBS
8554 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8558 /* Override any GCC internal prototype to avoid an error.
8559 Use char because int might match the return type of a GCC
8560 builtin and then its argument prototype would still apply. */
8561 #ifdef __cplusplus
8562 extern "C"
8563 #endif
8564 char XRRQueryExtension ();
8566 main ()
8568 return XRRQueryExtension ();
8570 return 0;
8572 _ACEOF
8573 if ac_fn_c_try_link "$LINENO"; then :
8574 case "$LIBEXT" in
8575 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8576 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'` ;;
8577 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8578 esac
8580 rm -f core conftest.err conftest.$ac_objext \
8581 conftest$ac_exeext conftest.$ac_ext
8582 LIBS=$ac_check_soname_save_LIBS
8584 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8586 $as_echo "not found" >&6; }
8588 else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8590 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8592 cat >>confdefs.h <<_ACEOF
8593 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8594 _ACEOF
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8602 case "x$with_xrandr" in
8603 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8604 xno) ;;
8605 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8606 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8607 esac
8610 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8611 then
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8614 #include <X11/Xlib.h>
8615 #include <X11/extensions/Xinerama.h>
8617 main ()
8619 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8621 return 0;
8623 _ACEOF
8624 if ac_fn_c_try_compile "$LINENO"; then :
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8626 $as_echo_n "checking for -lXinerama... " >&6; }
8627 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 ac_check_soname_save_LIBS=$LIBS
8631 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8635 /* Override any GCC internal prototype to avoid an error.
8636 Use char because int might match the return type of a GCC
8637 builtin and then its argument prototype would still apply. */
8638 #ifdef __cplusplus
8639 extern "C"
8640 #endif
8641 char XineramaQueryScreens ();
8643 main ()
8645 return XineramaQueryScreens ();
8647 return 0;
8649 _ACEOF
8650 if ac_fn_c_try_link "$LINENO"; then :
8651 case "$LIBEXT" in
8652 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8653 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'` ;;
8654 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8655 esac
8657 rm -f core conftest.err conftest.$ac_objext \
8658 conftest$ac_exeext conftest.$ac_ext
8659 LIBS=$ac_check_soname_save_LIBS
8661 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8663 $as_echo "not found" >&6; }
8665 else
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8667 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8669 cat >>confdefs.h <<_ACEOF
8670 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8671 _ACEOF
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8679 case "x$with_xinerama" in
8680 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8681 xno) ;;
8682 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8683 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8684 esac
8687 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8688 then
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8690 $as_echo_n "checking for -lXcomposite... " >&6; }
8691 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8692 $as_echo_n "(cached) " >&6
8693 else
8694 ac_check_soname_save_LIBS=$LIBS
8695 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8699 /* Override any GCC internal prototype to avoid an error.
8700 Use char because int might match the return type of a GCC
8701 builtin and then its argument prototype would still apply. */
8702 #ifdef __cplusplus
8703 extern "C"
8704 #endif
8705 char XCompositeRedirectWindow ();
8707 main ()
8709 return XCompositeRedirectWindow ();
8711 return 0;
8713 _ACEOF
8714 if ac_fn_c_try_link "$LINENO"; then :
8715 case "$LIBEXT" in
8716 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8717 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'` ;;
8718 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8719 esac
8721 rm -f core conftest.err conftest.$ac_objext \
8722 conftest$ac_exeext conftest.$ac_ext
8723 LIBS=$ac_check_soname_save_LIBS
8725 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8727 $as_echo "not found" >&6; }
8729 else
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8731 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8733 cat >>confdefs.h <<_ACEOF
8734 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8735 _ACEOF
8740 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8741 case "x$with_xcomposite" in
8742 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8743 xno) ;;
8744 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8745 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8746 esac
8749 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8750 #include <X11/Xlib.h>
8751 #endif
8753 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8755 cat >>confdefs.h <<_ACEOF
8756 #define HAVE_XICCALLBACK_CALLBACK 1
8757 _ACEOF
8761 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8762 #include <X11/Xlib.h>
8763 #endif
8765 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8767 cat >>confdefs.h <<_ACEOF
8768 #define HAVE_XEVENT_XCOOKIE 1
8769 _ACEOF
8776 opengl_msg=""
8777 if test "x$with_opengl" != "xno"
8778 then
8779 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8780 do :
8781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8782 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8783 # include <GL/glx.h>
8784 #endif
8786 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8787 cat >>confdefs.h <<_ACEOF
8788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8789 _ACEOF
8793 done
8795 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8796 then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8798 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8799 if ${wine_cv_opengl_header_version_OK+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8804 #include <GL/gl.h>
8806 main ()
8808 GLenum test = GL_UNSIGNED_SHORT_5_6_5; return (test == GL_UNSIGNED_SHORT_5_6_5);
8810 return 0;
8812 _ACEOF
8813 if ac_fn_c_try_compile "$LINENO"; then :
8814 wine_cv_opengl_header_version_OK="yes"
8815 else
8816 wine_cv_opengl_header_version_OK="no"
8818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8821 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8823 if test "$wine_cv_opengl_header_version_OK" = "yes"
8824 then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8826 $as_echo_n "checking for -lGL... " >&6; }
8827 if ${ac_cv_lib_soname_GL+:} false; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 ac_check_soname_save_LIBS=$LIBS
8831 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8835 /* Override any GCC internal prototype to avoid an error.
8836 Use char because int might match the return type of a GCC
8837 builtin and then its argument prototype would still apply. */
8838 #ifdef __cplusplus
8839 extern "C"
8840 #endif
8841 char glXCreateContext ();
8843 main ()
8845 return glXCreateContext ();
8847 return 0;
8849 _ACEOF
8850 if ac_fn_c_try_link "$LINENO"; then :
8851 case "$LIBEXT" in
8852 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8853 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'` ;;
8854 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8855 esac
8857 rm -f core conftest.err conftest.$ac_objext \
8858 conftest$ac_exeext conftest.$ac_ext
8859 LIBS=$ac_check_soname_save_LIBS
8861 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8863 $as_echo "not found" >&6; }
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8865 $as_echo_n "checking for -lGL... " >&6; }
8866 if ${ac_cv_lib_soname_GL+:} false; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 ac_check_soname_save_LIBS=$LIBS
8870 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"
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8874 /* Override any GCC internal prototype to avoid an error.
8875 Use char because int might match the return type of a GCC
8876 builtin and then its argument prototype would still apply. */
8877 #ifdef __cplusplus
8878 extern "C"
8879 #endif
8880 char glXCreateContext ();
8882 main ()
8884 return glXCreateContext ();
8886 return 0;
8888 _ACEOF
8889 if ac_fn_c_try_link "$LINENO"; then :
8890 case "$LIBEXT" in
8891 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8892 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'` ;;
8893 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8894 esac
8896 rm -f core conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8898 LIBS=$ac_check_soname_save_LIBS
8900 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8902 $as_echo "not found" >&6; }
8903 if test -f /usr/X11R6/lib/libGL.a
8904 then
8905 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8906 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8907 else
8908 opengl_msg="No OpenGL library found on this system."
8910 else
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8912 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8914 cat >>confdefs.h <<_ACEOF
8915 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8916 _ACEOF
8918 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"
8920 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8923 else
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8925 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8927 cat >>confdefs.h <<_ACEOF
8928 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8929 _ACEOF
8931 OPENGL_LIBS="-lGL"
8933 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8936 if test "$ac_cv_header_GL_glu_h" = "yes"
8937 then
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8939 $as_echo_n "checking for -lGLU... " >&6; }
8940 if ${ac_cv_lib_soname_GLU+:} false; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 ac_check_soname_save_LIBS=$LIBS
8944 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h. */
8948 /* Override any GCC internal prototype to avoid an error.
8949 Use char because int might match the return type of a GCC
8950 builtin and then its argument prototype would still apply. */
8951 #ifdef __cplusplus
8952 extern "C"
8953 #endif
8954 char gluLookAt ();
8956 main ()
8958 return gluLookAt ();
8960 return 0;
8962 _ACEOF
8963 if ac_fn_c_try_link "$LINENO"; then :
8964 case "$LIBEXT" in
8965 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8966 dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8967 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8968 esac
8970 rm -f core conftest.err conftest.$ac_objext \
8971 conftest$ac_exeext conftest.$ac_ext
8972 LIBS=$ac_check_soname_save_LIBS
8974 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8976 $as_echo "not found" >&6; }
8978 else
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8980 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8982 cat >>confdefs.h <<_ACEOF
8983 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8984 _ACEOF
8989 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8990 case "x$with_glu" in
8991 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8992 xno) ;;
8993 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8994 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8995 esac
8997 else
8998 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
9000 else
9001 opengl_msg="OpenGL development headers not found."
9003 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
9004 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
9005 else
9006 enable_opengl32=${enable_opengl32:-no}
9007 enable_glu32=${enable_glu32:-no}
9009 if test -n "$opengl_msg"; then :
9010 case "x$with_opengl" in
9011 x) as_fn_append wine_warnings "|$opengl_msg
9012 OpenGL and Direct3D won't be supported." ;;
9013 xno) ;;
9014 *) as_fn_error $? "$opengl_msg
9015 OpenGL and Direct3D won't be supported.
9016 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9017 esac
9020 CPPFLAGS="$ac_save_CPPFLAGS"
9021 else
9022 XLIB=""
9023 X_CFLAGS=""
9024 X_LIBS=""
9025 enable_winex11_drv=${enable_winex11_drv:-no}
9026 enable_opengl32=${enable_opengl32:-no}
9027 enable_glu32=${enable_glu32:-no}
9029 if test "x$XLIB" = "x"; then :
9030 case "x$with_x" in
9031 xno) ;;
9032 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9033 without X support, which probably isn't what you want. You will need
9034 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9035 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9036 esac
9039 if test "$ac_cv_header_CL_cl_h" = "yes"
9040 then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9042 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9043 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 ac_check_lib_save_LIBS=$LIBS
9047 LIBS="-lOpenCL $LIBS"
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9051 /* Override any GCC internal prototype to avoid an error.
9052 Use char because int might match the return type of a GCC
9053 builtin and then its argument prototype would still apply. */
9054 #ifdef __cplusplus
9055 extern "C"
9056 #endif
9057 char clGetPlatformInfo ();
9059 main ()
9061 return clGetPlatformInfo ();
9063 return 0;
9065 _ACEOF
9066 if ac_fn_c_try_link "$LINENO"; then :
9067 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9068 else
9069 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9071 rm -f core conftest.err conftest.$ac_objext \
9072 conftest$ac_exeext conftest.$ac_ext
9073 LIBS=$ac_check_lib_save_LIBS
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9076 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9077 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9078 LIBOPENCL="-lOpenCL"
9083 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9084 case "x$with_opencl" in
9085 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9086 xno) ;;
9087 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9088 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9089 esac
9091 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9094 XML2LIBS=""
9096 XML2INCL=""
9098 XSLTINCL=""
9100 if test "x$with_xml" != "xno"
9101 then
9102 ac_save_CPPFLAGS="$CPPFLAGS"
9103 if test "$PKG_CONFIG" != "false"
9104 then
9105 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9106 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9107 else
9108 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9109 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9111 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9112 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9113 do :
9114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9115 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9116 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9117 cat >>confdefs.h <<_ACEOF
9118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9119 _ACEOF
9123 done
9125 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"
9126 then
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9128 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9129 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9130 $as_echo_n "(cached) " >&6
9131 else
9132 ac_check_lib_save_LIBS=$LIBS
9133 LIBS="-lxml2 $ac_xml_libs $LIBS"
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9137 /* Override any GCC internal prototype to avoid an error.
9138 Use char because int might match the return type of a GCC
9139 builtin and then its argument prototype would still apply. */
9140 #ifdef __cplusplus
9141 extern "C"
9142 #endif
9143 char xmlParseMemory ();
9145 main ()
9147 return xmlParseMemory ();
9149 return 0;
9151 _ACEOF
9152 if ac_fn_c_try_link "$LINENO"; then :
9153 ac_cv_lib_xml2_xmlParseMemory=yes
9154 else
9155 ac_cv_lib_xml2_xmlParseMemory=no
9157 rm -f core conftest.err conftest.$ac_objext \
9158 conftest$ac_exeext conftest.$ac_ext
9159 LIBS=$ac_check_lib_save_LIBS
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9162 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9163 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9165 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9167 XML2LIBS="$ac_xml_libs"
9168 XML2INCL="$ac_xml_cflags"
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9172 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9173 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176 ac_check_lib_save_LIBS=$LIBS
9177 LIBS="-lxml2 $ac_xml_libs $LIBS"
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9181 /* Override any GCC internal prototype to avoid an error.
9182 Use char because int might match the return type of a GCC
9183 builtin and then its argument prototype would still apply. */
9184 #ifdef __cplusplus
9185 extern "C"
9186 #endif
9187 char xmlReadMemory ();
9189 main ()
9191 return xmlReadMemory ();
9193 return 0;
9195 _ACEOF
9196 if ac_fn_c_try_link "$LINENO"; then :
9197 ac_cv_lib_xml2_xmlReadMemory=yes
9198 else
9199 ac_cv_lib_xml2_xmlReadMemory=no
9201 rm -f core conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203 LIBS=$ac_check_lib_save_LIBS
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9206 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9207 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9209 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9214 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9215 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9216 $as_echo_n "(cached) " >&6
9217 else
9218 ac_check_lib_save_LIBS=$LIBS
9219 LIBS="-lxml2 $ac_xml_libs $LIBS"
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9223 /* Override any GCC internal prototype to avoid an error.
9224 Use char because int might match the return type of a GCC
9225 builtin and then its argument prototype would still apply. */
9226 #ifdef __cplusplus
9227 extern "C"
9228 #endif
9229 char xmlNewDocPI ();
9231 main ()
9233 return xmlNewDocPI ();
9235 return 0;
9237 _ACEOF
9238 if ac_fn_c_try_link "$LINENO"; then :
9239 ac_cv_lib_xml2_xmlNewDocPI=yes
9240 else
9241 ac_cv_lib_xml2_xmlNewDocPI=no
9243 rm -f core conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext conftest.$ac_ext
9245 LIBS=$ac_check_lib_save_LIBS
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9248 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9249 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9251 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9256 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9257 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9258 $as_echo_n "(cached) " >&6
9259 else
9260 ac_check_lib_save_LIBS=$LIBS
9261 LIBS="-lxml2 $ac_xml_libs $LIBS"
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9265 /* Override any GCC internal prototype to avoid an error.
9266 Use char because int might match the return type of a GCC
9267 builtin and then its argument prototype would still apply. */
9268 #ifdef __cplusplus
9269 extern "C"
9270 #endif
9271 char xmlSchemaSetParserStructuredErrors ();
9273 main ()
9275 return xmlSchemaSetParserStructuredErrors ();
9277 return 0;
9279 _ACEOF
9280 if ac_fn_c_try_link "$LINENO"; then :
9281 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9282 else
9283 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9285 rm -f core conftest.err conftest.$ac_objext \
9286 conftest$ac_exeext conftest.$ac_ext
9287 LIBS=$ac_check_lib_save_LIBS
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9290 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9291 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9293 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9298 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9299 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 ac_check_lib_save_LIBS=$LIBS
9303 LIBS="-lxml2 $ac_xml_libs $LIBS"
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9307 /* Override any GCC internal prototype to avoid an error.
9308 Use char because int might match the return type of a GCC
9309 builtin and then its argument prototype would still apply. */
9310 #ifdef __cplusplus
9311 extern "C"
9312 #endif
9313 char xmlSchemaSetValidStructuredErrors ();
9315 main ()
9317 return xmlSchemaSetValidStructuredErrors ();
9319 return 0;
9321 _ACEOF
9322 if ac_fn_c_try_link "$LINENO"; then :
9323 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9324 else
9325 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9327 rm -f core conftest.err conftest.$ac_objext \
9328 conftest$ac_exeext conftest.$ac_ext
9329 LIBS=$ac_check_lib_save_LIBS
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9332 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9333 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9335 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9340 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9341 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9342 $as_echo_n "(cached) " >&6
9343 else
9344 ac_check_lib_save_LIBS=$LIBS
9345 LIBS="-lxml2 $ac_xml_libs $LIBS"
9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9349 /* Override any GCC internal prototype to avoid an error.
9350 Use char because int might match the return type of a GCC
9351 builtin and then its argument prototype would still apply. */
9352 #ifdef __cplusplus
9353 extern "C"
9354 #endif
9355 char xmlFirstElementChild ();
9357 main ()
9359 return xmlFirstElementChild ();
9361 return 0;
9363 _ACEOF
9364 if ac_fn_c_try_link "$LINENO"; then :
9365 ac_cv_lib_xml2_xmlFirstElementChild=yes
9366 else
9367 ac_cv_lib_xml2_xmlFirstElementChild=no
9369 rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
9371 LIBS=$ac_check_lib_save_LIBS
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9374 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9375 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9377 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9381 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9383 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9385 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9390 CPPFLAGS="$ac_save_CPPFLAGS"
9392 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9393 case "x$with_xml" in
9394 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9395 xno) ;;
9396 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9397 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9398 esac
9401 if test "x$with_xslt" != "xno"
9402 then
9403 if test "$PKG_CONFIG" != "false"
9404 then
9405 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9406 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9407 else
9408 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9409 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9411 ac_save_CPPFLAGS="$CPPFLAGS"
9412 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9413 for ac_header in libxslt/pattern.h libxslt/transform.h
9414 do :
9415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9416 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9417 # include <libxslt/pattern.h>
9418 #endif
9420 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9421 cat >>confdefs.h <<_ACEOF
9422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9423 _ACEOF
9427 done
9429 CPPFLAGS="$ac_save_CPPFLAGS"
9430 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9431 then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9433 $as_echo_n "checking for -lxslt... " >&6; }
9434 if ${ac_cv_lib_soname_xslt+:} false; then :
9435 $as_echo_n "(cached) " >&6
9436 else
9437 ac_check_soname_save_LIBS=$LIBS
9438 LIBS="-lxslt $ac_xslt_libs $LIBS"
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9442 /* Override any GCC internal prototype to avoid an error.
9443 Use char because int might match the return type of a GCC
9444 builtin and then its argument prototype would still apply. */
9445 #ifdef __cplusplus
9446 extern "C"
9447 #endif
9448 char xsltCompilePattern ();
9450 main ()
9452 return xsltCompilePattern ();
9454 return 0;
9456 _ACEOF
9457 if ac_fn_c_try_link "$LINENO"; then :
9458 case "$LIBEXT" in
9459 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9460 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'` ;;
9461 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9462 esac
9464 rm -f core conftest.err conftest.$ac_objext \
9465 conftest$ac_exeext conftest.$ac_ext
9466 LIBS=$ac_check_soname_save_LIBS
9468 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9470 $as_echo "not found" >&6; }
9472 else
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9474 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9476 cat >>confdefs.h <<_ACEOF
9477 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9478 _ACEOF
9480 XSLTINCL="$ac_xslt_cflags"
9484 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9485 case "x$with_xslt" in
9486 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9487 xno) ;;
9488 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9489 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9490 esac
9493 HALINCL=""
9495 if test "x$with_hal" != "xno"
9496 then
9497 ac_save_CPPFLAGS="$CPPFLAGS"
9498 if test "$PKG_CONFIG" != "false"
9499 then
9500 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9501 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9502 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9504 for ac_header in dbus/dbus.h hal/libhal.h
9505 do :
9506 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9507 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9508 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9509 cat >>confdefs.h <<_ACEOF
9510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9511 _ACEOF
9515 done
9517 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9518 then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9520 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9521 if ${ac_cv_lib_dbus_1_dbus_connection_close+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 ac_check_lib_save_LIBS=$LIBS
9525 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9529 /* Override any GCC internal prototype to avoid an error.
9530 Use char because int might match the return type of a GCC
9531 builtin and then its argument prototype would still apply. */
9532 #ifdef __cplusplus
9533 extern "C"
9534 #endif
9535 char dbus_connection_close ();
9537 main ()
9539 return dbus_connection_close ();
9541 return 0;
9543 _ACEOF
9544 if ac_fn_c_try_link "$LINENO"; then :
9545 ac_cv_lib_dbus_1_dbus_connection_close=yes
9546 else
9547 ac_cv_lib_dbus_1_dbus_connection_close=no
9549 rm -f core conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext conftest.$ac_ext
9551 LIBS=$ac_check_lib_save_LIBS
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9554 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9555 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = xyes; then :
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9557 $as_echo_n "checking for -lhal... " >&6; }
9558 if ${ac_cv_lib_soname_hal+:} false; then :
9559 $as_echo_n "(cached) " >&6
9560 else
9561 ac_check_soname_save_LIBS=$LIBS
9562 LIBS="-lhal $ac_hal_libs $LIBS"
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9566 /* Override any GCC internal prototype to avoid an error.
9567 Use char because int might match the return type of a GCC
9568 builtin and then its argument prototype would still apply. */
9569 #ifdef __cplusplus
9570 extern "C"
9571 #endif
9572 char libhal_ctx_new ();
9574 main ()
9576 return libhal_ctx_new ();
9578 return 0;
9580 _ACEOF
9581 if ac_fn_c_try_link "$LINENO"; then :
9582 case "$LIBEXT" in
9583 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9584 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'` ;;
9585 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9586 esac
9588 rm -f core conftest.err conftest.$ac_objext \
9589 conftest$ac_exeext conftest.$ac_ext
9590 LIBS=$ac_check_soname_save_LIBS
9592 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9594 $as_echo "not found" >&6; }
9596 else
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9598 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9600 cat >>confdefs.h <<_ACEOF
9601 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9602 _ACEOF
9604 HALINCL="$ac_hal_cflags"
9609 CPPFLAGS="$ac_save_CPPFLAGS"
9611 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9612 case "x$with_hal" in
9613 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9614 xno) ;;
9615 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9616 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9617 esac
9620 if test "x$with_gnutls" != "xno"
9621 then
9622 ac_save_CPPFLAGS="$CPPFLAGS"
9623 if test "$PKG_CONFIG" != "false"
9624 then
9625 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9626 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9627 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9629 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9630 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9633 #include <gnutls/gnutls.h>
9635 main ()
9637 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9639 return 0;
9641 _ACEOF
9642 if ac_fn_c_try_compile "$LINENO"; then :
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9644 $as_echo_n "checking for -lgnutls... " >&6; }
9645 if ${ac_cv_lib_soname_gnutls+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 ac_check_soname_save_LIBS=$LIBS
9649 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9653 /* Override any GCC internal prototype to avoid an error.
9654 Use char because int might match the return type of a GCC
9655 builtin and then its argument prototype would still apply. */
9656 #ifdef __cplusplus
9657 extern "C"
9658 #endif
9659 char gnutls_global_init ();
9661 main ()
9663 return gnutls_global_init ();
9665 return 0;
9667 _ACEOF
9668 if ac_fn_c_try_link "$LINENO"; then :
9669 case "$LIBEXT" in
9670 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9671 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'` ;;
9672 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9673 esac
9675 rm -f core conftest.err conftest.$ac_objext \
9676 conftest$ac_exeext conftest.$ac_ext
9677 LIBS=$ac_check_soname_save_LIBS
9679 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9681 $as_echo "not found" >&6; }
9683 else
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9685 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9687 cat >>confdefs.h <<_ACEOF
9688 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9689 _ACEOF
9691 GNUTLSINCL="$ac_gnutls_cflags"
9695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699 CPPFLAGS="$ac_save_CPPFLAGS"
9701 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9702 case "x$with_gnutls" in
9703 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9704 xno) ;;
9705 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9706 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9707 esac
9710 CURSESLIBS=""
9711 if test "$ac_cv_header_ncurses_h" = "yes"
9712 then
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9714 $as_echo_n "checking for -lncurses... " >&6; }
9715 if ${ac_cv_lib_soname_ncurses+:} false; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 ac_check_soname_save_LIBS=$LIBS
9719 LIBS="-lncurses $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 waddch ();
9731 main ()
9733 return waddch ();
9735 return 0;
9737 _ACEOF
9738 if ac_fn_c_try_link "$LINENO"; then :
9739 case "$LIBEXT" in
9740 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9741 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'` ;;
9742 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9743 esac
9745 rm -f core conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747 LIBS=$ac_check_soname_save_LIBS
9749 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9751 $as_echo "not found" >&6; }
9753 else
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9755 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9757 cat >>confdefs.h <<_ACEOF
9758 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9759 _ACEOF
9761 CURSESLIBS="-lncurses"
9763 elif test "$ac_cv_header_curses_h" = "yes"
9764 then
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9766 $as_echo_n "checking for -lcurses... " >&6; }
9767 if ${ac_cv_lib_soname_curses+:} false; then :
9768 $as_echo_n "(cached) " >&6
9769 else
9770 ac_check_soname_save_LIBS=$LIBS
9771 LIBS="-lcurses $LIBS"
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9775 /* Override any GCC internal prototype to avoid an error.
9776 Use char because int might match the return type of a GCC
9777 builtin and then its argument prototype would still apply. */
9778 #ifdef __cplusplus
9779 extern "C"
9780 #endif
9781 char waddch ();
9783 main ()
9785 return waddch ();
9787 return 0;
9789 _ACEOF
9790 if ac_fn_c_try_link "$LINENO"; then :
9791 case "$LIBEXT" in
9792 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9793 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'` ;;
9794 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9795 esac
9797 rm -f core conftest.err conftest.$ac_objext \
9798 conftest$ac_exeext conftest.$ac_ext
9799 LIBS=$ac_check_soname_save_LIBS
9801 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9803 $as_echo "not found" >&6; }
9805 else
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9807 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9809 cat >>confdefs.h <<_ACEOF
9810 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9811 _ACEOF
9813 CURSESLIBS="-lcurses"
9816 ac_save_LIBS="$LIBS"
9817 LIBS="$LIBS $CURSESLIBS"
9818 for ac_func in mousemask
9819 do :
9820 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9821 if test "x$ac_cv_func_mousemask" = xyes; then :
9822 cat >>confdefs.h <<_ACEOF
9823 #define HAVE_MOUSEMASK 1
9824 _ACEOF
9827 done
9829 LIBS="$ac_save_LIBS"
9830 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9831 case "x$with_curses" in
9832 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9833 xno) ;;
9834 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9835 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9836 esac
9839 if test "x$with_sane" != "xno"
9840 then
9841 ac_save_CPPFLAGS="$CPPFLAGS"
9842 # Extract the first word of "sane-config", so it can be a program name with args.
9843 set dummy sane-config; ac_word=$2
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9845 $as_echo_n "checking for $ac_word... " >&6; }
9846 if ${ac_cv_prog_sane_devel+:} false; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 if test -n "$sane_devel"; then
9850 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9851 else
9852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9853 for as_dir in $PATH
9855 IFS=$as_save_IFS
9856 test -z "$as_dir" && as_dir=.
9857 for ac_exec_ext in '' $ac_executable_extensions; do
9858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9859 ac_cv_prog_sane_devel="sane-config"
9860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9861 break 2
9863 done
9864 done
9865 IFS=$as_save_IFS
9867 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9870 sane_devel=$ac_cv_prog_sane_devel
9871 if test -n "$sane_devel"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9873 $as_echo "$sane_devel" >&6; }
9874 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9880 if test "$sane_devel" != "no"
9881 then
9882 ac_sane_incl="`$sane_devel --cflags`"
9883 ac_sane_libs="`$sane_devel --ldflags`"
9884 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9886 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9887 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9889 $as_echo_n "checking for -lsane... " >&6; }
9890 if ${ac_cv_lib_soname_sane+:} false; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 ac_check_soname_save_LIBS=$LIBS
9894 LIBS="-lsane $ac_sane_libs $LIBS"
9895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9898 /* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
9901 #ifdef __cplusplus
9902 extern "C"
9903 #endif
9904 char sane_init ();
9906 main ()
9908 return sane_init ();
9910 return 0;
9912 _ACEOF
9913 if ac_fn_c_try_link "$LINENO"; then :
9914 case "$LIBEXT" in
9915 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9916 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'` ;;
9917 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9918 esac
9920 rm -f core conftest.err conftest.$ac_objext \
9921 conftest$ac_exeext conftest.$ac_ext
9922 LIBS=$ac_check_soname_save_LIBS
9924 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9926 $as_echo "not found" >&6; }
9928 else
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9930 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9932 cat >>confdefs.h <<_ACEOF
9933 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9934 _ACEOF
9936 SANEINCL="$ac_sane_incl"
9942 CPPFLAGS="$ac_save_CPPFLAGS"
9944 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9945 case "x$with_sane" in
9946 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9947 xno) ;;
9948 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9949 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9950 esac
9953 if test "x$with_v4l" != "xno"
9954 then
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9956 $as_echo_n "checking for -lv4l1... " >&6; }
9957 if ${ac_cv_lib_soname_v4l1+:} false; then :
9958 $as_echo_n "(cached) " >&6
9959 else
9960 ac_check_soname_save_LIBS=$LIBS
9961 LIBS="-lv4l1 $LIBS"
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9965 /* Override any GCC internal prototype to avoid an error.
9966 Use char because int might match the return type of a GCC
9967 builtin and then its argument prototype would still apply. */
9968 #ifdef __cplusplus
9969 extern "C"
9970 #endif
9971 char v4l1_open ();
9973 main ()
9975 return v4l1_open ();
9977 return 0;
9979 _ACEOF
9980 if ac_fn_c_try_link "$LINENO"; then :
9981 case "$LIBEXT" in
9982 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9983 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'` ;;
9984 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9985 esac
9987 rm -f core conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9989 LIBS=$ac_check_soname_save_LIBS
9991 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9993 $as_echo "not found" >&6; }
9995 else
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9997 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9999 cat >>confdefs.h <<_ACEOF
10000 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10001 _ACEOF
10006 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10007 case "x$with_v4l" in
10008 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10009 xno) ;;
10010 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10011 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10012 esac
10015 if test "x$with_gphoto" != "xno"
10016 then
10017 ac_save_CPPFLAGS="$CPPFLAGS"
10018 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10019 set dummy gphoto2-config; ac_word=$2
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021 $as_echo_n "checking for $ac_word... " >&6; }
10022 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 if test -n "$gphoto2_devel"; then
10026 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10027 else
10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $PATH
10031 IFS=$as_save_IFS
10032 test -z "$as_dir" && as_dir=.
10033 for ac_exec_ext in '' $ac_executable_extensions; do
10034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10035 ac_cv_prog_gphoto2_devel="gphoto2-config"
10036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10037 break 2
10039 done
10040 done
10041 IFS=$as_save_IFS
10043 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10046 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10047 if test -n "$gphoto2_devel"; then
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10049 $as_echo "$gphoto2_devel" >&6; }
10050 else
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052 $as_echo "no" >&6; }
10056 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10057 set dummy gphoto2-port-config; ac_word=$2
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10059 $as_echo_n "checking for $ac_word... " >&6; }
10060 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10061 $as_echo_n "(cached) " >&6
10062 else
10063 if test -n "$gphoto2port_devel"; then
10064 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10065 else
10066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10067 for as_dir in $PATH
10069 IFS=$as_save_IFS
10070 test -z "$as_dir" && as_dir=.
10071 for ac_exec_ext in '' $ac_executable_extensions; do
10072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10073 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10075 break 2
10077 done
10078 done
10079 IFS=$as_save_IFS
10081 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10084 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10085 if test -n "$gphoto2port_devel"; then
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10087 $as_echo "$gphoto2port_devel" >&6; }
10088 else
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10090 $as_echo "no" >&6; }
10094 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10095 then
10096 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10097 ac_gphoto2_libs=""
10098 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10100 case "$i" in
10101 -L/usr/lib|-L/usr/lib64) ;;
10102 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10103 esac
10104 done
10105 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10107 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10108 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10109 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10111 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10112 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 ac_check_lib_save_LIBS=$LIBS
10116 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10120 /* Override any GCC internal prototype to avoid an error.
10121 Use char because int might match the return type of a GCC
10122 builtin and then its argument prototype would still apply. */
10123 #ifdef __cplusplus
10124 extern "C"
10125 #endif
10126 char gp_camera_new ();
10128 main ()
10130 return gp_camera_new ();
10132 return 0;
10134 _ACEOF
10135 if ac_fn_c_try_link "$LINENO"; then :
10136 ac_cv_lib_gphoto2_gp_camera_new=yes
10137 else
10138 ac_cv_lib_gphoto2_gp_camera_new=no
10140 rm -f core conftest.err conftest.$ac_objext \
10141 conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10145 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10146 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10148 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10150 GPHOTO2LIBS="$ac_gphoto2_libs"
10152 GPHOTO2INCL="$ac_gphoto2_incl"
10159 CPPFLAGS="$ac_save_CPPFLAGS"
10161 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10162 case "x$with_gphoto" in
10163 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10164 xno) ;;
10165 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10166 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10167 esac
10171 if test "$ac_cv_header_resolv_h" = "yes"
10172 then
10173 ac_save_LIBS="$LIBS"
10174 for lib in '' -lresolv
10176 LIBS="$lib $ac_save_LIBS"
10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179 #ifdef HAVE_NETINET_IN_H
10180 #include <netinet/in.h>
10181 #endif
10182 #include <resolv.h>
10184 main ()
10186 res_query("foo",ns_c_in,0,0,0);
10188 return 0;
10190 _ACEOF
10191 if ac_fn_c_try_link "$LINENO"; then :
10193 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10195 RESOLVLIBS="$lib"
10198 rm -f core conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext conftest.$ac_ext
10200 if test "${RESOLVLIBS+set}" = set; then
10201 break
10203 done
10204 LIBS="$ac_save_LIBS"
10207 LCMSLIBS=""
10209 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10210 then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10212 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10213 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10214 $as_echo_n "(cached) " >&6
10215 else
10216 ac_check_lib_save_LIBS=$LIBS
10217 LIBS="-llcms $LIBS"
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10221 /* Override any GCC internal prototype to avoid an error.
10222 Use char because int might match the return type of a GCC
10223 builtin and then its argument prototype would still apply. */
10224 #ifdef __cplusplus
10225 extern "C"
10226 #endif
10227 char cmsOpenProfileFromFile ();
10229 main ()
10231 return cmsOpenProfileFromFile ();
10233 return 0;
10235 _ACEOF
10236 if ac_fn_c_try_link "$LINENO"; then :
10237 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10238 else
10239 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10241 rm -f core conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243 LIBS=$ac_check_lib_save_LIBS
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10246 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10247 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10249 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10251 LCMSLIBS="-llcms"
10255 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10256 case "x$with_cms" in
10257 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10258 xno) ;;
10259 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10260 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10261 esac
10264 if test "x$with_freetype" != "xno"
10265 then
10266 for ac_prog in freetype-config freetype2-config
10268 # Extract the first word of "$ac_prog", so it can be a program name with args.
10269 set dummy $ac_prog; ac_word=$2
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271 $as_echo_n "checking for $ac_word... " >&6; }
10272 if ${ac_cv_prog_ft_devel+:} false; then :
10273 $as_echo_n "(cached) " >&6
10274 else
10275 if test -n "$ft_devel"; then
10276 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10277 else
10278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279 for as_dir in $PATH
10281 IFS=$as_save_IFS
10282 test -z "$as_dir" && as_dir=.
10283 for ac_exec_ext in '' $ac_executable_extensions; do
10284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10285 ac_cv_prog_ft_devel="$ac_prog"
10286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10287 break 2
10289 done
10290 done
10291 IFS=$as_save_IFS
10295 ft_devel=$ac_cv_prog_ft_devel
10296 if test -n "$ft_devel"; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10298 $as_echo "$ft_devel" >&6; }
10299 else
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301 $as_echo "no" >&6; }
10305 test -n "$ft_devel" && break
10306 done
10307 test -n "$ft_devel" || ft_devel="no"
10309 if test "$ft_devel" != "no"
10310 then
10311 ac_freetype_incl=`$ft_devel --cflags`
10312 ac_freetype_libs=`$ft_devel --libs`
10314 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10316 $as_echo_n "checking for -lfreetype... " >&6; }
10317 if ${ac_cv_lib_soname_freetype+:} false; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 ac_check_soname_save_LIBS=$LIBS
10321 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10325 /* Override any GCC internal prototype to avoid an error.
10326 Use char because int might match the return type of a GCC
10327 builtin and then its argument prototype would still apply. */
10328 #ifdef __cplusplus
10329 extern "C"
10330 #endif
10331 char FT_Init_FreeType ();
10333 main ()
10335 return FT_Init_FreeType ();
10337 return 0;
10339 _ACEOF
10340 if ac_fn_c_try_link "$LINENO"; then :
10341 case "$LIBEXT" in
10342 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10343 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'` ;;
10344 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10345 esac
10347 rm -f core conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 LIBS=$ac_check_soname_save_LIBS
10351 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10353 $as_echo "not found" >&6; }
10354 ft_lib=no
10355 else
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10357 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10359 cat >>confdefs.h <<_ACEOF
10360 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10361 _ACEOF
10363 ft_lib=yes
10365 if test "$ft_lib" = "yes"
10366 then
10367 ac_save_CPPFLAGS="$CPPFLAGS"
10368 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10369 for ac_header in ft2build.h \
10370 freetype/freetype.h \
10371 freetype/ftglyph.h \
10372 freetype/fttypes.h \
10373 freetype/tttables.h \
10374 freetype/ftsnames.h \
10375 freetype/ttnameid.h \
10376 freetype/ftoutln.h \
10377 freetype/ftwinfnt.h \
10378 freetype/ftmodapi.h \
10379 freetype/ftlcdfil.h
10380 do :
10381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10382 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10383 # include <ft2build.h>
10384 #endif
10386 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10387 cat >>confdefs.h <<_ACEOF
10388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10389 _ACEOF
10393 done
10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396 /* end confdefs.h. */
10397 #include <ft2build.h>
10398 #include <freetype/fttrigon.h>
10399 _ACEOF
10400 if ac_fn_c_try_cpp "$LINENO"; then :
10402 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10404 wine_cv_fttrigon=yes
10405 else
10406 wine_cv_fttrigon=no
10408 rm -f conftest.err conftest.i conftest.$ac_ext
10409 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10411 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10413 cat >>confdefs.h <<_ACEOF
10414 #define HAVE_FT_TRUETYPEENGINETYPE 1
10415 _ACEOF
10420 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10421 then
10423 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10425 FREETYPELIBS="$ac_freetype_libs"
10427 FREETYPEINCL="$ac_freetype_incl"
10432 if test "x$FREETYPELIBS" = "x"; then :
10433 case "x$with_freetype" in
10434 xno) ;;
10435 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10436 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10437 esac
10439 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10442 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10443 if ${ac_cv_c_ppdev+:} false; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448 #ifdef HAVE_SYS_IOCTL_H
10449 # include <sys/ioctl.h>
10450 #endif
10451 #include <linux/ppdev.h>
10453 main ()
10455 ioctl (1,PPCLAIM,0)
10457 return 0;
10459 _ACEOF
10460 if ac_fn_c_try_compile "$LINENO"; then :
10461 ac_cv_c_ppdev="yes"
10462 else
10463 ac_cv_c_ppdev="no"
10465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10468 $as_echo "$ac_cv_c_ppdev" >&6; }
10469 if test "$ac_cv_c_ppdev" = "yes"
10470 then
10472 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10476 ac_wine_check_funcs_save_LIBS="$LIBS"
10477 LIBS="$LIBS $LIBPTHREAD"
10478 for ac_func in \
10479 pthread_attr_get_np \
10480 pthread_getattr_np \
10481 pthread_get_stackaddr_np \
10482 pthread_get_stacksize_np
10483 do :
10484 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10485 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10486 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10487 cat >>confdefs.h <<_ACEOF
10488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10489 _ACEOF
10492 done
10494 LIBS="$ac_wine_check_funcs_save_LIBS"
10496 if test "$ac_cv_header_zlib_h" = "yes"
10497 then
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10499 $as_echo_n "checking for inflate in -lz... " >&6; }
10500 if ${ac_cv_lib_z_inflate+:} false; then :
10501 $as_echo_n "(cached) " >&6
10502 else
10503 ac_check_lib_save_LIBS=$LIBS
10504 LIBS="-lz $LIBS"
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10508 /* Override any GCC internal prototype to avoid an error.
10509 Use char because int might match the return type of a GCC
10510 builtin and then its argument prototype would still apply. */
10511 #ifdef __cplusplus
10512 extern "C"
10513 #endif
10514 char inflate ();
10516 main ()
10518 return inflate ();
10520 return 0;
10522 _ACEOF
10523 if ac_fn_c_try_link "$LINENO"; then :
10524 ac_cv_lib_z_inflate=yes
10525 else
10526 ac_cv_lib_z_inflate=no
10528 rm -f core conftest.err conftest.$ac_objext \
10529 conftest$ac_exeext conftest.$ac_ext
10530 LIBS=$ac_check_lib_save_LIBS
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10533 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10534 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10536 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10538 ZLIB="-lz"
10543 if test "x$ZLIB" = "x"; then :
10544 case "x$with_zlib" in
10545 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10546 xno) ;;
10547 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10548 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10549 esac
10552 if test "x$enable_tools" != xno
10553 then
10554 if test "$ac_cv_header_gettext_po_h" = "yes"
10555 then
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10557 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10558 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 ac_check_lib_save_LIBS=$LIBS
10562 LIBS="-lgettextpo $LIBS"
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10566 /* Override any GCC internal prototype to avoid an error.
10567 Use char because int might match the return type of a GCC
10568 builtin and then its argument prototype would still apply. */
10569 #ifdef __cplusplus
10570 extern "C"
10571 #endif
10572 char po_message_msgctxt ();
10574 main ()
10576 return po_message_msgctxt ();
10578 return 0;
10580 _ACEOF
10581 if ac_fn_c_try_link "$LINENO"; then :
10582 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10583 else
10584 ac_cv_lib_gettextpo_po_message_msgctxt=no
10586 rm -f core conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10588 LIBS=$ac_check_lib_save_LIBS
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10591 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10592 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10594 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10596 LIBGETTEXTPO="-lgettextpo"
10601 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10602 case "x$with_gettextpo" in
10603 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10604 xno) ;;
10605 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10606 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10607 esac
10611 if test "x$with_gstreamer" != "xno"
10612 then
10613 ac_save_CPPFLAGS="$CPPFLAGS"
10614 if test "$PKG_CONFIG" != "false"; then
10615 ac_gst_incl=""
10616 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10618 case "$i" in
10619 -I*) ac_gst_incl="$ac_gst_incl $i";;
10620 esac
10621 done
10622 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10623 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10624 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10625 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10626 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10627 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10629 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10632 #include <gst/app/gstappsink.h>
10634 main ()
10636 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10638 return 0;
10640 _ACEOF
10641 if ac_fn_c_try_compile "$LINENO"; then :
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10643 $as_echo "yes" >&6; }
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10645 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10646 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10647 $as_echo_n "(cached) " >&6
10648 else
10649 ac_check_lib_save_LIBS=$LIBS
10650 LIBS="-lgstreamer-0.10 $LIBS"
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10654 /* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
10657 #ifdef __cplusplus
10658 extern "C"
10659 #endif
10660 char gst_pad_get_caps_reffed ();
10662 main ()
10664 return gst_pad_get_caps_reffed ();
10666 return 0;
10668 _ACEOF
10669 if ac_fn_c_try_link "$LINENO"; then :
10670 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10671 else
10672 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10674 rm -f core conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
10676 LIBS=$ac_check_lib_save_LIBS
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10679 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10680 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10682 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10683 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10684 $as_echo_n "(cached) " >&6
10685 else
10686 ac_check_lib_save_LIBS=$LIBS
10687 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689 /* end confdefs.h. */
10691 /* Override any GCC internal prototype to avoid an error.
10692 Use char because int might match the return type of a GCC
10693 builtin and then its argument prototype would still apply. */
10694 #ifdef __cplusplus
10695 extern "C"
10696 #endif
10697 char gst_app_buffer_new ();
10699 main ()
10701 return gst_app_buffer_new ();
10703 return 0;
10705 _ACEOF
10706 if ac_fn_c_try_link "$LINENO"; then :
10707 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10708 else
10709 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10711 rm -f core conftest.err conftest.$ac_objext \
10712 conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10716 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10717 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10718 GSTREAMER_LIBS="$ac_gst_libs"
10720 GSTREAMER_INCL="$ac_gst_incl"
10726 else
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728 $as_echo "no" >&6; }
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10738 CPPFLAGS="$ac_save_CPPFLAGS"
10740 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10741 case "x$with_gstreamer" in
10742 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10743 xno) ;;
10744 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10745 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10746 esac
10748 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10750 ALSALIBS=""
10752 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10753 then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10755 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10756 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 ac_check_lib_save_LIBS=$LIBS
10760 LIBS="-lasound $LIBS"
10761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10762 /* end confdefs.h. */
10764 /* Override any GCC internal prototype to avoid an error.
10765 Use char because int might match the return type of a GCC
10766 builtin and then its argument prototype would still apply. */
10767 #ifdef __cplusplus
10768 extern "C"
10769 #endif
10770 char snd_pcm_hw_params_get_access_mask ();
10772 main ()
10774 return snd_pcm_hw_params_get_access_mask ();
10776 return 0;
10778 _ACEOF
10779 if ac_fn_c_try_link "$LINENO"; then :
10780 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10781 else
10782 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10784 rm -f core conftest.err conftest.$ac_objext \
10785 conftest$ac_exeext conftest.$ac_ext
10786 LIBS=$ac_check_lib_save_LIBS
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10789 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10790 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10793 #ifdef HAVE_ALSA_ASOUNDLIB_H
10794 #include <alsa/asoundlib.h>
10795 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10796 #include <sys/asoundlib.h>
10797 #endif
10799 main ()
10801 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10803 return 0;
10805 _ACEOF
10806 if ac_fn_c_try_compile "$LINENO"; then :
10807 ALSALIBS="-lasound"
10809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10814 if test "x$with_oss" != xno
10815 then
10816 ac_save_CPPFLAGS="$CPPFLAGS"
10817 if test -f /etc/oss.conf
10818 then
10819 . /etc/oss.conf
10821 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10822 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10823 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10824 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10825 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10827 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10829 cat >>confdefs.h <<_ACEOF
10830 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10831 _ACEOF
10833 OSS4INCL="$ac_oss_incl"
10840 CPPFLAGS="$ac_save_CPPFLAGS"
10841 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10842 then
10843 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10848 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10849 then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10851 $as_echo_n "checking for -lcapi20... " >&6; }
10852 if ${ac_cv_lib_soname_capi20+:} false; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 ac_check_soname_save_LIBS=$LIBS
10856 LIBS="-lcapi20 $LIBS"
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10860 /* Override any GCC internal prototype to avoid an error.
10861 Use char because int might match the return type of a GCC
10862 builtin and then its argument prototype would still apply. */
10863 #ifdef __cplusplus
10864 extern "C"
10865 #endif
10866 char capi20_register ();
10868 main ()
10870 return capi20_register ();
10872 return 0;
10874 _ACEOF
10875 if ac_fn_c_try_link "$LINENO"; then :
10876 case "$LIBEXT" in
10877 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10878 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'` ;;
10879 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10880 esac
10882 rm -f core conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext conftest.$ac_ext
10884 LIBS=$ac_check_soname_save_LIBS
10886 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10888 $as_echo "not found" >&6; }
10890 else
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10892 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10894 cat >>confdefs.h <<_ACEOF
10895 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10896 _ACEOF
10901 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10902 case "x$with_capi" in
10903 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10904 xno) ;;
10905 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10906 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10907 esac
10910 CUPSINCL=""
10912 if test "x$with_cups" != "xno"
10913 then
10914 ac_save_CPPFLAGS="$CPPFLAGS"
10915 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10916 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10917 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10918 for ac_header in cups/cups.h
10919 do :
10920 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10921 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
10922 cat >>confdefs.h <<_ACEOF
10923 #define HAVE_CUPS_CUPS_H 1
10924 _ACEOF
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10926 $as_echo_n "checking for -lcups... " >&6; }
10927 if ${ac_cv_lib_soname_cups+:} false; then :
10928 $as_echo_n "(cached) " >&6
10929 else
10930 ac_check_soname_save_LIBS=$LIBS
10931 LIBS="-lcups $ac_cups_libs $LIBS"
10932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10935 /* Override any GCC internal prototype to avoid an error.
10936 Use char because int might match the return type of a GCC
10937 builtin and then its argument prototype would still apply. */
10938 #ifdef __cplusplus
10939 extern "C"
10940 #endif
10941 char cupsGetDefault ();
10943 main ()
10945 return cupsGetDefault ();
10947 return 0;
10949 _ACEOF
10950 if ac_fn_c_try_link "$LINENO"; then :
10951 case "$LIBEXT" in
10952 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10953 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'` ;;
10954 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10955 esac
10957 rm -f core conftest.err conftest.$ac_objext \
10958 conftest$ac_exeext conftest.$ac_ext
10959 LIBS=$ac_check_soname_save_LIBS
10961 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10963 $as_echo "not found" >&6; }
10965 else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10967 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10969 cat >>confdefs.h <<_ACEOF
10970 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10971 _ACEOF
10973 CUPSINCL="$ac_cups_cflags"
10977 done
10979 CPPFLAGS="$ac_save_CPPFLAGS"
10981 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10982 case "x$with_cups" in
10983 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10984 xno) ;;
10985 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
10986 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10987 esac
10990 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10991 then
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10993 $as_echo_n "checking for -lfontconfig... " >&6; }
10994 if ${ac_cv_lib_soname_fontconfig+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 ac_check_soname_save_LIBS=$LIBS
10998 LIBS="-lfontconfig $LIBS"
10999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h. */
11002 /* Override any GCC internal prototype to avoid an error.
11003 Use char because int might match the return type of a GCC
11004 builtin and then its argument prototype would still apply. */
11005 #ifdef __cplusplus
11006 extern "C"
11007 #endif
11008 char FcInit ();
11010 main ()
11012 return FcInit ();
11014 return 0;
11016 _ACEOF
11017 if ac_fn_c_try_link "$LINENO"; then :
11018 case "$LIBEXT" in
11019 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11020 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'` ;;
11021 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11022 esac
11024 rm -f core conftest.err conftest.$ac_objext \
11025 conftest$ac_exeext conftest.$ac_ext
11026 LIBS=$ac_check_soname_save_LIBS
11028 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11030 $as_echo "not found" >&6; }
11032 else
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11034 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11036 cat >>confdefs.h <<_ACEOF
11037 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11038 _ACEOF
11042 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11043 then
11044 ac_save_CPPFLAGS="$CPPFLAGS"
11045 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11046 $as_unset ac_cv_header_fontconfig_fontconfig_h
11047 for ac_header in fontconfig/fontconfig.h
11048 do :
11049 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11050 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11051 cat >>confdefs.h <<_ACEOF
11052 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11053 _ACEOF
11057 done
11059 CPPFLAGS="$ac_save_CPPFLAGS"
11060 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11061 then
11062 FONTCONFIGINCL="$X_CFLAGS"
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11065 $as_echo_n "checking for -lfontconfig... " >&6; }
11066 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11067 $as_echo_n "(cached) " >&6
11068 else
11069 ac_check_soname_save_LIBS=$LIBS
11070 LIBS="-lfontconfig $X_LIBS $LIBS"
11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h. */
11074 /* Override any GCC internal prototype to avoid an error.
11075 Use char because int might match the return type of a GCC
11076 builtin and then its argument prototype would still apply. */
11077 #ifdef __cplusplus
11078 extern "C"
11079 #endif
11080 char FcInit ();
11082 main ()
11084 return FcInit ();
11086 return 0;
11088 _ACEOF
11089 if ac_fn_c_try_link "$LINENO"; then :
11090 case "$LIBEXT" in
11091 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11092 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'` ;;
11093 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11094 esac
11096 rm -f core conftest.err conftest.$ac_objext \
11097 conftest$ac_exeext conftest.$ac_ext
11098 LIBS=$ac_check_soname_save_LIBS
11100 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11102 $as_echo "not found" >&6; }
11104 else
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11106 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11108 cat >>confdefs.h <<_ACEOF
11109 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11110 _ACEOF
11116 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11117 case "x$with_fontconfig" in
11118 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11119 xno) ;;
11120 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11121 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11122 esac
11125 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11126 then
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11128 $as_echo_n "checking for -lssl... " >&6; }
11129 if ${ac_cv_lib_soname_ssl+:} false; then :
11130 $as_echo_n "(cached) " >&6
11131 else
11132 ac_check_soname_save_LIBS=$LIBS
11133 LIBS="-lssl $LIBS"
11134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11137 /* Override any GCC internal prototype to avoid an error.
11138 Use char because int might match the return type of a GCC
11139 builtin and then its argument prototype would still apply. */
11140 #ifdef __cplusplus
11141 extern "C"
11142 #endif
11143 char SSL_library_init ();
11145 main ()
11147 return SSL_library_init ();
11149 return 0;
11151 _ACEOF
11152 if ac_fn_c_try_link "$LINENO"; then :
11153 case "$LIBEXT" in
11154 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11155 dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep "libssl\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11156 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11157 esac
11159 rm -f core conftest.err conftest.$ac_objext \
11160 conftest$ac_exeext conftest.$ac_ext
11161 LIBS=$ac_check_soname_save_LIBS
11163 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11165 $as_echo "not found" >&6; }
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11169 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11171 cat >>confdefs.h <<_ACEOF
11172 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11173 _ACEOF
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11178 $as_echo_n "checking for -lcrypto... " >&6; }
11179 if ${ac_cv_lib_soname_crypto+:} false; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 ac_check_soname_save_LIBS=$LIBS
11183 LIBS="-lcrypto $LIBS"
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11187 /* Override any GCC internal prototype to avoid an error.
11188 Use char because int might match the return type of a GCC
11189 builtin and then its argument prototype would still apply. */
11190 #ifdef __cplusplus
11191 extern "C"
11192 #endif
11193 char BIO_new_socket ();
11195 main ()
11197 return BIO_new_socket ();
11199 return 0;
11201 _ACEOF
11202 if ac_fn_c_try_link "$LINENO"; then :
11203 case "$LIBEXT" in
11204 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11205 dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep "libcrypto\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11206 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11207 esac
11209 rm -f core conftest.err conftest.$ac_objext \
11210 conftest$ac_exeext conftest.$ac_ext
11211 LIBS=$ac_check_soname_save_LIBS
11213 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11215 $as_echo "not found" >&6; }
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11219 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11221 cat >>confdefs.h <<_ACEOF
11222 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11223 _ACEOF
11228 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11229 case "x$with_openssl" in
11230 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11231 xno) ;;
11232 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11233 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11234 esac
11237 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11238 then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11240 $as_echo_n "checking for -lgsm... " >&6; }
11241 if ${ac_cv_lib_soname_gsm+:} false; then :
11242 $as_echo_n "(cached) " >&6
11243 else
11244 ac_check_soname_save_LIBS=$LIBS
11245 LIBS="-lgsm $LIBS"
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11252 #ifdef __cplusplus
11253 extern "C"
11254 #endif
11255 char gsm_create ();
11257 main ()
11259 return gsm_create ();
11261 return 0;
11263 _ACEOF
11264 if ac_fn_c_try_link "$LINENO"; then :
11265 case "$LIBEXT" in
11266 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11267 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'` ;;
11268 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11269 esac
11271 rm -f core conftest.err conftest.$ac_objext \
11272 conftest$ac_exeext conftest.$ac_ext
11273 LIBS=$ac_check_soname_save_LIBS
11275 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11277 $as_echo "not found" >&6; }
11279 else
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11281 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11283 cat >>confdefs.h <<_ACEOF
11284 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11285 _ACEOF
11290 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11291 case "x$with_gsm" in
11292 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11293 xno) ;;
11294 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11295 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11296 esac
11299 if test "$ac_cv_header_jpeglib_h" = "yes"
11300 then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11302 $as_echo_n "checking for -ljpeg... " >&6; }
11303 if ${ac_cv_lib_soname_jpeg+:} false; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 ac_check_soname_save_LIBS=$LIBS
11307 LIBS="-ljpeg $LIBS"
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h. */
11311 /* Override any GCC internal prototype to avoid an error.
11312 Use char because int might match the return type of a GCC
11313 builtin and then its argument prototype would still apply. */
11314 #ifdef __cplusplus
11315 extern "C"
11316 #endif
11317 char jpeg_start_decompress ();
11319 main ()
11321 return jpeg_start_decompress ();
11323 return 0;
11325 _ACEOF
11326 if ac_fn_c_try_link "$LINENO"; then :
11327 case "$LIBEXT" in
11328 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11329 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'` ;;
11330 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11331 esac
11333 rm -f core conftest.err conftest.$ac_objext \
11334 conftest$ac_exeext conftest.$ac_ext
11335 LIBS=$ac_check_soname_save_LIBS
11337 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11339 $as_echo "not found" >&6; }
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11343 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11345 cat >>confdefs.h <<_ACEOF
11346 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11347 _ACEOF
11352 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11353 case "x$with_jpeg" in
11354 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11355 xno) ;;
11356 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11357 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11358 esac
11361 if test "$ac_cv_header_png_h" = "yes"
11362 then
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11364 $as_echo_n "checking for -lpng... " >&6; }
11365 if ${ac_cv_lib_soname_png+:} false; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11368 ac_check_soname_save_LIBS=$LIBS
11369 LIBS="-lpng -lm -lz $LIBS"
11370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h. */
11373 /* Override any GCC internal prototype to avoid an error.
11374 Use char because int might match the return type of a GCC
11375 builtin and then its argument prototype would still apply. */
11376 #ifdef __cplusplus
11377 extern "C"
11378 #endif
11379 char png_create_read_struct ();
11381 main ()
11383 return png_create_read_struct ();
11385 return 0;
11387 _ACEOF
11388 if ac_fn_c_try_link "$LINENO"; then :
11389 case "$LIBEXT" in
11390 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11391 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'` ;;
11392 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11393 esac
11395 rm -f core conftest.err conftest.$ac_objext \
11396 conftest$ac_exeext conftest.$ac_ext
11397 LIBS=$ac_check_soname_save_LIBS
11399 if test "x$ac_cv_lib_soname_png" = "x"; then :
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11401 $as_echo "not found" >&6; }
11403 else
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11405 $as_echo "$ac_cv_lib_soname_png" >&6; }
11407 cat >>confdefs.h <<_ACEOF
11408 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11409 _ACEOF
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11414 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11415 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 ac_check_lib_save_LIBS=$LIBS
11419 LIBS="-lpng -lm -lz $LIBS"
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11423 /* Override any GCC internal prototype to avoid an error.
11424 Use char because int might match the return type of a GCC
11425 builtin and then its argument prototype would still apply. */
11426 #ifdef __cplusplus
11427 extern "C"
11428 #endif
11429 char png_set_expand_gray_1_2_4_to_8 ();
11431 main ()
11433 return png_set_expand_gray_1_2_4_to_8 ();
11435 return 0;
11437 _ACEOF
11438 if ac_fn_c_try_link "$LINENO"; then :
11439 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11440 else
11441 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11443 rm -f core conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11448 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11449 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11451 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11456 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11457 then
11458 ac_save_CPPFLAGS="$CPPFLAGS"
11459 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11460 $as_unset ac_cv_header_png_h
11461 for ac_header in png.h
11462 do :
11463 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11464 if test "x$ac_cv_header_png_h" = xyes; then :
11465 cat >>confdefs.h <<_ACEOF
11466 #define HAVE_PNG_H 1
11467 _ACEOF
11471 done
11473 CPPFLAGS="$ac_save_CPPFLAGS"
11474 if test "$ac_cv_header_png_h" = "yes"
11475 then
11476 PNGINCL="$X_CFLAGS"
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11479 $as_echo_n "checking for -lpng... " >&6; }
11480 if ${ac_cv_lib_soname_png+:} false; then :
11481 $as_echo_n "(cached) " >&6
11482 else
11483 ac_check_soname_save_LIBS=$LIBS
11484 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h. */
11488 /* Override any GCC internal prototype to avoid an error.
11489 Use char because int might match the return type of a GCC
11490 builtin and then its argument prototype would still apply. */
11491 #ifdef __cplusplus
11492 extern "C"
11493 #endif
11494 char png_create_read_struct ();
11496 main ()
11498 return png_create_read_struct ();
11500 return 0;
11502 _ACEOF
11503 if ac_fn_c_try_link "$LINENO"; then :
11504 case "$LIBEXT" in
11505 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11506 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'` ;;
11507 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11508 esac
11510 rm -f core conftest.err conftest.$ac_objext \
11511 conftest$ac_exeext conftest.$ac_ext
11512 LIBS=$ac_check_soname_save_LIBS
11514 if test "x$ac_cv_lib_soname_png" = "x"; then :
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11516 $as_echo "not found" >&6; }
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11520 $as_echo "$ac_cv_lib_soname_png" >&6; }
11522 cat >>confdefs.h <<_ACEOF
11523 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11524 _ACEOF
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11529 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11530 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 ac_check_lib_save_LIBS=$LIBS
11534 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11538 /* Override any GCC internal prototype to avoid an error.
11539 Use char because int might match the return type of a GCC
11540 builtin and then its argument prototype would still apply. */
11541 #ifdef __cplusplus
11542 extern "C"
11543 #endif
11544 char png_set_expand_gray_1_2_4_to_8 ();
11546 main ()
11548 return png_set_expand_gray_1_2_4_to_8 ();
11550 return 0;
11552 _ACEOF
11553 if ac_fn_c_try_link "$LINENO"; then :
11554 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11555 else
11556 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11558 rm -f core conftest.err conftest.$ac_objext \
11559 conftest$ac_exeext conftest.$ac_ext
11560 LIBS=$ac_check_lib_save_LIBS
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11563 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11564 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11565 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11571 if test "x$ac_cv_lib_soname_png" = "x"; then :
11572 case "x$with_png" in
11573 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11574 xno) ;;
11575 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11576 This is an error since --with-png was requested." "$LINENO" 5 ;;
11577 esac
11580 if test "$ac_cv_header_tiffio_h" = "yes"
11581 then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11583 $as_echo_n "checking for -ltiff... " >&6; }
11584 if ${ac_cv_lib_soname_tiff+:} false; then :
11585 $as_echo_n "(cached) " >&6
11586 else
11587 ac_check_soname_save_LIBS=$LIBS
11588 LIBS="-ltiff $LIBS"
11589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590 /* end confdefs.h. */
11592 /* Override any GCC internal prototype to avoid an error.
11593 Use char because int might match the return type of a GCC
11594 builtin and then its argument prototype would still apply. */
11595 #ifdef __cplusplus
11596 extern "C"
11597 #endif
11598 char TIFFClientOpen ();
11600 main ()
11602 return TIFFClientOpen ();
11604 return 0;
11606 _ACEOF
11607 if ac_fn_c_try_link "$LINENO"; then :
11608 case "$LIBEXT" in
11609 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11610 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'` ;;
11611 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11612 esac
11614 rm -f core conftest.err conftest.$ac_objext \
11615 conftest$ac_exeext conftest.$ac_ext
11616 LIBS=$ac_check_soname_save_LIBS
11618 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11620 $as_echo "not found" >&6; }
11622 else
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11624 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11626 cat >>confdefs.h <<_ACEOF
11627 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11628 _ACEOF
11633 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11634 case "x$with_tiff" in
11635 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11636 xno) ;;
11637 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11638 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11639 esac
11642 if test "$ac_cv_header_mpg123_h" = "yes"
11643 then
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11645 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11646 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 ac_check_lib_save_LIBS=$LIBS
11650 LIBS="-lmpg123 $LIBS"
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11654 /* Override any GCC internal prototype to avoid an error.
11655 Use char because int might match the return type of a GCC
11656 builtin and then its argument prototype would still apply. */
11657 #ifdef __cplusplus
11658 extern "C"
11659 #endif
11660 char mpg123_feed ();
11662 main ()
11664 return mpg123_feed ();
11666 return 0;
11668 _ACEOF
11669 if ac_fn_c_try_link "$LINENO"; then :
11670 ac_cv_lib_mpg123_mpg123_feed=yes
11671 else
11672 ac_cv_lib_mpg123_mpg123_feed=no
11674 rm -f core conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11679 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11680 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11681 LIBMPG123="-lmpg123"
11686 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11687 case "x$with_mpg123" in
11688 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11689 xno) ;;
11690 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11691 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11692 esac
11694 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}
11696 if test "$ac_cv_header_AL_al_h" = "yes"
11697 then
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11699 $as_echo_n "checking for -lopenal... " >&6; }
11700 if ${ac_cv_lib_soname_openal+:} false; then :
11701 $as_echo_n "(cached) " >&6
11702 else
11703 ac_check_soname_save_LIBS=$LIBS
11704 LIBS="-lopenal $LIBS"
11705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11706 /* end confdefs.h. */
11708 /* Override any GCC internal prototype to avoid an error.
11709 Use char because int might match the return type of a GCC
11710 builtin and then its argument prototype would still apply. */
11711 #ifdef __cplusplus
11712 extern "C"
11713 #endif
11714 char alGetSource3i ();
11716 main ()
11718 return alGetSource3i ();
11720 return 0;
11722 _ACEOF
11723 if ac_fn_c_try_link "$LINENO"; then :
11724 case "$LIBEXT" in
11725 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11726 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'` ;;
11727 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11728 esac
11730 rm -f core conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732 LIBS=$ac_check_soname_save_LIBS
11734 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11736 $as_echo "not found" >&6; }
11738 else
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11740 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11742 cat >>confdefs.h <<_ACEOF
11743 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11744 _ACEOF
11746 LIBOPENAL="-lopenal"
11748 ac_cv_lib_openal=yes
11750 cat >>confdefs.h <<_ACEOF
11751 #define HAVE_OPENAL 1
11752 _ACEOF
11756 if test "x$ac_cv_lib_openal" != xyes; then :
11757 case "x$with_openal" in
11758 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11759 xno) ;;
11760 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11761 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11762 esac
11764 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11766 if test "$ac_cv_header_kstat_h" = "yes"
11767 then
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11769 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11770 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11771 $as_echo_n "(cached) " >&6
11772 else
11773 ac_check_lib_save_LIBS=$LIBS
11774 LIBS="-lkstat $LIBS"
11775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776 /* end confdefs.h. */
11778 /* Override any GCC internal prototype to avoid an error.
11779 Use char because int might match the return type of a GCC
11780 builtin and then its argument prototype would still apply. */
11781 #ifdef __cplusplus
11782 extern "C"
11783 #endif
11784 char kstat_open ();
11786 main ()
11788 return kstat_open ();
11790 return 0;
11792 _ACEOF
11793 if ac_fn_c_try_link "$LINENO"; then :
11794 ac_cv_lib_kstat_kstat_open=yes
11795 else
11796 ac_cv_lib_kstat_kstat_open=no
11798 rm -f core conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11800 LIBS=$ac_check_lib_save_LIBS
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11803 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11804 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11806 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11808 LIBKSTAT="-lkstat"
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11815 $as_echo_n "checking for -lodbc... " >&6; }
11816 if ${ac_cv_lib_soname_odbc+:} false; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 ac_check_soname_save_LIBS=$LIBS
11820 LIBS="-lodbc $LIBS"
11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h. */
11824 /* Override any GCC internal prototype to avoid an error.
11825 Use char because int might match the return type of a GCC
11826 builtin and then its argument prototype would still apply. */
11827 #ifdef __cplusplus
11828 extern "C"
11829 #endif
11830 char SQLConnect ();
11832 main ()
11834 return SQLConnect ();
11836 return 0;
11838 _ACEOF
11839 if ac_fn_c_try_link "$LINENO"; then :
11840 case "$LIBEXT" in
11841 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11842 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'` ;;
11843 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11844 esac
11846 rm -f core conftest.err conftest.$ac_objext \
11847 conftest$ac_exeext conftest.$ac_ext
11848 LIBS=$ac_check_soname_save_LIBS
11850 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11852 $as_echo "not found" >&6; }
11853 cat >>confdefs.h <<_ACEOF
11854 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11855 _ACEOF
11857 else
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11859 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11861 cat >>confdefs.h <<_ACEOF
11862 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11863 _ACEOF
11868 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11869 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
11870 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
11871 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11873 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
11874 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
11875 "x$with_alsa$with_coreaudio$with_oss" != xnonono
11876 then
11877 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11881 EXTRACFLAGS=""
11883 if test "x${GCC}" = "xyes"
11884 then
11885 EXTRACFLAGS="-Wall -pipe"
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11888 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11889 if ${ac_cv_c_gcc_strength_bug+:} false; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 if test "$cross_compiling" = yes; then :
11893 ac_cv_c_gcc_strength_bug="yes"
11894 else
11895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11897 int L[4] = {0,1,2,3};
11899 main ()
11901 static int Array[3];
11902 unsigned int B = 3;
11903 int i;
11904 for(i=0; i<B; i++) Array[i] = i - 3;
11905 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11906 L[i] = 4;
11907 return (Array[1] != -2 || L[2] != 3)
11909 return 0;
11911 _ACEOF
11912 if ac_fn_c_try_run "$LINENO"; then :
11913 ac_cv_c_gcc_strength_bug="no"
11914 else
11915 ac_cv_c_gcc_strength_bug="yes"
11917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11918 conftest.$ac_objext conftest.beam conftest.$ac_ext
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11923 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11924 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11925 then
11926 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11930 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11931 if ${ac_cv_cflags__fno_builtin+:} false; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 ac_wine_try_cflags_saved=$CFLAGS
11935 CFLAGS="$CFLAGS -fno-builtin"
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11938 int main(int argc, char **argv) { return 0; }
11939 _ACEOF
11940 if ac_fn_c_try_link "$LINENO"; then :
11941 ac_cv_cflags__fno_builtin=yes
11942 else
11943 ac_cv_cflags__fno_builtin=no
11945 rm -f core conftest.err conftest.$ac_objext \
11946 conftest$ac_exeext conftest.$ac_ext
11947 CFLAGS=$ac_wine_try_cflags_saved
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11950 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11951 if test $ac_cv_cflags__fno_builtin = yes; then :
11952 BUILTINFLAG="-fno-builtin"
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11956 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11957 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 ac_wine_try_cflags_saved=$CFLAGS
11961 CFLAGS="$CFLAGS -fno-strict-aliasing"
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11964 int main(int argc, char **argv) { return 0; }
11965 _ACEOF
11966 if ac_fn_c_try_link "$LINENO"; then :
11967 ac_cv_cflags__fno_strict_aliasing=yes
11968 else
11969 ac_cv_cflags__fno_strict_aliasing=no
11971 rm -f core conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11973 CFLAGS=$ac_wine_try_cflags_saved
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11976 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11977 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11978 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11981 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11982 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
11983 $as_echo_n "(cached) " >&6
11984 else
11985 ac_wine_try_cflags_saved=$CFLAGS
11986 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11989 int main(int argc, char **argv) { return 0; }
11990 _ACEOF
11991 if ac_fn_c_try_link "$LINENO"; then :
11992 ac_cv_cflags__Wdeclaration_after_statement=yes
11993 else
11994 ac_cv_cflags__Wdeclaration_after_statement=no
11996 rm -f core conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11998 CFLAGS=$ac_wine_try_cflags_saved
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12001 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12002 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12003 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12006 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12007 if ${ac_cv_cflags__Wempty_body+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 ac_wine_try_cflags_saved=$CFLAGS
12011 CFLAGS="$CFLAGS -Wempty-body"
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12014 int main(int argc, char **argv) { return 0; }
12015 _ACEOF
12016 if ac_fn_c_try_link "$LINENO"; then :
12017 ac_cv_cflags__Wempty_body=yes
12018 else
12019 ac_cv_cflags__Wempty_body=no
12021 rm -f core conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023 CFLAGS=$ac_wine_try_cflags_saved
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12026 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12027 if test $ac_cv_cflags__Wempty_body = yes; then :
12028 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12031 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12032 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12033 $as_echo_n "(cached) " >&6
12034 else
12035 ac_wine_try_cflags_saved=$CFLAGS
12036 CFLAGS="$CFLAGS -Wstrict-prototypes"
12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12039 int main(int argc, char **argv) { return 0; }
12040 _ACEOF
12041 if ac_fn_c_try_link "$LINENO"; then :
12042 ac_cv_cflags__Wstrict_prototypes=yes
12043 else
12044 ac_cv_cflags__Wstrict_prototypes=no
12046 rm -f core conftest.err conftest.$ac_objext \
12047 conftest$ac_exeext conftest.$ac_ext
12048 CFLAGS=$ac_wine_try_cflags_saved
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12051 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12052 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12053 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12056 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12057 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 ac_wine_try_cflags_saved=$CFLAGS
12061 CFLAGS="$CFLAGS -Wtype-limits"
12062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h. */
12064 int main(int argc, char **argv) { return 0; }
12065 _ACEOF
12066 if ac_fn_c_try_link "$LINENO"; then :
12067 ac_cv_cflags__Wtype_limits=yes
12068 else
12069 ac_cv_cflags__Wtype_limits=no
12071 rm -f core conftest.err conftest.$ac_objext \
12072 conftest$ac_exeext conftest.$ac_ext
12073 CFLAGS=$ac_wine_try_cflags_saved
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12076 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12077 if test $ac_cv_cflags__Wtype_limits = yes; then :
12078 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12081 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12082 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12083 $as_echo_n "(cached) " >&6
12084 else
12085 ac_wine_try_cflags_saved=$CFLAGS
12086 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12089 int main(int argc, char **argv) { return 0; }
12090 _ACEOF
12091 if ac_fn_c_try_link "$LINENO"; then :
12092 ac_cv_cflags__Wunused_but_set_parameter=yes
12093 else
12094 ac_cv_cflags__Wunused_but_set_parameter=no
12096 rm -f core conftest.err conftest.$ac_objext \
12097 conftest$ac_exeext conftest.$ac_ext
12098 CFLAGS=$ac_wine_try_cflags_saved
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12101 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12102 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12103 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12106 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12107 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12108 $as_echo_n "(cached) " >&6
12109 else
12110 ac_wine_try_cflags_saved=$CFLAGS
12111 CFLAGS="$CFLAGS -Wwrite-strings"
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12114 int main(int argc, char **argv) { return 0; }
12115 _ACEOF
12116 if ac_fn_c_try_link "$LINENO"; then :
12117 ac_cv_cflags__Wwrite_strings=yes
12118 else
12119 ac_cv_cflags__Wwrite_strings=no
12121 rm -f core conftest.err conftest.$ac_objext \
12122 conftest$ac_exeext conftest.$ac_ext
12123 CFLAGS=$ac_wine_try_cflags_saved
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12126 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12127 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12128 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12131 case $host_cpu in
12132 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12133 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12134 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12135 $as_echo_n "(cached) " >&6
12136 else
12137 ac_wine_try_cflags_saved=$CFLAGS
12138 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141 int main(int argc, char **argv) { return 0; }
12142 _ACEOF
12143 if ac_fn_c_try_link "$LINENO"; then :
12144 ac_cv_cflags__fno_omit_frame_pointer=yes
12145 else
12146 ac_cv_cflags__fno_omit_frame_pointer=no
12148 rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12150 CFLAGS=$ac_wine_try_cflags_saved
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12153 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12154 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12155 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12156 fi ;;
12157 esac
12159 saved_CFLAGS="$CFLAGS"
12160 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12162 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12163 if ${ac_cv_c_string_h_warnings+:} false; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12168 #include <string.h>
12170 main ()
12174 return 0;
12176 _ACEOF
12177 if ac_fn_c_try_compile "$LINENO"; then :
12178 ac_cv_c_string_h_warnings=no
12179 else
12180 ac_cv_c_string_h_warnings=yes
12182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12185 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12186 CFLAGS="$saved_CFLAGS"
12187 if test "$ac_cv_c_string_h_warnings" = "no"
12188 then
12189 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12192 saved_CFLAGS="$CFLAGS"
12193 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12195 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12196 if ${ac_cv_c_logicalop_noisy+:} false; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200 /* end confdefs.h. */
12201 #include <string.h>
12203 main ()
12205 char*f(const char *h,char n) {return strchr(h,n);}
12207 return 0;
12209 _ACEOF
12210 if ac_fn_c_try_compile "$LINENO"; then :
12211 ac_cv_c_logicalop_noisy=no
12212 else
12213 ac_cv_c_logicalop_noisy=yes
12215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12218 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12219 CFLAGS="$saved_CFLAGS"
12220 if test "$ac_cv_c_logicalop_noisy" = "no"
12221 then
12222 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12225 if test "x$enable_maintainer_mode" = "xyes"
12226 then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12228 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12229 if ${ac_cv_cflags__Werror+:} false; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 ac_wine_try_cflags_saved=$CFLAGS
12233 CFLAGS="$CFLAGS -Werror"
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12236 int main(int argc, char **argv) { return 0; }
12237 _ACEOF
12238 if ac_fn_c_try_link "$LINENO"; then :
12239 ac_cv_cflags__Werror=yes
12240 else
12241 ac_cv_cflags__Werror=no
12243 rm -f core conftest.err conftest.$ac_objext \
12244 conftest$ac_exeext conftest.$ac_ext
12245 CFLAGS=$ac_wine_try_cflags_saved
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12248 $as_echo "$ac_cv_cflags__Werror" >&6; }
12249 if test $ac_cv_cflags__Werror = yes; then :
12250 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12254 saved_CFLAGS="$CFLAGS"
12255 CFLAGS="$CFLAGS -Werror"
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12257 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12258 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12263 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12265 main ()
12269 return 0;
12271 _ACEOF
12272 if ac_fn_c_try_compile "$LINENO"; then :
12273 ac_cv_have_ms_hook_prologue="yes"
12274 else
12275 ac_cv_have_ms_hook_prologue="no"
12277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12280 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12281 CFLAGS="$saved_CFLAGS"
12282 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12283 then
12285 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12287 else
12288 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12295 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12296 if ${ac_cv_c_fortify_enabled+:} false; then :
12297 $as_echo_n "(cached) " >&6
12298 else
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12301 #include <string.h>
12303 main ()
12305 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12306 #error Fortify enabled
12307 #endif
12309 return 0;
12311 _ACEOF
12312 if ac_fn_c_try_compile "$LINENO"; then :
12313 ac_cv_c_fortify_enabled=no
12314 else
12315 ac_cv_c_fortify_enabled=yes
12317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12320 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12321 if test "$ac_cv_c_fortify_enabled" = yes
12322 then
12323 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12328 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12329 if ${ac_cv_c_extern_prefix+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12334 extern int ac_test;
12336 main ()
12338 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12340 return 0;
12342 _ACEOF
12343 if ac_fn_c_try_link "$LINENO"; then :
12344 ac_cv_c_extern_prefix="yes"
12345 else
12346 ac_cv_c_extern_prefix="no"
12348 rm -f core conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12352 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12354 case $host_cpu in
12355 *i[3456789]86*)
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12357 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12358 if ${ac_cv_c_stdcall_suffix+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12363 #ifndef _MSC_VER
12364 #define __stdcall __attribute__((__stdcall__))
12365 #endif
12366 int __stdcall ac_test(int i) { return i; }
12368 main ()
12370 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12372 return 0;
12374 _ACEOF
12375 if ac_fn_c_try_link "$LINENO"; then :
12376 ac_cv_c_stdcall_suffix="yes"
12377 else
12378 ac_cv_c_stdcall_suffix="no"
12380 rm -f core conftest.err conftest.$ac_objext \
12381 conftest$ac_exeext conftest.$ac_ext
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12384 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12385 *) ac_cv_c_stdcall_suffix="no" ;;
12386 esac
12389 if test "$ac_cv_c_extern_prefix" = "yes"
12390 then
12391 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12393 asm_name_prefix="_"
12394 else
12395 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12397 asm_name_prefix=""
12401 if test "$ac_cv_c_stdcall_suffix" = "yes"
12402 then
12403 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12405 else
12406 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12412 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12413 if ${ac_cv_asm_func_def+:} false; then :
12414 $as_echo_n "(cached) " >&6
12415 else
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12420 main ()
12422 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12424 return 0;
12426 _ACEOF
12427 if ac_fn_c_try_link "$LINENO"; then :
12428 ac_cv_asm_func_def=".def"
12429 else
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12434 main ()
12436 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12438 return 0;
12440 _ACEOF
12441 if ac_fn_c_try_link "$LINENO"; then :
12442 ac_cv_asm_func_def=".type @function"
12443 else
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h. */
12448 main ()
12450 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12452 return 0;
12454 _ACEOF
12455 if ac_fn_c_try_link "$LINENO"; then :
12456 ac_cv_asm_func_def=".type 2"
12457 else
12458 ac_cv_asm_func_def="unknown"
12460 rm -f core conftest.err conftest.$ac_objext \
12461 conftest$ac_exeext conftest.$ac_ext
12463 rm -f core conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12466 rm -f core conftest.err conftest.$ac_objext \
12467 conftest$ac_exeext conftest.$ac_ext
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12470 $as_echo "$ac_cv_asm_func_def" >&6; }
12473 case "$ac_cv_asm_func_def" in
12474 ".def")
12475 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12477 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12478 ".type @function")
12479 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12481 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12482 ".type 2")
12483 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12485 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12487 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12489 asm_func_header="" ;;
12490 esac
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12493 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12494 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12499 asm(".text\n\t.long 0");
12501 main ()
12505 return 0;
12507 _ACEOF
12508 if ac_fn_c_try_compile "$LINENO"; then :
12509 ac_cv_c_asm_outside_funcs="yes"
12510 else
12511 ac_cv_c_asm_outside_funcs="no"
12513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12516 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12519 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12520 if ${ac_cv_c_dot_previous+:} false; then :
12521 $as_echo_n "(cached) " >&6
12522 else
12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12527 main ()
12529 asm(".text\nac_test:\t.long 0\n\t.previous");
12531 return 0;
12533 _ACEOF
12534 if ac_fn_c_try_link "$LINENO"; then :
12535 ac_cv_c_dot_previous="yes"
12536 else
12537 ac_cv_c_dot_previous="no"
12539 rm -f core conftest.err conftest.$ac_objext \
12540 conftest$ac_exeext conftest.$ac_ext
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12543 $as_echo "$ac_cv_c_dot_previous" >&6; }
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12546 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12547 if ${ac_cv_c_cfi_support+:} false; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12552 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12554 main ()
12558 return 0;
12560 _ACEOF
12561 if ac_fn_c_try_compile "$LINENO"; then :
12562 ac_cv_c_cfi_support="yes"
12563 else
12564 ac_cv_c_cfi_support="no"
12566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12569 $as_echo "$ac_cv_c_cfi_support" >&6; }
12571 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12572 asm_func_trailer=""
12573 if test "$ac_cv_c_dot_previous" = "yes"
12574 then
12575 asm_func_trailer="\\n\\t.previous"
12577 if test "$ac_cv_c_cfi_support" = "yes"
12578 then
12579 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12580 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12582 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12584 UNWINDFLAGS=-fasynchronous-unwind-tables
12586 else
12587 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12591 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12594 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12595 then
12596 cat >>confdefs.h <<_ACEOF
12597 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12598 _ACEOF
12600 else
12601 cat >>confdefs.h <<_ACEOF
12602 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12603 _ACEOF
12607 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12610 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12614 LDPATH=""
12616 case $build_os in
12617 cygwin*|mingw32*)
12618 TOOLSEXT=".exe"
12620 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12622 darwin*|macosx*)
12625 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12627 esac
12629 case $host_os in
12630 mingw32*)
12631 CRTLIBS="-lmsvcrt"
12633 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12636 esac
12638 MAIN_BINARY="wine"
12640 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12642 case $host_os in
12643 linux*)
12644 case $host_cpu in
12645 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12647 x86_64*) EXTRA_BINARIES="wine64-preloader"
12649 esac
12651 esac
12654 ac_save_CFLAGS="$CFLAGS"
12655 CFLAGS="$CFLAGS $BUILTINFLAG"
12656 for ac_func in \
12657 _finite \
12658 _isnan \
12659 _pclose \
12660 _popen \
12661 _snprintf \
12662 _spawnvp \
12663 _strdup \
12664 _stricmp \
12665 _strnicmp \
12666 _strtoi64 \
12667 _strtoui64 \
12668 _vsnprintf \
12669 asctime_r \
12670 chsize \
12671 dlopen \
12672 epoll_create \
12673 ffs \
12674 finite \
12675 fnmatch \
12676 fork \
12677 fpclass \
12678 fstatfs \
12679 fstatvfs \
12680 ftruncate \
12681 futimes \
12682 futimesat \
12683 getattrlist \
12684 getdirentries \
12685 getopt_long \
12686 getpagesize \
12687 getpwuid \
12688 gettimeofday \
12689 getuid \
12690 kqueue \
12691 lstat \
12692 memmove \
12693 mmap \
12694 pclose \
12695 pipe2 \
12696 poll \
12697 popen \
12698 port_create \
12699 prctl \
12700 pread \
12701 pwrite \
12702 readdir \
12703 readlink \
12704 sched_yield \
12705 select \
12706 setproctitle \
12707 setrlimit \
12708 settimeofday \
12709 sigaltstack \
12710 sigprocmask \
12711 snprintf \
12712 spawnvp \
12713 statfs \
12714 statvfs \
12715 strcasecmp \
12716 strdup \
12717 strerror \
12718 strncasecmp \
12719 strtold \
12720 strtoll \
12721 strtoull \
12722 symlink \
12723 tcgetattr \
12724 thr_kill2 \
12725 timegm \
12726 usleep \
12727 vsnprintf \
12728 wait4 \
12729 waitpid \
12731 do :
12732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12733 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12734 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12735 cat >>confdefs.h <<_ACEOF
12736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12737 _ACEOF
12740 done
12742 CFLAGS="$ac_save_CFLAGS"
12744 if test "$ac_cv_func_dlopen" = no
12745 then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12747 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12748 if ${ac_cv_lib_dl_dlopen+:} false; then :
12749 $as_echo_n "(cached) " >&6
12750 else
12751 ac_check_lib_save_LIBS=$LIBS
12752 LIBS="-ldl $LIBS"
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12756 /* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12759 #ifdef __cplusplus
12760 extern "C"
12761 #endif
12762 char dlopen ();
12764 main ()
12766 return dlopen ();
12768 return 0;
12770 _ACEOF
12771 if ac_fn_c_try_link "$LINENO"; then :
12772 ac_cv_lib_dl_dlopen=yes
12773 else
12774 ac_cv_lib_dl_dlopen=no
12776 rm -f core conftest.err conftest.$ac_objext \
12777 conftest$ac_exeext conftest.$ac_ext
12778 LIBS=$ac_check_lib_save_LIBS
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12781 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12782 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12783 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12784 LIBDL="-ldl"
12789 ac_wine_check_funcs_save_LIBS="$LIBS"
12790 LIBS="$LIBS $LIBDL"
12791 for ac_func in dladdr
12792 do :
12793 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12794 if test "x$ac_cv_func_dladdr" = xyes; then :
12795 cat >>confdefs.h <<_ACEOF
12796 #define HAVE_DLADDR 1
12797 _ACEOF
12800 done
12802 LIBS="$ac_wine_check_funcs_save_LIBS"
12804 if test "$ac_cv_func_poll" = no
12805 then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12807 $as_echo_n "checking for poll in -lpoll... " >&6; }
12808 if ${ac_cv_lib_poll_poll+:} false; then :
12809 $as_echo_n "(cached) " >&6
12810 else
12811 ac_check_lib_save_LIBS=$LIBS
12812 LIBS="-lpoll $LIBS"
12813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814 /* end confdefs.h. */
12816 /* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
12819 #ifdef __cplusplus
12820 extern "C"
12821 #endif
12822 char poll ();
12824 main ()
12826 return poll ();
12828 return 0;
12830 _ACEOF
12831 if ac_fn_c_try_link "$LINENO"; then :
12832 ac_cv_lib_poll_poll=yes
12833 else
12834 ac_cv_lib_poll_poll=no
12836 rm -f core conftest.err conftest.$ac_objext \
12837 conftest$ac_exeext conftest.$ac_ext
12838 LIBS=$ac_check_lib_save_LIBS
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12841 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12842 if test "x$ac_cv_lib_poll_poll" = xyes; then :
12843 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12844 LIBPOLL="-lpoll"
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12851 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12852 if ${ac_cv_search_gethostbyname+:} false; then :
12853 $as_echo_n "(cached) " >&6
12854 else
12855 ac_func_search_save_LIBS=$LIBS
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12859 /* Override any GCC internal prototype to avoid an error.
12860 Use char because int might match the return type of a GCC
12861 builtin and then its argument prototype would still apply. */
12862 #ifdef __cplusplus
12863 extern "C"
12864 #endif
12865 char gethostbyname ();
12867 main ()
12869 return gethostbyname ();
12871 return 0;
12873 _ACEOF
12874 for ac_lib in '' nsl; do
12875 if test -z "$ac_lib"; then
12876 ac_res="none required"
12877 else
12878 ac_res=-l$ac_lib
12879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12881 if ac_fn_c_try_link "$LINENO"; then :
12882 ac_cv_search_gethostbyname=$ac_res
12884 rm -f core conftest.err conftest.$ac_objext \
12885 conftest$ac_exeext
12886 if ${ac_cv_search_gethostbyname+:} false; then :
12887 break
12889 done
12890 if ${ac_cv_search_gethostbyname+:} false; then :
12892 else
12893 ac_cv_search_gethostbyname=no
12895 rm conftest.$ac_ext
12896 LIBS=$ac_func_search_save_LIBS
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12899 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12900 ac_res=$ac_cv_search_gethostbyname
12901 if test "$ac_res" != no; then :
12902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12908 $as_echo_n "checking for library containing connect... " >&6; }
12909 if ${ac_cv_search_connect+:} false; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 ac_func_search_save_LIBS=$LIBS
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12916 /* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12919 #ifdef __cplusplus
12920 extern "C"
12921 #endif
12922 char connect ();
12924 main ()
12926 return connect ();
12928 return 0;
12930 _ACEOF
12931 for ac_lib in '' socket; do
12932 if test -z "$ac_lib"; then
12933 ac_res="none required"
12934 else
12935 ac_res=-l$ac_lib
12936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12938 if ac_fn_c_try_link "$LINENO"; then :
12939 ac_cv_search_connect=$ac_res
12941 rm -f core conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext
12943 if ${ac_cv_search_connect+:} false; then :
12944 break
12946 done
12947 if ${ac_cv_search_connect+:} false; then :
12949 else
12950 ac_cv_search_connect=no
12952 rm conftest.$ac_ext
12953 LIBS=$ac_func_search_save_LIBS
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12956 $as_echo "$ac_cv_search_connect" >&6; }
12957 ac_res=$ac_cv_search_connect
12958 if test "$ac_res" != no; then :
12959 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12965 $as_echo_n "checking for library containing inet_aton... " >&6; }
12966 if ${ac_cv_search_inet_aton+:} false; then :
12967 $as_echo_n "(cached) " >&6
12968 else
12969 ac_func_search_save_LIBS=$LIBS
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12973 /* Override any GCC internal prototype to avoid an error.
12974 Use char because int might match the return type of a GCC
12975 builtin and then its argument prototype would still apply. */
12976 #ifdef __cplusplus
12977 extern "C"
12978 #endif
12979 char inet_aton ();
12981 main ()
12983 return inet_aton ();
12985 return 0;
12987 _ACEOF
12988 for ac_lib in '' resolv; do
12989 if test -z "$ac_lib"; then
12990 ac_res="none required"
12991 else
12992 ac_res=-l$ac_lib
12993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12995 if ac_fn_c_try_link "$LINENO"; then :
12996 ac_cv_search_inet_aton=$ac_res
12998 rm -f core conftest.err conftest.$ac_objext \
12999 conftest$ac_exeext
13000 if ${ac_cv_search_inet_aton+:} false; then :
13001 break
13003 done
13004 if ${ac_cv_search_inet_aton+:} false; then :
13006 else
13007 ac_cv_search_inet_aton=no
13009 rm conftest.$ac_ext
13010 LIBS=$ac_func_search_save_LIBS
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13013 $as_echo "$ac_cv_search_inet_aton" >&6; }
13014 ac_res=$ac_cv_search_inet_aton
13015 if test "$ac_res" != no; then :
13016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13021 for ac_func in \
13022 getaddrinfo \
13023 getnameinfo \
13024 getnetbyname \
13025 getprotobyname \
13026 getprotobynumber \
13027 getservbyport \
13028 inet_network \
13029 inet_ntop \
13030 inet_pton \
13031 sendmsg \
13032 socketpair \
13034 do :
13035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13036 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13037 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13038 cat >>confdefs.h <<_ACEOF
13039 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13040 _ACEOF
13043 done
13046 LDAPLIBS=""
13048 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13049 then
13050 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13052 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13054 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13055 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 ac_check_lib_save_LIBS=$LIBS
13059 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13063 /* Override any GCC internal prototype to avoid an error.
13064 Use char because int might match the return type of a GCC
13065 builtin and then its argument prototype would still apply. */
13066 #ifdef __cplusplus
13067 extern "C"
13068 #endif
13069 char ldap_initialize ();
13071 main ()
13073 return ldap_initialize ();
13075 return 0;
13077 _ACEOF
13078 if ac_fn_c_try_link "$LINENO"; then :
13079 ac_cv_lib_ldap_r_ldap_initialize=yes
13080 else
13081 ac_cv_lib_ldap_r_ldap_initialize=no
13083 rm -f core conftest.err conftest.$ac_objext \
13084 conftest$ac_exeext conftest.$ac_ext
13085 LIBS=$ac_check_lib_save_LIBS
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13088 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13089 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13091 $as_echo_n "checking for ber_init in -llber... " >&6; }
13092 if ${ac_cv_lib_lber_ber_init+:} false; then :
13093 $as_echo_n "(cached) " >&6
13094 else
13095 ac_check_lib_save_LIBS=$LIBS
13096 LIBS="-llber $LIBPTHREAD $LIBS"
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13100 /* Override any GCC internal prototype to avoid an error.
13101 Use char because int might match the return type of a GCC
13102 builtin and then its argument prototype would still apply. */
13103 #ifdef __cplusplus
13104 extern "C"
13105 #endif
13106 char ber_init ();
13108 main ()
13110 return ber_init ();
13112 return 0;
13114 _ACEOF
13115 if ac_fn_c_try_link "$LINENO"; then :
13116 ac_cv_lib_lber_ber_init=yes
13117 else
13118 ac_cv_lib_lber_ber_init=no
13120 rm -f core conftest.err conftest.$ac_objext \
13121 conftest$ac_exeext conftest.$ac_ext
13122 LIBS=$ac_check_lib_save_LIBS
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13125 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13126 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13128 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13130 LDAPLIBS="-lldap_r -llber"
13137 ac_wine_check_funcs_save_LIBS="$LIBS"
13138 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13139 for ac_func in \
13140 ldap_count_references \
13141 ldap_first_reference \
13142 ldap_next_reference \
13143 ldap_parse_reference \
13144 ldap_parse_sort_control \
13145 ldap_parse_sortresponse_control \
13146 ldap_parse_vlv_control \
13147 ldap_parse_vlvresponse_control
13148 do :
13149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13150 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13151 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13152 cat >>confdefs.h <<_ACEOF
13153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13154 _ACEOF
13157 done
13159 LIBS="$ac_wine_check_funcs_save_LIBS"
13161 if test "x$LDAPLIBS" = "x"; then :
13162 case "x$with_ldap" in
13163 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13164 xno) ;;
13165 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13166 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13167 esac
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13171 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13172 if ${wine_cv_one_arg_mkdir+:} false; then :
13173 $as_echo_n "(cached) " >&6
13174 else
13175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h. */
13177 #include <sys/stat.h>
13179 main ()
13181 mkdir("foo");
13183 return 0;
13185 _ACEOF
13186 if ac_fn_c_try_compile "$LINENO"; then :
13187 wine_cv_one_arg_mkdir=yes
13188 else
13189 wine_cv_one_arg_mkdir=no
13191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13194 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13195 if test "$wine_cv_one_arg_mkdir" = "yes"
13196 then
13198 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13203 $as_echo_n "checking for sched_setaffinity... " >&6; }
13204 if ${wine_cv_have_sched_setaffinity+:} false; then :
13205 $as_echo_n "(cached) " >&6
13206 else
13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h. */
13209 #define _GNU_SOURCE
13210 #include <sched.h>
13212 main ()
13214 sched_setaffinity(0, 0, 0);
13216 return 0;
13218 _ACEOF
13219 if ac_fn_c_try_link "$LINENO"; then :
13220 wine_cv_have_sched_setaffinity=yes
13221 else
13222 wine_cv_have_sched_setaffinity=no
13224 rm -f core conftest.err conftest.$ac_objext \
13225 conftest$ac_exeext conftest.$ac_ext
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13228 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13229 if test "$wine_cv_have_sched_setaffinity" = "yes"
13230 then
13232 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13238 $as_echo_n "checking for inline... " >&6; }
13239 if ${ac_cv_c_inline+:} false; then :
13240 $as_echo_n "(cached) " >&6
13241 else
13242 ac_cv_c_inline=no
13243 for ac_kw in inline __inline__ __inline; do
13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h. */
13246 #ifndef __cplusplus
13247 typedef int foo_t;
13248 static $ac_kw foo_t static_foo () {return 0; }
13249 $ac_kw foo_t foo () {return 0; }
13250 #endif
13252 _ACEOF
13253 if ac_fn_c_try_compile "$LINENO"; then :
13254 ac_cv_c_inline=$ac_kw
13256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13257 test "$ac_cv_c_inline" != no && break
13258 done
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13262 $as_echo "$ac_cv_c_inline" >&6; }
13264 case $ac_cv_c_inline in
13265 inline | yes) ;;
13267 case $ac_cv_c_inline in
13268 no) ac_val=;;
13269 *) ac_val=$ac_cv_c_inline;;
13270 esac
13271 cat >>confdefs.h <<_ACEOF
13272 #ifndef __cplusplus
13273 #define inline $ac_val
13274 #endif
13275 _ACEOF
13277 esac
13279 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13280 if test "x$ac_cv_type_mode_t" = xyes; then :
13282 cat >>confdefs.h <<_ACEOF
13283 #define HAVE_MODE_T 1
13284 _ACEOF
13288 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13289 if test "x$ac_cv_type_off_t" = xyes; then :
13291 cat >>confdefs.h <<_ACEOF
13292 #define HAVE_OFF_T 1
13293 _ACEOF
13297 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13298 if test "x$ac_cv_type_pid_t" = xyes; then :
13300 cat >>confdefs.h <<_ACEOF
13301 #define HAVE_PID_T 1
13302 _ACEOF
13306 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13307 if test "x$ac_cv_type_size_t" = xyes; then :
13309 cat >>confdefs.h <<_ACEOF
13310 #define HAVE_SIZE_T 1
13311 _ACEOF
13315 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13316 if test "x$ac_cv_type_ssize_t" = xyes; then :
13318 cat >>confdefs.h <<_ACEOF
13319 #define HAVE_SSIZE_T 1
13320 _ACEOF
13324 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13325 if test "x$ac_cv_type_long_long" = xyes; then :
13327 cat >>confdefs.h <<_ACEOF
13328 #define HAVE_LONG_LONG 1
13329 _ACEOF
13333 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13334 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13336 cat >>confdefs.h <<_ACEOF
13337 #define HAVE_FSBLKCNT_T 1
13338 _ACEOF
13342 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13343 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13345 cat >>confdefs.h <<_ACEOF
13346 #define HAVE_FSFILCNT_T 1
13347 _ACEOF
13352 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13353 #include <signal.h>
13355 if test "x$ac_cv_type_sigset_t" = xyes; then :
13357 cat >>confdefs.h <<_ACEOF
13358 #define HAVE_SIGSET_T 1
13359 _ACEOF
13364 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13366 if test "x$ac_cv_type_request_sense" = xyes; then :
13368 cat >>confdefs.h <<_ACEOF
13369 #define HAVE_REQUEST_SENSE 1
13370 _ACEOF
13376 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13377 #ifdef HAVE_SYS_SOCKET_H
13378 #include <sys/socket.h>
13379 #endif
13380 #ifdef HAVE_SYS_SOCKETVAR_H
13381 #include <sys/socketvar.h>
13382 #endif
13383 #ifdef HAVE_NET_ROUTE_H
13384 #include <net/route.h>
13385 #endif
13386 #ifdef HAVE_NETINET_IN_H
13387 #include <netinet/in.h>
13388 #endif
13389 #ifdef HAVE_NETINET_IN_SYSTM_H
13390 #include <netinet/in_systm.h>
13391 #endif
13392 #ifdef HAVE_NETINET_IP_H
13393 #include <netinet/ip.h>
13394 #endif
13395 #ifdef HAVE_NETINET_IN_PCB_H
13396 #include <netinet/in_pcb.h>
13397 #endif
13399 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13401 cat >>confdefs.h <<_ACEOF
13402 #define HAVE_STRUCT_XINPGEN 1
13403 _ACEOF
13409 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13410 #include <linux/input.h>
13411 #endif
13413 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13415 cat >>confdefs.h <<_ACEOF
13416 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13417 _ACEOF
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13424 $as_echo_n "checking for sigaddset... " >&6; }
13425 if ${wine_cv_have_sigaddset+:} false; then :
13426 $as_echo_n "(cached) " >&6
13427 else
13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429 /* end confdefs.h. */
13430 #include <signal.h>
13432 main ()
13434 sigset_t set; sigaddset(&set,SIGTERM);
13436 return 0;
13438 _ACEOF
13439 if ac_fn_c_try_link "$LINENO"; then :
13440 wine_cv_have_sigaddset=yes
13441 else
13442 wine_cv_have_sigaddset=no
13444 rm -f core conftest.err conftest.$ac_objext \
13445 conftest$ac_exeext conftest.$ac_ext
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13448 $as_echo "$wine_cv_have_sigaddset" >&6; }
13449 if test "$wine_cv_have_sigaddset" = "yes"
13450 then
13452 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13458 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13459 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13460 $as_echo_n "(cached) " >&6
13461 else
13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463 /* end confdefs.h. */
13464 #include <netdb.h>
13466 main ()
13469 char *name=0;
13470 struct hostent he;
13471 struct hostent *result;
13472 char *buf=0;
13473 int bufsize=0;
13474 int errnr;
13475 char *addr=0;
13476 int addrlen=0;
13477 int addrtype=0;
13478 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13479 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13482 return 0;
13484 _ACEOF
13485 if ac_fn_c_try_link "$LINENO"; then :
13486 wine_cv_linux_gethostbyname_r_6=yes
13487 else
13488 wine_cv_linux_gethostbyname_r_6=no
13491 rm -f core conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13496 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13497 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13498 then
13500 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13504 if test "$ac_cv_header_linux_joystick_h" = "yes"
13505 then
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13507 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13508 if ${wine_cv_linux_joystick_22_api+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510 else
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13514 #include <sys/ioctl.h>
13515 #include <sys/types.h>
13516 #include <linux/joystick.h>
13518 struct js_event blub;
13519 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13520 #error "no 2.2 header"
13521 #endif
13524 main ()
13526 /*empty*/
13528 return 0;
13530 _ACEOF
13531 if ac_fn_c_try_compile "$LINENO"; then :
13532 wine_cv_linux_joystick_22_api=yes
13533 else
13534 wine_cv_linux_joystick_22_api=no
13536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13540 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13541 if test "$wine_cv_linux_joystick_22_api" = "yes"
13542 then
13544 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13550 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13551 #ifdef HAVE_SYS_PARAM_H
13552 # include <sys/param.h>
13553 #endif
13554 #ifdef HAVE_SYS_MOUNT_H
13555 # include <sys/mount.h>
13556 #endif
13557 #ifdef HAVE_SYS_VFS_H
13558 # include <sys/vfs.h>
13559 #endif
13560 #ifdef HAVE_SYS_STATFS_H
13561 # include <sys/statfs.h>
13562 #endif
13564 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13566 cat >>confdefs.h <<_ACEOF
13567 #define HAVE_STRUCT_STATFS_F_BFREE 1
13568 _ACEOF
13572 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13573 #ifdef HAVE_SYS_PARAM_H
13574 # include <sys/param.h>
13575 #endif
13576 #ifdef HAVE_SYS_MOUNT_H
13577 # include <sys/mount.h>
13578 #endif
13579 #ifdef HAVE_SYS_VFS_H
13580 # include <sys/vfs.h>
13581 #endif
13582 #ifdef HAVE_SYS_STATFS_H
13583 # include <sys/statfs.h>
13584 #endif
13586 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13588 cat >>confdefs.h <<_ACEOF
13589 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13590 _ACEOF
13594 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13595 #ifdef HAVE_SYS_PARAM_H
13596 # include <sys/param.h>
13597 #endif
13598 #ifdef HAVE_SYS_MOUNT_H
13599 # include <sys/mount.h>
13600 #endif
13601 #ifdef HAVE_SYS_VFS_H
13602 # include <sys/vfs.h>
13603 #endif
13604 #ifdef HAVE_SYS_STATFS_H
13605 # include <sys/statfs.h>
13606 #endif
13608 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13610 cat >>confdefs.h <<_ACEOF
13611 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13612 _ACEOF
13616 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13617 #ifdef HAVE_SYS_PARAM_H
13618 # include <sys/param.h>
13619 #endif
13620 #ifdef HAVE_SYS_MOUNT_H
13621 # include <sys/mount.h>
13622 #endif
13623 #ifdef HAVE_SYS_VFS_H
13624 # include <sys/vfs.h>
13625 #endif
13626 #ifdef HAVE_SYS_STATFS_H
13627 # include <sys/statfs.h>
13628 #endif
13630 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13632 cat >>confdefs.h <<_ACEOF
13633 #define HAVE_STRUCT_STATFS_F_FFREE 1
13634 _ACEOF
13638 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13639 #ifdef HAVE_SYS_PARAM_H
13640 # include <sys/param.h>
13641 #endif
13642 #ifdef HAVE_SYS_MOUNT_H
13643 # include <sys/mount.h>
13644 #endif
13645 #ifdef HAVE_SYS_VFS_H
13646 # include <sys/vfs.h>
13647 #endif
13648 #ifdef HAVE_SYS_STATFS_H
13649 # include <sys/statfs.h>
13650 #endif
13652 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13654 cat >>confdefs.h <<_ACEOF
13655 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13656 _ACEOF
13660 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13661 #ifdef HAVE_SYS_PARAM_H
13662 # include <sys/param.h>
13663 #endif
13664 #ifdef HAVE_SYS_MOUNT_H
13665 # include <sys/mount.h>
13666 #endif
13667 #ifdef HAVE_SYS_VFS_H
13668 # include <sys/vfs.h>
13669 #endif
13670 #ifdef HAVE_SYS_STATFS_H
13671 # include <sys/statfs.h>
13672 #endif
13674 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13676 cat >>confdefs.h <<_ACEOF
13677 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13678 _ACEOF
13684 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13685 #include <sys/statvfs.h>
13686 #endif
13688 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13690 cat >>confdefs.h <<_ACEOF
13691 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13692 _ACEOF
13698 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13699 #ifdef HAVE_SYS_SOCKET_H
13700 # include <sys/socket.h>
13701 #endif
13702 #ifdef HAVE_SYS_UN_H
13703 # include <sys/un.h>
13704 #endif
13706 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13708 cat >>confdefs.h <<_ACEOF
13709 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13710 _ACEOF
13714 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13715 #ifdef HAVE_SYS_SOCKET_H
13716 # include <sys/socket.h>
13717 #endif
13718 #ifdef HAVE_SYS_UN_H
13719 # include <sys/un.h>
13720 #endif
13722 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13724 cat >>confdefs.h <<_ACEOF
13725 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13726 _ACEOF
13730 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13731 #ifdef HAVE_SYS_SOCKET_H
13732 # include <sys/socket.h>
13733 #endif
13734 #ifdef HAVE_SYS_UN_H
13735 # include <sys/un.h>
13736 #endif
13738 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13740 cat >>confdefs.h <<_ACEOF
13741 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13742 _ACEOF
13748 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13749 #ifdef HAVE_SCSI_SG_H
13750 #include <scsi/sg.h>
13751 #endif
13753 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13755 cat >>confdefs.h <<_ACEOF
13756 #define HAVE_SCSIREQ_T_CMD 1
13757 _ACEOF
13761 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>
13762 #ifdef HAVE_SCSI_SG_H
13763 #include <scsi/sg.h>
13764 #endif
13766 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13768 cat >>confdefs.h <<_ACEOF
13769 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13770 _ACEOF
13776 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13778 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
13780 cat >>confdefs.h <<_ACEOF
13781 #define HAVE_SIGINFO_T_SI_FD 1
13782 _ACEOF
13788 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13789 #ifdef HAVE_SYS_MTIO_H
13790 #include <sys/mtio.h>
13791 #endif
13793 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
13795 cat >>confdefs.h <<_ACEOF
13796 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13797 _ACEOF
13801 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13802 #ifdef HAVE_SYS_MTIO_H
13803 #include <sys/mtio.h>
13804 #endif
13806 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
13808 cat >>confdefs.h <<_ACEOF
13809 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13810 _ACEOF
13814 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13815 #ifdef HAVE_SYS_MTIO_H
13816 #include <sys/mtio.h>
13817 #endif
13819 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
13821 cat >>confdefs.h <<_ACEOF
13822 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13823 _ACEOF
13829 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13830 #include <getopt.h>
13831 #endif
13833 if test "x$ac_cv_member_struct_option_name" = xyes; then :
13835 cat >>confdefs.h <<_ACEOF
13836 #define HAVE_STRUCT_OPTION_NAME 1
13837 _ACEOF
13843 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13844 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13846 cat >>confdefs.h <<_ACEOF
13847 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13848 _ACEOF
13852 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13853 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13855 cat >>confdefs.h <<_ACEOF
13856 #define HAVE_STRUCT_STAT_ST_MTIM 1
13857 _ACEOF
13861 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13862 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
13864 cat >>confdefs.h <<_ACEOF
13865 #define HAVE_STRUCT_STAT_ST_CTIM 1
13866 _ACEOF
13870 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13871 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
13873 cat >>confdefs.h <<_ACEOF
13874 #define HAVE_STRUCT_STAT_ST_ATIM 1
13875 _ACEOF
13881 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
13882 #include <sys/types.h>
13883 #endif
13884 #ifdef HAVE_NETINET_IN_H
13885 #include <netinet/in.h>
13886 #endif
13888 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13890 cat >>confdefs.h <<_ACEOF
13891 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13892 _ACEOF
13898 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13899 #include <sys/types.h>
13900 #endif
13901 #ifdef HAVE_NETINET_IN_H
13902 # include <netinet/in.h>
13903 #endif
13904 #ifdef HAVE_ARPA_NAMESER_H
13905 # include <arpa/nameser.h>
13906 #endif
13908 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
13910 cat >>confdefs.h <<_ACEOF
13911 #define HAVE_NS_MSG__MSG_PTR 1
13912 _ACEOF
13918 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13919 #include <sys/types.h>
13920 #endif
13921 #ifdef HAVE_ALIAS_H
13922 #include <alias.h>
13923 #endif
13924 #ifdef HAVE_SYS_SOCKET_H
13925 #include <sys/socket.h>
13926 #endif
13927 #ifdef HAVE_SYS_SOCKETVAR_H
13928 #include <sys/socketvar.h>
13929 #endif
13930 #ifdef HAVE_SYS_TIMEOUT_H
13931 #include <sys/timeout.h>
13932 #endif
13933 #ifdef HAVE_NETINET_IN_H
13934 #include <netinet/in.h>
13935 #endif
13936 #ifdef HAVE_NETINET_IN_SYSTM_H
13937 #include <netinet/in_systm.h>
13938 #endif
13939 #ifdef HAVE_NETINET_IP_H
13940 #include <netinet/ip.h>
13941 #endif
13942 #ifdef HAVE_NETINET_IP_VAR_H
13943 #include <netinet/ip_var.h>
13944 #endif
13945 #ifdef HAVE_NETINET_IP_ICMP_H
13946 #include <netinet/ip_icmp.h>
13947 #endif
13948 #ifdef HAVE_NETINET_ICMP_VAR
13949 #include <netinet/icmp_var.h>
13950 #endif
13952 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
13954 cat >>confdefs.h <<_ACEOF
13955 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13956 _ACEOF
13962 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13963 #include <sys/types.h>
13964 #endif
13965 #ifdef HAVE_NET_IF_H
13966 # include <net/if.h>
13967 #endif
13969 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
13971 cat >>confdefs.h <<_ACEOF
13972 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13973 _ACEOF
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
13980 $as_echo_n "checking for timezone variable... " >&6; }
13981 if ${ac_cv_have_timezone+:} false; then :
13982 $as_echo_n "(cached) " >&6
13983 else
13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h. */
13986 #include <time.h>
13988 main ()
13990 timezone = 1
13992 return 0;
13994 _ACEOF
13995 if ac_fn_c_try_link "$LINENO"; then :
13996 ac_cv_have_timezone="yes"
13997 else
13998 ac_cv_have_timezone="no"
14000 rm -f core conftest.err conftest.$ac_objext \
14001 conftest$ac_exeext conftest.$ac_ext
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14004 $as_echo "$ac_cv_have_timezone" >&6; }
14005 if test "$ac_cv_have_timezone" = "yes"
14006 then
14008 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14012 $as_echo_n "checking for daylight variable... " >&6; }
14013 if ${ac_cv_have_daylight+:} false; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h. */
14018 #include <time.h>
14020 main ()
14022 daylight = 1
14024 return 0;
14026 _ACEOF
14027 if ac_fn_c_try_link "$LINENO"; then :
14028 ac_cv_have_daylight="yes"
14029 else
14030 ac_cv_have_daylight="no"
14032 rm -f core conftest.err conftest.$ac_objext \
14033 conftest$ac_exeext conftest.$ac_ext
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14036 $as_echo "$ac_cv_have_daylight" >&6; }
14037 if test "$ac_cv_have_daylight" = "yes"
14038 then
14040 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14044 ac_save_LIBS="$LIBS"
14045 LIBS="$LIBS -lm"
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14047 $as_echo_n "checking for isinf... " >&6; }
14048 if ${ac_cv_have_isinf+:} false; then :
14049 $as_echo_n "(cached) " >&6
14050 else
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14053 #include <math.h>
14055 main ()
14057 float f = 0.0; return isinf(f)
14059 return 0;
14061 _ACEOF
14062 if ac_fn_c_try_link "$LINENO"; then :
14063 ac_cv_have_isinf="yes"
14064 else
14065 ac_cv_have_isinf="no"
14067 rm -f core conftest.err conftest.$ac_objext \
14068 conftest$ac_exeext conftest.$ac_ext
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14071 $as_echo "$ac_cv_have_isinf" >&6; }
14072 if test "$ac_cv_have_isinf" = "yes"
14073 then
14075 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14080 $as_echo_n "checking for isnan... " >&6; }
14081 if ${ac_cv_have_isnan+:} false; then :
14082 $as_echo_n "(cached) " >&6
14083 else
14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14086 #include <math.h>
14088 main ()
14090 float f = 0.0; return isnan(f)
14092 return 0;
14094 _ACEOF
14095 if ac_fn_c_try_link "$LINENO"; then :
14096 ac_cv_have_isnan="yes"
14097 else
14098 ac_cv_have_isnan="no"
14100 rm -f core conftest.err conftest.$ac_objext \
14101 conftest$ac_exeext conftest.$ac_ext
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14104 $as_echo "$ac_cv_have_isnan" >&6; }
14105 if test "$ac_cv_have_isnan" = "yes"
14106 then
14108 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14111 LIBS="$ac_save_LIBS"
14114 case $host_cpu in
14115 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14116 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14117 if ${ac_cv_cpp_def___i386__+:} false; then :
14118 $as_echo_n "(cached) " >&6
14119 else
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14122 #ifndef __i386__
14124 #endif
14125 _ACEOF
14126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14127 $EGREP "yes" >/dev/null 2>&1; then :
14128 ac_cv_cpp_def___i386__=yes
14129 else
14130 ac_cv_cpp_def___i386__=no
14132 rm -f conftest*
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14136 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14137 if test $ac_cv_cpp_def___i386__ = yes; then :
14138 CFLAGS="$CFLAGS -D__i386__"
14139 LINTFLAGS="$LINTFLAGS -D__i386__"
14140 fi ;;
14141 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14142 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14143 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14144 $as_echo_n "(cached) " >&6
14145 else
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148 #ifndef __x86_64__
14150 #endif
14151 _ACEOF
14152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14153 $EGREP "yes" >/dev/null 2>&1; then :
14154 ac_cv_cpp_def___x86_64__=yes
14155 else
14156 ac_cv_cpp_def___x86_64__=no
14158 rm -f conftest*
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14162 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14163 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14164 CFLAGS="$CFLAGS -D__x86_64__"
14165 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14166 fi ;;
14167 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14168 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14169 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14170 $as_echo_n "(cached) " >&6
14171 else
14172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14173 /* end confdefs.h. */
14174 #ifndef __sparc64__
14176 #endif
14177 _ACEOF
14178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14179 $EGREP "yes" >/dev/null 2>&1; then :
14180 ac_cv_cpp_def___sparc64__=yes
14181 else
14182 ac_cv_cpp_def___sparc64__=no
14184 rm -f conftest*
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14188 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14189 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14190 CFLAGS="$CFLAGS -D__sparc64__"
14191 LINTFLAGS="$LINTFLAGS -D__sparc64__"
14192 fi ;;
14193 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14194 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14195 if ${ac_cv_cpp_def___sparc__+:} false; then :
14196 $as_echo_n "(cached) " >&6
14197 else
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200 #ifndef __sparc__
14202 #endif
14203 _ACEOF
14204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14205 $EGREP "yes" >/dev/null 2>&1; then :
14206 ac_cv_cpp_def___sparc__=yes
14207 else
14208 ac_cv_cpp_def___sparc__=no
14210 rm -f conftest*
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14214 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14215 if test $ac_cv_cpp_def___sparc__ = yes; then :
14216 CFLAGS="$CFLAGS -D__sparc__"
14217 LINTFLAGS="$LINTFLAGS -D__sparc__"
14218 fi ;;
14219 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14220 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14221 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 #ifndef __powerpc64__
14228 #endif
14229 _ACEOF
14230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14231 $EGREP "yes" >/dev/null 2>&1; then :
14232 ac_cv_cpp_def___powerpc64__=yes
14233 else
14234 ac_cv_cpp_def___powerpc64__=no
14236 rm -f conftest*
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14240 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14241 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14242 CFLAGS="$CFLAGS -D__powerpc64__"
14243 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14244 fi ;;
14245 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14246 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14247 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14248 $as_echo_n "(cached) " >&6
14249 else
14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h. */
14252 #ifndef __powerpc__
14254 #endif
14255 _ACEOF
14256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14257 $EGREP "yes" >/dev/null 2>&1; then :
14258 ac_cv_cpp_def___powerpc__=yes
14259 else
14260 ac_cv_cpp_def___powerpc__=no
14262 rm -f conftest*
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14266 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14267 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14268 CFLAGS="$CFLAGS -D__powerpc__"
14269 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14270 fi ;;
14271 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14272 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14273 if ${ac_cv_cpp_def___arm__+:} false; then :
14274 $as_echo_n "(cached) " >&6
14275 else
14276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277 /* end confdefs.h. */
14278 #ifndef __arm__
14280 #endif
14281 _ACEOF
14282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14283 $EGREP "yes" >/dev/null 2>&1; then :
14284 ac_cv_cpp_def___arm__=yes
14285 else
14286 ac_cv_cpp_def___arm__=no
14288 rm -f conftest*
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14292 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14293 if test $ac_cv_cpp_def___arm__ = yes; then :
14294 CFLAGS="$CFLAGS -D__arm__"
14295 LINTFLAGS="$LINTFLAGS -D__arm__"
14296 fi ;;
14297 esac
14299 case $host_vendor in
14300 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14301 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14302 if ${ac_cv_cpp_def___sun__+:} false; then :
14303 $as_echo_n "(cached) " >&6
14304 else
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14307 #ifndef __sun__
14309 #endif
14310 _ACEOF
14311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14312 $EGREP "yes" >/dev/null 2>&1; then :
14313 ac_cv_cpp_def___sun__=yes
14314 else
14315 ac_cv_cpp_def___sun__=no
14317 rm -f conftest*
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14321 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14322 if test $ac_cv_cpp_def___sun__ = yes; then :
14323 CFLAGS="$CFLAGS -D__sun__"
14324 LINTFLAGS="$LINTFLAGS -D__sun__"
14325 fi ;;
14326 esac
14332 ac_config_commands="$ac_config_commands include/stamp-h"
14335 ALL_MAKEFILE_DEPENDS="
14336 # Rules automatically generated by configure
14338 .INIT: Makefile
14339 .MAKEFILEDEPS:
14340 all: Makefile
14341 Makefile: Makefile.in Make.vars.in Make.rules config.status
14342 @./config.status Make.tmp Makefile"
14344 ALL_POT_FILES=""
14345 ALL_TEST_RESOURCES=""
14348 wine_fn_append_file ()
14350 as_fn_append $1 " \\$as_nl $2"
14353 wine_fn_append_rule ()
14355 as_fn_append $1 "$as_nl$2"
14358 wine_fn_has_flag ()
14360 expr ",$2," : ".*,$1,.*" >/dev/null
14363 wine_fn_all_dir_rules ()
14365 ac_dir=$1
14366 ac_alldeps=$2
14367 ac_makedep="\$(MAKEDEP)"
14368 ac_input=Make.vars.in:$ac_dir/Makefile.in
14369 if test $ac_dir != tools
14370 then
14371 ac_alldeps="$2 $ac_makedep"
14373 case $2 in
14374 *.in) ac_input=$ac_input:$2 ;;
14375 *) ac_makedep="$2 $ac_makedep" ;;
14376 esac
14378 wine_fn_append_file ALL_DIRS $ac_dir
14379 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14380 "__clean__: $ac_dir/__clean__
14381 .PHONY: $ac_dir/__clean__
14382 $ac_dir/__clean__: $ac_dir/Makefile
14383 @cd $ac_dir && \$(MAKE) clean
14384 \$(RM) $ac_dir/Makefile
14385 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14386 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14387 depend: $ac_dir/__depend__
14388 .PHONY: $ac_dir/__depend__
14389 $ac_dir/__depend__: $ac_makedep dummy
14390 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14393 wine_fn_pot_rules ()
14395 ac_dir=$1
14396 ac_flags=$2
14398 test "x$with_gettextpo" = xyes || return
14400 if wine_fn_has_flag mc $ac_flags
14401 then
14402 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14403 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14404 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
14405 @cd $ac_dir && \$(MAKE) msg.pot
14406 $ac_dir/msg.pot: tools/wmc include"
14408 if wine_fn_has_flag po $ac_flags
14409 then
14410 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14411 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14412 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14413 @cd $ac_dir && \$(MAKE) rsrc.pot
14414 $ac_dir/rsrc.pot: tools/wrc include"
14418 wine_fn_config_makefile ()
14420 ac_dir=$1
14421 ac_enable=$2
14422 ac_flags=$3
14423 ac_rules=$4
14424 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14425 return 0
14428 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
14429 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14430 "all: $ac_dir
14431 .PHONY: $ac_dir
14432 $ac_dir: $ac_dir/Makefile dummy
14433 @cd $ac_dir && \$(MAKE)"
14435 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14437 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14438 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14439 $ac_dir/__install__:: $ac_dir
14440 @cd $ac_dir && \$(MAKE) install
14441 $ac_dir/__uninstall__:: $ac_dir/Makefile
14442 @cd $ac_dir && \$(MAKE) uninstall
14443 install:: $ac_dir/__install__
14444 __uninstall__: $ac_dir/__uninstall__"
14446 if wine_fn_has_flag install-lib $ac_flags
14447 then
14448 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14449 ".PHONY: $ac_dir/__install-lib__
14450 $ac_dir/__install-lib__:: $ac_dir
14451 @cd $ac_dir && \$(MAKE) install-lib
14452 install-lib:: $ac_dir/__install-lib__"
14455 if wine_fn_has_flag install-dev $ac_flags
14456 then
14457 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14458 ".PHONY: $ac_dir/__install-dev
14459 $ac_dir/__install-dev__:: $ac_dir
14460 @cd $ac_dir && \$(MAKE) install-dev
14461 install-dev:: $ac_dir/__install-dev__"
14465 wine_fn_config_lib ()
14467 ac_name=$1
14468 ac_flags=$2
14469 ac_dir=dlls/$ac_name
14470 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14472 if wine_fn_has_flag install-dev $ac_flags
14473 then :
14474 else
14475 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14476 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14477 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14478 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14479 $ac_dir/__uninstall__::
14480 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14481 install install-dev:: $ac_dir/__install__
14482 __uninstall__: $ac_dir/__uninstall__"
14485 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14486 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14489 wine_fn_config_dll ()
14491 ac_name=$1
14492 ac_dir=dlls/$ac_name
14493 ac_enable=$2
14494 ac_flags=$3
14495 ac_implib=${4:-$ac_name}
14496 ac_file=$ac_dir/lib$ac_implib
14497 ac_dll=$ac_name
14498 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14499 ac_implibflags=""
14501 case $ac_name in
14502 *16) ac_implibflags=" -m16" ;;
14503 *.*) ;;
14504 *) ac_dll=$ac_dll.dll ;;
14505 esac
14507 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
14509 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14510 test "$ac_enable" != enable_win16 || return 0
14511 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14512 else
14513 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14514 "$ac_dir: __builddeps__
14515 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14516 @cd $ac_dir && \$(MAKE) \$@"
14518 if wine_fn_has_flag install-lib $ac_flags
14519 then :
14520 else
14521 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14522 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14523 install install-lib:: $ac_dir/__install-lib__
14524 __uninstall__: $ac_dir/__uninstall__"
14525 if test -n "$DLLEXT"
14526 then
14527 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14528 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14529 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14530 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14531 $ac_dir/__uninstall__::
14532 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14533 else
14534 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14535 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14536 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14537 $ac_dir/__uninstall__::
14538 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14542 wine_fn_pot_rules $ac_dir $ac_flags
14545 if wine_fn_has_flag staticimplib $ac_flags
14546 then
14547 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14548 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14549 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14550 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14551 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14552 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14553 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14554 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14555 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14556 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14557 $ac_dir/__uninstall__::
14558 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14559 install install-dev:: $ac_dir/__install-dev__
14560 __uninstall__: $ac_dir/__uninstall__"
14562 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14563 then
14564 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14565 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14566 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14567 $ac_dir/__uninstall__::
14568 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14571 if test "x$CROSSTEST_DISABLE" = x
14572 then
14573 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14574 "__builddeps__: $ac_file.cross.a
14575 $ac_file.cross.a: $ac_dir/Makefile dummy
14576 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14579 elif wine_fn_has_flag implib $ac_flags
14580 then
14581 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14582 "__builddeps__: $ac_file.$IMPLIBEXT
14583 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14584 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14585 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14586 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14587 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14588 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14589 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14590 $ac_dir/__uninstall__::
14591 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14592 install install-dev:: $ac_dir/__install-dev__
14593 __uninstall__: $ac_dir/__uninstall__"
14594 if test "x$CROSSTEST_DISABLE" = x
14595 then
14596 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14597 "__builddeps__: $ac_file.cross.a
14598 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14599 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14602 if test "$ac_name" != "$ac_implib"
14603 then
14604 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14605 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14606 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14607 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14608 clean::
14609 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14610 if test "x$CROSSTEST_DISABLE" = x
14611 then
14612 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14613 "__builddeps__: dlls/lib$ac_implib.cross.a
14614 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14615 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14621 wine_fn_config_program ()
14623 ac_name=$1
14624 ac_dir=programs/$ac_name
14625 ac_enable=$2
14626 ac_flags=$3
14627 ac_program=$ac_name
14629 case $ac_name in
14630 *.*) ;;
14631 *) ac_program=$ac_program.exe ;;
14632 esac
14634 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
14636 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14638 else
14639 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14640 "$ac_dir: __builddeps__"
14642 wine_fn_pot_rules $ac_dir $ac_flags
14644 wine_fn_has_flag install $ac_flags || return
14645 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14646 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14647 install install-lib:: $ac_dir/__install__
14648 __uninstall__: $ac_dir/__uninstall__"
14650 if test -n "$DLLEXT"
14651 then
14652 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14653 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14654 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14655 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14656 $ac_dir/__uninstall__::
14657 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14659 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14660 then
14661 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14662 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
14663 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14664 $ac_dir/__uninstall__::
14665 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14667 else
14668 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14669 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14670 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14671 $ac_dir/__uninstall__::
14672 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
14675 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14676 then
14677 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14678 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14679 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14680 $ac_dir/__uninstall__::
14681 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14686 wine_fn_config_test ()
14688 ac_dir=$1
14689 ac_name=$2
14690 ac_flags=$3
14691 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14692 wine_fn_all_dir_rules $ac_dir Maketest.rules
14694 if test "x$enable_tests" = xno; then :
14696 else
14697 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14698 "all: $ac_dir
14699 .PHONY: $ac_dir
14700 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14701 @cd $ac_dir && \$(MAKE)
14702 programs/winetest: $ac_dir
14703 check test: $ac_dir/__test__
14704 .PHONY: $ac_dir/__test__
14705 $ac_dir/__test__: dummy
14706 @cd $ac_dir && \$(MAKE) test
14707 testclean::
14708 \$(RM) $ac_dir/*.ok"
14710 if test "x$CROSSTEST_DISABLE" = x
14711 then
14712 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14713 "crosstest: $ac_dir/__crosstest__
14714 .PHONY: $ac_dir/__crosstest__
14715 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14716 @cd $ac_dir && \$(MAKE) crosstest"
14721 wine_fn_config_tool ()
14723 ac_dir=$1
14724 ac_flags=$2
14725 if test "x$enable_tools" = xno; then :
14726 return 0
14729 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
14731 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14732 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
14733 case $ac_dir in
14734 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14735 esac
14738 wine_fn_config_makerules ()
14740 ac_rules=$1
14741 ac_deps=$2
14742 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14743 "$ac_rules: $ac_rules.in $ac_deps config.status
14744 @./config.status $ac_rules
14745 distclean::
14746 \$(RM) $ac_rules"
14749 wine_fn_config_symlink ()
14751 ac_link=$1
14752 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14753 "$ac_link:
14754 @./config.status $ac_link
14755 distclean::
14756 \$(RM) $ac_link"
14759 if test "x$CROSSTEST_DISABLE" != x
14760 then
14761 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14762 "crosstest:
14763 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14765 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14766 wine_fn_config_symlink dlls/shell32/AUTHORS
14767 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14768 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14769 if test "x$enable_fonts" != xno; then
14770 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14771 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14773 if test "x$enable_fonts" != xno; then
14774 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14775 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14777 if test "x$enable_fonts" != xno; then
14778 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14779 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14781 if test "x$enable_fonts" != xno; then
14782 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14783 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14785 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
14786 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
14787 if test "x$enable_tools" != xno; then
14788 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14789 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14791 ac_config_links="$ac_config_links wine:tools/winewrapper"
14792 wine_fn_config_symlink wine
14793 if test "x$enable_win64" != xno; then
14794 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14795 wine_fn_config_symlink wine64
14798 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14800 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14802 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14804 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14806 ac_config_commands="$ac_config_commands dlls/user32/resources"
14808 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14810 ac_config_commands="$ac_config_commands include/wine"
14813 wine_fn_config_makerules Make.rules
14814 MAKE_RULES=Make.rules
14815 ac_config_files="$ac_config_files Make.rules"
14817 wine_fn_config_makerules Maketest.rules Make.rules
14818 MAKE_TEST_RULES=Maketest.rules
14819 ac_config_files="$ac_config_files Maketest.rules"
14821 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14822 MAKE_DLL_RULES=dlls/Makedll.rules
14823 ac_config_files="$ac_config_files dlls/Makedll.rules"
14825 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14826 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14827 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14829 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14830 MAKE_PROG_RULES=programs/Makeprog.rules
14831 ac_config_files="$ac_config_files programs/Makeprog.rules"
14834 wine_fn_config_dll acledit enable_acledit
14835 wine_fn_config_dll aclui enable_aclui implib
14836 wine_fn_config_dll activeds enable_activeds implib
14837 wine_fn_config_dll actxprxy enable_actxprxy
14838 wine_fn_config_lib adsiid
14839 wine_fn_config_dll advapi32 enable_advapi32 implib
14840 wine_fn_config_test dlls/advapi32/tests advapi32_test
14841 wine_fn_config_dll advpack enable_advpack implib
14842 wine_fn_config_test dlls/advpack/tests advpack_test
14843 wine_fn_config_dll amstream enable_amstream
14844 wine_fn_config_test dlls/amstream/tests amstream_test
14845 wine_fn_config_dll apphelp enable_apphelp
14846 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14847 wine_fn_config_dll atl enable_atl implib
14848 wine_fn_config_test dlls/atl/tests atl_test
14849 wine_fn_config_dll authz enable_authz
14850 wine_fn_config_dll avicap32 enable_avicap32 implib
14851 wine_fn_config_dll avifil32 enable_avifil32 implib,po
14852 wine_fn_config_test dlls/avifil32/tests avifil32_test
14853 wine_fn_config_dll avifile.dll16 enable_win16
14854 wine_fn_config_dll avrt enable_avrt implib
14855 wine_fn_config_dll bcrypt enable_bcrypt
14856 wine_fn_config_dll browseui enable_browseui po
14857 wine_fn_config_test dlls/browseui/tests browseui_test
14858 wine_fn_config_dll cabinet enable_cabinet implib
14859 wine_fn_config_test dlls/cabinet/tests cabinet_test
14860 wine_fn_config_dll capi2032 enable_capi2032 implib
14861 wine_fn_config_dll cards enable_cards implib
14862 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14863 wine_fn_config_dll clusapi enable_clusapi implib
14864 wine_fn_config_dll comcat enable_comcat
14865 wine_fn_config_test dlls/comcat/tests comcat_test
14866 wine_fn_config_dll comctl32 enable_comctl32 implib,po
14867 wine_fn_config_test dlls/comctl32/tests comctl32_test
14868 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
14869 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14870 wine_fn_config_dll comm.drv16 enable_win16
14871 wine_fn_config_dll commdlg.dll16 enable_win16
14872 wine_fn_config_dll compobj.dll16 enable_win16
14873 wine_fn_config_dll compstui enable_compstui implib
14874 wine_fn_config_dll credui enable_credui implib,po
14875 wine_fn_config_test dlls/credui/tests credui_test
14876 wine_fn_config_dll crtdll enable_crtdll implib
14877 wine_fn_config_dll crypt32 enable_crypt32 implib,po
14878 wine_fn_config_test dlls/crypt32/tests crypt32_test
14879 wine_fn_config_dll cryptdlg enable_cryptdlg po
14880 wine_fn_config_dll cryptdll enable_cryptdll implib
14881 wine_fn_config_dll cryptnet enable_cryptnet implib
14882 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14883 wine_fn_config_dll cryptui enable_cryptui implib,po
14884 wine_fn_config_test dlls/cryptui/tests cryptui_test
14885 wine_fn_config_dll ctapi32 enable_ctapi32
14886 wine_fn_config_dll ctl3d.dll16 enable_win16
14887 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14888 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14889 wine_fn_config_dll d3d10 enable_d3d10 implib
14890 wine_fn_config_test dlls/d3d10/tests d3d10_test
14891 wine_fn_config_dll d3d10core enable_d3d10core implib
14892 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14893 wine_fn_config_dll d3d8 enable_d3d8 implib
14894 wine_fn_config_test dlls/d3d8/tests d3d8_test
14895 wine_fn_config_dll d3d9 enable_d3d9 implib
14896 wine_fn_config_test dlls/d3d9/tests d3d9_test
14897 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14898 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14899 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14900 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14901 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14902 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14903 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14904 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14905 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14906 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14907 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14908 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14909 wine_fn_config_dll d3dim enable_d3dim implib
14910 wine_fn_config_dll d3drm enable_d3drm implib
14911 wine_fn_config_test dlls/d3drm/tests d3drm_test
14912 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14913 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14914 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14915 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14916 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14917 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14918 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14919 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14920 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14921 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14922 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14923 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14924 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14925 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14926 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14927 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14928 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14929 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14930 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14931 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14932 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14933 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14934 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14935 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14936 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14937 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14938 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14939 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14940 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14941 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14942 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14943 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14944 wine_fn_config_dll d3dxof enable_d3dxof implib
14945 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14946 wine_fn_config_dll dbgeng enable_dbgeng implib
14947 wine_fn_config_dll dbghelp enable_dbghelp implib
14948 wine_fn_config_dll dciman32 enable_dciman32 implib
14949 wine_fn_config_dll ddeml.dll16 enable_win16
14950 wine_fn_config_dll ddraw enable_ddraw implib
14951 wine_fn_config_test dlls/ddraw/tests ddraw_test
14952 wine_fn_config_dll ddrawex enable_ddrawex
14953 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14954 wine_fn_config_dll devenum enable_devenum po
14955 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
14956 wine_fn_config_test dlls/dinput/tests dinput_test
14957 wine_fn_config_dll dinput8 enable_dinput8 implib
14958 wine_fn_config_test dlls/dinput8/tests dinput8_test
14959 wine_fn_config_dll dispdib.dll16 enable_win16
14960 wine_fn_config_dll dispex enable_dispex
14961 wine_fn_config_test dlls/dispex/tests dispex_test
14962 wine_fn_config_dll display.drv16 enable_win16
14963 wine_fn_config_dll dmband enable_dmband
14964 wine_fn_config_dll dmcompos enable_dmcompos
14965 wine_fn_config_dll dmime enable_dmime
14966 wine_fn_config_test dlls/dmime/tests dmime_test
14967 wine_fn_config_dll dmloader enable_dmloader
14968 wine_fn_config_test dlls/dmloader/tests dmloader_test
14969 wine_fn_config_dll dmscript enable_dmscript
14970 wine_fn_config_dll dmstyle enable_dmstyle
14971 wine_fn_config_dll dmsynth enable_dmsynth
14972 wine_fn_config_dll dmusic enable_dmusic
14973 wine_fn_config_dll dmusic32 enable_dmusic32 implib
14974 wine_fn_config_dll dnsapi enable_dnsapi implib
14975 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14976 wine_fn_config_dll dplay enable_dplay implib
14977 wine_fn_config_dll dplayx enable_dplayx implib
14978 wine_fn_config_test dlls/dplayx/tests dplayx_test
14979 wine_fn_config_dll dpnaddr enable_dpnaddr
14980 wine_fn_config_dll dpnet enable_dpnet implib
14981 wine_fn_config_test dlls/dpnet/tests dpnet_test
14982 wine_fn_config_dll dpnhpast enable_dpnhpast
14983 wine_fn_config_dll dpnlobby enable_dpnlobby
14984 wine_fn_config_dll dpwsockx enable_dpwsockx
14985 wine_fn_config_dll drmclien enable_drmclien
14986 wine_fn_config_dll dsound enable_dsound implib
14987 wine_fn_config_test dlls/dsound/tests dsound_test
14988 wine_fn_config_dll dssenh enable_dssenh
14989 wine_fn_config_dll dswave enable_dswave
14990 wine_fn_config_dll dwmapi enable_dwmapi implib
14991 wine_fn_config_dll dxdiagn enable_dxdiagn po
14992 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14993 wine_fn_config_lib dxerr8
14994 wine_fn_config_lib dxerr9
14995 wine_fn_config_dll dxgi enable_dxgi implib
14996 wine_fn_config_test dlls/dxgi/tests dxgi_test
14997 wine_fn_config_lib dxguid
14998 wine_fn_config_dll explorerframe enable_explorerframe
14999 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15000 wine_fn_config_dll faultrep enable_faultrep implib
15001 wine_fn_config_test dlls/faultrep/tests faultrep_test
15002 wine_fn_config_dll fltlib enable_fltlib
15003 wine_fn_config_dll fusion enable_fusion
15004 wine_fn_config_test dlls/fusion/tests fusion_test
15005 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15006 wine_fn_config_dll gameux enable_gameux
15007 wine_fn_config_test dlls/gameux/tests gameux_test
15008 wine_fn_config_dll gdi.exe16 enable_win16
15009 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15010 wine_fn_config_test dlls/gdi32/tests gdi32_test
15011 wine_fn_config_dll gdiplus enable_gdiplus implib
15012 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15013 wine_fn_config_dll glu32 enable_glu32 implib
15014 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15015 wine_fn_config_dll gpkcsp enable_gpkcsp
15016 wine_fn_config_dll hal enable_hal
15017 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15018 wine_fn_config_dll hid enable_hid implib
15019 wine_fn_config_dll hlink enable_hlink implib
15020 wine_fn_config_test dlls/hlink/tests hlink_test
15021 wine_fn_config_dll hnetcfg enable_hnetcfg
15022 wine_fn_config_dll httpapi enable_httpapi
15023 wine_fn_config_dll iccvid enable_iccvid po
15024 wine_fn_config_dll icmp enable_icmp
15025 wine_fn_config_dll ieframe enable_ieframe implib,po
15026 wine_fn_config_test dlls/ieframe/tests ieframe_test
15027 wine_fn_config_dll ifsmgr.vxd enable_win16
15028 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15029 wine_fn_config_dll imagehlp enable_imagehlp implib
15030 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15031 wine_fn_config_dll imm.dll16 enable_win16
15032 wine_fn_config_dll imm32 enable_imm32 implib
15033 wine_fn_config_test dlls/imm32/tests imm32_test
15034 wine_fn_config_dll inetcomm enable_inetcomm implib
15035 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15036 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15037 wine_fn_config_dll inetmib1 enable_inetmib1
15038 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15039 wine_fn_config_dll infosoft enable_infosoft
15040 wine_fn_config_test dlls/infosoft/tests infosoft_test
15041 wine_fn_config_dll initpki enable_initpki
15042 wine_fn_config_dll inkobj enable_inkobj
15043 wine_fn_config_dll inseng enable_inseng
15044 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15045 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15046 wine_fn_config_dll itircl enable_itircl
15047 wine_fn_config_dll itss enable_itss
15048 wine_fn_config_test dlls/itss/tests itss_test
15049 wine_fn_config_dll jscript enable_jscript po
15050 wine_fn_config_test dlls/jscript/tests jscript_test
15051 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15052 wine_fn_config_test dlls/kernel32/tests kernel32_test
15053 wine_fn_config_dll keyboard.drv16 enable_win16
15054 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15055 wine_fn_config_dll ktmw32 enable_ktmw32
15056 wine_fn_config_dll loadperf enable_loadperf implib
15057 wine_fn_config_dll localspl enable_localspl po
15058 wine_fn_config_test dlls/localspl/tests localspl_test
15059 wine_fn_config_dll localui enable_localui po
15060 wine_fn_config_test dlls/localui/tests localui_test
15061 wine_fn_config_dll lz32 enable_lz32 implib
15062 wine_fn_config_test dlls/lz32/tests lz32_test
15063 wine_fn_config_dll lzexpand.dll16 enable_win16
15064 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15065 wine_fn_config_test dlls/mapi32/tests mapi32_test
15066 wine_fn_config_dll mapistub enable_mapistub
15067 wine_fn_config_dll mciavi32 enable_mciavi32
15068 wine_fn_config_dll mcicda enable_mcicda
15069 wine_fn_config_dll mciqtz32 enable_mciqtz32
15070 wine_fn_config_dll mciseq enable_mciseq
15071 wine_fn_config_dll mciwave enable_mciwave
15072 wine_fn_config_dll midimap enable_midimap
15073 wine_fn_config_dll mlang enable_mlang implib
15074 wine_fn_config_test dlls/mlang/tests mlang_test
15075 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15076 wine_fn_config_dll mmdevapi enable_mmdevapi
15077 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15078 wine_fn_config_dll mmdevldr.vxd enable_win16
15079 wine_fn_config_dll mmsystem.dll16 enable_win16
15080 wine_fn_config_dll monodebg.vxd enable_win16
15081 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15082 wine_fn_config_dll mouse.drv16 enable_win16
15083 wine_fn_config_dll mpr enable_mpr implib,po
15084 wine_fn_config_dll mprapi enable_mprapi implib
15085 wine_fn_config_dll msacm.dll16 enable_win16
15086 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15087 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15088 wine_fn_config_test dlls/msacm32/tests msacm32_test
15089 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15090 wine_fn_config_dll mscat32 enable_mscat32
15091 wine_fn_config_dll mscms enable_mscms implib
15092 wine_fn_config_test dlls/mscms/tests mscms_test
15093 wine_fn_config_dll mscoree enable_mscoree
15094 wine_fn_config_test dlls/mscoree/tests mscoree_test
15095 wine_fn_config_dll msctf enable_msctf
15096 wine_fn_config_test dlls/msctf/tests msctf_test
15097 wine_fn_config_dll msdaps enable_msdaps
15098 wine_fn_config_dll msdmo enable_msdmo implib
15099 wine_fn_config_dll msftedit enable_msftedit
15100 wine_fn_config_dll msg711.acm enable_msg711_acm
15101 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15102 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15103 wine_fn_config_dll mshtml enable_mshtml implib,po
15104 wine_fn_config_test dlls/mshtml/tests mshtml_test
15105 wine_fn_config_dll msi enable_msi implib,po
15106 wine_fn_config_test dlls/msi/tests msi_test
15107 wine_fn_config_dll msimg32 enable_msimg32 implib
15108 wine_fn_config_dll msimsg enable_msimsg
15109 wine_fn_config_dll msimtf enable_msimtf
15110 wine_fn_config_dll msisip enable_msisip
15111 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15112 wine_fn_config_dll msnet32 enable_msnet32
15113 wine_fn_config_dll mspatcha enable_mspatcha
15114 wine_fn_config_dll msrle32 enable_msrle32 po
15115 wine_fn_config_dll mssign32 enable_mssign32
15116 wine_fn_config_dll mssip32 enable_mssip32
15117 wine_fn_config_dll mstask enable_mstask
15118 wine_fn_config_test dlls/mstask/tests mstask_test
15119 wine_fn_config_dll msvcirt enable_msvcirt
15120 wine_fn_config_dll msvcp100 enable_msvcp100
15121 wine_fn_config_dll msvcp60 enable_msvcp60
15122 wine_fn_config_dll msvcp70 enable_msvcp70
15123 wine_fn_config_dll msvcp71 enable_msvcp71
15124 wine_fn_config_dll msvcp80 enable_msvcp80
15125 wine_fn_config_dll msvcp90 enable_msvcp90
15126 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15127 wine_fn_config_dll msvcr100 enable_msvcr100
15128 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15129 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15130 wine_fn_config_dll msvcr80 enable_msvcr80
15131 wine_fn_config_dll msvcr90 enable_msvcr90
15132 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15133 wine_fn_config_dll msvcrt enable_msvcrt implib
15134 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15135 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15136 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15137 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15138 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15139 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15140 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15141 wine_fn_config_dll msvidc32 enable_msvidc32 po
15142 wine_fn_config_dll msvideo.dll16 enable_win16
15143 wine_fn_config_dll mswsock enable_mswsock implib
15144 wine_fn_config_dll msxml enable_msxml
15145 wine_fn_config_dll msxml2 enable_msxml2
15146 wine_fn_config_dll msxml3 enable_msxml3
15147 wine_fn_config_test dlls/msxml3/tests msxml3_test
15148 wine_fn_config_dll msxml4 enable_msxml4
15149 wine_fn_config_dll msxml6 enable_msxml6
15150 wine_fn_config_dll nddeapi enable_nddeapi implib
15151 wine_fn_config_dll netapi32 enable_netapi32 implib
15152 wine_fn_config_test dlls/netapi32/tests netapi32_test
15153 wine_fn_config_dll newdev enable_newdev implib
15154 wine_fn_config_dll normaliz enable_normaliz implib
15155 wine_fn_config_dll npmshtml enable_npmshtml
15156 wine_fn_config_dll ntdll enable_ntdll implib
15157 wine_fn_config_test dlls/ntdll/tests ntdll_test
15158 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15159 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15160 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15161 wine_fn_config_dll ntprint enable_ntprint
15162 wine_fn_config_test dlls/ntprint/tests ntprint_test
15163 wine_fn_config_dll objsel enable_objsel
15164 wine_fn_config_dll odbc32 enable_odbc32 implib
15165 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15166 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15167 wine_fn_config_dll ole2.dll16 enable_win16
15168 wine_fn_config_dll ole2conv.dll16 enable_win16
15169 wine_fn_config_dll ole2disp.dll16 enable_win16
15170 wine_fn_config_dll ole2nls.dll16 enable_win16
15171 wine_fn_config_dll ole2prox.dll16 enable_win16
15172 wine_fn_config_dll ole2thk.dll16 enable_win16
15173 wine_fn_config_dll ole32 enable_ole32 implib
15174 wine_fn_config_test dlls/ole32/tests ole32_test
15175 wine_fn_config_dll oleacc enable_oleacc implib,po
15176 wine_fn_config_test dlls/oleacc/tests oleacc_test
15177 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15178 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15179 wine_fn_config_dll olecli.dll16 enable_win16
15180 wine_fn_config_dll olecli32 enable_olecli32 implib
15181 wine_fn_config_dll oledb32 enable_oledb32
15182 wine_fn_config_test dlls/oledb32/tests oledb32_test
15183 wine_fn_config_dll oledlg enable_oledlg implib,po
15184 wine_fn_config_dll olepro32 enable_olepro32 implib
15185 wine_fn_config_dll olesvr.dll16 enable_win16
15186 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15187 wine_fn_config_dll olethk32 enable_olethk32
15188 wine_fn_config_dll openal32 enable_openal32
15189 wine_fn_config_dll opencl enable_opencl
15190 wine_fn_config_dll opengl32 enable_opengl32 implib
15191 wine_fn_config_test dlls/opengl32/tests opengl32_test
15192 wine_fn_config_dll pdh enable_pdh implib
15193 wine_fn_config_test dlls/pdh/tests pdh_test
15194 wine_fn_config_dll pidgen enable_pidgen
15195 wine_fn_config_dll powrprof enable_powrprof implib
15196 wine_fn_config_dll printui enable_printui
15197 wine_fn_config_dll propsys enable_propsys implib
15198 wine_fn_config_test dlls/propsys/tests propsys_test
15199 wine_fn_config_dll psapi enable_psapi implib
15200 wine_fn_config_test dlls/psapi/tests psapi_test
15201 wine_fn_config_dll pstorec enable_pstorec
15202 wine_fn_config_dll qcap enable_qcap
15203 wine_fn_config_dll qedit enable_qedit
15204 wine_fn_config_test dlls/qedit/tests qedit_test
15205 wine_fn_config_dll qmgr enable_qmgr
15206 wine_fn_config_test dlls/qmgr/tests qmgr_test
15207 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15208 wine_fn_config_dll quartz enable_quartz implib
15209 wine_fn_config_test dlls/quartz/tests quartz_test
15210 wine_fn_config_dll query enable_query
15211 wine_fn_config_dll rasapi16.dll16 enable_win16
15212 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15213 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15214 wine_fn_config_dll rasdlg enable_rasdlg implib
15215 wine_fn_config_dll regapi enable_regapi
15216 wine_fn_config_dll resutils enable_resutils implib
15217 wine_fn_config_dll riched20 enable_riched20 implib
15218 wine_fn_config_test dlls/riched20/tests riched20_test
15219 wine_fn_config_dll riched32 enable_riched32
15220 wine_fn_config_test dlls/riched32/tests riched32_test
15221 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15222 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15223 wine_fn_config_dll rsabase enable_rsabase
15224 wine_fn_config_dll rsaenh enable_rsaenh implib
15225 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15226 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15227 wine_fn_config_dll rtutils enable_rtutils implib
15228 wine_fn_config_dll samlib enable_samlib
15229 wine_fn_config_dll sane.ds enable_sane_ds po
15230 wine_fn_config_dll scarddlg enable_scarddlg
15231 wine_fn_config_dll sccbase enable_sccbase
15232 wine_fn_config_dll schannel enable_schannel
15233 wine_fn_config_test dlls/schannel/tests schannel_test
15234 wine_fn_config_dll scrrun enable_scrrun
15235 wine_fn_config_dll secur32 enable_secur32 implib
15236 wine_fn_config_test dlls/secur32/tests secur32_test
15237 wine_fn_config_dll security enable_security
15238 wine_fn_config_dll sensapi enable_sensapi implib
15239 wine_fn_config_dll serialui enable_serialui implib,po
15240 wine_fn_config_test dlls/serialui/tests serialui_test
15241 wine_fn_config_dll setupapi enable_setupapi implib,po
15242 wine_fn_config_test dlls/setupapi/tests setupapi_test
15243 wine_fn_config_dll setupx.dll16 enable_win16
15244 wine_fn_config_dll sfc enable_sfc implib
15245 wine_fn_config_dll sfc_os enable_sfc_os implib
15246 wine_fn_config_dll shdoclc enable_shdoclc po
15247 wine_fn_config_dll shdocvw enable_shdocvw implib
15248 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15249 wine_fn_config_dll shell.dll16 enable_win16
15250 wine_fn_config_dll shell32 enable_shell32 implib,po
15251 wine_fn_config_test dlls/shell32/tests shell32_test
15252 wine_fn_config_dll shfolder enable_shfolder implib
15253 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15254 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15255 wine_fn_config_dll slbcsp enable_slbcsp
15256 wine_fn_config_dll slc enable_slc implib
15257 wine_fn_config_dll snmpapi enable_snmpapi implib
15258 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15259 wine_fn_config_dll softpub enable_softpub
15260 wine_fn_config_dll sound.drv16 enable_win16
15261 wine_fn_config_dll spoolss enable_spoolss implib
15262 wine_fn_config_test dlls/spoolss/tests spoolss_test
15263 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15264 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15265 wine_fn_config_dll sti enable_sti implib
15266 wine_fn_config_test dlls/sti/tests sti_test
15267 wine_fn_config_dll storage.dll16 enable_win16
15268 wine_fn_config_dll stress.dll16 enable_win16
15269 wine_fn_config_lib strmbase
15270 wine_fn_config_lib strmiids
15271 wine_fn_config_dll svrapi enable_svrapi
15272 wine_fn_config_dll sxs enable_sxs
15273 wine_fn_config_dll system.drv16 enable_win16
15274 wine_fn_config_dll t2embed enable_t2embed
15275 wine_fn_config_dll tapi32 enable_tapi32 implib
15276 wine_fn_config_dll toolhelp.dll16 enable_win16
15277 wine_fn_config_dll traffic enable_traffic
15278 wine_fn_config_dll twain.dll16 enable_win16
15279 wine_fn_config_dll twain_32 enable_twain_32
15280 wine_fn_config_test dlls/twain_32/tests twain_32_test
15281 wine_fn_config_dll typelib.dll16 enable_win16
15282 wine_fn_config_dll unicows enable_unicows implib
15283 wine_fn_config_dll updspapi enable_updspapi
15284 wine_fn_config_dll url enable_url implib
15285 wine_fn_config_dll urlmon enable_urlmon implib
15286 wine_fn_config_test dlls/urlmon/tests urlmon_test
15287 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15288 wine_fn_config_dll user.exe16 enable_win16
15289 wine_fn_config_dll user32 enable_user32 implib,po
15290 wine_fn_config_test dlls/user32/tests user32_test
15291 wine_fn_config_dll userenv enable_userenv implib
15292 wine_fn_config_test dlls/userenv/tests userenv_test
15293 wine_fn_config_dll usp10 enable_usp10 implib
15294 wine_fn_config_test dlls/usp10/tests usp10_test
15295 wine_fn_config_lib uuid
15296 wine_fn_config_dll uxtheme enable_uxtheme implib
15297 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15298 wine_fn_config_dll vbscript enable_vbscript
15299 wine_fn_config_test dlls/vbscript/tests vbscript_test
15300 wine_fn_config_dll vcomp enable_vcomp
15301 wine_fn_config_dll vdhcp.vxd enable_win16
15302 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15303 wine_fn_config_dll ver.dll16 enable_win16
15304 wine_fn_config_dll version enable_version implib
15305 wine_fn_config_test dlls/version/tests version_test
15306 wine_fn_config_dll vmm.vxd enable_win16
15307 wine_fn_config_dll vnbt.vxd enable_win16
15308 wine_fn_config_dll vnetbios.vxd enable_win16
15309 wine_fn_config_dll vtdapi.vxd enable_win16
15310 wine_fn_config_dll vwin32.vxd enable_win16
15311 wine_fn_config_dll w32skrnl enable_win16
15312 wine_fn_config_dll w32sys.dll16 enable_win16
15313 wine_fn_config_dll wbemprox enable_wbemprox
15314 wine_fn_config_dll wer enable_wer implib
15315 wine_fn_config_test dlls/wer/tests wer_test
15316 wine_fn_config_dll wiaservc enable_wiaservc
15317 wine_fn_config_dll win32s16.dll16 enable_win16
15318 wine_fn_config_dll win87em.dll16 enable_win16
15319 wine_fn_config_dll winaspi.dll16 enable_win16
15320 wine_fn_config_dll windebug.dll16 enable_win16
15321 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15322 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15323 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15324 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15325 wine_fn_config_lib winecrt0
15326 wine_fn_config_dll wined3d enable_wined3d implib
15327 wine_fn_config_dll winegstreamer enable_winegstreamer
15328 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15329 wine_fn_config_dll winemapi enable_winemapi
15330 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15331 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15332 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
15333 wine_fn_config_dll wineps16.drv16 enable_win16
15334 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15335 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15336 wine_fn_config_dll winex11.drv enable_winex11_drv
15337 wine_fn_config_dll wing.dll16 enable_win16
15338 wine_fn_config_dll wing32 enable_wing32
15339 wine_fn_config_dll winhttp enable_winhttp implib
15340 wine_fn_config_test dlls/winhttp/tests winhttp_test
15341 wine_fn_config_dll wininet enable_wininet implib,po
15342 wine_fn_config_test dlls/wininet/tests wininet_test
15343 wine_fn_config_dll winmm enable_winmm implib,po
15344 wine_fn_config_test dlls/winmm/tests winmm_test
15345 wine_fn_config_dll winnls.dll16 enable_win16
15346 wine_fn_config_dll winnls32 enable_winnls32 implib
15347 wine_fn_config_dll winscard enable_winscard implib
15348 wine_fn_config_dll winsock.dll16 enable_win16
15349 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15350 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15351 wine_fn_config_dll winsta enable_winsta
15352 wine_fn_config_dll wintab.dll16 enable_win16
15353 wine_fn_config_dll wintab32 enable_wintab32 implib
15354 wine_fn_config_test dlls/wintab32/tests wintab32_test
15355 wine_fn_config_dll wintrust enable_wintrust implib
15356 wine_fn_config_test dlls/wintrust/tests wintrust_test
15357 wine_fn_config_dll wlanapi enable_wlanapi
15358 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15359 wine_fn_config_test dlls/wldap32/tests wldap32_test
15360 wine_fn_config_dll wmi enable_wmi
15361 wine_fn_config_dll wmiutils enable_wmiutils
15362 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15363 wine_fn_config_dll wow32 enable_win16 implib
15364 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15365 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15366 wine_fn_config_dll wshom.ocx enable_wshom_ocx
15367 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
15368 wine_fn_config_dll wsock32 enable_wsock32 implib
15369 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15370 wine_fn_config_dll wuapi enable_wuapi
15371 wine_fn_config_dll wuaueng enable_wuaueng
15372 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15373 wine_fn_config_dll xinput1_1 enable_xinput1_1
15374 wine_fn_config_dll xinput1_2 enable_xinput1_2
15375 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15376 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15377 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15378 wine_fn_config_dll xmllite enable_xmllite
15379 wine_fn_config_test dlls/xmllite/tests xmllite_test
15380 wine_fn_config_dll xolehlp enable_xolehlp
15381 wine_fn_config_makefile documentation enable_documentation
15382 wine_fn_config_makefile fonts enable_fonts install-lib
15383 wine_fn_config_makefile include enable_include install-dev
15384 wine_fn_config_makefile libs/port enable_libs_port
15385 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15386 wine_fn_config_makefile libs/wpp enable_libs_wpp
15387 wine_fn_config_makefile loader enable_loader install-lib,manpage
15388 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15389 wine_fn_config_program attrib enable_attrib install,po
15390 wine_fn_config_program cabarc enable_cabarc install
15391 wine_fn_config_program cacls enable_cacls install
15392 wine_fn_config_program clock enable_clock install,po
15393 wine_fn_config_program cmd enable_cmd install,po
15394 wine_fn_config_test programs/cmd/tests cmd.exe_test
15395 wine_fn_config_program control enable_control install
15396 wine_fn_config_program dxdiag enable_dxdiag install,po
15397 wine_fn_config_program eject enable_eject install
15398 wine_fn_config_program expand enable_expand install
15399 wine_fn_config_program explorer enable_explorer install,po
15400 wine_fn_config_program extrac32 enable_extrac32 install
15401 wine_fn_config_program hh enable_hh install
15402 wine_fn_config_program hostname enable_hostname install,po
15403 wine_fn_config_program icinfo enable_icinfo install
15404 wine_fn_config_program iexplore enable_iexplore install
15405 wine_fn_config_program ipconfig enable_ipconfig install,po
15406 wine_fn_config_program lodctr enable_lodctr install
15407 wine_fn_config_program mofcomp enable_mofcomp install
15408 wine_fn_config_program mshta enable_mshta install
15409 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
15410 wine_fn_config_program net enable_net install,po
15411 wine_fn_config_program netsh enable_netsh install
15412 wine_fn_config_program ngen enable_ngen install
15413 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
15414 wine_fn_config_program oleview enable_oleview install,po
15415 wine_fn_config_program ping enable_ping install
15416 wine_fn_config_program plugplay enable_plugplay install
15417 wine_fn_config_program presentationfontcache enable_presentationfontcache install
15418 wine_fn_config_program progman enable_progman install,po
15419 wine_fn_config_program reg enable_reg install,po
15420 wine_fn_config_program regasm enable_regasm install
15421 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
15422 wine_fn_config_test programs/regedit/tests regedit.exe_test
15423 wine_fn_config_program regsvcs enable_regsvcs install
15424 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
15425 wine_fn_config_program rpcss enable_rpcss install
15426 wine_fn_config_program rundll.exe16 enable_win16 install
15427 wine_fn_config_program rundll32 enable_rundll32 install
15428 wine_fn_config_program sc enable_sc install
15429 wine_fn_config_program secedit enable_secedit install
15430 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15431 wine_fn_config_program services enable_services install
15432 wine_fn_config_program spoolsv enable_spoolsv install
15433 wine_fn_config_program start enable_start install,po
15434 wine_fn_config_program svchost enable_svchost install
15435 wine_fn_config_program taskkill enable_taskkill install,po
15436 wine_fn_config_program taskmgr enable_taskmgr install,po
15437 wine_fn_config_program termsv enable_termsv install
15438 wine_fn_config_program uninstaller enable_uninstaller install,po
15439 wine_fn_config_program unlodctr enable_unlodctr install
15440 wine_fn_config_program view enable_view install,po
15441 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
15442 wine_fn_config_program winebrowser enable_winebrowser install
15443 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15444 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15445 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
15446 wine_fn_config_program winedevice enable_winedevice install
15447 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
15448 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15449 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
15450 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15451 wine_fn_config_program winepath enable_winepath install,installbin,manpage
15452 wine_fn_config_program winetest enable_winetest
15453 wine_fn_config_program winevdm enable_win16 install
15454 wine_fn_config_program winhelp.exe16 enable_win16 install
15455 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15456 wine_fn_config_program winoldap.mod16 enable_win16 install
15457 wine_fn_config_program winver enable_winver install
15458 wine_fn_config_program wmic enable_wmic install
15459 wine_fn_config_program wordpad enable_wordpad install,po
15460 wine_fn_config_program write enable_write install,po
15461 wine_fn_config_program wscript enable_wscript install
15462 wine_fn_config_test programs/wscript/tests wscript.exe_test
15463 wine_fn_config_program xcopy enable_xcopy install,po
15464 wine_fn_config_makefile server enable_server install-lib,manpage
15465 wine_fn_config_tool tools install-dev,install-lib,manpage
15466 wine_fn_config_tool tools/widl install-dev,manpage
15467 wine_fn_config_tool tools/winebuild install-dev,manpage
15468 wine_fn_config_tool tools/winedump install-dev,manpage
15469 wine_fn_config_tool tools/winegcc install-dev,manpage
15470 wine_fn_config_tool tools/wmc install-dev,manpage
15471 wine_fn_config_tool tools/wrc install-dev,manpage
15473 LINGUAS="\
15474 ar \
15475 bg \
15476 ca \
15477 cs \
15478 da \
15479 de \
15480 el \
15481 en \
15482 en_US \
15483 eo \
15484 es \
15485 fa \
15486 fi \
15487 fr \
15488 he \
15489 hi \
15490 hu \
15491 it \
15492 ja \
15493 ko \
15494 lt \
15495 ml \
15496 nb_NO \
15497 nl \
15498 or \
15499 pa \
15500 pl \
15501 pt_BR \
15502 pt_PT \
15503 rm \
15504 ro \
15505 ru \
15506 sk \
15507 sl \
15508 sr_RS@cyrillic \
15509 sr_RS@latin \
15510 sv \
15511 te \
15512 th \
15513 tr \
15514 uk \
15515 wa \
15516 zh_CN \
15517 zh_TW"
15521 ac_config_commands="$ac_config_commands Makefile"
15524 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15528 if test "x$enable_maintainer_mode" = xyes
15529 then
15530 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15531 cd \$(srcdir) && autoconf --warnings=all
15532 \$(srcdir)/include/config.h.in: include/stamp-h.in
15533 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15534 cd \$(srcdir) && autoheader --warnings=all
15535 @echo timestamp > \$@"
15538 if test "x$with_gettextpo" = xyes
15539 then
15540 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15541 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15542 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
15543 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15544 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15545 msgcat -o \$@ \$(ALL_POT_FILES)"
15548 if test "$MSGFMT" != false
15549 then
15550 PORCFLAGS="--po-dir=\$(top_builddir)/po"
15552 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
15553 else
15554 LINGUAS=
15557 if test "x$enable_tools" != xno
15558 then
15559 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15560 clean:: __clean__
15561 \$(RM) tools/makedep\$(EXEEXT)"
15564 if test -n "$with_wine64"
15565 then
15566 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15567 fonts server tools:
15568 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15569 $with_wine64/loader/wine:
15570 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15571 $with_wine64/loader/wine-preloader:
15572 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15573 clean::
15574 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15577 cat >confcache <<\_ACEOF
15578 # This file is a shell script that caches the results of configure
15579 # tests run on this system so they can be shared between configure
15580 # scripts and configure runs, see configure's option --config-cache.
15581 # It is not useful on other systems. If it contains results you don't
15582 # want to keep, you may remove or edit it.
15584 # config.status only pays attention to the cache file if you give it
15585 # the --recheck option to rerun configure.
15587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15589 # following values.
15591 _ACEOF
15593 # The following way of writing the cache mishandles newlines in values,
15594 # but we know of no workaround that is simple, portable, and efficient.
15595 # So, we kill variables containing newlines.
15596 # Ultrix sh set writes to stderr and can't be redirected directly,
15597 # and sets the high bit in the cache file unless we assign to the vars.
15599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15600 eval ac_val=\$$ac_var
15601 case $ac_val in #(
15602 *${as_nl}*)
15603 case $ac_var in #(
15604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15605 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15606 esac
15607 case $ac_var in #(
15608 _ | IFS | as_nl) ;; #(
15609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15610 *) { eval $ac_var=; unset $ac_var;} ;;
15611 esac ;;
15612 esac
15613 done
15615 (set) 2>&1 |
15616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15617 *${as_nl}ac_space=\ *)
15618 # `set' does not quote correctly, so add quotes: double-quote
15619 # substitution turns \\\\ into \\, and sed turns \\ into \.
15620 sed -n \
15621 "s/'/'\\\\''/g;
15622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15623 ;; #(
15625 # `set' quotes correctly as required by POSIX, so do not add quotes.
15626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15628 esac |
15629 sort
15631 sed '
15632 /^ac_cv_env_/b end
15633 t clear
15634 :clear
15635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15636 t end
15637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15638 :end' >>confcache
15639 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15640 if test -w "$cache_file"; then
15641 if test "x$cache_file" != "x/dev/null"; then
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15643 $as_echo "$as_me: updating cache $cache_file" >&6;}
15644 if test ! -f "$cache_file" || test -h "$cache_file"; then
15645 cat confcache >"$cache_file"
15646 else
15647 case $cache_file in #(
15648 */* | ?:*)
15649 mv -f confcache "$cache_file"$$ &&
15650 mv -f "$cache_file"$$ "$cache_file" ;; #(
15652 mv -f confcache "$cache_file" ;;
15653 esac
15656 else
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15658 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15661 rm -f confcache
15663 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15664 # Let make expand exec_prefix.
15665 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15667 DEFS=-DHAVE_CONFIG_H
15669 ac_libobjs=
15670 ac_ltlibobjs=
15672 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15673 # 1. Remove the extension, and $U if already installed.
15674 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15675 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15676 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15677 # will be set to the directory where LIBOBJS objects are built.
15678 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15679 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15680 done
15681 LIBOBJS=$ac_libobjs
15683 LTLIBOBJS=$ac_ltlibobjs
15687 : "${CONFIG_STATUS=./config.status}"
15688 ac_write_fail=0
15689 ac_clean_files_save=$ac_clean_files
15690 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15692 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15693 as_write_fail=0
15694 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15695 #! $SHELL
15696 # Generated by $as_me.
15697 # Run this file to recreate the current configuration.
15698 # Compiler output produced by configure, useful for debugging
15699 # configure, is in config.log if it exists.
15701 debug=false
15702 ac_cs_recheck=false
15703 ac_cs_silent=false
15705 SHELL=\${CONFIG_SHELL-$SHELL}
15706 export SHELL
15707 _ASEOF
15708 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15709 ## -------------------- ##
15710 ## M4sh Initialization. ##
15711 ## -------------------- ##
15713 # Be more Bourne compatible
15714 DUALCASE=1; export DUALCASE # for MKS sh
15715 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15716 emulate sh
15717 NULLCMD=:
15718 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15719 # is contrary to our usage. Disable this feature.
15720 alias -g '${1+"$@"}'='"$@"'
15721 setopt NO_GLOB_SUBST
15722 else
15723 case `(set -o) 2>/dev/null` in #(
15724 *posix*) :
15725 set -o posix ;; #(
15726 *) :
15728 esac
15732 as_nl='
15734 export as_nl
15735 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15736 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15737 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15739 # Prefer a ksh shell builtin over an external printf program on Solaris,
15740 # but without wasting forks for bash or zsh.
15741 if test -z "$BASH_VERSION$ZSH_VERSION" \
15742 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15743 as_echo='print -r --'
15744 as_echo_n='print -rn --'
15745 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15746 as_echo='printf %s\n'
15747 as_echo_n='printf %s'
15748 else
15749 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15750 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15751 as_echo_n='/usr/ucb/echo -n'
15752 else
15753 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15754 as_echo_n_body='eval
15755 arg=$1;
15756 case $arg in #(
15757 *"$as_nl"*)
15758 expr "X$arg" : "X\\(.*\\)$as_nl";
15759 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15760 esac;
15761 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15763 export as_echo_n_body
15764 as_echo_n='sh -c $as_echo_n_body as_echo'
15766 export as_echo_body
15767 as_echo='sh -c $as_echo_body as_echo'
15770 # The user is always right.
15771 if test "${PATH_SEPARATOR+set}" != set; then
15772 PATH_SEPARATOR=:
15773 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15774 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15775 PATH_SEPARATOR=';'
15780 # IFS
15781 # We need space, tab and new line, in precisely that order. Quoting is
15782 # there to prevent editors from complaining about space-tab.
15783 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15784 # splitting by setting IFS to empty value.)
15785 IFS=" "" $as_nl"
15787 # Find who we are. Look in the path if we contain no directory separator.
15788 as_myself=
15789 case $0 in #((
15790 *[\\/]* ) as_myself=$0 ;;
15791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15792 for as_dir in $PATH
15794 IFS=$as_save_IFS
15795 test -z "$as_dir" && as_dir=.
15796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15797 done
15798 IFS=$as_save_IFS
15801 esac
15802 # We did not find ourselves, most probably we were run as `sh COMMAND'
15803 # in which case we are not to be found in the path.
15804 if test "x$as_myself" = x; then
15805 as_myself=$0
15807 if test ! -f "$as_myself"; then
15808 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15809 exit 1
15812 # Unset variables that we do not need and which cause bugs (e.g. in
15813 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15814 # suppresses any "Segmentation fault" message there. '((' could
15815 # trigger a bug in pdksh 5.2.14.
15816 for as_var in BASH_ENV ENV MAIL MAILPATH
15817 do eval test x\${$as_var+set} = xset \
15818 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15819 done
15820 PS1='$ '
15821 PS2='> '
15822 PS4='+ '
15824 # NLS nuisances.
15825 LC_ALL=C
15826 export LC_ALL
15827 LANGUAGE=C
15828 export LANGUAGE
15830 # CDPATH.
15831 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15834 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15835 # ----------------------------------------
15836 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15837 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15838 # script with STATUS, using 1 if that was 0.
15839 as_fn_error ()
15841 as_status=$1; test $as_status -eq 0 && as_status=1
15842 if test "$4"; then
15843 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15844 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15846 $as_echo "$as_me: error: $2" >&2
15847 as_fn_exit $as_status
15848 } # as_fn_error
15851 # as_fn_set_status STATUS
15852 # -----------------------
15853 # Set $? to STATUS, without forking.
15854 as_fn_set_status ()
15856 return $1
15857 } # as_fn_set_status
15859 # as_fn_exit STATUS
15860 # -----------------
15861 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15862 as_fn_exit ()
15864 set +e
15865 as_fn_set_status $1
15866 exit $1
15867 } # as_fn_exit
15869 # as_fn_unset VAR
15870 # ---------------
15871 # Portably unset VAR.
15872 as_fn_unset ()
15874 { eval $1=; unset $1;}
15876 as_unset=as_fn_unset
15877 # as_fn_append VAR VALUE
15878 # ----------------------
15879 # Append the text in VALUE to the end of the definition contained in VAR. Take
15880 # advantage of any shell optimizations that allow amortized linear growth over
15881 # repeated appends, instead of the typical quadratic growth present in naive
15882 # implementations.
15883 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15884 eval 'as_fn_append ()
15886 eval $1+=\$2
15888 else
15889 as_fn_append ()
15891 eval $1=\$$1\$2
15893 fi # as_fn_append
15895 # as_fn_arith ARG...
15896 # ------------------
15897 # Perform arithmetic evaluation on the ARGs, and store the result in the
15898 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15899 # must be portable across $(()) and expr.
15900 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15901 eval 'as_fn_arith ()
15903 as_val=$(( $* ))
15905 else
15906 as_fn_arith ()
15908 as_val=`expr "$@" || test $? -eq 1`
15910 fi # as_fn_arith
15913 if expr a : '\(a\)' >/dev/null 2>&1 &&
15914 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15915 as_expr=expr
15916 else
15917 as_expr=false
15920 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15921 as_basename=basename
15922 else
15923 as_basename=false
15926 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15927 as_dirname=dirname
15928 else
15929 as_dirname=false
15932 as_me=`$as_basename -- "$0" ||
15933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15934 X"$0" : 'X\(//\)$' \| \
15935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15936 $as_echo X/"$0" |
15937 sed '/^.*\/\([^/][^/]*\)\/*$/{
15938 s//\1/
15941 /^X\/\(\/\/\)$/{
15942 s//\1/
15945 /^X\/\(\/\).*/{
15946 s//\1/
15949 s/.*/./; q'`
15951 # Avoid depending upon Character Ranges.
15952 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15953 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15954 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15955 as_cr_digits='0123456789'
15956 as_cr_alnum=$as_cr_Letters$as_cr_digits
15958 ECHO_C= ECHO_N= ECHO_T=
15959 case `echo -n x` in #(((((
15960 -n*)
15961 case `echo 'xy\c'` in
15962 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15963 xy) ECHO_C='\c';;
15964 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15965 ECHO_T=' ';;
15966 esac;;
15968 ECHO_N='-n';;
15969 esac
15971 rm -f conf$$ conf$$.exe conf$$.file
15972 if test -d conf$$.dir; then
15973 rm -f conf$$.dir/conf$$.file
15974 else
15975 rm -f conf$$.dir
15976 mkdir conf$$.dir 2>/dev/null
15978 if (echo >conf$$.file) 2>/dev/null; then
15979 if ln -s conf$$.file conf$$ 2>/dev/null; then
15980 as_ln_s='ln -s'
15981 # ... but there are two gotchas:
15982 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15983 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15984 # In both cases, we have to default to `cp -p'.
15985 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15986 as_ln_s='cp -p'
15987 elif ln conf$$.file conf$$ 2>/dev/null; then
15988 as_ln_s=ln
15989 else
15990 as_ln_s='cp -p'
15992 else
15993 as_ln_s='cp -p'
15995 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15996 rmdir conf$$.dir 2>/dev/null
15999 # as_fn_mkdir_p
16000 # -------------
16001 # Create "$as_dir" as a directory, including parents if necessary.
16002 as_fn_mkdir_p ()
16005 case $as_dir in #(
16006 -*) as_dir=./$as_dir;;
16007 esac
16008 test -d "$as_dir" || eval $as_mkdir_p || {
16009 as_dirs=
16010 while :; do
16011 case $as_dir in #(
16012 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16013 *) as_qdir=$as_dir;;
16014 esac
16015 as_dirs="'$as_qdir' $as_dirs"
16016 as_dir=`$as_dirname -- "$as_dir" ||
16017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16018 X"$as_dir" : 'X\(//\)[^/]' \| \
16019 X"$as_dir" : 'X\(//\)$' \| \
16020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16021 $as_echo X"$as_dir" |
16022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16023 s//\1/
16026 /^X\(\/\/\)[^/].*/{
16027 s//\1/
16030 /^X\(\/\/\)$/{
16031 s//\1/
16034 /^X\(\/\).*/{
16035 s//\1/
16038 s/.*/./; q'`
16039 test -d "$as_dir" && break
16040 done
16041 test -z "$as_dirs" || eval "mkdir $as_dirs"
16042 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16045 } # as_fn_mkdir_p
16046 if mkdir -p . 2>/dev/null; then
16047 as_mkdir_p='mkdir -p "$as_dir"'
16048 else
16049 test -d ./-p && rmdir ./-p
16050 as_mkdir_p=false
16053 if test -x / >/dev/null 2>&1; then
16054 as_test_x='test -x'
16055 else
16056 if ls -dL / >/dev/null 2>&1; then
16057 as_ls_L_option=L
16058 else
16059 as_ls_L_option=
16061 as_test_x='
16062 eval sh -c '\''
16063 if test -d "$1"; then
16064 test -d "$1/.";
16065 else
16066 case $1 in #(
16067 -*)set "./$1";;
16068 esac;
16069 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16070 ???[sx]*):;;*)false;;esac;fi
16071 '\'' sh
16074 as_executable_p=$as_test_x
16076 # Sed expression to map a string onto a valid CPP name.
16077 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16079 # Sed expression to map a string onto a valid variable name.
16080 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16083 exec 6>&1
16084 ## ----------------------------------- ##
16085 ## Main body of $CONFIG_STATUS script. ##
16086 ## ----------------------------------- ##
16087 _ASEOF
16088 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16091 # Save the log message, to keep $0 and so on meaningful, and to
16092 # report actual input values of CONFIG_FILES etc. instead of their
16093 # values after options handling.
16094 ac_log="
16095 This file was extended by Wine $as_me 1.3.35, which was
16096 generated by GNU Autoconf 2.68. Invocation command line was
16098 CONFIG_FILES = $CONFIG_FILES
16099 CONFIG_HEADERS = $CONFIG_HEADERS
16100 CONFIG_LINKS = $CONFIG_LINKS
16101 CONFIG_COMMANDS = $CONFIG_COMMANDS
16102 $ $0 $@
16104 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16107 _ACEOF
16109 case $ac_config_files in *"
16110 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16111 esac
16113 case $ac_config_headers in *"
16114 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16115 esac
16118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16119 # Files that config.status was made for.
16120 config_files="$ac_config_files"
16121 config_headers="$ac_config_headers"
16122 config_links="$ac_config_links"
16123 config_commands="$ac_config_commands"
16125 _ACEOF
16127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16128 ac_cs_usage="\
16129 \`$as_me' instantiates files and other configuration actions
16130 from templates according to the current configuration. Unless the files
16131 and actions are specified as TAGs, all are instantiated by default.
16133 Usage: $0 [OPTION]... [TAG]...
16135 -h, --help print this help, then exit
16136 -V, --version print version number and configuration settings, then exit
16137 --config print configuration, then exit
16138 -q, --quiet, --silent
16139 do not print progress messages
16140 -d, --debug don't remove temporary files
16141 --recheck update $as_me by reconfiguring in the same conditions
16142 --file=FILE[:TEMPLATE]
16143 instantiate the configuration file FILE
16144 --header=FILE[:TEMPLATE]
16145 instantiate the configuration header FILE
16147 Configuration files:
16148 $config_files
16150 Configuration headers:
16151 $config_headers
16153 Configuration links:
16154 $config_links
16156 Configuration commands:
16157 $config_commands
16159 Report bugs to <wine-devel@winehq.org>.
16160 Wine home page: <http://www.winehq.org>."
16162 _ACEOF
16163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16164 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16165 ac_cs_version="\\
16166 Wine config.status 1.3.35
16167 configured by $0, generated by GNU Autoconf 2.68,
16168 with options \\"\$ac_cs_config\\"
16170 Copyright (C) 2010 Free Software Foundation, Inc.
16171 This config.status script is free software; the Free Software Foundation
16172 gives unlimited permission to copy, distribute and modify it."
16174 ac_pwd='$ac_pwd'
16175 srcdir='$srcdir'
16176 INSTALL='$INSTALL'
16177 test -n "\$AWK" || AWK=awk
16178 _ACEOF
16180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16181 # The default lists apply if the user does not specify any file.
16182 ac_need_defaults=:
16183 while test $# != 0
16185 case $1 in
16186 --*=?*)
16187 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16188 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16189 ac_shift=:
16191 --*=)
16192 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16193 ac_optarg=
16194 ac_shift=:
16197 ac_option=$1
16198 ac_optarg=$2
16199 ac_shift=shift
16201 esac
16203 case $ac_option in
16204 # Handling of the options.
16205 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16206 ac_cs_recheck=: ;;
16207 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16208 $as_echo "$ac_cs_version"; exit ;;
16209 --config | --confi | --conf | --con | --co | --c )
16210 $as_echo "$ac_cs_config"; exit ;;
16211 --debug | --debu | --deb | --de | --d | -d )
16212 debug=: ;;
16213 --file | --fil | --fi | --f )
16214 $ac_shift
16215 case $ac_optarg in
16216 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16217 '') as_fn_error $? "missing file argument" ;;
16218 esac
16219 as_fn_append CONFIG_FILES " '$ac_optarg'"
16220 ac_need_defaults=false;;
16221 --header | --heade | --head | --hea )
16222 $ac_shift
16223 case $ac_optarg in
16224 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16225 esac
16226 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16227 ac_need_defaults=false;;
16228 --he | --h)
16229 # Conflict between --help and --header
16230 as_fn_error $? "ambiguous option: \`$1'
16231 Try \`$0 --help' for more information.";;
16232 --help | --hel | -h )
16233 $as_echo "$ac_cs_usage"; exit ;;
16234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16235 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16236 ac_cs_silent=: ;;
16238 # This is an error.
16239 -*) as_fn_error $? "unrecognized option: \`$1'
16240 Try \`$0 --help' for more information." ;;
16242 *) as_fn_append ac_config_targets " $1"
16243 ac_need_defaults=false ;;
16245 esac
16246 shift
16247 done
16249 ac_configure_extra_args=
16251 if $ac_cs_silent; then
16252 exec 6>/dev/null
16253 ac_configure_extra_args="$ac_configure_extra_args --silent"
16256 _ACEOF
16257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16258 if \$ac_cs_recheck; then
16259 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16260 shift
16261 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16262 CONFIG_SHELL='$SHELL'
16263 export CONFIG_SHELL
16264 exec "\$@"
16267 _ACEOF
16268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16269 exec 5>>config.log
16271 echo
16272 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16273 ## Running $as_me. ##
16274 _ASBOX
16275 $as_echo "$ac_log"
16276 } >&5
16278 _ACEOF
16279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16281 # INIT-COMMANDS
16283 wine_fn_output_makefile ()
16285 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16286 $ALL_MAKEFILE_DEPENDS
16287 _WINE_EOF
16288 as_fn_error $? "could not create Makefile" "$LINENO" 5
16291 _ACEOF
16293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16295 # Handling of arguments.
16296 for ac_config_target in $ac_config_targets
16298 case $ac_config_target in
16299 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16300 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16301 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16302 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16303 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16304 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16305 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16306 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16307 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
16308 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16309 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16310 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16311 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16312 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16313 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16314 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16315 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16316 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16317 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16318 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16319 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16320 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16321 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16322 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16323 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16324 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16326 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16327 esac
16328 done
16331 # If the user did not use the arguments to specify the items to instantiate,
16332 # then the envvar interface is used. Set only those that are not.
16333 # We use the long form for the default assignment because of an extremely
16334 # bizarre bug on SunOS 4.1.3.
16335 if $ac_need_defaults; then
16336 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16337 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16338 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16339 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16342 # Have a temporary directory for convenience. Make it in the build tree
16343 # simply because there is no reason against having it here, and in addition,
16344 # creating and moving files from /tmp can sometimes cause problems.
16345 # Hook for its removal unless debugging.
16346 # Note that there is a small window in which the directory will not be cleaned:
16347 # after its creation but before its name has been assigned to `$tmp'.
16348 $debug ||
16350 tmp= ac_tmp=
16351 trap 'exit_status=$?
16352 : "${ac_tmp:=$tmp}"
16353 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16355 trap 'as_fn_exit 1' 1 2 13 15
16357 # Create a (secure) tmp directory for tmp files.
16360 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16361 test -d "$tmp"
16362 } ||
16364 tmp=./conf$$-$RANDOM
16365 (umask 077 && mkdir "$tmp")
16366 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16367 ac_tmp=$tmp
16369 # Set up the scripts for CONFIG_FILES section.
16370 # No need to generate them if there are no CONFIG_FILES.
16371 # This happens for instance with `./config.status config.h'.
16372 if test -n "$CONFIG_FILES"; then
16374 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16375 ac_cs_awk_getline=:
16376 ac_cs_awk_pipe_init=
16377 ac_cs_awk_read_file='
16378 while ((getline aline < (F[key])) > 0)
16379 print(aline)
16380 close(F[key])'
16381 ac_cs_awk_pipe_fini=
16382 else
16383 ac_cs_awk_getline=false
16384 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16385 ac_cs_awk_read_file='
16386 print "|#_!!_#|"
16387 print "cat " F[key] " &&"
16388 '$ac_cs_awk_pipe_init
16389 # The final `:' finishes the AND list.
16390 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16392 ac_cr=`echo X | tr X '\015'`
16393 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16394 # But we know of no other shell where ac_cr would be empty at this
16395 # point, so we can use a bashism as a fallback.
16396 if test "x$ac_cr" = x; then
16397 eval ac_cr=\$\'\\r\'
16399 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16400 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16401 ac_cs_awk_cr='\\r'
16402 else
16403 ac_cs_awk_cr=$ac_cr
16406 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16407 _ACEOF
16409 # Create commands to substitute file output variables.
16411 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16412 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16413 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16414 echo "_ACAWK" &&
16415 echo "_ACEOF"
16416 } >conf$$files.sh &&
16417 . ./conf$$files.sh ||
16418 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16419 rm -f conf$$files.sh
16422 echo "cat >conf$$subs.awk <<_ACEOF" &&
16423 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16424 echo "_ACEOF"
16425 } >conf$$subs.sh ||
16426 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16427 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16428 ac_delim='%!_!# '
16429 for ac_last_try in false false false false false :; do
16430 . ./conf$$subs.sh ||
16431 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16433 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16434 if test $ac_delim_n = $ac_delim_num; then
16435 break
16436 elif $ac_last_try; then
16437 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16438 else
16439 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16441 done
16442 rm -f conf$$subs.sh
16444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16445 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16446 _ACEOF
16447 sed -n '
16449 s/^/S["/; s/!.*/"]=/
16452 s/^[^!]*!//
16453 :repl
16454 t repl
16455 s/'"$ac_delim"'$//
16456 t delim
16459 s/\(.\{148\}\)..*/\1/
16460 t more1
16461 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16464 b repl
16465 :more1
16466 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16469 s/.\{148\}//
16470 t nl
16471 :delim
16473 s/\(.\{148\}\)..*/\1/
16474 t more2
16475 s/["\\]/\\&/g; s/^/"/; s/$/"/
16478 :more2
16479 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16482 s/.\{148\}//
16483 t delim
16484 ' <conf$$subs.awk | sed '
16485 /^[^""]/{
16487 s/\n//
16489 ' >>$CONFIG_STATUS || ac_write_fail=1
16490 rm -f conf$$subs.awk
16491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16492 _ACAWK
16493 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16494 for (key in S) S_is_set[key] = 1
16495 FS = "\a"
16496 \$ac_cs_awk_pipe_init
16499 line = $ 0
16500 nfields = split(line, field, "@")
16501 substed = 0
16502 len = length(field[1])
16503 for (i = 2; i < nfields; i++) {
16504 key = field[i]
16505 keylen = length(key)
16506 if (S_is_set[key]) {
16507 value = S[key]
16508 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16509 len += length(value) + length(field[++i])
16510 substed = 1
16511 } else
16512 len += 1 + keylen
16514 if (nfields == 3 && !substed) {
16515 key = field[2]
16516 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16517 \$ac_cs_awk_read_file
16518 next
16521 print line
16523 \$ac_cs_awk_pipe_fini
16524 _ACAWK
16525 _ACEOF
16526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16527 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16528 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16529 else
16531 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16532 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16533 _ACEOF
16535 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16536 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16537 # trailing colons and then remove the whole line if VPATH becomes empty
16538 # (actually we leave an empty line to preserve line numbers).
16539 if test "x$srcdir" = x.; then
16540 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16542 s///
16543 s/^/:/
16544 s/[ ]*$/:/
16545 s/:\$(srcdir):/:/g
16546 s/:\${srcdir}:/:/g
16547 s/:@srcdir@:/:/g
16548 s/^:*//
16549 s/:*$//
16551 s/\(=[ ]*\).*/\1/
16553 s/\n//
16554 s/^[^=]*=[ ]*$//
16558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16559 fi # test -n "$CONFIG_FILES"
16561 # Set up the scripts for CONFIG_HEADERS section.
16562 # No need to generate them if there are no CONFIG_HEADERS.
16563 # This happens for instance with `./config.status Makefile'.
16564 if test -n "$CONFIG_HEADERS"; then
16565 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16566 BEGIN {
16567 _ACEOF
16569 # Transform confdefs.h into an awk script `defines.awk', embedded as
16570 # here-document in config.status, that substitutes the proper values into
16571 # config.h.in to produce config.h.
16573 # Create a delimiter string that does not exist in confdefs.h, to ease
16574 # handling of long lines.
16575 ac_delim='%!_!# '
16576 for ac_last_try in false false :; do
16577 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16578 if test -z "$ac_tt"; then
16579 break
16580 elif $ac_last_try; then
16581 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16582 else
16583 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16585 done
16587 # For the awk script, D is an array of macro values keyed by name,
16588 # likewise P contains macro parameters if any. Preserve backslash
16589 # newline sequences.
16591 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16592 sed -n '
16593 s/.\{148\}/&'"$ac_delim"'/g
16594 t rset
16595 :rset
16596 s/^[ ]*#[ ]*define[ ][ ]*/ /
16597 t def
16599 :def
16600 s/\\$//
16601 t bsnl
16602 s/["\\]/\\&/g
16603 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16604 D["\1"]=" \3"/p
16605 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16607 :bsnl
16608 s/["\\]/\\&/g
16609 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16610 D["\1"]=" \3\\\\\\n"\\/p
16611 t cont
16612 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16613 t cont
16615 :cont
16617 s/.\{148\}/&'"$ac_delim"'/g
16618 t clear
16619 :clear
16620 s/\\$//
16621 t bsnlc
16622 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16624 :bsnlc
16625 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16626 b cont
16627 ' <confdefs.h | sed '
16628 s/'"$ac_delim"'/"\\\
16629 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16632 for (key in D) D_is_set[key] = 1
16633 FS = "\a"
16635 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16636 line = \$ 0
16637 split(line, arg, " ")
16638 if (arg[1] == "#") {
16639 defundef = arg[2]
16640 mac1 = arg[3]
16641 } else {
16642 defundef = substr(arg[1], 2)
16643 mac1 = arg[2]
16645 split(mac1, mac2, "(") #)
16646 macro = mac2[1]
16647 prefix = substr(line, 1, index(line, defundef) - 1)
16648 if (D_is_set[macro]) {
16649 # Preserve the white space surrounding the "#".
16650 print prefix "define", macro P[macro] D[macro]
16651 next
16652 } else {
16653 # Replace #undef with comments. This is necessary, for example,
16654 # in the case of _POSIX_SOURCE, which is predefined and required
16655 # on some systems where configure will not decide to define it.
16656 if (defundef == "undef") {
16657 print "/*", prefix defundef, macro, "*/"
16658 next
16662 { print }
16663 _ACAWK
16664 _ACEOF
16665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16666 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16667 fi # test -n "$CONFIG_HEADERS"
16670 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16671 shift
16672 for ac_tag
16674 case $ac_tag in
16675 :[FHLC]) ac_mode=$ac_tag; continue;;
16676 esac
16677 case $ac_mode$ac_tag in
16678 :[FHL]*:*);;
16679 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16680 :[FH]-) ac_tag=-:-;;
16681 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16682 esac
16683 ac_save_IFS=$IFS
16684 IFS=:
16685 set x $ac_tag
16686 IFS=$ac_save_IFS
16687 shift
16688 ac_file=$1
16689 shift
16691 case $ac_mode in
16692 :L) ac_source=$1;;
16693 :[FH])
16694 ac_file_inputs=
16695 for ac_f
16697 case $ac_f in
16698 -) ac_f="$ac_tmp/stdin";;
16699 *) # Look for the file first in the build tree, then in the source tree
16700 # (if the path is not absolute). The absolute path cannot be DOS-style,
16701 # because $ac_f cannot contain `:'.
16702 test -f "$ac_f" ||
16703 case $ac_f in
16704 [\\/$]*) false;;
16705 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16706 esac ||
16707 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16708 esac
16709 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16710 as_fn_append ac_file_inputs " '$ac_f'"
16711 done
16713 # Let's still pretend it is `configure' which instantiates (i.e., don't
16714 # use $as_me), people would be surprised to read:
16715 # /* config.h. Generated by config.status. */
16716 configure_input='Generated from '`
16717 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16718 `' by configure.'
16719 if test x"$ac_file" != x-; then
16720 configure_input="$ac_file. $configure_input"
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16722 $as_echo "$as_me: creating $ac_file" >&6;}
16724 # Neutralize special characters interpreted by sed in replacement strings.
16725 case $configure_input in #(
16726 *\&* | *\|* | *\\* )
16727 ac_sed_conf_input=`$as_echo "$configure_input" |
16728 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16729 *) ac_sed_conf_input=$configure_input;;
16730 esac
16732 case $ac_tag in
16733 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16735 esac
16737 esac
16739 ac_dir=`$as_dirname -- "$ac_file" ||
16740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16741 X"$ac_file" : 'X\(//\)[^/]' \| \
16742 X"$ac_file" : 'X\(//\)$' \| \
16743 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16744 $as_echo X"$ac_file" |
16745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16746 s//\1/
16749 /^X\(\/\/\)[^/].*/{
16750 s//\1/
16753 /^X\(\/\/\)$/{
16754 s//\1/
16757 /^X\(\/\).*/{
16758 s//\1/
16761 s/.*/./; q'`
16762 as_dir="$ac_dir"; as_fn_mkdir_p
16763 ac_builddir=.
16765 case "$ac_dir" in
16766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16768 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16769 # A ".." for each directory in $ac_dir_suffix.
16770 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16771 case $ac_top_builddir_sub in
16772 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16773 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16774 esac ;;
16775 esac
16776 ac_abs_top_builddir=$ac_pwd
16777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16778 # for backward compatibility:
16779 ac_top_builddir=$ac_top_build_prefix
16781 case $srcdir in
16782 .) # We are building in place.
16783 ac_srcdir=.
16784 ac_top_srcdir=$ac_top_builddir_sub
16785 ac_abs_top_srcdir=$ac_pwd ;;
16786 [\\/]* | ?:[\\/]* ) # Absolute name.
16787 ac_srcdir=$srcdir$ac_dir_suffix;
16788 ac_top_srcdir=$srcdir
16789 ac_abs_top_srcdir=$srcdir ;;
16790 *) # Relative name.
16791 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16792 ac_top_srcdir=$ac_top_build_prefix$srcdir
16793 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16794 esac
16795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16798 case $ac_mode in
16801 # CONFIG_FILE
16804 case $INSTALL in
16805 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16806 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16807 esac
16808 _ACEOF
16810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16811 # If the template does not know about datarootdir, expand it.
16812 # FIXME: This hack should be removed a few years after 2.60.
16813 ac_datarootdir_hack=; ac_datarootdir_seen=
16814 ac_sed_dataroot='
16815 /datarootdir/ {
16819 /@datadir@/p
16820 /@docdir@/p
16821 /@infodir@/p
16822 /@localedir@/p
16823 /@mandir@/p'
16824 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16825 *datarootdir*) ac_datarootdir_seen=yes;;
16826 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16828 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16829 _ACEOF
16830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16831 ac_datarootdir_hack='
16832 s&@datadir@&$datadir&g
16833 s&@docdir@&$docdir&g
16834 s&@infodir@&$infodir&g
16835 s&@localedir@&$localedir&g
16836 s&@mandir@&$mandir&g
16837 s&\\\${datarootdir}&$datarootdir&g' ;;
16838 esac
16839 _ACEOF
16841 # Neutralize VPATH when `$srcdir' = `.'.
16842 # Shell code in configure.ac might set extrasub.
16843 # FIXME: do we really want to maintain this feature?
16844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16845 ac_sed_extra="$ac_vpsub
16846 $extrasub
16847 _ACEOF
16848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16851 s|@configure_input@|$ac_sed_conf_input|;t t
16852 s&@top_builddir@&$ac_top_builddir_sub&;t t
16853 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16854 s&@srcdir@&$ac_srcdir&;t t
16855 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16856 s&@top_srcdir@&$ac_top_srcdir&;t t
16857 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16858 s&@builddir@&$ac_builddir&;t t
16859 s&@abs_builddir@&$ac_abs_builddir&;t t
16860 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16861 s&@INSTALL@&$ac_INSTALL&;t t
16862 $ac_datarootdir_hack
16864 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16865 if $ac_cs_awk_getline; then
16866 $AWK -f "$ac_tmp/subs.awk"
16867 else
16868 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16869 fi \
16870 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16872 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16873 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16874 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16875 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16877 which seems to be undefined. Please make sure it is defined" >&5
16878 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16879 which seems to be undefined. Please make sure it is defined" >&2;}
16881 rm -f "$ac_tmp/stdin"
16882 case $ac_file in
16883 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16884 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16885 esac \
16886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16890 # CONFIG_HEADER
16892 if test x"$ac_file" != x-; then
16894 $as_echo "/* $configure_input */" \
16895 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16896 } >"$ac_tmp/config.h" \
16897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16898 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16900 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16901 else
16902 rm -f "$ac_file"
16903 mv "$ac_tmp/config.h" "$ac_file" \
16904 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16906 else
16907 $as_echo "/* $configure_input */" \
16908 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16909 || as_fn_error $? "could not create -" "$LINENO" 5
16914 # CONFIG_LINK
16917 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16919 else
16920 # Prefer the file from the source tree if names are identical.
16921 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16922 ac_source=$srcdir/$ac_source
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16926 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16928 if test ! -r "$ac_source"; then
16929 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16931 rm -f "$ac_file"
16933 # Try a relative symlink, then a hard link, then a copy.
16934 case $ac_source in
16935 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16936 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16937 esac
16938 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16939 ln "$ac_source" "$ac_file" 2>/dev/null ||
16940 cp -p "$ac_source" "$ac_file" ||
16941 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16944 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16945 $as_echo "$as_me: executing $ac_file commands" >&6;}
16947 esac
16950 case $ac_file$ac_mode in
16951 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16952 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
16953 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
16954 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16955 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16956 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16957 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16958 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16959 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16960 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16961 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16962 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16963 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16964 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16965 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16966 "Makefile":C) wine_fn_output_makefile Makefile ;;
16968 esac
16969 done # for ac_tag
16972 as_fn_exit 0
16973 _ACEOF
16974 ac_clean_files=$ac_clean_files_save
16976 test $ac_write_fail = 0 ||
16977 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16980 # configure is writing to config.log, and then calls config.status.
16981 # config.status does its own redirection, appending to config.log.
16982 # Unfortunately, on DOS this fails, as config.log is still kept open
16983 # by configure, so config.status won't be able to write to it; its
16984 # output is simply discarded. So we exec the FD to /dev/null,
16985 # effectively closing config.log, so it can be properly (re)opened and
16986 # appended to by config.status. When coming back to configure, we
16987 # need to make the FD available again.
16988 if test "$no_create" != yes; then
16989 ac_cs_success=:
16990 ac_config_status_args=
16991 test "$silent" = yes &&
16992 ac_config_status_args="$ac_config_status_args --quiet"
16993 exec 5>/dev/null
16994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16995 exec 5>>config.log
16996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16997 # would make configure fail if this is the last instruction.
16998 $ac_cs_success || as_fn_exit 1
17000 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17002 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17006 if test "$no_create" = "yes"
17007 then
17008 exit 0
17011 ac_save_IFS="$IFS"
17012 if test "x$wine_notices != "x; then
17013 echo >&6
17014 IFS="|"
17015 for msg in $wine_notices; do
17016 IFS="$ac_save_IFS"
17017 if test -n "$msg"; then
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17019 $as_echo "$as_me: $msg" >&6;}
17021 done
17023 IFS="|"
17024 for msg in $wine_warnings; do
17025 IFS="$ac_save_IFS"
17026 if test -n "$msg"; then
17027 echo >&2
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17029 $as_echo "$as_me: WARNING: $msg" >&2;}
17031 done
17032 IFS="$ac_save_IFS"
17034 echo "
17035 $as_me: Finished. Do '${ac_make}' to compile Wine.
17036 " >&6