crypt32: Use an empty string as a separator when no separator is desired to avoid...
[wine/hramrach.git] / configure
blob5b48965e10add5c163ad6960a02b769a7f8a535b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Wine 1.1.41.
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 Free Software Foundation,
10 # 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 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: wine-devel@winehq.org about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='Wine'
554 PACKAGE_TARNAME='wine'
555 PACKAGE_VERSION='1.1.41'
556 PACKAGE_STRING='Wine 1.1.41'
557 PACKAGE_BUGREPORT='wine-devel@winehq.org'
558 PACKAGE_URL='http://www.winehq.org'
560 ac_unique_file="server/atom.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 ALL_PROGRAM_BIN_INSTALL_DIRS
600 ALL_PROGRAM_DIRS
601 ALL_TEST_BINARIES
602 ALL_TEST_DIRS
603 ALL_INSTALL_DIRS
604 ALL_IMPORT_LIBS
605 ALL_STATIC_LIBS
606 ALL_STATICLIB_DIRS
607 ALL_TOOL_DIRS
608 ALL_DLL_DIRS
609 ALL_TOP_DIRS
610 ALL_DIRS
611 ALL_SYMLINKS
612 ALL_MAKERULES
613 ALL_WINETEST_DEPENDS
614 ALL_MAKEFILE_DEPENDS
615 LDAPLIBS
616 LIBPOLL
617 LIBDL
618 EXTRA_BINARIES
619 MAIN_BINARY
620 SOCKETLIBS
621 CRTLIBS
622 TOOLSEXT
623 LDPATH
624 BUILTINFLAG
625 EXTRACFLAGS
626 LIBKSTAT
627 LIBMPG123
628 PNGINCL
629 FONTCONFIGINCL
630 CUPSINCL
631 AUDIOIOLIBS
632 ALSALIBS
633 ESDLIBS
634 ESDINCL
635 ESDCONFIG
636 ZLIB
637 FREETYPEINCL
638 FREETYPELIBS
639 ft_devel
640 LCMSLIBS
641 RESOLVLIBS
642 GPHOTO2INCL
643 GPHOTO2LIBS
644 gphoto2port_devel
645 gphoto2_devel
646 SANEINCL
647 sane_devel
648 GNUTLSINCL
649 HALINCL
650 XSLTINCL
651 XML2INCL
652 XML2LIBS
653 NASLIBS
654 X_EXTRA_LIBS
655 X_LIBS
656 X_PRE_LIBS
657 X_CFLAGS
658 XMKMF
659 LIBPTHREAD
660 CROSSTARGET
661 CROSSTEST
662 CROSSCC
663 CARBONLIB
664 LIBOPENAL
665 COREAUDIO
666 DISKARBITRATIONLIB
667 LDEXECFLAGS
668 IOKITLIB
669 COREFOUNDATIONLIB
670 SECURITYLIB
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 PRELINK
686 ICOTOOL
687 RSVG
688 PKG_CONFIG
689 FONTFORGE
690 LINTFLAGS
691 LINT
692 INSTALL_DATA
693 INSTALL_SCRIPT
694 INSTALL_PROGRAM
695 LDCONFIG
696 EGREP
697 GREP
698 LN_S
699 STRIP
700 RANLIB
701 ARFLAGS
702 ac_ct_AR
704 BISON
705 FLEX
706 TOOLSDIR
707 WOW64_DISABLE
708 TARGETFLAGS
709 CPPBIN
710 ac_ct_CXX
711 CXXFLAGS
713 OBJEXT
714 EXEEXT
715 ac_ct_CC
716 CPPFLAGS
717 LDFLAGS
718 CFLAGS
720 SET_MAKE
721 host_os
722 host_vendor
723 host_cpu
724 host
725 build_os
726 build_vendor
727 build_cpu
728 build
729 MAINTAINER_MODE
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_audioio
781 with_capi
782 with_cms
783 with_coreaudio
784 with_cups
785 with_curses
786 with_esd
787 with_fontconfig
788 with_freetype
789 with_gphoto
790 with_glu
791 with_gnutls
792 with_gsm
793 with_hal
794 with_jack
795 with_jpeg
796 with_ldap
797 with_mpg123
798 with_nas
799 with_openal
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_xml
813 with_xrandr
814 with_xrender
815 with_xshape
816 with_xshm
817 with_xslt
818 with_xxf86vm
819 with_wine_tools
820 with_wine64
821 enable_largefile
822 with_x
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
833 CXXFLAGS
836 XMKMF'
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
879 htmldir='${docdir}'
880 dvidir='${docdir}'
881 pdfdir='${docdir}'
882 psdir='${docdir}'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
887 ac_prev=
888 ac_dashdash=
889 for ac_option
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
894 ac_prev=
895 continue
898 case $ac_option in
899 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 *) ac_optarg=yes ;;
901 esac
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
907 ac_dashdash=yes ;;
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
926 --config-cache | -C)
927 cache_file=config.cache ;;
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1061 no_create=yes ;;
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
1130 sbindir=$ac_optarg ;;
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
1141 sharedstatedir=$ac_optarg ;;
1143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
1146 site=$ac_optarg ;;
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1171 -with-* | --with-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1196 "with_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1221 -*) as_fn_error "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information."
1225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1231 esac
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1236 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1243 esac
1244 done
1246 if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error "missing argument to $ac_option"
1251 if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
1254 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
1273 case $ac_val in
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276 esac
1277 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1292 If a cross compiler is detected then cross compile mode will be used." >&2
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301 test "$silent" = yes && exec 6>/dev/null
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error "pwd does not report name of working directory"
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1330 /^X\(\/\/\)$/{
1331 s//\1/
1334 /^X\(\/\).*/{
1335 s//\1/
1338 s/.*/./; q'`
1339 srcdir=$ac_confdir
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 srcdir=..
1343 else
1344 ac_srcdir_defaulted=no
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1353 pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 \`configure' configures Wine 1.1.41 to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1431 _ACEOF
1433 cat <<\_ACEOF
1435 X features:
1436 --x-includes=DIR X include files are in DIR
1437 --x-libraries=DIR X library files are in DIR
1439 System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 _ACEOF
1445 if test -n "$ac_init_help"; then
1446 case $ac_init_help in
1447 short | recursive ) echo "Configuration of Wine 1.1.41:";;
1448 esac
1449 cat <<\_ACEOF
1451 Optional Features:
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --disable-win16 do not include Win16 support
1456 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1457 binaries)
1458 --disable-tests do not build the regression tests
1459 --enable-maintainer-mode
1460 enable maintainer-specific build rules
1461 --disable-largefile omit support for large files
1463 Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --without-alsa do not use the Alsa sound support
1467 --without-audioio do not use the AudioIO sound support
1468 --without-capi do not use CAPI (ISDN support)
1469 --without-cms do not use CMS (color management support)
1470 --without-coreaudio do not use the CoreAudio sound support
1471 --without-cups do not use CUPS
1472 --without-curses do not use (n)curses
1473 --without-esd do not use the EsounD sound support
1474 --without-fontconfig do not use fontconfig
1475 --without-freetype do not use the FreeType library
1476 --without-gphoto do not use gphoto (Digital Camera support)
1477 --without-glu do not use the GLU library
1478 --without-gnutls do not use GnuTLS (schannel support)
1479 --without-gsm do not use libgsm (GSM 06.10 codec support)
1480 --without-hal do not use HAL (dynamic device support)
1481 --without-jack do not use the Jack sound support
1482 --without-jpeg do not use JPEG
1483 --without-ldap do not use LDAP
1484 --without-mpg123 do not use the mpg123 library
1485 --without-nas do not use the NAS sound support
1486 --without-openal do not use OpenAL
1487 --without-opengl do not use OpenGL
1488 --without-openssl do not use OpenSSL
1489 --without-oss do not use the OSS sound support
1490 --without-png do not use PNG
1491 --without-pthread do not use the pthread library
1492 --without-sane do not use SANE (scanner support)
1493 --without-tiff do not use TIFF
1494 --without-v4l do not use v4l1 (v4l support)
1495 --without-xcomposite do not use the Xcomposite extension
1496 --without-xcursor do not use the Xcursor extension
1497 --without-xinerama do not use Xinerama (multi-monitor support)
1498 --without-xinput do not use the Xinput extension
1499 --without-xml do not use XML
1500 --without-xrandr do not use Xrandr (resolution changes)
1501 --without-xrender do not use the Xrender extension
1502 --without-xshape do not use the Xshape extension
1503 --without-xshm do not use XShm (shared memory extension)
1504 --without-xslt do not use XSLT
1505 --without-xxf86vm do not use XFree video mode extension
1506 --with-wine-tools=DIR use Wine tools from directory DIR
1507 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1508 --with-x use the X Window System
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 CXX C++ compiler command
1519 CXXFLAGS C++ compiler flags
1520 CPP C preprocessor
1521 XMKMF Path to xmkmf, Makefile generator for X Window System
1523 Use these variables to override the choices made by `configure' or to help
1524 it to find libraries and programs with nonstandard names/locations.
1526 Report bugs to <wine-devel@winehq.org>.
1527 Wine home page: <http://www.winehq.org>.
1528 _ACEOF
1529 ac_status=$?
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 continue
1538 ac_builddir=.
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1556 case $srcdir in
1557 .) # We are building in place.
1558 ac_srcdir=.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1580 else
1581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1584 done
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589 cat <<\_ACEOF
1590 Wine configure 1.1.41
1591 generated by GNU Autoconf 2.65
1593 Copyright (C) 2009 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597 exit
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1635 ac_retval=1
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638 as_fn_set_status $ac_retval
1640 } # ac_fn_c_try_compile
1642 # ac_fn_cxx_try_compile LINENO
1643 # ----------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_cxx_try_compile ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext
1649 if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_compile") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_cxx_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest.$ac_objext; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1673 ac_retval=1
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676 as_fn_set_status $ac_retval
1678 } # ac_fn_cxx_try_compile
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_link ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext conftest$ac_exeext
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest$ac_exeext && {
1706 test "$cross_compiling" = yes ||
1707 $as_test_x conftest$ac_exeext
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 ac_retval=1
1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718 # interfere with the next link command; also delete a directory that is
1719 # left behind by Apple's compiler. We do this before executing the actions.
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_c_try_link
1726 # ac_fn_c_try_cpp LINENO
1727 # ----------------------
1728 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_cpp ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_cpp conftest.$ac_ext"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } >/dev/null && {
1748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 }; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1756 ac_retval=1
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 as_fn_set_status $ac_retval
1761 } # ac_fn_c_try_cpp
1763 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1766 # the include files in INCLUDES and setting the cache variable VAR
1767 # accordingly.
1768 ac_fn_c_check_header_mongrel ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1775 $as_echo_n "(cached) " >&6
1777 eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 else
1781 # Is the header compilable?
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1783 $as_echo_n "checking $2 usability... " >&6; }
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790 ac_header_compiler=yes
1791 else
1792 ac_header_compiler=no
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1796 $as_echo "$ac_header_compiler" >&6; }
1798 # Is the header present?
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1800 $as_echo_n "checking $2 presence... " >&6; }
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1803 #include <$2>
1804 _ACEOF
1805 if ac_fn_c_try_cpp "$LINENO"; then :
1806 ac_header_preproc=yes
1807 else
1808 ac_header_preproc=no
1810 rm -f conftest.err conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1812 $as_echo "$ac_header_preproc" >&6; }
1814 # So? What about this header?
1815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816 yes:no: )
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1818 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 no:yes:* )
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1824 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1826 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1828 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1830 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 ( cat <<\_ASBOX
1834 ## ------------------------------------ ##
1835 ## Report this to wine-devel@winehq.org ##
1836 ## ------------------------------------ ##
1837 _ASBOX
1838 ) | sed "s/^/$as_me: WARNING: /" >&2
1840 esac
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1844 $as_echo_n "(cached) " >&6
1845 else
1846 eval "$3=\$ac_header_compiler"
1848 eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 } # ac_fn_c_check_header_mongrel
1856 # ac_fn_c_try_run LINENO
1857 # ----------------------
1858 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859 # that executables *can* be run.
1860 ac_fn_c_try_run ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_link"
1864 case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_link") 2>&5
1871 ac_status=$?
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874 { { case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_try") 2>&5
1881 ac_status=$?
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; }; }; then :
1884 ac_retval=0
1885 else
1886 $as_echo "$as_me: program exited with status $ac_status" >&5
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1890 ac_retval=$ac_status
1892 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894 as_fn_set_status $ac_retval
1896 } # ac_fn_c_try_run
1898 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists and can be compiled using the include files in
1901 # INCLUDES, setting the cache variable VAR accordingly.
1902 ac_fn_c_check_header_compile ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 eval "$3=yes"
1917 else
1918 eval "$3=no"
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927 } # ac_fn_c_check_header_compile
1929 # ac_fn_c_check_func LINENO FUNC VAR
1930 # ----------------------------------
1931 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1932 ac_fn_c_check_func ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1938 $as_echo_n "(cached) " >&6
1939 else
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1944 #define $2 innocuous_$2
1946 /* System header to define __stub macros and hopefully few prototypes,
1947 which can conflict with char $2 (); below.
1948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1949 <limits.h> exists even on freestanding compilers. */
1951 #ifdef __STDC__
1952 # include <limits.h>
1953 #else
1954 # include <assert.h>
1955 #endif
1957 #undef $2
1959 /* Override any GCC internal prototype to avoid an error.
1960 Use char because int might match the return type of a GCC
1961 builtin and then its argument prototype would still apply. */
1962 #ifdef __cplusplus
1963 extern "C"
1964 #endif
1965 char $2 ();
1966 /* The GNU C library defines this for functions which it implements
1967 to always fail with ENOSYS. Some functions are actually named
1968 something starting with __ and the normal name is an alias. */
1969 #if defined __stub_$2 || defined __stub___$2
1970 choke me
1971 #endif
1974 main ()
1976 return $2 ();
1978 return 0;
1980 _ACEOF
1981 if ac_fn_c_try_link "$LINENO"; then :
1982 eval "$3=yes"
1983 else
1984 eval "$3=no"
1986 rm -f core conftest.err conftest.$ac_objext \
1987 conftest$ac_exeext conftest.$ac_ext
1989 eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1994 } # ac_fn_c_check_func
1996 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1997 # ----------------------------------------------------
1998 # Tries to find if the field MEMBER exists in type AGGR, after including
1999 # INCLUDES, setting cache variable VAR accordingly.
2000 ac_fn_c_check_member ()
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2004 $as_echo_n "checking for $2.$3... " >&6; }
2005 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2006 $as_echo_n "(cached) " >&6
2007 else
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2012 main ()
2014 static $2 ac_aggr;
2015 if (ac_aggr.$3)
2016 return 0;
2018 return 0;
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 eval "$4=yes"
2023 else
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2028 main ()
2030 static $2 ac_aggr;
2031 if (sizeof ac_aggr.$3)
2032 return 0;
2034 return 0;
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 eval "$4=yes"
2039 else
2040 eval "$4=no"
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 eval ac_res=\$$4
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051 } # ac_fn_c_check_member
2053 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2054 # -------------------------------------------
2055 # Tests whether TYPE exists after having included INCLUDES, setting cache
2056 # variable VAR accordingly.
2057 ac_fn_c_check_type ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 eval "$3=no"
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2070 main ()
2072 if (sizeof ($2))
2073 return 0;
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2083 main ()
2085 if (sizeof (($2)))
2086 return 0;
2088 return 0;
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2093 else
2094 eval "$3=yes"
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 eval ac_res=\$$3
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105 } # ac_fn_c_check_type
2106 cat >config.log <<_ACEOF
2107 This file contains any messages produced by compilers while
2108 running configure, to aid debugging if configure makes a mistake.
2110 It was created by Wine $as_me 1.1.41, which was
2111 generated by GNU Autoconf 2.65. Invocation command line was
2113 $ $0 $@
2115 _ACEOF
2116 exec 5>>config.log
2118 cat <<_ASUNAME
2119 ## --------- ##
2120 ## Platform. ##
2121 ## --------- ##
2123 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2124 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2125 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2126 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2127 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2129 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2130 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2132 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2133 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2134 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2135 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2136 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2137 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2138 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2140 _ASUNAME
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 $as_echo "PATH: $as_dir"
2148 done
2149 IFS=$as_save_IFS
2151 } >&5
2153 cat >&5 <<_ACEOF
2156 ## ----------- ##
2157 ## Core tests. ##
2158 ## ----------- ##
2160 _ACEOF
2163 # Keep a trace of the command line.
2164 # Strip out --no-create and --no-recursion so they do not pile up.
2165 # Strip out --silent because we don't want to record it for future runs.
2166 # Also quote any args containing shell meta-characters.
2167 # Make two passes to allow for proper duplicate-argument suppression.
2168 ac_configure_args=
2169 ac_configure_args0=
2170 ac_configure_args1=
2171 ac_must_keep_next=false
2172 for ac_pass in 1 2
2174 for ac_arg
2176 case $ac_arg in
2177 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2179 | -silent | --silent | --silen | --sile | --sil)
2180 continue ;;
2181 *\'*)
2182 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2183 esac
2184 case $ac_pass in
2185 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2187 as_fn_append ac_configure_args1 " '$ac_arg'"
2188 if test $ac_must_keep_next = true; then
2189 ac_must_keep_next=false # Got value, back to normal.
2190 else
2191 case $ac_arg in
2192 *=* | --config-cache | -C | -disable-* | --disable-* \
2193 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2194 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2195 | -with-* | --with-* | -without-* | --without-* | --x)
2196 case "$ac_configure_args0 " in
2197 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2198 esac
2200 -* ) ac_must_keep_next=true ;;
2201 esac
2203 as_fn_append ac_configure_args " '$ac_arg'"
2205 esac
2206 done
2207 done
2208 { ac_configure_args0=; unset ac_configure_args0;}
2209 { ac_configure_args1=; unset ac_configure_args1;}
2211 # When interrupted or exit'd, cleanup temporary files, and complete
2212 # config.log. We remove comments because anyway the quotes in there
2213 # would cause problems or look ugly.
2214 # WARNING: Use '\'' to represent an apostrophe within the trap.
2215 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2216 trap 'exit_status=$?
2217 # Save into config.log some information that might help in debugging.
2219 echo
2221 cat <<\_ASBOX
2222 ## ---------------- ##
2223 ## Cache variables. ##
2224 ## ---------------- ##
2225 _ASBOX
2226 echo
2227 # The following way of writing the cache mishandles newlines in values,
2229 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2230 eval ac_val=\$$ac_var
2231 case $ac_val in #(
2232 *${as_nl}*)
2233 case $ac_var in #(
2234 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2235 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2236 esac
2237 case $ac_var in #(
2238 _ | IFS | as_nl) ;; #(
2239 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2240 *) { eval $ac_var=; unset $ac_var;} ;;
2241 esac ;;
2242 esac
2243 done
2244 (set) 2>&1 |
2245 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2246 *${as_nl}ac_space=\ *)
2247 sed -n \
2248 "s/'\''/'\''\\\\'\'''\''/g;
2249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2250 ;; #(
2252 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2254 esac |
2255 sort
2257 echo
2259 cat <<\_ASBOX
2260 ## ----------------- ##
2261 ## Output variables. ##
2262 ## ----------------- ##
2263 _ASBOX
2264 echo
2265 for ac_var in $ac_subst_vars
2267 eval ac_val=\$$ac_var
2268 case $ac_val in
2269 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2270 esac
2271 $as_echo "$ac_var='\''$ac_val'\''"
2272 done | sort
2273 echo
2275 if test -n "$ac_subst_files"; then
2276 cat <<\_ASBOX
2277 ## ------------------- ##
2278 ## File substitutions. ##
2279 ## ------------------- ##
2280 _ASBOX
2281 echo
2282 for ac_var in $ac_subst_files
2284 eval ac_val=\$$ac_var
2285 case $ac_val in
2286 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2287 esac
2288 $as_echo "$ac_var='\''$ac_val'\''"
2289 done | sort
2290 echo
2293 if test -s confdefs.h; then
2294 cat <<\_ASBOX
2295 ## ----------- ##
2296 ## confdefs.h. ##
2297 ## ----------- ##
2298 _ASBOX
2299 echo
2300 cat confdefs.h
2301 echo
2303 test "$ac_signal" != 0 &&
2304 $as_echo "$as_me: caught signal $ac_signal"
2305 $as_echo "$as_me: exit $exit_status"
2306 } >&5
2307 rm -f core *.core core.conftest.* &&
2308 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2309 exit $exit_status
2311 for ac_signal in 1 2 13 15; do
2312 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2313 done
2314 ac_signal=0
2316 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2317 rm -f -r conftest* confdefs.h
2319 $as_echo "/* confdefs.h */" > confdefs.h
2321 # Predefined preprocessor variables.
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_NAME "$PACKAGE_NAME"
2325 _ACEOF
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2329 _ACEOF
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2333 _ACEOF
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_STRING "$PACKAGE_STRING"
2337 _ACEOF
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2341 _ACEOF
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_URL "$PACKAGE_URL"
2345 _ACEOF
2348 # Let the site file select an alternate cache file if it wants to.
2349 # Prefer an explicitly selected file to automatically selected ones.
2350 ac_site_file1=NONE
2351 ac_site_file2=NONE
2352 if test -n "$CONFIG_SITE"; then
2353 ac_site_file1=$CONFIG_SITE
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"
2370 done
2372 if test -r "$cache_file"; then
2373 # Some versions of bash will fail to source /dev/null (special files
2374 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2375 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2377 $as_echo "$as_me: loading cache $cache_file" >&6;}
2378 case $cache_file in
2379 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2380 *) . "./$cache_file";;
2381 esac
2383 else
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2385 $as_echo "$as_me: creating cache $cache_file" >&6;}
2386 >$cache_file
2389 # Check that the precious variables saved in the cache have kept the same
2390 # value.
2391 ac_cache_corrupted=false
2392 for ac_var in $ac_precious_vars; do
2393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394 eval ac_new_set=\$ac_env_${ac_var}_set
2395 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396 eval ac_new_val=\$ac_env_${ac_var}_value
2397 case $ac_old_set,$ac_new_set in
2398 set,)
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2401 ac_cache_corrupted=: ;;
2402 ,set)
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2405 ac_cache_corrupted=: ;;
2406 ,);;
2408 if test "x$ac_old_val" != "x$ac_new_val"; then
2409 # differences in whitespace do not lead to failure.
2410 ac_old_val_w=`echo x $ac_old_val`
2411 ac_new_val_w=`echo x $ac_new_val`
2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2414 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415 ac_cache_corrupted=:
2416 else
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2418 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419 eval $ac_var=\$ac_old_val
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2422 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2424 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2425 fi;;
2426 esac
2427 # Pass precious variables to config.status.
2428 if test "$ac_new_set" = set; then
2429 case $ac_new_val in
2430 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2431 *) ac_arg=$ac_var=$ac_new_val ;;
2432 esac
2433 case " $ac_configure_args " in
2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2435 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436 esac
2438 done
2439 if $ac_cache_corrupted; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2443 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2444 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2446 ## -------------------- ##
2447 ## Main body of script. ##
2448 ## -------------------- ##
2450 ac_ext=c
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458 ac_config_headers="$ac_config_headers include/config.h"
2460 ac_aux_dir=
2461 for ac_dir in tools "$srcdir"/tools; do
2462 for ac_t in install-sh install.sh shtool; do
2463 if test -f "$ac_dir/$ac_t"; then
2464 ac_aux_dir=$ac_dir
2465 ac_install_sh="$ac_aux_dir/$ac_t -c"
2466 break 2
2468 done
2469 done
2470 if test -z "$ac_aux_dir"; then
2471 as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2474 # These three variables are undocumented and unsupported,
2475 # and are intended to be withdrawn in a future Autoconf release.
2476 # They can cause serious problems if a builder's source tree is in a directory
2477 # whose full name contains unusual characters.
2478 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2479 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2480 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2486 # Check whether --enable-win16 was given.
2487 if test "${enable_win16+set}" = set; then :
2488 enableval=$enable_win16;
2491 # Check whether --enable-win64 was given.
2492 if test "${enable_win64+set}" = set; then :
2493 enableval=$enable_win64;
2496 # Check whether --enable-tests was given.
2497 if test "${enable_tests+set}" = set; then :
2498 enableval=$enable_tests;
2501 # Check whether --enable-maintainer-mode was given.
2502 if test "${enable_maintainer_mode+set}" = set; then :
2503 enableval=$enable_maintainer_mode;
2504 else
2505 MAINTAINER_MODE=\#
2511 # Check whether --with-alsa was given.
2512 if test "${with_alsa+set}" = set; then :
2513 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2517 # Check whether --with-audioio was given.
2518 if test "${with_audioio+set}" = set; then :
2519 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2523 # Check whether --with-capi was given.
2524 if test "${with_capi+set}" = set; then :
2525 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2529 # Check whether --with-cms was given.
2530 if test "${with_cms+set}" = set; then :
2531 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2535 # Check whether --with-coreaudio was given.
2536 if test "${with_coreaudio+set}" = set; then :
2537 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2541 # Check whether --with-cups was given.
2542 if test "${with_cups+set}" = set; then :
2543 withval=$with_cups;
2547 # Check whether --with-curses was given.
2548 if test "${with_curses+set}" = set; then :
2549 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2553 # Check whether --with-esd was given.
2554 if test "${with_esd+set}" = set; then :
2555 withval=$with_esd;
2559 # Check whether --with-fontconfig was given.
2560 if test "${with_fontconfig+set}" = set; then :
2561 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2565 # Check whether --with-freetype was given.
2566 if test "${with_freetype+set}" = set; then :
2567 withval=$with_freetype;
2571 # Check whether --with-gphoto was given.
2572 if test "${with_gphoto+set}" = set; then :
2573 withval=$with_gphoto;
2577 # Check whether --with-glu was given.
2578 if test "${with_glu+set}" = set; then :
2579 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2583 # Check whether --with-gnutls was given.
2584 if test "${with_gnutls+set}" = set; then :
2585 withval=$with_gnutls;
2589 # Check whether --with-gsm was given.
2590 if test "${with_gsm+set}" = set; then :
2591 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2595 # Check whether --with-hal was given.
2596 if test "${with_hal+set}" = set; then :
2597 withval=$with_hal;
2601 # Check whether --with-jack was given.
2602 if test "${with_jack+set}" = set; then :
2603 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2607 # Check whether --with-jpeg was given.
2608 if test "${with_jpeg+set}" = set; then :
2609 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2613 # Check whether --with-ldap was given.
2614 if test "${with_ldap+set}" = set; then :
2615 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2619 # Check whether --with-mpg123 was given.
2620 if test "${with_mpg123+set}" = set; then :
2621 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2625 # Check whether --with-nas was given.
2626 if test "${with_nas+set}" = set; then :
2627 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2631 # Check whether --with-openal was given.
2632 if test "${with_openal+set}" = set; then :
2633 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2637 # Check whether --with-opengl was given.
2638 if test "${with_opengl+set}" = set; then :
2639 withval=$with_opengl;
2643 # Check whether --with-openssl was given.
2644 if test "${with_openssl+set}" = set; then :
2645 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2649 # Check whether --with-oss was given.
2650 if test "${with_oss+set}" = set; then :
2651 withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2655 # Check whether --with-png was given.
2656 if test "${with_png+set}" = set; then :
2657 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2661 # Check whether --with-pthread was given.
2662 if test "${with_pthread+set}" = set; then :
2663 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2667 # Check whether --with-sane was given.
2668 if test "${with_sane+set}" = set; then :
2669 withval=$with_sane;
2673 # Check whether --with-tiff was given.
2674 if test "${with_tiff+set}" = set; then :
2675 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2679 # Check whether --with-v4l was given.
2680 if test "${with_v4l+set}" = set; then :
2681 withval=$with_v4l;
2685 # Check whether --with-xcomposite was given.
2686 if test "${with_xcomposite+set}" = set; then :
2687 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2691 # Check whether --with-xcursor was given.
2692 if test "${with_xcursor+set}" = set; then :
2693 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2697 # Check whether --with-xinerama was given.
2698 if test "${with_xinerama+set}" = set; then :
2699 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2703 # Check whether --with-xinput was given.
2704 if test "${with_xinput+set}" = set; then :
2705 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2709 # Check whether --with-xml was given.
2710 if test "${with_xml+set}" = set; then :
2711 withval=$with_xml;
2715 # Check whether --with-xrandr was given.
2716 if test "${with_xrandr+set}" = set; then :
2717 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2721 # Check whether --with-xrender was given.
2722 if test "${with_xrender+set}" = set; then :
2723 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2727 # Check whether --with-xshape was given.
2728 if test "${with_xshape+set}" = set; then :
2729 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2733 # Check whether --with-xshm was given.
2734 if test "${with_xshm+set}" = set; then :
2735 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2739 # Check whether --with-xslt was given.
2740 if test "${with_xslt+set}" = set; then :
2741 withval=$with_xslt;
2745 # Check whether --with-xxf86vm was given.
2746 if test "${with_xxf86vm+set}" = set; then :
2747 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
2752 # Check whether --with-wine-tools was given.
2753 if test "${with_wine_tools+set}" = set; then :
2754 withval=$with_wine_tools;
2758 # Check whether --with-wine64 was given.
2759 if test "${with_wine64+set}" = set; then :
2760 withval=$with_wine64;
2764 # Make sure we can run config.sub.
2765 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2766 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2769 $as_echo_n "checking build system type... " >&6; }
2770 if test "${ac_cv_build+set}" = set; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 ac_build_alias=$build_alias
2774 test "x$ac_build_alias" = x &&
2775 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2776 test "x$ac_build_alias" = x &&
2777 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2778 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2779 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2783 $as_echo "$ac_cv_build" >&6; }
2784 case $ac_cv_build in
2785 *-*-*) ;;
2786 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2787 esac
2788 build=$ac_cv_build
2789 ac_save_IFS=$IFS; IFS='-'
2790 set x $ac_cv_build
2791 shift
2792 build_cpu=$1
2793 build_vendor=$2
2794 shift; shift
2795 # Remember, the first character of IFS is used to create $*,
2796 # except with old shells:
2797 build_os=$*
2798 IFS=$ac_save_IFS
2799 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2803 $as_echo_n "checking host system type... " >&6; }
2804 if test "${ac_cv_host+set}" = set; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 if test "x$host_alias" = x; then
2808 ac_cv_host=$ac_cv_build
2809 else
2810 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2811 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2816 $as_echo "$ac_cv_host" >&6; }
2817 case $ac_cv_host in
2818 *-*-*) ;;
2819 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2820 esac
2821 host=$ac_cv_host
2822 ac_save_IFS=$IFS; IFS='-'
2823 set x $ac_cv_host
2824 shift
2825 host_cpu=$1
2826 host_vendor=$2
2827 shift; shift
2828 # Remember, the first character of IFS is used to create $*,
2829 # except with old shells:
2830 host_os=$*
2831 IFS=$ac_save_IFS
2832 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2836 case "$srcdir" in
2837 .) ;;
2838 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2839 as_fn_error "you are building out of the source tree, but the source tree contains object files.
2840 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2841 fi ;;
2842 esac
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2846 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2847 set x ${MAKE-make}
2848 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2849 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 cat >conftest.make <<\_ACEOF
2853 SHELL = /bin/sh
2854 all:
2855 @echo '@@@%%%=$(MAKE)=@@@%%%'
2856 _ACEOF
2857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2858 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2859 *@@@%%%=?*=@@@%%%*)
2860 eval ac_cv_prog_make_${ac_make}_set=yes;;
2862 eval ac_cv_prog_make_${ac_make}_set=no;;
2863 esac
2864 rm -f conftest.make
2866 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2868 $as_echo "yes" >&6; }
2869 SET_MAKE=
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2873 SET_MAKE="MAKE=${MAKE-make}"
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2903 done
2904 done
2905 IFS=$as_save_IFS
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2913 else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2920 if test -z "$ac_cv_prog_CC"; then
2921 ac_ct_CC=$CC
2922 # Extract the first word of "gcc", so it can be a program name with args.
2923 set dummy gcc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$ac_ct_CC"; then
2930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_ac_ct_CC="gcc"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2943 done
2944 done
2945 IFS=$as_save_IFS
2949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2950 if test -n "$ac_ct_CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2952 $as_echo "$ac_ct_CC" >&6; }
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2958 if test "x$ac_ct_CC" = x; then
2959 CC=""
2960 else
2961 case $cross_compiling:$ac_tool_warned in
2962 yes:)
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965 ac_tool_warned=yes ;;
2966 esac
2967 CC=$ac_ct_CC
2969 else
2970 CC="$ac_cv_prog_CC"
2973 if test -z "$CC"; then
2974 if test -n "$ac_tool_prefix"; then
2975 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2976 set dummy ${ac_tool_prefix}cc; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if test "${ac_cv_prog_CC+set}" = set; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992 ac_cv_prog_CC="${ac_tool_prefix}cc"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2996 done
2997 done
2998 IFS=$as_save_IFS
3002 CC=$ac_cv_prog_CC
3003 if test -n "$CC"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3005 $as_echo "$CC" >&6; }
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3014 if test -z "$CC"; then
3015 # Extract the first word of "cc", so it can be a program name with args.
3016 set dummy cc; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if test "${ac_cv_prog_CC+set}" = set; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 if test -n "$CC"; then
3023 ac_cv_prog_CC="$CC" # Let the user override the test.
3024 else
3025 ac_prog_rejected=no
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3034 ac_prog_rejected=yes
3035 continue
3037 ac_cv_prog_CC="cc"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3041 done
3042 done
3043 IFS=$as_save_IFS
3045 if test $ac_prog_rejected = yes; then
3046 # We found a bogon in the path, so make sure we never use it.
3047 set dummy $ac_cv_prog_CC
3048 shift
3049 if test $# != 0; then
3050 # We chose a different compiler from the bogus one.
3051 # However, it has the same basename, so the bogon will be chosen
3052 # first if we set CC to just the basename; use the full file name.
3053 shift
3054 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3059 CC=$ac_cv_prog_CC
3060 if test -n "$CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3070 if test -z "$CC"; then
3071 if test -n "$ac_tool_prefix"; then
3072 for ac_prog in cl.exe
3074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_CC+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3095 done
3096 done
3097 IFS=$as_save_IFS
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3111 test -n "$CC" && break
3112 done
3114 if test -z "$CC"; then
3115 ac_ct_CC=$CC
3116 for ac_prog in cl.exe
3118 # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test -n "$ac_ct_CC"; then
3126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135 ac_cv_prog_ac_ct_CC="$ac_prog"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3139 done
3140 done
3141 IFS=$as_save_IFS
3145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146 if test -n "$ac_ct_CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3148 $as_echo "$ac_ct_CC" >&6; }
3149 else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3155 test -n "$ac_ct_CC" && break
3156 done
3158 if test "x$ac_ct_CC" = x; then
3159 CC=""
3160 else
3161 case $cross_compiling:$ac_tool_warned in
3162 yes:)
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165 ac_tool_warned=yes ;;
3166 esac
3167 CC=$ac_ct_CC
3174 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176 as_fn_error "no acceptable C compiler found in \$PATH
3177 See \`config.log' for more details." "$LINENO" 5; }
3179 # Provide some information about the compiler.
3180 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3181 set X $ac_compile
3182 ac_compiler=$2
3183 for ac_option in --version -v -V -qversion; do
3184 { { ac_try="$ac_compiler $ac_option >&5"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3192 ac_status=$?
3193 if test -s conftest.err; then
3194 sed '10a\
3195 ... rest of stderr output deleted ...
3196 10q' conftest.err >conftest.er1
3197 cat conftest.er1 >&5
3199 rm -f conftest.er1 conftest.err
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }
3202 done
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3208 main ()
3212 return 0;
3214 _ACEOF
3215 ac_clean_files_save=$ac_clean_files
3216 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3217 # Try to create an executable without -o first, disregard a.out.
3218 # It will help us diagnose broken compilers, and finding out an intuition
3219 # of exeext.
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3221 $as_echo_n "checking whether the C compiler works... " >&6; }
3222 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3224 # The possible output files:
3225 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3227 ac_rmfiles=
3228 for ac_file in $ac_files
3230 case $ac_file in
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3232 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3233 esac
3234 done
3235 rm -f $ac_rmfiles
3237 if { { ac_try="$ac_link_default"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243 $as_echo "$ac_try_echo"; } >&5
3244 (eval "$ac_link_default") 2>&5
3245 ac_status=$?
3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247 test $ac_status = 0; }; then :
3248 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3249 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3250 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3251 # so that the user can short-circuit this test for compilers unknown to
3252 # Autoconf.
3253 for ac_file in $ac_files ''
3255 test -f "$ac_file" || continue
3256 case $ac_file in
3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3259 [ab].out )
3260 # We found the default executable, but exeext='' is most
3261 # certainly right.
3262 break;;
3263 *.* )
3264 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3265 then :; else
3266 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3268 # We set ac_cv_exeext here because the later test for it is not
3269 # safe: cross compilers may not add the suffix if given an `-o'
3270 # argument, so we may need to know it at that point already.
3271 # Even if this section looks crufty: it has the advantage of
3272 # actually working.
3273 break;;
3275 break;;
3276 esac
3277 done
3278 test "$ac_cv_exeext" = no && ac_cv_exeext=
3280 else
3281 ac_file=''
3283 if test -z "$ac_file"; then :
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 $as_echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 { as_fn_set_status 77
3292 as_fn_error "C compiler cannot create executables
3293 See \`config.log' for more details." "$LINENO" 5; }; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3296 $as_echo "yes" >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3299 $as_echo_n "checking for C compiler default output file name... " >&6; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3301 $as_echo "$ac_file" >&6; }
3302 ac_exeext=$ac_cv_exeext
3304 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3305 ac_clean_files=$ac_clean_files_save
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3307 $as_echo_n "checking for suffix of executables... " >&6; }
3308 if { { ac_try="$ac_link"
3309 case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 $as_echo "$ac_try_echo"; } >&5
3315 (eval "$ac_link") 2>&5
3316 ac_status=$?
3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }; then :
3319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3320 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3321 # work properly (i.e., refer to `conftest.exe'), while it won't with
3322 # `rm'.
3323 for ac_file in conftest.exe conftest conftest.*; do
3324 test -f "$ac_file" || continue
3325 case $ac_file in
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3328 break;;
3329 * ) break;;
3330 esac
3331 done
3332 else
3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error "cannot compute suffix of executables: cannot compile and link
3336 See \`config.log' for more details." "$LINENO" 5; }
3338 rm -f conftest conftest$ac_cv_exeext
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3340 $as_echo "$ac_cv_exeext" >&6; }
3342 rm -f conftest.$ac_ext
3343 EXEEXT=$ac_cv_exeext
3344 ac_exeext=$EXEEXT
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347 #include <stdio.h>
3349 main ()
3351 FILE *f = fopen ("conftest.out", "w");
3352 return ferror (f) || fclose (f) != 0;
3355 return 0;
3357 _ACEOF
3358 ac_clean_files="$ac_clean_files conftest.out"
3359 # Check that the compiler produces executables we can run. If not, either
3360 # the compiler is broken, or we cross compile.
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3362 $as_echo_n "checking whether we are cross compiling... " >&6; }
3363 if test "$cross_compiling" != yes; then
3364 { { ac_try="$ac_link"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_link") 2>&5
3372 ac_status=$?
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }
3375 if { ac_try='./conftest$ac_cv_exeext'
3376 { { case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_try") 2>&5
3383 ac_status=$?
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }; }; then
3386 cross_compiling=no
3387 else
3388 if test "$cross_compiling" = maybe; then
3389 cross_compiling=yes
3390 else
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error "cannot run C compiled programs.
3394 If you meant to cross compile, use \`--host'.
3395 See \`config.log' for more details." "$LINENO" 5; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3400 $as_echo "$cross_compiling" >&6; }
3402 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3403 ac_clean_files=$ac_clean_files_save
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3405 $as_echo_n "checking for suffix of object files... " >&6; }
3406 if test "${ac_cv_objext+set}" = set; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3413 main ()
3417 return 0;
3419 _ACEOF
3420 rm -f conftest.o conftest.obj
3421 if { { ac_try="$ac_compile"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_compile") 2>&5
3429 ac_status=$?
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }; then :
3432 for ac_file in conftest.o conftest.obj conftest.*; do
3433 test -f "$ac_file" || continue;
3434 case $ac_file in
3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3436 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3437 break;;
3438 esac
3439 done
3440 else
3441 $as_echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error "cannot compute suffix of object files: cannot compile
3447 See \`config.log' for more details." "$LINENO" 5; }
3449 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3452 $as_echo "$ac_cv_objext" >&6; }
3453 OBJEXT=$ac_cv_objext
3454 ac_objext=$OBJEXT
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3456 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3457 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3464 main ()
3466 #ifndef __GNUC__
3467 choke me
3468 #endif
3471 return 0;
3473 _ACEOF
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475 ac_compiler_gnu=yes
3476 else
3477 ac_compiler_gnu=no
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3484 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3485 if test $ac_compiler_gnu = yes; then
3486 GCC=yes
3487 else
3488 GCC=
3490 ac_test_CFLAGS=${CFLAGS+set}
3491 ac_save_CFLAGS=$CFLAGS
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3493 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3494 if test "${ac_cv_prog_cc_g+set}" = set; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 ac_save_c_werror_flag=$ac_c_werror_flag
3498 ac_c_werror_flag=yes
3499 ac_cv_prog_cc_g=no
3500 CFLAGS="-g"
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3505 main ()
3509 return 0;
3511 _ACEOF
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513 ac_cv_prog_cc_g=yes
3514 else
3515 CFLAGS=""
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3520 main ()
3524 return 0;
3526 _ACEOF
3527 if ac_fn_c_try_compile "$LINENO"; then :
3529 else
3530 ac_c_werror_flag=$ac_save_c_werror_flag
3531 CFLAGS="-g"
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3536 main ()
3540 return 0;
3542 _ACEOF
3543 if ac_fn_c_try_compile "$LINENO"; then :
3544 ac_cv_prog_cc_g=yes
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 ac_c_werror_flag=$ac_save_c_werror_flag
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3554 $as_echo "$ac_cv_prog_cc_g" >&6; }
3555 if test "$ac_test_CFLAGS" = set; then
3556 CFLAGS=$ac_save_CFLAGS
3557 elif test $ac_cv_prog_cc_g = yes; then
3558 if test "$GCC" = yes; then
3559 CFLAGS="-g -O2"
3560 else
3561 CFLAGS="-g"
3563 else
3564 if test "$GCC" = yes; then
3565 CFLAGS="-O2"
3566 else
3567 CFLAGS=
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3571 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3572 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 ac_cv_prog_cc_c89=no
3576 ac_save_CC=$CC
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579 #include <stdarg.h>
3580 #include <stdio.h>
3581 #include <sys/types.h>
3582 #include <sys/stat.h>
3583 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3584 struct buf { int x; };
3585 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3586 static char *e (p, i)
3587 char **p;
3588 int i;
3590 return p[i];
3592 static char *f (char * (*g) (char **, int), char **p, ...)
3594 char *s;
3595 va_list v;
3596 va_start (v,p);
3597 s = g (p, va_arg (v,int));
3598 va_end (v);
3599 return s;
3602 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3603 function prototypes and stuff, but not '\xHH' hex character constants.
3604 These don't provoke an error unfortunately, instead are silently treated
3605 as 'x'. The following induces an error, until -std is added to get
3606 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3607 array size at least. It's necessary to write '\x00'==0 to get something
3608 that's true only with -std. */
3609 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3611 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3612 inside strings and character constants. */
3613 #define FOO(x) 'x'
3614 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3616 int test (int i, double x);
3617 struct s1 {int (*f) (int a);};
3618 struct s2 {int (*f) (double a);};
3619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3620 int argc;
3621 char **argv;
3623 main ()
3625 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3627 return 0;
3629 _ACEOF
3630 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3631 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3633 CC="$ac_save_CC $ac_arg"
3634 if ac_fn_c_try_compile "$LINENO"; then :
3635 ac_cv_prog_cc_c89=$ac_arg
3637 rm -f core conftest.err conftest.$ac_objext
3638 test "x$ac_cv_prog_cc_c89" != "xno" && break
3639 done
3640 rm -f conftest.$ac_ext
3641 CC=$ac_save_CC
3644 # AC_CACHE_VAL
3645 case "x$ac_cv_prog_cc_c89" in
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3648 $as_echo "none needed" >&6; } ;;
3649 xno)
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3651 $as_echo "unsupported" >&6; } ;;
3653 CC="$CC $ac_cv_prog_cc_c89"
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3655 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3656 esac
3657 if test "x$ac_cv_prog_cc_c89" != xno; then :
3661 ac_ext=c
3662 ac_cpp='$CPP $CPPFLAGS'
3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667 ac_ext=cpp
3668 ac_cpp='$CXXCPP $CPPFLAGS'
3669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3672 if test -z "$CXX"; then
3673 if test -n "$CCC"; then
3674 CXX=$CCC
3675 else
3676 if test -n "$ac_tool_prefix"; then
3677 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if test "${ac_cv_prog_CXX+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 if test -n "$CXX"; then
3687 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 break 2
3700 done
3701 done
3702 IFS=$as_save_IFS
3706 CXX=$ac_cv_prog_CXX
3707 if test -n "$CXX"; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3709 $as_echo "$CXX" >&6; }
3710 else
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3716 test -n "$CXX" && break
3717 done
3719 if test -z "$CXX"; then
3720 ac_ct_CXX=$CXX
3721 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3723 # Extract the first word of "$ac_prog", so it can be a program name with args.
3724 set dummy $ac_prog; ac_word=$2
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726 $as_echo_n "checking for $ac_word... " >&6; }
3727 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 if test -n "$ac_ct_CXX"; then
3731 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3732 else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3740 ac_cv_prog_ac_ct_CXX="$ac_prog"
3741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 break 2
3744 done
3745 done
3746 IFS=$as_save_IFS
3750 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3751 if test -n "$ac_ct_CXX"; then
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3753 $as_echo "$ac_ct_CXX" >&6; }
3754 else
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 $as_echo "no" >&6; }
3760 test -n "$ac_ct_CXX" && break
3761 done
3763 if test "x$ac_ct_CXX" = x; then
3764 CXX="g++"
3765 else
3766 case $cross_compiling:$ac_tool_warned in
3767 yes:)
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3770 ac_tool_warned=yes ;;
3771 esac
3772 CXX=$ac_ct_CXX
3778 # Provide some information about the compiler.
3779 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3780 set X $ac_compile
3781 ac_compiler=$2
3782 for ac_option in --version -v -V -qversion; do
3783 { { ac_try="$ac_compiler $ac_option >&5"
3784 case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787 esac
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3791 ac_status=$?
3792 if test -s conftest.err; then
3793 sed '10a\
3794 ... rest of stderr output deleted ...
3795 10q' conftest.err >conftest.er1
3796 cat conftest.er1 >&5
3798 rm -f conftest.er1 conftest.err
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800 test $ac_status = 0; }
3801 done
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3804 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3805 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3806 $as_echo_n "(cached) " >&6
3807 else
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3812 main ()
3814 #ifndef __GNUC__
3815 choke me
3816 #endif
3819 return 0;
3821 _ACEOF
3822 if ac_fn_cxx_try_compile "$LINENO"; then :
3823 ac_compiler_gnu=yes
3824 else
3825 ac_compiler_gnu=no
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3832 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3833 if test $ac_compiler_gnu = yes; then
3834 GXX=yes
3835 else
3836 GXX=
3838 ac_test_CXXFLAGS=${CXXFLAGS+set}
3839 ac_save_CXXFLAGS=$CXXFLAGS
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3841 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3842 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3843 $as_echo_n "(cached) " >&6
3844 else
3845 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3846 ac_cxx_werror_flag=yes
3847 ac_cv_prog_cxx_g=no
3848 CXXFLAGS="-g"
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3853 main ()
3857 return 0;
3859 _ACEOF
3860 if ac_fn_cxx_try_compile "$LINENO"; then :
3861 ac_cv_prog_cxx_g=yes
3862 else
3863 CXXFLAGS=""
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3868 main ()
3872 return 0;
3874 _ACEOF
3875 if ac_fn_cxx_try_compile "$LINENO"; then :
3877 else
3878 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3879 CXXFLAGS="-g"
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3884 main ()
3888 return 0;
3890 _ACEOF
3891 if ac_fn_cxx_try_compile "$LINENO"; then :
3892 ac_cv_prog_cxx_g=yes
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3902 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3903 if test "$ac_test_CXXFLAGS" = set; then
3904 CXXFLAGS=$ac_save_CXXFLAGS
3905 elif test $ac_cv_prog_cxx_g = yes; then
3906 if test "$GXX" = yes; then
3907 CXXFLAGS="-g -O2"
3908 else
3909 CXXFLAGS="-g"
3911 else
3912 if test "$GXX" = yes; then
3913 CXXFLAGS="-O2"
3914 else
3915 CXXFLAGS=
3918 ac_ext=c
3919 ac_cpp='$CPP $CPPFLAGS'
3920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924 if test -n "$ac_tool_prefix"; then
3925 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3926 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 if test -n "$CPPBIN"; then
3933 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3942 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3946 done
3947 done
3948 IFS=$as_save_IFS
3952 CPPBIN=$ac_cv_prog_CPPBIN
3953 if test -n "$CPPBIN"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3955 $as_echo "$CPPBIN" >&6; }
3956 else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3963 if test -z "$ac_cv_prog_CPPBIN"; then
3964 ac_ct_CPPBIN=$CPPBIN
3965 # Extract the first word of "cpp", so it can be a program name with args.
3966 set dummy cpp; ac_word=$2
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968 $as_echo_n "checking for $ac_word... " >&6; }
3969 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 if test -n "$ac_ct_CPPBIN"; then
3973 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3974 else
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3982 ac_cv_prog_ac_ct_CPPBIN="cpp"
3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 break 2
3986 done
3987 done
3988 IFS=$as_save_IFS
3992 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3993 if test -n "$ac_ct_CPPBIN"; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
3995 $as_echo "$ac_ct_CPPBIN" >&6; }
3996 else
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 $as_echo "no" >&6; }
4001 if test "x$ac_ct_CPPBIN" = x; then
4002 CPPBIN="cpp"
4003 else
4004 case $cross_compiling:$ac_tool_warned in
4005 yes:)
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4008 ac_tool_warned=yes ;;
4009 esac
4010 CPPBIN=$ac_ct_CPPBIN
4012 else
4013 CPPBIN="$ac_cv_prog_CPPBIN"
4017 cat >>confdefs.h <<_ACEOF
4018 #define EXEEXT "$ac_exeext"
4019 _ACEOF
4022 case $host in
4023 *-darwin*)
4024 if test "x$enable_win64" = "xyes"
4025 then
4026 CC="$CC -m64"
4027 CXX="$CXX -m64"
4028 LD="${LD:-ld} -arch x86_64"
4029 AS="${AS:-as} -arch x86_64"
4030 host_cpu="x86_64"
4031 notice_platform="64-bit "
4032 TARGETFLAGS="-m64"
4034 else
4035 CC="$CC -m32"
4036 CXX="$CXX -m32"
4037 LD="${LD:-ld} -arch i386"
4038 AS="${AS:-as} -arch i386"
4039 host_cpu="i386"
4040 notice_platform="32-bit "
4041 TARGETFLAGS="-m32"
4043 enable_win16=${enable_win16:-yes}
4046 x86_64*)
4047 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4048 then
4049 CC="$CC -m32"
4050 CXX="$CXX -m32"
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4052 $as_echo_n "checking whether $CC works... " >&6; }
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4058 main ()
4062 return 0;
4064 _ACEOF
4065 if ac_fn_c_try_link "$LINENO"; then :
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4067 $as_echo "yes" >&6; }
4068 else
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 $as_echo "no" >&6; }
4071 as_fn_error "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4073 rm -f core conftest.err conftest.$ac_objext \
4074 conftest$ac_exeext conftest.$ac_ext
4075 LD="${LD:-ld} -m elf_i386"
4076 AS="${AS:-as} --32"
4077 host_cpu="i386"
4078 notice_platform="32-bit "
4079 TARGETFLAGS="-m32"
4081 enable_win16=${enable_win16:-yes}
4082 else
4083 if test "x${GCC}" = "xyes"
4084 then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4086 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089 #include <stdarg.h>
4091 main ()
4093 void func(__builtin_ms_va_list *args);
4095 return 0;
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4100 $as_echo "yes" >&6; }
4101 else
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4104 as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 TARGETFLAGS="-m64"
4112 *-mingw32*|*-cygwin*)
4113 enable_win16=${enable_win16:-no}
4114 CFLAGS="$CFLAGS -D_WIN32"
4116 i[3456789]86*)
4117 enable_win16=${enable_win16:-yes}
4119 esac
4121 enable_win16=${enable_win16:-no}
4123 enable_winetest=${enable_winetest:-$enable_tests}
4125 if test -n "$with_wine64"
4126 then
4127 if test "x$enable_win64" = "xyes"
4128 then
4129 as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4130 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4132 WOW64_DISABLE=\#
4134 enable_fonts=${enable_fonts:-no}
4135 enable_include=${enable_include:-no}
4136 enable_server=${enable_server:-no}
4137 enable_tools=${enable_tools:-no}
4138 enable_wineboot=${enable_wineboot:-no}
4139 enable_winedbg=${enable_winedbg:-no}
4140 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib32"
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4144 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4145 if test "${wine_cv_toolsdir+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 wine_cv_toolsdir="$with_wine_tools"
4149 if test -z "$with_wine_tools"; then
4150 if test "$cross_compiling" = "yes"; then
4151 as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4152 elif test -n "$with_wine64"; then
4153 wine_cv_toolsdir="$with_wine64"
4156 if test -z "$wine_cv_toolsdir"; then
4157 wine_cv_toolsdir="\$(TOPOBJDIR)"
4158 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4159 case "$wine_cv_toolsdir" in
4160 /*) ;;
4161 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
4162 esac
4163 else
4164 as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4168 $as_echo "$wine_cv_toolsdir" >&6; }
4169 TOOLSDIR=$wine_cv_toolsdir
4171 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4172 then
4173 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4177 for ac_prog in flex
4179 # Extract the first word of "$ac_prog", so it can be a program name with args.
4180 set dummy $ac_prog; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if test "${ac_cv_prog_FLEX+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if test -n "$FLEX"; then
4187 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196 ac_cv_prog_FLEX="$ac_prog"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4200 done
4201 done
4202 IFS=$as_save_IFS
4206 FLEX=$ac_cv_prog_FLEX
4207 if test -n "$FLEX"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4209 $as_echo "$FLEX" >&6; }
4210 else
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4216 test -n "$FLEX" && break
4217 done
4218 test -n "$FLEX" || FLEX="none"
4220 if test "$FLEX" = "none"
4221 then
4222 as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4225 $as_echo_n "checking whether flex is recent enough... " >&6; }
4226 cat >conftest.l <<EOF
4227 %top{
4228 #include "prediluvian.h"
4232 if $FLEX -t conftest.l >/dev/null 2>&1
4233 then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4235 $as_echo "yes" >&6; }
4236 else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 as_fn_error "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4242 for ac_prog in bison
4244 # Extract the first word of "$ac_prog", so it can be a program name with args.
4245 set dummy $ac_prog; ac_word=$2
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if test "${ac_cv_prog_BISON+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 if test -n "$BISON"; then
4252 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_BISON="$ac_prog"
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4265 done
4266 done
4267 IFS=$as_save_IFS
4271 BISON=$ac_cv_prog_BISON
4272 if test -n "$BISON"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4274 $as_echo "$BISON" >&6; }
4275 else
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4281 test -n "$BISON" && break
4282 done
4283 test -n "$BISON" || BISON="none"
4285 if test "$BISON" = "none"
4286 then
4287 as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4290 if test -n "$ac_tool_prefix"; then
4291 for ac_prog in ar gar
4293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if test "${ac_cv_prog_AR+set}" = set; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 if test -n "$AR"; then
4301 ac_cv_prog_AR="$AR" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4310 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4314 done
4315 done
4316 IFS=$as_save_IFS
4320 AR=$ac_cv_prog_AR
4321 if test -n "$AR"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4323 $as_echo "$AR" >&6; }
4324 else
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4330 test -n "$AR" && break
4331 done
4333 if test -z "$AR"; then
4334 ac_ct_AR=$AR
4335 for ac_prog in ar gar
4337 # Extract the first word of "$ac_prog", so it can be a program name with args.
4338 set dummy $ac_prog; ac_word=$2
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4340 $as_echo_n "checking for $ac_word... " >&6; }
4341 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 if test -n "$ac_ct_AR"; then
4345 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4354 ac_cv_prog_ac_ct_AR="$ac_prog"
4355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4358 done
4359 done
4360 IFS=$as_save_IFS
4364 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4365 if test -n "$ac_ct_AR"; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4367 $as_echo "$ac_ct_AR" >&6; }
4368 else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4374 test -n "$ac_ct_AR" && break
4375 done
4377 if test "x$ac_ct_AR" = x; then
4378 AR="ar"
4379 else
4380 case $cross_compiling:$ac_tool_warned in
4381 yes:)
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4384 ac_tool_warned=yes ;;
4385 esac
4386 AR=$ac_ct_AR
4390 ARFLAGS=rc
4392 if test -n "$ac_tool_prefix"; then
4393 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4394 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -n "$RANLIB"; then
4401 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4414 done
4415 done
4416 IFS=$as_save_IFS
4420 RANLIB=$ac_cv_prog_RANLIB
4421 if test -n "$RANLIB"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4423 $as_echo "$RANLIB" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4431 if test -z "$ac_cv_prog_RANLIB"; then
4432 ac_ct_RANLIB=$RANLIB
4433 # Extract the first word of "ranlib", so it can be a program name with args.
4434 set dummy ranlib; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -n "$ac_ct_RANLIB"; then
4441 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450 ac_cv_prog_ac_ct_RANLIB="ranlib"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4454 done
4455 done
4456 IFS=$as_save_IFS
4460 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4461 if test -n "$ac_ct_RANLIB"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4463 $as_echo "$ac_ct_RANLIB" >&6; }
4464 else
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4469 if test "x$ac_ct_RANLIB" = x; then
4470 RANLIB=":"
4471 else
4472 case $cross_compiling:$ac_tool_warned in
4473 yes:)
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4476 ac_tool_warned=yes ;;
4477 esac
4478 RANLIB=$ac_ct_RANLIB
4480 else
4481 RANLIB="$ac_cv_prog_RANLIB"
4484 if test -n "$ac_tool_prefix"; then
4485 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4486 set dummy ${ac_tool_prefix}strip; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if test "${ac_cv_prog_STRIP+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 if test -n "$STRIP"; then
4493 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 break 2
4506 done
4507 done
4508 IFS=$as_save_IFS
4512 STRIP=$ac_cv_prog_STRIP
4513 if test -n "$STRIP"; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4515 $as_echo "$STRIP" >&6; }
4516 else
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4523 if test -z "$ac_cv_prog_STRIP"; then
4524 ac_ct_STRIP=$STRIP
4525 # Extract the first word of "strip", so it can be a program name with args.
4526 set dummy strip; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 if test -n "$ac_ct_STRIP"; then
4533 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_ac_ct_STRIP="strip"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4546 done
4547 done
4548 IFS=$as_save_IFS
4552 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4553 if test -n "$ac_ct_STRIP"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4555 $as_echo "$ac_ct_STRIP" >&6; }
4556 else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4561 if test "x$ac_ct_STRIP" = x; then
4562 STRIP="strip"
4563 else
4564 case $cross_compiling:$ac_tool_warned in
4565 yes:)
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4568 ac_tool_warned=yes ;;
4569 esac
4570 STRIP=$ac_ct_STRIP
4572 else
4573 STRIP="$ac_cv_prog_STRIP"
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4577 $as_echo_n "checking whether ln -s works... " >&6; }
4578 LN_S=$as_ln_s
4579 if test "$LN_S" = "ln -s"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4581 $as_echo "yes" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4584 $as_echo "no, using $LN_S" >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4588 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4589 if test "${ac_cv_path_GREP+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 if test -z "$GREP"; then
4593 ac_path_GREP_found=false
4594 # Loop through the user's path and test for each of PROGNAME-LIST
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_prog in grep ggrep; do
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4603 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4604 # Check for GNU ac_path_GREP and select it if it is found.
4605 # Check for GNU $ac_path_GREP
4606 case `"$ac_path_GREP" --version 2>&1` in
4607 *GNU*)
4608 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4610 ac_count=0
4611 $as_echo_n 0123456789 >"conftest.in"
4612 while :
4614 cat "conftest.in" "conftest.in" >"conftest.tmp"
4615 mv "conftest.tmp" "conftest.in"
4616 cp "conftest.in" "conftest.nl"
4617 $as_echo 'GREP' >> "conftest.nl"
4618 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4620 as_fn_arith $ac_count + 1 && ac_count=$as_val
4621 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4622 # Best one so far, save it but keep looking for a better one
4623 ac_cv_path_GREP="$ac_path_GREP"
4624 ac_path_GREP_max=$ac_count
4626 # 10*(2^10) chars as input seems more than enough
4627 test $ac_count -gt 10 && break
4628 done
4629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4630 esac
4632 $ac_path_GREP_found && break 3
4633 done
4634 done
4635 done
4636 IFS=$as_save_IFS
4637 if test -z "$ac_cv_path_GREP"; then
4638 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4640 else
4641 ac_cv_path_GREP=$GREP
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4646 $as_echo "$ac_cv_path_GREP" >&6; }
4647 GREP="$ac_cv_path_GREP"
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4651 $as_echo_n "checking for egrep... " >&6; }
4652 if test "${ac_cv_path_EGREP+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4656 then ac_cv_path_EGREP="$GREP -E"
4657 else
4658 if test -z "$EGREP"; then
4659 ac_path_EGREP_found=false
4660 # Loop through the user's path and test for each of PROGNAME-LIST
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_prog in egrep; do
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4669 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4670 # Check for GNU ac_path_EGREP and select it if it is found.
4671 # Check for GNU $ac_path_EGREP
4672 case `"$ac_path_EGREP" --version 2>&1` in
4673 *GNU*)
4674 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4676 ac_count=0
4677 $as_echo_n 0123456789 >"conftest.in"
4678 while :
4680 cat "conftest.in" "conftest.in" >"conftest.tmp"
4681 mv "conftest.tmp" "conftest.in"
4682 cp "conftest.in" "conftest.nl"
4683 $as_echo 'EGREP' >> "conftest.nl"
4684 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686 as_fn_arith $ac_count + 1 && ac_count=$as_val
4687 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4688 # Best one so far, save it but keep looking for a better one
4689 ac_cv_path_EGREP="$ac_path_EGREP"
4690 ac_path_EGREP_max=$ac_count
4692 # 10*(2^10) chars as input seems more than enough
4693 test $ac_count -gt 10 && break
4694 done
4695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4696 esac
4698 $ac_path_EGREP_found && break 3
4699 done
4700 done
4701 done
4702 IFS=$as_save_IFS
4703 if test -z "$ac_cv_path_EGREP"; then
4704 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4706 else
4707 ac_cv_path_EGREP=$EGREP
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4713 $as_echo "$ac_cv_path_EGREP" >&6; }
4714 EGREP="$ac_cv_path_EGREP"
4717 # Extract the first word of "ldconfig", so it can be a program name with args.
4718 set dummy ldconfig; ac_word=$2
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720 $as_echo_n "checking for $ac_word... " >&6; }
4721 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4723 else
4724 case $LDCONFIG in
4725 [\\/]* | ?:[\\/]*)
4726 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in /sbin /usr/sbin $PATH
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 break 2
4740 done
4741 done
4742 IFS=$as_save_IFS
4744 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4746 esac
4748 LDCONFIG=$ac_cv_path_LDCONFIG
4749 if test -n "$LDCONFIG"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4751 $as_echo "$LDCONFIG" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4758 # Find a good install program. We prefer a C program (faster),
4759 # so one script is as good as another. But avoid the broken or
4760 # incompatible versions:
4761 # SysV /etc/install, /usr/sbin/install
4762 # SunOS /usr/etc/install
4763 # IRIX /sbin/install
4764 # AIX /bin/install
4765 # AmigaOS /C/install, which installs bootblocks on floppy discs
4766 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4767 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4768 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4769 # OS/2's system install, which has a completely different semantic
4770 # ./install, which can be erroneously created by make from ./install.sh.
4771 # Reject install programs that cannot install multiple files.
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4773 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4774 if test -z "$INSTALL"; then
4775 if test "${ac_cv_path_install+set}" = set; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
4783 # Account for people who put trailing slashes in PATH elements.
4784 case $as_dir/ in #((
4785 ./ | .// | /[cC]/* | \
4786 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4787 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4788 /usr/ucb/* ) ;;
4790 # OSF1 and SCO ODT 3.0 have their own names for install.
4791 # Don't use installbsd from OSF since it installs stuff as root
4792 # by default.
4793 for ac_prog in ginstall scoinst install; do
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4796 if test $ac_prog = install &&
4797 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4798 # AIX install. It has an incompatible calling convention.
4800 elif test $ac_prog = install &&
4801 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4802 # program-specific install script used by HP pwplus--don't use.
4804 else
4805 rm -rf conftest.one conftest.two conftest.dir
4806 echo one > conftest.one
4807 echo two > conftest.two
4808 mkdir conftest.dir
4809 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4810 test -s conftest.one && test -s conftest.two &&
4811 test -s conftest.dir/conftest.one &&
4812 test -s conftest.dir/conftest.two
4813 then
4814 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4815 break 3
4819 done
4820 done
4822 esac
4824 done
4825 IFS=$as_save_IFS
4827 rm -rf conftest.one conftest.two conftest.dir
4830 if test "${ac_cv_path_install+set}" = set; then
4831 INSTALL=$ac_cv_path_install
4832 else
4833 # As a last resort, use the slow shell script. Don't cache a
4834 # value for INSTALL within a source directory, because that will
4835 # break other packages using the cache if that directory is
4836 # removed, or if the value is a relative name.
4837 INSTALL=$ac_install_sh
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4841 $as_echo "$INSTALL" >&6; }
4843 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4844 # It thinks the first close brace ends the variable substitution.
4845 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4847 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4849 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4851 case "$INSTALL" in
4852 [\\/$]* | ?:[\\/]* ) ;;
4853 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4854 esac
4856 for ac_prog in lclint lint
4858 # Extract the first word of "$ac_prog", so it can be a program name with args.
4859 set dummy $ac_prog; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if test "${ac_cv_prog_LINT+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 if test -n "$LINT"; then
4866 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_prog_LINT="$ac_prog"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4879 done
4880 done
4881 IFS=$as_save_IFS
4885 LINT=$ac_cv_prog_LINT
4886 if test -n "$LINT"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4888 $as_echo "$LINT" >&6; }
4889 else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4895 test -n "$LINT" && break
4896 done
4898 if test "$LINT" = "lint"
4899 then
4900 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4905 for ac_prog in fontforge
4907 # Extract the first word of "$ac_prog", so it can be a program name with args.
4908 set dummy $ac_prog; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 if test -n "$FONTFORGE"; then
4915 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_prog_FONTFORGE="$ac_prog"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4928 done
4929 done
4930 IFS=$as_save_IFS
4934 FONTFORGE=$ac_cv_prog_FONTFORGE
4935 if test -n "$FONTFORGE"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4937 $as_echo "$FONTFORGE" >&6; }
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4944 test -n "$FONTFORGE" && break
4945 done
4946 test -n "$FONTFORGE" || FONTFORGE="false"
4948 for ac_prog in pkg-config
4950 # Extract the first word of "$ac_prog", so it can be a program name with args.
4951 set dummy $ac_prog; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$PKG_CONFIG"; then
4958 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_prog_PKG_CONFIG="$ac_prog"
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4971 done
4972 done
4973 IFS=$as_save_IFS
4977 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4978 if test -n "$PKG_CONFIG"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4980 $as_echo "$PKG_CONFIG" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4987 test -n "$PKG_CONFIG" && break
4988 done
4989 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4991 for ac_prog in rsvg
4993 # Extract the first word of "$ac_prog", so it can be a program name with args.
4994 set dummy $ac_prog; ac_word=$2
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if test "${ac_cv_prog_RSVG+set}" = set; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 if test -n "$RSVG"; then
5001 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5002 else
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5006 IFS=$as_save_IFS
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5010 ac_cv_prog_RSVG="$ac_prog"
5011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 break 2
5014 done
5015 done
5016 IFS=$as_save_IFS
5020 RSVG=$ac_cv_prog_RSVG
5021 if test -n "$RSVG"; then
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5023 $as_echo "$RSVG" >&6; }
5024 else
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5030 test -n "$RSVG" && break
5031 done
5032 test -n "$RSVG" || RSVG="false"
5034 for ac_prog in icotool
5036 # Extract the first word of "$ac_prog", so it can be a program name with args.
5037 set dummy $ac_prog; ac_word=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 if test -n "$ICOTOOL"; then
5044 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_prog_ICOTOOL="$ac_prog"
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5057 done
5058 done
5059 IFS=$as_save_IFS
5063 ICOTOOL=$ac_cv_prog_ICOTOOL
5064 if test -n "$ICOTOOL"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5066 $as_echo "$ICOTOOL" >&6; }
5067 else
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5073 test -n "$ICOTOOL" && break
5074 done
5075 test -n "$ICOTOOL" || ICOTOOL="false"
5078 if test "${enable_maintainer_mode+set}" = set
5079 then
5080 if test "$FONTFORGE" = "false"; then as_fn_append wine_warnings "|fontforge is missing, fonts can't be rebuilt."; fi
5081 if test "$RSVG" = "false"; then as_fn_append wine_warnings "|rsvg is missing, icons can't be rebuilt."; fi
5082 if test "$ICOTOOL" = "false"; then as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."; fi
5085 case $host_cpu in
5086 *i[3456789]86*)
5087 # Extract the first word of "prelink", so it can be a program name with args.
5088 set dummy prelink; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if test "${ac_cv_path_PRELINK+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 case $PRELINK in
5095 [\\/]* | ?:[\\/]*)
5096 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in /sbin /usr/sbin $PATH
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5110 done
5111 done
5112 IFS=$as_save_IFS
5114 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5116 esac
5118 PRELINK=$ac_cv_path_PRELINK
5119 if test -n "$PRELINK"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
5121 $as_echo "$PRELINK" >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5129 esac
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5133 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5134 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 ac_check_lib_save_LIBS=$LIBS
5138 LIBS="-li386 $LIBS"
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5142 /* Override any GCC internal prototype to avoid an error.
5143 Use char because int might match the return type of a GCC
5144 builtin and then its argument prototype would still apply. */
5145 #ifdef __cplusplus
5146 extern "C"
5147 #endif
5148 char i386_set_ldt ();
5150 main ()
5152 return i386_set_ldt ();
5154 return 0;
5156 _ACEOF
5157 if ac_fn_c_try_link "$LINENO"; then :
5158 ac_cv_lib_i386_i386_set_ldt=yes
5159 else
5160 ac_cv_lib_i386_i386_set_ldt=no
5162 rm -f core conftest.err conftest.$ac_objext \
5163 conftest$ac_exeext conftest.$ac_ext
5164 LIBS=$ac_check_lib_save_LIBS
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5167 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5168 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5169 cat >>confdefs.h <<_ACEOF
5170 #define HAVE_LIBI386 1
5171 _ACEOF
5173 LIBS="-li386 $LIBS"
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5178 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5179 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 ac_check_lib_save_LIBS=$LIBS
5183 LIBS="-lossaudio $LIBS"
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5187 /* Override any GCC internal prototype to avoid an error.
5188 Use char because int might match the return type of a GCC
5189 builtin and then its argument prototype would still apply. */
5190 #ifdef __cplusplus
5191 extern "C"
5192 #endif
5193 char _oss_ioctl ();
5195 main ()
5197 return _oss_ioctl ();
5199 return 0;
5201 _ACEOF
5202 if ac_fn_c_try_link "$LINENO"; then :
5203 ac_cv_lib_ossaudio__oss_ioctl=yes
5204 else
5205 ac_cv_lib_ossaudio__oss_ioctl=no
5207 rm -f core conftest.err conftest.$ac_objext \
5208 conftest$ac_exeext conftest.$ac_ext
5209 LIBS=$ac_check_lib_save_LIBS
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5212 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5213 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5214 cat >>confdefs.h <<_ACEOF
5215 #define HAVE_LIBOSSAUDIO 1
5216 _ACEOF
5218 LIBS="-lossaudio $LIBS"
5223 XLIB=""
5225 OPENGL_LIBS=""
5229 # Check whether --enable-largefile was given.
5230 if test "${enable_largefile+set}" = set; then :
5231 enableval=$enable_largefile;
5234 if test "$enable_largefile" != no; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5237 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5238 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 ac_cv_sys_largefile_CC=no
5242 if test "$GCC" != yes; then
5243 ac_save_CC=$CC
5244 while :; do
5245 # IRIX 6.2 and later do not support large files by default,
5246 # so use the C compiler's -n32 option if that helps.
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 #include <sys/types.h>
5250 /* Check that off_t can represent 2**63 - 1 correctly.
5251 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5252 since some C++ compilers masquerading as C compilers
5253 incorrectly reject 9223372036854775807. */
5254 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5255 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5256 && LARGE_OFF_T % 2147483647 == 1)
5257 ? 1 : -1];
5259 main ()
5263 return 0;
5265 _ACEOF
5266 if ac_fn_c_try_compile "$LINENO"; then :
5267 break
5269 rm -f core conftest.err conftest.$ac_objext
5270 CC="$CC -n32"
5271 if ac_fn_c_try_compile "$LINENO"; then :
5272 ac_cv_sys_largefile_CC=' -n32'; break
5274 rm -f core conftest.err conftest.$ac_objext
5275 break
5276 done
5277 CC=$ac_save_CC
5278 rm -f conftest.$ac_ext
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5282 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5283 if test "$ac_cv_sys_largefile_CC" != no; then
5284 CC=$CC$ac_cv_sys_largefile_CC
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5288 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5289 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 while :; do
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5295 #include <sys/types.h>
5296 /* Check that off_t can represent 2**63 - 1 correctly.
5297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5298 since some C++ compilers masquerading as C compilers
5299 incorrectly reject 9223372036854775807. */
5300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5302 && LARGE_OFF_T % 2147483647 == 1)
5303 ? 1 : -1];
5305 main ()
5309 return 0;
5311 _ACEOF
5312 if ac_fn_c_try_compile "$LINENO"; then :
5313 ac_cv_sys_file_offset_bits=no; break
5315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5318 #define _FILE_OFFSET_BITS 64
5319 #include <sys/types.h>
5320 /* Check that off_t can represent 2**63 - 1 correctly.
5321 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5322 since some C++ compilers masquerading as C compilers
5323 incorrectly reject 9223372036854775807. */
5324 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5325 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5326 && LARGE_OFF_T % 2147483647 == 1)
5327 ? 1 : -1];
5329 main ()
5333 return 0;
5335 _ACEOF
5336 if ac_fn_c_try_compile "$LINENO"; then :
5337 ac_cv_sys_file_offset_bits=64; break
5339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5340 ac_cv_sys_file_offset_bits=unknown
5341 break
5342 done
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5345 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5346 case $ac_cv_sys_file_offset_bits in #(
5347 no | unknown) ;;
5349 cat >>confdefs.h <<_ACEOF
5350 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5351 _ACEOF
5353 esac
5354 rm -rf conftest*
5355 if test $ac_cv_sys_file_offset_bits = unknown; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5357 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5358 if test "${ac_cv_sys_large_files+set}" = set; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 while :; do
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 #include <sys/types.h>
5365 /* Check that off_t can represent 2**63 - 1 correctly.
5366 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5367 since some C++ compilers masquerading as C compilers
5368 incorrectly reject 9223372036854775807. */
5369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5371 && LARGE_OFF_T % 2147483647 == 1)
5372 ? 1 : -1];
5374 main ()
5378 return 0;
5380 _ACEOF
5381 if ac_fn_c_try_compile "$LINENO"; then :
5382 ac_cv_sys_large_files=no; break
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #define _LARGE_FILES 1
5388 #include <sys/types.h>
5389 /* Check that off_t can represent 2**63 - 1 correctly.
5390 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5391 since some C++ compilers masquerading as C compilers
5392 incorrectly reject 9223372036854775807. */
5393 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5395 && LARGE_OFF_T % 2147483647 == 1)
5396 ? 1 : -1];
5398 main ()
5402 return 0;
5404 _ACEOF
5405 if ac_fn_c_try_compile "$LINENO"; then :
5406 ac_cv_sys_large_files=1; break
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 ac_cv_sys_large_files=unknown
5410 break
5411 done
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5414 $as_echo "$ac_cv_sys_large_files" >&6; }
5415 case $ac_cv_sys_large_files in #(
5416 no | unknown) ;;
5418 cat >>confdefs.h <<_ACEOF
5419 #define _LARGE_FILES $ac_cv_sys_large_files
5420 _ACEOF
5422 esac
5423 rm -rf conftest*
5428 ac_ext=c
5429 ac_cpp='$CPP $CPPFLAGS'
5430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5434 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5435 # On Suns, sometimes $CPP names a directory.
5436 if test -n "$CPP" && test -d "$CPP"; then
5437 CPP=
5439 if test -z "$CPP"; then
5440 if test "${ac_cv_prog_CPP+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 # Double quotes because CPP needs to be expanded
5444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5446 ac_preproc_ok=false
5447 for ac_c_preproc_warn_flag in '' yes
5449 # Use a header file that comes with gcc, so configuring glibc
5450 # with a fresh cross-compiler works.
5451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5452 # <limits.h> exists even on freestanding compilers.
5453 # On the NeXT, cc -E runs the code through the compiler's parser,
5454 # not just through cpp. "Syntax error" is here to catch this case.
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 #ifdef __STDC__
5458 # include <limits.h>
5459 #else
5460 # include <assert.h>
5461 #endif
5462 Syntax error
5463 _ACEOF
5464 if ac_fn_c_try_cpp "$LINENO"; then :
5466 else
5467 # Broken: fails on valid input.
5468 continue
5470 rm -f conftest.err conftest.$ac_ext
5472 # OK, works on sane cases. Now check whether nonexistent headers
5473 # can be detected and how.
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5476 #include <ac_nonexistent.h>
5477 _ACEOF
5478 if ac_fn_c_try_cpp "$LINENO"; then :
5479 # Broken: success on invalid input.
5480 continue
5481 else
5482 # Passes both tests.
5483 ac_preproc_ok=:
5484 break
5486 rm -f conftest.err conftest.$ac_ext
5488 done
5489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5490 rm -f conftest.err conftest.$ac_ext
5491 if $ac_preproc_ok; then :
5492 break
5495 done
5496 ac_cv_prog_CPP=$CPP
5499 CPP=$ac_cv_prog_CPP
5500 else
5501 ac_cv_prog_CPP=$CPP
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5504 $as_echo "$CPP" >&6; }
5505 ac_preproc_ok=false
5506 for ac_c_preproc_warn_flag in '' yes
5508 # Use a header file that comes with gcc, so configuring glibc
5509 # with a fresh cross-compiler works.
5510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5511 # <limits.h> exists even on freestanding compilers.
5512 # On the NeXT, cc -E runs the code through the compiler's parser,
5513 # not just through cpp. "Syntax error" is here to catch this case.
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516 #ifdef __STDC__
5517 # include <limits.h>
5518 #else
5519 # include <assert.h>
5520 #endif
5521 Syntax error
5522 _ACEOF
5523 if ac_fn_c_try_cpp "$LINENO"; then :
5525 else
5526 # Broken: fails on valid input.
5527 continue
5529 rm -f conftest.err conftest.$ac_ext
5531 # OK, works on sane cases. Now check whether nonexistent headers
5532 # can be detected and how.
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 #include <ac_nonexistent.h>
5536 _ACEOF
5537 if ac_fn_c_try_cpp "$LINENO"; then :
5538 # Broken: success on invalid input.
5539 continue
5540 else
5541 # Passes both tests.
5542 ac_preproc_ok=:
5543 break
5545 rm -f conftest.err conftest.$ac_ext
5547 done
5548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5549 rm -f conftest.err conftest.$ac_ext
5550 if $ac_preproc_ok; then :
5552 else
5553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5555 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5556 See \`config.log' for more details." "$LINENO" 5; }
5559 ac_ext=c
5560 ac_cpp='$CPP $CPPFLAGS'
5561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5567 $as_echo_n "checking for ANSI C header files... " >&6; }
5568 if test "${ac_cv_header_stdc+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 #include <stdlib.h>
5574 #include <stdarg.h>
5575 #include <string.h>
5576 #include <float.h>
5579 main ()
5583 return 0;
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587 ac_cv_header_stdc=yes
5588 else
5589 ac_cv_header_stdc=no
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 if test $ac_cv_header_stdc = yes; then
5594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5597 #include <string.h>
5599 _ACEOF
5600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5601 $EGREP "memchr" >/dev/null 2>&1; then :
5603 else
5604 ac_cv_header_stdc=no
5606 rm -f conftest*
5610 if test $ac_cv_header_stdc = yes; then
5611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614 #include <stdlib.h>
5616 _ACEOF
5617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5618 $EGREP "free" >/dev/null 2>&1; then :
5620 else
5621 ac_cv_header_stdc=no
5623 rm -f conftest*
5627 if test $ac_cv_header_stdc = yes; then
5628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5629 if test "$cross_compiling" = yes; then :
5631 else
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 #include <ctype.h>
5635 #include <stdlib.h>
5636 #if ((' ' & 0x0FF) == 0x020)
5637 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5638 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5639 #else
5640 # define ISLOWER(c) \
5641 (('a' <= (c) && (c) <= 'i') \
5642 || ('j' <= (c) && (c) <= 'r') \
5643 || ('s' <= (c) && (c) <= 'z'))
5644 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5645 #endif
5647 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5649 main ()
5651 int i;
5652 for (i = 0; i < 256; i++)
5653 if (XOR (islower (i), ISLOWER (i))
5654 || toupper (i) != TOUPPER (i))
5655 return 2;
5656 return 0;
5658 _ACEOF
5659 if ac_fn_c_try_run "$LINENO"; then :
5661 else
5662 ac_cv_header_stdc=no
5664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5665 conftest.$ac_objext conftest.beam conftest.$ac_ext
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5671 $as_echo "$ac_cv_header_stdc" >&6; }
5672 if test $ac_cv_header_stdc = yes; then
5674 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5678 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5679 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5680 inttypes.h stdint.h unistd.h
5681 do :
5682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5683 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5685 eval as_val=\$$as_ac_Header
5686 if test "x$as_val" = x""yes; then :
5687 cat >>confdefs.h <<_ACEOF
5688 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5689 _ACEOF
5693 done
5696 for ac_header in \
5697 AL/al.h \
5698 AudioToolbox/AudioConverter.h \
5699 AudioToolbox/AudioFile.h \
5700 AudioToolbox/AudioFileStream.h \
5701 AudioUnit/AudioUnit.h \
5702 Carbon/Carbon.h \
5703 CoreAudio/CoreAudio.h \
5704 DiskArbitration/DiskArbitration.h \
5705 IOKit/IOKitLib.h \
5706 IOKit/hid/IOHIDLib.h \
5707 OpenAL/al.h \
5708 alias.h \
5709 alsa/asoundlib.h \
5710 arpa/inet.h \
5711 arpa/nameser.h \
5712 asm/types.h \
5713 capi20.h \
5714 curses.h \
5715 direct.h \
5716 dirent.h \
5717 dlfcn.h \
5718 elf.h \
5719 float.h \
5720 fnmatch.h \
5721 fontconfig/fontconfig.h \
5722 getopt.h \
5723 grp.h \
5724 gsm.h \
5725 gsm/gsm.h \
5726 ieeefp.h \
5727 inet/mib2.h \
5728 io.h \
5729 jack/jack.h \
5730 jpeglib.h \
5731 kstat.h \
5732 lber.h \
5733 lcms.h \
5734 lcms/lcms.h \
5735 ldap.h \
5736 libaudioio.h \
5737 link.h \
5738 linux/cdrom.h \
5739 linux/compiler.h \
5740 linux/hdreg.h \
5741 linux/input.h \
5742 linux/ioctl.h \
5743 linux/joystick.h \
5744 linux/major.h \
5745 linux/param.h \
5746 linux/serial.h \
5747 linux/types.h \
5748 linux/ucdrom.h \
5749 mach-o/nlist.h \
5750 mach/mach.h \
5751 mach/machine.h \
5752 machine/cpu.h \
5753 machine/limits.h \
5754 machine/soundcard.h \
5755 mntent.h \
5756 mpg123.h \
5757 ncurses.h \
5758 netdb.h \
5759 netinet/in.h \
5760 netinet/in_systm.h \
5761 netinet/tcp.h \
5762 netinet/tcp_fsm.h \
5763 openssl/err.h \
5764 openssl/ssl.h \
5765 png.h \
5766 poll.h \
5767 port.h \
5768 process.h \
5769 pthread.h \
5770 pwd.h \
5771 regex.h \
5772 sched.h \
5773 scsi/scsi.h \
5774 scsi/scsi_ioctl.h \
5775 scsi/sg.h \
5776 soundcard.h \
5777 stdbool.h \
5778 stdint.h \
5779 strings.h \
5780 stropts.h \
5781 sys/asoundlib.h \
5782 sys/cdio.h \
5783 sys/elf32.h \
5784 sys/epoll.h \
5785 sys/errno.h \
5786 sys/event.h \
5787 sys/exec_elf.h \
5788 sys/filio.h \
5789 sys/inotify.h \
5790 sys/ioctl.h \
5791 sys/ipc.h \
5792 sys/limits.h \
5793 sys/link.h \
5794 sys/mman.h \
5795 sys/modem.h \
5796 sys/msg.h \
5797 sys/mtio.h \
5798 sys/param.h \
5799 sys/poll.h \
5800 sys/prctl.h \
5801 sys/protosw.h \
5802 sys/ptrace.h \
5803 sys/resource.h \
5804 sys/scsiio.h \
5805 sys/shm.h \
5806 sys/signal.h \
5807 sys/socket.h \
5808 sys/socketvar.h \
5809 sys/sockio.h \
5810 sys/soundcard.h \
5811 sys/statvfs.h \
5812 sys/strtio.h \
5813 sys/syscall.h \
5814 sys/tihdr.h \
5815 sys/time.h \
5816 sys/timeout.h \
5817 sys/times.h \
5818 sys/uio.h \
5819 sys/un.h \
5820 sys/utsname.h \
5821 sys/vm86.h \
5822 sys/wait.h \
5823 syscall.h \
5824 termios.h \
5825 tiffio.h \
5826 unistd.h \
5827 utime.h \
5828 valgrind/memcheck.h \
5829 valgrind/valgrind.h \
5830 zlib.h
5832 do :
5833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5834 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5835 eval as_val=\$$as_ac_Header
5836 if test "x$as_val" = x""yes; then :
5837 cat >>confdefs.h <<_ACEOF
5838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5839 _ACEOF
5843 done
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5846 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5847 if test "${ac_cv_header_stat_broken+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5852 #include <sys/types.h>
5853 #include <sys/stat.h>
5855 #if defined S_ISBLK && defined S_IFDIR
5856 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5857 #endif
5859 #if defined S_ISBLK && defined S_IFCHR
5860 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5861 #endif
5863 #if defined S_ISLNK && defined S_IFREG
5864 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5865 #endif
5867 #if defined S_ISSOCK && defined S_IFREG
5868 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5869 #endif
5871 _ACEOF
5872 if ac_fn_c_try_compile "$LINENO"; then :
5873 ac_cv_header_stat_broken=no
5874 else
5875 ac_cv_header_stat_broken=yes
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5880 $as_echo "$ac_cv_header_stat_broken" >&6; }
5881 if test $ac_cv_header_stat_broken = yes; then
5883 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5889 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5890 do :
5891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5892 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5893 #ifdef HAVE_SYS_PARAM_H
5894 # include <sys/param.h>
5895 #endif
5897 eval as_val=\$$as_ac_Header
5898 if test "x$as_val" = x""yes; then :
5899 cat >>confdefs.h <<_ACEOF
5900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5901 _ACEOF
5905 done
5908 for ac_header in \
5909 netinet/ip.h \
5910 net/if.h \
5911 net/if_arp.h \
5912 net/if_dl.h \
5913 net/if_types.h \
5914 net/route.h \
5915 netinet/if_ether.h \
5916 netinet/if_inarp.h \
5917 netinet/in_pcb.h \
5918 netinet/ip_icmp.h \
5919 netinet/ip_var.h \
5920 netinet/udp.h \
5921 netipx/ipx.h \
5923 do :
5924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5925 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5926 #ifdef HAVE_SYS_SOCKET_H
5927 # include <sys/socket.h>
5928 #endif
5929 #ifdef HAVE_SYS_SOCKETVAR_H
5930 # include <sys/socketvar.h>
5931 #endif
5932 #ifdef HAVE_NET_ROUTE_H
5933 # include <net/route.h>
5934 #endif
5935 #ifdef HAVE_NETINET_IN_H
5936 # include <netinet/in.h>
5937 #endif
5938 #ifdef HAVE_NETINET_IN_SYSTM_H
5939 # include <netinet/in_systm.h>
5940 #endif
5941 #ifdef HAVE_NET_IF_H
5942 # include <net/if.h>
5943 #endif
5944 #ifdef HAVE_NETINET_IP_H
5945 # include <netinet/ip.h>
5946 #endif
5948 eval as_val=\$$as_ac_Header
5949 if test "x$as_val" = x""yes; then :
5950 cat >>confdefs.h <<_ACEOF
5951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5952 _ACEOF
5956 done
5959 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5960 do :
5961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5962 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5963 #ifdef HAVE_ALIAS_H
5964 # include <alias.h>
5965 #endif
5966 #ifdef HAVE_SYS_SOCKET_H
5967 # include <sys/socket.h>
5968 #endif
5969 #ifdef HAVE_SYS_SOCKETVAR_H
5970 # include <sys/socketvar.h>
5971 #endif
5972 #ifdef HAVE_SYS_TIMEOUT_H
5973 # include <sys/timeout.h>
5974 #endif
5975 #ifdef HAVE_NETINET_IN_H
5976 # include <netinet/in.h>
5977 #endif
5978 #ifdef HAVE_NETINET_IN_SYSTM_H
5979 # include <netinet/in_systm.h>
5980 #endif
5981 #ifdef HAVE_NETINET_IP_H
5982 # include <netinet/ip.h>
5983 #endif
5984 #ifdef HAVE_NETINET_IP_VAR_H
5985 # include <netinet/ip_var.h>
5986 #endif
5987 #ifdef HAVE_NETINET_IP_ICMP_H
5988 # include <netinet/ip_icmp.h>
5989 #endif
5990 #ifdef HAVE_NETINET_UDP_H
5991 # include <netinet/udp.h>
5992 #endif
5993 #ifdef HAVE_NETINET_TCP_H
5994 # include <netinet/tcp.h>
5995 #endif
5996 #ifdef HAVE_NETINET_TCP_TIMER_H
5997 #include <netinet/tcp_timer.h>
5998 #endif
6000 eval as_val=\$$as_ac_Header
6001 if test "x$as_val" = x""yes; then :
6002 cat >>confdefs.h <<_ACEOF
6003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6004 _ACEOF
6008 done
6011 for ac_header in linux/ipx.h linux/irda.h
6012 do :
6013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6014 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6015 #ifdef HAVE_ASM_TYPES_H
6016 # include <asm/types.h>
6017 #endif
6018 #ifdef HAVE_SYS_SOCKET_H
6019 # include <sys/socket.h>
6020 #endif
6021 #ifdef HAVE_LINUX_TYPES_H
6022 # include <linux/types.h>
6023 #endif
6025 eval as_val=\$$as_ac_Header
6026 if test "x$as_val" = x""yes; then :
6027 cat >>confdefs.h <<_ACEOF
6028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6029 _ACEOF
6033 done
6036 for ac_header in mach-o/dyld_images.h
6037 do :
6038 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6039 # include <stdbool.h>
6040 #endif
6041 #ifdef HAVE_STDINT_H
6042 # include <stdint.h>
6043 #endif
6045 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6046 cat >>confdefs.h <<_ACEOF
6047 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6048 _ACEOF
6052 done
6055 for ac_header in resolv.h
6056 do :
6057 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6058 #ifdef HAVE_SYS_SOCKET_H
6059 # include <sys/socket.h>
6060 #endif
6061 #ifdef HAVE_NETINET_IN_H
6062 # include <netinet/in.h>
6063 #endif
6064 #ifdef HAVE_ARPA_NAMESER_H
6065 # include <arpa/nameser.h>
6066 #endif
6068 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6069 cat >>confdefs.h <<_ACEOF
6070 #define HAVE_RESOLV_H 1
6071 _ACEOF
6075 done
6078 for ac_header in ifaddrs.h
6079 do :
6080 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6082 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6083 cat >>confdefs.h <<_ACEOF
6084 #define HAVE_IFADDRS_H 1
6085 _ACEOF
6089 done
6092 for ac_header in ucontext.h
6093 do :
6094 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6096 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6097 cat >>confdefs.h <<_ACEOF
6098 #define HAVE_UCONTEXT_H 1
6099 _ACEOF
6103 done
6106 for ac_header in sys/thr.h
6107 do :
6108 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6109 #ifdef HAVE_UCONTEXT_H
6110 #include <ucontext.h>
6111 #endif
6113 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6114 cat >>confdefs.h <<_ACEOF
6115 #define HAVE_SYS_THR_H 1
6116 _ACEOF
6120 done
6123 for ac_header in pthread_np.h
6124 do :
6125 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6126 #include <pthread.h>
6127 #endif
6129 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6130 cat >>confdefs.h <<_ACEOF
6131 #define HAVE_PTHREAD_NP_H 1
6132 _ACEOF
6136 done
6139 for ac_header in linux/videodev.h
6140 do :
6141 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6142 #include <sys/time.h>
6143 #endif
6144 #include <sys/types.h>
6145 #ifdef HAVE_ASM_TYPES_H
6146 #include <asm/types.h>
6147 #endif
6149 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6150 cat >>confdefs.h <<_ACEOF
6151 #define HAVE_LINUX_VIDEODEV_H 1
6152 _ACEOF
6156 done
6159 for ac_header in linux/capi.h
6160 do :
6161 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6163 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6164 cat >>confdefs.h <<_ACEOF
6165 #define HAVE_LINUX_CAPI_H 1
6166 _ACEOF
6170 done
6174 DLLEXT=""
6176 DLLFLAGS="-D_REENTRANT"
6178 LDSHARED=""
6180 LDDLLFLAGS=""
6182 LIBEXT="so"
6184 IMPLIBEXT="def"
6186 LDRPATH_INSTALL=""
6188 LDRPATH_LOCAL=""
6190 STATIC_IMPLIBEXT="def.a"
6191 # Extract the first word of "ldd", so it can be a program name with args.
6192 set dummy ldd; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if test "${ac_cv_path_LDD+set}" = set; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 case $LDD in
6199 [\\/]* | ?:[\\/]*)
6200 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 as_dummy="/sbin:/usr/sbin:$PATH"
6205 for as_dir in $as_dummy
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 break 2
6215 done
6216 done
6217 IFS=$as_save_IFS
6219 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6221 esac
6223 LDD=$ac_cv_path_LDD
6224 if test -n "$LDD"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6226 $as_echo "$LDD" >&6; }
6227 else
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6234 case $host_os in
6235 cygwin*|mingw32*)
6236 if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6238 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 if test -n "$DLLTOOL"; then
6245 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6250 IFS=$as_save_IFS
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6254 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 break 2
6258 done
6259 done
6260 IFS=$as_save_IFS
6264 DLLTOOL=$ac_cv_prog_DLLTOOL
6265 if test -n "$DLLTOOL"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6267 $as_echo "$DLLTOOL" >&6; }
6268 else
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6275 if test -z "$ac_cv_prog_DLLTOOL"; then
6276 ac_ct_DLLTOOL=$DLLTOOL
6277 # Extract the first word of "dlltool", so it can be a program name with args.
6278 set dummy dlltool; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 if test -n "$ac_ct_DLLTOOL"; then
6285 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6298 done
6299 done
6300 IFS=$as_save_IFS
6304 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6305 if test -n "$ac_ct_DLLTOOL"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6307 $as_echo "$ac_ct_DLLTOOL" >&6; }
6308 else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6313 if test "x$ac_ct_DLLTOOL" = x; then
6314 DLLTOOL="false"
6315 else
6316 case $cross_compiling:$ac_tool_warned in
6317 yes:)
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320 ac_tool_warned=yes ;;
6321 esac
6322 DLLTOOL=$ac_ct_DLLTOOL
6324 else
6325 DLLTOOL="$ac_cv_prog_DLLTOOL"
6328 if test -n "$ac_tool_prefix"; then
6329 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6330 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 if test -n "$DLLWRAP"; then
6337 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 break 2
6350 done
6351 done
6352 IFS=$as_save_IFS
6356 DLLWRAP=$ac_cv_prog_DLLWRAP
6357 if test -n "$DLLWRAP"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6359 $as_echo "$DLLWRAP" >&6; }
6360 else
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6367 if test -z "$ac_cv_prog_DLLWRAP"; then
6368 ac_ct_DLLWRAP=$DLLWRAP
6369 # Extract the first word of "dllwrap", so it can be a program name with args.
6370 set dummy dllwrap; ac_word=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 if test -n "$ac_ct_DLLWRAP"; then
6377 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6378 else
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 break 2
6390 done
6391 done
6392 IFS=$as_save_IFS
6396 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6397 if test -n "$ac_ct_DLLWRAP"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6399 $as_echo "$ac_ct_DLLWRAP" >&6; }
6400 else
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6405 if test "x$ac_ct_DLLWRAP" = x; then
6406 DLLWRAP="false"
6407 else
6408 case $cross_compiling:$ac_tool_warned in
6409 yes:)
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6412 ac_tool_warned=yes ;;
6413 esac
6414 DLLWRAP=$ac_ct_DLLWRAP
6416 else
6417 DLLWRAP="$ac_cv_prog_DLLWRAP"
6420 if test "$DLLWRAP" = "false"; then
6421 LIBEXT="a"
6422 else
6423 LIBEXT="dll"
6425 IMPLIBEXT="a"
6426 STATIC_IMPLIBEXT="a"
6427 enable_iphlpapi=${enable_iphlpapi:-no}
6428 enable_kernel32=${enable_kernel32:-no}
6429 enable_msvcrt=${enable_msvcrt:-no}
6430 enable_ntdll=${enable_ntdll:-no}
6431 enable_ws2_32=${enable_ws2_32:-no}
6432 enable_loader=${enable_loader:-no}
6433 enable_server=${enable_server:-no}
6434 with_x=${with_x:-no}
6435 with_pthread=${with_pthread:-no}
6437 darwin*|macosx*)
6438 DLLEXT=".so"
6439 LIBEXT="dylib"
6440 DLLFLAGS="$DLLFLAGS -fPIC"
6441 LDDLLFLAGS="-bundle -multiply_defined suppress"
6442 LIBWINE_LDFLAGS="-multiply_defined suppress"
6443 LDSHARED="\$(CC) -dynamiclib"
6444 STRIP="$STRIP -x"
6445 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6446 SECURITYLIB="-framework Security -framework CoreFoundation"
6448 COREFOUNDATIONLIB="-framework CoreFoundation"
6450 IOKITLIB="-framework IOKit -framework CoreFoundation"
6452 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6454 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6455 then
6456 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6459 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6460 then
6461 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6463 ac_save_LIBS="$LIBS"
6464 if test "$ac_cv_header_AudioToolbox_AudioFile_h" = "yes"
6465 then
6466 LIBS="$LIBS $COREAUDIO"
6467 for ac_func in AudioFileStreamOpen
6468 do :
6469 ac_fn_c_check_func "$LINENO" "AudioFileStreamOpen" "ac_cv_func_AudioFileStreamOpen"
6470 if test "x$ac_cv_func_AudioFileStreamOpen" = x""yes; then :
6471 cat >>confdefs.h <<_ACEOF
6472 #define HAVE_AUDIOFILESTREAMOPEN 1
6473 _ACEOF
6476 done
6478 LIBS="$ac_save_LIBS"
6480 test "x$ac_cv_func_AudioFileStreamOpen" = xyes || as_fn_append wine_notices "|AudioToolbox version too old, mp3 codec won't be supported."
6482 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6483 then
6484 LIBOPENAL="-framework OpenAL"
6486 ac_cv_lib_openal_alGetSource3i=yes
6488 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6489 then
6490 ac_save_LIBS="$LIBS"
6491 LIBS="$LIBS $IOKITLIB"
6492 for ac_func in IOHIDManagerCreate
6493 do :
6494 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6495 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6496 cat >>confdefs.h <<_ACEOF
6497 #define HAVE_IOHIDMANAGERCREATE 1
6498 _ACEOF
6501 done
6503 LIBS="$ac_save_LIBS"
6505 case $host_cpu in
6506 *powerpc*)
6507 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6508 esac
6509 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6510 then
6511 CARBONLIB="-framework Carbon"
6513 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6515 if test "x$enable_win16" = "xyes"
6516 then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6518 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6519 if test "$cross_compiling" = yes; then :
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6521 $as_echo "cross-compiling, assuming yes" >&6; }
6522 else
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 asm(".text\n"
6526 "bad:\tnop;nop\n"
6527 "good:\tnop;nop\n\t"
6528 ".globl _testfunc\n"
6529 "_testfunc:\tcallw good");
6530 extern void testfunc();
6532 main ()
6534 unsigned short *p = (unsigned short *)testfunc;
6535 return p[0] != 0xe866 || p[1] != 0xfffa
6537 return 0;
6539 _ACEOF
6540 if ac_fn_c_try_run "$LINENO"; then :
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6542 $as_echo "yes" >&6; }
6543 else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6546 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
6548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6549 conftest.$ac_objext conftest.beam conftest.$ac_ext
6555 DLLFLAGS="$DLLFLAGS -fPIC"
6556 DLLEXT=".so"
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6558 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6559 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 ac_wine_try_cflags_saved=$CFLAGS
6563 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6566 void myfunc() {}
6567 _ACEOF
6568 if ac_fn_c_try_link "$LINENO"; then :
6569 ac_cv_c_dll_gnuelf="yes"
6570 else
6571 ac_cv_c_dll_gnuelf="no"
6573 rm -f core conftest.err conftest.$ac_objext \
6574 conftest$ac_exeext conftest.$ac_ext
6575 CFLAGS=$ac_wine_try_cflags_saved
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6578 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6579 if test "$ac_cv_c_dll_gnuelf" = "yes"
6580 then
6581 LDSHARED="\$(CC) -shared"
6582 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6584 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6585 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 ac_wine_try_cflags_saved=$CFLAGS
6589 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 int main(int argc, char **argv) { return 0; }
6593 _ACEOF
6594 if ac_fn_c_try_link "$LINENO"; then :
6595 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6596 else
6597 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6599 rm -f core conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6601 CFLAGS=$ac_wine_try_cflags_saved
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6604 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6605 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6606 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6607 else
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6609 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6610 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6611 $as_echo_n "(cached) " >&6
6612 else
6613 ac_wine_try_cflags_saved=$CFLAGS
6614 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6617 int main(int argc, char **argv) { return 0; }
6618 _ACEOF
6619 if ac_fn_c_try_link "$LINENO"; then :
6620 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6621 else
6622 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6624 rm -f core conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6626 CFLAGS=$ac_wine_try_cflags_saved
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6629 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6630 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6631 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6636 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6637 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 ac_wine_try_cflags_saved=$CFLAGS
6641 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 int main(int argc, char **argv) { return 0; }
6645 _ACEOF
6646 if ac_fn_c_try_link "$LINENO"; then :
6647 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6648 else
6649 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6651 rm -f core conftest.err conftest.$ac_objext \
6652 conftest$ac_exeext conftest.$ac_ext
6653 CFLAGS=$ac_wine_try_cflags_saved
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6656 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6657 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6658 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6661 { $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
6662 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6663 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 ac_wine_try_cflags_saved=$CFLAGS
6667 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6670 int main(int argc, char **argv) { return 0; }
6671 _ACEOF
6672 if ac_fn_c_try_link "$LINENO"; then :
6673 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6674 else
6675 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6677 rm -f core conftest.err conftest.$ac_objext \
6678 conftest$ac_exeext conftest.$ac_ext
6679 CFLAGS=$ac_wine_try_cflags_saved
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6682 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6683 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6684 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6687 echo '{ global: *; };' >conftest.map
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6689 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6690 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 ac_wine_try_cflags_saved=$CFLAGS
6694 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 int main(int argc, char **argv) { return 0; }
6698 _ACEOF
6699 if ac_fn_c_try_link "$LINENO"; then :
6700 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6701 else
6702 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6704 rm -f core conftest.err conftest.$ac_objext \
6705 conftest$ac_exeext conftest.$ac_ext
6706 CFLAGS=$ac_wine_try_cflags_saved
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6709 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6710 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6711 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6713 rm -f conftest.map
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6716 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6717 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 ac_wine_try_cflags_saved=$CFLAGS
6721 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6724 int main(int argc, char **argv) { return 0; }
6725 _ACEOF
6726 if ac_fn_c_try_link "$LINENO"; then :
6727 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6728 else
6729 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6731 rm -f core conftest.err conftest.$ac_objext \
6732 conftest$ac_exeext conftest.$ac_ext
6733 CFLAGS=$ac_wine_try_cflags_saved
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6736 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6737 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6738 LDEXECFLAGS="-Wl,--export-dynamic"
6742 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6744 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 ac_wine_try_cflags_saved=$CFLAGS
6749 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6752 int main(int argc, char **argv) { return 0; }
6753 _ACEOF
6754 if ac_fn_c_try_link "$LINENO"; then :
6755 eval "$as_ac_var=yes"
6756 else
6757 eval "$as_ac_var=no"
6759 rm -f core conftest.err conftest.$ac_objext \
6760 conftest$ac_exeext conftest.$ac_ext
6761 CFLAGS=$ac_wine_try_cflags_saved
6763 eval ac_res=\$$as_ac_var
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6765 $as_echo "$ac_res" >&6; }
6766 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6767 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6768 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6769 else
6770 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6772 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6774 $as_echo_n "(cached) " >&6
6775 else
6776 ac_wine_try_cflags_saved=$CFLAGS
6777 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 int main(int argc, char **argv) { return 0; }
6781 _ACEOF
6782 if ac_fn_c_try_link "$LINENO"; then :
6783 eval "$as_ac_var=yes"
6784 else
6785 eval "$as_ac_var=no"
6787 rm -f core conftest.err conftest.$ac_objext \
6788 conftest$ac_exeext conftest.$ac_ext
6789 CFLAGS=$ac_wine_try_cflags_saved
6791 eval ac_res=\$$as_ac_var
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6793 $as_echo "$ac_res" >&6; }
6794 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6795 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6796 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6801 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6802 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 ac_wine_try_cflags_saved=$CFLAGS
6806 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6809 int main(int argc, char **argv) { return 0; }
6810 _ACEOF
6811 if ac_fn_c_try_link "$LINENO"; then :
6812 ac_cv_cflags__Wl___enable_new_dtags=yes
6813 else
6814 ac_cv_cflags__Wl___enable_new_dtags=no
6816 rm -f core conftest.err conftest.$ac_objext \
6817 conftest$ac_exeext conftest.$ac_ext
6818 CFLAGS=$ac_wine_try_cflags_saved
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6821 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6822 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6823 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6826 case $host_cpu in
6827 *i[3456789]86* | x86_64)
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6829 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6830 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then :
6831 $as_echo_n "(cached) " >&6
6832 else
6833 ac_wine_try_cflags_saved=$CFLAGS
6834 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837 int main(int argc, char **argv) { return 0; }
6838 _ACEOF
6839 if ac_fn_c_try_link "$LINENO"; then :
6840 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6841 else
6842 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
6844 rm -f core conftest.err conftest.$ac_objext \
6845 conftest$ac_exeext conftest.$ac_ext
6846 CFLAGS=$ac_wine_try_cflags_saved
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
6849 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
6850 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
6851 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6854 esac
6856 else
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6858 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6859 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 ac_wine_try_cflags_saved=$CFLAGS
6863 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 void myfunc() {}
6867 _ACEOF
6868 if ac_fn_c_try_link "$LINENO"; then :
6869 ac_cv_c_dll_unixware="yes"
6870 else
6871 ac_cv_c_dll_unixware="no"
6873 rm -f core conftest.err conftest.$ac_objext \
6874 conftest$ac_exeext conftest.$ac_ext
6875 CFLAGS=$ac_wine_try_cflags_saved
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6878 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6879 if test "$ac_cv_c_dll_unixware" = "yes"
6880 then
6881 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6882 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6884 else
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6886 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6887 if test "${ac_cv_c_dll_hpux+set}" = set; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 ac_wine_try_cflags_saved=$CFLAGS
6891 CFLAGS="$CFLAGS -shared"
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 void myfunc() {}
6895 _ACEOF
6896 if ac_fn_c_try_link "$LINENO"; then :
6897 ac_cv_c_dll_hpux="yes"
6898 else
6899 ac_cv_c_dll_hpux="no"
6901 rm -f core conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
6903 CFLAGS=$ac_wine_try_cflags_saved
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
6906 $as_echo "$ac_cv_c_dll_hpux" >&6; }
6907 if test "$ac_cv_c_dll_hpux" = "yes"
6908 then
6909 LIBEXT="sl"
6910 DLLEXT=".sl"
6911 LDDLLFLAGS="-shared -fPIC"
6912 LDSHARED="\$(CC) -shared"
6917 esac
6919 enable_winequartz_drv=${enable_winequartz_drv:-no}
6921 if test "$LIBEXT" = "a"; then
6922 as_fn_error "could not find a way to build shared libraries.
6923 It is currently not possible to build Wine without shared library
6924 (.so) support to allow transparent switch between .so and .dll files.
6925 If you are using Linux, you will need a newer binutils.
6926 " "$LINENO" 5
6929 if test "$cross_compiling" = "no" -a "$LIBEXT" != "dll"
6930 then
6931 case "$host_cpu" in
6932 i[3456789]86*)
6933 ac_prefix_list="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 " ;;
6934 x86_64)
6935 ac_prefix_list="x86_64-pc-mingw32-gcc x86_64-w64-mingw32-gcc " ;;
6937 ac_prefix_list="" ;;
6938 esac
6939 for ac_prog in $ac_prefix_list
6941 # Extract the first word of "$ac_prog", so it can be a program name with args.
6942 set dummy $ac_prog; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 if test -n "$CROSSCC"; then
6949 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_prog_CROSSCC="$ac_prog"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6962 done
6963 done
6964 IFS=$as_save_IFS
6968 CROSSCC=$ac_cv_prog_CROSSCC
6969 if test -n "$CROSSCC"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
6971 $as_echo "$CROSSCC" >&6; }
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6978 test -n "$CROSSCC" && break
6979 done
6980 test -n "$CROSSCC" || CROSSCC="false"
6982 if test "$CROSSCC" != "false"
6983 then
6984 CROSSTEST="\$(CROSSTEST)"
6986 set x $CROSSCC
6987 shift
6988 target=""
6989 while test $# -ge 1
6991 case "$1" in
6992 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
6993 esac
6994 shift
6995 done
6996 if test -n "$target"
6997 then
6998 CROSSTARGET="$target"
7005 if test "$ac_cv_header_pthread_h" = "yes"
7006 then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7008 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7009 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 ac_check_lib_save_LIBS=$LIBS
7013 LIBS="-lpthread $LIBS"
7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7017 /* Override any GCC internal prototype to avoid an error.
7018 Use char because int might match the return type of a GCC
7019 builtin and then its argument prototype would still apply. */
7020 #ifdef __cplusplus
7021 extern "C"
7022 #endif
7023 char pthread_create ();
7025 main ()
7027 return pthread_create ();
7029 return 0;
7031 _ACEOF
7032 if ac_fn_c_try_link "$LINENO"; then :
7033 ac_cv_lib_pthread_pthread_create=yes
7034 else
7035 ac_cv_lib_pthread_pthread_create=no
7037 rm -f core conftest.err conftest.$ac_objext \
7038 conftest$ac_exeext conftest.$ac_ext
7039 LIBS=$ac_check_lib_save_LIBS
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7042 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7043 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7044 LIBPTHREAD="-lpthread"
7049 if test "x$LIBPTHREAD" = "x"; then :
7050 case "x$with_pthread" in
7051 xno) ;;
7052 *) as_fn_error "pthread ${notice_platform}development files not found.
7053 Wine cannot support threads without libpthread.
7054 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7055 esac
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7060 $as_echo_n "checking for X... " >&6; }
7063 # Check whether --with-x was given.
7064 if test "${with_x+set}" = set; then :
7065 withval=$with_x;
7068 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7069 if test "x$with_x" = xno; then
7070 # The user explicitly disabled X.
7071 have_x=disabled
7072 else
7073 case $x_includes,$x_libraries in #(
7074 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7075 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 # One or both of the vars are not set, and there is no cached value.
7079 ac_x_includes=no ac_x_libraries=no
7080 rm -f -r conftest.dir
7081 if mkdir conftest.dir; then
7082 cd conftest.dir
7083 cat >Imakefile <<'_ACEOF'
7084 incroot:
7085 @echo incroot='${INCROOT}'
7086 usrlibdir:
7087 @echo usrlibdir='${USRLIBDIR}'
7088 libdir:
7089 @echo libdir='${LIBDIR}'
7090 _ACEOF
7091 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7093 for ac_var in incroot usrlibdir libdir; do
7094 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7095 done
7096 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7097 for ac_extension in a so sl dylib la dll; do
7098 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7099 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7100 ac_im_usrlibdir=$ac_im_libdir; break
7102 done
7103 # Screen out bogus values from the imake configuration. They are
7104 # bogus both because they are the default anyway, and because
7105 # using them would break gcc on systems where it needs fixed includes.
7106 case $ac_im_incroot in
7107 /usr/include) ac_x_includes= ;;
7108 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7109 esac
7110 case $ac_im_usrlibdir in
7111 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7112 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7113 esac
7115 cd ..
7116 rm -f -r conftest.dir
7119 # Standard set of common directories for X headers.
7120 # Check X11 before X11Rn because it is often a symlink to the current release.
7121 ac_x_header_dirs='
7122 /usr/X11/include
7123 /usr/X11R7/include
7124 /usr/X11R6/include
7125 /usr/X11R5/include
7126 /usr/X11R4/include
7128 /usr/include/X11
7129 /usr/include/X11R7
7130 /usr/include/X11R6
7131 /usr/include/X11R5
7132 /usr/include/X11R4
7134 /usr/local/X11/include
7135 /usr/local/X11R7/include
7136 /usr/local/X11R6/include
7137 /usr/local/X11R5/include
7138 /usr/local/X11R4/include
7140 /usr/local/include/X11
7141 /usr/local/include/X11R7
7142 /usr/local/include/X11R6
7143 /usr/local/include/X11R5
7144 /usr/local/include/X11R4
7146 /usr/X386/include
7147 /usr/x386/include
7148 /usr/XFree86/include/X11
7150 /usr/include
7151 /usr/local/include
7152 /usr/unsupported/include
7153 /usr/athena/include
7154 /usr/local/x11r5/include
7155 /usr/lpp/Xamples/include
7157 /usr/openwin/include
7158 /usr/openwin/share/include'
7160 if test "$ac_x_includes" = no; then
7161 # Guess where to find include files, by looking for Xlib.h.
7162 # First, try using that file with no special directory specified.
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165 #include <X11/Xlib.h>
7166 _ACEOF
7167 if ac_fn_c_try_cpp "$LINENO"; then :
7168 # We can compile using X headers with no special include directory.
7169 ac_x_includes=
7170 else
7171 for ac_dir in $ac_x_header_dirs; do
7172 if test -r "$ac_dir/X11/Xlib.h"; then
7173 ac_x_includes=$ac_dir
7174 break
7176 done
7178 rm -f conftest.err conftest.$ac_ext
7179 fi # $ac_x_includes = no
7181 if test "$ac_x_libraries" = no; then
7182 # Check for the libraries.
7183 # See if we find them without any special options.
7184 # Don't add to $LIBS permanently.
7185 ac_save_LIBS=$LIBS
7186 LIBS="-lX11 $LIBS"
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7189 #include <X11/Xlib.h>
7191 main ()
7193 XrmInitialize ()
7195 return 0;
7197 _ACEOF
7198 if ac_fn_c_try_link "$LINENO"; then :
7199 LIBS=$ac_save_LIBS
7200 # We can link X programs with no special library path.
7201 ac_x_libraries=
7202 else
7203 LIBS=$ac_save_LIBS
7204 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7206 # Don't even attempt the hair of trying to link an X program!
7207 for ac_extension in a so sl dylib la dll; do
7208 if test -r "$ac_dir/libX11.$ac_extension"; then
7209 ac_x_libraries=$ac_dir
7210 break 2
7212 done
7213 done
7215 rm -f core conftest.err conftest.$ac_objext \
7216 conftest$ac_exeext conftest.$ac_ext
7217 fi # $ac_x_libraries = no
7219 case $ac_x_includes,$ac_x_libraries in #(
7220 no,* | *,no | *\'*)
7221 # Didn't find X, or a directory has "'" in its name.
7222 ac_cv_have_x="have_x=no";; #(
7224 # Record where we found X for the cache.
7225 ac_cv_have_x="have_x=yes\
7226 ac_x_includes='$ac_x_includes'\
7227 ac_x_libraries='$ac_x_libraries'"
7228 esac
7230 ;; #(
7231 *) have_x=yes;;
7232 esac
7233 eval "$ac_cv_have_x"
7234 fi # $with_x != no
7236 if test "$have_x" != yes; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7238 $as_echo "$have_x" >&6; }
7239 no_x=yes
7240 else
7241 # If each of the values was on the command line, it overrides each guess.
7242 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7243 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7244 # Update the cache value to reflect the command line values.
7245 ac_cv_have_x="have_x=yes\
7246 ac_x_includes='$x_includes'\
7247 ac_x_libraries='$x_libraries'"
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7249 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7252 if test "$no_x" = yes; then
7253 # Not all programs may use this symbol, but it does not hurt to define it.
7255 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7257 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7258 else
7259 if test -n "$x_includes"; then
7260 X_CFLAGS="$X_CFLAGS -I$x_includes"
7263 # It would also be nice to do this for all -L options, not just this one.
7264 if test -n "$x_libraries"; then
7265 X_LIBS="$X_LIBS -L$x_libraries"
7266 # For Solaris; some versions of Sun CC require a space after -R and
7267 # others require no space. Words are not sufficient . . . .
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7269 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7270 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7271 ac_xsave_c_werror_flag=$ac_c_werror_flag
7272 ac_c_werror_flag=yes
7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h. */
7277 main ()
7281 return 0;
7283 _ACEOF
7284 if ac_fn_c_try_link "$LINENO"; then :
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7287 X_LIBS="$X_LIBS -R$x_libraries"
7288 else
7289 LIBS="$ac_xsave_LIBS -R $x_libraries"
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7294 main ()
7298 return 0;
7300 _ACEOF
7301 if ac_fn_c_try_link "$LINENO"; then :
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7303 $as_echo "yes" >&6; }
7304 X_LIBS="$X_LIBS -R $x_libraries"
7305 else
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7307 $as_echo "neither works" >&6; }
7309 rm -f core conftest.err conftest.$ac_objext \
7310 conftest$ac_exeext conftest.$ac_ext
7312 rm -f core conftest.err conftest.$ac_objext \
7313 conftest$ac_exeext conftest.$ac_ext
7314 ac_c_werror_flag=$ac_xsave_c_werror_flag
7315 LIBS=$ac_xsave_LIBS
7318 # Check for system-dependent libraries X programs must link with.
7319 # Do this before checking for the system-independent R6 libraries
7320 # (-lICE), since we may need -lsocket or whatever for X linking.
7322 if test "$ISC" = yes; then
7323 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7324 else
7325 # Martyn Johnson says this is needed for Ultrix, if the X
7326 # libraries were built with DECnet support. And Karl Berry says
7327 # the Alpha needs dnet_stub (dnet does not exist).
7328 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7332 /* Override any GCC internal prototype to avoid an error.
7333 Use char because int might match the return type of a GCC
7334 builtin and then its argument prototype would still apply. */
7335 #ifdef __cplusplus
7336 extern "C"
7337 #endif
7338 char XOpenDisplay ();
7340 main ()
7342 return XOpenDisplay ();
7344 return 0;
7346 _ACEOF
7347 if ac_fn_c_try_link "$LINENO"; then :
7349 else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7351 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7352 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7353 $as_echo_n "(cached) " >&6
7354 else
7355 ac_check_lib_save_LIBS=$LIBS
7356 LIBS="-ldnet $LIBS"
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7360 /* Override any GCC internal prototype to avoid an error.
7361 Use char because int might match the return type of a GCC
7362 builtin and then its argument prototype would still apply. */
7363 #ifdef __cplusplus
7364 extern "C"
7365 #endif
7366 char dnet_ntoa ();
7368 main ()
7370 return dnet_ntoa ();
7372 return 0;
7374 _ACEOF
7375 if ac_fn_c_try_link "$LINENO"; then :
7376 ac_cv_lib_dnet_dnet_ntoa=yes
7377 else
7378 ac_cv_lib_dnet_dnet_ntoa=no
7380 rm -f core conftest.err conftest.$ac_objext \
7381 conftest$ac_exeext conftest.$ac_ext
7382 LIBS=$ac_check_lib_save_LIBS
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7385 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7386 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7387 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7390 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7392 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7393 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7394 $as_echo_n "(cached) " >&6
7395 else
7396 ac_check_lib_save_LIBS=$LIBS
7397 LIBS="-ldnet_stub $LIBS"
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7401 /* Override any GCC internal prototype to avoid an error.
7402 Use char because int might match the return type of a GCC
7403 builtin and then its argument prototype would still apply. */
7404 #ifdef __cplusplus
7405 extern "C"
7406 #endif
7407 char dnet_ntoa ();
7409 main ()
7411 return dnet_ntoa ();
7413 return 0;
7415 _ACEOF
7416 if ac_fn_c_try_link "$LINENO"; then :
7417 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7418 else
7419 ac_cv_lib_dnet_stub_dnet_ntoa=no
7421 rm -f core conftest.err conftest.$ac_objext \
7422 conftest$ac_exeext conftest.$ac_ext
7423 LIBS=$ac_check_lib_save_LIBS
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7426 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7427 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7428 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7433 rm -f core conftest.err conftest.$ac_objext \
7434 conftest$ac_exeext conftest.$ac_ext
7435 LIBS="$ac_xsave_LIBS"
7437 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7438 # to get the SysV transport functions.
7439 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7440 # needs -lnsl.
7441 # The nsl library prevents programs from opening the X display
7442 # on Irix 5.2, according to T.E. Dickey.
7443 # The functions gethostbyname, getservbyname, and inet_addr are
7444 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7445 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7446 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7450 if test $ac_cv_func_gethostbyname = no; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7452 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7453 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7454 $as_echo_n "(cached) " >&6
7455 else
7456 ac_check_lib_save_LIBS=$LIBS
7457 LIBS="-lnsl $LIBS"
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7461 /* Override any GCC internal prototype to avoid an error.
7462 Use char because int might match the return type of a GCC
7463 builtin and then its argument prototype would still apply. */
7464 #ifdef __cplusplus
7465 extern "C"
7466 #endif
7467 char gethostbyname ();
7469 main ()
7471 return gethostbyname ();
7473 return 0;
7475 _ACEOF
7476 if ac_fn_c_try_link "$LINENO"; then :
7477 ac_cv_lib_nsl_gethostbyname=yes
7478 else
7479 ac_cv_lib_nsl_gethostbyname=no
7481 rm -f core conftest.err conftest.$ac_objext \
7482 conftest$ac_exeext conftest.$ac_ext
7483 LIBS=$ac_check_lib_save_LIBS
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7486 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7487 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7488 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7491 if test $ac_cv_lib_nsl_gethostbyname = no; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7493 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7494 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 ac_check_lib_save_LIBS=$LIBS
7498 LIBS="-lbsd $LIBS"
7499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7502 /* Override any GCC internal prototype to avoid an error.
7503 Use char because int might match the return type of a GCC
7504 builtin and then its argument prototype would still apply. */
7505 #ifdef __cplusplus
7506 extern "C"
7507 #endif
7508 char gethostbyname ();
7510 main ()
7512 return gethostbyname ();
7514 return 0;
7516 _ACEOF
7517 if ac_fn_c_try_link "$LINENO"; then :
7518 ac_cv_lib_bsd_gethostbyname=yes
7519 else
7520 ac_cv_lib_bsd_gethostbyname=no
7522 rm -f core conftest.err conftest.$ac_objext \
7523 conftest$ac_exeext conftest.$ac_ext
7524 LIBS=$ac_check_lib_save_LIBS
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7527 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7528 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7529 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7535 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7536 # socket/setsockopt and other routines are undefined under SCO ODT
7537 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7538 # on later versions), says Simon Leinen: it contains gethostby*
7539 # variants that don't use the name server (or something). -lsocket
7540 # must be given before -lnsl if both are needed. We assume that
7541 # if connect needs -lnsl, so does gethostbyname.
7542 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7543 if test "x$ac_cv_func_connect" = x""yes; then :
7547 if test $ac_cv_func_connect = no; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7549 $as_echo_n "checking for connect in -lsocket... " >&6; }
7550 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 ac_check_lib_save_LIBS=$LIBS
7554 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7558 /* Override any GCC internal prototype to avoid an error.
7559 Use char because int might match the return type of a GCC
7560 builtin and then its argument prototype would still apply. */
7561 #ifdef __cplusplus
7562 extern "C"
7563 #endif
7564 char connect ();
7566 main ()
7568 return connect ();
7570 return 0;
7572 _ACEOF
7573 if ac_fn_c_try_link "$LINENO"; then :
7574 ac_cv_lib_socket_connect=yes
7575 else
7576 ac_cv_lib_socket_connect=no
7578 rm -f core conftest.err conftest.$ac_objext \
7579 conftest$ac_exeext conftest.$ac_ext
7580 LIBS=$ac_check_lib_save_LIBS
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7583 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7584 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7585 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7590 # Guillermo Gomez says -lposix is necessary on A/UX.
7591 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7592 if test "x$ac_cv_func_remove" = x""yes; then :
7596 if test $ac_cv_func_remove = no; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7598 $as_echo_n "checking for remove in -lposix... " >&6; }
7599 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7602 ac_check_lib_save_LIBS=$LIBS
7603 LIBS="-lposix $LIBS"
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7607 /* Override any GCC internal prototype to avoid an error.
7608 Use char because int might match the return type of a GCC
7609 builtin and then its argument prototype would still apply. */
7610 #ifdef __cplusplus
7611 extern "C"
7612 #endif
7613 char remove ();
7615 main ()
7617 return remove ();
7619 return 0;
7621 _ACEOF
7622 if ac_fn_c_try_link "$LINENO"; then :
7623 ac_cv_lib_posix_remove=yes
7624 else
7625 ac_cv_lib_posix_remove=no
7627 rm -f core conftest.err conftest.$ac_objext \
7628 conftest$ac_exeext conftest.$ac_ext
7629 LIBS=$ac_check_lib_save_LIBS
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7632 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7633 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7634 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7639 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7640 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7641 if test "x$ac_cv_func_shmat" = x""yes; then :
7645 if test $ac_cv_func_shmat = no; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7647 $as_echo_n "checking for shmat in -lipc... " >&6; }
7648 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7649 $as_echo_n "(cached) " >&6
7650 else
7651 ac_check_lib_save_LIBS=$LIBS
7652 LIBS="-lipc $LIBS"
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7656 /* Override any GCC internal prototype to avoid an error.
7657 Use char because int might match the return type of a GCC
7658 builtin and then its argument prototype would still apply. */
7659 #ifdef __cplusplus
7660 extern "C"
7661 #endif
7662 char shmat ();
7664 main ()
7666 return shmat ();
7668 return 0;
7670 _ACEOF
7671 if ac_fn_c_try_link "$LINENO"; then :
7672 ac_cv_lib_ipc_shmat=yes
7673 else
7674 ac_cv_lib_ipc_shmat=no
7676 rm -f core conftest.err conftest.$ac_objext \
7677 conftest$ac_exeext conftest.$ac_ext
7678 LIBS=$ac_check_lib_save_LIBS
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7681 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7682 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7683 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7689 # Check for libraries that X11R6 Xt/Xaw programs need.
7690 ac_save_LDFLAGS=$LDFLAGS
7691 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7692 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7693 # check for ICE first), but we must link in the order -lSM -lICE or
7694 # we get undefined symbols. So assume we have SM if we have ICE.
7695 # These have to be linked with before -lX11, unlike the other
7696 # libraries we check for below, so use a different variable.
7697 # John Interrante, Karl Berry
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7699 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7700 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 ac_check_lib_save_LIBS=$LIBS
7704 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7708 /* Override any GCC internal prototype to avoid an error.
7709 Use char because int might match the return type of a GCC
7710 builtin and then its argument prototype would still apply. */
7711 #ifdef __cplusplus
7712 extern "C"
7713 #endif
7714 char IceConnectionNumber ();
7716 main ()
7718 return IceConnectionNumber ();
7720 return 0;
7722 _ACEOF
7723 if ac_fn_c_try_link "$LINENO"; then :
7724 ac_cv_lib_ICE_IceConnectionNumber=yes
7725 else
7726 ac_cv_lib_ICE_IceConnectionNumber=no
7728 rm -f core conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 LIBS=$ac_check_lib_save_LIBS
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7733 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7734 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7735 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7738 LDFLAGS=$ac_save_LDFLAGS
7743 if test "$have_x" = "yes"
7744 then
7745 XLIB="-lX11"
7746 ac_save_CPPFLAGS="$CPPFLAGS"
7747 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7750 $as_echo_n "checking for -lX11... " >&6; }
7751 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 ac_check_soname_save_LIBS=$LIBS
7755 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $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 XCreateWindow ();
7767 main ()
7769 return XCreateWindow ();
7771 return 0;
7773 _ACEOF
7774 if ac_fn_c_try_link "$LINENO"; then :
7775 case "$LIBEXT" in
7776 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7777 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'` ;;
7778 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7779 esac
7781 rm -f core conftest.err conftest.$ac_objext \
7782 conftest$ac_exeext conftest.$ac_ext
7783 LIBS=$ac_check_soname_save_LIBS
7785 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7787 $as_echo "not found" >&6; }
7789 else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7791 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7793 cat >>confdefs.h <<_ACEOF
7794 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7795 _ACEOF
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7800 $as_echo_n "checking for -lXext... " >&6; }
7801 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 ac_check_soname_save_LIBS=$LIBS
7805 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7809 /* Override any GCC internal prototype to avoid an error.
7810 Use char because int might match the return type of a GCC
7811 builtin and then its argument prototype would still apply. */
7812 #ifdef __cplusplus
7813 extern "C"
7814 #endif
7815 char XextCreateExtension ();
7817 main ()
7819 return XextCreateExtension ();
7821 return 0;
7823 _ACEOF
7824 if ac_fn_c_try_link "$LINENO"; then :
7825 case "$LIBEXT" in
7826 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7827 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'` ;;
7828 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7829 esac
7831 rm -f core conftest.err conftest.$ac_objext \
7832 conftest$ac_exeext conftest.$ac_ext
7833 LIBS=$ac_check_soname_save_LIBS
7835 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7837 $as_echo "not found" >&6; }
7839 else
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7841 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7843 cat >>confdefs.h <<_ACEOF
7844 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7845 _ACEOF
7847 XLIB="-lXext $XLIB"
7850 for ac_header in X11/Xlib.h \
7851 X11/XKBlib.h \
7852 X11/Xutil.h \
7853 X11/Xcursor/Xcursor.h \
7854 X11/extensions/shape.h \
7855 X11/extensions/XInput.h \
7856 X11/extensions/XShm.h \
7857 X11/extensions/Xcomposite.h \
7858 X11/extensions/Xinerama.h \
7859 X11/extensions/Xrandr.h \
7860 X11/extensions/Xrender.h \
7861 X11/extensions/xf86vmode.h \
7862 X11/extensions/xf86vmproto.h
7863 do :
7864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7865 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
7866 # include <X11/Xlib.h>
7867 #endif
7868 #ifdef HAVE_X11_XUTIL_H
7869 # include <X11/Xutil.h>
7870 #endif
7872 eval as_val=\$$as_ac_Header
7873 if test "x$as_val" = x""yes; then :
7874 cat >>confdefs.h <<_ACEOF
7875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7876 _ACEOF
7880 done
7883 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7884 then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
7886 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
7887 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 ac_check_lib_save_LIBS=$LIBS
7891 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7895 /* Override any GCC internal prototype to avoid an error.
7896 Use char because int might match the return type of a GCC
7897 builtin and then its argument prototype would still apply. */
7898 #ifdef __cplusplus
7899 extern "C"
7900 #endif
7901 char XkbQueryExtension ();
7903 main ()
7905 return XkbQueryExtension ();
7907 return 0;
7909 _ACEOF
7910 if ac_fn_c_try_link "$LINENO"; then :
7911 ac_cv_lib_X11_XkbQueryExtension=yes
7912 else
7913 ac_cv_lib_X11_XkbQueryExtension=no
7915 rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917 LIBS=$ac_check_lib_save_LIBS
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7920 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
7921 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
7923 $as_echo "#define HAVE_XKB 1" >>confdefs.h
7929 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
7930 then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
7932 $as_echo_n "checking for -lXcursor... " >&6; }
7933 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7936 ac_check_soname_save_LIBS=$LIBS
7937 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7941 /* Override any GCC internal prototype to avoid an error.
7942 Use char because int might match the return type of a GCC
7943 builtin and then its argument prototype would still apply. */
7944 #ifdef __cplusplus
7945 extern "C"
7946 #endif
7947 char XcursorImageLoadCursor ();
7949 main ()
7951 return XcursorImageLoadCursor ();
7953 return 0;
7955 _ACEOF
7956 if ac_fn_c_try_link "$LINENO"; then :
7957 case "$LIBEXT" in
7958 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7959 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'` ;;
7960 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7961 esac
7963 rm -f core conftest.err conftest.$ac_objext \
7964 conftest$ac_exeext conftest.$ac_ext
7965 LIBS=$ac_check_soname_save_LIBS
7967 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7969 $as_echo "not found" >&6; }
7971 else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
7973 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
7975 cat >>confdefs.h <<_ACEOF
7976 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
7977 _ACEOF
7982 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
7983 case "x$with_xcursor" in
7984 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
7985 xno) ;;
7986 *) as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
7987 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
7988 esac
7991 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
7992 then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
7994 $as_echo_n "checking for -lXi... " >&6; }
7995 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 ac_check_soname_save_LIBS=$LIBS
7999 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8003 /* Override any GCC internal prototype to avoid an error.
8004 Use char because int might match the return type of a GCC
8005 builtin and then its argument prototype would still apply. */
8006 #ifdef __cplusplus
8007 extern "C"
8008 #endif
8009 char XOpenDevice ();
8011 main ()
8013 return XOpenDevice ();
8015 return 0;
8017 _ACEOF
8018 if ac_fn_c_try_link "$LINENO"; then :
8019 case "$LIBEXT" in
8020 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8021 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'` ;;
8022 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8023 esac
8025 rm -f core conftest.err conftest.$ac_objext \
8026 conftest$ac_exeext conftest.$ac_ext
8027 LIBS=$ac_check_soname_save_LIBS
8029 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8031 $as_echo "not found" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8035 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8037 cat >>confdefs.h <<_ACEOF
8038 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8039 _ACEOF
8044 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8045 case "x$with_xinput" in
8046 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8047 xno) ;;
8048 *) as_fn_error "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8049 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8050 esac
8053 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8054 then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8056 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8057 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 ac_check_lib_save_LIBS=$LIBS
8061 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8065 /* Override any GCC internal prototype to avoid an error.
8066 Use char because int might match the return type of a GCC
8067 builtin and then its argument prototype would still apply. */
8068 #ifdef __cplusplus
8069 extern "C"
8070 #endif
8071 char XShmQueryExtension ();
8073 main ()
8075 return XShmQueryExtension ();
8077 return 0;
8079 _ACEOF
8080 if ac_fn_c_try_link "$LINENO"; then :
8081 ac_cv_lib_Xext_XShmQueryExtension=yes
8082 else
8083 ac_cv_lib_Xext_XShmQueryExtension=no
8085 rm -f core conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
8087 LIBS=$ac_check_lib_save_LIBS
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8090 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8091 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8093 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8098 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8099 case "x$with_xshm" in
8100 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8101 xno) ;;
8102 *) as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8103 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8104 esac
8107 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8108 then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8110 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8111 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 ac_check_lib_save_LIBS=$LIBS
8115 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8119 /* Override any GCC internal prototype to avoid an error.
8120 Use char because int might match the return type of a GCC
8121 builtin and then its argument prototype would still apply. */
8122 #ifdef __cplusplus
8123 extern "C"
8124 #endif
8125 char XShapeQueryExtension ();
8127 main ()
8129 return XShapeQueryExtension ();
8131 return 0;
8133 _ACEOF
8134 if ac_fn_c_try_link "$LINENO"; then :
8135 ac_cv_lib_Xext_XShapeQueryExtension=yes
8136 else
8137 ac_cv_lib_Xext_XShapeQueryExtension=no
8139 rm -f core conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
8141 LIBS=$ac_check_lib_save_LIBS
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8144 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8145 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8147 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8152 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8153 case "x$with_xshape" in
8154 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8155 xno) ;;
8156 *) as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
8157 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8158 esac
8161 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8162 then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8164 $as_echo_n "checking for -lXxf86vm... " >&6; }
8165 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 ac_check_soname_save_LIBS=$LIBS
8169 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171 /* end confdefs.h. */
8173 /* Override any GCC internal prototype to avoid an error.
8174 Use char because int might match the return type of a GCC
8175 builtin and then its argument prototype would still apply. */
8176 #ifdef __cplusplus
8177 extern "C"
8178 #endif
8179 char XF86VidModeQueryExtension ();
8181 main ()
8183 return XF86VidModeQueryExtension ();
8185 return 0;
8187 _ACEOF
8188 if ac_fn_c_try_link "$LINENO"; then :
8189 case "$LIBEXT" in
8190 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8191 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'` ;;
8192 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8193 esac
8195 rm -f core conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
8197 LIBS=$ac_check_soname_save_LIBS
8199 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8201 $as_echo "not found" >&6; }
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8205 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8207 cat >>confdefs.h <<_ACEOF
8208 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8209 _ACEOF
8214 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8215 case "x$with_xxf86vm" in
8216 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8217 xno) ;;
8218 *) as_fn_error "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8219 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8220 esac
8223 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"
8224 then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8226 $as_echo_n "checking for -lXrender... " >&6; }
8227 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 ac_check_soname_save_LIBS=$LIBS
8231 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8235 /* Override any GCC internal prototype to avoid an error.
8236 Use char because int might match the return type of a GCC
8237 builtin and then its argument prototype would still apply. */
8238 #ifdef __cplusplus
8239 extern "C"
8240 #endif
8241 char XRenderQueryExtension ();
8243 main ()
8245 return XRenderQueryExtension ();
8247 return 0;
8249 _ACEOF
8250 if ac_fn_c_try_link "$LINENO"; then :
8251 case "$LIBEXT" in
8252 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8253 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'` ;;
8254 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8255 esac
8257 rm -f core conftest.err conftest.$ac_objext \
8258 conftest$ac_exeext conftest.$ac_ext
8259 LIBS=$ac_check_soname_save_LIBS
8261 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8263 $as_echo "not found" >&6; }
8265 else
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8267 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8269 cat >>confdefs.h <<_ACEOF
8270 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8271 _ACEOF
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8274 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8275 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 ac_check_lib_save_LIBS=$LIBS
8279 LIBS="-lXrender $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 XRenderSetPictureTransform ();
8291 main ()
8293 return XRenderSetPictureTransform ();
8295 return 0;
8297 _ACEOF
8298 if ac_fn_c_try_link "$LINENO"; then :
8299 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8300 else
8301 ac_cv_lib_Xrender_XRenderSetPictureTransform=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_Xrender_XRenderSetPictureTransform" >&5
8308 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8309 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8311 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8318 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8319 case "x$with_xrender" in
8320 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8321 xno) ;;
8322 *) as_fn_error "libxrender ${notice_platform}development files not found, XRender won't be supported.
8323 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8324 esac
8327 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8328 then
8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h. */
8331 #include <X11/Xlib.h>
8332 #include <X11/extensions/Xrandr.h>
8334 main ()
8336 static typeof(XRRSetScreenConfigAndRate) * func;
8338 return 0;
8340 _ACEOF
8341 if ac_fn_c_try_compile "$LINENO"; then :
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8343 $as_echo_n "checking for -lXrandr... " >&6; }
8344 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 ac_check_soname_save_LIBS=$LIBS
8348 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8352 /* Override any GCC internal prototype to avoid an error.
8353 Use char because int might match the return type of a GCC
8354 builtin and then its argument prototype would still apply. */
8355 #ifdef __cplusplus
8356 extern "C"
8357 #endif
8358 char XRRQueryExtension ();
8360 main ()
8362 return XRRQueryExtension ();
8364 return 0;
8366 _ACEOF
8367 if ac_fn_c_try_link "$LINENO"; then :
8368 case "$LIBEXT" in
8369 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8370 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'` ;;
8371 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8372 esac
8374 rm -f core conftest.err conftest.$ac_objext \
8375 conftest$ac_exeext conftest.$ac_ext
8376 LIBS=$ac_check_soname_save_LIBS
8378 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8380 $as_echo "not found" >&6; }
8382 else
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8384 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8386 cat >>confdefs.h <<_ACEOF
8387 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8388 _ACEOF
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8396 case "x$with_xrandr" in
8397 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8398 xno) ;;
8399 *) as_fn_error "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8400 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8401 esac
8404 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8405 then
8406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407 /* end confdefs.h. */
8408 #include <X11/Xlib.h>
8409 #include <X11/extensions/Xinerama.h>
8411 main ()
8413 static typeof(XineramaQueryScreens) * func;
8415 return 0;
8417 _ACEOF
8418 if ac_fn_c_try_compile "$LINENO"; then :
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8420 $as_echo_n "checking for -lXinerama... " >&6; }
8421 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8422 $as_echo_n "(cached) " >&6
8423 else
8424 ac_check_soname_save_LIBS=$LIBS
8425 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8429 /* Override any GCC internal prototype to avoid an error.
8430 Use char because int might match the return type of a GCC
8431 builtin and then its argument prototype would still apply. */
8432 #ifdef __cplusplus
8433 extern "C"
8434 #endif
8435 char XineramaQueryScreens ();
8437 main ()
8439 return XineramaQueryScreens ();
8441 return 0;
8443 _ACEOF
8444 if ac_fn_c_try_link "$LINENO"; then :
8445 case "$LIBEXT" in
8446 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8447 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'` ;;
8448 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8449 esac
8451 rm -f core conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8453 LIBS=$ac_check_soname_save_LIBS
8455 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8457 $as_echo "not found" >&6; }
8459 else
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8461 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8463 cat >>confdefs.h <<_ACEOF
8464 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8465 _ACEOF
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8473 case "x$with_xinerama" in
8474 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8475 xno) ;;
8476 *) as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8477 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8478 esac
8481 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8482 then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8484 $as_echo_n "checking for -lXcomposite... " >&6; }
8485 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 ac_check_soname_save_LIBS=$LIBS
8489 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8493 /* Override any GCC internal prototype to avoid an error.
8494 Use char because int might match the return type of a GCC
8495 builtin and then its argument prototype would still apply. */
8496 #ifdef __cplusplus
8497 extern "C"
8498 #endif
8499 char XCompositeRedirectWindow ();
8501 main ()
8503 return XCompositeRedirectWindow ();
8505 return 0;
8507 _ACEOF
8508 if ac_fn_c_try_link "$LINENO"; then :
8509 case "$LIBEXT" in
8510 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8511 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'` ;;
8512 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8513 esac
8515 rm -f core conftest.err conftest.$ac_objext \
8516 conftest$ac_exeext conftest.$ac_ext
8517 LIBS=$ac_check_soname_save_LIBS
8519 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8521 $as_echo "not found" >&6; }
8523 else
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8525 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8527 cat >>confdefs.h <<_ACEOF
8528 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8529 _ACEOF
8534 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8535 case "x$with_xcomposite" in
8536 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8537 xno) ;;
8538 *) as_fn_error "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8539 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8540 esac
8543 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8544 #include <X11/Xlib.h>
8545 #endif
8547 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8549 cat >>confdefs.h <<_ACEOF
8550 #define HAVE_XICCALLBACK_CALLBACK 1
8551 _ACEOF
8558 opengl_msg=""
8559 if test "x$with_opengl" != "xno"
8560 then
8561 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8562 do :
8563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8564 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8565 # include <GL/glx.h>
8566 #endif
8568 eval as_val=\$$as_ac_Header
8569 if test "x$as_val" = x""yes; then :
8570 cat >>confdefs.h <<_ACEOF
8571 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8572 _ACEOF
8576 done
8578 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8579 then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8581 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8582 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 #include <GL/gl.h>
8589 main ()
8591 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8593 return 0;
8595 _ACEOF
8596 if ac_fn_c_try_compile "$LINENO"; then :
8597 wine_cv_opengl_header_version_OK="yes"
8598 else
8599 wine_cv_opengl_header_version_OK="no"
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8604 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8606 if test "$wine_cv_opengl_header_version_OK" = "yes"
8607 then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8609 $as_echo_n "checking for -lGL... " >&6; }
8610 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 ac_check_soname_save_LIBS=$LIBS
8614 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8618 /* Override any GCC internal prototype to avoid an error.
8619 Use char because int might match the return type of a GCC
8620 builtin and then its argument prototype would still apply. */
8621 #ifdef __cplusplus
8622 extern "C"
8623 #endif
8624 char glXCreateContext ();
8626 main ()
8628 return glXCreateContext ();
8630 return 0;
8632 _ACEOF
8633 if ac_fn_c_try_link "$LINENO"; then :
8634 case "$LIBEXT" in
8635 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8636 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'` ;;
8637 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8638 esac
8640 rm -f core conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
8642 LIBS=$ac_check_soname_save_LIBS
8644 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8646 $as_echo "not found" >&6; }
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8648 $as_echo_n "checking for -lGL... " >&6; }
8649 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 ac_check_soname_save_LIBS=$LIBS
8653 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"
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8657 /* Override any GCC internal prototype to avoid an error.
8658 Use char because int might match the return type of a GCC
8659 builtin and then its argument prototype would still apply. */
8660 #ifdef __cplusplus
8661 extern "C"
8662 #endif
8663 char glXCreateContext ();
8665 main ()
8667 return glXCreateContext ();
8669 return 0;
8671 _ACEOF
8672 if ac_fn_c_try_link "$LINENO"; then :
8673 case "$LIBEXT" in
8674 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8675 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'` ;;
8676 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8677 esac
8679 rm -f core conftest.err conftest.$ac_objext \
8680 conftest$ac_exeext conftest.$ac_ext
8681 LIBS=$ac_check_soname_save_LIBS
8683 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8685 $as_echo "not found" >&6; }
8686 if test -f /usr/X11R6/lib/libGL.a
8687 then
8688 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8689 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8690 else
8691 opengl_msg="No OpenGL library found on this system."
8693 else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8695 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8697 cat >>confdefs.h <<_ACEOF
8698 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8699 _ACEOF
8701 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"
8703 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8706 else
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8708 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8710 cat >>confdefs.h <<_ACEOF
8711 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8712 _ACEOF
8714 OPENGL_LIBS="-lGL"
8716 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8719 if test "$ac_cv_header_GL_glu_h" = "yes"
8720 then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8722 $as_echo_n "checking for -lGLU... " >&6; }
8723 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 ac_check_soname_save_LIBS=$LIBS
8727 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8731 /* Override any GCC internal prototype to avoid an error.
8732 Use char because int might match the return type of a GCC
8733 builtin and then its argument prototype would still apply. */
8734 #ifdef __cplusplus
8735 extern "C"
8736 #endif
8737 char gluLookAt ();
8739 main ()
8741 return gluLookAt ();
8743 return 0;
8745 _ACEOF
8746 if ac_fn_c_try_link "$LINENO"; then :
8747 case "$LIBEXT" in
8748 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8749 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'` ;;
8750 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8751 esac
8753 rm -f core conftest.err conftest.$ac_objext \
8754 conftest$ac_exeext conftest.$ac_ext
8755 LIBS=$ac_check_soname_save_LIBS
8757 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8759 $as_echo "not found" >&6; }
8761 else
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8763 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8765 cat >>confdefs.h <<_ACEOF
8766 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8767 _ACEOF
8772 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8773 case "x$with_glu" in
8774 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8775 xno) ;;
8776 *) as_fn_error "libGLU ${notice_platform}development files not found, GLU won't be supported.
8777 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8778 esac
8780 else
8781 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8783 else
8784 opengl_msg="OpenGL development headers not found."
8786 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8787 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8788 else
8789 enable_opengl32=${enable_opengl32:-no}
8790 enable_glu32=${enable_glu32:-no}
8792 if test -n "$opengl_msg"; then :
8793 case "x$with_opengl" in
8794 x) as_fn_append wine_warnings "|$opengl_msg
8795 OpenGL and Direct3D won't be supported." ;;
8796 xno) ;;
8797 *) as_fn_error "$opengl_msg
8798 OpenGL and Direct3D won't be supported.
8799 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8800 esac
8803 NASLIBS=""
8805 for ac_header in audio/audiolib.h
8806 do :
8807 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8808 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8809 cat >>confdefs.h <<_ACEOF
8810 #define HAVE_AUDIO_AUDIOLIB_H 1
8811 _ACEOF
8812 for ac_header in audio/soundlib.h
8813 do :
8814 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8816 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8817 cat >>confdefs.h <<_ACEOF
8818 #define HAVE_AUDIO_SOUNDLIB_H 1
8819 _ACEOF
8823 done
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8826 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8827 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 ac_check_lib_save_LIBS=$LIBS
8831 LIBS="-laudio -lXt $X_LIBS $XLIB $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 AuCreateFlow ();
8843 main ()
8845 return AuCreateFlow ();
8847 return 0;
8849 _ACEOF
8850 if ac_fn_c_try_link "$LINENO"; then :
8851 ac_cv_lib_audio_AuCreateFlow=yes
8852 else
8853 ac_cv_lib_audio_AuCreateFlow=no
8855 rm -f core conftest.err conftest.$ac_objext \
8856 conftest$ac_exeext conftest.$ac_ext
8857 LIBS=$ac_check_lib_save_LIBS
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8860 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
8861 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
8863 $as_echo "#define HAVE_NAS 1" >>confdefs.h
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
8866 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
8867 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 ac_check_lib_save_LIBS=$LIBS
8871 LIBS="-lXau $X_LIBS $LIBS"
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8875 /* Override any GCC internal prototype to avoid an error.
8876 Use char because int might match the return type of a GCC
8877 builtin and then its argument prototype would still apply. */
8878 #ifdef __cplusplus
8879 extern "C"
8880 #endif
8881 char XauGetBestAuthByAddr ();
8883 main ()
8885 return XauGetBestAuthByAddr ();
8887 return 0;
8889 _ACEOF
8890 if ac_fn_c_try_link "$LINENO"; then :
8891 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
8892 else
8893 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
8895 rm -f core conftest.err conftest.$ac_objext \
8896 conftest$ac_exeext conftest.$ac_ext
8897 LIBS=$ac_check_lib_save_LIBS
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
8900 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
8901 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
8902 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8903 else
8904 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8912 done
8915 CPPFLAGS="$ac_save_CPPFLAGS"
8916 else
8917 XLIB=""
8918 X_CFLAGS=""
8919 X_LIBS=""
8920 enable_winex11_drv=${enable_winex11_drv:-no}
8921 enable_opengl32=${enable_opengl32:-no}
8922 enable_glu32=${enable_glu32:-no}
8924 if test "x$XLIB" = "x"; then :
8925 case "x$with_x" in
8926 xno) ;;
8927 *) as_fn_error "X ${notice_platform}development files not found. Wine will be built
8928 without X support, which probably isn't what you want. You will need to install
8929 ${notice_platform}development packages of Xlib/Xfree86 at the very least.
8930 Use the --without-x option if you really want this." "$LINENO" 5 ;;
8931 esac
8935 XML2LIBS=""
8937 XML2INCL=""
8939 XSLTINCL=""
8941 if test "x$with_xml" != "xno"
8942 then
8943 ac_save_CPPFLAGS="$CPPFLAGS"
8944 if test "$PKG_CONFIG" != "false"
8945 then
8946 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8947 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8948 else
8949 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
8950 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
8952 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8953 for ac_header in libxml/parser.h
8954 do :
8955 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
8956 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
8957 cat >>confdefs.h <<_ACEOF
8958 #define HAVE_LIBXML_PARSER_H 1
8959 _ACEOF
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
8961 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
8962 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 ac_check_lib_save_LIBS=$LIBS
8966 LIBS="-lxml2 $ac_xml_libs $LIBS"
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8970 /* Override any GCC internal prototype to avoid an error.
8971 Use char because int might match the return type of a GCC
8972 builtin and then its argument prototype would still apply. */
8973 #ifdef __cplusplus
8974 extern "C"
8975 #endif
8976 char xmlParseMemory ();
8978 main ()
8980 return xmlParseMemory ();
8982 return 0;
8984 _ACEOF
8985 if ac_fn_c_try_link "$LINENO"; then :
8986 ac_cv_lib_xml2_xmlParseMemory=yes
8987 else
8988 ac_cv_lib_xml2_xmlParseMemory=no
8990 rm -f core conftest.err conftest.$ac_objext \
8991 conftest$ac_exeext conftest.$ac_ext
8992 LIBS=$ac_check_lib_save_LIBS
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
8995 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
8996 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
8998 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9000 XML2LIBS="$ac_xml_libs"
9001 XML2INCL="$ac_xml_cflags"
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9005 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9006 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9007 $as_echo_n "(cached) " >&6
9008 else
9009 ac_check_lib_save_LIBS=$LIBS
9010 LIBS="-lxml2 $ac_xml_libs $LIBS"
9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9014 /* Override any GCC internal prototype to avoid an error.
9015 Use char because int might match the return type of a GCC
9016 builtin and then its argument prototype would still apply. */
9017 #ifdef __cplusplus
9018 extern "C"
9019 #endif
9020 char xmlReadMemory ();
9022 main ()
9024 return xmlReadMemory ();
9026 return 0;
9028 _ACEOF
9029 if ac_fn_c_try_link "$LINENO"; then :
9030 ac_cv_lib_xml2_xmlReadMemory=yes
9031 else
9032 ac_cv_lib_xml2_xmlReadMemory=no
9034 rm -f core conftest.err conftest.$ac_objext \
9035 conftest$ac_exeext conftest.$ac_ext
9036 LIBS=$ac_check_lib_save_LIBS
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9039 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9040 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9042 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9047 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9048 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9049 $as_echo_n "(cached) " >&6
9050 else
9051 ac_check_lib_save_LIBS=$LIBS
9052 LIBS="-lxml2 $ac_xml_libs $LIBS"
9053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9054 /* end confdefs.h. */
9056 /* Override any GCC internal prototype to avoid an error.
9057 Use char because int might match the return type of a GCC
9058 builtin and then its argument prototype would still apply. */
9059 #ifdef __cplusplus
9060 extern "C"
9061 #endif
9062 char xmlNewDocPI ();
9064 main ()
9066 return xmlNewDocPI ();
9068 return 0;
9070 _ACEOF
9071 if ac_fn_c_try_link "$LINENO"; then :
9072 ac_cv_lib_xml2_xmlNewDocPI=yes
9073 else
9074 ac_cv_lib_xml2_xmlNewDocPI=no
9076 rm -f core conftest.err conftest.$ac_objext \
9077 conftest$ac_exeext conftest.$ac_ext
9078 LIBS=$ac_check_lib_save_LIBS
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9081 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9082 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9084 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9091 done
9093 CPPFLAGS="$ac_save_CPPFLAGS"
9095 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9096 case "x$with_xml" in
9097 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9098 xno) ;;
9099 *) as_fn_error "libxml2 ${notice_platform}development files not found, XML won't be supported.
9100 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9101 esac
9104 if test "x$with_xslt" != "xno"
9105 then
9106 if test "$PKG_CONFIG" != "false"
9107 then
9108 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9109 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9110 else
9111 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9112 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9114 ac_save_CPPFLAGS="$CPPFLAGS"
9115 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9116 for ac_header in libxslt/pattern.h libxslt/transform.h
9117 do :
9118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9119 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9120 # include <libxslt/pattern.h>
9121 #endif
9123 eval as_val=\$$as_ac_Header
9124 if test "x$as_val" = x""yes; then :
9125 cat >>confdefs.h <<_ACEOF
9126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9127 _ACEOF
9131 done
9133 CPPFLAGS="$ac_save_CPPFLAGS"
9134 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9135 then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9137 $as_echo_n "checking for -lxslt... " >&6; }
9138 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 ac_check_soname_save_LIBS=$LIBS
9142 LIBS="-lxslt $ac_xslt_libs $LIBS"
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9146 /* Override any GCC internal prototype to avoid an error.
9147 Use char because int might match the return type of a GCC
9148 builtin and then its argument prototype would still apply. */
9149 #ifdef __cplusplus
9150 extern "C"
9151 #endif
9152 char xsltCompilePattern ();
9154 main ()
9156 return xsltCompilePattern ();
9158 return 0;
9160 _ACEOF
9161 if ac_fn_c_try_link "$LINENO"; then :
9162 case "$LIBEXT" in
9163 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9164 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'` ;;
9165 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9166 esac
9168 rm -f core conftest.err conftest.$ac_objext \
9169 conftest$ac_exeext conftest.$ac_ext
9170 LIBS=$ac_check_soname_save_LIBS
9172 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9174 $as_echo "not found" >&6; }
9176 else
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9178 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9180 cat >>confdefs.h <<_ACEOF
9181 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9182 _ACEOF
9184 XSLTINCL="$ac_xslt_cflags"
9188 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9189 case "x$with_xslt" in
9190 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9191 xno) ;;
9192 *) as_fn_error "libxslt ${notice_platform}development files not found, xslt won't be supported.
9193 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9194 esac
9197 HALINCL=""
9199 if test "x$with_hal" != "xno"
9200 then
9201 ac_save_CPPFLAGS="$CPPFLAGS"
9202 if test "$PKG_CONFIG" != "false"
9203 then
9204 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9205 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9206 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9208 for ac_header in dbus/dbus.h hal/libhal.h
9209 do :
9210 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9211 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9212 eval as_val=\$$as_ac_Header
9213 if test "x$as_val" = x""yes; then :
9214 cat >>confdefs.h <<_ACEOF
9215 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9216 _ACEOF
9220 done
9222 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9223 then
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9225 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9226 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 ac_check_lib_save_LIBS=$LIBS
9230 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9234 /* Override any GCC internal prototype to avoid an error.
9235 Use char because int might match the return type of a GCC
9236 builtin and then its argument prototype would still apply. */
9237 #ifdef __cplusplus
9238 extern "C"
9239 #endif
9240 char dbus_connection_close ();
9242 main ()
9244 return dbus_connection_close ();
9246 return 0;
9248 _ACEOF
9249 if ac_fn_c_try_link "$LINENO"; then :
9250 ac_cv_lib_dbus_1_dbus_connection_close=yes
9251 else
9252 ac_cv_lib_dbus_1_dbus_connection_close=no
9254 rm -f core conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext conftest.$ac_ext
9256 LIBS=$ac_check_lib_save_LIBS
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9259 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9260 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9262 $as_echo_n "checking for -lhal... " >&6; }
9263 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 ac_check_soname_save_LIBS=$LIBS
9267 LIBS="-lhal $ac_hal_libs $LIBS"
9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9271 /* Override any GCC internal prototype to avoid an error.
9272 Use char because int might match the return type of a GCC
9273 builtin and then its argument prototype would still apply. */
9274 #ifdef __cplusplus
9275 extern "C"
9276 #endif
9277 char libhal_ctx_new ();
9279 main ()
9281 return libhal_ctx_new ();
9283 return 0;
9285 _ACEOF
9286 if ac_fn_c_try_link "$LINENO"; then :
9287 case "$LIBEXT" in
9288 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9289 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'` ;;
9290 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9291 esac
9293 rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 LIBS=$ac_check_soname_save_LIBS
9297 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9299 $as_echo "not found" >&6; }
9301 else
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9303 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9305 cat >>confdefs.h <<_ACEOF
9306 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9307 _ACEOF
9309 HALINCL="$ac_hal_cflags"
9314 CPPFLAGS="$ac_save_CPPFLAGS"
9316 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9317 case "x$with_hal" in
9318 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9319 xno) ;;
9320 *) as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9321 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9322 esac
9325 if test "x$with_gnutls" != "xno"
9326 then
9327 ac_save_CPPFLAGS="$CPPFLAGS"
9328 if test "$PKG_CONFIG" != "false"
9329 then
9330 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9331 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9332 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9334 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9335 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9338 #include <gnutls/gnutls.h>
9340 main ()
9342 typeof(gnutls_mac_get_key_size) *pfunc;
9344 return 0;
9346 _ACEOF
9347 if ac_fn_c_try_compile "$LINENO"; then :
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9349 $as_echo_n "checking for -lgnutls... " >&6; }
9350 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 ac_check_soname_save_LIBS=$LIBS
9354 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9358 /* Override any GCC internal prototype to avoid an error.
9359 Use char because int might match the return type of a GCC
9360 builtin and then its argument prototype would still apply. */
9361 #ifdef __cplusplus
9362 extern "C"
9363 #endif
9364 char gnutls_global_init ();
9366 main ()
9368 return gnutls_global_init ();
9370 return 0;
9372 _ACEOF
9373 if ac_fn_c_try_link "$LINENO"; then :
9374 case "$LIBEXT" in
9375 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9376 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'` ;;
9377 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9378 esac
9380 rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
9382 LIBS=$ac_check_soname_save_LIBS
9384 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9386 $as_echo "not found" >&6; }
9388 else
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9390 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9392 cat >>confdefs.h <<_ACEOF
9393 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9394 _ACEOF
9396 GNUTLSINCL="$ac_gnutls_cflags"
9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9404 CPPFLAGS="$ac_save_CPPFLAGS"
9406 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9407 case "x$with_gnutls" in
9408 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9409 xno) ;;
9410 *) as_fn_error "libgnutls ${notice_platform}development files not found, no schannel support.
9411 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9412 esac
9415 CURSESLIBS=""
9416 if test "$ac_cv_header_ncurses_h" = "yes"
9417 then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9419 $as_echo_n "checking for -lncurses... " >&6; }
9420 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 ac_check_soname_save_LIBS=$LIBS
9424 LIBS="-lncurses $LIBS"
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9428 /* Override any GCC internal prototype to avoid an error.
9429 Use char because int might match the return type of a GCC
9430 builtin and then its argument prototype would still apply. */
9431 #ifdef __cplusplus
9432 extern "C"
9433 #endif
9434 char waddch ();
9436 main ()
9438 return waddch ();
9440 return 0;
9442 _ACEOF
9443 if ac_fn_c_try_link "$LINENO"; then :
9444 case "$LIBEXT" in
9445 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9446 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'` ;;
9447 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9448 esac
9450 rm -f core conftest.err conftest.$ac_objext \
9451 conftest$ac_exeext conftest.$ac_ext
9452 LIBS=$ac_check_soname_save_LIBS
9454 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9456 $as_echo "not found" >&6; }
9458 else
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9460 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9462 cat >>confdefs.h <<_ACEOF
9463 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9464 _ACEOF
9466 CURSESLIBS="-lncurses"
9468 elif test "$ac_cv_header_curses_h" = "yes"
9469 then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9471 $as_echo_n "checking for -lcurses... " >&6; }
9472 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 ac_check_soname_save_LIBS=$LIBS
9476 LIBS="-lcurses $LIBS"
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9480 /* Override any GCC internal prototype to avoid an error.
9481 Use char because int might match the return type of a GCC
9482 builtin and then its argument prototype would still apply. */
9483 #ifdef __cplusplus
9484 extern "C"
9485 #endif
9486 char waddch ();
9488 main ()
9490 return waddch ();
9492 return 0;
9494 _ACEOF
9495 if ac_fn_c_try_link "$LINENO"; then :
9496 case "$LIBEXT" in
9497 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9498 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'` ;;
9499 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9500 esac
9502 rm -f core conftest.err conftest.$ac_objext \
9503 conftest$ac_exeext conftest.$ac_ext
9504 LIBS=$ac_check_soname_save_LIBS
9506 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9508 $as_echo "not found" >&6; }
9510 else
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9512 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9514 cat >>confdefs.h <<_ACEOF
9515 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9516 _ACEOF
9518 CURSESLIBS="-lcurses"
9521 ac_save_LIBS="$LIBS"
9522 LIBS="$LIBS $CURSESLIBS"
9523 for ac_func in mousemask
9524 do :
9525 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9526 if test "x$ac_cv_func_mousemask" = x""yes; then :
9527 cat >>confdefs.h <<_ACEOF
9528 #define HAVE_MOUSEMASK 1
9529 _ACEOF
9532 done
9534 LIBS="$ac_save_LIBS"
9535 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9536 case "x$with_curses" in
9537 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9538 xno) ;;
9539 *) as_fn_error "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9540 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9541 esac
9544 if test "x$with_sane" != "xno"
9545 then
9546 ac_save_CPPFLAGS="$CPPFLAGS"
9547 # Extract the first word of "sane-config", so it can be a program name with args.
9548 set dummy sane-config; ac_word=$2
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9550 $as_echo_n "checking for $ac_word... " >&6; }
9551 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9552 $as_echo_n "(cached) " >&6
9553 else
9554 if test -n "$sane_devel"; then
9555 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9556 else
9557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9558 for as_dir in $PATH
9560 IFS=$as_save_IFS
9561 test -z "$as_dir" && as_dir=.
9562 for ac_exec_ext in '' $ac_executable_extensions; do
9563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9564 ac_cv_prog_sane_devel="sane-config"
9565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9566 break 2
9568 done
9569 done
9570 IFS=$as_save_IFS
9572 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9575 sane_devel=$ac_cv_prog_sane_devel
9576 if test -n "$sane_devel"; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9578 $as_echo "$sane_devel" >&6; }
9579 else
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581 $as_echo "no" >&6; }
9585 if test "$sane_devel" != "no"
9586 then
9587 ac_sane_incl="`$sane_devel --cflags`"
9588 ac_sane_libs="`$sane_devel --ldflags`"
9589 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9591 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9592 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9594 $as_echo_n "checking for -lsane... " >&6; }
9595 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9596 $as_echo_n "(cached) " >&6
9597 else
9598 ac_check_soname_save_LIBS=$LIBS
9599 LIBS="-lsane $ac_sane_libs $LIBS"
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9603 /* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
9606 #ifdef __cplusplus
9607 extern "C"
9608 #endif
9609 char sane_init ();
9611 main ()
9613 return sane_init ();
9615 return 0;
9617 _ACEOF
9618 if ac_fn_c_try_link "$LINENO"; then :
9619 case "$LIBEXT" in
9620 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9621 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'` ;;
9622 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9623 esac
9625 rm -f core conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9627 LIBS=$ac_check_soname_save_LIBS
9629 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9631 $as_echo "not found" >&6; }
9633 else
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9635 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9637 cat >>confdefs.h <<_ACEOF
9638 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9639 _ACEOF
9641 SANEINCL="$ac_sane_incl"
9647 CPPFLAGS="$ac_save_CPPFLAGS"
9649 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9650 case "x$with_sane" in
9651 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9652 xno) ;;
9653 *) as_fn_error "libsane ${notice_platform}development files not found, scanners won't be supported.
9654 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9655 esac
9658 if test "x$with_v4l" != "xno"
9659 then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9661 $as_echo_n "checking for -lv4l1... " >&6; }
9662 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9663 $as_echo_n "(cached) " >&6
9664 else
9665 ac_check_soname_save_LIBS=$LIBS
9666 LIBS="-lv4l1 $LIBS"
9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9670 /* Override any GCC internal prototype to avoid an error.
9671 Use char because int might match the return type of a GCC
9672 builtin and then its argument prototype would still apply. */
9673 #ifdef __cplusplus
9674 extern "C"
9675 #endif
9676 char v4l1_open ();
9678 main ()
9680 return v4l1_open ();
9682 return 0;
9684 _ACEOF
9685 if ac_fn_c_try_link "$LINENO"; then :
9686 case "$LIBEXT" in
9687 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9688 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'` ;;
9689 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9690 esac
9692 rm -f core conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9694 LIBS=$ac_check_soname_save_LIBS
9696 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9698 $as_echo "not found" >&6; }
9700 else
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9702 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9704 cat >>confdefs.h <<_ACEOF
9705 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9706 _ACEOF
9711 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9712 case "x$with_v4l" in
9713 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
9714 xno) ;;
9715 *) as_fn_error "libv4l ${notice_platform}development files not found.
9716 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9717 esac
9720 if test "x$with_gphoto" != "xno"
9721 then
9722 ac_save_CPPFLAGS="$CPPFLAGS"
9723 # Extract the first word of "gphoto2-config", so it can be a program name with args.
9724 set dummy gphoto2-config; ac_word=$2
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9726 $as_echo_n "checking for $ac_word... " >&6; }
9727 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
9728 $as_echo_n "(cached) " >&6
9729 else
9730 if test -n "$gphoto2_devel"; then
9731 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9732 else
9733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734 for as_dir in $PATH
9736 IFS=$as_save_IFS
9737 test -z "$as_dir" && as_dir=.
9738 for ac_exec_ext in '' $ac_executable_extensions; do
9739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9740 ac_cv_prog_gphoto2_devel="gphoto2-config"
9741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9742 break 2
9744 done
9745 done
9746 IFS=$as_save_IFS
9748 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9751 gphoto2_devel=$ac_cv_prog_gphoto2_devel
9752 if test -n "$gphoto2_devel"; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
9754 $as_echo "$gphoto2_devel" >&6; }
9755 else
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9757 $as_echo "no" >&6; }
9761 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
9762 set dummy gphoto2-port-config; ac_word=$2
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764 $as_echo_n "checking for $ac_word... " >&6; }
9765 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 if test -n "$gphoto2port_devel"; then
9769 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9770 else
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 for as_dir in $PATH
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9782 done
9783 done
9784 IFS=$as_save_IFS
9786 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9789 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9790 if test -n "$gphoto2port_devel"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
9792 $as_echo "$gphoto2port_devel" >&6; }
9793 else
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 $as_echo "no" >&6; }
9799 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9800 then
9801 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9802 ac_gphoto2_libs=""
9803 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9805 case "$i" in
9806 -L/usr/lib|-L/usr/lib64) ;;
9807 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9808 esac
9809 done
9810 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9812 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
9813 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9814 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
9816 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
9817 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
9818 $as_echo_n "(cached) " >&6
9819 else
9820 ac_check_lib_save_LIBS=$LIBS
9821 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9825 /* Override any GCC internal prototype to avoid an error.
9826 Use char because int might match the return type of a GCC
9827 builtin and then its argument prototype would still apply. */
9828 #ifdef __cplusplus
9829 extern "C"
9830 #endif
9831 char gp_camera_new ();
9833 main ()
9835 return gp_camera_new ();
9837 return 0;
9839 _ACEOF
9840 if ac_fn_c_try_link "$LINENO"; then :
9841 ac_cv_lib_gphoto2_gp_camera_new=yes
9842 else
9843 ac_cv_lib_gphoto2_gp_camera_new=no
9845 rm -f core conftest.err conftest.$ac_objext \
9846 conftest$ac_exeext conftest.$ac_ext
9847 LIBS=$ac_check_lib_save_LIBS
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
9850 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
9851 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
9853 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
9855 GPHOTO2LIBS="$ac_gphoto2_libs"
9857 GPHOTO2INCL="$ac_gphoto2_incl"
9864 CPPFLAGS="$ac_save_CPPFLAGS"
9866 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
9867 case "x$with_gphoto" in
9868 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
9869 xno) ;;
9870 *) as_fn_error "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9871 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
9872 esac
9876 RESOLVLIBS=""
9878 if test "$ac_cv_header_resolv_h" = "yes"
9879 then
9880 ac_save_LIBS="$LIBS"
9881 LIBS="$LIBS -lresolv"
9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883 /* end confdefs.h. */
9884 #ifdef HAVE_NETINET_IN_H
9885 #include <netinet/in.h>
9886 #endif
9887 #include <resolv.h>
9889 main ()
9891 res_init();
9893 return 0;
9895 _ACEOF
9896 if ac_fn_c_try_link "$LINENO"; then :
9898 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
9900 RESOLVLIBS="-lresolv"
9902 rm -f core conftest.err conftest.$ac_objext \
9903 conftest$ac_exeext conftest.$ac_ext
9904 LIBS="$ac_save_LIBS"
9907 LCMSLIBS=""
9909 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
9910 then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
9912 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
9913 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
9914 $as_echo_n "(cached) " >&6
9915 else
9916 ac_check_lib_save_LIBS=$LIBS
9917 LIBS="-llcms $LIBS"
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9921 /* Override any GCC internal prototype to avoid an error.
9922 Use char because int might match the return type of a GCC
9923 builtin and then its argument prototype would still apply. */
9924 #ifdef __cplusplus
9925 extern "C"
9926 #endif
9927 char cmsOpenProfileFromFile ();
9929 main ()
9931 return cmsOpenProfileFromFile ();
9933 return 0;
9935 _ACEOF
9936 if ac_fn_c_try_link "$LINENO"; then :
9937 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
9938 else
9939 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
9941 rm -f core conftest.err conftest.$ac_objext \
9942 conftest$ac_exeext conftest.$ac_ext
9943 LIBS=$ac_check_lib_save_LIBS
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
9946 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
9947 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
9949 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
9951 LCMSLIBS="-llcms"
9955 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
9956 case "x$with_cms" in
9957 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
9958 xno) ;;
9959 *) as_fn_error "liblcms ${notice_platform}development files not found, Color Management won't be supported.
9960 This is an error since --with-cms was requested." "$LINENO" 5 ;;
9961 esac
9964 if test "x$with_freetype" != "xno"
9965 then
9966 for ac_prog in freetype-config freetype2-config
9968 # Extract the first word of "$ac_prog", so it can be a program name with args.
9969 set dummy $ac_prog; ac_word=$2
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971 $as_echo_n "checking for $ac_word... " >&6; }
9972 if test "${ac_cv_prog_ft_devel+set}" = set; then :
9973 $as_echo_n "(cached) " >&6
9974 else
9975 if test -n "$ft_devel"; then
9976 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9977 else
9978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979 for as_dir in $PATH
9981 IFS=$as_save_IFS
9982 test -z "$as_dir" && as_dir=.
9983 for ac_exec_ext in '' $ac_executable_extensions; do
9984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9985 ac_cv_prog_ft_devel="$ac_prog"
9986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9987 break 2
9989 done
9990 done
9991 IFS=$as_save_IFS
9995 ft_devel=$ac_cv_prog_ft_devel
9996 if test -n "$ft_devel"; then
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
9998 $as_echo "$ft_devel" >&6; }
9999 else
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10005 test -n "$ft_devel" && break
10006 done
10007 test -n "$ft_devel" || ft_devel="no"
10009 if test "$ft_devel" != "no"
10010 then
10011 ac_freetype_incl=`$ft_devel --cflags`
10012 ac_freetype_libs=`$ft_devel --libs`
10014 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10016 $as_echo_n "checking for -lfreetype... " >&6; }
10017 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10018 $as_echo_n "(cached) " >&6
10019 else
10020 ac_check_soname_save_LIBS=$LIBS
10021 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h. */
10025 /* Override any GCC internal prototype to avoid an error.
10026 Use char because int might match the return type of a GCC
10027 builtin and then its argument prototype would still apply. */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 char FT_Init_FreeType ();
10033 main ()
10035 return FT_Init_FreeType ();
10037 return 0;
10039 _ACEOF
10040 if ac_fn_c_try_link "$LINENO"; then :
10041 case "$LIBEXT" in
10042 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10043 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'` ;;
10044 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10045 esac
10047 rm -f core conftest.err conftest.$ac_objext \
10048 conftest$ac_exeext conftest.$ac_ext
10049 LIBS=$ac_check_soname_save_LIBS
10051 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10053 $as_echo "not found" >&6; }
10054 ft_lib=no
10055 else
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10057 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10059 cat >>confdefs.h <<_ACEOF
10060 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10061 _ACEOF
10063 ft_lib=yes
10065 if test "$ft_lib" = "yes"
10066 then
10067 ac_save_CPPFLAGS="$CPPFLAGS"
10068 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10069 for ac_header in ft2build.h \
10070 freetype/freetype.h \
10071 freetype/ftglyph.h \
10072 freetype/fttypes.h \
10073 freetype/tttables.h \
10074 freetype/ftsnames.h \
10075 freetype/ttnameid.h \
10076 freetype/ftoutln.h \
10077 freetype/ftwinfnt.h \
10078 freetype/ftmodapi.h \
10079 freetype/ftlcdfil.h \
10080 freetype/internal/sfnt.h
10081 do :
10082 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10083 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10084 # include <ft2build.h>
10085 #endif
10087 eval as_val=\$$as_ac_Header
10088 if test "x$as_val" = x""yes; then :
10089 cat >>confdefs.h <<_ACEOF
10090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10091 _ACEOF
10095 done
10097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098 /* end confdefs.h. */
10099 #include <ft2build.h>
10100 #include <freetype/fttrigon.h>
10101 _ACEOF
10102 if ac_fn_c_try_cpp "$LINENO"; then :
10104 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10106 wine_cv_fttrigon=yes
10107 else
10108 wine_cv_fttrigon=no
10110 rm -f conftest.err conftest.$ac_ext
10111 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10113 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10115 cat >>confdefs.h <<_ACEOF
10116 #define HAVE_FT_TRUETYPEENGINETYPE 1
10117 _ACEOF
10122 ac_save_CFLAGS="$CFLAGS"
10123 CFLAGS="$CFLAGS $ac_freetype_libs"
10124 for ac_func in FT_Load_Sfnt_Table
10125 do :
10126 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10127 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10128 cat >>confdefs.h <<_ACEOF
10129 #define HAVE_FT_LOAD_SFNT_TABLE 1
10130 _ACEOF
10133 done
10135 CFLAGS="$ac_save_CFLAGS"
10136 CPPFLAGS="$ac_save_CPPFLAGS"
10137 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10138 then
10140 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10142 FREETYPELIBS="$ac_freetype_libs"
10144 FREETYPEINCL="$ac_freetype_incl"
10149 if test "x$FREETYPELIBS" = "x"; then :
10150 case "x$with_freetype" in
10151 xno) ;;
10152 *) as_fn_error "FreeType ${notice_platform}development files not found. Fonts will not be built.
10153 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10154 esac
10156 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10159 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10160 if test "${ac_cv_c_ppdev+set}" = set; then :
10161 $as_echo_n "(cached) " >&6
10162 else
10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10165 #ifdef HAVE_SYS_IOCTL_H
10166 # include <sys/ioctl.h>
10167 #endif
10168 #include <linux/ppdev.h>
10170 main ()
10172 ioctl (1,PPCLAIM,0)
10174 return 0;
10176 _ACEOF
10177 if ac_fn_c_try_compile "$LINENO"; then :
10178 ac_cv_c_ppdev="yes"
10179 else
10180 ac_cv_c_ppdev="no"
10182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10185 $as_echo "$ac_cv_c_ppdev" >&6; }
10186 if test "$ac_cv_c_ppdev" = "yes"
10187 then
10189 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10193 ac_wine_check_funcs_save_LIBS="$LIBS"
10194 LIBS="$LIBS $LIBPTHREAD"
10195 for ac_func in \
10196 pthread_attr_get_np \
10197 pthread_getattr_np \
10198 pthread_get_stackaddr_np \
10199 pthread_get_stacksize_np
10200 do :
10201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10202 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10203 eval as_val=\$$as_ac_var
10204 if test "x$as_val" = x""yes; then :
10205 cat >>confdefs.h <<_ACEOF
10206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10207 _ACEOF
10210 done
10212 LIBS="$ac_wine_check_funcs_save_LIBS"
10214 if test "$ac_cv_header_zlib_h" = "yes"
10215 then
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10217 $as_echo_n "checking for inflate in -lz... " >&6; }
10218 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 ac_check_lib_save_LIBS=$LIBS
10222 LIBS="-lz $LIBS"
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10226 /* Override any GCC internal prototype to avoid an error.
10227 Use char because int might match the return type of a GCC
10228 builtin and then its argument prototype would still apply. */
10229 #ifdef __cplusplus
10230 extern "C"
10231 #endif
10232 char inflate ();
10234 main ()
10236 return inflate ();
10238 return 0;
10240 _ACEOF
10241 if ac_fn_c_try_link "$LINENO"; then :
10242 ac_cv_lib_z_inflate=yes
10243 else
10244 ac_cv_lib_z_inflate=no
10246 rm -f core conftest.err conftest.$ac_objext \
10247 conftest$ac_exeext conftest.$ac_ext
10248 LIBS=$ac_check_lib_save_LIBS
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10251 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10252 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10254 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10256 ZLIB="-lz"
10262 if test "x$with_esd" != xno
10263 then
10264 save_CFLAGS="$CFLAGS"
10265 # Extract the first word of "esd-config", so it can be a program name with args.
10266 set dummy esd-config; ac_word=$2
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10268 $as_echo_n "checking for $ac_word... " >&6; }
10269 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272 case $ESDCONFIG in
10273 [\\/]* | ?:[\\/]*)
10274 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278 for as_dir in $PATH
10280 IFS=$as_save_IFS
10281 test -z "$as_dir" && as_dir=.
10282 for ac_exec_ext in '' $ac_executable_extensions; do
10283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10284 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10286 break 2
10288 done
10289 done
10290 IFS=$as_save_IFS
10292 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10294 esac
10296 ESDCONFIG=$ac_cv_path_ESDCONFIG
10297 if test -n "$ESDCONFIG"; then
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10299 $as_echo "$ESDCONFIG" >&6; }
10300 else
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302 $as_echo "no" >&6; }
10306 if test "x$ESDCONFIG" != "xno"
10307 then
10308 ac_esd_incl=""
10309 for i in `$ESDCONFIG --cflags`
10311 case "$i" in
10312 -I*) ac_esd_incl="$ac_esd_incl $i";;
10313 esac
10314 done
10315 ac_esd_libs=`$ESDCONFIG --libs`
10316 CFLAGS="$CFLAGS $ac_esd_incl"
10318 ac_esd_libs=${ac_esd_libs:-"-lesd"}
10319 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10320 if test "x$ac_cv_header_esd_h" = x""yes; then :
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10322 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10323 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10324 $as_echo_n "(cached) " >&6
10325 else
10326 ac_check_lib_save_LIBS=$LIBS
10327 LIBS="-lesd $ac_esd_libs $LIBS"
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10331 /* Override any GCC internal prototype to avoid an error.
10332 Use char because int might match the return type of a GCC
10333 builtin and then its argument prototype would still apply. */
10334 #ifdef __cplusplus
10335 extern "C"
10336 #endif
10337 char esd_open_sound ();
10339 main ()
10341 return esd_open_sound ();
10343 return 0;
10345 _ACEOF
10346 if ac_fn_c_try_link "$LINENO"; then :
10347 ac_cv_lib_esd_esd_open_sound=yes
10348 else
10349 ac_cv_lib_esd_esd_open_sound=no
10351 rm -f core conftest.err conftest.$ac_objext \
10352 conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_check_lib_save_LIBS
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10356 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10357 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10358 ESDINCL="$ac_esd_incl"
10360 ESDLIBS="$ac_esd_libs"
10363 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10370 CFLAGS="$save_CFLAGS"
10373 ALSALIBS=""
10375 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10376 then
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10378 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10379 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10380 $as_echo_n "(cached) " >&6
10381 else
10382 ac_check_lib_save_LIBS=$LIBS
10383 LIBS="-lasound $LIBS"
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10387 /* Override any GCC internal prototype to avoid an error.
10388 Use char because int might match the return type of a GCC
10389 builtin and then its argument prototype would still apply. */
10390 #ifdef __cplusplus
10391 extern "C"
10392 #endif
10393 char snd_pcm_hw_params_get_access ();
10395 main ()
10397 return snd_pcm_hw_params_get_access ();
10399 return 0;
10401 _ACEOF
10402 if ac_fn_c_try_link "$LINENO"; then :
10403 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10404 else
10405 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10407 rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409 LIBS=$ac_check_lib_save_LIBS
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10412 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10413 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10416 #ifdef HAVE_ALSA_ASOUNDLIB_H
10417 #include <alsa/asoundlib.h>
10418 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10419 #include <sys/asoundlib.h>
10420 #endif
10422 main ()
10424 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10426 return 0;
10428 _ACEOF
10429 if ac_fn_c_try_compile "$LINENO"; then :
10431 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10433 ALSALIBS="-lasound"
10435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10440 AUDIOIOLIBS=""
10442 if test "$ac_cv_header_libaudioio_h" = "yes"
10443 then
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
10445 $as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
10446 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
10447 $as_echo_n "(cached) " >&6
10448 else
10449 ac_check_lib_save_LIBS=$LIBS
10450 LIBS="-laudioio $LIBS"
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10454 /* Override any GCC internal prototype to avoid an error.
10455 Use char because int might match the return type of a GCC
10456 builtin and then its argument prototype would still apply. */
10457 #ifdef __cplusplus
10458 extern "C"
10459 #endif
10460 char AudioIOGetVersion ();
10462 main ()
10464 return AudioIOGetVersion ();
10466 return 0;
10468 _ACEOF
10469 if ac_fn_c_try_link "$LINENO"; then :
10470 ac_cv_lib_audioio_AudioIOGetVersion=yes
10471 else
10472 ac_cv_lib_audioio_AudioIOGetVersion=no
10474 rm -f core conftest.err conftest.$ac_objext \
10475 conftest$ac_exeext conftest.$ac_ext
10476 LIBS=$ac_check_lib_save_LIBS
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10479 $as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
10480 if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
10481 AUDIOIOLIBS="-laudioio"
10483 $as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
10490 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10491 then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10493 $as_echo_n "checking for -lcapi20... " >&6; }
10494 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10495 $as_echo_n "(cached) " >&6
10496 else
10497 ac_check_soname_save_LIBS=$LIBS
10498 LIBS="-lcapi20 $LIBS"
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10502 /* Override any GCC internal prototype to avoid an error.
10503 Use char because int might match the return type of a GCC
10504 builtin and then its argument prototype would still apply. */
10505 #ifdef __cplusplus
10506 extern "C"
10507 #endif
10508 char capi20_register ();
10510 main ()
10512 return capi20_register ();
10514 return 0;
10516 _ACEOF
10517 if ac_fn_c_try_link "$LINENO"; then :
10518 case "$LIBEXT" in
10519 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10520 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'` ;;
10521 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10522 esac
10524 rm -f core conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
10526 LIBS=$ac_check_soname_save_LIBS
10528 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10530 $as_echo "not found" >&6; }
10532 else
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10534 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10536 cat >>confdefs.h <<_ACEOF
10537 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10538 _ACEOF
10543 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10544 case "x$with_capi" in
10545 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10546 xno) ;;
10547 *) as_fn_error "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10548 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10549 esac
10552 CUPSINCL=""
10554 if test "x$with_cups" != "xno"
10555 then
10556 ac_save_CPPFLAGS="$CPPFLAGS"
10557 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10558 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10559 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10560 for ac_header in cups/cups.h
10561 do :
10562 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10563 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
10564 cat >>confdefs.h <<_ACEOF
10565 #define HAVE_CUPS_CUPS_H 1
10566 _ACEOF
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10568 $as_echo_n "checking for -lcups... " >&6; }
10569 if test "${ac_cv_lib_soname_cups+set}" = set; then :
10570 $as_echo_n "(cached) " >&6
10571 else
10572 ac_check_soname_save_LIBS=$LIBS
10573 LIBS="-lcups $ac_cups_libs $LIBS"
10574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575 /* end confdefs.h. */
10577 /* Override any GCC internal prototype to avoid an error.
10578 Use char because int might match the return type of a GCC
10579 builtin and then its argument prototype would still apply. */
10580 #ifdef __cplusplus
10581 extern "C"
10582 #endif
10583 char cupsGetDefault ();
10585 main ()
10587 return cupsGetDefault ();
10589 return 0;
10591 _ACEOF
10592 if ac_fn_c_try_link "$LINENO"; then :
10593 case "$LIBEXT" in
10594 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10595 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'` ;;
10596 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10597 esac
10599 rm -f core conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_soname_save_LIBS
10603 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10605 $as_echo "not found" >&6; }
10607 else
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10609 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10611 cat >>confdefs.h <<_ACEOF
10612 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10613 _ACEOF
10615 CUPSINCL="$ac_cups_cflags"
10619 done
10621 CPPFLAGS="$ac_save_CPPFLAGS"
10623 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10624 case "x$with_cups" in
10625 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10626 xno) ;;
10627 *) as_fn_error "libcups ${notice_platform}development files not found, CUPS won't be supported.
10628 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10629 esac
10632 if test "$ac_cv_header_jack_jack_h" = "yes"
10633 then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
10635 $as_echo_n "checking for -ljack... " >&6; }
10636 if test "${ac_cv_lib_soname_jack+set}" = set; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 ac_check_soname_save_LIBS=$LIBS
10640 LIBS="-ljack $LIBS"
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10644 /* Override any GCC internal prototype to avoid an error.
10645 Use char because int might match the return type of a GCC
10646 builtin and then its argument prototype would still apply. */
10647 #ifdef __cplusplus
10648 extern "C"
10649 #endif
10650 char jack_client_new ();
10652 main ()
10654 return jack_client_new ();
10656 return 0;
10658 _ACEOF
10659 if ac_fn_c_try_link "$LINENO"; then :
10660 case "$LIBEXT" in
10661 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10662 dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10663 *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10664 esac
10666 rm -f core conftest.err conftest.$ac_objext \
10667 conftest$ac_exeext conftest.$ac_ext
10668 LIBS=$ac_check_soname_save_LIBS
10670 if test "x$ac_cv_lib_soname_jack" = "x"; then :
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10672 $as_echo "not found" >&6; }
10674 else
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
10676 $as_echo "$ac_cv_lib_soname_jack" >&6; }
10678 cat >>confdefs.h <<_ACEOF
10679 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
10680 _ACEOF
10686 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10687 then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10689 $as_echo_n "checking for -lfontconfig... " >&6; }
10690 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10691 $as_echo_n "(cached) " >&6
10692 else
10693 ac_check_soname_save_LIBS=$LIBS
10694 LIBS="-lfontconfig $LIBS"
10695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10698 /* Override any GCC internal prototype to avoid an error.
10699 Use char because int might match the return type of a GCC
10700 builtin and then its argument prototype would still apply. */
10701 #ifdef __cplusplus
10702 extern "C"
10703 #endif
10704 char FcInit ();
10706 main ()
10708 return FcInit ();
10710 return 0;
10712 _ACEOF
10713 if ac_fn_c_try_link "$LINENO"; then :
10714 case "$LIBEXT" in
10715 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10716 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'` ;;
10717 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10718 esac
10720 rm -f core conftest.err conftest.$ac_objext \
10721 conftest$ac_exeext conftest.$ac_ext
10722 LIBS=$ac_check_soname_save_LIBS
10724 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10726 $as_echo "not found" >&6; }
10728 else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10730 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10732 cat >>confdefs.h <<_ACEOF
10733 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10734 _ACEOF
10738 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
10739 then
10740 ac_save_CPPFLAGS="$CPPFLAGS"
10741 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10742 $as_unset ac_cv_header_fontconfig_fontconfig_h
10743 for ac_header in fontconfig/fontconfig.h
10744 do :
10745 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
10746 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
10747 cat >>confdefs.h <<_ACEOF
10748 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
10749 _ACEOF
10753 done
10755 CPPFLAGS="$ac_save_CPPFLAGS"
10756 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10757 then
10758 FONTCONFIGINCL="$X_CFLAGS"
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10761 $as_echo_n "checking for -lfontconfig... " >&6; }
10762 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10765 ac_check_soname_save_LIBS=$LIBS
10766 LIBS="-lfontconfig $X_LIBS $LIBS"
10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768 /* end confdefs.h. */
10770 /* Override any GCC internal prototype to avoid an error.
10771 Use char because int might match the return type of a GCC
10772 builtin and then its argument prototype would still apply. */
10773 #ifdef __cplusplus
10774 extern "C"
10775 #endif
10776 char FcInit ();
10778 main ()
10780 return FcInit ();
10782 return 0;
10784 _ACEOF
10785 if ac_fn_c_try_link "$LINENO"; then :
10786 case "$LIBEXT" in
10787 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10788 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'` ;;
10789 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10790 esac
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794 LIBS=$ac_check_soname_save_LIBS
10796 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10798 $as_echo "not found" >&6; }
10800 else
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10802 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10804 cat >>confdefs.h <<_ACEOF
10805 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10806 _ACEOF
10812 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10813 case "x$with_fontconfig" in
10814 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
10815 xno) ;;
10816 *) as_fn_error "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
10817 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
10818 esac
10821 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
10822 then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
10824 $as_echo_n "checking for -lssl... " >&6; }
10825 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 ac_check_soname_save_LIBS=$LIBS
10829 LIBS="-lssl $LIBS"
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10833 /* Override any GCC internal prototype to avoid an error.
10834 Use char because int might match the return type of a GCC
10835 builtin and then its argument prototype would still apply. */
10836 #ifdef __cplusplus
10837 extern "C"
10838 #endif
10839 char SSL_library_init ();
10841 main ()
10843 return SSL_library_init ();
10845 return 0;
10847 _ACEOF
10848 if ac_fn_c_try_link "$LINENO"; then :
10849 case "$LIBEXT" in
10850 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10851 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'` ;;
10852 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10853 esac
10855 rm -f core conftest.err conftest.$ac_objext \
10856 conftest$ac_exeext conftest.$ac_ext
10857 LIBS=$ac_check_soname_save_LIBS
10859 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10861 $as_echo "not found" >&6; }
10863 else
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
10865 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
10867 cat >>confdefs.h <<_ACEOF
10868 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
10869 _ACEOF
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
10874 $as_echo_n "checking for -lcrypto... " >&6; }
10875 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
10876 $as_echo_n "(cached) " >&6
10877 else
10878 ac_check_soname_save_LIBS=$LIBS
10879 LIBS="-lcrypto $LIBS"
10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
10883 /* Override any GCC internal prototype to avoid an error.
10884 Use char because int might match the return type of a GCC
10885 builtin and then its argument prototype would still apply. */
10886 #ifdef __cplusplus
10887 extern "C"
10888 #endif
10889 char BIO_new_socket ();
10891 main ()
10893 return BIO_new_socket ();
10895 return 0;
10897 _ACEOF
10898 if ac_fn_c_try_link "$LINENO"; then :
10899 case "$LIBEXT" in
10900 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10901 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'` ;;
10902 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10903 esac
10905 rm -f core conftest.err conftest.$ac_objext \
10906 conftest$ac_exeext conftest.$ac_ext
10907 LIBS=$ac_check_soname_save_LIBS
10909 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10911 $as_echo "not found" >&6; }
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
10915 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
10917 cat >>confdefs.h <<_ACEOF
10918 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
10919 _ACEOF
10924 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
10925 case "x$with_openssl" in
10926 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
10927 xno) ;;
10928 *) as_fn_error "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
10929 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
10930 esac
10933 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
10934 then
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
10936 $as_echo_n "checking for -lgsm... " >&6; }
10937 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 ac_check_soname_save_LIBS=$LIBS
10941 LIBS="-lgsm $LIBS"
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10945 /* Override any GCC internal prototype to avoid an error.
10946 Use char because int might match the return type of a GCC
10947 builtin and then its argument prototype would still apply. */
10948 #ifdef __cplusplus
10949 extern "C"
10950 #endif
10951 char gsm_create ();
10953 main ()
10955 return gsm_create ();
10957 return 0;
10959 _ACEOF
10960 if ac_fn_c_try_link "$LINENO"; then :
10961 case "$LIBEXT" in
10962 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10963 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'` ;;
10964 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10965 esac
10967 rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10969 LIBS=$ac_check_soname_save_LIBS
10971 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10973 $as_echo "not found" >&6; }
10975 else
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
10977 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
10979 cat >>confdefs.h <<_ACEOF
10980 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
10981 _ACEOF
10986 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
10987 case "x$with_gsm" in
10988 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
10989 xno) ;;
10990 *) as_fn_error "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
10991 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
10992 esac
10995 if test "$ac_cv_header_jpeglib_h" = "yes"
10996 then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
10998 $as_echo_n "checking for -ljpeg... " >&6; }
10999 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
11000 $as_echo_n "(cached) " >&6
11001 else
11002 ac_check_soname_save_LIBS=$LIBS
11003 LIBS="-ljpeg $LIBS"
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11007 /* Override any GCC internal prototype to avoid an error.
11008 Use char because int might match the return type of a GCC
11009 builtin and then its argument prototype would still apply. */
11010 #ifdef __cplusplus
11011 extern "C"
11012 #endif
11013 char jpeg_start_decompress ();
11015 main ()
11017 return jpeg_start_decompress ();
11019 return 0;
11021 _ACEOF
11022 if ac_fn_c_try_link "$LINENO"; then :
11023 case "$LIBEXT" in
11024 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11025 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'` ;;
11026 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11027 esac
11029 rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_soname_save_LIBS
11033 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11035 $as_echo "not found" >&6; }
11037 else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11039 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11041 cat >>confdefs.h <<_ACEOF
11042 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11043 _ACEOF
11048 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11049 case "x$with_jpeg" in
11050 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11051 xno) ;;
11052 *) as_fn_error "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11053 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11054 esac
11057 if test "$ac_cv_header_png_h" = "yes"
11058 then
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11060 $as_echo_n "checking for -lpng... " >&6; }
11061 if test "${ac_cv_lib_soname_png+set}" = set; then :
11062 $as_echo_n "(cached) " >&6
11063 else
11064 ac_check_soname_save_LIBS=$LIBS
11065 LIBS="-lpng -lm -lz $LIBS"
11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11069 /* Override any GCC internal prototype to avoid an error.
11070 Use char because int might match the return type of a GCC
11071 builtin and then its argument prototype would still apply. */
11072 #ifdef __cplusplus
11073 extern "C"
11074 #endif
11075 char png_create_read_struct ();
11077 main ()
11079 return png_create_read_struct ();
11081 return 0;
11083 _ACEOF
11084 if ac_fn_c_try_link "$LINENO"; then :
11085 case "$LIBEXT" in
11086 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11087 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'` ;;
11088 *) 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'` ;;
11089 esac
11091 rm -f core conftest.err conftest.$ac_objext \
11092 conftest$ac_exeext conftest.$ac_ext
11093 LIBS=$ac_check_soname_save_LIBS
11095 if test "x$ac_cv_lib_soname_png" = "x"; then :
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11097 $as_echo "not found" >&6; }
11099 else
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11101 $as_echo "$ac_cv_lib_soname_png" >&6; }
11103 cat >>confdefs.h <<_ACEOF
11104 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11105 _ACEOF
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11110 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11111 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11112 $as_echo_n "(cached) " >&6
11113 else
11114 ac_check_lib_save_LIBS=$LIBS
11115 LIBS="-lpng -lm -lz $LIBS"
11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11119 /* Override any GCC internal prototype to avoid an error.
11120 Use char because int might match the return type of a GCC
11121 builtin and then its argument prototype would still apply. */
11122 #ifdef __cplusplus
11123 extern "C"
11124 #endif
11125 char png_set_expand_gray_1_2_4_to_8 ();
11127 main ()
11129 return png_set_expand_gray_1_2_4_to_8 ();
11131 return 0;
11133 _ACEOF
11134 if ac_fn_c_try_link "$LINENO"; then :
11135 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11136 else
11137 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11139 rm -f core conftest.err conftest.$ac_objext \
11140 conftest$ac_exeext conftest.$ac_ext
11141 LIBS=$ac_check_lib_save_LIBS
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11144 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11145 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11147 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11152 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11153 then
11154 ac_save_CPPFLAGS="$CPPFLAGS"
11155 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11156 $as_unset ac_cv_header_png_h
11157 for ac_header in png.h
11158 do :
11159 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11160 if test "x$ac_cv_header_png_h" = x""yes; then :
11161 cat >>confdefs.h <<_ACEOF
11162 #define HAVE_PNG_H 1
11163 _ACEOF
11167 done
11169 CPPFLAGS="$ac_save_CPPFLAGS"
11170 if test "$ac_cv_header_png_h" = "yes"
11171 then
11172 PNGINCL="$X_CFLAGS"
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11175 $as_echo_n "checking for -lpng... " >&6; }
11176 if test "${ac_cv_lib_soname_png+set}" = set; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 ac_check_soname_save_LIBS=$LIBS
11180 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11184 /* Override any GCC internal prototype to avoid an error.
11185 Use char because int might match the return type of a GCC
11186 builtin and then its argument prototype would still apply. */
11187 #ifdef __cplusplus
11188 extern "C"
11189 #endif
11190 char png_create_read_struct ();
11192 main ()
11194 return png_create_read_struct ();
11196 return 0;
11198 _ACEOF
11199 if ac_fn_c_try_link "$LINENO"; then :
11200 case "$LIBEXT" in
11201 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11202 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'` ;;
11203 *) 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'` ;;
11204 esac
11206 rm -f core conftest.err conftest.$ac_objext \
11207 conftest$ac_exeext conftest.$ac_ext
11208 LIBS=$ac_check_soname_save_LIBS
11210 if test "x$ac_cv_lib_soname_png" = "x"; then :
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11212 $as_echo "not found" >&6; }
11214 else
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11216 $as_echo "$ac_cv_lib_soname_png" >&6; }
11218 cat >>confdefs.h <<_ACEOF
11219 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11220 _ACEOF
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11225 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11226 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
11228 else
11229 ac_check_lib_save_LIBS=$LIBS
11230 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11234 /* Override any GCC internal prototype to avoid an error.
11235 Use char because int might match the return type of a GCC
11236 builtin and then its argument prototype would still apply. */
11237 #ifdef __cplusplus
11238 extern "C"
11239 #endif
11240 char png_set_expand_gray_1_2_4_to_8 ();
11242 main ()
11244 return png_set_expand_gray_1_2_4_to_8 ();
11246 return 0;
11248 _ACEOF
11249 if ac_fn_c_try_link "$LINENO"; then :
11250 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11251 else
11252 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11254 rm -f core conftest.err conftest.$ac_objext \
11255 conftest$ac_exeext conftest.$ac_ext
11256 LIBS=$ac_check_lib_save_LIBS
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11259 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11260 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11261 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11267 if test "x$ac_cv_lib_soname_png" = "x"; then :
11268 case "x$with_png" in
11269 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11270 xno) ;;
11271 *) as_fn_error "libpng ${notice_platform}development files not found, PNG won't be supported.
11272 This is an error since --with-png was requested." "$LINENO" 5 ;;
11273 esac
11276 if test "$ac_cv_header_tiffio_h" = "yes"
11277 then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11279 $as_echo_n "checking for -ltiff... " >&6; }
11280 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
11282 else
11283 ac_check_soname_save_LIBS=$LIBS
11284 LIBS="-ltiff $LIBS"
11285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286 /* end confdefs.h. */
11288 /* Override any GCC internal prototype to avoid an error.
11289 Use char because int might match the return type of a GCC
11290 builtin and then its argument prototype would still apply. */
11291 #ifdef __cplusplus
11292 extern "C"
11293 #endif
11294 char TIFFClientOpen ();
11296 main ()
11298 return TIFFClientOpen ();
11300 return 0;
11302 _ACEOF
11303 if ac_fn_c_try_link "$LINENO"; then :
11304 case "$LIBEXT" in
11305 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11306 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'` ;;
11307 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11308 esac
11310 rm -f core conftest.err conftest.$ac_objext \
11311 conftest$ac_exeext conftest.$ac_ext
11312 LIBS=$ac_check_soname_save_LIBS
11314 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11316 $as_echo "not found" >&6; }
11318 else
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11320 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11322 cat >>confdefs.h <<_ACEOF
11323 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11324 _ACEOF
11329 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11330 case "x$with_tiff" in
11331 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11332 xno) ;;
11333 *) as_fn_error "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11334 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11335 esac
11338 if test "$ac_cv_header_mpg123_h" = "yes"
11339 then
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11341 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11342 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11343 $as_echo_n "(cached) " >&6
11344 else
11345 ac_check_lib_save_LIBS=$LIBS
11346 LIBS="-lmpg123 $LIBS"
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11350 /* Override any GCC internal prototype to avoid an error.
11351 Use char because int might match the return type of a GCC
11352 builtin and then its argument prototype would still apply. */
11353 #ifdef __cplusplus
11354 extern "C"
11355 #endif
11356 char mpg123_feed ();
11358 main ()
11360 return mpg123_feed ();
11362 return 0;
11364 _ACEOF
11365 if ac_fn_c_try_link "$LINENO"; then :
11366 ac_cv_lib_mpg123_mpg123_feed=yes
11367 else
11368 ac_cv_lib_mpg123_mpg123_feed=no
11370 rm -f core conftest.err conftest.$ac_objext \
11371 conftest$ac_exeext conftest.$ac_ext
11372 LIBS=$ac_check_lib_save_LIBS
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11375 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11376 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11377 LIBMPG123="-lmpg123"
11382 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11383 case "x$with_mpg123" in
11384 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11385 xno) ;;
11386 *) as_fn_error "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11387 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11388 esac
11390 test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_func_AudioFileStreamOpen" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
11392 if test "$ac_cv_header_AL_al_h" = "yes"
11393 then
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alGetSource3i in -lopenal" >&5
11395 $as_echo_n "checking for alGetSource3i in -lopenal... " >&6; }
11396 if test "${ac_cv_lib_openal_alGetSource3i+set}" = set; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 ac_check_lib_save_LIBS=$LIBS
11400 LIBS="-lopenal $LIBS"
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11404 /* Override any GCC internal prototype to avoid an error.
11405 Use char because int might match the return type of a GCC
11406 builtin and then its argument prototype would still apply. */
11407 #ifdef __cplusplus
11408 extern "C"
11409 #endif
11410 char alGetSource3i ();
11412 main ()
11414 return alGetSource3i ();
11416 return 0;
11418 _ACEOF
11419 if ac_fn_c_try_link "$LINENO"; then :
11420 ac_cv_lib_openal_alGetSource3i=yes
11421 else
11422 ac_cv_lib_openal_alGetSource3i=no
11424 rm -f core conftest.err conftest.$ac_objext \
11425 conftest$ac_exeext conftest.$ac_ext
11426 LIBS=$ac_check_lib_save_LIBS
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openal_alGetSource3i" >&5
11429 $as_echo "$ac_cv_lib_openal_alGetSource3i" >&6; }
11430 if test "x$ac_cv_lib_openal_alGetSource3i" = x""yes; then :
11431 LIBOPENAL="-lopenal"
11436 if test "x$ac_cv_lib_openal_alGetSource3i" != xyes; then :
11437 case "x$with_openal" in
11438 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11439 xno) ;;
11440 *) as_fn_error "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11441 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11442 esac
11444 test "x$ac_cv_lib_openal_alGetSource3i" = xyes || enable_openal32=${enable_openal32:-no}
11446 if test "$ac_cv_header_kstat_h" = "yes"
11447 then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11449 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11450 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11451 $as_echo_n "(cached) " >&6
11452 else
11453 ac_check_lib_save_LIBS=$LIBS
11454 LIBS="-lkstat $LIBS"
11455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11458 /* Override any GCC internal prototype to avoid an error.
11459 Use char because int might match the return type of a GCC
11460 builtin and then its argument prototype would still apply. */
11461 #ifdef __cplusplus
11462 extern "C"
11463 #endif
11464 char kstat_open ();
11466 main ()
11468 return kstat_open ();
11470 return 0;
11472 _ACEOF
11473 if ac_fn_c_try_link "$LINENO"; then :
11474 ac_cv_lib_kstat_kstat_open=yes
11475 else
11476 ac_cv_lib_kstat_kstat_open=no
11478 rm -f core conftest.err conftest.$ac_objext \
11479 conftest$ac_exeext conftest.$ac_ext
11480 LIBS=$ac_check_lib_save_LIBS
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11483 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11484 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11486 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11488 LIBKSTAT="-lkstat"
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11495 $as_echo_n "checking for -lodbc... " >&6; }
11496 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
11497 $as_echo_n "(cached) " >&6
11498 else
11499 ac_check_soname_save_LIBS=$LIBS
11500 LIBS="-lodbc $LIBS"
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11504 /* Override any GCC internal prototype to avoid an error.
11505 Use char because int might match the return type of a GCC
11506 builtin and then its argument prototype would still apply. */
11507 #ifdef __cplusplus
11508 extern "C"
11509 #endif
11510 char SQLConnect ();
11512 main ()
11514 return SQLConnect ();
11516 return 0;
11518 _ACEOF
11519 if ac_fn_c_try_link "$LINENO"; then :
11520 case "$LIBEXT" in
11521 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11522 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'` ;;
11523 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11524 esac
11526 rm -f core conftest.err conftest.$ac_objext \
11527 conftest$ac_exeext conftest.$ac_ext
11528 LIBS=$ac_check_soname_save_LIBS
11530 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11532 $as_echo "not found" >&6; }
11533 cat >>confdefs.h <<_ACEOF
11534 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11535 _ACEOF
11537 else
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11539 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11541 cat >>confdefs.h <<_ACEOF
11542 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11543 _ACEOF
11548 if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
11549 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
11550 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
11551 "$ac_cv_header_soundcard_h" != "yes" -a \
11552 "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
11553 then
11554 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11558 EXTRACFLAGS=""
11560 if test "x${GCC}" = "xyes"
11561 then
11562 EXTRACFLAGS="-Wall -pipe"
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11565 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11566 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 if test "$cross_compiling" = yes; then :
11570 ac_cv_c_gcc_strength_bug="yes"
11571 else
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11574 int L[4] = {0,1,2,3};
11576 main ()
11578 static int Array[3];
11579 unsigned int B = 3;
11580 int i;
11581 for(i=0; i<B; i++) Array[i] = i - 3;
11582 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11583 L[i] = 4;
11584 return (Array[1] != -2 || L[2] != 3)
11586 return 0;
11588 _ACEOF
11589 if ac_fn_c_try_run "$LINENO"; then :
11590 ac_cv_c_gcc_strength_bug="no"
11591 else
11592 ac_cv_c_gcc_strength_bug="yes"
11594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11595 conftest.$ac_objext conftest.beam conftest.$ac_ext
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11600 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11601 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11602 then
11603 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11607 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11608 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
11609 $as_echo_n "(cached) " >&6
11610 else
11611 ac_wine_try_cflags_saved=$CFLAGS
11612 CFLAGS="$CFLAGS -fno-builtin"
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h. */
11615 int main(int argc, char **argv) { return 0; }
11616 _ACEOF
11617 if ac_fn_c_try_link "$LINENO"; then :
11618 ac_cv_cflags__fno_builtin=yes
11619 else
11620 ac_cv_cflags__fno_builtin=no
11622 rm -f core conftest.err conftest.$ac_objext \
11623 conftest$ac_exeext conftest.$ac_ext
11624 CFLAGS=$ac_wine_try_cflags_saved
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11627 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11628 if test $ac_cv_cflags__fno_builtin = yes; then :
11629 BUILTINFLAG="-fno-builtin"
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11633 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11634 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 ac_wine_try_cflags_saved=$CFLAGS
11638 CFLAGS="$CFLAGS -fno-strict-aliasing"
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11641 int main(int argc, char **argv) { return 0; }
11642 _ACEOF
11643 if ac_fn_c_try_link "$LINENO"; then :
11644 ac_cv_cflags__fno_strict_aliasing=yes
11645 else
11646 ac_cv_cflags__fno_strict_aliasing=no
11648 rm -f core conftest.err conftest.$ac_objext \
11649 conftest$ac_exeext conftest.$ac_ext
11650 CFLAGS=$ac_wine_try_cflags_saved
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11653 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11654 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11655 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11658 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11659 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 ac_wine_try_cflags_saved=$CFLAGS
11663 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665 /* end confdefs.h. */
11666 int main(int argc, char **argv) { return 0; }
11667 _ACEOF
11668 if ac_fn_c_try_link "$LINENO"; then :
11669 ac_cv_cflags__Wdeclaration_after_statement=yes
11670 else
11671 ac_cv_cflags__Wdeclaration_after_statement=no
11673 rm -f core conftest.err conftest.$ac_objext \
11674 conftest$ac_exeext conftest.$ac_ext
11675 CFLAGS=$ac_wine_try_cflags_saved
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
11678 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
11679 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
11680 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11683 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11684 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 ac_wine_try_cflags_saved=$CFLAGS
11688 CFLAGS="$CFLAGS -Wstrict-prototypes"
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11691 int main(int argc, char **argv) { return 0; }
11692 _ACEOF
11693 if ac_fn_c_try_link "$LINENO"; then :
11694 ac_cv_cflags__Wstrict_prototypes=yes
11695 else
11696 ac_cv_cflags__Wstrict_prototypes=no
11698 rm -f core conftest.err conftest.$ac_objext \
11699 conftest$ac_exeext conftest.$ac_ext
11700 CFLAGS=$ac_wine_try_cflags_saved
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11703 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11704 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11705 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
11708 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
11709 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
11710 $as_echo_n "(cached) " >&6
11711 else
11712 ac_wine_try_cflags_saved=$CFLAGS
11713 CFLAGS="$CFLAGS -Wtype-limits"
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11716 int main(int argc, char **argv) { return 0; }
11717 _ACEOF
11718 if ac_fn_c_try_link "$LINENO"; then :
11719 ac_cv_cflags__Wtype_limits=yes
11720 else
11721 ac_cv_cflags__Wtype_limits=no
11723 rm -f core conftest.err conftest.$ac_objext \
11724 conftest$ac_exeext conftest.$ac_ext
11725 CFLAGS=$ac_wine_try_cflags_saved
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
11728 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
11729 if test $ac_cv_cflags__Wtype_limits = yes; then :
11730 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
11733 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
11734 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
11735 $as_echo_n "(cached) " >&6
11736 else
11737 ac_wine_try_cflags_saved=$CFLAGS
11738 CFLAGS="$CFLAGS -Wwrite-strings"
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11741 int main(int argc, char **argv) { return 0; }
11742 _ACEOF
11743 if ac_fn_c_try_link "$LINENO"; then :
11744 ac_cv_cflags__Wwrite_strings=yes
11745 else
11746 ac_cv_cflags__Wwrite_strings=no
11748 rm -f core conftest.err conftest.$ac_objext \
11749 conftest$ac_exeext conftest.$ac_ext
11750 CFLAGS=$ac_wine_try_cflags_saved
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
11753 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
11754 if test $ac_cv_cflags__Wwrite_strings = yes; then :
11755 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
11758 saved_CFLAGS="$CFLAGS"
11759 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings" >&5
11761 $as_echo_n "checking for broken string.h that generates warnings... " >&6; }
11762 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766 /* end confdefs.h. */
11767 #include <string.h>
11769 main ()
11773 return 0;
11775 _ACEOF
11776 if ac_fn_c_try_compile "$LINENO"; then :
11777 ac_cv_c_string_h_warnings=no
11778 else
11779 ac_cv_c_string_h_warnings=yes
11781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
11784 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
11785 CFLAGS="$saved_CFLAGS"
11786 if test "$ac_cv_c_string_h_warnings" = "no"
11787 then
11788 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11791 if test "${enable_maintainer_mode+set}" = set
11792 then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
11794 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
11795 if test "${ac_cv_cflags__Werror+set}" = set; then :
11796 $as_echo_n "(cached) " >&6
11797 else
11798 ac_wine_try_cflags_saved=$CFLAGS
11799 CFLAGS="$CFLAGS -Werror"
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11802 int main(int argc, char **argv) { return 0; }
11803 _ACEOF
11804 if ac_fn_c_try_link "$LINENO"; then :
11805 ac_cv_cflags__Werror=yes
11806 else
11807 ac_cv_cflags__Werror=no
11809 rm -f core conftest.err conftest.$ac_objext \
11810 conftest$ac_exeext conftest.$ac_ext
11811 CFLAGS=$ac_wine_try_cflags_saved
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
11814 $as_echo "$ac_cv_cflags__Werror" >&6; }
11815 if test $ac_cv_cflags__Werror = yes; then :
11816 EXTRACFLAGS="$EXTRACFLAGS -Werror"
11820 saved_CFLAGS="$CFLAGS"
11821 CFLAGS="$CFLAGS -Werror"
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
11823 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
11824 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
11825 $as_echo_n "(cached) " >&6
11826 else
11827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828 /* end confdefs.h. */
11829 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
11831 main ()
11835 return 0;
11837 _ACEOF
11838 if ac_fn_c_try_compile "$LINENO"; then :
11839 ac_cv_have_ms_hook_prologue="yes"
11840 else
11841 ac_cv_have_ms_hook_prologue="no"
11843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
11846 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
11847 CFLAGS="$saved_CFLAGS"
11848 if test "$ac_cv_have_ms_hook_prologue" = "yes"
11849 then
11851 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
11853 else
11854 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
11861 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
11862 if test "${ac_cv_c_extern_prefix+set}" = set; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11867 extern int ac_test;
11869 main ()
11871 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
11873 return 0;
11875 _ACEOF
11876 if ac_fn_c_try_link "$LINENO"; then :
11877 ac_cv_c_extern_prefix="yes"
11878 else
11879 ac_cv_c_extern_prefix="no"
11881 rm -f core conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
11885 $as_echo "$ac_cv_c_extern_prefix" >&6; }
11887 case $host_cpu in
11888 *i[3456789]86*)
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
11890 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
11891 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896 #ifndef _MSC_VER
11897 #define __stdcall __attribute__((__stdcall__))
11898 #endif
11899 int __stdcall ac_test(int i) { return i; }
11901 main ()
11903 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
11905 return 0;
11907 _ACEOF
11908 if ac_fn_c_try_link "$LINENO"; then :
11909 ac_cv_c_stdcall_suffix="yes"
11910 else
11911 ac_cv_c_stdcall_suffix="no"
11913 rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
11917 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
11918 *) ac_cv_c_stdcall_suffix="no" ;;
11919 esac
11922 if test "$ac_cv_c_extern_prefix" = "yes"
11923 then
11924 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
11926 asm_name_prefix="_"
11927 else
11928 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
11930 asm_name_prefix=""
11934 if test "$ac_cv_c_stdcall_suffix" = "yes"
11935 then
11936 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
11938 else
11939 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
11945 $as_echo_n "checking how to define a function in assembly code... " >&6; }
11946 if test "${ac_cv_asm_func_def+set}" = set; then :
11947 $as_echo_n "(cached) " >&6
11948 else
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11953 main ()
11955 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
11957 return 0;
11959 _ACEOF
11960 if ac_fn_c_try_link "$LINENO"; then :
11961 ac_cv_asm_func_def=".def"
11962 else
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11967 main ()
11969 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
11971 return 0;
11973 _ACEOF
11974 if ac_fn_c_try_link "$LINENO"; then :
11975 ac_cv_asm_func_def=".type @function"
11976 else
11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h. */
11981 main ()
11983 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
11985 return 0;
11987 _ACEOF
11988 if ac_fn_c_try_link "$LINENO"; then :
11989 ac_cv_asm_func_def=".type 2"
11990 else
11991 ac_cv_asm_func_def="unknown"
11993 rm -f core conftest.err conftest.$ac_objext \
11994 conftest$ac_exeext conftest.$ac_ext
11996 rm -f core conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11999 rm -f core conftest.err conftest.$ac_objext \
12000 conftest$ac_exeext conftest.$ac_ext
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12003 $as_echo "$ac_cv_asm_func_def" >&6; }
12006 case "$ac_cv_asm_func_def" in
12007 ".def")
12008 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12010 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12011 ".type @function")
12012 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12014 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12015 ".type 2")
12016 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12018 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12020 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12022 asm_func_header="" ;;
12023 esac
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12026 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12027 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12028 $as_echo_n "(cached) " >&6
12029 else
12030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031 /* end confdefs.h. */
12032 asm(".text\n\t.long 0");
12034 main ()
12038 return 0;
12040 _ACEOF
12041 if ac_fn_c_try_compile "$LINENO"; then :
12042 ac_cv_c_asm_outside_funcs="yes"
12043 else
12044 ac_cv_c_asm_outside_funcs="no"
12046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12049 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12052 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12053 if test "${ac_cv_c_dot_previous+set}" = set; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057 /* end confdefs.h. */
12060 main ()
12062 asm(".text\nac_test:\t.long 0\n\t.previous");
12064 return 0;
12066 _ACEOF
12067 if ac_fn_c_try_link "$LINENO"; then :
12068 ac_cv_c_dot_previous="yes"
12069 else
12070 ac_cv_c_dot_previous="no"
12072 rm -f core conftest.err conftest.$ac_objext \
12073 conftest$ac_exeext conftest.$ac_ext
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12076 $as_echo "$ac_cv_c_dot_previous" >&6; }
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12079 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12080 if test "${ac_cv_c_cfi_support+set}" = set; then :
12081 $as_echo_n "(cached) " >&6
12082 else
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12087 main ()
12091 return 0;
12093 _ACEOF
12094 if ac_fn_c_try_compile "$LINENO"; then :
12095 ac_cv_c_cfi_support="yes"
12096 else
12097 ac_cv_c_cfi_support="no"
12099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12102 $as_echo "$ac_cv_c_cfi_support" >&6; }
12104 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12105 asm_func_trailer=""
12106 if test "$ac_cv_c_dot_previous" = "yes"
12107 then
12108 asm_func_trailer="\\n\\t.previous"
12110 if test "$ac_cv_c_cfi_support" = "yes"
12111 then
12112 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12113 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12115 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12117 else
12118 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12122 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12125 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12126 then
12127 cat >>confdefs.h <<_ACEOF
12128 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12129 _ACEOF
12131 else
12132 cat >>confdefs.h <<_ACEOF
12133 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12134 _ACEOF
12138 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12141 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12145 LDPATH=""
12147 case $build_os in
12148 cygwin*|mingw32*)
12149 TOOLSEXT=".exe"
12151 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12153 darwin*|macosx*)
12156 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12158 esac
12160 case $host_os in
12161 mingw32*)
12162 CRTLIBS="-lmsvcrt"
12164 SOCKETLIBS="-L\$(TOPOBJDIR)/dlls/ws2_32 -lws2_32"
12167 esac
12169 MAIN_BINARY="wine"
12171 test -z "$with_wine64" || MAIN_BINARY="wine32"
12173 case $host_cpu in
12174 *i[3456789]86*)
12175 case $host_os in
12176 linux*)
12177 EXTRA_BINARIES="wine-preloader"
12179 esac
12181 esac
12184 ac_save_CFLAGS="$CFLAGS"
12185 CFLAGS="$CFLAGS $BUILTINFLAG"
12186 for ac_func in \
12187 _pclose \
12188 _popen \
12189 _snprintf \
12190 _spawnvp \
12191 _strdup \
12192 _stricmp \
12193 _strnicmp \
12194 _strtoi64 \
12195 _strtoui64 \
12196 _vsnprintf \
12197 asctime_r \
12198 chsize \
12199 dlopen \
12200 epoll_create \
12201 ffs \
12202 finite \
12203 fnmatch \
12204 fork \
12205 fpclass \
12206 fstatfs \
12207 fstatvfs \
12208 ftruncate \
12209 futimes \
12210 futimesat \
12211 getdirentries \
12212 getopt_long \
12213 getpagesize \
12214 getpwuid \
12215 gettid \
12216 gettimeofday \
12217 getuid \
12218 kqueue \
12219 lstat \
12220 memmove \
12221 mmap \
12222 pclose \
12223 pipe2 \
12224 poll \
12225 popen \
12226 port_create \
12227 prctl \
12228 pread \
12229 pwrite \
12230 readdir \
12231 readlink \
12232 sched_setaffinity \
12233 sched_yield \
12234 select \
12235 setproctitle \
12236 setrlimit \
12237 settimeofday \
12238 sigaltstack \
12239 sigprocmask \
12240 snprintf \
12241 spawnvp \
12242 statfs \
12243 statvfs \
12244 strcasecmp \
12245 strdup \
12246 strerror \
12247 strncasecmp \
12248 strtold \
12249 strtoll \
12250 strtoull \
12251 symlink \
12252 tcgetattr \
12253 thr_kill2 \
12254 timegm \
12255 usleep \
12256 vsnprintf \
12257 wait4 \
12258 waitpid \
12260 do :
12261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12262 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12263 eval as_val=\$$as_ac_var
12264 if test "x$as_val" = x""yes; then :
12265 cat >>confdefs.h <<_ACEOF
12266 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12267 _ACEOF
12270 done
12272 CFLAGS="$ac_save_CFLAGS"
12274 if test "$ac_cv_func_dlopen" = no
12275 then
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12277 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12278 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 ac_check_lib_save_LIBS=$LIBS
12282 LIBS="-ldl $LIBS"
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12286 /* Override any GCC internal prototype to avoid an error.
12287 Use char because int might match the return type of a GCC
12288 builtin and then its argument prototype would still apply. */
12289 #ifdef __cplusplus
12290 extern "C"
12291 #endif
12292 char dlopen ();
12294 main ()
12296 return dlopen ();
12298 return 0;
12300 _ACEOF
12301 if ac_fn_c_try_link "$LINENO"; then :
12302 ac_cv_lib_dl_dlopen=yes
12303 else
12304 ac_cv_lib_dl_dlopen=no
12306 rm -f core conftest.err conftest.$ac_objext \
12307 conftest$ac_exeext conftest.$ac_ext
12308 LIBS=$ac_check_lib_save_LIBS
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12311 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12312 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12313 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12314 LIBDL="-ldl"
12319 ac_wine_check_funcs_save_LIBS="$LIBS"
12320 LIBS="$LIBS $LIBDL"
12321 for ac_func in dladdr
12322 do :
12323 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12324 if test "x$ac_cv_func_dladdr" = x""yes; then :
12325 cat >>confdefs.h <<_ACEOF
12326 #define HAVE_DLADDR 1
12327 _ACEOF
12330 done
12332 LIBS="$ac_wine_check_funcs_save_LIBS"
12334 if test "$ac_cv_func_poll" = no
12335 then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12337 $as_echo_n "checking for poll in -lpoll... " >&6; }
12338 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12341 ac_check_lib_save_LIBS=$LIBS
12342 LIBS="-lpoll $LIBS"
12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12346 /* Override any GCC internal prototype to avoid an error.
12347 Use char because int might match the return type of a GCC
12348 builtin and then its argument prototype would still apply. */
12349 #ifdef __cplusplus
12350 extern "C"
12351 #endif
12352 char poll ();
12354 main ()
12356 return poll ();
12358 return 0;
12360 _ACEOF
12361 if ac_fn_c_try_link "$LINENO"; then :
12362 ac_cv_lib_poll_poll=yes
12363 else
12364 ac_cv_lib_poll_poll=no
12366 rm -f core conftest.err conftest.$ac_objext \
12367 conftest$ac_exeext conftest.$ac_ext
12368 LIBS=$ac_check_lib_save_LIBS
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12371 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12372 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12373 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12374 LIBPOLL="-lpoll"
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12381 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12382 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12383 $as_echo_n "(cached) " >&6
12384 else
12385 ac_func_search_save_LIBS=$LIBS
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12389 /* Override any GCC internal prototype to avoid an error.
12390 Use char because int might match the return type of a GCC
12391 builtin and then its argument prototype would still apply. */
12392 #ifdef __cplusplus
12393 extern "C"
12394 #endif
12395 char gethostbyname ();
12397 main ()
12399 return gethostbyname ();
12401 return 0;
12403 _ACEOF
12404 for ac_lib in '' nsl; do
12405 if test -z "$ac_lib"; then
12406 ac_res="none required"
12407 else
12408 ac_res=-l$ac_lib
12409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12411 if ac_fn_c_try_link "$LINENO"; then :
12412 ac_cv_search_gethostbyname=$ac_res
12414 rm -f core conftest.err conftest.$ac_objext \
12415 conftest$ac_exeext
12416 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12417 break
12419 done
12420 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12422 else
12423 ac_cv_search_gethostbyname=no
12425 rm conftest.$ac_ext
12426 LIBS=$ac_func_search_save_LIBS
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12429 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12430 ac_res=$ac_cv_search_gethostbyname
12431 if test "$ac_res" != no; then :
12432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12438 $as_echo_n "checking for library containing connect... " >&6; }
12439 if test "${ac_cv_search_connect+set}" = set; then :
12440 $as_echo_n "(cached) " >&6
12441 else
12442 ac_func_search_save_LIBS=$LIBS
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12446 /* Override any GCC internal prototype to avoid an error.
12447 Use char because int might match the return type of a GCC
12448 builtin and then its argument prototype would still apply. */
12449 #ifdef __cplusplus
12450 extern "C"
12451 #endif
12452 char connect ();
12454 main ()
12456 return connect ();
12458 return 0;
12460 _ACEOF
12461 for ac_lib in '' socket; do
12462 if test -z "$ac_lib"; then
12463 ac_res="none required"
12464 else
12465 ac_res=-l$ac_lib
12466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12468 if ac_fn_c_try_link "$LINENO"; then :
12469 ac_cv_search_connect=$ac_res
12471 rm -f core conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext
12473 if test "${ac_cv_search_connect+set}" = set; then :
12474 break
12476 done
12477 if test "${ac_cv_search_connect+set}" = set; then :
12479 else
12480 ac_cv_search_connect=no
12482 rm conftest.$ac_ext
12483 LIBS=$ac_func_search_save_LIBS
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12486 $as_echo "$ac_cv_search_connect" >&6; }
12487 ac_res=$ac_cv_search_connect
12488 if test "$ac_res" != no; then :
12489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12495 $as_echo_n "checking for library containing inet_aton... " >&6; }
12496 if test "${ac_cv_search_inet_aton+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 ac_func_search_save_LIBS=$LIBS
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h. */
12503 /* Override any GCC internal prototype to avoid an error.
12504 Use char because int might match the return type of a GCC
12505 builtin and then its argument prototype would still apply. */
12506 #ifdef __cplusplus
12507 extern "C"
12508 #endif
12509 char inet_aton ();
12511 main ()
12513 return inet_aton ();
12515 return 0;
12517 _ACEOF
12518 for ac_lib in '' resolv; do
12519 if test -z "$ac_lib"; then
12520 ac_res="none required"
12521 else
12522 ac_res=-l$ac_lib
12523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12525 if ac_fn_c_try_link "$LINENO"; then :
12526 ac_cv_search_inet_aton=$ac_res
12528 rm -f core conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext
12530 if test "${ac_cv_search_inet_aton+set}" = set; then :
12531 break
12533 done
12534 if test "${ac_cv_search_inet_aton+set}" = set; then :
12536 else
12537 ac_cv_search_inet_aton=no
12539 rm conftest.$ac_ext
12540 LIBS=$ac_func_search_save_LIBS
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12543 $as_echo "$ac_cv_search_inet_aton" >&6; }
12544 ac_res=$ac_cv_search_inet_aton
12545 if test "$ac_res" != no; then :
12546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12551 for ac_func in \
12552 getaddrinfo \
12553 getnameinfo \
12554 getnetbyname \
12555 getprotobyname \
12556 getprotobynumber \
12557 getservbyport \
12558 inet_network \
12559 inet_ntop \
12560 inet_pton \
12561 sendmsg \
12562 socketpair \
12564 do :
12565 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12566 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12567 eval as_val=\$$as_ac_var
12568 if test "x$as_val" = x""yes; then :
12569 cat >>confdefs.h <<_ACEOF
12570 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12571 _ACEOF
12574 done
12577 LDAPLIBS=""
12579 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12580 then
12581 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12583 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
12585 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
12586 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
12587 $as_echo_n "(cached) " >&6
12588 else
12589 ac_check_lib_save_LIBS=$LIBS
12590 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h. */
12594 /* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply. */
12597 #ifdef __cplusplus
12598 extern "C"
12599 #endif
12600 char ldap_initialize ();
12602 main ()
12604 return ldap_initialize ();
12606 return 0;
12608 _ACEOF
12609 if ac_fn_c_try_link "$LINENO"; then :
12610 ac_cv_lib_ldap_r_ldap_initialize=yes
12611 else
12612 ac_cv_lib_ldap_r_ldap_initialize=no
12614 rm -f core conftest.err conftest.$ac_objext \
12615 conftest$ac_exeext conftest.$ac_ext
12616 LIBS=$ac_check_lib_save_LIBS
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12619 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12620 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
12622 $as_echo_n "checking for ber_init in -llber... " >&6; }
12623 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626 ac_check_lib_save_LIBS=$LIBS
12627 LIBS="-llber $LIBPTHREAD $LIBS"
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12631 /* Override any GCC internal prototype to avoid an error.
12632 Use char because int might match the return type of a GCC
12633 builtin and then its argument prototype would still apply. */
12634 #ifdef __cplusplus
12635 extern "C"
12636 #endif
12637 char ber_init ();
12639 main ()
12641 return ber_init ();
12643 return 0;
12645 _ACEOF
12646 if ac_fn_c_try_link "$LINENO"; then :
12647 ac_cv_lib_lber_ber_init=yes
12648 else
12649 ac_cv_lib_lber_ber_init=no
12651 rm -f core conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12653 LIBS=$ac_check_lib_save_LIBS
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
12656 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
12657 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
12659 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
12661 LDAPLIBS="-lldap_r -llber"
12668 ac_wine_check_funcs_save_LIBS="$LIBS"
12669 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12670 for ac_func in \
12671 ldap_count_references \
12672 ldap_first_reference \
12673 ldap_next_reference \
12674 ldap_parse_reference \
12675 ldap_parse_sort_control \
12676 ldap_parse_sortresponse_control \
12677 ldap_parse_vlv_control \
12678 ldap_parse_vlvresponse_control
12679 do :
12680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12681 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12682 eval as_val=\$$as_ac_var
12683 if test "x$as_val" = x""yes; then :
12684 cat >>confdefs.h <<_ACEOF
12685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12686 _ACEOF
12689 done
12691 LIBS="$ac_wine_check_funcs_save_LIBS"
12693 if test "x$LDAPLIBS" = "x"; then :
12694 case "x$with_ldap" in
12695 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
12696 xno) ;;
12697 *) as_fn_error "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
12698 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
12699 esac
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
12703 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
12704 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
12705 $as_echo_n "(cached) " >&6
12706 else
12707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12708 /* end confdefs.h. */
12709 #include <sys/stat.h>
12711 main ()
12713 mkdir("foo");
12715 return 0;
12717 _ACEOF
12718 if ac_fn_c_try_compile "$LINENO"; then :
12719 wine_cv_one_arg_mkdir=yes
12720 else
12721 wine_cv_one_arg_mkdir=no
12723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
12726 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
12727 if test "$wine_cv_one_arg_mkdir" = "yes"
12728 then
12730 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12736 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12737 if test "${ac_cv_c_const+set}" = set; then :
12738 $as_echo_n "(cached) " >&6
12739 else
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12744 main ()
12746 /* FIXME: Include the comments suggested by Paul. */
12747 #ifndef __cplusplus
12748 /* Ultrix mips cc rejects this. */
12749 typedef int charset[2];
12750 const charset cs;
12751 /* SunOS 4.1.1 cc rejects this. */
12752 char const *const *pcpcc;
12753 char **ppc;
12754 /* NEC SVR4.0.2 mips cc rejects this. */
12755 struct point {int x, y;};
12756 static struct point const zero = {0,0};
12757 /* AIX XL C 1.02.0.0 rejects this.
12758 It does not let you subtract one const X* pointer from another in
12759 an arm of an if-expression whose if-part is not a constant
12760 expression */
12761 const char *g = "string";
12762 pcpcc = &g + (g ? g-g : 0);
12763 /* HPUX 7.0 cc rejects these. */
12764 ++pcpcc;
12765 ppc = (char**) pcpcc;
12766 pcpcc = (char const *const *) ppc;
12767 { /* SCO 3.2v4 cc rejects this. */
12768 char *t;
12769 char const *s = 0 ? (char *) 0 : (char const *) 0;
12771 *t++ = 0;
12772 if (s) return 0;
12774 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12775 int x[] = {25, 17};
12776 const int *foo = &x[0];
12777 ++foo;
12779 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12780 typedef const int *iptr;
12781 iptr p = 0;
12782 ++p;
12784 { /* AIX XL C 1.02.0.0 rejects this saying
12785 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12786 struct s { int j; const int *ap[3]; };
12787 struct s *b; b->j = 5;
12789 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12790 const int foo = 10;
12791 if (!foo) return 0;
12793 return !cs[0] && !zero.x;
12794 #endif
12797 return 0;
12799 _ACEOF
12800 if ac_fn_c_try_compile "$LINENO"; then :
12801 ac_cv_c_const=yes
12802 else
12803 ac_cv_c_const=no
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12808 $as_echo "$ac_cv_c_const" >&6; }
12809 if test $ac_cv_c_const = no; then
12811 $as_echo "#define const /**/" >>confdefs.h
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12816 $as_echo_n "checking for inline... " >&6; }
12817 if test "${ac_cv_c_inline+set}" = set; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 ac_cv_c_inline=no
12821 for ac_kw in inline __inline__ __inline; do
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12824 #ifndef __cplusplus
12825 typedef int foo_t;
12826 static $ac_kw foo_t static_foo () {return 0; }
12827 $ac_kw foo_t foo () {return 0; }
12828 #endif
12830 _ACEOF
12831 if ac_fn_c_try_compile "$LINENO"; then :
12832 ac_cv_c_inline=$ac_kw
12834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12835 test "$ac_cv_c_inline" != no && break
12836 done
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12840 $as_echo "$ac_cv_c_inline" >&6; }
12842 case $ac_cv_c_inline in
12843 inline | yes) ;;
12845 case $ac_cv_c_inline in
12846 no) ac_val=;;
12847 *) ac_val=$ac_cv_c_inline;;
12848 esac
12849 cat >>confdefs.h <<_ACEOF
12850 #ifndef __cplusplus
12851 #define inline $ac_val
12852 #endif
12853 _ACEOF
12855 esac
12857 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12858 if test "x$ac_cv_type_mode_t" = x""yes; then :
12860 cat >>confdefs.h <<_ACEOF
12861 #define HAVE_MODE_T 1
12862 _ACEOF
12866 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12867 if test "x$ac_cv_type_off_t" = x""yes; then :
12869 cat >>confdefs.h <<_ACEOF
12870 #define HAVE_OFF_T 1
12871 _ACEOF
12875 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12876 if test "x$ac_cv_type_pid_t" = x""yes; then :
12878 cat >>confdefs.h <<_ACEOF
12879 #define HAVE_PID_T 1
12880 _ACEOF
12884 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12885 if test "x$ac_cv_type_size_t" = x""yes; then :
12887 cat >>confdefs.h <<_ACEOF
12888 #define HAVE_SIZE_T 1
12889 _ACEOF
12893 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12894 if test "x$ac_cv_type_ssize_t" = x""yes; then :
12896 cat >>confdefs.h <<_ACEOF
12897 #define HAVE_SSIZE_T 1
12898 _ACEOF
12902 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12903 if test "x$ac_cv_type_long_long" = x""yes; then :
12905 cat >>confdefs.h <<_ACEOF
12906 #define HAVE_LONG_LONG 1
12907 _ACEOF
12911 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
12912 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
12914 cat >>confdefs.h <<_ACEOF
12915 #define HAVE_FSBLKCNT_T 1
12916 _ACEOF
12920 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
12921 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
12923 cat >>confdefs.h <<_ACEOF
12924 #define HAVE_FSFILCNT_T 1
12925 _ACEOF
12930 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
12931 #include <signal.h>
12933 if test "x$ac_cv_type_sigset_t" = x""yes; then :
12935 cat >>confdefs.h <<_ACEOF
12936 #define HAVE_SIGSET_T 1
12937 _ACEOF
12942 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
12944 if test "x$ac_cv_type_request_sense" = x""yes; then :
12946 cat >>confdefs.h <<_ACEOF
12947 #define HAVE_REQUEST_SENSE 1
12948 _ACEOF
12954 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
12955 #ifdef HAVE_SYS_SOCKET_H
12956 #include <sys/socket.h>
12957 #endif
12958 #ifdef HAVE_SYS_SOCKETVAR_H
12959 #include <sys/socketvar.h>
12960 #endif
12961 #ifdef HAVE_NET_ROUTE_H
12962 #include <net/route.h>
12963 #endif
12964 #ifdef HAVE_NETINET_IN_H
12965 #include <netinet/in.h>
12966 #endif
12967 #ifdef HAVE_NETINET_IN_SYSTM_H
12968 #include <netinet/in_systm.h>
12969 #endif
12970 #ifdef HAVE_NETINET_IP_H
12971 #include <netinet/ip.h>
12972 #endif
12973 #ifdef HAVE_NETINET_IN_PCB_H
12974 #include <netinet/in_pcb.h>
12975 #endif
12977 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
12979 cat >>confdefs.h <<_ACEOF
12980 #define HAVE_STRUCT_XINPGEN 1
12981 _ACEOF
12987 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
12988 #include <linux/input.h>
12989 #endif
12991 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
12993 cat >>confdefs.h <<_ACEOF
12994 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
12995 _ACEOF
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13002 $as_echo_n "checking for sigaddset... " >&6; }
13003 if test "${wine_cv_have_sigaddset+set}" = set; then :
13004 $as_echo_n "(cached) " >&6
13005 else
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008 #include <signal.h>
13010 main ()
13012 sigset_t set; sigaddset(&set,SIGTERM);
13014 return 0;
13016 _ACEOF
13017 if ac_fn_c_try_link "$LINENO"; then :
13018 wine_cv_have_sigaddset=yes
13019 else
13020 wine_cv_have_sigaddset=no
13022 rm -f core conftest.err conftest.$ac_objext \
13023 conftest$ac_exeext conftest.$ac_ext
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13026 $as_echo "$wine_cv_have_sigaddset" >&6; }
13027 if test "$wine_cv_have_sigaddset" = "yes"
13028 then
13030 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13036 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13037 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13038 $as_echo_n "(cached) " >&6
13039 else
13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h. */
13042 #include <netdb.h>
13044 main ()
13047 char *name=0;
13048 struct hostent he;
13049 struct hostent *result;
13050 char *buf=0;
13051 int bufsize=0;
13052 int res,errnr;
13053 char *addr=0;
13054 int addrlen=0;
13055 int addrtype=0;
13056 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13057 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13060 return 0;
13062 _ACEOF
13063 if ac_fn_c_try_link "$LINENO"; then :
13064 wine_cv_linux_gethostbyname_r_6=yes
13065 else
13066 wine_cv_linux_gethostbyname_r_6=no
13069 rm -f core conftest.err conftest.$ac_objext \
13070 conftest$ac_exeext conftest.$ac_ext
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13074 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13075 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13076 then
13078 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13082 if test "$ac_cv_header_linux_joystick_h" = "yes"
13083 then
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13085 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13086 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13087 $as_echo_n "(cached) " >&6
13088 else
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13092 #include <sys/ioctl.h>
13093 #include <sys/types.h>
13094 #include <linux/joystick.h>
13096 struct js_event blub;
13097 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13098 #error "no 2.2 header"
13099 #endif
13102 main ()
13104 /*empty*/
13106 return 0;
13108 _ACEOF
13109 if ac_fn_c_try_compile "$LINENO"; then :
13110 wine_cv_linux_joystick_22_api=yes
13111 else
13112 wine_cv_linux_joystick_22_api=no
13114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13118 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13119 if test "$wine_cv_linux_joystick_22_api" = "yes"
13120 then
13122 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13128 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13129 #ifdef HAVE_SYS_PARAM_H
13130 # include <sys/param.h>
13131 #endif
13132 #ifdef HAVE_SYS_MOUNT_H
13133 # include <sys/mount.h>
13134 #endif
13135 #ifdef HAVE_SYS_VFS_H
13136 # include <sys/vfs.h>
13137 #endif
13138 #ifdef HAVE_SYS_STATFS_H
13139 # include <sys/statfs.h>
13140 #endif
13142 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13144 cat >>confdefs.h <<_ACEOF
13145 #define HAVE_STRUCT_STATFS_F_BFREE 1
13146 _ACEOF
13150 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13151 #ifdef HAVE_SYS_PARAM_H
13152 # include <sys/param.h>
13153 #endif
13154 #ifdef HAVE_SYS_MOUNT_H
13155 # include <sys/mount.h>
13156 #endif
13157 #ifdef HAVE_SYS_VFS_H
13158 # include <sys/vfs.h>
13159 #endif
13160 #ifdef HAVE_SYS_STATFS_H
13161 # include <sys/statfs.h>
13162 #endif
13164 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13166 cat >>confdefs.h <<_ACEOF
13167 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13168 _ACEOF
13172 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13173 #ifdef HAVE_SYS_PARAM_H
13174 # include <sys/param.h>
13175 #endif
13176 #ifdef HAVE_SYS_MOUNT_H
13177 # include <sys/mount.h>
13178 #endif
13179 #ifdef HAVE_SYS_VFS_H
13180 # include <sys/vfs.h>
13181 #endif
13182 #ifdef HAVE_SYS_STATFS_H
13183 # include <sys/statfs.h>
13184 #endif
13186 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13188 cat >>confdefs.h <<_ACEOF
13189 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13190 _ACEOF
13194 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13195 #ifdef HAVE_SYS_PARAM_H
13196 # include <sys/param.h>
13197 #endif
13198 #ifdef HAVE_SYS_MOUNT_H
13199 # include <sys/mount.h>
13200 #endif
13201 #ifdef HAVE_SYS_VFS_H
13202 # include <sys/vfs.h>
13203 #endif
13204 #ifdef HAVE_SYS_STATFS_H
13205 # include <sys/statfs.h>
13206 #endif
13208 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13210 cat >>confdefs.h <<_ACEOF
13211 #define HAVE_STRUCT_STATFS_F_FFREE 1
13212 _ACEOF
13216 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13217 #ifdef HAVE_SYS_PARAM_H
13218 # include <sys/param.h>
13219 #endif
13220 #ifdef HAVE_SYS_MOUNT_H
13221 # include <sys/mount.h>
13222 #endif
13223 #ifdef HAVE_SYS_VFS_H
13224 # include <sys/vfs.h>
13225 #endif
13226 #ifdef HAVE_SYS_STATFS_H
13227 # include <sys/statfs.h>
13228 #endif
13230 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13232 cat >>confdefs.h <<_ACEOF
13233 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13234 _ACEOF
13238 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13239 #ifdef HAVE_SYS_PARAM_H
13240 # include <sys/param.h>
13241 #endif
13242 #ifdef HAVE_SYS_MOUNT_H
13243 # include <sys/mount.h>
13244 #endif
13245 #ifdef HAVE_SYS_VFS_H
13246 # include <sys/vfs.h>
13247 #endif
13248 #ifdef HAVE_SYS_STATFS_H
13249 # include <sys/statfs.h>
13250 #endif
13252 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13254 cat >>confdefs.h <<_ACEOF
13255 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13256 _ACEOF
13262 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13263 #include <sys/statvfs.h>
13264 #endif
13266 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13268 cat >>confdefs.h <<_ACEOF
13269 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13270 _ACEOF
13276 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13277 #ifdef HAVE_SYS_SOCKET_H
13278 # include <sys/socket.h>
13279 #endif
13280 #ifdef HAVE_SYS_UN_H
13281 # include <sys/un.h>
13282 #endif
13284 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13286 cat >>confdefs.h <<_ACEOF
13287 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13288 _ACEOF
13292 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13293 #ifdef HAVE_SYS_SOCKET_H
13294 # include <sys/socket.h>
13295 #endif
13296 #ifdef HAVE_SYS_UN_H
13297 # include <sys/un.h>
13298 #endif
13300 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13302 cat >>confdefs.h <<_ACEOF
13303 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13304 _ACEOF
13308 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13309 #ifdef HAVE_SYS_SOCKET_H
13310 # include <sys/socket.h>
13311 #endif
13312 #ifdef HAVE_SYS_UN_H
13313 # include <sys/un.h>
13314 #endif
13316 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13318 cat >>confdefs.h <<_ACEOF
13319 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13320 _ACEOF
13326 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13327 #ifdef HAVE_SCSI_SG_H
13328 #include <scsi/sg.h>
13329 #endif
13331 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13333 cat >>confdefs.h <<_ACEOF
13334 #define HAVE_SCSIREQ_T_CMD 1
13335 _ACEOF
13339 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>
13340 #ifdef HAVE_SCSI_SG_H
13341 #include <scsi/sg.h>
13342 #endif
13344 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13346 cat >>confdefs.h <<_ACEOF
13347 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13348 _ACEOF
13354 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13356 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13358 cat >>confdefs.h <<_ACEOF
13359 #define HAVE_SIGINFO_T_SI_FD 1
13360 _ACEOF
13366 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13367 #ifdef HAVE_SYS_MTIO_H
13368 #include <sys/mtio.h>
13369 #endif
13371 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13373 cat >>confdefs.h <<_ACEOF
13374 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13375 _ACEOF
13379 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13380 #ifdef HAVE_SYS_MTIO_H
13381 #include <sys/mtio.h>
13382 #endif
13384 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13386 cat >>confdefs.h <<_ACEOF
13387 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13388 _ACEOF
13392 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13393 #ifdef HAVE_SYS_MTIO_H
13394 #include <sys/mtio.h>
13395 #endif
13397 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
13399 cat >>confdefs.h <<_ACEOF
13400 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13401 _ACEOF
13407 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13408 #include <getopt.h>
13409 #endif
13411 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
13413 cat >>confdefs.h <<_ACEOF
13414 #define HAVE_STRUCT_OPTION_NAME 1
13415 _ACEOF
13421 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13422 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13424 cat >>confdefs.h <<_ACEOF
13425 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13426 _ACEOF
13430 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13431 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
13433 cat >>confdefs.h <<_ACEOF
13434 #define HAVE_STRUCT_STAT_ST_MTIM 1
13435 _ACEOF
13439 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13440 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
13442 cat >>confdefs.h <<_ACEOF
13443 #define HAVE_STRUCT_STAT_ST_CTIM 1
13444 _ACEOF
13448 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13449 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
13451 cat >>confdefs.h <<_ACEOF
13452 #define HAVE_STRUCT_STAT_ST_ATIM 1
13453 _ACEOF
13459 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
13460 #include <sys/types.h>
13461 #endif
13462 #ifdef HAVE_NETINET_IN_H
13463 #include <netinet/in.h>
13464 #endif
13466 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
13468 cat >>confdefs.h <<_ACEOF
13469 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13470 _ACEOF
13476 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13477 #include <sys/types.h>
13478 #endif
13479 #ifdef HAVE_NETINET_IN_H
13480 # include <netinet/in.h>
13481 #endif
13482 #ifdef HAVE_ARPA_NAMESER_H
13483 # include <arpa/nameser.h>
13484 #endif
13486 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
13488 cat >>confdefs.h <<_ACEOF
13489 #define HAVE_NS_MSG__MSG_PTR 1
13490 _ACEOF
13496 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13497 #include <sys/types.h>
13498 #endif
13499 #ifdef HAVE_ALIAS_H
13500 #include <alias.h>
13501 #endif
13502 #ifdef HAVE_SYS_SOCKET_H
13503 #include <sys/socket.h>
13504 #endif
13505 #ifdef HAVE_SYS_SOCKETVAR_H
13506 #include <sys/socketvar.h>
13507 #endif
13508 #ifdef HAVE_SYS_TIMEOUT_H
13509 #include <sys/timeout.h>
13510 #endif
13511 #ifdef HAVE_NETINET_IN_H
13512 #include <netinet/in.h>
13513 #endif
13514 #ifdef HAVE_NETINET_IN_SYSTM_H
13515 #include <netinet/in_systm.h>
13516 #endif
13517 #ifdef HAVE_NETINET_IP_H
13518 #include <netinet/ip.h>
13519 #endif
13520 #ifdef HAVE_NETINET_IP_VAR_H
13521 #include <netinet/ip_var.h>
13522 #endif
13523 #ifdef HAVE_NETINET_IP_ICMP_H
13524 #include <netinet/ip_icmp.h>
13525 #endif
13526 #ifdef HAVE_NETINET_ICMP_VAR
13527 #include <netinet/icmp_var.h>
13528 #endif
13530 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
13532 cat >>confdefs.h <<_ACEOF
13533 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13534 _ACEOF
13540 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13541 #include <sys/types.h>
13542 #endif
13543 #ifdef HAVE_NET_IF_H
13544 # include <net/if.h>
13545 #endif
13547 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
13549 cat >>confdefs.h <<_ACEOF
13550 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13551 _ACEOF
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
13558 $as_echo_n "checking for timezone variable... " >&6; }
13559 if test "${ac_cv_have_timezone+set}" = set; then :
13560 $as_echo_n "(cached) " >&6
13561 else
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13564 #include <time.h>
13566 main ()
13568 timezone = 1
13570 return 0;
13572 _ACEOF
13573 if ac_fn_c_try_link "$LINENO"; then :
13574 ac_cv_have_timezone="yes"
13575 else
13576 ac_cv_have_timezone="no"
13578 rm -f core conftest.err conftest.$ac_objext \
13579 conftest$ac_exeext conftest.$ac_ext
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
13582 $as_echo "$ac_cv_have_timezone" >&6; }
13583 if test "$ac_cv_have_timezone" = "yes"
13584 then
13586 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
13590 $as_echo_n "checking for daylight variable... " >&6; }
13591 if test "${ac_cv_have_daylight+set}" = set; then :
13592 $as_echo_n "(cached) " >&6
13593 else
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596 #include <time.h>
13598 main ()
13600 daylight = 1
13602 return 0;
13604 _ACEOF
13605 if ac_fn_c_try_link "$LINENO"; then :
13606 ac_cv_have_daylight="yes"
13607 else
13608 ac_cv_have_daylight="no"
13610 rm -f core conftest.err conftest.$ac_objext \
13611 conftest$ac_exeext conftest.$ac_ext
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
13614 $as_echo "$ac_cv_have_daylight" >&6; }
13615 if test "$ac_cv_have_daylight" = "yes"
13616 then
13618 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
13623 $as_echo_n "checking for isinf... " >&6; }
13624 if test "${ac_cv_have_isinf+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13629 #include <math.h>
13631 main ()
13633 float f = 0.0; int i=isinf(f)
13635 return 0;
13637 _ACEOF
13638 if ac_fn_c_try_link "$LINENO"; then :
13639 ac_cv_have_isinf="yes"
13640 else
13641 ac_cv_have_isinf="no"
13643 rm -f core conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
13647 $as_echo "$ac_cv_have_isinf" >&6; }
13648 if test "$ac_cv_have_isinf" = "yes"
13649 then
13651 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
13656 $as_echo_n "checking for isnan... " >&6; }
13657 if test "${ac_cv_have_isnan+set}" = set; then :
13658 $as_echo_n "(cached) " >&6
13659 else
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662 #include <math.h>
13664 main ()
13666 float f = 0.0; int i=isnan(f)
13668 return 0;
13670 _ACEOF
13671 if ac_fn_c_try_link "$LINENO"; then :
13672 ac_cv_have_isnan="yes"
13673 else
13674 ac_cv_have_isnan="no"
13676 rm -f core conftest.err conftest.$ac_objext \
13677 conftest$ac_exeext conftest.$ac_ext
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
13680 $as_echo "$ac_cv_have_isnan" >&6; }
13681 if test "$ac_cv_have_isnan" = "yes"
13682 then
13684 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13689 case $host_cpu in
13690 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
13691 $as_echo_n "checking whether we need to define __i386__... " >&6; }
13692 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13697 #ifndef __i386__
13699 #endif
13700 _ACEOF
13701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13702 $EGREP "yes" >/dev/null 2>&1; then :
13703 ac_cv_cpp_def___i386__=yes
13704 else
13705 ac_cv_cpp_def___i386__=no
13707 rm -f conftest*
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
13711 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
13712 if test $ac_cv_cpp_def___i386__ = yes; then :
13713 CFLAGS="$CFLAGS -D__i386__"
13714 LINTFLAGS="$LINTFLAGS -D__i386__"
13715 fi ;;
13716 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
13717 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
13718 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
13719 $as_echo_n "(cached) " >&6
13720 else
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13723 #ifndef __x86_64__
13725 #endif
13726 _ACEOF
13727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13728 $EGREP "yes" >/dev/null 2>&1; then :
13729 ac_cv_cpp_def___x86_64__=yes
13730 else
13731 ac_cv_cpp_def___x86_64__=no
13733 rm -f conftest*
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
13737 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
13738 if test $ac_cv_cpp_def___x86_64__ = yes; then :
13739 CFLAGS="$CFLAGS -D__x86_64__"
13740 LINTFLAGS="$LINTFLAGS -D__x86_64__"
13741 fi ;;
13742 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
13743 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
13744 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
13745 $as_echo_n "(cached) " >&6
13746 else
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13749 #ifndef __ALPHA__
13751 #endif
13752 _ACEOF
13753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13754 $EGREP "yes" >/dev/null 2>&1; then :
13755 ac_cv_cpp_def___ALPHA__=yes
13756 else
13757 ac_cv_cpp_def___ALPHA__=no
13759 rm -f conftest*
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
13763 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
13764 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
13765 CFLAGS="$CFLAGS -D__ALPHA__"
13766 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
13767 fi ;;
13768 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
13769 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
13770 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
13771 $as_echo_n "(cached) " >&6
13772 else
13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13775 #ifndef __sparc__
13777 #endif
13778 _ACEOF
13779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13780 $EGREP "yes" >/dev/null 2>&1; then :
13781 ac_cv_cpp_def___sparc__=yes
13782 else
13783 ac_cv_cpp_def___sparc__=no
13785 rm -f conftest*
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
13789 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
13790 if test $ac_cv_cpp_def___sparc__ = yes; then :
13791 CFLAGS="$CFLAGS -D__sparc__"
13792 LINTFLAGS="$LINTFLAGS -D__sparc__"
13793 fi ;;
13794 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
13795 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
13796 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
13797 $as_echo_n "(cached) " >&6
13798 else
13799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800 /* end confdefs.h. */
13801 #ifndef __powerpc__
13803 #endif
13804 _ACEOF
13805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13806 $EGREP "yes" >/dev/null 2>&1; then :
13807 ac_cv_cpp_def___powerpc__=yes
13808 else
13809 ac_cv_cpp_def___powerpc__=no
13811 rm -f conftest*
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
13815 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
13816 if test $ac_cv_cpp_def___powerpc__ = yes; then :
13817 CFLAGS="$CFLAGS -D__powerpc__"
13818 LINTFLAGS="$LINTFLAGS -D__powerpc__"
13819 fi ;;
13820 esac
13822 case $host_vendor in
13823 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
13824 $as_echo_n "checking whether we need to define __sun__... " >&6; }
13825 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
13826 $as_echo_n "(cached) " >&6
13827 else
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13830 #ifndef __sun__
13832 #endif
13833 _ACEOF
13834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13835 $EGREP "yes" >/dev/null 2>&1; then :
13836 ac_cv_cpp_def___sun__=yes
13837 else
13838 ac_cv_cpp_def___sun__=no
13840 rm -f conftest*
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
13844 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
13845 if test $ac_cv_cpp_def___sun__ = yes; then :
13846 CFLAGS="$CFLAGS -D__sun__"
13847 LINTFLAGS="$LINTFLAGS -D__sun__"
13848 fi ;;
13849 esac
13854 ac_config_commands="$ac_config_commands include/stamp-h"
13857 ALL_MAKEFILE_DEPENDS="# Makefile dependencies
13858 Makefile: Makefile.in Make.rules config.status"
13860 ALL_WINETEST_DEPENDS="# Test binaries"
13863 ALL_MAKERULES=""
13865 ALL_SYMLINKS=""
13867 ALL_DIRS=""
13869 ALL_TOP_DIRS=""
13871 ALL_DLL_DIRS=""
13873 ALL_TOOL_DIRS=""
13875 ALL_STATICLIB_DIRS=""
13877 ALL_STATIC_LIBS=""
13879 ALL_IMPORT_LIBS=""
13881 ALL_INSTALL_DIRS=""
13883 ALL_TEST_DIRS=""
13885 ALL_TEST_BINARIES=""
13887 ALL_PROGRAM_DIRS=""
13889 ALL_PROGRAM_BIN_INSTALL_DIRS=""
13892 wine_fn_append_file ()
13894 as_fn_append $1 " \\$as_nl $2"
13897 wine_fn_append_rule ()
13899 as_fn_append $1 "$as_nl$2"
13902 wine_fn_config_makefile ()
13904 ac_dir=$1
13905 ac_enable=$2
13906 wine_fn_append_file ALL_DIRS $ac_dir
13907 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13908 "$ac_dir/__clean__ $ac_dir/__install__ $ac_dir/__install-dev__ $ac_dir/__install-lib__ $ac_dir/__uninstall__ $ac_dir: $ac_dir/Makefile
13909 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status Make.rules \$(MAKEDEP)
13910 @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
13911 eval as_val=\$$ac_enable
13912 if test "x$as_val" = x""no; then :
13914 else
13915 case $ac_dir in
13916 */*) ;;
13917 *) wine_fn_append_file ALL_TOP_DIRS $ac_dir ;;
13918 esac
13922 wine_fn_config_lib ()
13924 ac_name=$1
13925 ac_dir=dlls/$ac_name
13926 wine_fn_append_file ALL_DIRS $ac_dir
13927 wine_fn_append_file ALL_STATICLIB_DIRS $ac_dir
13928 wine_fn_append_file ALL_STATIC_LIBS $ac_dir/lib$ac_name.a
13929 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13930 "$ac_dir/__install__ $ac_dir/__install-dev__: $ac_dir
13931 $ac_dir $ac_dir/lib$ac_name.cross.a: tools/widl tools/winebuild tools/winegcc include
13932 $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile dummy
13933 @cd $ac_dir && \$(MAKE) lib$ac_name.cross.a
13934 $ac_dir/__clean__ $ac_dir/__install-lib__ $ac_dir/__uninstall__ $ac_dir: $ac_dir/Makefile
13935 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status dlls/Makeimplib.rules \$(MAKEDEP)
13936 @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
13939 wine_fn_config_dll ()
13941 ac_dir=$1
13942 ac_enable=$2
13943 ac_implib=$3
13944 ac_implibsrc=$4
13945 ac_file="dlls/$ac_dir/lib$ac_implib"
13946 ac_deps="tools/widl tools/winebuild tools/winegcc include"
13948 wine_fn_append_file ALL_DIRS dlls/$ac_dir
13949 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13950 "dlls/$ac_dir dlls/$ac_dir/__install__ dlls/$ac_dir/__install-lib__ dlls/$ac_dir/__install-dev__: __builddeps__ dlls/$ac_dir/Makefile
13951 dlls/$ac_dir/__clean__ dlls/$ac_dir/__uninstall__ dlls/$ac_dir: dlls/$ac_dir/Makefile
13952 dlls/$ac_dir/Makefile dlls/$ac_dir/__depend__: dlls/$ac_dir/Makefile.in config.status dlls/Makedll.rules \$(MAKEDEP)
13953 @./config.status --file dlls/$ac_dir/Makefile && cd dlls/$ac_dir && \$(MAKE) depend"
13954 eval as_val=\$$ac_enable
13955 if test "x$as_val" = x""no; then :
13956 test "$ac_enable" != enable_win16 || return 0
13957 else
13958 wine_fn_append_file ALL_DLL_DIRS dlls/$ac_dir
13961 if test -n "$ac_implibsrc"
13962 then
13963 wine_fn_append_file ALL_IMPORT_LIBS $ac_file.$IMPLIBEXT
13964 wine_fn_append_file ALL_IMPORT_LIBS $ac_file.$STATIC_IMPLIBEXT
13965 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13966 "$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
13967 $ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile
13968 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
13969 $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/Makefile dummy
13970 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`"
13971 elif test -n "$ac_implib"
13972 then
13973 wine_fn_append_file ALL_IMPORT_LIBS $ac_file.$IMPLIBEXT
13974 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13975 "$ac_file.$IMPLIBEXT $ac_file.cross.a: $ac_deps
13976 $ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile
13977 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`"
13979 if test "$ac_dir" != "$ac_implib"
13980 then
13981 wine_fn_append_file ALL_IMPORT_LIBS dlls/lib$ac_implib.$IMPLIBEXT
13982 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13983 "dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
13984 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.$IMPLIBEXT \$@
13985 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
13986 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.cross.a \$@
13987 clean::
13988 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
13993 wine_fn_config_program ()
13995 ac_dir=$1
13996 ac_enable=$2
13997 ac_install=$3
13998 wine_fn_append_file ALL_DIRS programs/$ac_dir
13999 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14000 "programs/$ac_dir programs/$ac_dir/__install__ programs/$ac_dir/__install-lib__: __builddeps__ programs/$ac_dir/Makefile
14001 programs/$ac_dir/__clean__ programs/$ac_dir/__install-dev__ programs/$ac_dir/__uninstall__ programs/$ac_dir: programs/$ac_dir/Makefile
14002 programs/$ac_dir/Makefile programs/$ac_dir/__depend__: programs/$ac_dir/Makefile.in config.status programs/Makeprog.rules \$(MAKEDEP)
14003 @./config.status --file programs/$ac_dir/Makefile && cd programs/$ac_dir && \$(MAKE) depend"
14004 eval as_val=\$$ac_enable
14005 if test "x$as_val" = x""no; then :
14007 else
14008 wine_fn_append_file ALL_PROGRAM_DIRS programs/$ac_dir
14009 case $ac_install in
14010 installbin) wine_fn_append_file ALL_INSTALL_DIRS programs/$ac_dir
14011 wine_fn_append_file ALL_PROGRAM_BIN_INSTALL_DIRS programs/$ac_dir ;;
14012 install) wine_fn_append_file ALL_INSTALL_DIRS programs/$ac_dir ;;
14013 esac
14017 wine_fn_config_test ()
14019 ac_dir=$1
14020 ac_name=$2
14021 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14022 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14023 "$ac_name.exe: \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT
14024 cp \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14025 $ac_name.rc:
14026 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14027 $ac_name.res: $ac_name.rc $ac_name.exe"
14028 wine_fn_append_file ALL_DIRS $ac_dir
14029 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14030 "$ac_dir: __builddeps__
14031 $ac_dir/__crosstest__: __buildcrossdeps__
14032 $ac_dir/__clean__ $ac_dir/__crosstest__ $ac_dir: $ac_dir/Makefile
14033 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status Maketest.rules \$(MAKEDEP)
14034 @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
14035 if test "x$enable_tests" = x""no; then :
14037 else
14038 wine_fn_append_file ALL_TEST_DIRS $ac_dir
14042 wine_fn_config_tool ()
14044 ac_dir=$1
14045 ac_deps="Make.rules"
14046 if test "$ac_dir" != tools
14047 then
14048 ac_deps="$ac_deps \$(MAKEDEP)"
14050 wine_fn_append_file ALL_DIRS $ac_dir
14051 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14052 "$ac_dir/__clean__ $ac_dir/__install__ $ac_dir/__install-dev__ $ac_dir/__install-lib__ $ac_dir/__uninstall__ $ac_dir: $ac_dir/Makefile
14053 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status $ac_deps
14054 @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
14055 if test "x$enable_tools" = x""no; then :
14057 else
14058 wine_fn_append_file ALL_TOOL_DIRS $ac_dir
14061 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14062 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "dlls/wineps.drv/generic.ppd"
14063 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14064 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/marlett.ttf"
14065 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14066 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/symbol.ttf"
14067 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14068 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/tahoma.ttf"
14069 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14070 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/tahomabd.ttf"
14071 ac_config_links="$ac_config_links wine:tools/winewrapper"
14072 wine_fn_append_file ALL_SYMLINKS "wine"
14074 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14076 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14078 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14080 ac_config_commands="$ac_config_commands dlls/user32/resources"
14082 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14084 ac_config_commands="$ac_config_commands include/wine"
14087 wine_fn_append_file ALL_MAKERULES "Make.rules"
14088 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "Make.rules: Make.rules.in config.status"
14089 MAKE_RULES=Make.rules
14090 ac_config_files="$ac_config_files Make.rules"
14092 wine_fn_append_file ALL_MAKERULES "Maketest.rules"
14093 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "Maketest.rules: Maketest.rules.in Make.rules config.status"
14094 MAKE_TEST_RULES=Maketest.rules
14095 ac_config_files="$ac_config_files Maketest.rules"
14097 wine_fn_append_file ALL_MAKERULES "dlls/Makedll.rules"
14098 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "dlls/Makedll.rules: dlls/Makedll.rules.in Make.rules config.status"
14099 MAKE_DLL_RULES=dlls/Makedll.rules
14100 ac_config_files="$ac_config_files dlls/Makedll.rules"
14102 wine_fn_append_file ALL_MAKERULES "dlls/Makeimplib.rules"
14103 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "dlls/Makeimplib.rules: dlls/Makeimplib.rules.in Make.rules config.status"
14104 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14105 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14107 wine_fn_append_file ALL_MAKERULES "programs/Makeprog.rules"
14108 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "programs/Makeprog.rules: programs/Makeprog.rules.in Make.rules config.status"
14109 MAKE_PROG_RULES=programs/Makeprog.rules
14110 ac_config_files="$ac_config_files programs/Makeprog.rules"
14113 wine_fn_config_dll acledit enable_acledit
14114 wine_fn_config_dll aclui enable_aclui aclui
14115 wine_fn_config_dll activeds enable_activeds activeds
14116 wine_fn_config_dll actxprxy enable_actxprxy
14117 wine_fn_config_lib adsiid
14118 wine_fn_config_dll advapi32 enable_advapi32 advapi32
14119 wine_fn_config_test dlls/advapi32/tests advapi32_test
14120 wine_fn_config_dll advpack enable_advpack advpack
14121 wine_fn_config_test dlls/advpack/tests advpack_test
14122 wine_fn_config_dll amstream enable_amstream
14123 wine_fn_config_test dlls/amstream/tests amstream_test
14124 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14125 wine_fn_config_dll atl enable_atl atl
14126 wine_fn_config_dll authz enable_authz
14127 wine_fn_config_dll avicap32 enable_avicap32 avicap32
14128 wine_fn_config_dll avifil32 enable_avifil32 avifil32
14129 wine_fn_config_test dlls/avifil32/tests avifil32_test
14130 wine_fn_config_dll avifile.dll16 enable_win16
14131 wine_fn_config_dll avrt enable_avrt avrt
14132 wine_fn_config_dll bcrypt enable_bcrypt
14133 wine_fn_config_dll browseui enable_browseui
14134 wine_fn_config_test dlls/browseui/tests browseui_test
14135 wine_fn_config_dll cabinet enable_cabinet cabinet
14136 wine_fn_config_test dlls/cabinet/tests cabinet_test
14137 wine_fn_config_dll capi2032 enable_capi2032 capi2032
14138 wine_fn_config_dll cards enable_cards cards
14139 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14140 wine_fn_config_dll clusapi enable_clusapi clusapi
14141 wine_fn_config_dll comcat enable_comcat
14142 wine_fn_config_test dlls/comcat/tests comcat_test
14143 wine_fn_config_dll comctl32 enable_comctl32 comctl32
14144 wine_fn_config_test dlls/comctl32/tests comctl32_test
14145 wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
14146 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14147 wine_fn_config_dll comm.drv16 enable_win16
14148 wine_fn_config_dll commdlg.dll16 enable_win16
14149 wine_fn_config_dll compobj.dll16 enable_win16
14150 wine_fn_config_dll compstui enable_compstui compstui
14151 wine_fn_config_dll credui enable_credui credui
14152 wine_fn_config_test dlls/credui/tests credui_test
14153 wine_fn_config_dll crtdll enable_crtdll crtdll
14154 wine_fn_config_dll crypt32 enable_crypt32 crypt32
14155 wine_fn_config_test dlls/crypt32/tests crypt32_test
14156 wine_fn_config_dll cryptdlg enable_cryptdlg
14157 wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14158 wine_fn_config_dll cryptnet enable_cryptnet cryptnet
14159 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14160 wine_fn_config_dll cryptui enable_cryptui cryptui
14161 wine_fn_config_test dlls/cryptui/tests cryptui_test
14162 wine_fn_config_dll ctapi32 enable_ctapi32
14163 wine_fn_config_dll ctl3d.dll16 enable_win16
14164 wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14165 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14166 wine_fn_config_dll d3d10 enable_d3d10 d3d10
14167 wine_fn_config_test dlls/d3d10/tests d3d10_test
14168 wine_fn_config_dll d3d10core enable_d3d10core d3d10core
14169 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14170 wine_fn_config_dll d3d8 enable_d3d8 d3d8
14171 wine_fn_config_test dlls/d3d8/tests d3d8_test
14172 wine_fn_config_dll d3d9 enable_d3d9 d3d9
14173 wine_fn_config_test dlls/d3d9/tests d3d9_test
14174 wine_fn_config_dll d3dim enable_d3dim d3dim
14175 wine_fn_config_dll d3drm enable_d3drm d3drm
14176 wine_fn_config_test dlls/d3drm/tests d3drm_test
14177 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14178 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14179 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14180 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14181 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14182 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14183 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14184 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14185 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14186 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14187 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14188 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14189 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
14190 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14191 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14192 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14193 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14194 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14195 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14196 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14197 wine_fn_config_dll d3dxof enable_d3dxof d3dxof
14198 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14199 wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14200 wine_fn_config_dll dciman32 enable_dciman32 dciman32
14201 wine_fn_config_dll ddeml.dll16 enable_win16
14202 wine_fn_config_dll ddraw enable_ddraw ddraw
14203 wine_fn_config_test dlls/ddraw/tests ddraw_test
14204 wine_fn_config_dll ddrawex enable_ddrawex
14205 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14206 wine_fn_config_dll devenum enable_devenum
14207 wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
14208 wine_fn_config_test dlls/dinput/tests dinput_test
14209 wine_fn_config_dll dinput8 enable_dinput8 dinput8
14210 wine_fn_config_dll dispdib.dll16 enable_win16
14211 wine_fn_config_dll dispex enable_dispex
14212 wine_fn_config_test dlls/dispex/tests dispex_test
14213 wine_fn_config_dll display.drv16 enable_win16
14214 wine_fn_config_dll dmband enable_dmband
14215 wine_fn_config_dll dmcompos enable_dmcompos
14216 wine_fn_config_dll dmime enable_dmime
14217 wine_fn_config_dll dmloader enable_dmloader
14218 wine_fn_config_test dlls/dmloader/tests dmloader_test
14219 wine_fn_config_dll dmscript enable_dmscript
14220 wine_fn_config_dll dmstyle enable_dmstyle
14221 wine_fn_config_dll dmsynth enable_dmsynth
14222 wine_fn_config_dll dmusic enable_dmusic
14223 wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14224 wine_fn_config_dll dnsapi enable_dnsapi dnsapi
14225 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14226 wine_fn_config_dll dplay enable_dplay dplay
14227 wine_fn_config_dll dplayx enable_dplayx dplayx
14228 wine_fn_config_test dlls/dplayx/tests dplayx_test
14229 wine_fn_config_dll dpnaddr enable_dpnaddr
14230 wine_fn_config_dll dpnet enable_dpnet dpnet
14231 wine_fn_config_dll dpnhpast enable_dpnhpast
14232 wine_fn_config_dll dpnlobby enable_dpnlobby
14233 wine_fn_config_dll dpwsockx enable_dpwsockx
14234 wine_fn_config_dll drmclien enable_drmclien
14235 wine_fn_config_dll dsound enable_dsound dsound
14236 wine_fn_config_test dlls/dsound/tests dsound_test
14237 wine_fn_config_dll dssenh enable_dssenh
14238 wine_fn_config_dll dswave enable_dswave
14239 wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14240 wine_fn_config_dll dxdiagn enable_dxdiagn
14241 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14242 wine_fn_config_lib dxerr8
14243 wine_fn_config_lib dxerr9
14244 wine_fn_config_dll dxgi enable_dxgi dxgi
14245 wine_fn_config_test dlls/dxgi/tests dxgi_test
14246 wine_fn_config_lib dxguid
14247 wine_fn_config_dll faultrep enable_faultrep
14248 wine_fn_config_dll fltlib enable_fltlib
14249 wine_fn_config_dll fusion enable_fusion
14250 wine_fn_config_test dlls/fusion/tests fusion_test
14251 wine_fn_config_dll fwpuclnt enable_fwpuclnt
14252 wine_fn_config_dll gdi.exe16 enable_win16
14253 wine_fn_config_dll gdi32 enable_gdi32 gdi32
14254 wine_fn_config_test dlls/gdi32/tests gdi32_test
14255 wine_fn_config_dll gdiplus enable_gdiplus gdiplus
14256 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
14257 wine_fn_config_dll glu32 enable_glu32 glu32
14258 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14259 wine_fn_config_dll gpkcsp enable_gpkcsp
14260 wine_fn_config_dll hal enable_hal
14261 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14262 wine_fn_config_dll hid enable_hid hid
14263 wine_fn_config_dll hlink enable_hlink hlink
14264 wine_fn_config_test dlls/hlink/tests hlink_test
14265 wine_fn_config_dll hnetcfg enable_hnetcfg
14266 wine_fn_config_dll httpapi enable_httpapi
14267 wine_fn_config_dll iccvid enable_iccvid
14268 wine_fn_config_dll icmp enable_icmp
14269 wine_fn_config_dll ifsmgr.vxd enable_win16
14270 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14271 wine_fn_config_dll imagehlp enable_imagehlp imagehlp
14272 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
14273 wine_fn_config_dll imm.dll16 enable_win16
14274 wine_fn_config_dll imm32 enable_imm32 imm32
14275 wine_fn_config_test dlls/imm32/tests imm32_test
14276 wine_fn_config_dll inetcomm enable_inetcomm inetcomm
14277 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
14278 wine_fn_config_dll inetmib1 enable_inetmib1
14279 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
14280 wine_fn_config_dll infosoft enable_infosoft
14281 wine_fn_config_test dlls/infosoft/tests infosoft_test
14282 wine_fn_config_dll initpki enable_initpki
14283 wine_fn_config_dll inkobj enable_inkobj
14284 wine_fn_config_dll inseng enable_inseng
14285 wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
14286 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
14287 wine_fn_config_dll itircl enable_itircl
14288 wine_fn_config_dll itss enable_itss
14289 wine_fn_config_test dlls/itss/tests itss_test
14290 wine_fn_config_dll jscript enable_jscript
14291 wine_fn_config_test dlls/jscript/tests jscript_test
14292 wine_fn_config_dll kernel32 enable_kernel32 kernel32
14293 wine_fn_config_test dlls/kernel32/tests kernel32_test
14294 wine_fn_config_dll keyboard.drv16 enable_win16
14295 wine_fn_config_dll krnl386.exe16 enable_win16 kernel
14296 wine_fn_config_dll loadperf enable_loadperf loadperf
14297 wine_fn_config_dll localspl enable_localspl
14298 wine_fn_config_test dlls/localspl/tests localspl_test
14299 wine_fn_config_dll localui enable_localui
14300 wine_fn_config_test dlls/localui/tests localui_test
14301 wine_fn_config_dll lz32 enable_lz32 lz32
14302 wine_fn_config_test dlls/lz32/tests lz32_test
14303 wine_fn_config_dll lzexpand.dll16 enable_win16
14304 wine_fn_config_dll mapi32 enable_mapi32 mapi32
14305 wine_fn_config_test dlls/mapi32/tests mapi32_test
14306 wine_fn_config_dll mapistub enable_mapistub
14307 wine_fn_config_dll mciavi32 enable_mciavi32
14308 wine_fn_config_dll mcicda enable_mcicda
14309 wine_fn_config_dll mciqtz32 enable_mciqtz32
14310 wine_fn_config_dll mciseq enable_mciseq
14311 wine_fn_config_dll mciwave enable_mciwave
14312 wine_fn_config_dll midimap enable_midimap
14313 wine_fn_config_dll mlang enable_mlang mlang
14314 wine_fn_config_test dlls/mlang/tests mlang_test
14315 wine_fn_config_dll mmdevapi enable_mmdevapi
14316 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
14317 wine_fn_config_dll mmdevldr.vxd enable_win16
14318 wine_fn_config_dll mmsystem.dll16 enable_win16
14319 wine_fn_config_dll monodebg.vxd enable_win16
14320 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14321 wine_fn_config_dll mouse.drv16 enable_win16
14322 wine_fn_config_dll mpr enable_mpr mpr
14323 wine_fn_config_dll mprapi enable_mprapi mprapi
14324 wine_fn_config_dll msacm.dll16 enable_win16
14325 wine_fn_config_dll msacm32.drv enable_msacm32_drv
14326 wine_fn_config_dll msacm32 enable_msacm32 msacm32
14327 wine_fn_config_test dlls/msacm32/tests msacm32_test
14328 wine_fn_config_dll msadp32.acm enable_msadp32_acm
14329 wine_fn_config_dll mscat32 enable_mscat32
14330 wine_fn_config_dll mscms enable_mscms mscms
14331 wine_fn_config_test dlls/mscms/tests mscms_test
14332 wine_fn_config_dll mscoree enable_mscoree
14333 wine_fn_config_dll msctf enable_msctf
14334 wine_fn_config_test dlls/msctf/tests msctf_test
14335 wine_fn_config_dll msdaps enable_msdaps
14336 wine_fn_config_dll msdmo enable_msdmo msdmo
14337 wine_fn_config_dll msftedit enable_msftedit
14338 wine_fn_config_dll msg711.acm enable_msg711_acm
14339 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14340 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
14341 wine_fn_config_dll mshtml enable_mshtml mshtml
14342 wine_fn_config_test dlls/mshtml/tests mshtml_test
14343 wine_fn_config_dll msi enable_msi msi
14344 wine_fn_config_test dlls/msi/tests msi_test
14345 wine_fn_config_dll msimg32 enable_msimg32 msimg32
14346 wine_fn_config_dll msimtf enable_msimtf
14347 wine_fn_config_dll msisip enable_msisip
14348 wine_fn_config_dll msisys.ocx enable_msisys_ocx
14349 wine_fn_config_dll msnet32 enable_msnet32
14350 wine_fn_config_dll msrle32 enable_msrle32
14351 wine_fn_config_dll mssign32 enable_mssign32
14352 wine_fn_config_dll mssip32 enable_mssip32
14353 wine_fn_config_dll mstask enable_mstask
14354 wine_fn_config_test dlls/mstask/tests mstask_test
14355 wine_fn_config_dll msvcirt enable_msvcirt
14356 wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
14357 wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
14358 wine_fn_config_dll msvcr80 enable_msvcr80 msvcr80
14359 wine_fn_config_dll msvcr90 enable_msvcr90 msvcr90
14360 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
14361 wine_fn_config_dll msvcrt enable_msvcrt msvcrt
14362 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
14363 wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
14364 wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
14365 wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
14366 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
14367 wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
14368 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
14369 wine_fn_config_dll msvidc32 enable_msvidc32
14370 wine_fn_config_dll msvideo.dll16 enable_win16
14371 wine_fn_config_dll mswsock enable_mswsock mswsock
14372 wine_fn_config_dll msxml3 enable_msxml3
14373 wine_fn_config_test dlls/msxml3/tests msxml3_test
14374 wine_fn_config_dll msxml4 enable_msxml4
14375 wine_fn_config_dll nddeapi enable_nddeapi nddeapi
14376 wine_fn_config_dll netapi32 enable_netapi32 netapi32
14377 wine_fn_config_test dlls/netapi32/tests netapi32_test
14378 wine_fn_config_dll newdev enable_newdev newdev
14379 wine_fn_config_dll ntdll enable_ntdll ntdll
14380 wine_fn_config_test dlls/ntdll/tests ntdll_test
14381 wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
14382 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
14383 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
14384 wine_fn_config_dll ntprint enable_ntprint
14385 wine_fn_config_test dlls/ntprint/tests ntprint_test
14386 wine_fn_config_dll objsel enable_objsel
14387 wine_fn_config_dll odbc32 enable_odbc32 odbc32
14388 wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
14389 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
14390 wine_fn_config_dll ole2.dll16 enable_win16
14391 wine_fn_config_dll ole2conv.dll16 enable_win16
14392 wine_fn_config_dll ole2disp.dll16 enable_win16
14393 wine_fn_config_dll ole2nls.dll16 enable_win16
14394 wine_fn_config_dll ole2prox.dll16 enable_win16
14395 wine_fn_config_dll ole2thk.dll16 enable_win16
14396 wine_fn_config_dll ole32 enable_ole32 ole32
14397 wine_fn_config_test dlls/ole32/tests ole32_test
14398 wine_fn_config_dll oleacc enable_oleacc oleacc
14399 wine_fn_config_test dlls/oleacc/tests oleacc_test
14400 wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
14401 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
14402 wine_fn_config_dll olecli.dll16 enable_win16
14403 wine_fn_config_dll olecli32 enable_olecli32 olecli32
14404 wine_fn_config_dll oledb32 enable_oledb32
14405 wine_fn_config_test dlls/oledb32/tests oledb32_test
14406 wine_fn_config_dll oledlg enable_oledlg oledlg
14407 wine_fn_config_dll olepro32 enable_olepro32 olepro32
14408 wine_fn_config_dll olesvr.dll16 enable_win16
14409 wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
14410 wine_fn_config_dll olethk32 enable_olethk32
14411 wine_fn_config_dll openal32 enable_openal32
14412 wine_fn_config_dll opengl32 enable_opengl32 opengl32
14413 wine_fn_config_test dlls/opengl32/tests opengl32_test
14414 wine_fn_config_dll pdh enable_pdh pdh
14415 wine_fn_config_test dlls/pdh/tests pdh_test
14416 wine_fn_config_dll pidgen enable_pidgen
14417 wine_fn_config_dll powrprof enable_powrprof powrprof
14418 wine_fn_config_dll printui enable_printui
14419 wine_fn_config_dll propsys enable_propsys
14420 wine_fn_config_dll psapi enable_psapi psapi
14421 wine_fn_config_test dlls/psapi/tests psapi_test
14422 wine_fn_config_dll pstorec enable_pstorec
14423 wine_fn_config_dll qcap enable_qcap
14424 wine_fn_config_dll qedit enable_qedit
14425 wine_fn_config_test dlls/qedit/tests qedit_test
14426 wine_fn_config_dll qmgr enable_qmgr
14427 wine_fn_config_test dlls/qmgr/tests qmgr_test
14428 wine_fn_config_dll qmgrprxy enable_qmgrprxy
14429 wine_fn_config_dll quartz enable_quartz quartz
14430 wine_fn_config_test dlls/quartz/tests quartz_test
14431 wine_fn_config_dll query enable_query
14432 wine_fn_config_dll rasapi16.dll16 enable_win16
14433 wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
14434 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
14435 wine_fn_config_dll rasdlg enable_rasdlg rasdlg
14436 wine_fn_config_dll resutils enable_resutils resutils
14437 wine_fn_config_dll riched20 enable_riched20 riched20
14438 wine_fn_config_test dlls/riched20/tests riched20_test
14439 wine_fn_config_dll riched32 enable_riched32
14440 wine_fn_config_test dlls/riched32/tests riched32_test
14441 wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
14442 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
14443 wine_fn_config_dll rsabase enable_rsabase
14444 wine_fn_config_dll rsaenh enable_rsaenh rsaenh
14445 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
14446 wine_fn_config_dll rtutils enable_rtutils rtutils
14447 wine_fn_config_dll sane.ds enable_sane_ds
14448 wine_fn_config_dll sccbase enable_sccbase
14449 wine_fn_config_dll schannel enable_schannel
14450 wine_fn_config_test dlls/schannel/tests schannel_test
14451 wine_fn_config_dll secur32 enable_secur32 secur32
14452 wine_fn_config_test dlls/secur32/tests secur32_test
14453 wine_fn_config_dll security enable_security
14454 wine_fn_config_dll sensapi enable_sensapi sensapi
14455 wine_fn_config_dll serialui enable_serialui serialui
14456 wine_fn_config_test dlls/serialui/tests serialui_test
14457 wine_fn_config_dll setupapi enable_setupapi setupapi
14458 wine_fn_config_test dlls/setupapi/tests setupapi_test
14459 wine_fn_config_dll setupx.dll16 enable_win16
14460 wine_fn_config_dll sfc enable_sfc sfc
14461 wine_fn_config_dll sfc_os enable_sfc_os sfc_os
14462 wine_fn_config_dll shdoclc enable_shdoclc
14463 wine_fn_config_dll shdocvw enable_shdocvw shdocvw
14464 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
14465 wine_fn_config_dll shell.dll16 enable_win16
14466 wine_fn_config_dll shell32 enable_shell32 shell32
14467 wine_fn_config_test dlls/shell32/tests shell32_test
14468 wine_fn_config_dll shfolder enable_shfolder shfolder
14469 wine_fn_config_dll shlwapi enable_shlwapi shlwapi
14470 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
14471 wine_fn_config_dll slbcsp enable_slbcsp
14472 wine_fn_config_dll slc enable_slc slc
14473 wine_fn_config_dll snmpapi enable_snmpapi snmpapi
14474 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
14475 wine_fn_config_dll softpub enable_softpub
14476 wine_fn_config_dll sound.drv16 enable_win16
14477 wine_fn_config_dll spoolss enable_spoolss spoolss
14478 wine_fn_config_test dlls/spoolss/tests spoolss_test
14479 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
14480 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
14481 wine_fn_config_dll sti enable_sti sti
14482 wine_fn_config_test dlls/sti/tests sti_test
14483 wine_fn_config_dll storage.dll16 enable_win16
14484 wine_fn_config_dll stress.dll16 enable_win16
14485 wine_fn_config_lib strmiids
14486 wine_fn_config_dll svrapi enable_svrapi
14487 wine_fn_config_dll sxs enable_sxs
14488 wine_fn_config_dll system.drv16 enable_win16
14489 wine_fn_config_dll t2embed enable_t2embed
14490 wine_fn_config_dll tapi32 enable_tapi32 tapi32
14491 wine_fn_config_dll toolhelp.dll16 enable_win16
14492 wine_fn_config_dll traffic enable_traffic
14493 wine_fn_config_dll twain.dll16 enable_win16
14494 wine_fn_config_dll twain_32 enable_twain_32
14495 wine_fn_config_test dlls/twain_32/tests twain_32_test
14496 wine_fn_config_dll typelib.dll16 enable_win16
14497 wine_fn_config_dll unicows enable_unicows unicows
14498 wine_fn_config_dll updspapi enable_updspapi
14499 wine_fn_config_dll url enable_url url
14500 wine_fn_config_dll urlmon enable_urlmon urlmon
14501 wine_fn_config_test dlls/urlmon/tests urlmon_test
14502 wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
14503 wine_fn_config_dll user.exe16 enable_win16
14504 wine_fn_config_dll user32 enable_user32 user32
14505 wine_fn_config_test dlls/user32/tests user32_test
14506 wine_fn_config_dll userenv enable_userenv userenv
14507 wine_fn_config_test dlls/userenv/tests userenv_test
14508 wine_fn_config_dll usp10 enable_usp10 usp10
14509 wine_fn_config_test dlls/usp10/tests usp10_test
14510 wine_fn_config_lib uuid
14511 wine_fn_config_dll uxtheme enable_uxtheme uxtheme
14512 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
14513 wine_fn_config_dll vdhcp.vxd enable_win16
14514 wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
14515 wine_fn_config_dll ver.dll16 enable_win16
14516 wine_fn_config_dll version enable_version version
14517 wine_fn_config_test dlls/version/tests version_test
14518 wine_fn_config_dll vmm.vxd enable_win16
14519 wine_fn_config_dll vnbt.vxd enable_win16
14520 wine_fn_config_dll vnetbios.vxd enable_win16
14521 wine_fn_config_dll vtdapi.vxd enable_win16
14522 wine_fn_config_dll vwin32.vxd enable_win16
14523 wine_fn_config_dll w32skrnl enable_win16
14524 wine_fn_config_dll w32sys.dll16 enable_win16
14525 wine_fn_config_dll wbemprox enable_wbemprox
14526 wine_fn_config_dll wiaservc enable_wiaservc
14527 wine_fn_config_dll win32s16.dll16 enable_win16
14528 wine_fn_config_dll win87em.dll16 enable_win16
14529 wine_fn_config_dll winaspi.dll16 enable_win16
14530 wine_fn_config_dll windebug.dll16 enable_win16
14531 wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
14532 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
14533 wine_fn_config_dll winealsa.drv enable_winealsa_drv
14534 wine_fn_config_dll wineaudioio.drv enable_wineaudioio_drv
14535 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
14536 wine_fn_config_lib winecrt0
14537 wine_fn_config_dll wined3d enable_wined3d wined3d
14538 wine_fn_config_dll wineesd.drv enable_wineesd_drv
14539 wine_fn_config_dll winejack.drv enable_winejack_drv
14540 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
14541 wine_fn_config_dll winemapi enable_winemapi
14542 wine_fn_config_dll winemp3.acm enable_winemp3_acm
14543 wine_fn_config_dll winenas.drv enable_winenas_drv
14544 wine_fn_config_dll wineoss.drv enable_wineoss_drv
14545 wine_fn_config_dll wineps.drv enable_wineps_drv
14546 wine_fn_config_dll wineps16.drv16 enable_win16
14547 wine_fn_config_dll winequartz.drv enable_winequartz_drv
14548 wine_fn_config_dll winex11.drv enable_winex11_drv
14549 wine_fn_config_dll wing.dll16 enable_win16
14550 wine_fn_config_dll wing32 enable_wing32
14551 wine_fn_config_dll winhttp enable_winhttp winhttp
14552 wine_fn_config_test dlls/winhttp/tests winhttp_test
14553 wine_fn_config_dll wininet enable_wininet wininet
14554 wine_fn_config_test dlls/wininet/tests wininet_test
14555 wine_fn_config_dll winmm enable_winmm winmm
14556 wine_fn_config_test dlls/winmm/tests winmm_test
14557 wine_fn_config_dll winnls.dll16 enable_win16
14558 wine_fn_config_dll winnls32 enable_winnls32 winnls32
14559 wine_fn_config_dll winscard enable_winscard winscard
14560 wine_fn_config_dll winsock.dll16 enable_win16
14561 wine_fn_config_dll winspool.drv enable_winspool_drv winspool
14562 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
14563 wine_fn_config_dll wintab.dll16 enable_win16
14564 wine_fn_config_dll wintab32 enable_wintab32 wintab32
14565 wine_fn_config_test dlls/wintab32/tests wintab32_test
14566 wine_fn_config_dll wintrust enable_wintrust wintrust
14567 wine_fn_config_test dlls/wintrust/tests wintrust_test
14568 wine_fn_config_dll wldap32 enable_wldap32 wldap32
14569 wine_fn_config_test dlls/wldap32/tests wldap32_test
14570 wine_fn_config_dll wmi enable_wmi
14571 wine_fn_config_dll wmiutils enable_wmiutils
14572 wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
14573 wine_fn_config_dll wow32 enable_win16 wow32
14574 wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
14575 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
14576 wine_fn_config_dll wsock32 enable_wsock32 wsock32
14577 wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
14578 wine_fn_config_dll wuapi enable_wuapi
14579 wine_fn_config_dll wuaueng enable_wuaueng
14580 wine_fn_config_dll xinput1_1 enable_xinput1_1
14581 wine_fn_config_dll xinput1_2 enable_xinput1_2
14582 wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
14583 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
14584 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
14585 wine_fn_config_dll xmllite enable_xmllite
14586 wine_fn_config_test dlls/xmllite/tests xmllite_test
14587 wine_fn_config_makefile documentation enable_documentation
14588 wine_fn_config_makefile fonts enable_fonts
14589 wine_fn_config_makefile include enable_include
14590 wine_fn_config_makefile libs/port enable_libs_port
14591 wine_fn_config_makefile libs/wine enable_libs_wine
14592 wine_fn_config_makefile libs/wpp enable_libs_wpp
14593 wine_fn_config_makefile loader enable_loader
14594 wine_fn_config_makefile programs enable_programs
14595 wine_fn_config_program attrib enable_attrib install
14596 wine_fn_config_program cacls enable_cacls install
14597 wine_fn_config_program clock enable_clock install
14598 wine_fn_config_program cmd enable_cmd install
14599 wine_fn_config_test programs/cmd/tests cmd.exe_test
14600 wine_fn_config_program cmdlgtst enable_cmdlgtst
14601 wine_fn_config_program control enable_control install
14602 wine_fn_config_program dxdiag enable_dxdiag install
14603 wine_fn_config_program eject enable_eject install
14604 wine_fn_config_program expand enable_expand install
14605 wine_fn_config_program explorer enable_explorer install
14606 wine_fn_config_program extrac32 enable_extrac32 install
14607 wine_fn_config_program hh enable_hh install
14608 wine_fn_config_program icinfo enable_icinfo install
14609 wine_fn_config_program iexplore enable_iexplore install
14610 wine_fn_config_program lodctr enable_lodctr install
14611 wine_fn_config_program mshta enable_mshta install
14612 wine_fn_config_program msiexec enable_msiexec installbin
14613 wine_fn_config_program net enable_net install
14614 wine_fn_config_program notepad enable_notepad installbin
14615 wine_fn_config_program oleview enable_oleview install
14616 wine_fn_config_program ping enable_ping install
14617 wine_fn_config_program progman enable_progman install
14618 wine_fn_config_program reg enable_reg install
14619 wine_fn_config_program regedit enable_regedit installbin
14620 wine_fn_config_program regsvr32 enable_regsvr32 installbin
14621 wine_fn_config_program rpcss enable_rpcss install
14622 wine_fn_config_program rundll32 enable_rundll32 install
14623 wine_fn_config_program secedit enable_secedit install
14624 wine_fn_config_program services enable_services install
14625 wine_fn_config_program spoolsv enable_spoolsv install
14626 wine_fn_config_program start enable_start install
14627 wine_fn_config_program svchost enable_svchost install
14628 wine_fn_config_program taskmgr enable_taskmgr install
14629 wine_fn_config_program termsv enable_termsv install
14630 wine_fn_config_program uninstaller enable_uninstaller install
14631 wine_fn_config_program unlodctr enable_unlodctr install
14632 wine_fn_config_program view enable_view
14633 wine_fn_config_program wineboot enable_wineboot installbin
14634 wine_fn_config_program winebrowser enable_winebrowser install
14635 wine_fn_config_program winecfg enable_winecfg installbin
14636 wine_fn_config_program wineconsole enable_wineconsole installbin
14637 wine_fn_config_program winedbg enable_winedbg installbin
14638 wine_fn_config_program winedevice enable_winedevice install
14639 wine_fn_config_program winefile enable_winefile installbin
14640 wine_fn_config_program winemenubuilder enable_winemenubuilder install
14641 wine_fn_config_program winemine enable_winemine installbin
14642 wine_fn_config_program winepath enable_winepath installbin
14643 wine_fn_config_program winetest enable_winetest
14644 wine_fn_config_program winevdm enable_win16 install
14645 wine_fn_config_program winhelp.exe16 enable_win16 install
14646 wine_fn_config_program winhlp32 enable_winhlp32 install
14647 wine_fn_config_program winoldap.mod16 enable_win16 install
14648 wine_fn_config_program winver enable_winver install
14649 wine_fn_config_program wordpad enable_wordpad install
14650 wine_fn_config_program write enable_write install
14651 wine_fn_config_program xcopy enable_xcopy install
14652 wine_fn_config_makefile server enable_server
14653 wine_fn_config_tool tools
14654 wine_fn_config_tool tools/widl
14655 wine_fn_config_tool tools/winebuild
14656 wine_fn_config_tool tools/winedump
14657 wine_fn_config_tool tools/winegcc
14658 wine_fn_config_tool tools/wmc
14659 wine_fn_config_tool tools/wrc
14661 ac_config_files="$ac_config_files Makefile"
14664 test -n "$DLLEXT" || ALL_PROGRAM_BIN_INSTALL_DIRS=""
14666 cat >confcache <<\_ACEOF
14667 # This file is a shell script that caches the results of configure
14668 # tests run on this system so they can be shared between configure
14669 # scripts and configure runs, see configure's option --config-cache.
14670 # It is not useful on other systems. If it contains results you don't
14671 # want to keep, you may remove or edit it.
14673 # config.status only pays attention to the cache file if you give it
14674 # the --recheck option to rerun configure.
14676 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14677 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14678 # following values.
14680 _ACEOF
14682 # The following way of writing the cache mishandles newlines in values,
14683 # but we know of no workaround that is simple, portable, and efficient.
14684 # So, we kill variables containing newlines.
14685 # Ultrix sh set writes to stderr and can't be redirected directly,
14686 # and sets the high bit in the cache file unless we assign to the vars.
14688 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14689 eval ac_val=\$$ac_var
14690 case $ac_val in #(
14691 *${as_nl}*)
14692 case $ac_var in #(
14693 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14694 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14695 esac
14696 case $ac_var in #(
14697 _ | IFS | as_nl) ;; #(
14698 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14699 *) { eval $ac_var=; unset $ac_var;} ;;
14700 esac ;;
14701 esac
14702 done
14704 (set) 2>&1 |
14705 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14706 *${as_nl}ac_space=\ *)
14707 # `set' does not quote correctly, so add quotes: double-quote
14708 # substitution turns \\\\ into \\, and sed turns \\ into \.
14709 sed -n \
14710 "s/'/'\\\\''/g;
14711 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14712 ;; #(
14714 # `set' quotes correctly as required by POSIX, so do not add quotes.
14715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14717 esac |
14718 sort
14720 sed '
14721 /^ac_cv_env_/b end
14722 t clear
14723 :clear
14724 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14725 t end
14726 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14727 :end' >>confcache
14728 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14729 if test -w "$cache_file"; then
14730 test "x$cache_file" != "x/dev/null" &&
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14732 $as_echo "$as_me: updating cache $cache_file" >&6;}
14733 cat confcache >$cache_file
14734 else
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14736 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14739 rm -f confcache
14741 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14742 # Let make expand exec_prefix.
14743 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14745 DEFS=-DHAVE_CONFIG_H
14747 ac_libobjs=
14748 ac_ltlibobjs=
14749 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14750 # 1. Remove the extension, and $U if already installed.
14751 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14752 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14753 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14754 # will be set to the directory where LIBOBJS objects are built.
14755 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14756 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14757 done
14758 LIBOBJS=$ac_libobjs
14760 LTLIBOBJS=$ac_ltlibobjs
14764 : ${CONFIG_STATUS=./config.status}
14765 ac_write_fail=0
14766 ac_clean_files_save=$ac_clean_files
14767 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14769 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14770 as_write_fail=0
14771 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14772 #! $SHELL
14773 # Generated by $as_me.
14774 # Run this file to recreate the current configuration.
14775 # Compiler output produced by configure, useful for debugging
14776 # configure, is in config.log if it exists.
14778 debug=false
14779 ac_cs_recheck=false
14780 ac_cs_silent=false
14782 SHELL=\${CONFIG_SHELL-$SHELL}
14783 export SHELL
14784 _ASEOF
14785 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14786 ## -------------------- ##
14787 ## M4sh Initialization. ##
14788 ## -------------------- ##
14790 # Be more Bourne compatible
14791 DUALCASE=1; export DUALCASE # for MKS sh
14792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14793 emulate sh
14794 NULLCMD=:
14795 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14796 # is contrary to our usage. Disable this feature.
14797 alias -g '${1+"$@"}'='"$@"'
14798 setopt NO_GLOB_SUBST
14799 else
14800 case `(set -o) 2>/dev/null` in #(
14801 *posix*) :
14802 set -o posix ;; #(
14803 *) :
14805 esac
14809 as_nl='
14811 export as_nl
14812 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14813 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14814 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14816 # Prefer a ksh shell builtin over an external printf program on Solaris,
14817 # but without wasting forks for bash or zsh.
14818 if test -z "$BASH_VERSION$ZSH_VERSION" \
14819 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14820 as_echo='print -r --'
14821 as_echo_n='print -rn --'
14822 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14823 as_echo='printf %s\n'
14824 as_echo_n='printf %s'
14825 else
14826 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14827 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14828 as_echo_n='/usr/ucb/echo -n'
14829 else
14830 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14831 as_echo_n_body='eval
14832 arg=$1;
14833 case $arg in #(
14834 *"$as_nl"*)
14835 expr "X$arg" : "X\\(.*\\)$as_nl";
14836 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14837 esac;
14838 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14840 export as_echo_n_body
14841 as_echo_n='sh -c $as_echo_n_body as_echo'
14843 export as_echo_body
14844 as_echo='sh -c $as_echo_body as_echo'
14847 # The user is always right.
14848 if test "${PATH_SEPARATOR+set}" != set; then
14849 PATH_SEPARATOR=:
14850 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14851 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14852 PATH_SEPARATOR=';'
14857 # IFS
14858 # We need space, tab and new line, in precisely that order. Quoting is
14859 # there to prevent editors from complaining about space-tab.
14860 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14861 # splitting by setting IFS to empty value.)
14862 IFS=" "" $as_nl"
14864 # Find who we are. Look in the path if we contain no directory separator.
14865 case $0 in #((
14866 *[\\/]* ) as_myself=$0 ;;
14867 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14868 for as_dir in $PATH
14870 IFS=$as_save_IFS
14871 test -z "$as_dir" && as_dir=.
14872 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14873 done
14874 IFS=$as_save_IFS
14877 esac
14878 # We did not find ourselves, most probably we were run as `sh COMMAND'
14879 # in which case we are not to be found in the path.
14880 if test "x$as_myself" = x; then
14881 as_myself=$0
14883 if test ! -f "$as_myself"; then
14884 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14885 exit 1
14888 # Unset variables that we do not need and which cause bugs (e.g. in
14889 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14890 # suppresses any "Segmentation fault" message there. '((' could
14891 # trigger a bug in pdksh 5.2.14.
14892 for as_var in BASH_ENV ENV MAIL MAILPATH
14893 do eval test x\${$as_var+set} = xset \
14894 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14895 done
14896 PS1='$ '
14897 PS2='> '
14898 PS4='+ '
14900 # NLS nuisances.
14901 LC_ALL=C
14902 export LC_ALL
14903 LANGUAGE=C
14904 export LANGUAGE
14906 # CDPATH.
14907 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14910 # as_fn_error ERROR [LINENO LOG_FD]
14911 # ---------------------------------
14912 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14913 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14914 # script with status $?, using 1 if that was 0.
14915 as_fn_error ()
14917 as_status=$?; test $as_status -eq 0 && as_status=1
14918 if test "$3"; then
14919 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14920 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14922 $as_echo "$as_me: error: $1" >&2
14923 as_fn_exit $as_status
14924 } # as_fn_error
14927 # as_fn_set_status STATUS
14928 # -----------------------
14929 # Set $? to STATUS, without forking.
14930 as_fn_set_status ()
14932 return $1
14933 } # as_fn_set_status
14935 # as_fn_exit STATUS
14936 # -----------------
14937 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14938 as_fn_exit ()
14940 set +e
14941 as_fn_set_status $1
14942 exit $1
14943 } # as_fn_exit
14945 # as_fn_unset VAR
14946 # ---------------
14947 # Portably unset VAR.
14948 as_fn_unset ()
14950 { eval $1=; unset $1;}
14952 as_unset=as_fn_unset
14953 # as_fn_append VAR VALUE
14954 # ----------------------
14955 # Append the text in VALUE to the end of the definition contained in VAR. Take
14956 # advantage of any shell optimizations that allow amortized linear growth over
14957 # repeated appends, instead of the typical quadratic growth present in naive
14958 # implementations.
14959 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14960 eval 'as_fn_append ()
14962 eval $1+=\$2
14964 else
14965 as_fn_append ()
14967 eval $1=\$$1\$2
14969 fi # as_fn_append
14971 # as_fn_arith ARG...
14972 # ------------------
14973 # Perform arithmetic evaluation on the ARGs, and store the result in the
14974 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14975 # must be portable across $(()) and expr.
14976 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14977 eval 'as_fn_arith ()
14979 as_val=$(( $* ))
14981 else
14982 as_fn_arith ()
14984 as_val=`expr "$@" || test $? -eq 1`
14986 fi # as_fn_arith
14989 if expr a : '\(a\)' >/dev/null 2>&1 &&
14990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14991 as_expr=expr
14992 else
14993 as_expr=false
14996 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14997 as_basename=basename
14998 else
14999 as_basename=false
15002 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15003 as_dirname=dirname
15004 else
15005 as_dirname=false
15008 as_me=`$as_basename -- "$0" ||
15009 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15010 X"$0" : 'X\(//\)$' \| \
15011 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15012 $as_echo X/"$0" |
15013 sed '/^.*\/\([^/][^/]*\)\/*$/{
15014 s//\1/
15017 /^X\/\(\/\/\)$/{
15018 s//\1/
15021 /^X\/\(\/\).*/{
15022 s//\1/
15025 s/.*/./; q'`
15027 # Avoid depending upon Character Ranges.
15028 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15029 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15030 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15031 as_cr_digits='0123456789'
15032 as_cr_alnum=$as_cr_Letters$as_cr_digits
15034 ECHO_C= ECHO_N= ECHO_T=
15035 case `echo -n x` in #(((((
15036 -n*)
15037 case `echo 'xy\c'` in
15038 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15039 xy) ECHO_C='\c';;
15040 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15041 ECHO_T=' ';;
15042 esac;;
15044 ECHO_N='-n';;
15045 esac
15047 rm -f conf$$ conf$$.exe conf$$.file
15048 if test -d conf$$.dir; then
15049 rm -f conf$$.dir/conf$$.file
15050 else
15051 rm -f conf$$.dir
15052 mkdir conf$$.dir 2>/dev/null
15054 if (echo >conf$$.file) 2>/dev/null; then
15055 if ln -s conf$$.file conf$$ 2>/dev/null; then
15056 as_ln_s='ln -s'
15057 # ... but there are two gotchas:
15058 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15059 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15060 # In both cases, we have to default to `cp -p'.
15061 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15062 as_ln_s='cp -p'
15063 elif ln conf$$.file conf$$ 2>/dev/null; then
15064 as_ln_s=ln
15065 else
15066 as_ln_s='cp -p'
15068 else
15069 as_ln_s='cp -p'
15071 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15072 rmdir conf$$.dir 2>/dev/null
15075 # as_fn_mkdir_p
15076 # -------------
15077 # Create "$as_dir" as a directory, including parents if necessary.
15078 as_fn_mkdir_p ()
15081 case $as_dir in #(
15082 -*) as_dir=./$as_dir;;
15083 esac
15084 test -d "$as_dir" || eval $as_mkdir_p || {
15085 as_dirs=
15086 while :; do
15087 case $as_dir in #(
15088 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15089 *) as_qdir=$as_dir;;
15090 esac
15091 as_dirs="'$as_qdir' $as_dirs"
15092 as_dir=`$as_dirname -- "$as_dir" ||
15093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15094 X"$as_dir" : 'X\(//\)[^/]' \| \
15095 X"$as_dir" : 'X\(//\)$' \| \
15096 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15097 $as_echo X"$as_dir" |
15098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15099 s//\1/
15102 /^X\(\/\/\)[^/].*/{
15103 s//\1/
15106 /^X\(\/\/\)$/{
15107 s//\1/
15110 /^X\(\/\).*/{
15111 s//\1/
15114 s/.*/./; q'`
15115 test -d "$as_dir" && break
15116 done
15117 test -z "$as_dirs" || eval "mkdir $as_dirs"
15118 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15121 } # as_fn_mkdir_p
15122 if mkdir -p . 2>/dev/null; then
15123 as_mkdir_p='mkdir -p "$as_dir"'
15124 else
15125 test -d ./-p && rmdir ./-p
15126 as_mkdir_p=false
15129 if test -x / >/dev/null 2>&1; then
15130 as_test_x='test -x'
15131 else
15132 if ls -dL / >/dev/null 2>&1; then
15133 as_ls_L_option=L
15134 else
15135 as_ls_L_option=
15137 as_test_x='
15138 eval sh -c '\''
15139 if test -d "$1"; then
15140 test -d "$1/.";
15141 else
15142 case $1 in #(
15143 -*)set "./$1";;
15144 esac;
15145 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15146 ???[sx]*):;;*)false;;esac;fi
15147 '\'' sh
15150 as_executable_p=$as_test_x
15152 # Sed expression to map a string onto a valid CPP name.
15153 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15155 # Sed expression to map a string onto a valid variable name.
15156 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15159 exec 6>&1
15160 ## ----------------------------------- ##
15161 ## Main body of $CONFIG_STATUS script. ##
15162 ## ----------------------------------- ##
15163 _ASEOF
15164 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15167 # Save the log message, to keep $0 and so on meaningful, and to
15168 # report actual input values of CONFIG_FILES etc. instead of their
15169 # values after options handling.
15170 ac_log="
15171 This file was extended by Wine $as_me 1.1.41, which was
15172 generated by GNU Autoconf 2.65. Invocation command line was
15174 CONFIG_FILES = $CONFIG_FILES
15175 CONFIG_HEADERS = $CONFIG_HEADERS
15176 CONFIG_LINKS = $CONFIG_LINKS
15177 CONFIG_COMMANDS = $CONFIG_COMMANDS
15178 $ $0 $@
15180 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15183 _ACEOF
15185 case $ac_config_files in *"
15186 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15187 esac
15189 case $ac_config_headers in *"
15190 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15191 esac
15194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15195 # Files that config.status was made for.
15196 config_files="$ac_config_files"
15197 config_headers="$ac_config_headers"
15198 config_links="$ac_config_links"
15199 config_commands="$ac_config_commands"
15201 _ACEOF
15203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15204 ac_cs_usage="\
15205 \`$as_me' instantiates files and other configuration actions
15206 from templates according to the current configuration. Unless the files
15207 and actions are specified as TAGs, all are instantiated by default.
15209 Usage: $0 [OPTION]... [TAG]...
15211 -h, --help print this help, then exit
15212 -V, --version print version number and configuration settings, then exit
15213 --config print configuration, then exit
15214 -q, --quiet, --silent
15215 do not print progress messages
15216 -d, --debug don't remove temporary files
15217 --recheck update $as_me by reconfiguring in the same conditions
15218 --file=FILE[:TEMPLATE]
15219 instantiate the configuration file FILE
15220 --header=FILE[:TEMPLATE]
15221 instantiate the configuration header FILE
15223 Configuration files:
15224 $config_files
15226 Configuration headers:
15227 $config_headers
15229 Configuration links:
15230 $config_links
15232 Configuration commands:
15233 $config_commands
15235 Report bugs to <wine-devel@winehq.org>.
15236 Wine home page: <http://www.winehq.org>."
15238 _ACEOF
15239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15240 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15241 ac_cs_version="\\
15242 Wine config.status 1.1.41
15243 configured by $0, generated by GNU Autoconf 2.65,
15244 with options \\"\$ac_cs_config\\"
15246 Copyright (C) 2009 Free Software Foundation, Inc.
15247 This config.status script is free software; the Free Software Foundation
15248 gives unlimited permission to copy, distribute and modify it."
15250 ac_pwd='$ac_pwd'
15251 srcdir='$srcdir'
15252 INSTALL='$INSTALL'
15253 test -n "\$AWK" || AWK=awk
15254 _ACEOF
15256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15257 # The default lists apply if the user does not specify any file.
15258 ac_need_defaults=:
15259 while test $# != 0
15261 case $1 in
15262 --*=*)
15263 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15264 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15265 ac_shift=:
15268 ac_option=$1
15269 ac_optarg=$2
15270 ac_shift=shift
15272 esac
15274 case $ac_option in
15275 # Handling of the options.
15276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15277 ac_cs_recheck=: ;;
15278 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15279 $as_echo "$ac_cs_version"; exit ;;
15280 --config | --confi | --conf | --con | --co | --c )
15281 $as_echo "$ac_cs_config"; exit ;;
15282 --debug | --debu | --deb | --de | --d | -d )
15283 debug=: ;;
15284 --file | --fil | --fi | --f )
15285 $ac_shift
15286 case $ac_optarg in
15287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15288 esac
15289 as_fn_append CONFIG_FILES " '$ac_optarg'"
15290 ac_need_defaults=false;;
15291 --header | --heade | --head | --hea )
15292 $ac_shift
15293 case $ac_optarg in
15294 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15295 esac
15296 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15297 ac_need_defaults=false;;
15298 --he | --h)
15299 # Conflict between --help and --header
15300 as_fn_error "ambiguous option: \`$1'
15301 Try \`$0 --help' for more information.";;
15302 --help | --hel | -h )
15303 $as_echo "$ac_cs_usage"; exit ;;
15304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15305 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15306 ac_cs_silent=: ;;
15308 # This is an error.
15309 -*) as_fn_error "unrecognized option: \`$1'
15310 Try \`$0 --help' for more information." ;;
15312 *) as_fn_append ac_config_targets " $1"
15313 ac_need_defaults=false ;;
15315 esac
15316 shift
15317 done
15319 ac_configure_extra_args=
15321 if $ac_cs_silent; then
15322 exec 6>/dev/null
15323 ac_configure_extra_args="$ac_configure_extra_args --silent"
15326 _ACEOF
15327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15328 if \$ac_cs_recheck; then
15329 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15330 shift
15331 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15332 CONFIG_SHELL='$SHELL'
15333 export CONFIG_SHELL
15334 exec "\$@"
15337 _ACEOF
15338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15339 exec 5>>config.log
15341 echo
15342 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15343 ## Running $as_me. ##
15344 _ASBOX
15345 $as_echo "$ac_log"
15346 } >&5
15348 _ACEOF
15349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15350 _ACEOF
15352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15354 # Handling of arguments.
15355 for ac_config_target in $ac_config_targets
15357 case $ac_config_target in
15358 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15359 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
15360 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
15361 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
15362 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
15363 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
15364 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
15365 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
15366 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
15367 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
15368 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
15369 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
15370 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
15371 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
15372 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
15373 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
15374 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15375 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
15376 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
15377 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15379 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15380 esac
15381 done
15384 # If the user did not use the arguments to specify the items to instantiate,
15385 # then the envvar interface is used. Set only those that are not.
15386 # We use the long form for the default assignment because of an extremely
15387 # bizarre bug on SunOS 4.1.3.
15388 if $ac_need_defaults; then
15389 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15390 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15391 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15392 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15395 # Have a temporary directory for convenience. Make it in the build tree
15396 # simply because there is no reason against having it here, and in addition,
15397 # creating and moving files from /tmp can sometimes cause problems.
15398 # Hook for its removal unless debugging.
15399 # Note that there is a small window in which the directory will not be cleaned:
15400 # after its creation but before its name has been assigned to `$tmp'.
15401 $debug ||
15403 tmp=
15404 trap 'exit_status=$?
15405 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15407 trap 'as_fn_exit 1' 1 2 13 15
15409 # Create a (secure) tmp directory for tmp files.
15412 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15413 test -n "$tmp" && test -d "$tmp"
15414 } ||
15416 tmp=./conf$$-$RANDOM
15417 (umask 077 && mkdir "$tmp")
15418 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15420 # Set up the scripts for CONFIG_FILES section.
15421 # No need to generate them if there are no CONFIG_FILES.
15422 # This happens for instance with `./config.status config.h'.
15423 if test -n "$CONFIG_FILES"; then
15425 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15426 ac_cs_awk_getline=:
15427 ac_cs_awk_pipe_init=
15428 ac_cs_awk_read_file='
15429 while ((getline aline < (F[key])) > 0)
15430 print(aline)
15431 close(F[key])'
15432 ac_cs_awk_pipe_fini=
15433 else
15434 ac_cs_awk_getline=false
15435 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15436 ac_cs_awk_read_file='
15437 print "|#_!!_#|"
15438 print "cat " F[key] " &&"
15439 '$ac_cs_awk_pipe_init
15440 # The final `:' finishes the AND list.
15441 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15443 ac_cr=`echo X | tr X '\015'`
15444 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15445 # But we know of no other shell where ac_cr would be empty at this
15446 # point, so we can use a bashism as a fallback.
15447 if test "x$ac_cr" = x; then
15448 eval ac_cr=\$\'\\r\'
15450 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15451 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15452 ac_cs_awk_cr='\r'
15453 else
15454 ac_cs_awk_cr=$ac_cr
15457 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15458 _ACEOF
15460 # Create commands to substitute file output variables.
15462 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15463 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15464 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15465 echo "_ACAWK" &&
15466 echo "_ACEOF"
15467 } >conf$$files.sh &&
15468 . ./conf$$files.sh ||
15469 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15470 rm -f conf$$files.sh
15473 echo "cat >conf$$subs.awk <<_ACEOF" &&
15474 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15475 echo "_ACEOF"
15476 } >conf$$subs.sh ||
15477 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15478 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15479 ac_delim='%!_!# '
15480 for ac_last_try in false false false false false :; do
15481 . ./conf$$subs.sh ||
15482 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15484 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15485 if test $ac_delim_n = $ac_delim_num; then
15486 break
15487 elif $ac_last_try; then
15488 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15489 else
15490 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15492 done
15493 rm -f conf$$subs.sh
15495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15496 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15497 _ACEOF
15498 sed -n '
15500 s/^/S["/; s/!.*/"]=/
15503 s/^[^!]*!//
15504 :repl
15505 t repl
15506 s/'"$ac_delim"'$//
15507 t delim
15510 s/\(.\{148\}\)..*/\1/
15511 t more1
15512 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15515 b repl
15516 :more1
15517 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15520 s/.\{148\}//
15521 t nl
15522 :delim
15524 s/\(.\{148\}\)..*/\1/
15525 t more2
15526 s/["\\]/\\&/g; s/^/"/; s/$/"/
15529 :more2
15530 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15533 s/.\{148\}//
15534 t delim
15535 ' <conf$$subs.awk | sed '
15536 /^[^""]/{
15538 s/\n//
15540 ' >>$CONFIG_STATUS || ac_write_fail=1
15541 rm -f conf$$subs.awk
15542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15543 _ACAWK
15544 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15545 for (key in S) S_is_set[key] = 1
15546 FS = "\a"
15547 \$ac_cs_awk_pipe_init
15550 line = $ 0
15551 nfields = split(line, field, "@")
15552 substed = 0
15553 len = length(field[1])
15554 for (i = 2; i < nfields; i++) {
15555 key = field[i]
15556 keylen = length(key)
15557 if (S_is_set[key]) {
15558 value = S[key]
15559 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15560 len += length(value) + length(field[++i])
15561 substed = 1
15562 } else
15563 len += 1 + keylen
15565 if (nfields == 3 && !substed) {
15566 key = field[2]
15567 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15568 \$ac_cs_awk_read_file
15569 next
15572 print line
15574 \$ac_cs_awk_pipe_fini
15575 _ACAWK
15576 _ACEOF
15577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15578 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15579 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15580 else
15582 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15583 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15584 _ACEOF
15586 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15587 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15588 # trailing colons and then remove the whole line if VPATH becomes empty
15589 # (actually we leave an empty line to preserve line numbers).
15590 if test "x$srcdir" = x.; then
15591 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15592 s/:*\$(srcdir):*/:/
15593 s/:*\${srcdir}:*/:/
15594 s/:*@srcdir@:*/:/
15595 s/^\([^=]*=[ ]*\):*/\1/
15596 s/:*$//
15597 s/^[^=]*=[ ]*$//
15601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15602 fi # test -n "$CONFIG_FILES"
15604 # Set up the scripts for CONFIG_HEADERS section.
15605 # No need to generate them if there are no CONFIG_HEADERS.
15606 # This happens for instance with `./config.status Makefile'.
15607 if test -n "$CONFIG_HEADERS"; then
15608 cat >"$tmp/defines.awk" <<\_ACAWK ||
15609 BEGIN {
15610 _ACEOF
15612 # Transform confdefs.h into an awk script `defines.awk', embedded as
15613 # here-document in config.status, that substitutes the proper values into
15614 # config.h.in to produce config.h.
15616 # Create a delimiter string that does not exist in confdefs.h, to ease
15617 # handling of long lines.
15618 ac_delim='%!_!# '
15619 for ac_last_try in false false :; do
15620 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15621 if test -z "$ac_t"; then
15622 break
15623 elif $ac_last_try; then
15624 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15625 else
15626 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15628 done
15630 # For the awk script, D is an array of macro values keyed by name,
15631 # likewise P contains macro parameters if any. Preserve backslash
15632 # newline sequences.
15634 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15635 sed -n '
15636 s/.\{148\}/&'"$ac_delim"'/g
15637 t rset
15638 :rset
15639 s/^[ ]*#[ ]*define[ ][ ]*/ /
15640 t def
15642 :def
15643 s/\\$//
15644 t bsnl
15645 s/["\\]/\\&/g
15646 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15647 D["\1"]=" \3"/p
15648 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15650 :bsnl
15651 s/["\\]/\\&/g
15652 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15653 D["\1"]=" \3\\\\\\n"\\/p
15654 t cont
15655 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15656 t cont
15658 :cont
15660 s/.\{148\}/&'"$ac_delim"'/g
15661 t clear
15662 :clear
15663 s/\\$//
15664 t bsnlc
15665 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15667 :bsnlc
15668 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15669 b cont
15670 ' <confdefs.h | sed '
15671 s/'"$ac_delim"'/"\\\
15672 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15675 for (key in D) D_is_set[key] = 1
15676 FS = "\a"
15678 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15679 line = \$ 0
15680 split(line, arg, " ")
15681 if (arg[1] == "#") {
15682 defundef = arg[2]
15683 mac1 = arg[3]
15684 } else {
15685 defundef = substr(arg[1], 2)
15686 mac1 = arg[2]
15688 split(mac1, mac2, "(") #)
15689 macro = mac2[1]
15690 prefix = substr(line, 1, index(line, defundef) - 1)
15691 if (D_is_set[macro]) {
15692 # Preserve the white space surrounding the "#".
15693 print prefix "define", macro P[macro] D[macro]
15694 next
15695 } else {
15696 # Replace #undef with comments. This is necessary, for example,
15697 # in the case of _POSIX_SOURCE, which is predefined and required
15698 # on some systems where configure will not decide to define it.
15699 if (defundef == "undef") {
15700 print "/*", prefix defundef, macro, "*/"
15701 next
15705 { print }
15706 _ACAWK
15707 _ACEOF
15708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15709 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15710 fi # test -n "$CONFIG_HEADERS"
15713 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15714 shift
15715 for ac_tag
15717 case $ac_tag in
15718 :[FHLC]) ac_mode=$ac_tag; continue;;
15719 esac
15720 case $ac_mode$ac_tag in
15721 :[FHL]*:*);;
15722 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15723 :[FH]-) ac_tag=-:-;;
15724 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15725 esac
15726 ac_save_IFS=$IFS
15727 IFS=:
15728 set x $ac_tag
15729 IFS=$ac_save_IFS
15730 shift
15731 ac_file=$1
15732 shift
15734 case $ac_mode in
15735 :L) ac_source=$1;;
15736 :[FH])
15737 ac_file_inputs=
15738 for ac_f
15740 case $ac_f in
15741 -) ac_f="$tmp/stdin";;
15742 *) # Look for the file first in the build tree, then in the source tree
15743 # (if the path is not absolute). The absolute path cannot be DOS-style,
15744 # because $ac_f cannot contain `:'.
15745 test -f "$ac_f" ||
15746 case $ac_f in
15747 [\\/$]*) false;;
15748 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15749 esac ||
15750 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15751 esac
15752 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15753 as_fn_append ac_file_inputs " '$ac_f'"
15754 done
15756 # Let's still pretend it is `configure' which instantiates (i.e., don't
15757 # use $as_me), people would be surprised to read:
15758 # /* config.h. Generated by config.status. */
15759 configure_input='Generated from '`
15760 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15761 `' by configure.'
15762 if test x"$ac_file" != x-; then
15763 configure_input="$ac_file. $configure_input"
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15765 $as_echo "$as_me: creating $ac_file" >&6;}
15767 # Neutralize special characters interpreted by sed in replacement strings.
15768 case $configure_input in #(
15769 *\&* | *\|* | *\\* )
15770 ac_sed_conf_input=`$as_echo "$configure_input" |
15771 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15772 *) ac_sed_conf_input=$configure_input;;
15773 esac
15775 case $ac_tag in
15776 *:-:* | *:-) cat >"$tmp/stdin" \
15777 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15778 esac
15780 esac
15782 ac_dir=`$as_dirname -- "$ac_file" ||
15783 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15784 X"$ac_file" : 'X\(//\)[^/]' \| \
15785 X"$ac_file" : 'X\(//\)$' \| \
15786 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15787 $as_echo X"$ac_file" |
15788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15789 s//\1/
15792 /^X\(\/\/\)[^/].*/{
15793 s//\1/
15796 /^X\(\/\/\)$/{
15797 s//\1/
15800 /^X\(\/\).*/{
15801 s//\1/
15804 s/.*/./; q'`
15805 as_dir="$ac_dir"; as_fn_mkdir_p
15806 ac_builddir=.
15808 case "$ac_dir" in
15809 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15811 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15812 # A ".." for each directory in $ac_dir_suffix.
15813 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15814 case $ac_top_builddir_sub in
15815 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15816 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15817 esac ;;
15818 esac
15819 ac_abs_top_builddir=$ac_pwd
15820 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15821 # for backward compatibility:
15822 ac_top_builddir=$ac_top_build_prefix
15824 case $srcdir in
15825 .) # We are building in place.
15826 ac_srcdir=.
15827 ac_top_srcdir=$ac_top_builddir_sub
15828 ac_abs_top_srcdir=$ac_pwd ;;
15829 [\\/]* | ?:[\\/]* ) # Absolute name.
15830 ac_srcdir=$srcdir$ac_dir_suffix;
15831 ac_top_srcdir=$srcdir
15832 ac_abs_top_srcdir=$srcdir ;;
15833 *) # Relative name.
15834 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15835 ac_top_srcdir=$ac_top_build_prefix$srcdir
15836 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15837 esac
15838 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15841 case $ac_mode in
15844 # CONFIG_FILE
15847 case $INSTALL in
15848 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15849 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15850 esac
15851 _ACEOF
15853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15854 # If the template does not know about datarootdir, expand it.
15855 # FIXME: This hack should be removed a few years after 2.60.
15856 ac_datarootdir_hack=; ac_datarootdir_seen=
15857 ac_sed_dataroot='
15858 /datarootdir/ {
15862 /@datadir@/p
15863 /@docdir@/p
15864 /@infodir@/p
15865 /@localedir@/p
15866 /@mandir@/p'
15867 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15868 *datarootdir*) ac_datarootdir_seen=yes;;
15869 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15871 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15872 _ACEOF
15873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15874 ac_datarootdir_hack='
15875 s&@datadir@&$datadir&g
15876 s&@docdir@&$docdir&g
15877 s&@infodir@&$infodir&g
15878 s&@localedir@&$localedir&g
15879 s&@mandir@&$mandir&g
15880 s&\\\${datarootdir}&$datarootdir&g' ;;
15881 esac
15882 _ACEOF
15884 # Neutralize VPATH when `$srcdir' = `.'.
15885 # Shell code in configure.ac might set extrasub.
15886 # FIXME: do we really want to maintain this feature?
15887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15888 ac_sed_extra="$ac_vpsub
15889 $extrasub
15890 _ACEOF
15891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15894 s|@configure_input@|$ac_sed_conf_input|;t t
15895 s&@top_builddir@&$ac_top_builddir_sub&;t t
15896 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15897 s&@srcdir@&$ac_srcdir&;t t
15898 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15899 s&@top_srcdir@&$ac_top_srcdir&;t t
15900 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15901 s&@builddir@&$ac_builddir&;t t
15902 s&@abs_builddir@&$ac_abs_builddir&;t t
15903 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15904 s&@INSTALL@&$ac_INSTALL&;t t
15905 $ac_datarootdir_hack
15907 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15908 if $ac_cs_awk_getline; then
15909 $AWK -f "$tmp/subs.awk"
15910 else
15911 $AWK -f "$tmp/subs.awk" | $SHELL
15912 fi >$tmp/out \
15913 || as_fn_error "could not create $ac_file" "$LINENO" 5
15915 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15916 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15917 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15919 which seems to be undefined. Please make sure it is defined." >&5
15920 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15921 which seems to be undefined. Please make sure it is defined." >&2;}
15923 rm -f "$tmp/stdin"
15924 case $ac_file in
15925 -) cat "$tmp/out" && rm -f "$tmp/out";;
15926 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15927 esac \
15928 || as_fn_error "could not create $ac_file" "$LINENO" 5
15932 # CONFIG_HEADER
15934 if test x"$ac_file" != x-; then
15936 $as_echo "/* $configure_input */" \
15937 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15938 } >"$tmp/config.h" \
15939 || as_fn_error "could not create $ac_file" "$LINENO" 5
15940 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15942 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15943 else
15944 rm -f "$ac_file"
15945 mv "$tmp/config.h" "$ac_file" \
15946 || as_fn_error "could not create $ac_file" "$LINENO" 5
15948 else
15949 $as_echo "/* $configure_input */" \
15950 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15951 || as_fn_error "could not create -" "$LINENO" 5
15956 # CONFIG_LINK
15959 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15961 else
15962 # Prefer the file from the source tree if names are identical.
15963 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15964 ac_source=$srcdir/$ac_source
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15968 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15970 if test ! -r "$ac_source"; then
15971 as_fn_error "$ac_source: file not found" "$LINENO" 5
15973 rm -f "$ac_file"
15975 # Try a relative symlink, then a hard link, then a copy.
15976 case $srcdir in
15977 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15978 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15979 esac
15980 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15981 ln "$ac_source" "$ac_file" 2>/dev/null ||
15982 cp -p "$ac_source" "$ac_file" ||
15983 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15986 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15987 $as_echo "$as_me: executing $ac_file commands" >&6;}
15989 esac
15992 case $ac_file$ac_mode in
15993 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
15994 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
15995 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
15996 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
15997 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
15998 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
15999 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16000 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16001 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16002 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16003 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16004 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16005 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16007 esac
16008 done # for ac_tag
16011 as_fn_exit 0
16012 _ACEOF
16013 ac_clean_files=$ac_clean_files_save
16015 test $ac_write_fail = 0 ||
16016 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16019 # configure is writing to config.log, and then calls config.status.
16020 # config.status does its own redirection, appending to config.log.
16021 # Unfortunately, on DOS this fails, as config.log is still kept open
16022 # by configure, so config.status won't be able to write to it; its
16023 # output is simply discarded. So we exec the FD to /dev/null,
16024 # effectively closing config.log, so it can be properly (re)opened and
16025 # appended to by config.status. When coming back to configure, we
16026 # need to make the FD available again.
16027 if test "$no_create" != yes; then
16028 ac_cs_success=:
16029 ac_config_status_args=
16030 test "$silent" = yes &&
16031 ac_config_status_args="$ac_config_status_args --quiet"
16032 exec 5>/dev/null
16033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16034 exec 5>>config.log
16035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16036 # would make configure fail if this is the last instruction.
16037 $ac_cs_success || as_fn_exit $?
16039 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16041 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16045 if test "$no_create" = "yes"
16046 then
16047 exit 0
16050 ac_save_IFS="$IFS"
16051 if test "x$wine_notices != "x; then
16052 echo >&6
16053 IFS="|"
16054 for msg in $wine_notices; do
16055 IFS="$ac_save_IFS"
16056 if test -n "$msg"; then
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16058 $as_echo "$as_me: $msg" >&6;}
16060 done
16062 IFS="|"
16063 for msg in $wine_warnings; do
16064 IFS="$ac_save_IFS"
16065 if test -n "$msg"; then
16066 echo >&2
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16068 $as_echo "$as_me: WARNING: $msg" >&2;}
16070 done
16071 IFS="$ac_save_IFS"
16073 echo "
16074 $as_me: Finished. Do '${ac_make}' to compile Wine.
16075 " >&6